diff options
Diffstat (limited to 'weatbag/__init__.py')
| -rw-r--r-- | weatbag/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weatbag/__init__.py b/weatbag/__init__.py index 511e8bc..7ed1c6a 100644 --- a/weatbag/__init__.py +++ b/weatbag/__init__.py @@ -5,11 +5,12 @@ import re from . import action class Player: + MAX_HIT_POINT = 6 def __init__(self, name): self.name = name self.inventory = Counter() self.position = (0,0) - self.hit_points = 6 + self.hit_points = Player.MAX_HIT_POINT def has(self, item): "Does the player have any of item?" |
