summaryrefslogtreecommitdiff
path: root/asciifarm/client
diff options
context:
space:
mode:
authortroido <troido@hotmail.com>2018-04-15 12:32:59 +0200
committertroido <troido@hotmail.com>2018-04-15 12:32:59 +0200
commit96e72acb5039e714236771b7315263932586afc7 (patch)
tree56abd1329e8b86213cec8d99b1bf7248f732011a /asciifarm/client
parent074b53058f8f7dd3b3f4e34fc6bc2ed430b15a0d (diff)
health now shows as 0/0 when dead
Diffstat (limited to 'asciifarm/client')
-rw-r--r--asciifarm/client/display/health.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/asciifarm/client/display/health.py b/asciifarm/client/display/health.py
index 10d6594..063fb8e 100644
--- a/asciifarm/client/display/health.py
+++ b/asciifarm/client/display/health.py
@@ -16,8 +16,8 @@ class Health:
self.widget = widget
def setHealth(self, health, maxHealth):
- self.health = health
- self.maxHealth = maxHealth
+ self.health = health or 0
+ self.maxHealth = maxHealth or 0
self.widget.change()
def update(self):