home · contact · privacy
TCE: Add upper limit for grace.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 20:18:07 +0000 (21:18 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 20:18:07 +0000 (21:18 +0100)
plugins/server/TheCrawlingEater.py

index 798ad57c0e31fd14e85d6412e97f3f6030c8aec3..11955305a180a4840039d2ecbdba52b393914c85 100644 (file)
@@ -260,7 +260,8 @@ def actor_move(t):
                 log("You now have the DEATH touch.")
             if world_db["GRACE"] < 24:
                 log("You will now LEVITATE over holes.")
-            world_db["GRACE"] += 8
+            if world_db["GRACE"] <= 24:
+                world_db["GRACE"] += 8
     elif t == world_db["Things"][0]:
         log("You try to MOVE there, but fail.")