From: Christian Heller Date: Sat, 14 Mar 2015 00:31:15 +0000 (+0100) Subject: In hunger(), correct log message on actually over-eating, not hungering. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards?a=commitdiff_plain;h=2123beb75d5b818907d3926ba2229d3ee751614b;p=plomrogue In hunger(), correct log message on actually over-eating, not hungering. --- 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)