Added functionnal save system and broken load system

This commit is contained in:
eichhornchen
2020-11-16 01:01:18 +01:00
parent eca6b9af1f
commit f67eae3803
9 changed files with 204 additions and 26 deletions

View File

@ -5,6 +5,9 @@ from ..interfaces import FightingEntity, Map
class Monster(FightingEntity):
def __init__(self) -> None:
super().__init__()
def act(self, m: Map) -> None:
"""
By default, a monster will move randomly where it is possible
@ -35,24 +38,32 @@ class Monster(FightingEntity):
class Beaver(Monster):
def __init__(self) -> None:
super().__init__()
name = "beaver"
maxhealth = 30
strength = 2
class Hedgehog(Monster):
def __init__(self) -> None:
super().__init__()
name = "hedgehog"
maxhealth = 10
strength = 3
class Rabbit(Monster):
def __init__(self) -> None:
super().__init__()
name = "rabbit"
maxhealth = 15
strength = 1
class TeddyBear(Monster):
def __init__(self) -> None:
super().__init__()
name = "teddy_bear"
maxhealth = 50
strength = 0