diff options
| author | troido <troido@hotmail.com> | 2018-04-15 12:39:53 +0200 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-04-15 12:39:53 +0200 |
| commit | 1e390c939a11a2c610bda59e5204febfb27fc3a2 (patch) | |
| tree | d6c1100103e2fe51b8725c98aa84af865dfa06e3 /asciifarm/client/gameclient.py | |
| parent | 96e72acb5039e714236771b7315263932586afc7 (diff) | |
show restart message again when player is dead
Diffstat (limited to 'asciifarm/client/gameclient.py')
| -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]) |
