Fix the GiantSeaEagle registration, fixes #76

This commit is contained in:
Yohann D'ANELLO 2021-01-10 20:20:12 +01:00
parent 44b967625c
commit 3758cb1336
2 changed files with 3 additions and 3 deletions

View File

@ -419,9 +419,9 @@ class Game:
try: try:
self.map_index = d["map_index"] self.map_index = d["map_index"]
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]] self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
except KeyError: except KeyError as error:
self.message = _("Some keys are missing in your save file.\n" self.message = _("Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted.") "Your save seems to be corrupt. It got deleted.") + f"\n{error}"
os.unlink(ResourceManager.get_config_path("save.json")) os.unlink(ResourceManager.get_config_path("save.json"))
self.display_actions(DisplayActions.UPDATE) self.display_actions(DisplayActions.UPDATE)
return return

View File

@ -662,8 +662,8 @@ class Entity:
"Bow": Bow, "Bow": Bow,
"Chest": Chest, "Chest": Chest,
"Chestplate": Chestplate, "Chestplate": Chestplate,
"Eagle": GiantSeaEagle,
"FireBallStaff": FireBallStaff, "FireBallStaff": FireBallStaff,
"GiantSeaEagle": GiantSeaEagle,
"Heart": Heart, "Heart": Heart,
"Hedgehog": Hedgehog, "Hedgehog": Hedgehog,
"Helmet": Helmet, "Helmet": Helmet,