From: Christian Heller Date: Sun, 13 Mar 2016 19:48:03 +0000 (+0100) Subject: TCE: Only give GRACE capabilities to player. X-Git-Tag: tce~9 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/static/pick_tasks?a=commitdiff_plain;h=aca74b23a81d4ecbd77e3e0da2de81574ab41358;p=plomrogue TCE: Only give GRACE capabilities to player. --- 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