X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=plugins%2Fserver%2FPleaseTheIslandGod.py;h=7e45e15370e18051fc3bf51ad47bd9c69f85dbc0;hp=6cbfdf4b844e5615574e171c5814b1308dda0a1f;hb=4a99efd6b0320ad9bc718b43a52b7d9981f75a17;hpb=573c4c84a26a60d23e262e60c327abbf134988e8 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