Merchants had default maxhealth.
This commit is contained in:
parent
9ff615a6b0
commit
175706b1e4
|
@ -17,8 +17,8 @@ class Merchant(InventoryHolder, FriendlyEntity):
|
||||||
return super().keys() + ["inventory", "hazel"]
|
return super().keys() + ["inventory", "hazel"]
|
||||||
|
|
||||||
def __init__(self, name: str = "merchant", inventory: list = None,
|
def __init__(self, name: str = "merchant", inventory: list = None,
|
||||||
hazel: int = 75, *args, **kwargs):
|
hazel: int = 75, maxhealth = 8, *args, **kwargs):
|
||||||
super().__init__(name=name, *args, **kwargs)
|
super().__init__(name=name, maxhealth=maxhealth, *args, **kwargs)
|
||||||
self.inventory = self.translate_inventory(inventory or [])
|
self.inventory = self.translate_inventory(inventory or [])
|
||||||
self.hazel = hazel
|
self.hazel = hazel
|
||||||
if not self.inventory:
|
if not self.inventory:
|
||||||
|
|
Loading…
Reference in New Issue