Merchants had default maxhealth.

This commit is contained in:
eichhornchen 2021-01-08 22:30:30 +01:00
parent 9ff615a6b0
commit 175706b1e4

View File

@ -17,8 +17,8 @@ class Merchant(InventoryHolder, FriendlyEntity):
return super().keys() + ["inventory", "hazel"]
def __init__(self, name: str = "merchant", inventory: list = None,
hazel: int = 75, *args, **kwargs):
super().__init__(name=name, *args, **kwargs)
hazel: int = 75, maxhealth = 8, *args, **kwargs):
super().__init__(name=name, maxhealth=maxhealth, *args, **kwargs)
self.inventory = self.translate_inventory(inventory or [])
self.hazel = hazel
if not self.inventory: