home · contact · privacy
Plugin: Fix unusability of carpentry tool and fertilizer.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 5 Mar 2016 10:34:01 +0000 (11:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 5 Mar 2016 10:34:01 +0000 (11:34 +0100)
plugins/server/PleaseTheIslandGod.py

index 6cbfdf4b844e5615574e171c5814b1308dda0a1f..7e45e15370e18051fc3bf51ad47bd9c69f85dbc0 100644 (file)
@@ -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