home · contact · privacy
In hunger(), correct log message on actually over-eating, not hungering.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 14 Mar 2015 00:31:15 +0000 (01:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 14 Mar 2015 00:31:15 +0000 (01:31 +0100)
confserver/world
roguelike-server

index 14e5b0a99829d561bd74f1f82d1d2af76a299e43..430c402d86d195472594c9ac05680f7fff38b3dc 100644 (file)
@@ -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
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)