From 2123beb75d5b818907d3926ba2229d3ee751614b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 14 Mar 2015 01:31:15 +0100 Subject: [PATCH] In hunger(), correct log message on actually over-eating, not hungering. --- confserver/world | 6 +++--- roguelike-server | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/confserver/world b/confserver/world index 14e5b0a..430c402 100644 --- a/confserver/world +++ b/confserver/world @@ -30,7 +30,7 @@ TT_TOOLPOWER 0 TT_STORAGE 4 TT_ID 1 -TT_START_NUMBER 27 +TT_START_NUMBER 0 TT_LIFEPOINTS 6 TT_SYMBOL a TT_NAME ANT @@ -38,7 +38,7 @@ TT_TOOLPOWER 0 TT_STORAGE 1 TT_ID 2 -TT_START_NUMBER 9 +TT_START_NUMBER 0 TT_LIFEPOINTS 18 TT_SYMBOL d TT_NAME DOG @@ -46,7 +46,7 @@ TT_TOOLPOWER 0 TT_STORAGE 1 TT_ID 3 -TT_START_NUMBER 3 +TT_START_NUMBER 0 TT_LIFEPOINTS 54 TT_SYMBOL b TT_NAME BEAR diff --git a/roguelike-server b/roguelike-server index 311a62b..7a61c81 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1098,7 +1098,11 @@ def hunger(t): stomach = int(32767 / world_db["ThingTypes"][t["T_TYPE"]]["TT_LIFEPOINTS"]) if int(int(testbase / stomach) / ((rand.next() % stomach) + 1)): if t == world_db["Things"][0]: - strong_write(io_db["file_out"], "LOG You suffer from hunger.\n") + if t["T_SATIATION"] < 0: + strong_write(io_db["file_out"], "LOG You suffer from hunger.\n") + else: + strong_write(io_db["file_out"], + "LOG You suffer from over-eating.\n") decrement_lifepoints(t) -- 2.30.2