Merge branch 'master' into 'familiars'

# Conflicts:
#   squirrelbattle/display/display_manager.py
#   squirrelbattle/display/logsdisplay.py
#   squirrelbattle/display/mapdisplay.py
#   squirrelbattle/display/menudisplay.py
#   squirrelbattle/menus.py
This commit is contained in:
eichhornchen
2021-01-05 10:27:39 +01:00
15 changed files with 167 additions and 57 deletions

View File

@ -144,7 +144,7 @@ class StoreMenu(Menu):
"""
A special instance of a menu : the menu for the inventory of a merchant.
"""
merchant: Merchant
merchant: Merchant = None
def update_merchant(self, merchant: Merchant) -> None:
"""
@ -157,4 +157,4 @@ class StoreMenu(Menu):
"""
Returns the values of the menu.
"""
return self.merchant.inventory
return self.merchant.inventory if self.merchant else []