home · contact · privacy
In hunger(), correct log message on actually over-eating, not hungering.
[plomrogue] / roguelike-server
index 311a62b994857374134684a413f6fc2947e30850..7a61c81bec1fedbcf98476981dfbb65fe566089a 100755 (executable)
@@ -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)