From 1e390c939a11a2c610bda59e5204febfb27fc3a2 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 15 Apr 2018 12:39:53 +0200 Subject: show restart message again when player is dead --- asciifarm/client/gameclient.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'asciifarm/client') 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]) -- cgit