home · contact · privacy
TCE: Only give GRACE capabilities to player.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 19:48:03 +0000 (20:48 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 19:48:03 +0000 (20:48 +0100)
plugins/server/TheCrawlingEater.py

index 02c9c3c0872f70137c249f0674a4bc87e8eda2f5..9ac6c073bb6aa54de85561bf858f21c52345997d 100644 (file)
@@ -226,11 +226,12 @@ def actor_move(t):
 
 
 def test_hole(t):
-    if world_db["GRACE"] >= 32 and world_db["MAP"][t["pos"]] == ord("&"):
-        world_db["die"](t, "YOU WIN, CONGRATULATIONS.")
-        return False
-    if world_db["GRACE"] >= 24:
-        return True
+    if t == world_db["Things"][0]:
+        if world_db["GRACE"] >= 32 and world_db["MAP"][t["pos"]] == ord("&"):
+            world_db["die"](t, "YOU WIN, CONGRATULATIONS.")
+            return False
+        if world_db["GRACE"] >= 24:
+            return True
     if chr(world_db["MAP"][t["pos"]]) in "*&":
         world_db["die"](t, "You FALL in a hole, and die.")
         return False