diff options
| author | Julian Irwin <julian.irwin@gmail.com> | 2013-01-11 17:46:24 -0600 |
|---|---|---|
| committer | Julian Irwin <julian.irwin@gmail.com> | 2013-01-11 17:46:24 -0600 |
| commit | 7f6cb008d54bb650662605ecd702089f87eea70d (patch) | |
| tree | c855969a848e67c51968e497bdcb8b558b98d7f7 /weatbag/__init__.py | |
| parent | e98bcfb9149fdfe5c842a2dc93ce79728f804d8e (diff) | |
| parent | d327e21c9c8fec8dea82035e87bfd1a3ba2b813c (diff) | |
Merge remote-tracking branch 'upstream/master' into southern-tiles-1
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?" |
