diff --git a/code/modules/hydroponics/beekeeping/beebox.dm b/code/modules/hydroponics/beekeeping/beebox.dm index ef3fa5d10dc..8e9eefc947e 100644 --- a/code/modules/hydroponics/beekeeping/beebox.dm +++ b/code/modules/hydroponics/beekeeping/beebox.dm @@ -123,22 +123,22 @@ ..() if(!queen_bee) - user << "There is no queen bee! There won't bee any honeycomb without a queen!" + to_chat(user, "There is no queen bee! There won't bee any honeycomb without a queen!") var/half_bee = get_max_bees()*0.5 if(half_bee && (bees.len >= half_bee)) - user << "This place is a BUZZ with activity... there are lots of bees!" + to_chat(user, "This place is a BUZZ with activity... there are lots of bees!") - user << "[bee_resources]/100 resource supply." - user << "[bee_resources]% towards a new honeycomb." - user << "[bee_resources*2]% towards a new bee." + to_chat(user, "[bee_resources]/100 resource supply.") + to_chat(user, "[bee_resources]% towards a new honeycomb.") + to_chat(user, "[bee_resources*2]% towards a new bee.") if(honeycombs.len) var/plural = honeycombs.len > 1 - user << "There [plural? "are" : "is"] [honeycombs.len] uncollected honeycomb[plural ? "s":""] in the apiary." + to_chat(user, "There [plural? "are" : "is"] [honeycombs.len] uncollected honeycomb[plural ? "s":""] in the apiary.") if(honeycombs.len >= get_max_honeycomb()) - user << "there's no room for more honeycomb!" + to_chat(user, "there's no room for more honeycomb!") /obj/structure/beebox/attackby(obj/item/I, mob/user, params) @@ -150,7 +150,7 @@ HF.loc = src honey_frames += HF else - user << "There's no room for anymore frames in the apiary!" + to_chat(user, "There's no room for anymore frames in the apiary!") if(istype(I, /obj/item/weapon/wrench)) if(default_unfasten_wrench(user, I, time = 20)) @@ -158,7 +158,7 @@ if(istype(I, /obj/item/queen_bee)) if(queen_bee) - user << "This hive already has a queen!" + to_chat(user, "This hive already has a queen!") return var/obj/item/queen_bee/qb = I @@ -181,10 +181,10 @@ B.loc = get_turf(src) relocated++ if(relocated) - user << "This queen has a different reagent to some of the bees who live here, those bees will not return to this apiary!" + to_chat(user, "This queen has a different reagent to some of the bees who live here, those bees will not return to this apiary!") else - user << "The queen bee disappeared! bees disappearing has been in the news lately..." + to_chat(user, "The queen bee disappeared! bees disappearing has been in the news lately...") qdel(qb) @@ -211,7 +211,7 @@ switch(option) if("Remove a Honey Frame") if(!honey_frames.len) - user << "There are no honey frames to remove!" + to_chat(user, "There are no honey frames to remove!") return var/obj/item/honey_frame/HF = pick_n_take(honey_frames) @@ -234,7 +234,7 @@ if("Remove the Queen Bee") if(!queen_bee || queen_bee.loc != src) - user << "There is no queen bee to remove!" + to_chat(user, "There is no queen bee to remove!") return var/obj/item/queen_bee/QB = new() queen_bee.loc = QB diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index d7039c29df3..1f48cf69adf 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -165,7 +165,8 @@ return if(closed_system) - if(user) user << "You can't harvest from the plant while the lid is shut." + if(user) + to_chat(user, "You can't harvest from the plant while the lid is shut.") return if(user) @@ -198,7 +199,7 @@ if(!user || !dead) return if(closed_system) - user << "You can't remove the dead plant while the lid is shut." + to_chat(user, "You can't remove the dead plant while the lid is shut.") return seed = null @@ -210,7 +211,7 @@ yield_mod = 0 mutation_mod = 0 - user << "You remove the dead plant." + to_chat(user, "You remove the dead plant.") check_health() return @@ -338,11 +339,11 @@ set src in view(1) if(labelled) - usr << "You remove the label." + to_chat(usr, "You remove the label.") labelled = null update_icon() else - usr << "There is no label to remove." + to_chat(usr, "There is no label to remove.") return /obj/machinery/portable_atmospherics/hydroponics/verb/setlight() @@ -353,7 +354,7 @@ var/new_light = input("Specify a light level.") as null|anything in list(0,1,2,3,4,5,6,7,8,9,10) if(new_light) tray_light = new_light - usr << "You set the tray to a light level of [tray_light] lumens." + to_chat(usr, "You set the tray to a light level of [tray_light] lumens.") /obj/machinery/portable_atmospherics/hydroponics/proc/check_level_sanity() //Make sure various values are sane. @@ -400,7 +401,7 @@ if(istype(O, /obj/item/weapon/crowbar)) if(anchored==2) - user << "Unscrew the hoses first!" + to_chat(user, "Unscrew the hoses first!") return default_deconstruction_crowbar(O, 1) @@ -412,11 +413,11 @@ var/obj/item/weapon/reagent_containers/glass/C = O //Check if container is empty if(!C.reagents.total_volume) - user << "\red [C] is empty." + to_chat(user, "\red [C] is empty.") return //Container not empty, transfer contents to tray var/trans = C.reagents.trans_to(src, C.amount_per_transfer_from_this) - user << "\blue You transfer [trans] units of the solution to [src]." + to_chat(user, "\blue You transfer [trans] units of the solution to [src].") check_level_sanity() process_reagents() @@ -429,7 +430,7 @@ toxins += P.toxicity pestlevel -= P.pest_kill_str weedlevel -= P.weed_kill_str - user << "You spray [src] with [O]." + to_chat(user, "You spray [src] with [O].") playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6) qdel(O) @@ -442,7 +443,7 @@ user.drop_item(O) toxins += W.toxicity weedlevel -= W.weed_kill_str - user << "You spray [src] with [O]." + to_chat(user, "You spray [src] with [O].") playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6) qdel(O) @@ -455,7 +456,7 @@ //Check if there is a plant in the tray if(seed) if(!S.reagents.total_volume) - user << "\red [S] is empty." + to_chat(user, "\red [S] is empty.") return //Container not empty, transfer contents to tray S.reagents.trans_to(src, S.amount_per_transfer_from_this) @@ -464,20 +465,20 @@ check_level_sanity() update_icon() else - user << "There's nothing in [src] to spray!" + to_chat(user, "There's nothing in [src] to spray!") else if(istype(O, /obj/item/weapon/screwdriver) && unwrenchable) //THIS NEED TO BE DONE DIFFERENTLY, SOMEONE REFACTOR THE TRAY CODE ALREADY if(anchored) if(anchored == 2) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) anchored = 1 - user << "You unscrew the [src]'s hoses." + to_chat(user, "You unscrew the [src]'s hoses.") panel_open = 0 else if(anchored == 1) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) anchored = 2 - user << "You screw in the [src]'s hoses." + to_chat(user, "You screw in the [src]'s hoses.") panel_open = 1 for(var/obj/machinery/portable_atmospherics/hydroponics/h in range(1,src)) @@ -487,15 +488,15 @@ if(istype(O, /obj/item/weapon/wirecutters) || istype(O, /obj/item/weapon/scalpel)) if(!seed) - user << "There is nothing to take a sample from in \the [src]." + to_chat(user, "There is nothing to take a sample from in \the [src].") return if(sampled) - user << "You have already sampled from this plant." + to_chat(user, "You have already sampled from this plant.") return if(dead) - user << "The plant is dead." + to_chat(user, "The plant is dead.") return // Create a sample. @@ -520,14 +521,14 @@ if(seed) return ..() else - user << "There's no plant to inject." + to_chat(user, "There's no plant to inject.") return 1 else if(seed) //Leaving this in in case we want to extract from plants later. - user << "You can't get any extract out of this plant." + to_chat(user, "You can't get any extract out of this plant.") else - user << "There's nothing to draw something from." + to_chat(user, "There's nothing to draw something from.") return 1 else if (istype(O, /obj/item/seeds)) @@ -538,11 +539,11 @@ user.drop_item(O) if(!S.seed) - user << "The packet seems to be empty. You throw it away." + to_chat(user, "The packet seems to be empty. You throw it away.") qdel(O) return - user << "You plant the [S.seed.seed_name] [S.seed.seed_noun]." + to_chat(user, "You plant the [S.seed.seed_name] [S.seed.seed_noun].") seed = S.seed //Grab the seed datum. dead = 0 age = 1 @@ -556,7 +557,7 @@ check_health() else - user << "\The [src] already has seeds in it!" + to_chat(user, "\The [src] already has seeds in it!") else if (istype(O, /obj/item/weapon/minihoe)) // The minihoe @@ -565,7 +566,7 @@ weedlevel = 0 update_icon() else - user << "This plot is completely devoid of weeds. It doesn't need uprooting." + to_chat(user, "This plot is completely devoid of weeds. It doesn't need uprooting.") else if (istype(O, /obj/item/weapon/storage/bag/plants)) @@ -585,11 +586,11 @@ playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) anchored = !anchored - user << "You [anchored ? "wrench" : "unwrench"] \the [src]." + to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") else if ((istype(O, /obj/item/weapon/tank) && !( src.destroyed ))) if (src.holding) - user << "\blue There is alreadu a tank loaded into the [src]." + to_chat(user, "\blue There is alreadu a tank loaded into the [src].") return var/obj/item/weapon/tank/T = O user.drop_item() @@ -624,26 +625,26 @@ ..(user) if(!seed) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return - user << "[seed.display_name] are growing here." + to_chat(user, "[seed.display_name] are growing here.") if(!Adjacent(user)) return - user << "Water: [round(waterlevel,0.1)]/[maxwater]" - user << "Nutrient: [round(nutrilevel,0.1)]/[maxnutri]" + to_chat(user, "Water: [round(waterlevel,0.1)]/[maxwater]") + to_chat(user, "Nutrient: [round(nutrilevel,0.1)]/[maxnutri]") if(weedlevel >= 5) - user << "\The [src] is infested with weeds!" + to_chat(user, "\The [src] is infested with weeds!") if(pestlevel >= 5) - user << "\The [src] is infested with tiny worms!" + to_chat(user, "\The [src] is infested with tiny worms!") if(dead) - user << "The plant is dead." + to_chat(user, "The plant is dead.") else if(health <= (seed.get_trait(TRAIT_ENDURANCE)/ 2)) - user << "The plant looks unhealthy." + to_chat(user, "The plant looks unhealthy.") if(mechanical) var/turf/T = loc @@ -671,7 +672,7 @@ light_available = 5 light_string = "a light level of [light_available] lumens" - user << "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K." + to_chat(user, "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K.") /obj/machinery/portable_atmospherics/hydroponics/verb/close_lid_verb() set name = "Toggle Tray Lid" @@ -684,7 +685,7 @@ return closed_system = !closed_system - user << "You [closed_system ? "close" : "open"] the tray's lid." + to_chat(user, "You [closed_system ? "close" : "open"] the tray's lid.") update_icon() /obj/machinery/portable_atmospherics/hydroponics/verb/eject_tank_verb() @@ -698,9 +699,9 @@ return if(!holding) - usr << "\red There is no tank loaded into [src] to eject." + to_chat(usr, "\red There is no tank loaded into [src] to eject.") if(istype(holding, /obj/item/weapon/tank)) - usr << "\blue You eject [holding.name] from [src]." + to_chat(usr, "\blue You eject [holding.name] from [src].") holding.loc = loc holding = null