home · contact · privacy
Plugin: Remove faulty newline.
[plomrogue] / plugins / server / PleaseTheIslandGod.py
index 8f658d5b578720dffd88f5ffba174a9e342b0019..8634bfd012c0b43a342ffa3b2cda751d6c26b4fc 100644 (file)
@@ -101,7 +101,7 @@ def actor_use_attempts_hook(t, ty):
         if t == world_db["Things"][0]:
             log("You use the " + world_db["ThingTypes"][ty]["TT_NAME"] + ". " \
                 "It glows in wondrous colors, and emits a sound as if from a d"
-                "ying cat. The Island God laughs.\n")
+                "ying cat. The Island God laughs.")
         t["T_LIFEPOINTS"] = 1
         from server.config.misc import decrement_lifepoints
         decrement_lifepoints(t)
@@ -211,7 +211,7 @@ def actor_move(t):
             altar_msg_wait(100)
         elif world_db["FAVOR_STAGE"] == 1 and world_db["GOD_FAVOR"] >= 100:
             world_db["FAVOR_STAGE"] = 2
-            log(altar_msg_2)
+            log(altar_msg_1)
             id = id_setter(-1, "Things")
             world_db["Things"][id] = new_Thing(world_db["PLANT_1"],
                                                world_db["altar"])
@@ -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