diff options
| author | troido <troido@hotmail.com> | 2017-11-07 19:07:34 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-07 19:07:34 +0100 |
| commit | 56af1337af9c9cf27a4ca3ed4e3cb94bfcbdb9dc (patch) | |
| tree | fd97642bfeab59315a310967eb91c5e07ef1b13f | |
| parent | a2efbcc91190a79fb49489738cbf419a1b2395ee (diff) | |
improved combat system to include defense; made armour a thing
| -rw-r--r-- | asciifarm/charmaps/fullwidth.json | 2 | ||||
| -rw-r--r-- | asciifarm/client/display/healthpad.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/asciifarm/charmaps/fullwidth.json b/asciifarm/charmaps/fullwidth.json index a9fa4c0..40b1912 100644 --- a/asciifarm/charmaps/fullwidth.json +++ b/asciifarm/charmaps/fullwidth.json @@ -1,6 +1,6 @@ { "mapping":{ - "tree": ["%",0,2], + "tree": ["T",0,2], "wall": ["#",7,8], "rock": ["X",7,8], "stone": ["o",7], diff --git a/asciifarm/client/display/healthpad.py b/asciifarm/client/display/healthpad.py index 3e0a09d..d4ee3f8 100644 --- a/asciifarm/client/display/healthpad.py +++ b/asciifarm/client/display/healthpad.py @@ -11,6 +11,8 @@ class HealthPad: self.changed = False self.lastView = None self.colours = colours + self.health = 0 + self.maxHealth = 0 def setHealth(self, health, maxHealth): self.pad.erase() |
