Added functionnal save system and broken load system
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user