From aca74b23a81d4ecbd77e3e0da2de81574ab41358 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 13 Mar 2016 20:48:03 +0100 Subject: [PATCH] TCE: Only give GRACE capabilities to player. --- plugins/server/TheCrawlingEater.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/server/TheCrawlingEater.py b/plugins/server/TheCrawlingEater.py index 02c9c3c..9ac6c07 100644 --- a/plugins/server/TheCrawlingEater.py +++ b/plugins/server/TheCrawlingEater.py @@ -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 -- 2.30.2