home · contact · privacy
TCE: Make sure stomach is never fuller than 32.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 8 Mar 2016 01:37:52 +0000 (02:37 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 8 Mar 2016 01:37:52 +0000 (02:37 +0100)
plugins/server/TheCrawlingEater.py

index b88368444e7a830c2df99b57b739aa86501a29ca..e23f00f2cb893e4350d413a37b864b4fd70dd86b 100644 (file)
@@ -107,6 +107,8 @@ def actor_move(t):
             log("You EAT.")
             world_db["MAP"][pos] = ord("_")
             t["T_STOMACH"] += 4
+        if t["T_STOMACH"] > 32:
+            t["T_STOMACH"] = 32
 
 
 def make_map():