Add a Fighter component to the Hero

This commit is contained in:
Eryn Wells 2022-05-08 09:55:56 -07:00
parent ee0e4b1dba
commit e1562b2b2b

View file

@ -38,6 +38,7 @@ class Entity:
class Hero(Entity):
def __init__(self, position: Point):
super().__init__('@', position=position, fg=tuple(tcod.white))
self.fighter = Fighter(maximum_hit_points=30, attack_power=5, defense=2)
class Monster(Entity):
'''An instance of a Species.'''