Merge branch 'map_generation' of https://gitlab.crans.org/ynerant/squirrel-battle into map_generation

This commit is contained in:
Charles Peyrat 2021-01-10 21:50:01 +01:00
commit 13e3628668

View File

@ -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.")