def __init__(self, inventory: Optional[Inventory]=None) -> None:
    self.alive = True
    self.max_hp = self.hp
    self.inventory = (inventory or Inventory())
def __init__(self, inventory: Optional[Inventory]=None) -> None:
    self.alive = True
    self.max_hp = self.hp
    self.inventory = (inventory or Inventory())