Merge branch 'map_generation' of https://gitlab.crans.org/ynerant/squirrel-battle into map_generation
This commit is contained in:
commit
13e3628668
@ -343,6 +343,8 @@ class Game:
|
||||
try:
|
||||
self.map_index = d["map_index"]
|
||||
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
|
||||
for i, m in enumerate(self.maps):
|
||||
m.floor = i
|
||||
except KeyError:
|
||||
self.message = _("Some keys are missing in your save file.\n"
|
||||
"Your save seems to be corrupt. It got deleted.")
|
||||
|
Loading…
Reference in New Issue
Block a user