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:
@ -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 []
|
||||
|
Reference in New Issue
Block a user