summaryrefslogtreecommitdiff
path: root/asciifarm/client/display/healthpad.py
diff options
context:
space:
mode:
authortroido <troido@hotmail.com>2017-11-07 19:07:34 +0100
committertroido <troido@hotmail.com>2017-11-07 19:07:34 +0100
commit56af1337af9c9cf27a4ca3ed4e3cb94bfcbdb9dc (patch)
treefd97642bfeab59315a310967eb91c5e07ef1b13f /asciifarm/client/display/healthpad.py
parenta2efbcc91190a79fb49489738cbf419a1b2395ee (diff)
improved combat system to include defense; made armour a thing
Diffstat (limited to 'asciifarm/client/display/healthpad.py')
-rw-r--r--asciifarm/client/display/healthpad.py2
1 files changed, 2 insertions, 0 deletions
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()