X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=plugins%2Fserver%2FPleaseTheIslandGod.py;h=9be068749f158329d42285c2c0bc8bc386f7299b;hb=21eb782e7178305ba775749db005304311ef2c1c;hp=0556a4229f836a632825ee96a939c69242ef2b18;hpb=ffd00ccdeb2da591fe931b6c71c5abe70c3e1b97;p=plomrogue diff --git a/plugins/server/PleaseTheIslandGod.py b/plugins/server/PleaseTheIslandGod.py index 0556a42..9be0687 100644 --- a/plugins/server/PleaseTheIslandGod.py +++ b/plugins/server/PleaseTheIslandGod.py @@ -252,7 +252,7 @@ def actor_pickup(t): if t == world_db["Things"][0]: log("You PICK UP an object.") elif t == world_db["Things"][0]: - log("Can't pick up object: No storage room to carry more.") + log("CAN'T pick up object: No storage room to carry more.") def actor_drop(t): @@ -301,7 +301,7 @@ def actor_use(t): del world_db["Things"][wood_id] world_db["MAP"][pos] = ord("|") log("With your " + world_db["ThingTypes"][type]["TT_NAME"] - + " you build a wooden barrier from your " + + " you build a WOODEN BARRIER from your " + world_db["ThingTypes"][type_material]["TT_NAME"] + ".") elif world_db["ThingTypes"][type]["TT_TOOL"] == "fertilizer": pos = t["T_POSY"] * world_db["MAP_LENGTH"] + t["T_POSX"] @@ -313,7 +313,7 @@ def actor_use(t): del world_db["Things"][id] t["T_SATIATION"] += world_db["ThingTypes"][type]["TT_TOOLPOWER"] if t == world_db["Things"][0]: - log("You CONSUME this object.") + log("You CONSUME this thing.") elif t == world_db["Things"][0]: log("You try to use this object, but FAIL.") @@ -659,14 +659,14 @@ def play_use(str_arg): pos = t["T_POSY"] * world_db["MAP_LENGTH"] + t["T_POSX"] if (world_db["MAP"][pos] == ord("X") or world_db["MAP"][pos] == ord("|")): - log("Can't build when standing on barrier.") + log("CAN'T build when standing on barrier.") return for id in [id for id in world_db["Things"] if not world_db["Things"][id] == t if not world_db["Things"][id]["carried"] if world_db["Things"][id]["T_POSY"] == t["T_POSY"] if world_db["Things"][id]["T_POSX"] == t["T_POSX"]]: - log("Can't build when standing objects.") + log("CAN'T build when standing objects.") return wood_id = None for id in t["T_CARRIES"]: @@ -676,7 +676,7 @@ def play_use(str_arg): wood_id = id break if wood_id == None: - log("You can't use a " + log("You CAN'T use a " + world_db["ThingTypes"][type]["TT_NAME"] + " without some wood in your inventory.") return @@ -685,6 +685,9 @@ def play_use(str_arg): if not world_db["MAP"][pos] == ord("."): log("Can only make soil out of NON-SOIL earth.") return + elif world_db["ThingTypes"][type]["TT_TOOL"] == "wood": + log("To use wood, you NEED a carpentry tool.") + return elif type != world_db["SLIPPERS"] and not \ world_db["ThingTypes"][type]["TT_TOOL"] == "food": log("You CAN'T consume this thing.")