Test selling items

This commit is contained in:
Yohann D'ANELLO
2020-12-18 02:17:06 +01:00
parent c55a7451e7
commit b8d32b29c8
3 changed files with 22 additions and 5 deletions

View File

@ -132,11 +132,11 @@ class InventoryMenu(Menu):
class StoreMenu(Menu):
merchant: Merchant
merchant: Merchant = None
def update_merchant(self, merchant: Merchant) -> None:
self.merchant = merchant
@property
def values(self) -> list:
return self.merchant.inventory
return self.merchant.inventory if self.merchant else []