diff options
Diffstat (limited to 'asciifarm')
| -rw-r--r-- | asciifarm/client/gameclient.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/asciifarm/client/gameclient.py b/asciifarm/client/gameclient.py index 69380db..7d29caa 100644 --- a/asciifarm/client/gameclient.py +++ b/asciifarm/client/gameclient.py @@ -88,10 +88,9 @@ class Client: self.display.setFieldCenter(msg[1]) if msgType == "health": - health = msg[1] - if health: - self.display.setHealth(*health) - else: + health, maxHealth = msg[1] + self.display.setHealth(health, maxHealth) + if maxHealth is None: self.log("You have died. Restart the client to respawn") if msgType == "inventory": self.display.setInventory(msg[1]) |
