home · contact · privacy
TCE: Only allow winning when grace => 32.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 19:37:31 +0000 (20:37 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 19:37:31 +0000 (20:37 +0100)
plugins/server/TheCrawlingEater.py

index 2a7dbefb82839901d4206f43203bbc420a870266..78d90b65ca5a241d998d73383be1b4ca2794782c 100644 (file)
@@ -223,7 +223,7 @@ def actor_move(t):
 
 
 def test_hole(t):
-    if world_db["MAP"][t["pos"]] == ord("&"):
+    if world_db["GRACE"] >= 32 and world_db["MAP"][t["pos"]] == ord("&"):
         world_db["die"](t, "YOU WIN, CONGRATULATIONS.")
         return False
     if chr(world_db["MAP"][t["pos"]]) in "*&":