From: Christian Heller Date: Sat, 5 Mar 2016 10:34:01 +0000 (+0100) Subject: Plugin: Fix unusability of carpentry tool and fertilizer. X-Git-Tag: tce~94 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/edit?a=commitdiff_plain;h=4a99efd6b0320ad9bc718b43a52b7d9981f75a17;p=plomrogue Plugin: Fix unusability of carpentry tool and fertilizer. --- diff --git a/plugins/server/PleaseTheIslandGod.py b/plugins/server/PleaseTheIslandGod.py index 6cbfdf4..7e45e15 100644 --- a/plugins/server/PleaseTheIslandGod.py +++ b/plugins/server/PleaseTheIslandGod.py @@ -378,10 +378,12 @@ def play_use_attempt_hook(t, tt): log("You CAN'T use a " + world_db["ThingTypes"][type]["TT_NAME"] + " without some wood in your inventory.") return False - elif (tt["TT_TOOL"] == "fertilizer" - and not world_db["MAP"][pos] == ord(".")): - log("Can only make soil out of NON-SOIL earth.") - return False + return True + elif tt["TT_TOOL"] == "fertilizer": + if not world_db["MAP"][pos] == ord("."): + log("Can only make soil out of NON-SOIL earth.") + return False + return True elif tt["TT_TOOL"] == "wood": log("To use wood, you NEED a carpentry tool.") return False