X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=plugins%2Fserver%2FPleaseTheIslandGod.py;h=8634bfd012c0b43a342ffa3b2cda751d6c26b4fc;hb=48d8506893a38ebcf319c67f45da519d4c6573bf;hp=6cbfdf4b844e5615574e171c5814b1308dda0a1f;hpb=d362a57f5c9a36c7416cffabe66c615e6441e32b;p=plomrogue diff --git a/plugins/server/PleaseTheIslandGod.py b/plugins/server/PleaseTheIslandGod.py index 6cbfdf4..8634bfd 100644 --- a/plugins/server/PleaseTheIslandGod.py +++ b/plugins/server/PleaseTheIslandGod.py @@ -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) @@ -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