From: Christian Heller Date: Sat, 12 Mar 2016 00:11:55 +0000 (+0100) Subject: TCE: Lessen hunger / thirst growth speed. X-Git-Tag: tce~43 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/day?a=commitdiff_plain;h=9b9e6dbd332e4b72abdd4d03e3d151a10b0e56fa;p=plomrogue TCE: Lessen hunger / thirst growth speed. --- diff --git a/plugins/server/TheCrawlingEater.py b/plugins/server/TheCrawlingEater.py index b1dc407..52807b8 100644 --- a/plugins/server/TheCrawlingEater.py +++ b/plugins/server/TheCrawlingEater.py @@ -281,14 +281,15 @@ def turn_over(): if t["T_BLADDER"] > 16: if 0 == (rand.next() % (33 - t["T_BLADDER"])): action_db["actor_pee"](t) - t["T_STOMACH"] -= 1 - t["T_BOWEL"] += 1 - t["T_KIDNEY"] -= 1 - t["T_BLADDER"] += 1 - if t["T_STOMACH"] == 0: - world_db["die"](t, "You DIE of hunger.") - elif t["T_KIDNEY"] == 0: - world_db["die"](t, "You DIE of dehydration.") + if 0 == world_db["TURN"] % 5: + t["T_STOMACH"] -= 1 + t["T_BOWEL"] += 1 + t["T_KIDNEY"] -= 1 + t["T_BLADDER"] += 1 + if t["T_STOMACH"] == 0: + world_db["die"](t, "You DIE of hunger.") + elif t["T_KIDNEY"] == 0: + world_db["die"](t, "You DIE of dehydration.") water = 0 positions_to_wet = [] for pos in range(world_db["MAP_LENGTH"] ** 2):