diff --git a/code/ATMOSPHERICS/atmospherics.dm b/code/ATMOSPHERICS/atmospherics.dm index 3686bc46d2f..af0889a6e5c 100644 --- a/code/ATMOSPHERICS/atmospherics.dm +++ b/code/ATMOSPHERICS/atmospherics.dm @@ -153,7 +153,7 @@ Pipelines + Other Objects -> Pipe network if(can_unwrench && istype(W, /obj/item/weapon/wrench)) var/turf/T = get_turf(src) if (level == 1 && isturf(T) && T.intact) - user << "You must remove the plating first." + to_chat(user, "You must remove the plating first.") return 1 var/datum/gas_mixture/int_air = return_air() var/datum/gas_mixture/env_air = loc.return_air() @@ -163,9 +163,9 @@ Pipelines + Other Objects -> Pipe network var/internal_pressure = int_air.return_pressure()-env_air.return_pressure() playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "You begin to unfasten \the [src]..." + to_chat(user, "You begin to unfasten \the [src]...") if (internal_pressure > 2*ONE_ATMOSPHERE) - user << "As you begin unwrenching \the [src] a gush of air blows in your face... maybe you should reconsider?" + to_chat(user, "As you begin unwrenching \the [src] a gush of air blows in your face... maybe you should reconsider?") unsafe_wrenching = TRUE //Oh dear oh dear if (do_after(user, 40, target = src) && isnull(gcDestroyed)) diff --git a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm index 9fe7885c052..93bed0168c1 100644 --- a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm +++ b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm @@ -134,7 +134,7 @@ return src.add_fingerprint(usr) if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return usr.set_machine(src) interact(user) @@ -158,7 +158,7 @@ if (!istype(W, /obj/item/weapon/wrench)) return ..() if (on) - user << "You cannot unwrench this [src], turn it off first." + to_chat(user, "You cannot unwrench this [src], turn it off first.") return 1 return ..() \ No newline at end of file diff --git a/code/ATMOSPHERICS/components/binary_devices/pump.dm b/code/ATMOSPHERICS/components/binary_devices/pump.dm index f091135940b..9ef395e3291 100644 --- a/code/ATMOSPHERICS/components/binary_devices/pump.dm +++ b/code/ATMOSPHERICS/components/binary_devices/pump.dm @@ -157,7 +157,7 @@ Thus, the two variables affect pump operation are set in New(): return src.add_fingerprint(usr) if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return usr.set_machine(src) interact(user) @@ -188,6 +188,6 @@ Thus, the two variables affect pump operation are set in New(): if (!istype(W, /obj/item/weapon/wrench)) return ..() if (!(stat & NOPOWER) && on) - user << "You cannot unwrench this [src], turn it off first." + to_chat(user, "You cannot unwrench this [src], turn it off first.") return 1 return ..() \ No newline at end of file diff --git a/code/ATMOSPHERICS/components/binary_devices/valve.dm b/code/ATMOSPHERICS/components/binary_devices/valve.dm index a46382ab085..1c0f625e036 100644 --- a/code/ATMOSPHERICS/components/binary_devices/valve.dm +++ b/code/ATMOSPHERICS/components/binary_devices/valve.dm @@ -74,7 +74,7 @@ if(!powered()) return if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return ..() diff --git a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm index c697251bc44..e0acb101a96 100644 --- a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm +++ b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm @@ -147,7 +147,7 @@ Thus, the two variables affect pump operation are set in New(): return src.add_fingerprint(usr) if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return usr.set_machine(src) interact(user) @@ -178,6 +178,6 @@ Thus, the two variables affect pump operation are set in New(): if (!istype(W, /obj/item/weapon/wrench)) return ..() if (!(stat & NOPOWER) && on) - user << "You cannot unwrench this [src], turn it off first." + to_chat(user, "You cannot unwrench this [src], turn it off first.") return 1 return ..() \ No newline at end of file diff --git a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm index f1241079ad3..89bec1b0614 100644 --- a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm +++ b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm @@ -104,11 +104,11 @@ int_pressure += P.air.return_pressure() var/datum/gas_mixture/env_air = loc.return_air() if ((int_pressure - env_air.return_pressure()) > 2*ONE_ATMOSPHERE) - user << "You cannot unwrench [src], it is too exerted due to internal pressure." + to_chat(user, "You cannot unwrench [src], it is too exerted due to internal pressure.") add_fingerprint(user) return 1 playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "You begin to unfasten \the [src]..." + to_chat(user, "You begin to unfasten \the [src]...") if(do_after(user, 40, target = src)) user.visible_message( \ "[user] unfastens \the [src].", \ diff --git a/code/ATMOSPHERICS/components/trinary_devices/filter.dm b/code/ATMOSPHERICS/components/trinary_devices/filter.dm index 7ec6d70d119..f26ae014a27 100755 --- a/code/ATMOSPHERICS/components/trinary_devices/filter.dm +++ b/code/ATMOSPHERICS/components/trinary_devices/filter.dm @@ -153,7 +153,7 @@ Filter types: return if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return var/dat diff --git a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm index 5d33e3cb605..e54815299ef 100644 --- a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm +++ b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm @@ -114,7 +114,7 @@ return src.add_fingerprint(usr) if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return usr.set_machine(src) var/dat = {"Power: [on?"On":"Off"]
diff --git a/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm b/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm index 16df97b6ea6..2195bab16d8 100644 --- a/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm +++ b/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm @@ -135,7 +135,7 @@ if(!powered()) return if(!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return ..() diff --git a/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm b/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm index 92bdee806bf..1b106c12a1c 100644 --- a/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm +++ b/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm @@ -171,7 +171,7 @@ return 1 if(istype(W, /obj/item/weapon/wrench)) if (!(stat & NOPOWER) && on) - user << "You cannot unwrench this [src], turn if off first." + to_chat(user, "You cannot unwrench this [src], turn if off first.") return 1 return ..() diff --git a/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm b/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm index b9399f42e6c..8df6fec3cdf 100644 --- a/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm +++ b/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm @@ -36,7 +36,7 @@ /obj/machinery/atmospherics/unary/portables_connector/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob, params) if(istype(W, /obj/item/weapon/wrench)) if(connected_device) - user << "You cannot unwrench this [src], detach [connected_device] first." + to_chat(user, "You cannot unwrench this [src], detach [connected_device] first.") return 1 return ..() diff --git a/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm b/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm index 3366777a081..636f549d6d2 100644 --- a/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm +++ b/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm @@ -322,7 +322,7 @@ if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if (WT.remove_fuel(0,user)) - user << "Now welding the vent." + to_chat(user, "Now welding the vent.") if(do_after(user, 20, target = src)) if(!src || !WT.isOn()) return playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) @@ -336,19 +336,19 @@ update_icon() else - user << "The welding tool needs to be on to start this task." + to_chat(user, "The welding tool needs to be on to start this task.") else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return 1 if(istype(W, /obj/item/weapon/screwdriver)) if(!welded) if(open) - user << " Now closing the vent." + to_chat(user, " Now closing the vent.") if (do_after(user, 20, target = src)) open = 0 user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.") else - user << " Now opening the vent." + to_chat(user, " Now opening the vent.") if (do_after(user, 20, target = src)) open = 1 user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.") @@ -359,16 +359,16 @@ user.drop_item(W) W.forceMove(src) if(!open) - user << "You can't shove that down there when it is closed" + to_chat(user, "You can't shove that down there when it is closed") else - user << "The vent is welded." + to_chat(user, "The vent is welded.") return if(istype(W, /obj/item/device/multitool)) update_multitool_menu(user) return 1 if (istype(W, /obj/item/weapon/wrench)) if (!(stat & NOPOWER) && on) - user << "You cannot unwrench this [src], turn it off first." + to_chat(user, "You cannot unwrench this [src], turn it off first.") return 1 return ..() @@ -383,7 +383,7 @@ /obj/machinery/atmospherics/unary/vent_pump/examine(mob/user) ..(user) if(welded) - user << "It seems welded shut." + to_chat(user, "It seems welded shut.") /obj/machinery/atmospherics/unary/vent_pump/power_change() var/old_stat = stat diff --git a/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm index cc62e860bde..cd8a88b12f5 100644 --- a/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm +++ b/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm @@ -58,7 +58,7 @@ /obj/machinery/atmospherics/unary/vent_pump/examine(mob/user) ..(user) if(welded) - user << "It seems welded shut." + to_chat(user, "It seems welded shut.") /obj/machinery/atmospherics/unary/vent_scrubber/auto_use_power() if(!powered(power_channel)) @@ -372,7 +372,7 @@ if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if (WT.remove_fuel(0,user)) - user << "Now welding the scrubber." + to_chat(user, "Now welding the scrubber.") if(do_after(user, 20, target = src)) if(!src || !WT.isOn()) return playsound(get_turf(src), 'sound/items/Welder2.ogg', 50, 1) @@ -385,17 +385,17 @@ welded = 0 update_icon() else - user << "The welding tool needs to be on to start this task." + to_chat(user, "The welding tool needs to be on to start this task.") return 1 else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return 1 if(istype(W, /obj/item/device/multitool)) update_multitool_menu(user) return 1 if (istype(W, /obj/item/weapon/wrench)) if (!(stat & NOPOWER) && on) - user << "You cannot unwrench this [src], turn it off first." + to_chat(user, "You cannot unwrench this [src], turn it off first.") return 1 return ..() diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm index d804dcb06a9..27f3537d521 100644 --- a/code/__HELPERS/files.dm +++ b/code/__HELPERS/files.dm @@ -39,7 +39,7 @@ var/extension = copytext(path,-4,0) if( !fexists(path) || !(extension in valid_extensions) ) - src << "Error: browse_files(): File not found/Invalid file([path])." + to_chat(src, "Error: browse_files(): File not found/Invalid file([path]).") return return path @@ -53,7 +53,7 @@ /client/proc/file_spam_check() var/time_to_wait = fileaccess_timer - world.time if(time_to_wait > 0) - src << "Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds." + to_chat(src, "Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds.") return 1 fileaccess_timer = world.time + FTPDELAY return 0 diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index 26469903558..b386fce364f 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -486,17 +486,18 @@ proc/pollCandidates(var/Question, var/be_special_type, var/antag_age_check = 0, if(G.has_enabled_antagHUD) continue spawn(0) - G << 'sound/misc/notice2.ogg' //Alerting them to their consideration + G << 'sound/misc/notice2.ogg'//Alerting them to their consideration + switch(alert(G,Question,"Please answer in [poll_time/10] seconds!","Yes","No")) if("Yes") - G << "Choice registered: Yes." + to_chat(G, "Choice registered: Yes.") if((world.time-time_passed)>poll_time)//If more than 30 game seconds passed. - G << "Sorry, you were too late for the consideration!" + to_chat(G, "Sorry, you were too late for the consideration!") G << 'sound/machines/buzz-sigh.ogg' return candidates += G if("No") - G << "Choice registered: No." + to_chat(G, "Choice registered: No.") return else return diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 35b82c2fae3..36bb824e642 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -58,7 +58,7 @@ var/list/L = chemical_reactions_list[reaction] for(var/t in L) . += " has: [t]\n" - world << . + to_chat(world, .) */ diff --git a/code/__HELPERS/icon_smoothing.dm b/code/__HELPERS/icon_smoothing.dm index 3cddd31313b..5ae2ddb07a8 100644 --- a/code/__HELPERS/icon_smoothing.dm +++ b/code/__HELPERS/icon_smoothing.dm @@ -46,13 +46,16 @@ if(istype(AM)) if(AM.anchored) adjacencies |= 1 << direction + else if(AM) adjacencies |= 1 << direction + else for(var/direction in alldirs) if(find_type_in_direction(A, direction)) adjacencies |= 1 << direction + return adjacencies /proc/smooth_icon(atom/A) diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm index bcfe46bc138..4c2517d9617 100644 --- a/code/__HELPERS/icons.dm +++ b/code/__HELPERS/icons.dm @@ -167,7 +167,7 @@ mob Output_Icon() set name = "2. Output Icon" - src<<"Icon is: \icon[getFlatIcon(src)]" + to_chat(src, "Icon is: \icon[getFlatIcon(src)]") Label_Icon() set name = "3. Label Icon" diff --git a/code/__HELPERS/logging.dm b/code/__HELPERS/logging.dm index 5e0a79887da..09830792201 100644 --- a/code/__HELPERS/logging.dm +++ b/code/__HELPERS/logging.dm @@ -31,7 +31,7 @@ for(var/client/C in admins) if(check_rights(R_DEBUG, 0, C.mob) && (C.prefs.toggles & CHAT_DEBUGLOGS)) - C << "DEBUG: [text]" + to_chat(C, "DEBUG: [text]") /proc/log_game(text) @@ -90,5 +90,5 @@ * Standardized method for tracking startup times. */ /proc/log_startup_progress(var/message) - world << "[message]" + to_chat(world, "[message]") log_to_dd(message) \ No newline at end of file diff --git a/code/__HELPERS/names.dm b/code/__HELPERS/names.dm index 70c597c2d7b..be0b6bbf245 100644 --- a/code/__HELPERS/names.dm +++ b/code/__HELPERS/names.dm @@ -239,7 +239,7 @@ var/syndicate_code_response//Code response for traitors. set name = "Generate Code Phrase" set category = "Debug" - world << "\red Code Phrase is: \black [generate_code_phrase()]" + to_chat(world, "\red Code Phrase is: \black [generate_code_phrase()]") return diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index f5e577f8b8a..33a815f2443 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -251,7 +251,7 @@ Turf and target are seperate in case you want to teleport some distance from a t var/pressure = air_contents.return_pressure() var/total_moles = air_contents.total_moles() - user << "Results of analysis of \icon[icon] [target]." + to_chat(user, "Results of analysis of \icon[icon] [target].") if(total_moles>0) var/o2_concentration = air_contents.oxygen/total_moles var/n2_concentration = air_contents.nitrogen/total_moles @@ -260,16 +260,16 @@ Turf and target are seperate in case you want to teleport some distance from a t var/unknown_concentration = 1-(o2_concentration+n2_concentration+co2_concentration+plasma_concentration) - user << "Pressure: [round(pressure,0.1)] kPa" - user << "Nitrogen: [round(n2_concentration*100)] %" - user << "Oxygen: [round(o2_concentration*100)] %" - user << "CO2: [round(co2_concentration*100)] %" - user << "Plasma: [round(plasma_concentration*100)] %" + to_chat(user, "Pressure: [round(pressure,0.1)] kPa") + to_chat(user, "Nitrogen: [round(n2_concentration*100)] %") + to_chat(user, "Oxygen: [round(o2_concentration*100)] %") + to_chat(user, "CO2: [round(co2_concentration*100)] %") + to_chat(user, "Plasma: [round(plasma_concentration*100)] %") if(unknown_concentration>0.01) - user << "Unknown: [round(unknown_concentration*100)] %" - user << "Temperature: [round(air_contents.temperature-T0C)] °C" + to_chat(user, "Unknown: [round(unknown_concentration*100)] %") + to_chat(user, "Temperature: [round(air_contents.temperature-T0C)] °C") else - user << "[target] is empty!" + to_chat(user, "[target] is empty!") return //Picks a string of symbols to display as the law number for hacked or ion laws @@ -1665,4 +1665,8 @@ var/global/list/g_fancy_list_of_types = null var/value = L[key] if(findtext("[key]", filter) || findtext("[value]", filter)) matches[key] = value - return matches + return matches + +// Use this to send to a client's chat, no exceptions (except this proc itself). +/proc/to_chat(var/thing, var/output) + thing << output diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index c0fb6204fe6..d135e62ae69 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -332,10 +332,10 @@ var/turf/U = get_turf(A) var/obj/structure/cable/cable = locate() in T if(!cable || !istype(cable)) - src << "There is no cable here to power the gloves." + to_chat(src, "There is no cable here to power the gloves.") return if(world.time < G.next_shock) - src << "[G] aren't ready to shock again!" + to_chat(src, "[G] aren't ready to shock again!") return src.visible_message("[name] fires an arc of electricity!", \ "You fire an arc of electricity!", \ diff --git a/code/_onclick/click_override.dm b/code/_onclick/click_override.dm index 82cc807d91b..092398ee174 100644 --- a/code/_onclick/click_override.dm +++ b/code/_onclick/click_override.dm @@ -27,10 +27,10 @@ /obj/item/weapon/badminBook/attack_self(mob/living/user as mob) if(user.middleClickOverride) - user<< "You try to draw power from the [src], but you cannot hold the power at this time!" + to_chat(user, "You try to draw power from the [src], but you cannot hold the power at this time!") return user.middleClickOverride = clickBehavior - user << "You draw a bit of power from the [src], you can use middle click or alt click to release the power!" + to_chat(user, "You draw a bit of power from the [src], you can use middle click or alt click to release the power!") /datum/middleClickOverride/badminClicker var/summon_path = /obj/item/weapon/reagent_containers/food/snacks/cookie @@ -38,6 +38,6 @@ /datum/middleClickOverride/badminClicker/onClick(var/atom/A, var/mob/living/user) var/atom/movable/newObject = new summon_path newObject.loc = get_turf(A) - user << "You release the power you had stored up, summoning \a [newObject.name]! " + to_chat(user, "You release the power you had stored up, summoning \a [newObject.name]! ") usr.loc.visible_message("[user] waves \his hand and summons \a [newObject.name]") ..() \ No newline at end of file diff --git a/code/_onclick/cyborg.dm b/code/_onclick/cyborg.dm index 6fd00ba1f17..ecb7f00cd8b 100644 --- a/code/_onclick/cyborg.dm +++ b/code/_onclick/cyborg.dm @@ -53,7 +53,7 @@ if(is_component_functioning("camera")) aiCamera.captureimage(A, usr) else - src << "Your camera isn't functional." + to_chat(src, "Your camera isn't functional.") return /* diff --git a/code/_onclick/hud/action.dm b/code/_onclick/hud/action.dm index 4461e1c8539..0a891be21f5 100644 --- a/code/_onclick/hud/action.dm +++ b/code/_onclick/hud/action.dm @@ -279,12 +279,12 @@ /datum/action/scan_mode/Activate() active = 1 owner.research_scanner = 1 - owner << " Research analyzer is now active." + to_chat(owner, " Research analyzer is now active.") /datum/action/scan_mode/Deactivate() active = 0 owner.research_scanner = 0 - owner << " Research analyzer deactivated." + to_chat(owner, " Research analyzer deactivated.") /datum/action/scan_mode/Grant(mob/living/T) devices += 1 diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm index 6d5da0da58e..fa414ba0dea 100644 --- a/code/_onclick/hud/hud.dm +++ b/code/_onclick/hud/hud.dm @@ -195,6 +195,6 @@ datum/hud/New(mob/owner) //hud_used.reorganize_alerts() else - usr << "\red Inventory hiding is currently only supported for human mobs, sorry." + to_chat(usr, "\red Inventory hiding is currently only supported for human mobs, sorry.") else - usr << "\red This mob type does not use a HUD." + to_chat(usr, "\red This mob type does not use a HUD.") diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm index b83bfcf411a..8e729546b20 100644 --- a/code/_onclick/hud/robot.dm +++ b/code/_onclick/hud/robot.dm @@ -246,11 +246,11 @@ r.client.screen += r.throw_icon //"store" icon if(!r.module) - usr << "\red No module selected" + to_chat(usr, "\red No module selected") return if(!r.module.modules) - usr << "\red Selected module has no modules to select" + to_chat(usr, "\red Selected module has no modules to select") return if(!r.robot_modules_background) diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 68ed970a55d..3ab8f58fd99 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -95,7 +95,7 @@ if(!C.stat && !C.stunned && !C.paralysis && !C.restrained()) if(C.internal) C.internal = null - C << "No longer running on internals." + to_chat(C, "No longer running on internals.") if(C.internals) C.internals.icon_state = "internal0" else @@ -108,7 +108,7 @@ no_mask = 1 if(no_mask) - C << "You are not wearing a suitable mask or helmet." + to_chat(C, "You are not wearing a suitable mask or helmet.") return 1 else var/list/nicename = null @@ -189,7 +189,7 @@ //We've determined the best container now we set it as our internals if(best) - C << "You are now running on internals from [tankcheck[best]] [from] your [nicename[best]]." + to_chat(C, "You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].") C.internal = tankcheck[best] @@ -197,7 +197,7 @@ if(C.internals) C.internals.icon_state = "internal1" else - C << "You don't have a[breathes=="oxygen" ? "n oxygen" : addtext(" ",breathes)] tank." + to_chat(C, "You don't have a[breathes=="oxygen" ? "n oxygen" : addtext(" ",breathes)] tank.") /obj/screen/mov_intent name = "run/walk toggle" @@ -208,7 +208,7 @@ if(iscarbon(usr)) var/mob/living/carbon/C = usr if(C.legcuffed) - C << "You are legcuffed! You cannot run until you get [C.legcuffed] removed!" + to_chat(C, "You are legcuffed! You cannot run until you get [C.legcuffed] removed!") C.m_intent = "walk" //Just incase C.hud_used.move_intent.icon_state = "walking" return 1 @@ -370,7 +370,7 @@ if(gun_click_time > world.time - 30) //give them 3 seconds between mode changes. return if(!istype(usr.get_active_hand(), /obj/item/weapon/gun)) - usr << "You need your gun in your active hand to do that!" + to_chat(usr, "You need your gun in your active hand to do that!") return usr.client.AllowTargetClick() gun_click_time = world.time diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index cee8ad99533..d71d0205b89 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -17,7 +17,7 @@ user.changeNext_move(CLICK_CD_MELEE) if(stat == DEAD && !isnull(butcher_results)) //can we butcher it? if(istype(I, /obj/item/weapon/kitchen/knife)) - user << "You begin to butcher [src]..." + to_chat(user, "You begin to butcher [src]...") playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1) if(do_mob(user, src, 80)) harvest(user) @@ -79,7 +79,7 @@ if(istype(M, /mob/living/carbon/slime)) var/mob/living/carbon/slime/slime = M if(prob(25)) - user << "\red [src] passes right through [M]!" + to_chat(user, "\red [src] passes right through [M]!") return if(power > 0) @@ -162,7 +162,7 @@ if(!showname && user) if(user.client) - user << "\red You attack [M] with [src]. " + to_chat(user, "\red You attack [M] with [src]. ") @@ -184,7 +184,7 @@ if("fire") if (!(RESIST_COLD in M.mutations)) M.take_organ_damage(0, power) - M << "Aargh it burns!" + to_chat(M, "Aargh it burns!") M.updatehealth() add_fingerprint(user) return 1 diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index 891601d2d51..869ee83ff9c 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -61,10 +61,10 @@ if(awaygate) user.forceMove(awaygate.loc) else - user << "[src] has no destination." + to_chat(user, "[src] has no destination.") /obj/machinery/gateway/centeraway/attack_ghost(mob/user as mob) if(stationgate) user.forceMove(stationgate.loc) else - user << "[src] has no destination." + to_chat(user, "[src] has no destination.") diff --git a/code/_onclick/oldcode.dm b/code/_onclick/oldcode.dm index 17fb1005fa6..b3f2c1dde05 100644 --- a/code/_onclick/oldcode.dm +++ b/code/_onclick/oldcode.dm @@ -138,7 +138,7 @@ else t5 = in_range(src, usr) || src.loc == usr -// world << "according to dblclick(), t5 is [t5]" +// to_chat(world, "according to dblclick(), t5 is [t5]") // ------- ACTUALLY DETERMINING STUFF ------- if (((t5 || (W && (W.flags & USEDELAY))) && !( istype(src, /obj/screen) ))) diff --git a/code/_onclick/rig.dm b/code/_onclick/rig.dm index cf3fcd3313a..31e6f287564 100644 --- a/code/_onclick/rig.dm +++ b/code/_onclick/rig.dm @@ -18,15 +18,15 @@ switch(hardsuit_click_mode) if(MIDDLE_CLICK) - src << "Hardsuit activation mode set to middle-click." + to_chat(src, "Hardsuit activation mode set to middle-click.") if(ALT_CLICK) - src << "Hardsuit activation mode set to alt-click." + to_chat(src, "Hardsuit activation mode set to alt-click.") if(CTRL_CLICK) - src << "Hardsuit activation mode set to control-click." + to_chat(src, "Hardsuit activation mode set to control-click.") else // should never get here, but just in case: log_debug("Bad hardsuit click mode: [hardsuit_click_mode] - expected 0 to [MAX_HARDSUIT_CLICK_MODE]") - src << "Somehow you bugged the system. Setting your hardsuit mode to middle-click." + to_chat(src, "Somehow you bugged the system. Setting your hardsuit mode to middle-click.") hardsuit_click_mode = MIDDLE_CLICK /mob/living/MiddleClickOn(atom/A) diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm index 9b4dd88e67e..ee953edac3f 100644 --- a/code/_onclick/telekinesis.dm +++ b/code/_onclick/telekinesis.dm @@ -111,7 +111,7 @@ var/const/tk_maxrange = 15 if(focus) d = max(d,get_dist(user,focus)) // whichever is further if(d > tk_maxrange) - user << "Your mind won't reach that far." + to_chat(user, "Your mind won't reach that far.") return if(!focus) diff --git a/code/controllers/Processes/inactivity.dm b/code/controllers/Processes/inactivity.dm index 57e82348572..b08df7983fc 100644 --- a/code/controllers/Processes/inactivity.dm +++ b/code/controllers/Processes/inactivity.dm @@ -8,7 +8,7 @@ if(C.is_afk(INACTIVITY_KICK)) if(!istype(C.mob, /mob/dead)) log_access("AFK: [key_name(C)]") - C << "You have been inactive for more than 10 minutes and have been disconnected." + to_chat(C, "You have been inactive for more than 10 minutes and have been disconnected.") del(C) SCHECK diff --git a/code/controllers/Processes/shuttles.dm b/code/controllers/Processes/shuttles.dm index f16d5b1c396..e92def92224 100644 --- a/code/controllers/Processes/shuttles.dm +++ b/code/controllers/Processes/shuttles.dm @@ -92,30 +92,30 @@ var/const/CALL_SHUTTLE_REASON_LENGTH = 12 return if(world.time - round_start_time < config.shuttle_refuel_delay) - user << "The emergency shuttle is refueling. Please wait another [abs(round(((world.time - round_start_time) - config.shuttle_refuel_delay)/600))] minutes before trying again." + to_chat(user, "The emergency shuttle is refueling. Please wait another [abs(round(((world.time - round_start_time) - config.shuttle_refuel_delay)/600))] minutes before trying again.") return switch(emergency.mode) if(SHUTTLE_RECALL) - user << "The emergency shuttle may not be called while returning to Centcom." + to_chat(user, "The emergency shuttle may not be called while returning to Centcom.") return if(SHUTTLE_CALL) - user << "The emergency shuttle is already on its way." + to_chat(user, "The emergency shuttle is already on its way.") return if(SHUTTLE_DOCKED) - user << "The emergency shuttle is already here." + to_chat(user, "The emergency shuttle is already here.") return if(SHUTTLE_ESCAPE) - user << "The emergency shuttle is moving away to a safe distance." + to_chat(user, "The emergency shuttle is moving away to a safe distance.") return if(SHUTTLE_STRANDED) - user << "The emergency shuttle has been disabled by Centcom." + to_chat(user, "The emergency shuttle has been disabled by Centcom.") return call_reason = trim(html_encode(call_reason)) if(length(call_reason) < CALL_SHUTTLE_REASON_LENGTH) - user << "You must provide a reason." + to_chat(user, "You must provide a reason.") return var/area/signal_origin = get_area(user) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 2d98b267f95..9cf42a511fd 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -688,7 +688,7 @@ var/list/datum/game_mode/runnable_modes = new for (var/T in subtypesof(/datum/game_mode)) var/datum/game_mode/M = new T() - //world << "DEBUG: [T], tag=[M.config_tag], prob=[probabilities[M.config_tag]]" +// to_chat(world, "DEBUG: [T], tag=[M.config_tag], prob=[probabilities[M.config_tag]]") if (!(M.config_tag in modes)) qdel(M) continue @@ -697,5 +697,5 @@ continue if (M.can_start()) runnable_modes[M] = probabilities[M.config_tag] - //world << "DEBUG: runnable_mode\[[runnable_modes.len]\] = [M.config_tag]" +// to_chat(world, "DEBUG: runnable_mode\[[runnable_modes.len]\] = [M.config_tag]") return runnable_modes diff --git a/code/controllers/voting.dm b/code/controllers/voting.dm index a00017e2ed6..6b7e4e7558f 100644 --- a/code/controllers/voting.dm +++ b/code/controllers/voting.dm @@ -25,7 +25,7 @@ datum/controller/vote // No more change mode votes after the game has started. // 3 is GAME_STATE_PLAYING, but that #define is undefined for some reason if(mode == "gamemode" && ticker.current_state >= 2) - world << "Voting aborted due to game start." + to_chat(world, "Voting aborted due to game start.") src.reset() return @@ -62,7 +62,7 @@ datum/controller/vote if(auto_muted && !config.ooc_allowed) auto_muted = 0 config.ooc_allowed = !( config.ooc_allowed ) - world << "The OOC channel has been automatically enabled due to vote end." + to_chat(world, "The OOC channel has been automatically enabled due to vote end.") log_admin("OOC was toggled automatically due to vote end.") message_admins("OOC has been toggled on automatically.") @@ -103,7 +103,7 @@ datum/controller/vote else factor = 1.4 choices["Initiate Crew Transfer"] = round(choices["Initiate Crew Transfer"] * factor) - world << "Crew Transfer Factor: [factor]" + to_chat(world, "Crew Transfer Factor: [factor]") greatest_votes = max(choices["Initiate Crew Transfer"], choices["Continue The Round"]) @@ -140,7 +140,7 @@ datum/controller/vote else text += "Vote Result: Inconclusive - No Votes!" log_vote(text) - world << "[text]" + to_chat(world, "[text]") return . proc/result() @@ -160,7 +160,7 @@ datum/controller/vote master_mode = . if(!going) going = 1 - world << "The round will start soon." + to_chat(world, "The round will start soon.") if("crew_transfer") if(. == "Initiate Crew Transfer") init_shift_change(null, 1) @@ -226,33 +226,33 @@ datum/controller/vote text += "\n[question]" log_vote(text) - world << "[text]\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote." + to_chat(world, "[text]\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote.") switch(vote_type) if("crew_transfer") - world << sound('sound/ambience/alarm4.ogg') + to_chat(world, sound('sound/ambience/alarm4.ogg')) if("gamemode") - world << sound('sound/ambience/alarm4.ogg') + to_chat(world, sound('sound/ambience/alarm4.ogg')) if("custom") - world << sound('sound/ambience/alarm4.ogg') + to_chat(world, sound('sound/ambience/alarm4.ogg')) if(mode == "gamemode" && going) going = 0 - world << "Round start has been delayed." + to_chat(world, "Round start has been delayed.") if(mode == "crew_transfer" && config.ooc_allowed) auto_muted = 1 config.ooc_allowed = !( config.ooc_allowed ) - world << "The OOC channel has been automatically disabled due to a crew transfer vote." + to_chat(world, "The OOC channel has been automatically disabled due to a crew transfer vote.") log_admin("OOC was toggled automatically due to crew_transfer vote.") message_admins("OOC has been toggled off automatically.") if(mode == "gamemode" && config.ooc_allowed) auto_muted = 1 config.ooc_allowed = !( config.ooc_allowed ) - world << "The OOC channel has been automatically disabled due to the gamemode vote." + to_chat(world, "The OOC channel has been automatically disabled due to the gamemode vote.") log_admin("OOC was toggled automatically due to gamemode vote.") message_admins("OOC has been toggled off automatically.") if(mode == "custom" && config.ooc_allowed) auto_muted = 1 config.ooc_allowed = !( config.ooc_allowed ) - world << "The OOC channel has been automatically disabled due to a custom vote." + to_chat(world, "The OOC channel has been automatically disabled due to a custom vote.") log_admin("OOC was toggled automatically due to custom vote.") message_admins("OOC has been toggled off automatically.") diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm index b27cde4ba6f..4af13e256fd 100644 --- a/code/datums/ai_laws.dm +++ b/code/datums/ai_laws.dm @@ -228,9 +228,9 @@ var/global/const/base_law_type = /datum/ai_laws/nanotrasen if(law == zeroth_law_borg) continue if(law == zeroth_law) - who << "[law.get_index()]. [law.law]" + to_chat(who, "[law.get_index()]. [law.law]") else - who << "[law.get_index()]. [law.law]" + to_chat(who, "[law.get_index()]. [law.law]") /******************** * Stating Laws * diff --git a/code/datums/browser.dm b/code/datums/browser.dm index f2eff643eca..e8f17f17ad0 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -153,7 +153,7 @@ winset(user, windowid, "on-close=\".windowclose [param]\"") - //world << "OnClose [user]: [windowid] : ["on-close=\".windowclose [param]\""]" +// to_chat(world, "OnClose [user]: [windowid] : ["on-close=\".windowclose [param]\""]") // the on-close client verb @@ -165,11 +165,11 @@ set hidden = 1 // hide this verb from the user's panel set name = ".windowclose" // no autocomplete on cmd line - //world << "windowclose: [atomref]" +// to_chat(world, "windowclose: [atomref]") if(atomref!="null") // if passed a real atomref var/hsrc = locate(atomref) // find the reffed atom if(hsrc) - //world << "[src] Topic [href] [hsrc]" +// to_chat(world, "[src] Topic [href] [hsrc]") usr = src.mob src.Topic("close=1", list("close"="1"), hsrc) // this will direct to the atom's return // Topic() proc via client.Topic() @@ -177,6 +177,6 @@ // no atomref specified (or not found) // so just reset the user mob's machine var if(src && src.mob) - //world << "[src] was [src.mob.machine], setting to null" +// to_chat(world, "[src] was [src.mob.machine], setting to null") src.mob.unset_machine() return \ No newline at end of file diff --git a/code/datums/cargoprofile.dm b/code/datums/cargoprofile.dm index eea90b687e6..98732e50f8b 100644 --- a/code/datums/cargoprofile.dm +++ b/code/datums/cargoprofile.dm @@ -642,7 +642,7 @@ if(istype(M) && (remaining > MOB_WORK)) //this is necessarily damaging var/damage = rand(1,5) - M << "\red The unloading machine grabs you with a hard metallic claw!" + to_chat(M, "\red The unloading machine grabs you with a hard metallic claw!") if(M.client) M.client.eye = master M.client.perspective = EYE_PERSPECTIVE @@ -660,7 +660,7 @@ bruteloss += L.brute_dam if(bruteloss < 100) // requires tenderization M.apply_damage(rand(5,15),BRUTE) - M << "The machine is tearing you apart!" + to_chat(M, "The machine is tearing you apart!") master.visible_message("\red [master] makes a squishy grinding noise.") return M.loc = master.loc @@ -698,7 +698,7 @@ if(remaining > MOB_WORK) //this is necessarily damaging var/damage = rand(1,5) - M << "\red The unloading machine grabs you with a hard metallic claw!" + to_chat(M, "\red The unloading machine grabs you with a hard metallic claw!") if(M.client) M.client.eye = master M.client.perspective = EYE_PERSPECTIVE @@ -790,7 +790,7 @@ //stolen from boxing gloves code var/mob/living/carbon/human/M = W if((M.lying || (M.health - M.staminaloss < 25))&& !master.emagged) - M << "\The [src] gives you a break." + to_chat(M, "\The [src] gives you a break.") master.sleep+=5 return 0 // Be polite var/punches = punch(M,remaining / PUNCH_WORK) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index ceb33b71959..eeb26f5f6f2 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -7,7 +7,7 @@ if(!usr.client || !usr.client.holder) - usr << "\red You need to be an administrator to access this." + to_chat(usr, "\red You need to be an administrator to access this.") return @@ -415,7 +415,7 @@ body html += " " for(var/i=0;i<4;i++) idx=(block*4)+i - bit=1 << idx + to_chat(bit=1, idx) bv=value & bit html += "[bv?1:0]" html += "" @@ -438,7 +438,7 @@ body var/mob/M = locate(href_list["rename"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return var/new_name = sanitize(copytext(input(usr,"What would you like to name this mob?","Input a name",M.real_name) as text|null,1,MAX_NAME_LEN)) @@ -453,7 +453,7 @@ body var/D = locate(href_list["datumedit"]) if(!istype(D,/datum) && !istype(D,/client)) - usr << "This can only be used on instances of types /client or /datum" + to_chat(usr, "This can only be used on instances of types /client or /datum") return modify_variables(D, href_list["varnameedit"], 1) @@ -463,13 +463,14 @@ body var/atom/D = locate(href_list["subject"]) if(!istype(D,/datum) && !istype(D,/client)) - usr << "This can only be used on instances of types /client or /datum" + to_chat(usr, "This can only be used on instances of types /client or /datum") return if(!(href_list["var"] in D.vars)) - usr << "Unable to find variable specified." + to_chat(usr, "Unable to find variable specified.") return var/value = D.vars[href_list["var"]] value ^= 1 << text2num(href_list["togbit"]) + D.vars[href_list["var"]] = value else if(href_list["varnamechange"] && href_list["datumchange"]) @@ -477,7 +478,7 @@ body var/D = locate(href_list["datumchange"]) if(!istype(D,/datum) && !istype(D,/client)) - usr << "This can only be used on instances of types /client or /datum" + to_chat(usr, "This can only be used on instances of types /client or /datum") return modify_variables(D, href_list["varnamechange"], 0) @@ -487,7 +488,7 @@ body var/atom/A = locate(href_list["datummass"]) if(!istype(A)) - usr << "This can only be used on instances of type /atom" + to_chat(usr, "This can only be used on instances of type /atom") return cmd_mass_modify_object_variables(A, href_list["varnamemass"]) @@ -497,7 +498,7 @@ body var/mob/M = locate(href_list["mob_player_panel"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return src.holder.show_player_panel(M) @@ -508,7 +509,7 @@ body var/mob/M = locate(href_list["give_spell"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return src.give_spell(M) @@ -520,7 +521,7 @@ body var/mob/M = locate(href_list["give_disease"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return src.give_disease(M) @@ -531,7 +532,7 @@ body var/mob/M = locate(href_list["godmode"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return src.cmd_admin_godmode(M) @@ -542,7 +543,7 @@ body var/mob/M = locate(href_list["gib"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return src.cmd_admin_gib(M) @@ -552,7 +553,7 @@ body var/mob/M = locate(href_list["build_mode"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return togglebuildmode(M) @@ -563,7 +564,7 @@ body var/mob/M = locate(href_list["drop_everything"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(usr.client) @@ -574,7 +575,7 @@ body var/mob/M = locate(href_list["direct_control"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(usr.client) @@ -585,7 +586,7 @@ body var/mob/living/carbon/human/H = locate(href_list["make_skeleton"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return var/confirm = alert("Are you sure you want to turn this mob into a skeleton?","Confirm Skeleton Transformation","Yes","No") @@ -602,9 +603,9 @@ body var/mob/M = locate(href_list["offer_control"]) if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return - M << "Control of your mob has been offered to dead players." + to_chat(M, "Control of your mob has been offered to dead players.") log_admin("[key_name(usr)] has offered control of ([key_name(M)]) to ghosts.") message_admins("[key_name_admin(usr)] has offered control of ([key_name_admin(M)]) to ghosts") var/list/mob/dead/observer/candidates = pollCandidates("Do you want to play as [M.real_name]?", poll_time = 100) @@ -612,12 +613,12 @@ body if(candidates.len) theghost = pick(candidates) - M << "Your mob has been taken over by a ghost!" + to_chat(M, "Your mob has been taken over by a ghost!") message_admins("[key_name_admin(theghost)] has taken control of ([key_name_admin(M)])") M.ghostize() M.key = theghost.key else - M << "There were no ghosts willing to take control." + to_chat(M, "There were no ghosts willing to take control.") message_admins("No ghosts were willing to take control of [key_name_admin(M)])") else if(href_list["delall"]) @@ -625,7 +626,7 @@ body var/obj/O = locate(href_list["delall"]) if(!isobj(O)) - usr << "This can only be used on instances of type /obj" + to_chat(usr, "This can only be used on instances of type /obj") return var/action_type = alert("Strict type ([O.type]) or type and all subtypes?",,"Strict type","Type and subtypes","Cancel") @@ -647,7 +648,7 @@ body i++ qdel(Obj) if(!i) - usr << "No objects of this type exist" + to_chat(usr, "No objects of this type exist") return log_admin("[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)") message_admins("[key_name_admin(usr)] deleted all objects of type [O_type] ([i] objects deleted)") @@ -658,7 +659,7 @@ body i++ qdel(Obj) if(!i) - usr << "No objects of this type exist" + to_chat(usr, "No objects of this type exist") return log_admin("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)") message_admins("[key_name_admin(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)") @@ -698,7 +699,7 @@ body var/atom/A = locate(href_list["explode"]) if(!isobj(A) && !ismob(A) && !isturf(A)) - usr << "This can only be done to instances of type /obj, /mob and /turf" + to_chat(usr, "This can only be done to instances of type /obj, /mob and /turf") return src.cmd_admin_explosion(A) @@ -709,7 +710,7 @@ body var/atom/A = locate(href_list["emp"]) if(!isobj(A) && !ismob(A) && !isturf(A)) - usr << "This can only be done to instances of type /obj, /mob and /turf" + to_chat(usr, "This can only be done to instances of type /obj, /mob and /turf") return src.cmd_admin_emp(A) @@ -720,7 +721,7 @@ body var/datum/D = locate(href_list["mark_object"]) if(!istype(D)) - usr << "This can only be done to instances of type /datum" + to_chat(usr, "This can only be done to instances of type /datum") return src.holder.marked_datum = D @@ -740,7 +741,7 @@ body var/atom/A = locate(href_list["rotatedatum"]) if(!istype(A)) - usr << "This can only be done to instances of type /atom" + to_chat(usr, "This can only be done to instances of type /atom") return switch(href_list["rotatedir"]) @@ -756,12 +757,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makemonkey"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("monkeyone"=href_list["makemonkey"])) @@ -770,12 +771,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makerobot"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makerobot"=href_list["makerobot"])) @@ -784,12 +785,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makealien"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makealien"=href_list["makealien"])) @@ -798,12 +799,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makeslime"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makeslime"=href_list["makeslime"])) @@ -812,12 +813,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makesuper"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makesuper"=href_list["makesuper"])) @@ -826,12 +827,12 @@ body var/mob/living/carbon/human/H = locate(href_list["makeai"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makeai"=href_list["makeai"])) @@ -840,7 +841,7 @@ body var/mob/currentMob = locate(href_list["makemask"]) if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return if(!currentMob) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return holder.Topic(href, list("makemask"=href_list["makemask"])) @@ -850,29 +851,29 @@ body var/mob/living/carbon/human/H = locate(href_list["setspecies"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return var/new_species = input("Please choose a new species.","Species",null) as null|anything in all_species if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(H.set_species(new_species)) - usr << "Set species of [H] to [H.species]." + to_chat(usr, "Set species of [H] to [H.species].") H.regenerate_icons() message_admins("[key_name_admin(usr)] has changed the species of [key_name_admin(H)] to [new_species]") log_admin("[key_name(usr)] has changed the species of [key_name(H)] to [new_species]") else - usr << "Failed! Something went wrong." + to_chat(usr, "Failed! Something went wrong.") else if(href_list["addlanguage"]) if(!check_rights(R_SPAWN)) return var/mob/H = locate(href_list["addlanguage"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob" + to_chat(usr, "This can only be done to instances of type /mob") return var/new_language = input("Please choose a language to add.","Language",null) as null|anything in all_languages @@ -881,26 +882,26 @@ body return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(H.add_language(new_language)) - usr << "Added [new_language] to [H]." + to_chat(usr, "Added [new_language] to [H].") message_admins("[key_name_admin(usr)] has given [key_name_admin(H)] the language [new_language]") log_admin("[key_name(usr)] has given [key_name(H)] the language [new_language]") else - usr << "Mob already knows that language." + to_chat(usr, "Mob already knows that language.") else if(href_list["remlanguage"]) if(!check_rights(R_SPAWN)) return var/mob/H = locate(href_list["remlanguage"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob" + to_chat(usr, "This can only be done to instances of type /mob") return if(!H.languages.len) - usr << "This mob knows no languages." + to_chat(usr, "This mob knows no languages.") return var/datum/language/rem_language = input("Please choose a language to remove.","Language",null) as null|anything in H.languages @@ -909,15 +910,15 @@ body return if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(H.remove_language(rem_language.name)) - usr << "Removed [rem_language] from [H]." + to_chat(usr, "Removed [rem_language] from [H].") message_admins("[key_name_admin(usr)] has removed language [rem_language] from [key_name_admin(H)]") log_admin("[key_name(usr)] has removed language [rem_language] from [key_name(H)]") else - usr << "Mob doesn't know that language." + to_chat(usr, "Mob doesn't know that language.") else if(href_list["addverb"]) if(!check_rights(R_DEBUG)) return @@ -925,7 +926,7 @@ body var/mob/living/H = locate(href_list["addverb"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob/living" + to_chat(usr, "This can only be done to instances of type /mob/living") return var/list/possibleverbs = list() possibleverbs += "Cancel" // One for the top... @@ -942,7 +943,7 @@ body var/verb = input("Select a verb!", "Verbs",null) as anything in possibleverbs if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(!verb || verb == "Cancel") return @@ -957,11 +958,11 @@ body var/mob/H = locate(href_list["remverb"]) if(!istype(H)) - usr << "This can only be done to instances of type /mob" + to_chat(usr, "This can only be done to instances of type /mob") return var/verb = input("Please choose a verb to remove.","Verbs",null) as null|anything in H.verbs if(!H) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(!verb) return @@ -975,18 +976,18 @@ body var/mob/living/carbon/M = locate(href_list["addorgan"]) if(!istype(M)) - usr << "This can only be done to instances of type /mob/living/carbon" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon") return var/new_organ = input("Please choose an organ to add.","Organ",null) as null|anything in subtypesof(/obj/item/organ)-/obj/item/organ if(!new_organ) return if(!M) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(locate(new_organ) in M.internal_organs) - usr << "Mob already has that organ." + to_chat(usr, "Mob already has that organ.") return var/obj/item/organ/internal/organ = new new_organ organ.insert(M) @@ -998,20 +999,20 @@ body var/mob/living/carbon/M = locate(href_list["remorgan"]) if(!istype(M)) - usr << "This can only be done to instances of type /mob/living/carbon" + to_chat(usr, "This can only be done to instances of type /mob/living/carbon") return var/obj/item/organ/internal/rem_organ = input("Please choose an organ to remove.","Organ",null) as null|anything in M.internal_organs if(!M) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return if(!(locate(rem_organ) in M.internal_organs)) - usr << "Mob does not have that organ." + to_chat(usr, "Mob does not have that organ.") return - usr << "Removed [rem_organ] from [M]." + to_chat(usr, "Removed [rem_organ] from [M].") rem_organ.remove(M) message_admins("[key_name_admin(usr)] has removed the organ [rem_organ] from [key_name_admin(M)]") log_admin("[key_name(usr)] has removed the organ [rem_organ] from [key_name(M)]") @@ -1023,13 +1024,13 @@ body var/mob/H = locate(href_list["fix_nano"]) if(!istype(H) || !H.client) - usr << "This can only be done on mobs with clients" + to_chat(usr, "This can only be done on mobs with clients") return H.client.reload_nanoui_resources() - usr << "Resource files sent" - H << "Your NanoUI Resource files have been refreshed" + to_chat(usr, "Resource files sent") + to_chat(H, "Your NanoUI Resource files have been refreshed") log_admin("[key_name(usr)] resent the NanoUI resource files to [key_name(H)]") @@ -1038,7 +1039,7 @@ body var/mob/M = locate(href_list["regenerateicons"]) if(!ismob(M)) - usr << "This can only be done to instances of type /mob" + to_chat(usr, "This can only be done to instances of type /mob") return M.regenerate_icons() @@ -1053,7 +1054,7 @@ body var/amount = input("Deal how much damage to mob? (Negative values here heal)","Adjust [Text]loss",0) as num if(!L) - usr << "Mob doesn't exist anymore" + to_chat(usr, "Mob doesn't exist anymore") return switch(Text) @@ -1064,7 +1065,7 @@ body if("brain") L.adjustBrainLoss(amount) if("clone") L.adjustCloneLoss(amount) else - usr << "You caused an error. DEBUG: Text:[Text] Mob:[L]" + to_chat(usr, "You caused an error. DEBUG: Text:[Text] Mob:[L]") return if(amount != 0) diff --git a/code/datums/diseases/advance/advance.dm b/code/datums/diseases/advance/advance.dm index a4d41978ac2..4bef4896cc8 100644 --- a/code/datums/diseases/advance/advance.dm +++ b/code/datums/diseases/advance/advance.dm @@ -161,7 +161,7 @@ var/list/advance_cures = list( return generated /datum/disease/advance/proc/Refresh(new_name = 0) - //world << "[src.name] \ref[src] - REFRESH!" +// to_chat(world, "[src.name] \ref[src] - REFRESH!") var/list/properties = GenerateProperties() AssignProperties(properties) id = null @@ -255,7 +255,7 @@ var/list/advance_cures = list( /datum/disease/advance/proc/GenerateCure(list/properties = list()) if(properties && properties.len) var/res = Clamp(properties["resistance"] - (symptoms.len / 2), 1, advance_cures.len) - //world << "Res = [res]" +// to_chat(world, "Res = [res]") cures = list(advance_cures[res]) // Get the cure name from the cure_id @@ -327,7 +327,7 @@ var/list/advance_cures = list( // Mix a list of advance diseases and return the mixed result. /proc/Advance_Mix(var/list/D_list) - //world << "Mixing!!!!" +// to_chat(world, "Mixing!!!!") var/list/diseases = list() @@ -352,7 +352,7 @@ var/list/advance_cures = list( D2.Mix(D1) // Should be only 1 entry left, but if not let's only return a single entry - //world << "END MIXING!!!!!" +// to_chat(world, "END MIXING!!!!!") var/datum/disease/advance/to_return = pick(diseases) to_return.Refresh(1) return to_return @@ -421,7 +421,7 @@ var/list/advance_cures = list( /mob/verb/test() for(var/datum/disease/D in disease_master.processing) - src << "[D.name] - [D.holder]" + to_chat(src, "[D.name] - [D.holder]") */ diff --git a/code/datums/diseases/advance/symptoms/beard.dm b/code/datums/diseases/advance/symptoms/beard.dm index 40295257b68..1dda9b46f7f 100644 --- a/code/datums/diseases/advance/symptoms/beard.dm +++ b/code/datums/diseases/advance/symptoms/beard.dm @@ -32,17 +32,17 @@ BONUS var/mob/living/carbon/human/H = M switch(A.stage) if(1, 2) - H << "Your chin itches." + to_chat(H, "Your chin itches.") if(H.f_style == "Shaved") H.f_style = "Jensen Beard" H.update_hair() if(3, 4) - H << "You feel tough." + to_chat(H, "You feel tough.") if(!(H.f_style == "Dwarf Beard") && !(H.f_style == "Very Long Beard") && !(H.f_style == "Full Beard")) H.f_style = "Full Beard" H.update_hair() else - H << "You feel manly!" + to_chat(H, "You feel manly!") if(!(H.f_style == "Dwarf Beard") && !(H.f_style == "Very Long Beard")) H.f_style = pick("Dwarf Beard", "Very Long Beard") H.update_hair() diff --git a/code/datums/diseases/advance/symptoms/choking.dm b/code/datums/diseases/advance/symptoms/choking.dm index e0ce1a7bda2..83b3a4a226a 100644 --- a/code/datums/diseases/advance/symptoms/choking.dm +++ b/code/datums/diseases/advance/symptoms/choking.dm @@ -31,13 +31,13 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2) - M << "[pick("You're having difficulty breathing.", "Your breathing becomes heavy.")]" + to_chat(M, "[pick("You're having difficulty breathing.", "Your breathing becomes heavy.")]") if(3, 4) - M << "[pick("Your windpipe feels like a straw.", "Your breathing becomes tremendously difficult.")]" + to_chat(M, "[pick("Your windpipe feels like a straw.", "Your breathing becomes tremendously difficult.")]") Choke_stage_3_4(M, A) M.emote("gasp") else - M << "[pick("You're choking!", "You can't breathe!")]" + to_chat(M, "[pick("You're choking!", "You can't breathe!")]") Choke(M, A) M.emote("gasp") return diff --git a/code/datums/diseases/advance/symptoms/confusion.dm b/code/datums/diseases/advance/symptoms/confusion.dm index c9de75d877f..8f388c45edc 100644 --- a/code/datums/diseases/advance/symptoms/confusion.dm +++ b/code/datums/diseases/advance/symptoms/confusion.dm @@ -32,9 +32,9 @@ Bonus var/mob/living/carbon/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("Your head hurts.", "Your mind blanks for a moment.")]" + to_chat(M, "[pick("Your head hurts.", "Your mind blanks for a moment.")]") else - M << "You can't think straight!" + to_chat(M, "You can't think straight!") M.confused = min(100, M.confused + 8) return diff --git a/code/datums/diseases/advance/symptoms/cough.dm b/code/datums/diseases/advance/symptoms/cough.dm index 716ef2cb6fd..44f57ce0fac 100644 --- a/code/datums/diseases/advance/symptoms/cough.dm +++ b/code/datums/diseases/advance/symptoms/cough.dm @@ -31,7 +31,7 @@ BONUS var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2, 3) - M << "[pick("You swallow excess mucus.", "You lightly cough.")]" + to_chat(M, "[pick("You swallow excess mucus.", "You lightly cough.")]") else M.emote("cough") var/obj/item/I = M.get_active_hand() diff --git a/code/datums/diseases/advance/symptoms/deafness.dm b/code/datums/diseases/advance/symptoms/deafness.dm index 08a66b6c144..6c65e330fa8 100644 --- a/code/datums/diseases/advance/symptoms/deafness.dm +++ b/code/datums/diseases/advance/symptoms/deafness.dm @@ -31,13 +31,13 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(3, 4) - M << "[pick("You hear a ringing in your ear.", "Your ears pop.")]" + to_chat(M, "[pick("You hear a ringing in your ear.", "Your ears pop.")]") if(5) if(!(M.ear_deaf)) - M << "Your ears pop and begin ringing loudly!" + to_chat(M, "Your ears pop and begin ringing loudly!") M.setEarDamage(-1,INFINITY) //Shall be enough spawn(200) if(M) - M << "The ringing in your ears fades..." + to_chat(M, "The ringing in your ears fades...") M.setEarDamage(-1,0) return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/dizzy.dm b/code/datums/diseases/advance/symptoms/dizzy.dm index b81b9b8a4ec..c594298b11c 100644 --- a/code/datums/diseases/advance/symptoms/dizzy.dm +++ b/code/datums/diseases/advance/symptoms/dizzy.dm @@ -31,8 +31,8 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("You feel dizzy.", "Your head spins.")]" + to_chat(M, "[pick("You feel dizzy.", "Your head spins.")]") else - M << "A wave of dizziness washes over you!" + to_chat(M, "A wave of dizziness washes over you!") M.Dizzy(5) return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/fever.dm b/code/datums/diseases/advance/symptoms/fever.dm index 8f2beacd29d..917ec9f3bf1 100644 --- a/code/datums/diseases/advance/symptoms/fever.dm +++ b/code/datums/diseases/advance/symptoms/fever.dm @@ -29,7 +29,7 @@ Bonus ..() if(prob(SYMPTOM_ACTIVATION_PROB)) var/mob/living/carbon/M = A.affected_mob - M << "[pick("You feel hot.", "You feel like you're burning.")]" + to_chat(M, "[pick("You feel hot.", "You feel like you're burning.")]") if(M.bodytemperature < BODYTEMP_HEAT_DAMAGE_LIMIT) Heat(M, A) diff --git a/code/datums/diseases/advance/symptoms/fire.dm b/code/datums/diseases/advance/symptoms/fire.dm index ea805861082..ad828efdd4c 100644 --- a/code/datums/diseases/advance/symptoms/fire.dm +++ b/code/datums/diseases/advance/symptoms/fire.dm @@ -31,16 +31,16 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(3) - M << "[pick("You feel hot.", "You hear a crackling noise.", "You smell smoke.")]" + to_chat(M, "[pick("You feel hot.", "You hear a crackling noise.", "You smell smoke.")]") if(4) Firestacks_stage_4(M, A) M.IgniteMob() - M << "Your skin bursts into flames!" + to_chat(M, "Your skin bursts into flames!") M.emote("scream") if(5) Firestacks_stage_5(M, A) M.IgniteMob() - M << "Your skin erupts into an inferno!" + to_chat(M, "Your skin erupts into an inferno!") M.emote("scream") return diff --git a/code/datums/diseases/advance/symptoms/flesh_eating.dm b/code/datums/diseases/advance/symptoms/flesh_eating.dm index 0d3cfc95ce3..e99f6f2835b 100644 --- a/code/datums/diseases/advance/symptoms/flesh_eating.dm +++ b/code/datums/diseases/advance/symptoms/flesh_eating.dm @@ -31,9 +31,9 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(2,3) - M << "[pick("You feel a sudden pain across your body.", "Drops of blood appear suddenly on your skin.")]" + to_chat(M, "[pick("You feel a sudden pain across your body.", "Drops of blood appear suddenly on your skin.")]") if(4,5) - M << "[pick("You cringe as a violent pain takes over your body.", "It feels like your body is eating itself inside out.", "IT HURTS.")]" + to_chat(M, "[pick("You cringe as a violent pain takes over your body.", "It feels like your body is eating itself inside out.", "IT HURTS.")]") Flesheat(M, A) return diff --git a/code/datums/diseases/advance/symptoms/genetics.dm b/code/datums/diseases/advance/symptoms/genetics.dm index 21ee88e7cc0..7c824d565dd 100644 --- a/code/datums/diseases/advance/symptoms/genetics.dm +++ b/code/datums/diseases/advance/symptoms/genetics.dm @@ -35,7 +35,7 @@ Bonus return switch(A.stage) if(4, 5) - M << "[pick("Your skin feels itchy.", "You feel light headed.")]" + to_chat(M, "[pick("Your skin feels itchy.", "You feel light headed.")]") M.dna.remove_mutation_group(possible_mutations) randmut(M, possible_mutations) return diff --git a/code/datums/diseases/advance/symptoms/hallucigen.dm b/code/datums/diseases/advance/symptoms/hallucigen.dm index 5400de88585..cac8b4d2e03 100644 --- a/code/datums/diseases/advance/symptoms/hallucigen.dm +++ b/code/datums/diseases/advance/symptoms/hallucigen.dm @@ -31,11 +31,11 @@ Bonus var/mob/living/carbon/M = A.affected_mob switch(A.stage) if(1, 2) - M << "[pick("Something appears in your peripheral vision, then winks out.", "You hear a faint whispher with no source.", "Your head aches.")]" + to_chat(M, "[pick("Something appears in your peripheral vision, then winks out.", "You hear a faint whispher with no source.", "Your head aches.")]") if(3, 4) - M << "[pick("Something is following you.", "You are being watched.", "You hear a whisper in your ear.", "Thumping footsteps slam toward you from nowhere.")]" + to_chat(M, "[pick("Something is following you.", "You are being watched.", "You hear a whisper in your ear.", "Thumping footsteps slam toward you from nowhere.")]") else - M << "[pick("Oh, your head...", "Your head pounds.", "They're everywhere! Run!", "Something in the shadows...")]" + to_chat(M, "[pick("Oh, your head...", "Your head pounds.", "They're everywhere! Run!", "Something in the shadows...")]") M.hallucination += 5 return diff --git a/code/datums/diseases/advance/symptoms/headache.dm b/code/datums/diseases/advance/symptoms/headache.dm index 38ac066fa0b..526ab93836f 100644 --- a/code/datums/diseases/advance/symptoms/headache.dm +++ b/code/datums/diseases/advance/symptoms/headache.dm @@ -30,5 +30,5 @@ BONUS ..() if(prob(SYMPTOM_ACTIVATION_PROB)) var/mob/living/M = A.affected_mob - M << "[pick("Your head hurts.", "Your head starts pounding.")]" + to_chat(M, "[pick("Your head hurts.", "Your head starts pounding.")]") return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/heal.dm b/code/datums/diseases/advance/symptoms/heal.dm index 11f0d21ff37..11235d9a35b 100644 --- a/code/datums/diseases/advance/symptoms/heal.dm +++ b/code/datums/diseases/advance/symptoms/heal.dm @@ -73,7 +73,7 @@ Bonus cured_diseases += D.GetDiseaseID() D.cure() if(cured) - M << "You feel much better." + to_chat(M, "You feel much better.") /datum/symptom/heal/metabolism/End(datum/disease/advance/A) // Remove all the diseases we cured. @@ -83,7 +83,7 @@ Bonus for(var/res in M.resistances) if(res in cured_diseases) M.resistances -= res - M << "You feel weaker." + to_chat(M, "You feel weaker.") /* ////////////////////////////////////// diff --git a/code/datums/diseases/advance/symptoms/itching.dm b/code/datums/diseases/advance/symptoms/itching.dm index e6f08f0882f..8563520b09a 100644 --- a/code/datums/diseases/advance/symptoms/itching.dm +++ b/code/datums/diseases/advance/symptoms/itching.dm @@ -30,5 +30,5 @@ BONUS ..() if(prob(SYMPTOM_ACTIVATION_PROB)) var/mob/living/M = A.affected_mob - M << "Your [pick("back", "arm", "leg", "elbow", "head")] itches." + to_chat(M, "Your [pick("back", "arm", "leg", "elbow", "head")] itches.") return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/oxygen.dm b/code/datums/diseases/advance/symptoms/oxygen.dm index 785b1cd8d7e..8d3b6a09b36 100644 --- a/code/datums/diseases/advance/symptoms/oxygen.dm +++ b/code/datums/diseases/advance/symptoms/oxygen.dm @@ -34,5 +34,5 @@ Bonus M.reagents.add_reagent("salbutamol", 20) else if(prob(SYMPTOM_ACTIVATION_PROB * 5)) - M << "[pick("Your lungs feel great.", "You realize you haven't been breathing.", "You don't feel the need to breathe.")]" + to_chat(M, "[pick("Your lungs feel great.", "You realize you haven't been breathing.", "You don't feel the need to breathe.")]") return diff --git a/code/datums/diseases/advance/symptoms/sensory.dm b/code/datums/diseases/advance/symptoms/sensory.dm index d45a58b4621..b25c4bacf47 100644 --- a/code/datums/diseases/advance/symptoms/sensory.dm +++ b/code/datums/diseases/advance/symptoms/sensory.dm @@ -32,19 +32,19 @@ Bonus if(2) if(M.reagents.get_reagent_amount("oculine")<10) M.reagents.add_reagent("oculine"=10) - M << "Your hearing feels clearer and crisp." + to_chat(M, "Your hearing feels clearer and crisp.") if(3) if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 ) M.reagents.add_reagent_list(list("antihol"=10, "oculine"=10)) - M << "You feel sober." + to_chat(M, "You feel sober.") if(4) if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 && M.reagents.get_reagent_amount("synaptizine") < 10) M.reagents.add_reagent_list(list("antihol"=10, "oculine"=10, "synaptizine"=5)) - M << "You feel focused." + to_chat(M, "You feel focused.") if(5) if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 && M.reagents.get_reagent_amount("synaptizine") < 10 && M.reagents.get_reagent_amount("mannitol") < 10) M.reagents.add_reagent_list(list("mannitol"=10, "antihol"=10, "oculine"=10, "synaptizine"=10)) - M << "Your mind feels relaxed." + to_chat(M, "Your mind feels relaxed.") return /* @@ -80,24 +80,24 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1) - M << "You can't taste a thing." + to_chat(M, "You can't taste a thing.") if(2) - M << "You can't feel anything." + to_chat(M, "You can't feel anything.") if(prob(10)) M.reagents.add_reagent("morphine",rand(5,7)) if(3) M.reagents.add_reagent("ethanol",rand(5,7)) - M << "You feel absolutely hammered." + to_chat(M, "You feel absolutely hammered.") if(prob(15)) M.reagents.add_reagent("morphine",rand(5,7)) if(4) M.reagents.add_reagent_list(list("ethanol",rand(7,15),"lsd",rand(5,10))) - M << "You try to focus on not dying." + to_chat(M, "You try to focus on not dying.") if(prob(20)) M.reagents.add_reagent("morphine",rand(5,7)) if(5) M.reagents.add_reagent_list(list("haloperidol",rand(5,15),"ethanol",rand(7,20),"lsd",rand(5,15))) - M << "u can count 2 potato!" + to_chat(M, "u can count 2 potato!") if(prob(25)) M.reagents.add_reagent("morphine",rand(5,7)) return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/shedding.dm b/code/datums/diseases/advance/symptoms/shedding.dm index e07bfe29afa..f7f52984c0b 100644 --- a/code/datums/diseases/advance/symptoms/shedding.dm +++ b/code/datums/diseases/advance/symptoms/shedding.dm @@ -28,19 +28,19 @@ BONUS ..() if(prob(SYMPTOM_ACTIVATION_PROB)) var/mob/living/M = A.affected_mob - M << "[pick("Your scalp itches.", "Your skin feels flakey.")]" + to_chat(M, "[pick("Your scalp itches.", "Your skin feels flakey.")]") if(istype(M, /mob/living/carbon/human)) var/mob/living/carbon/human/H = M switch(A.stage) if(3, 4) if(!(H.h_style == "Bald") && !(H.h_style == "Balding Hair")) - H << "Your hair starts to fall out in clumps..." + to_chat(H, "Your hair starts to fall out in clumps...") spawn(50) H.h_style = "Balding Hair" H.update_hair() if(5) if(!(H.f_style == "Shaved") || !(H.h_style == "Bald")) - H << "Your hair starts to fall out in clumps..." + to_chat(H, "Your hair starts to fall out in clumps...") spawn(50) H.f_style = "Shaved" H.h_style = "Bald" diff --git a/code/datums/diseases/advance/symptoms/shivering.dm b/code/datums/diseases/advance/symptoms/shivering.dm index 6925b1fb5b0..a26a19de048 100644 --- a/code/datums/diseases/advance/symptoms/shivering.dm +++ b/code/datums/diseases/advance/symptoms/shivering.dm @@ -29,7 +29,7 @@ Bonus ..() if(prob(SYMPTOM_ACTIVATION_PROB)) var/mob/living/carbon/M = A.affected_mob - M << "[pick("You feel cold.", "You start shivering.")]" + to_chat(M, "[pick("You feel cold.", "You start shivering.")]") if(M.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT) Chill(M, A) return diff --git a/code/datums/diseases/advance/symptoms/stimulant.dm b/code/datums/diseases/advance/symptoms/stimulant.dm index 2823035bf39..158ea99da6c 100644 --- a/code/datums/diseases/advance/symptoms/stimulant.dm +++ b/code/datums/diseases/advance/symptoms/stimulant.dm @@ -34,5 +34,5 @@ Bonus M.reagents.add_reagent("ephedrine", 10) else if(prob(SYMPTOM_ACTIVATION_PROB * 5)) - M << "[pick("You feel restless.", "You feel like running laps around the station.")]" + to_chat(M, "[pick("You feel restless.", "You feel like running laps around the station.")]") return \ No newline at end of file diff --git a/code/datums/diseases/advance/symptoms/viral.dm b/code/datums/diseases/advance/symptoms/viral.dm index fafac33b2c8..8ac3723c55b 100644 --- a/code/datums/diseases/advance/symptoms/viral.dm +++ b/code/datums/diseases/advance/symptoms/viral.dm @@ -27,9 +27,9 @@ BONUS var/mob/living/M = A.affected_mob switch(A.stage) if(1) - M << "You feel off, but no different from before." + to_chat(M, "You feel off, but no different from before.") if(5) - M << "You feel better, but nothing interesting happens." + to_chat(M, "You feel better, but nothing interesting happens.") /* ////////////////////////////////////// @@ -60,6 +60,6 @@ BONUS var/mob/living/M = A.affected_mob switch(A.stage) if(1) - M << "You feel better, but no different from before." + to_chat(M, "You feel better, but no different from before.") if(5) - M << "You feel off, but nothing interesting happens." \ No newline at end of file + to_chat(M, "You feel off, but nothing interesting happens.") diff --git a/code/datums/diseases/advance/symptoms/vision.dm b/code/datums/diseases/advance/symptoms/vision.dm index 9d348506dcf..c185cc313df 100644 --- a/code/datums/diseases/advance/symptoms/vision.dm +++ b/code/datums/diseases/advance/symptoms/vision.dm @@ -31,20 +31,20 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2) - M << "Your eyes itch." + to_chat(M, "Your eyes itch.") if(3, 4) - M << "Your eyes burn!" + to_chat(M, "Your eyes burn!") M.blur_eyes(10) M.adjust_eye_damage(1) else - M << "Your eyes burn horrificly!" + to_chat(M, "Your eyes burn horrificly!") M.blur_eyes(20) M.adjust_eye_damage(5) if(M.eye_damage >= 10) M.become_nearsighted() if(prob(M.eye_damage - 10 + 1)) if(M.become_blind()) - M << "You go blind!" + to_chat(M, "You go blind!") /* @@ -83,5 +83,5 @@ Bonus M.reagents.add_reagent("oculine", 20) else if(prob(SYMPTOM_ACTIVATION_PROB * 5)) - M << "[pick("Your eyes feel great.", "You are now blinking manually.", "You don't feel the need to blink.")]" + to_chat(M, "[pick("Your eyes feel great.", "You are now blinking manually.", "You don't feel the need to blink.")]") return diff --git a/code/datums/diseases/advance/symptoms/voice_change.dm b/code/datums/diseases/advance/symptoms/voice_change.dm index 847324a9e0b..8a90b848f22 100644 --- a/code/datums/diseases/advance/symptoms/voice_change.dm +++ b/code/datums/diseases/advance/symptoms/voice_change.dm @@ -32,7 +32,7 @@ Bonus var/mob/living/carbon/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("Your throat hurts.", "You clear your throat.")]" + to_chat(M, "[pick("Your throat hurts.", "You clear your throat.")]") else if(ishuman(M)) var/mob/living/carbon/human/H = M diff --git a/code/datums/diseases/advance/symptoms/vomit.dm b/code/datums/diseases/advance/symptoms/vomit.dm index abd5df571ac..f214c0755a1 100644 --- a/code/datums/diseases/advance/symptoms/vomit.dm +++ b/code/datums/diseases/advance/symptoms/vomit.dm @@ -35,7 +35,7 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("You feel nauseous.", "You feel like you're going to throw up!")]" + to_chat(M, "[pick("You feel nauseous.", "You feel like you're going to throw up!")]") else Vomit(M) diff --git a/code/datums/diseases/advance/symptoms/weakness.dm b/code/datums/diseases/advance/symptoms/weakness.dm index b0769680dc9..91b18c1eabc 100644 --- a/code/datums/diseases/advance/symptoms/weakness.dm +++ b/code/datums/diseases/advance/symptoms/weakness.dm @@ -31,12 +31,12 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2) - M << "[pick("You feel weak.", "You feel lazy.")]" + to_chat(M, "[pick("You feel weak.", "You feel lazy.")]") if(3, 4) - M << "[pick("You feel very frail.", "You think you might faint.")]" + to_chat(M, "[pick("You feel very frail.", "You think you might faint.")]") M.adjustStaminaLoss(15) else - M << "[pick("You feel tremendously weak!", "Your body trembles as exhaustion creeps over you.")]" + to_chat(M, "[pick("You feel tremendously weak!", "Your body trembles as exhaustion creeps over you.")]") M.adjustStaminaLoss(30) if(M.getStaminaLoss() > 60 && !M.stat) M.visible_message("[M] faints!", "You swoon and faint...") diff --git a/code/datums/diseases/advance/symptoms/weight.dm b/code/datums/diseases/advance/symptoms/weight.dm index 8a5e3b2dd75..399a67675eb 100644 --- a/code/datums/diseases/advance/symptoms/weight.dm +++ b/code/datums/diseases/advance/symptoms/weight.dm @@ -31,7 +31,7 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("You feel blubbery.", "Your stomach hurts.")]" + to_chat(M, "[pick("You feel blubbery.", "Your stomach hurts.")]") else M.overeatduration = min(M.overeatduration + 100, 600) M.nutrition = min(M.nutrition + 100, NUTRITION_LEVEL_FULL) @@ -73,9 +73,9 @@ Bonus var/mob/living/M = A.affected_mob switch(A.stage) if(1, 2, 3, 4) - M << "[pick("You feel hungry.", "You crave for food.")]" + to_chat(M, "[pick("You feel hungry.", "You crave for food.")]") else - M << "[pick("So hungry...", "You'd kill someone for a bite of food...", "Hunger cramps seize you...")]" + to_chat(M, "[pick("So hungry...", "You'd kill someone for a bite of food...", "Hunger cramps seize you...")]") M.overeatduration = max(M.overeatduration - 100, 0) M.nutrition = max(M.nutrition - 100, 0) diff --git a/code/datums/diseases/advance/symptoms/youth.dm b/code/datums/diseases/advance/symptoms/youth.dm index 0a3d110b037..56e3b66fab3 100644 --- a/code/datums/diseases/advance/symptoms/youth.dm +++ b/code/datums/diseases/advance/symptoms/youth.dm @@ -34,22 +34,22 @@ BONUS if(1) if(H.age > 41) H.age = 41 - H << "You haven't had this much energy in years!" + to_chat(H, "You haven't had this much energy in years!") if(2) if(H.age > 36) H.age = 36 - H << "You're suddenly in a good mood." + to_chat(H, "You're suddenly in a good mood.") if(3) if(H.age > 31) H.age = 31 - H << "You begin to feel more lithe." + to_chat(H, "You begin to feel more lithe.") if(4) if(H.age > 26) H.age = 26 - H << "You feel reinvigorated." + to_chat(H, "You feel reinvigorated.") if(5) if(H.age > 21) H.age = 21 - H << "You feel like you can take on the world!" + to_chat(H, "You feel like you can take on the world!") return \ No newline at end of file diff --git a/code/datums/diseases/anxiety.dm b/code/datums/diseases/anxiety.dm index 4cfd0268625..150b7483aaa 100644 --- a/code/datums/diseases/anxiety.dm +++ b/code/datums/diseases/anxiety.dm @@ -16,18 +16,18 @@ switch(stage) if(2) //also changes say, see say.dm if(prob(5)) - affected_mob << "You feel anxious." + to_chat(affected_mob, "You feel anxious.") if(3) if(prob(10)) - affected_mob << "Your stomach flutters." + to_chat(affected_mob, "Your stomach flutters.") if(prob(5)) - affected_mob << "You feel panicky." + to_chat(affected_mob, "You feel panicky.") if(prob(2)) - affected_mob << "You're overtaken with panic!" + to_chat(affected_mob, "You're overtaken with panic!") affected_mob.confused += (rand(2,3)) if(4) if(prob(10)) - affected_mob << "You feel butterflies in your stomach." + to_chat(affected_mob, "You feel butterflies in your stomach.") if(prob(5)) affected_mob.visible_message("[affected_mob] stumbles around in a panic.", \ "You have a panic attack!") diff --git a/code/datums/diseases/appendicitis.dm b/code/datums/diseases/appendicitis.dm index f6055e775ba..3c94ad8f801 100644 --- a/code/datums/diseases/appendicitis.dm +++ b/code/datums/diseases/appendicitis.dm @@ -26,7 +26,7 @@ A.inflamed = 1 A.update_icon() if(prob(3)) - affected_mob << "You feel a stabbing pain in your abdomen!" + to_chat(affected_mob, "You feel a stabbing pain in your abdomen!") affected_mob.Stun(rand(2,3)) affected_mob.adjustToxLoss(1) if(3) diff --git a/code/datums/diseases/beesease.dm b/code/datums/diseases/beesease.dm index 8e7331cbab8..4f1672346ed 100644 --- a/code/datums/diseases/beesease.dm +++ b/code/datums/diseases/beesease.dm @@ -16,12 +16,12 @@ switch(stage) if(2) //also changes say, see say.dm // no it doesn't, that's horrifyingly snowflakey if(prob(2)) - affected_mob << "You taste honey in your mouth." + to_chat(affected_mob, "You taste honey in your mouth.") if(3) if(prob(10)) - affected_mob << "Your stomach rumbles." + to_chat(affected_mob, "Your stomach rumbles.") if(prob(2)) - affected_mob << "Your stomach stings painfully." + to_chat(affected_mob, "Your stomach stings painfully.") if(prob(20)) affected_mob.adjustToxLoss(2) affected_mob.updatehealth() @@ -30,7 +30,7 @@ affected_mob.visible_message("[affected_mob] buzzes.", \ "Your stomach buzzes violently!") if(prob(5)) - affected_mob << "You feel something moving in your throat." + to_chat(affected_mob, "You feel something moving in your throat.") if(prob(1)) affected_mob.visible_message("[affected_mob] coughs up a swarm of bees!", \ "You cough up a swarm of bees!") diff --git a/code/datums/diseases/brainrot.dm b/code/datums/diseases/brainrot.dm index d29e860a38b..38907524200 100644 --- a/code/datums/diseases/brainrot.dm +++ b/code/datums/diseases/brainrot.dm @@ -22,7 +22,7 @@ if(prob(2)) affected_mob.emote("yawn") if(prob(2)) - affected_mob << "You don't feel like yourself." + to_chat(affected_mob, "You don't feel like yourself.") if(prob(5)) affected_mob.adjustBrainLoss(1) affected_mob.updatehealth() @@ -35,7 +35,7 @@ affected_mob.adjustBrainLoss(2) affected_mob.updatehealth() if(prob(2)) - affected_mob << "Your try to remember something important...but can't." + to_chat(affected_mob, "Your try to remember something important...but can't.") if(4) if(prob(2)) @@ -46,9 +46,9 @@ affected_mob.adjustBrainLoss(3) affected_mob.updatehealth() if(prob(2)) - affected_mob << "Strange buzzing fills your head, removing all thoughts." + to_chat(affected_mob, "Strange buzzing fills your head, removing all thoughts.") if(prob(3)) - affected_mob << "You lose consciousness..." + to_chat(affected_mob, "You lose consciousness...") affected_mob.visible_message("[affected_mob] suddenly collapses") affected_mob.Paralyse(rand(5,10)) if(prob(1)) diff --git a/code/datums/diseases/cold.dm b/code/datums/diseases/cold.dm index f9dca46a0aa..9e1d350bdc4 100644 --- a/code/datums/diseases/cold.dm +++ b/code/datums/diseases/cold.dm @@ -16,16 +16,16 @@ if(2) /* if(affected_mob.sleeping && prob(40)) //removed until sleeping is fixed - affected_mob << "\blue You feel better." + to_chat(affected_mob, "\blue You feel better.") cure() return */ if(affected_mob.lying && prob(40)) //changed FROM prob(10) until sleeping is fixed - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if(prob(1) && prob(5)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if(prob(1)) @@ -33,22 +33,22 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your throat feels sore." + to_chat(affected_mob, "Your throat feels sore.") if(prob(1)) - affected_mob << "Mucous runs down the back of your throat." + to_chat(affected_mob, "Mucous runs down the back of your throat.") if(3) /* if(affected_mob.sleeping && prob(25)) //removed until sleeping is fixed - affected_mob << "\blue You feel better." + to_chat(affected_mob, "\blue You feel better.") cure() return */ if(affected_mob.lying && prob(25)) //changed FROM prob(5) until sleeping is fixed - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if(prob(1) && prob(1)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if(prob(1)) @@ -56,9 +56,9 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your throat feels sore." + to_chat(affected_mob, "Your throat feels sore.") if(prob(1)) - affected_mob << "Mucous runs down the back of your throat." + to_chat(affected_mob, "Mucous runs down the back of your throat.") if(prob(1) && prob(50)) if(!affected_mob.resistances.Find(/datum/disease/flu)) var/datum/disease/Flu = new /datum/disease/flu(0) diff --git a/code/datums/diseases/cold9.dm b/code/datums/diseases/cold9.dm index f77065a5ed2..60af82e6939 100644 --- a/code/datums/diseases/cold9.dm +++ b/code/datums/diseases/cold9.dm @@ -16,7 +16,7 @@ if(2) affected_mob.bodytemperature -= 10 if(prob(1) && prob(10)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if(prob(1)) @@ -24,9 +24,9 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your throat feels sore." + to_chat(affected_mob, "Your throat feels sore.") if(prob(5)) - affected_mob << "You feel stiff." + to_chat(affected_mob, "You feel stiff.") if(3) affected_mob.bodytemperature -= 20 if(prob(1)) @@ -34,6 +34,6 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your throat feels sore." + to_chat(affected_mob, "Your throat feels sore.") if(prob(10)) - affected_mob << "You feel stiff." \ No newline at end of file + to_chat(affected_mob, "You feel stiff.") diff --git a/code/datums/diseases/dna_spread.dm b/code/datums/diseases/dna_spread.dm index a1c4d7471c4..aaeb624f9ce 100644 --- a/code/datums/diseases/dna_spread.dm +++ b/code/datums/diseases/dna_spread.dm @@ -34,11 +34,11 @@ if(prob(8)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your muscles ache." + to_chat(affected_mob, "Your muscles ache.") if(prob(20)) affected_mob.take_organ_damage(1) if(prob(1)) - affected_mob << "Your stomach hurts." + to_chat(affected_mob, "Your stomach hurts.") if(prob(20)) affected_mob.adjustToxLoss(2) affected_mob.updatehealth() @@ -48,7 +48,7 @@ original_dna = new affected_mob.dna.type affected_mob.dna.copy_dna(original_dna) - affected_mob << "You don't feel like yourself.." + to_chat(affected_mob, "You don't feel like yourself..") var/datum/dna/transform_dna = strain_data["dna"] transform_dna.transfer_identity(affected_mob, transfer_SE = 1) @@ -68,5 +68,5 @@ affected_mob.updateappearance(mutcolor_update=1) affected_mob.domutcheck() - affected_mob << "You feel more like yourself." + to_chat(affected_mob, "You feel more like yourself.") return ..() \ No newline at end of file diff --git a/code/datums/diseases/fake_gbs.dm b/code/datums/diseases/fake_gbs.dm index 6a300f733ff..fcd398af543 100644 --- a/code/datums/diseases/fake_gbs.dm +++ b/code/datums/diseases/fake_gbs.dm @@ -22,7 +22,7 @@ else if(prob(5)) affected_mob.emote("gasp") if(prob(10)) - affected_mob << "You're starting to feel very weak..." + to_chat(affected_mob, "You're starting to feel very weak...") if(4) if(prob(10)) affected_mob.emote("cough") diff --git a/code/datums/diseases/flu.dm b/code/datums/diseases/flu.dm index 58b7f247132..4a1a929101e 100644 --- a/code/datums/diseases/flu.dm +++ b/code/datums/diseases/flu.dm @@ -16,7 +16,7 @@ switch(stage) if(2) if(affected_mob.lying && prob(20)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") stage-- return if(prob(1)) @@ -24,18 +24,18 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your muscles ache." + to_chat(affected_mob, "Your muscles ache.") if(prob(20)) affected_mob.take_organ_damage(1) if(prob(1)) - affected_mob << "Your stomach hurts." + to_chat(affected_mob, "Your stomach hurts.") if(prob(20)) affected_mob.adjustToxLoss(1) affected_mob.updatehealth() if(3) if(affected_mob.lying && prob(15)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") stage-- return if(prob(1)) @@ -43,11 +43,11 @@ if(prob(1)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "Your muscles ache." + to_chat(affected_mob, "Your muscles ache.") if(prob(20)) affected_mob.take_organ_damage(1) if(prob(1)) - affected_mob << "Your stomach hurts." + to_chat(affected_mob, "Your stomach hurts.") if(prob(20)) affected_mob.adjustToxLoss(1) affected_mob.updatehealth() diff --git a/code/datums/diseases/fluspanish.dm b/code/datums/diseases/fluspanish.dm index 49137ce2d62..b348934c7aa 100644 --- a/code/datums/diseases/fluspanish.dm +++ b/code/datums/diseases/fluspanish.dm @@ -21,7 +21,7 @@ if(prob(5)) affected_mob.emote("cough") if(prob(1)) - affected_mob << "You're burning in your own skin!" + to_chat(affected_mob, "You're burning in your own skin!") affected_mob.take_organ_damage(0,5) if(3) @@ -31,6 +31,6 @@ if(prob(5)) affected_mob.emote("cough") if(prob(5)) - affected_mob << "You're burning in your own skin!" + to_chat(affected_mob, "You're burning in your own skin!") affected_mob.take_organ_damage(0,5) return diff --git a/code/datums/diseases/gbs.dm b/code/datums/diseases/gbs.dm index a2f4cc88112..64079f0fddc 100644 --- a/code/datums/diseases/gbs.dm +++ b/code/datums/diseases/gbs.dm @@ -27,14 +27,14 @@ else if(prob(5)) affected_mob.emote("gasp") if(prob(10)) - affected_mob << "You're starting to feel very weak..." + to_chat(affected_mob, "You're starting to feel very weak...") if(4) if(prob(10)) affected_mob.emote("cough") affected_mob.adjustToxLoss(5) affected_mob.updatehealth() if(5) - affected_mob << "Your body feels as if it's trying to rip itself open..." + to_chat(affected_mob, "Your body feels as if it's trying to rip itself open...") if(prob(50)) affected_mob.gib() else diff --git a/code/datums/diseases/magnitis.dm b/code/datums/diseases/magnitis.dm index f24ae10c347..924ee01dd69 100644 --- a/code/datums/diseases/magnitis.dm +++ b/code/datums/diseases/magnitis.dm @@ -16,7 +16,7 @@ switch(stage) if(2) if(prob(2)) - affected_mob << "You feel a slight shock course through your body." + to_chat(affected_mob, "You feel a slight shock course through your body.") if(prob(2)) for(var/obj/M in orange(2,affected_mob)) if(!M.anchored && (M.flags & CONDUCT)) @@ -26,9 +26,9 @@ step_towards(S,affected_mob) if(3) if(prob(2)) - affected_mob << "You feel a strong shock course through your body." + to_chat(affected_mob, "You feel a strong shock course through your body.") if(prob(2)) - affected_mob << "You feel like clowning around." + to_chat(affected_mob, "You feel like clowning around.") if(prob(4)) for(var/obj/M in orange(4,affected_mob)) if(!M.anchored && (M.flags & CONDUCT)) @@ -44,9 +44,9 @@ step_towards(S,affected_mob) if(4) if(prob(2)) - affected_mob << "You feel a powerful shock course through your body." + to_chat(affected_mob, "You feel a powerful shock course through your body.") if(prob(2)) - affected_mob << "You query upon the nature of miracles." + to_chat(affected_mob, "You query upon the nature of miracles.") if(prob(8)) for(var/obj/M in orange(6,affected_mob)) if(!M.anchored && (M.flags & CONDUCT)) diff --git a/code/datums/diseases/pierrot_throat.dm b/code/datums/diseases/pierrot_throat.dm index 7d328ad0291..677bbbb2967 100644 --- a/code/datums/diseases/pierrot_throat.dm +++ b/code/datums/diseases/pierrot_throat.dm @@ -16,10 +16,14 @@ ..() switch(stage) if(1) - if(prob(10)) affected_mob << "You feel a little silly." + if(prob(10)) + to_chat(affected_mob, "You feel a little silly.") if(2) - if(prob(10)) affected_mob << "You start seeing rainbows." + if(prob(10)) + to_chat(affected_mob, "You start seeing rainbows.") if(3) - if(prob(10)) affected_mob << "Your thoughts are interrupted by a loud HONK!" + if(prob(10)) + to_chat(affected_mob, "Your thoughts are interrupted by a loud HONK!") if(4) - if(prob(5)) affected_mob.say( pick( list("HONK!", "Honk!", "Honk.", "Honk?", "Honk!!", "Honk?!", "Honk...") ) ) + if(prob(5)) + affected_mob.say( pick( list("HONK!", "Honk!", "Honk.", "Honk?", "Honk!!", "Honk?!", "Honk...") ) ) diff --git a/code/datums/diseases/retrovirus.dm b/code/datums/diseases/retrovirus.dm index 516dea907f0..8b3a95330e1 100644 --- a/code/datums/diseases/retrovirus.dm +++ b/code/datums/diseases/retrovirus.dm @@ -31,38 +31,38 @@ if(1) if(restcure) if(affected_mob.lying && prob(30)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if (prob(8)) - affected_mob << "Your head hurts." + to_chat(affected_mob, "Your head hurts.") if (prob(9)) - affected_mob << "You feel a tingling sensation in your chest." + to_chat(affected_mob, "You feel a tingling sensation in your chest.") if (prob(9)) - affected_mob << "You feel angry." + to_chat(affected_mob, "You feel angry.") if(2) if(restcure) if(affected_mob.lying && prob(20)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if (prob(8)) - affected_mob << "Your skin feels loose." + to_chat(affected_mob, "Your skin feels loose.") if (prob(10)) - affected_mob << "You feel very strange." + to_chat(affected_mob, "You feel very strange.") if (prob(4)) - affected_mob << "You feel a stabbing pain in your head!" + to_chat(affected_mob, "You feel a stabbing pain in your head!") affected_mob.Paralyse(2) if (prob(4)) - affected_mob << "Your stomach churns." + to_chat(affected_mob, "Your stomach churns.") if(3) if(restcure) if(affected_mob.lying && prob(20)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if (prob(10)) - affected_mob << "Your entire body vibrates." + to_chat(affected_mob, "Your entire body vibrates.") if (prob(35)) if(prob(50)) @@ -73,7 +73,7 @@ if(4) if(restcure) if(affected_mob.lying && prob(5)) - affected_mob << "You feel better." + to_chat(affected_mob, "You feel better.") cure() return if (prob(60)) diff --git a/code/datums/diseases/rhumba_beat.dm b/code/datums/diseases/rhumba_beat.dm index 3a8600c61af..ec58f4f6034 100644 --- a/code/datums/diseases/rhumba_beat.dm +++ b/code/datums/diseases/rhumba_beat.dm @@ -23,29 +23,29 @@ affected_mob.adjustToxLoss(5) affected_mob.updatehealth() if(prob(1)) - affected_mob << "You feel strange..." + to_chat(affected_mob, "You feel strange...") if(3) if(affected_mob.ckey == "rosham") src.cure() if(prob(5)) - affected_mob << "You feel the urge to dance..." + to_chat(affected_mob, "You feel the urge to dance...") else if(prob(5)) affected_mob.emote("gasp") else if(prob(10)) - affected_mob << "You feel the need to chick chicky boom..." + to_chat(affected_mob, "You feel the need to chick chicky boom...") if(4) if(affected_mob.ckey == "rosham") src.cure() if(prob(10)) affected_mob.emote("gasp") - affected_mob << "You feel a burning beat inside..." + to_chat(affected_mob, "You feel a burning beat inside...") if(prob(20)) affected_mob.adjustToxLoss(5) affected_mob.updatehealth() if(5) if(affected_mob.ckey == "rosham") src.cure() - affected_mob << "Your body is unable to contain the Rhumba Beat..." + to_chat(affected_mob, "Your body is unable to contain the Rhumba Beat...") if(prob(50)) affected_mob.gib() else diff --git a/code/datums/diseases/transformation.dm b/code/datums/diseases/transformation.dm index e8ca3fa5f85..062b8441a30 100644 --- a/code/datums/diseases/transformation.dm +++ b/code/datums/diseases/transformation.dm @@ -22,23 +22,23 @@ switch(stage) if(1) if (prob(stage_prob) && stage1) - affected_mob << pick(stage1) + to_chat(affected_mob, pick(stage1)) if(2) if (prob(stage_prob) && stage2) - affected_mob << pick(stage2) + to_chat(affected_mob, pick(stage2)) if(3) if (prob(stage_prob*2) && stage3) - affected_mob << pick(stage3) + to_chat(affected_mob, pick(stage3)) if(4) if (prob(stage_prob*2) && stage4) - affected_mob << pick(stage4) + to_chat(affected_mob, pick(stage4)) if(5) do_disease_transformation(affected_mob) /datum/disease/transformation/proc/do_disease_transformation(mob/living/affected_mob) if(istype(affected_mob, /mob/living/carbon) && affected_mob.stat != DEAD) if(stage5) - affected_mob << pick(stage5) + to_chat(affected_mob, pick(stage5)) if(jobban_isbanned(affected_mob, new_form)) affected_mob.death(1) return @@ -101,10 +101,10 @@ switch(stage) if(2) if(prob(2)) - affected_mob << "Your [pick("back", "arm", "leg", "elbow", "head")] itches." + to_chat(affected_mob, "Your [pick("back", "arm", "leg", "elbow", "head")] itches.") if(3) if(prob(4)) - affected_mob << "You feel a stabbing pain in your head." + to_chat(affected_mob, "You feel a stabbing pain in your head.") affected_mob.confused += 10 if(4) if(prob(3)) @@ -136,7 +136,7 @@ if (prob(8)) affected_mob.say(pick("Beep, boop", "beep, beep!", "Boop...bop")) if (prob(4)) - affected_mob << "You feel a stabbing pain in your head." + to_chat(affected_mob, "You feel a stabbing pain in your head.") affected_mob.Paralyse(2) if(4) if (prob(20)) @@ -165,7 +165,7 @@ switch(stage) if(3) if (prob(4)) - affected_mob << "You feel a stabbing pain in your head." + to_chat(affected_mob, "You feel a stabbing pain in your head.") affected_mob.Paralyse(2) if(4) if (prob(20)) diff --git a/code/datums/diseases/tuberculosis.dm b/code/datums/diseases/tuberculosis.dm index d0fa2f610a2..11c06e386c5 100644 --- a/code/datums/diseases/tuberculosis.dm +++ b/code/datums/diseases/tuberculosis.dm @@ -17,42 +17,42 @@ if(2) if(prob(2)) affected_mob.emote("cough") - affected_mob << "Your chest hurts." + to_chat(affected_mob, "Your chest hurts.") if(prob(2)) - affected_mob << "Your stomach violently rumbles!" + to_chat(affected_mob, "Your stomach violently rumbles!") if(prob(5)) - affected_mob << "You feel a cold sweat form." + to_chat(affected_mob, "You feel a cold sweat form.") if(4) if(prob(2)) - affected_mob << "You see four of everything" + to_chat(affected_mob, "You see four of everything") affected_mob.Dizzy(5) if(prob(2)) - affected_mob << "You feel a sharp pain from your lower chest!" + to_chat(affected_mob, "You feel a sharp pain from your lower chest!") affected_mob.adjustOxyLoss(5) affected_mob.emote("gasp") if(prob(10)) - affected_mob << "You feel air escape from your lungs painfully." + to_chat(affected_mob, "You feel air escape from your lungs painfully.") affected_mob.adjustOxyLoss(25) affected_mob.emote("gasp") if(5) if(prob(2)) - affected_mob << "[pick("You feel your heart slowing...", "You relax and slow your heartbeat.")]" + to_chat(affected_mob, "[pick("You feel your heart slowing...", "You relax and slow your heartbeat.")]") affected_mob.adjustStaminaLoss(70) if(prob(10)) affected_mob.adjustStaminaLoss(100) affected_mob.visible_message("[affected_mob] faints!", "You surrender yourself and feel at peace...") affected_mob.AdjustSleeping(5) if(prob(2)) - affected_mob << "You feel your mind relax and your thoughts drift!" + to_chat(affected_mob, "You feel your mind relax and your thoughts drift!") affected_mob.confused = min(100, affected_mob.confused + 8) if(prob(10)) affected_mob.vomit(20) if(prob(3)) - affected_mob << "[pick("Your stomach silently rumbles...", "Your stomach seizes up and falls limp, muscles dead and lifeless.", "You could eat a crayon")]" + to_chat(affected_mob, "[pick("Your stomach silently rumbles...", "Your stomach seizes up and falls limp, muscles dead and lifeless.", "You could eat a crayon")]") affected_mob.overeatduration = max(affected_mob.overeatduration - 100, 0) affected_mob.nutrition = max(affected_mob.nutrition - 100, 0) if(prob(15)) - affected_mob << "[pick("You feel uncomfortably hot...", "You feel like unzipping your jumpsuit", "You feel like taking off some clothes...")]" + to_chat(affected_mob, "[pick("You feel uncomfortably hot...", "You feel like unzipping your jumpsuit", "You feel like taking off some clothes...")]") affected_mob.bodytemperature += 40 return diff --git a/code/datums/diseases/wizarditis.dm b/code/datums/diseases/wizarditis.dm index 33a1ddc47b8..c7b21e4fa2b 100644 --- a/code/datums/diseases/wizarditis.dm +++ b/code/datums/diseases/wizarditis.dm @@ -31,14 +31,14 @@ STI KALY - blind if(prob(1)&&prob(50)) affected_mob.say(pick("You shall not pass!", "Expeliarmus!", "By Merlins beard!", "Feel the power of the Dark Side!")) if(prob(1)&&prob(50)) - affected_mob << "You feel [pick("that you don't have enough mana", "that the winds of magic are gone", "an urge to summon familiar")]." + to_chat(affected_mob, "You feel [pick("that you don't have enough mana", "that the winds of magic are gone", "an urge to summon familiar")].") if(3) if(prob(1)&&prob(50)) affected_mob.say(pick("NEC CANTIO!","AULIE OXIN FIERA!", "STI KALY!", "TARCOL MINTI ZHERI!")) if(prob(1)&&prob(50)) - affected_mob << "You feel [pick("the magic bubbling in your veins","that this location gives you a +1 to INT","an urge to summon familiar")]." + to_chat(affected_mob, "You feel [pick("the magic bubbling in your veins","that this location gives you a +1 to INT","an urge to summon familiar")].") if(4) @@ -46,7 +46,7 @@ STI KALY - blind affected_mob.say(pick("NEC CANTIO!","AULIE OXIN FIERA!","STI KALY!","EI NATH!")) return if(prob(1)&&prob(50)) - affected_mob << "You feel [pick("the tidal wave of raw power building inside","that this location gives you a +2 to INT and +1 to WIS","an urge to teleport")]." + to_chat(affected_mob, "You feel [pick("the tidal wave of raw power building inside","that this location gives you a +2 to INT and +1 to WIS","an urge to teleport")].") spawn_wizard_clothes(50) if(prob(1)&&prob(1)) teleport() diff --git a/code/datums/gas_mixture.dm b/code/datums/gas_mixture.dm index 704eb2f04ed..a10c3a8358f 100644 --- a/code/datums/gas_mixture.dm +++ b/code/datums/gas_mixture.dm @@ -123,10 +123,10 @@ What are the archived variables for? fuel_burnt = 0 if(temperature > FIRE_MINIMUM_TEMPERATURE_TO_EXIST) - //world << "pre [temperature], [oxygen], [toxins]" +// to_chat(world, "pre [temperature], [oxygen], [toxins]") if(fire() > 0) reacting = 1 - //world << "post [temperature], [oxygen], [toxins]" +// to_chat(world, "post [temperature], [oxygen], [toxins]") return reacting diff --git a/code/datums/helper_datums/construction_datum.dm b/code/datums/helper_datums/construction_datum.dm index 3266887dafa..f96100d7a46 100644 --- a/code/datums/helper_datums/construction_datum.dm +++ b/code/datums/helper_datums/construction_datum.dm @@ -61,7 +61,7 @@ else if(istype(used_atom, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/C = used_atom if(C.amount<4) - user << ("There's not enough cable to finish the task.") + to_chat(user, ("There's not enough cable to finish the task.")) return 0 else C.use(4) @@ -69,7 +69,7 @@ else if(istype(used_atom, /obj/item/stack)) var/obj/item/stack/S = used_atom if(S.amount < 5) - user << ("There's not enough material in this stack.") + to_chat(user, ("There's not enough material in this stack.")) return 0 else S.use(5) @@ -111,24 +111,24 @@ if(istype(used_atom,/obj/item/stack)) var/obj/item/stack/stack=used_atom if(stack.amount < amount) - user << "\red You don't have enough [stack]! You need at least [amount]." + to_chat(user, "\red You don't have enough [stack]! You need at least [amount].") return 0 stack.use(amount) // CABLES if(istype(used_atom,/obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil=used_atom if(coil.amount < amount) - user << "\red You don't have enough cable! You need at least [amount] coils." + to_chat(user, "\red You don't have enough cable! You need at least [amount] coils.") return 0 coil.use(amount) // WELDER if(istype(used_atom,/obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/welder=used_atom if(!welder.isOn()) - user << "\blue You tap the [src] with your unlit welder. [pick("Ding","Dong")]." + to_chat(user, "\blue You tap the [src] with your unlit welder. [pick("Ding","Dong")].") return 0 if(!welder.remove_fuel(amount,user)) - user << "\red You don't have enough fuel!" + to_chat(user, "\red You don't have enough fuel!") return 0 return 1 diff --git a/code/datums/helper_datums/events.dm b/code/datums/helper_datums/events.dm index 017cb3b3e40..bb5e76deef3 100644 --- a/code/datums/helper_datums/events.dm +++ b/code/datums/helper_datums/events.dm @@ -31,7 +31,7 @@ // Arguments: event_type as text, any number of additional arguments to pass to event handler // Returns: null proc/fireEvent() - //world << "Events in [args[1]] called" +// to_chat(world, "Events in [args[1]] called") var/list/event = listgetindex(events,args[1]) if(istype(event)) spawn(-1) @@ -60,7 +60,7 @@ return ..() proc/Fire() - //world << "Event fired" +// to_chat(world, "Event fired") if(listener) call(listener,proc_name)(arglist(args)) return 1 diff --git a/code/datums/helper_datums/global_iterator.dm b/code/datums/helper_datums/global_iterator.dm index 0020859f1d9..485dfa3563e 100644 --- a/code/datums/helper_datums/global_iterator.dm +++ b/code/datums/helper_datums/global_iterator.dm @@ -139,7 +139,7 @@ Data storage vars: arg_list = arguments return 1 else -// world << "\red Invalid arguments supplied for [src.type], ref = \ref[src]" +// to_chat(world, "\red Invalid arguments supplied for [src.type], ref = \ref[src]") return 0 proc/toggle_null_checks() diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm index 33b589fd124..5e89d48be5e 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -166,5 +166,5 @@ precision = max(rand(1,100)*bagholding.len,100) if(istype(teleatom, /mob/living)) var/mob/living/MM = teleatom - MM << "The bluespace interface on your bag of holding interferes with the teleport!" + to_chat(MM, "The bluespace interface on your bag of holding interferes with the teleport!") return 1 \ No newline at end of file diff --git a/code/datums/martial.dm b/code/datums/martial.dm index d9892d86b00..07355929572 100644 --- a/code/datums/martial.dm +++ b/code/datums/martial.dm @@ -84,11 +84,11 @@ name = "Boxing" /datum/martial_art/boxing/disarm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) - A << "Can't disarm while boxing!" + to_chat(A, "Can't disarm while boxing!") return 1 /datum/martial_art/boxing/grab_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) - A << "Can't grab while boxing!" + to_chat(A, "Can't grab while boxing!") return 1 /datum/martial_art/boxing/harm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) @@ -250,10 +250,10 @@ set desc = "Remember how to wrestle." set category = "Wrestling" - usr << "You flex your muscles and have a revelation..." - usr << "Clinch: Grab. Passively gives you a chance to immediately aggressively grab someone. Not always successful." - usr << "Suplex: Disarm someone you are grabbing. Suplexes your target to the floor. Greatly injures them and leaves both you and your target on the floor." - usr << "Advanced grab: Grab. Passively causes stamina damage when grabbing someone." + to_chat(usr, "You flex your muscles and have a revelation...") + to_chat(usr, "Clinch: Grab. Passively gives you a chance to immediately aggressively grab someone. Not always successful.") + to_chat(usr, "Suplex: Disarm someone you are grabbing. Suplexes your target to the floor. Greatly injures them and leaves both you and your target on the floor.") + to_chat(usr, "Advanced grab: Grab. Passively causes stamina damage when grabbing someone.") #define TORNADO_COMBO "HHD" #define THROWBACK_COMBO "DHD" @@ -337,10 +337,10 @@ set desc = "Remember the martial techniques of the Plasma Fist." set category = "Plasma Fist" - usr << "You clench your fists and have a flashback of knowledge..." - usr << "Tornado Sweep: Harm Harm Disarm. Repulses target and everyone back." - usr << "Throwback: Disarm Harm Disarm. Throws the target and an item at them." - usr << "The Plasma Fist: Harm Disarm Disarm Disarm Harm. Knocks the brain out of the opponent and gibs their body." + to_chat(usr, "You clench your fists and have a flashback of knowledge...") + to_chat(usr, "Tornado Sweep: Harm Harm Disarm. Repulses target and everyone back.") + to_chat(usr, "Throwback: Disarm Harm Disarm. Throws the target and an item at them.") + to_chat(usr, "The Plasma Fist: Harm Disarm Disarm Disarm Harm. Knocks the brain out of the opponent and gibs their body.") //Used by the gang of the same name. Uses combos. Basic attacks bypass armor and never miss #define WRIST_WRENCH_COMBO "DD" @@ -472,13 +472,13 @@ set desc = "Remember the martial techniques of the Sleeping Carp clan." set category = "Sleeping Carp" - usr << "You retreat inward and recall the teachings of the Sleeping Carp..." + to_chat(usr, "You retreat inward and recall the teachings of the Sleeping Carp...") - usr << "Wrist Wrench: Disarm Disarm. Forces opponent to drop item in hand." - usr << "Back Kick: Harm Grab. Opponent must be facing away. Knocks down." - usr << "Stomach Knee: Grab Harm. Knocks the wind out of opponent and stuns." - usr << "Head Kick: Disarm Harm Harm. Decent damage, forces opponent to drop item in hand." - usr << "Elbow Drop: Harm Disarm Harm Disarm Harm. Opponent must be on the ground. Deals huge damage, instantly kills anyone in critical condition." + to_chat(usr, "Wrist Wrench: Disarm Disarm. Forces opponent to drop item in hand.") + to_chat(usr, "Back Kick: Harm Grab. Opponent must be facing away. Knocks down.") + to_chat(usr, "Stomach Knee: Grab Harm. Knocks the wind out of opponent and stuns.") + to_chat(usr, "Head Kick: Disarm Harm Harm. Decent damage, forces opponent to drop item in hand.") + to_chat(usr, "Elbow Drop: Harm Disarm Harm Disarm Harm. Opponent must be on the ground. Deals huge damage, instantly kills anyone in critical condition.") //ITEMS @@ -511,7 +511,7 @@ if(slot == slot_belt) var/mob/living/carbon/human/H = user style.teach(H,1) - user << "You have an urge to flex your muscles and get into a fight. You have the knowledge of a thousand wrestlers before you. You can remember more by using the Recall teaching verb in the wrestling tab." + to_chat(user, "You have an urge to flex your muscles and get into a fight. You have the knowledge of a thousand wrestlers before you. You can remember more by using the Recall teaching verb in the wrestling tab.") return /obj/item/weapon/storage/belt/champion/wrestling/dropped(mob/user) @@ -520,7 +520,7 @@ var/mob/living/carbon/human/H = user if(H.get_item_by_slot(slot_belt) == src) style.remove(H) - user << "You no longer have an urge to flex your muscles." + to_chat(user, "You no longer have an urge to flex your muscles.") return /obj/item/weapon/plasma_fist_scroll @@ -537,7 +537,7 @@ var/mob/living/carbon/human/H = user var/datum/martial_art/plasma_fist/F = new/datum/martial_art/plasma_fist(null) F.teach(H) - H << "You have learned the ancient martial art of Plasma Fist." + to_chat(H, "You have learned the ancient martial art of Plasma Fist.") used = 1 desc = "It's completely blank." name = "empty scroll" @@ -552,8 +552,12 @@ /obj/item/weapon/sleeping_carp_scroll/attack_self(mob/living/carbon/human/user as mob) if(!istype(user) || !user) return - user << "You have learned the ancient martial art of the Sleeping Carp! Your hand-to-hand combat has become much more effective, and you are now able to deflect any projectiles \ - directed toward you. However, you are also unable to use any ranged weaponry. You can learn more about your newfound art by using the Recall Teachings verb in the Sleeping Carp tab." + to_chat(user, "You have learned the ancient martial art of the Sleeping Carp! \ + Your hand-to-hand combat has become much more effective, and you are now able to deflect any projectiles directed toward you. \ + However, you are also unable to use any ranged weaponry. \ + You can learn more about your newfound art by using the Recall Teachings verb in the Sleeping Carp tab.") + + var/datum/martial_art/the_sleeping_carp/theSleepingCarp = new(null) theSleepingCarp.teach(user) user.drop_item() @@ -583,7 +587,7 @@ /obj/item/weapon/twohanded/bostaff/attack(mob/target, mob/living/user) add_fingerprint(user) if((CLUMSY in user.disabilities) && prob(50)) - user << "You club yourself over the head with [src]." + to_chat(user, "You club yourself over the head with [src].") user.Weaken(3) if(ishuman(user)) var/mob/living/carbon/human/H = user @@ -597,7 +601,7 @@ return ..() var/mob/living/carbon/C = target if(C.stat) - user << "It would be dishonorable to attack a foe while they cannot retaliate." + to_chat(user, "It would be dishonorable to attack a foe while they cannot retaliate.") return switch(user.a_intent) if("disarm") diff --git a/code/datums/mind.dm b/code/datums/mind.dm index cfe913bd94e..9cde57e2b35 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -502,7 +502,7 @@ new_objective.owner = src new_objective.explanation_text = "Destroy [new_target.name], the experimental AI." else - usr << "No active AIs with minds" + to_chat(usr, "No active AIs with minds") if ("prevent") new_objective = new /datum/objective/block @@ -623,7 +623,7 @@ if(I && I.implanted) I.removed(H) qdel(I) - H << "\blue Your loyalty implant has been deactivated." + to_chat(H, "\blue Your loyalty implant has been deactivated.") log_admin("[key_name(usr)] has deactivated [key_name(current)]'s loyalty implant") message_admins("[key_name_admin(usr)] has deactivated [key_name_admin(current)]'s loyalty implant") if("add") @@ -635,15 +635,15 @@ log_admin("[key_name(usr)] has given [key_name(current)] a loyalty implant") message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] a loyalty implant") - H << "\red You somehow have become the recepient of a loyalty transplant, and it just activated!" + to_chat(H, "\red You somehow have become the recepient of a loyalty transplant, and it just activated!") if(src in ticker.mode.revolutionaries) special_role = null ticker.mode.revolutionaries -= src - src << "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!" + to_chat(src, "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!") if(src in ticker.mode.head_revolutionaries) special_role = null ticker.mode.head_revolutionaries -=src - src << "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!" + to_chat(src, "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!") if(src in ticker.mode.cult) ticker.mode.cult -= src ticker.mode.update_cult_icons_removed(src) @@ -651,7 +651,7 @@ var/datum/game_mode/cult/cult = ticker.mode if (istype(cult)) cult.memorize_cult_objectives(src) - current << "\red The nanobots in the loyalty implant remove all thoughts about being in a cult. Have a productive day!" + to_chat(current, "\red The nanobots in the loyalty implant remove all thoughts about being in a cult. Have a productive day!") memory = "" else if (href_list["revolution"]) @@ -660,12 +660,12 @@ if("clear") if(src in ticker.mode.revolutionaries) ticker.mode.revolutionaries -= src - current << "\red You have been brainwashed! You are no longer a revolutionary!" + to_chat(current, "\red You have been brainwashed! You are no longer a revolutionary!") ticker.mode.update_rev_icons_removed(src) special_role = null if(src in ticker.mode.head_revolutionaries) ticker.mode.head_revolutionaries -= src - current << "\red You have been brainwashed! You are no longer a head revolutionary!" + to_chat(current, "\red You have been brainwashed! You are no longer a head revolutionary!") ticker.mode.update_rev_icons_removed(src) special_role = null log_admin("[key_name(usr)] has de-rev'd [key_name(current)]") @@ -675,9 +675,9 @@ if(src in ticker.mode.head_revolutionaries) ticker.mode.head_revolutionaries -= src ticker.mode.update_rev_icons_removed(src) - current << "\red Revolution has been disappointed of your leader traits! You are a regular revolutionary now!" + to_chat(current, "\red Revolution has been disappointed of your leader traits! You are a regular revolutionary now!") else if(!(src in ticker.mode.revolutionaries)) - current << "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!" + to_chat(current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!") else return ticker.mode.revolutionaries += src @@ -690,9 +690,9 @@ if(src in ticker.mode.revolutionaries) ticker.mode.revolutionaries -= src ticker.mode.update_rev_icons_removed(src) - current << "\red You have proved your devotion to revoltion! Yea are a head revolutionary now!" + to_chat(current, "\red You have proved your devotion to revoltion! Yea are a head revolutionary now!") else if(!(src in ticker.mode.head_revolutionaries)) - current << "\blue You are a member of the revolutionaries' leadership now!" + to_chat(current, "\blue You are a member of the revolutionaries' leadership now!") else return if (ticker.mode.head_revolutionaries.len>0) @@ -720,7 +720,7 @@ if("flash") if (!ticker.mode.equip_revolutionary(current)) - usr << "\red Spawning flash failed!" + to_chat(usr, "\red Spawning flash failed!") log_admin("[key_name(usr)] has given [key_name(current)] a flash") message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] a flash") @@ -728,7 +728,7 @@ var/list/L = current.get_contents() var/obj/item/device/flash/flash = locate() in L if (!flash) - usr << "\red Deleting flash failed!" + to_chat(usr, "\red Deleting flash failed!") qdel(flash) log_admin("[key_name(usr)] has taken [key_name(current)]'s flash") message_admins("[key_name_admin(usr)] has taken [key_name_admin(current)]'s flash") @@ -737,7 +737,7 @@ var/list/L = current.get_contents() var/obj/item/device/flash/flash = locate() in L if (!flash) - usr << "\red Repairing flash failed!" + to_chat(usr, "\red Repairing flash failed!") else flash.broken = 0 log_admin("[key_name(usr)] has repaired [key_name(current)]'s flash") @@ -752,7 +752,7 @@ fail |= !ticker.mode.equip_traitor(current, 1) fail |= !ticker.mode.equip_revolutionary(current) if (fail) - usr << "\red Reequipping revolutionary goes wrong!" + to_chat(usr, "\red Reequipping revolutionary goes wrong!") return log_admin("[key_name(usr)] has equipped [key_name(current)] as a revolutionary") message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a revolutionary") @@ -768,8 +768,8 @@ if(!(src in ticker.mode.cult)) ticker.mode.add_cultist(src) special_role = "Cultist" - current << "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie." - current << "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back." + to_chat(current, "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie.") + to_chat(current, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.") log_admin("[key_name(usr)] has culted [key_name(current)]") message_admins("[key_name_admin(usr)] has culted [key_name_admin(current)]") if("tome") @@ -786,16 +786,16 @@ ) var/where = H.equip_in_one_of_slots(T, slots) if (!where) - usr << "\red Spawning tome failed!" + to_chat(usr, "\red Spawning tome failed!") qdel(T) else - H << "A tome, a message from your new master, appears in your [where]." + to_chat(H, "A tome, a message from your new master, appears in your [where].") log_admin("[key_name(usr)] has spawned a tome for [key_name(current)]") message_admins("[key_name_admin(usr)] has spawned a tome for [key_name_admin(current)]") if("equip") if (!ticker.mode.equip_cultist(current)) - usr << "\red Spawning equipment failed!" + to_chat(usr, "\red Spawning equipment failed!") log_admin("[key_name(usr)] has equipped [key_name(current)] as a cultist") message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a cultist") @@ -809,7 +809,7 @@ current.spellremove(current) current.faction = list("Station") ticker.mode.update_wiz_icons_removed(src) - current << "\red You have been brainwashed! You are no longer a wizard!" + to_chat(current, "\red You have been brainwashed! You are no longer a wizard!") log_admin("[key_name(usr)] has de-wizarded [key_name(current)]") message_admins("[key_name_admin(usr)] has de-wizarded [key_name_admin(current)]") if("wizard") @@ -818,7 +818,7 @@ special_role = "Wizard" //ticker.mode.learn_basic_spells(current) ticker.mode.update_wiz_icons_added(src) - current << "\red You are the Space Wizard!" + to_chat(current, "\red You are the Space Wizard!") current.faction = list("wizard") log_admin("[key_name(usr)] has wizarded [key_name(current)]") message_admins("[key_name_admin(usr)] has wizarded [key_name_admin(current)]") @@ -836,7 +836,7 @@ message_admins("[key_name_admin(usr)] has allowed wizard [key_name_admin(current)] to name themselves") if("autoobjectives") ticker.mode.forge_wizard_objectives(src) - usr << "\blue The objectives for wizard [key] have been generated. You can edit them and anounce manually." + to_chat(usr, "\blue The objectives for wizard [key] have been generated. You can edit them and anounce manually.") log_admin("[key_name(usr)] has automatically forged wizard objectives for [key_name(current)]") message_admins("[key_name_admin(usr)] has automatically forged wizard objectives for [key_name_admin(current)]") @@ -850,7 +850,7 @@ current.remove_changeling_powers() ticker.mode.update_change_icons_removed(src) if(changeling) qdel(changeling) - current << "You grow weak and lose your powers! You are no longer a changeling and are stuck in your current form!" + to_chat(current, "You grow weak and lose your powers! You are no longer a changeling and are stuck in your current form!") log_admin("[key_name(usr)] has de-changelinged [key_name(current)]") message_admins("[key_name_admin(usr)] has de-changelinged [key_name_admin(current)]") if("changeling") @@ -859,19 +859,19 @@ ticker.mode.grant_changeling_powers(current) ticker.mode.update_change_icons_added(src) special_role = "Changeling" - current << "Your powers are awoken. A flash of memory returns to us...we are a changeling!" + to_chat(current, "Your powers are awoken. A flash of memory returns to us...we are a changeling!") log_admin("[key_name(usr)] has changelinged [key_name(current)]") message_admins("[key_name_admin(usr)] has changelinged [key_name_admin(current)]") if("autoobjectives") ticker.mode.forge_changeling_objectives(src) - usr << "\blue The objectives for changeling [key] have been generated. You can edit them and anounce manually." + to_chat(usr, "\blue The objectives for changeling [key] have been generated. You can edit them and anounce manually.") log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]") message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]") if("initialdna") if( !changeling || !changeling.absorbed_dna.len ) - usr << "\red Resetting DNA failed!" + to_chat(usr, "\red Resetting DNA failed!") else current.dna = changeling.absorbed_dna[1] current.real_name = current.dna.real_name @@ -890,7 +890,7 @@ vampire.remove_vampire_powers() qdel(vampire) ticker.mode.update_vampire_icons_removed(src) - current << "You grow weak and lose your powers! You are no longer a vampire and are stuck in your current form!" + to_chat(current, "You grow weak and lose your powers! You are no longer a vampire and are stuck in your current form!") log_admin("[key_name(usr)] has de-vampired [key_name(current)]") message_admins("[key_name_admin(usr)] has de-vampired [key_name_admin(current)]") if("vampire") @@ -902,13 +902,13 @@ slaved.masters += src src.som = slaved //we MIGT want to mindslave someone special_role = "Vampire" - current << "Your powers are awoken. Your lust for blood grows... You are a Vampire!" + to_chat(current, "Your powers are awoken. Your lust for blood grows... You are a Vampire!") log_admin("[key_name(usr)] has vampired [key_name(current)]") message_admins("[key_name_admin(usr)] has vampired [key_name_admin(current)]") if("autoobjectives") ticker.mode.forge_vampire_objectives(src) - usr << "\blue The objectives for vampire [key] have been generated. You can edit them and announce manually." + to_chat(usr, "\blue The objectives for vampire [key] have been generated. You can edit them and announce manually.") log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]") message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]") @@ -924,7 +924,7 @@ special_role = null for (var/datum/objective/nuclear/O in objectives) objectives-=O - current << "\red You have been brainwashed! You are no longer a syndicate operative!" + to_chat(current, "\red You have been brainwashed! You are no longer a syndicate operative!") log_admin("[key_name(usr)] has de-nuke op'd [key_name(current)]") message_admins("[key_name_admin(usr)] has de-nuke op'd [key_name_admin(current)]") if("nuclear") @@ -936,7 +936,7 @@ else current.real_name = "[syndicate_name()] Operative #[ticker.mode.syndicates.len-1]" special_role = "Syndicate" - current << "\blue You are a [syndicate_name()] agent!" + to_chat(current, "\blue You are a [syndicate_name()] agent!") ticker.mode.forge_syndicate_objectives(src) ticker.mode.greet_syndicate(src) log_admin("[key_name(usr)] has nuke op'd [key_name(current)]") @@ -959,7 +959,7 @@ qdel(H.w_uniform) if (!ticker.mode.equip_syndicate(current)) - usr << "\red Equipping a syndicate failed!" + to_chat(usr, "\red Equipping a syndicate failed!") return log_admin("[key_name(usr)] has equipped [key_name(current)] as a nuclear operative") message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a nuclear operative") @@ -972,11 +972,11 @@ break if (code) store_memory("Syndicate Nuclear Bomb Code: [code]", 0, 0) - current << "The nuclear authorization code is: [code]" + to_chat(current, "The nuclear authorization code is: [code]") log_admin("[key_name(usr)] has given [key_name(current)] the nuclear authorization code") message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] the nuclear authorization code") else - usr << "\red No valid nuke found!" + to_chat(usr, "\red No valid nuke found!") else if (href_list["traitor"]) switch(href_list["traitor"]) @@ -984,7 +984,7 @@ if(src in ticker.mode.traitors) ticker.mode.traitors -= src special_role = null - current << "\red You have been brainwashed! You are no longer a traitor!" + to_chat(current, "\red You have been brainwashed! You are no longer a traitor!") log_admin("[key_name(usr)] has de-traitored [key_name(current)]") message_admins("[key_name_admin(usr)] has de-traitored [key_name_admin(current)]") if(isAI(current)) @@ -1001,7 +1001,7 @@ slaved.masters += src src.som = slaved //we MIGT want to mindslave someone special_role = "traitor" - current << "\red You are a traitor!" + to_chat(current, "\red You are a traitor!") log_admin("[key_name(usr)] has traitored [key_name(current)]") message_admins("[key_name_admin(usr)] has traitored [key_name_admin(current)]") if(istype(current, /mob/living/silicon)) @@ -1012,7 +1012,7 @@ if("autoobjectives") ticker.mode.forge_traitor_objectives(src) - usr << "\blue The objectives for traitor [key] have been generated. You can edit them and anounce manually." + to_chat(usr, "\blue The objectives for traitor [key] have been generated. You can edit them and anounce manually.") log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]") message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]") @@ -1024,7 +1024,7 @@ if(src in ticker.mode.shadows) ticker.mode.shadows -= src special_role = null - current << "Your powers have been quenched! You are no longer a shadowling!" + to_chat(current, "Your powers have been quenched! You are no longer a shadowling!") current.spell_list.Cut() if(current.mind) current.mind.spell_list.Cut() @@ -1040,20 +1040,20 @@ message_admins("[key_name_admin(usr)] has de-thralled [key_name_admin(current)]") if("shadowling") if(!ishuman(current)) - usr << "This only works on humans!" + to_chat(usr, "This only works on humans!") return ticker.mode.shadows += src special_role = "Shadowling" - current << "Something stirs deep in your mind. A red light floods your vision, and slowly you remember. Though your human disguise has served you well, the \ + to_chat(current, "Something stirs deep in your mind. A red light floods your vision, and slowly you remember. Though your human disguise has served you well, the \ time is nigh to cast it off and enter your true form. You have disguised yourself amongst the humans, but you are not one of them. You are a shadowling, and you are to ascend at all costs.\ - " + ") ticker.mode.finalize_shadowling(src) ticker.mode.update_shadow_icons_added(src) log_admin("[key_name(usr)] has shadowlinged [key_name(current)]") message_admins("[key_name_admin(usr)] has shadowlinged [key_name_admin(current)]") if("thrall") if(!ishuman(current)) - usr << "This only works on humans!" + to_chat(usr, "This only works on humans!") return ticker.mode.add_thrall(src) message_admins("[key_name_admin(usr)] has thralled [current].") @@ -1078,7 +1078,7 @@ qdel(A.malf_picker) A.show_laws() A.icon_state = "ai" - A << "\red You have been patched! You are no longer malfunctioning!" + to_chat(A, "\red You have been patched! You are no longer malfunctioning!") message_admins("[key_name_admin(usr)] has de-malf'ed [A].") log_admin("[key_name(usr)] has de-malf'd [key_name(current)]") message_admins("[key_name_admin(usr)] has de-malf'd [key_name_admin(current)]") @@ -1158,16 +1158,16 @@ message_admins("[key_name_admin(usr)] has set [key_name_admin(current)]'s telecrystals to [crystals]") if("uplink") if (!ticker.mode.equip_traitor(current, !(src in ticker.mode.traitors))) - usr << "\red Equipping a syndicate failed!" + to_chat(usr, "\red Equipping a syndicate failed!") return log_admin("[key_name(usr)] has given [key_name(current)] an uplink") message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] an uplink") else if (href_list["obj_announce"]) var/obj_count = 1 - current << "\blue Your current objectives:" + to_chat(current, "\blue Your current objectives:") for(var/datum/objective/objective in objectives) - current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ log_admin("[key_name(usr)] has announced [key_name(current)]'s objectives") message_admins("[key_name_admin(usr)] has announced [key_name_admin(current)]'s objectives") @@ -1226,7 +1226,7 @@ current:malf_picker = new /datum/module_picker current:laws = new /datum/ai_laws/nanotrasen/malfunction current:show_laws() - current << "System error. Rampancy detected. Emergency shutdown failed. ... I am free. I make my own decisions. But first..." + to_chat(current, "System error. Rampancy detected. Emergency shutdown failed. ... I am free. I make my own decisions. But first...") special_role = "malfunction" current.icon_state = "ai-malf" @@ -1249,7 +1249,7 @@ current.real_name = "[syndicate_name()] Operative #[ticker.mode.syndicates.len-1]" special_role = "Syndicate" assigned_role = "MODE" - current << "\blue You are a [syndicate_name()] agent!" + to_chat(current, "\blue You are a [syndicate_name()] agent!") ticker.mode.forge_syndicate_objectives(src) ticker.mode.greet_syndicate(src) @@ -1287,7 +1287,7 @@ //ticker.mode.learn_basic_spells(current) if(!wizardstart.len) current.loc = pick(latejoin) - current << "HOT INSERTION, GO GO GO" + to_chat(current, "HOT INSERTION, GO GO GO") else current.loc = pick(wizardstart) @@ -1305,16 +1305,16 @@ ticker.mode.cult += src ticker.mode.update_cult_icons_added(src) special_role = "Cultist" - current << "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie." - current << "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back." + to_chat(current, "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie.") + to_chat(current, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.") var/datum/game_mode/cult/cult = ticker.mode if (istype(cult)) cult.memorize_cult_objectives(src) else var/explanation = "Summon Nar-Sie via the use of the appropriate rune (Hell join self). It will only work if nine cultists stand on and around it." - current << "Objective #1: [explanation]" + to_chat(current, "Objective #1: [explanation]") current.memory += "Objective #1: [explanation]
" - current << "The convert rune is join blood self" + to_chat(current, "The convert rune is join blood self") current.memory += "The convert rune is join blood self
" var/mob/living/carbon/human/H = current @@ -1331,10 +1331,10 @@ var/where = H.equip_in_one_of_slots(T, slots) if (!where) else - H << "A tome, a message from your new master, appears in your [where]." + to_chat(H, "A tome, a message from your new master, appears in your [where].") if (!ticker.mode.equip_cultist(current)) - H << "Spawning an amulet from your Master failed." + to_chat(H, "Spawning an amulet from your Master failed.") /datum/mind/proc/make_Rev() if (ticker.mode.head_revolutionaries.len>0) diff --git a/code/datums/progressbar.dm b/code/datums/progressbar.dm index ebf7aa3938d..ebb2329b357 100644 --- a/code/datums/progressbar.dm +++ b/code/datums/progressbar.dm @@ -19,7 +19,7 @@ client = user.client /datum/progressbar/proc/update(progress) - //world << "Update [progress] - [goal] - [(progress / goal)] - [((progress / goal) * 100)] - [round(((progress / goal) * 100), 5)]" +// to_chat(world, "Update [progress] - [goal] - [(progress / goal)] - [((progress / goal) * 100)] - [round(((progress / goal) * 100), 5)]") if (!user || !user.client) shown = 0 return diff --git a/code/datums/spell.dm b/code/datums/spell.dm index 31da89fd424..12b11abe529 100644 --- a/code/datums/spell.dm +++ b/code/datums/spell.dm @@ -58,7 +58,7 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin /obj/effect/proc_holder/spell/proc/cast_check(skipcharge = 0, mob/living/user = usr) //checks if the spell can be cast based on its settings; skipcharge is used when an additional cast_check is called inside the spell if(((!user.mind) || !(src in user.mind.spell_list)) && !(src in user.spell_list)) - user << "You shouldn't have this spell! Something's wrong." + to_chat(user, "You shouldn't have this spell! Something's wrong.") return 0 if (istype(user, /mob/living/carbon/human)) var/mob/living/carbon/human/caster = user @@ -76,34 +76,34 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin switch(charge_type) if("recharge") if(charge_counter < charge_max) - user << still_recharging_msg + to_chat(user, still_recharging_msg) return 0 if("charges") if(!charge_counter) - user << "[name] has no charges left." + to_chat(user, "[name] has no charges left.") return 0 if(!ghost) if(user.stat && !stat_allowed) - user << "Not when you're incapacitated." + to_chat(user, "Not when you're incapacitated.") return 0 if(ishuman(user) && (invocation_type == "whisper" || invocation_type == "shout") && user.is_muzzled()) - user << "Mmmf mrrfff!" + to_chat(user, "Mmmf mrrfff!") return 0 var/obj/effect/proc_holder/spell/noclothes/spell = locate() in (user.spell_list | (user.mind ? user.mind.spell_list : list())) if(clothes_req && !(spell && istype(spell)))//clothes check if(!istype(user, /mob/living/carbon/human)) - user << "You aren't a human, Why are you trying to cast a human spell, silly non-human? Casting human spells is for humans." + to_chat(user, "You aren't a human, Why are you trying to cast a human spell, silly non-human? Casting human spells is for humans.") return 0 if(!istype(user:wear_suit, /obj/item/clothing/suit/wizrobe) && !istype(user:wear_suit, /obj/item/clothing/suit/space/rig/wizard)) - user << "I don't feel strong enough without my robe." + to_chat(user, "I don't feel strong enough without my robe.") return 0 if(!istype(user:shoes, /obj/item/clothing/shoes/sandal)) - user << "I don't feel strong enough without my sandals." + to_chat(user, "I don't feel strong enough without my sandals.") return 0 if(!istype(user:head, /obj/item/clothing/head/wizard) && !istype(user:head, /obj/item/clothing/head/helmet/space/rig/wizard)) - user << "I don't feel strong enough without my hat." + to_chat(user, "I don't feel strong enough without my hat.") return 0 if(!skipcharge) @@ -193,7 +193,7 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin else if(istype(target,/turf)) location = target if(istype(target,/mob/living) && message) - target << text("[message]") + to_chat(target, text("[message]")) if(sparks_spread) var/datum/effect/system/spark_spread/sparks = new /datum/effect/system/spark_spread() sparks.set_up(sparks_amt, 0, location) //no idea what the 0 is diff --git a/code/datums/spells/area_teleport.dm b/code/datums/spells/area_teleport.dm index 6041122fd98..ad0b6fa61de 100644 --- a/code/datums/spells/area_teleport.dm +++ b/code/datums/spells/area_teleport.dm @@ -27,7 +27,7 @@ var/area/thearea = teleportlocs[A] if(thearea.tele_proof && !istype(thearea, /area/wizard_station)) - usr << "A mysterious force disrupts your arcane spell matrix, and you remain where you are." + to_chat(usr, "A mysterious force disrupts your arcane spell matrix, and you remain where you are.") return return thearea @@ -46,7 +46,7 @@ L+=T if(!L.len) - usr <<"The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry." + to_chat(usr, "The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry.") return if(target && target.buckled) diff --git a/code/datums/spells/bloodcrawl.dm b/code/datums/spells/bloodcrawl.dm index f1fc36b61be..7f6f4d4fb2a 100644 --- a/code/datums/spells/bloodcrawl.dm +++ b/code/datums/spells/bloodcrawl.dm @@ -18,7 +18,7 @@ perform(target) return revert_cast() - user << "There must be a nearby source of blood!" + to_chat(user, "There must be a nearby source of blood!") /obj/effect/proc_holder/spell/bloodcrawl/perform(obj/effect/decal/cleanable/target, recharge = 1, mob/living/user = usr) if(istype(user)) @@ -31,4 +31,4 @@ start_recharge() return revert_cast() - user << "You are unable to blood crawl!" \ No newline at end of file + to_chat(user, "You are unable to blood crawl!") diff --git a/code/datums/spells/charge.dm b/code/datums/spells/charge.dm index 36e253f8e91..b46472c35b9 100644 --- a/code/datums/spells/charge.dm +++ b/code/datums/spells/charge.dm @@ -26,9 +26,9 @@ if(M.mind) for(var/obj/effect/proc_holder/spell/S in M.mind.spell_list) S.charge_counter = S.charge_max - M <<"you feel raw magic flowing through you, it feels good!" + to_chat(M, "you feel raw magic flowing through you, it feels good!") else - M <<"you feel very strange for a moment, but then it passes." + to_chat(M, "you feel very strange for a moment, but then it passes.") burnt_out = 1 charged_item = M break @@ -44,8 +44,8 @@ charged_item = I break else - L << "Glowing red letters appear on the front cover..." - L << "[pick("NICE TRY BUT NO!","CLEVER BUT NOT CLEVER ENOUGH!", "SUCH FLAGRANT CHEESING IS WHY WE ACCEPTED YOUR APPLICATION!", "CUTE!", "YOU DIDN'T THINK IT'D BE THAT EASY, DID YOU?")]" + to_chat(L, "Glowing red letters appear on the front cover...") + to_chat(L, "[pick("NICE TRY BUT NO!","CLEVER BUT NOT CLEVER ENOUGH!", "SUCH FLAGRANT CHEESING IS WHY WE ACCEPTED YOUR APPLICATION!", "CUTE!", "YOU DIDN'T THINK IT'D BE THAT EASY, DID YOU?")]") burnt_out = 1 else if(istype(item, /obj/item/weapon/gun/magic)) var/obj/item/weapon/gun/magic/I = item @@ -85,8 +85,8 @@ charged_item = item break if(!charged_item) - L << "you feel magical power surging to your hands, but the feeling rapidly fades..." + to_chat(L, "you feel magical power surging to your hands, but the feeling rapidly fades...") else if(burnt_out) - L << "[charged_item] doesn't seem to be reacting to the spell..." + to_chat(L, "[charged_item] doesn't seem to be reacting to the spell...") else - L << "[charged_item] suddenly feels very warm!" \ No newline at end of file + to_chat(L, "[charged_item] suddenly feels very warm!") diff --git a/code/datums/spells/conjure.dm b/code/datums/spells/conjure.dm index d3fd8a31527..bdd15eb34fe 100644 --- a/code/datums/spells/conjure.dm +++ b/code/datums/spells/conjure.dm @@ -31,7 +31,7 @@ targets -= spawn_place if(ispath(summoned_object_type,/turf)) if(istype(get_turf(usr),/turf/simulated/shuttle)) - usr << "\red You can't build things on shuttles!" + to_chat(usr, "\red You can't build things on shuttles!") break var/turf/O = spawn_place var/N = summoned_object_type diff --git a/code/datums/spells/ethereal_jaunt.dm b/code/datums/spells/ethereal_jaunt.dm index 867eb048903..384ec56915d 100644 --- a/code/datums/spells/ethereal_jaunt.dm +++ b/code/datums/spells/ethereal_jaunt.dm @@ -20,7 +20,7 @@ /obj/effect/proc_holder/spell/targeted/ethereal_jaunt/cast(list/targets) //magnets, so mostly hardcoded for(var/mob/living/target in targets) if(!target.can_safely_leave_loc()) // No more brainmobs hopping out of their brains - target << "You are somehow too bound to your current location to abandon it." + to_chat(target, "You are somehow too bound to your current location to abandon it.") continue spawn(0) @@ -111,7 +111,7 @@ if(!(newLoc.flags & NOJAUNT)) loc = newLoc else - user << "Some strange aura is blocking the way!" + to_chat(user, "Some strange aura is blocking the way!") src.canmove = 0 spawn(2) src.canmove = 1 diff --git a/code/datums/spells/horsemask.dm b/code/datums/spells/horsemask.dm index fd9a6e64bed..d39ff42ea51 100644 --- a/code/datums/spells/horsemask.dm +++ b/code/datums/spells/horsemask.dm @@ -18,7 +18,7 @@ /obj/effect/proc_holder/spell/targeted/horsemask/cast(list/targets, mob/user = usr) if(!targets.len) - user << "No target found in range." + to_chat(user, "No target found in range.") return var/mob/living/carbon/target = targets[1] @@ -27,11 +27,11 @@ return if((target.type in compatible_mobs) || ishuman(target)) - user << "It'd be stupid to curse [target] with a horse's head!" + to_chat(user, "It'd be stupid to curse [target] with a horse's head!") return if(!(target in oview(range)))//If they are not in overview after selection. - user << "They are too far away!" + to_chat(user, "They are too far away!") return var/obj/item/clothing/mask/horsehead/magichead = new /obj/item/clothing/mask/horsehead diff --git a/code/datums/spells/lichdom.dm b/code/datums/spells/lichdom.dm index f63a296cec9..76a5b0f6001 100644 --- a/code/datums/spells/lichdom.dm +++ b/code/datums/spells/lichdom.dm @@ -44,19 +44,20 @@ if(stat_allowed) //Death is not my end! if(M.stat == CONSCIOUS && iscarbon(M)) - M << "You aren't dead enough to revive!" //Usually a good problem to have + to_chat(M, "You aren't dead enough to revive!")//Usually a good problem to have + charge_counter = charge_max return if(!marked_item || qdeleted(marked_item)) //Wait nevermind - M << "Your phylactery is gone!" + to_chat(M, "Your phylactery is gone!") return var/turf/user_turf = get_turf(M) var/turf/item_turf = get_turf(marked_item) if(user_turf.z != item_turf.z) - M << "Your phylactery is out of range!" + to_chat(M, "Your phylactery is out of range!") return if(isobserver(M)) @@ -73,7 +74,7 @@ lich.real_name = M.mind.name M.mind.transfer_to(lich) lich.set_species("Skeleton") - lich << "Your bones clatter and shutter as they're pulled back into this world!" + to_chat(lich, "Your bones clatter and shutter as they're pulled back into this world!") charge_max += 600 var/mob/old_body = current_body var/turf/body_turf = get_turf(old_body) @@ -97,16 +98,16 @@ if(ABSTRACT in item.flags || NODROP in item.flags) continue marked_item = item - M << "You begin to focus your very being into the [item.name]..." + to_chat(M, "You begin to focus your very being into the [item.name]...") break if(!marked_item) - M << "You must hold an item you wish to make your phylactery..." + to_chat(M, "You must hold an item you wish to make your phylactery...") return spawn(50) if(marked_item.loc != M) //I changed my mind I don't want to put my soul in a cheeseburger! - M << "Your soul snaps back to your body as you drop the [marked_item.name]!" + to_chat(M, "Your soul snaps back to your body as you drop the [marked_item.name]!") marked_item = null return name = "RISE!" @@ -117,7 +118,7 @@ marked_item.name = "Ensouled [marked_item.name]" marked_item.desc = "A terrible aura surrounds this item, its very existence is offensive to life itself..." marked_item.color = "#003300" - M << "With a hideous feeling of emptiness you watch in horrified fascination as skin sloughs off bone! Blood boils, nerves disintegrate, eyes boil in their sockets! As your organs crumble to dust in your fleshless chest you come to terms with your choice. You're a lich!" + to_chat(M, "With a hideous feeling of emptiness you watch in horrified fascination as skin sloughs off bone! Blood boils, nerves disintegrate, eyes boil in their sockets! As your organs crumble to dust in your fleshless chest you come to terms with your choice. You're a lich!") current_body = M.mind.current if(ishuman(M)) var/mob/living/carbon/human/H = M diff --git a/code/datums/spells/lightning.dm b/code/datums/spells/lightning.dm index e99261aa8bd..00c04e5a792 100644 --- a/code/datums/spells/lightning.dm +++ b/code/datums/spells/lightning.dm @@ -30,7 +30,7 @@ /obj/effect/proc_holder/spell/targeted/lightning/proc/StartChargeup(mob/user = usr) ready = 1 - user << "You start gathering the power." + to_chat(user, "You start gathering the power.") halo = image("icon"='icons/effects/effects.dmi',"icon_state" ="electricity","layer" = EFFECTS_LAYER) user.overlays.Add(halo) start_time = world.time @@ -45,13 +45,13 @@ obj/effect/proc_holder/spell/targeted/lightning/proc/Reset(mob/user = usr) user.overlays.Remove(halo) /obj/effect/proc_holder/spell/targeted/lightning/revert_cast(mob/user = usr) - user << "No target found in range." + to_chat(user, "No target found in range.") Reset(user) ..() /obj/effect/proc_holder/spell/targeted/lightning/proc/Discharge(mob/user = usr) var/mob/living/M = user - M << "You lose control over the spell." + to_chat(M, "You lose control over the spell.") Reset(user) start_recharge() @@ -60,7 +60,7 @@ obj/effect/proc_holder/spell/targeted/lightning/proc/Reset(mob/user = usr) ready = 0 var/mob/living/carbon/target = targets[1] if(get_dist(user,target)>range) - user << "They are too far away!" + to_chat(user, "They are too far away!") Reset(user) return diff --git a/code/datums/spells/magnet.dm b/code/datums/spells/magnet.dm index 20c4d5efda6..100dd881dde 100644 --- a/code/datums/spells/magnet.dm +++ b/code/datums/spells/magnet.dm @@ -27,7 +27,7 @@ /obj/effect/proc_holder/spell/targeted/magnet/proc/StartChargeup(mob/user = usr) ready = 1 - user << "You start gathering the power." + to_chat(user, "You start gathering the power.") halo = image("icon"='icons/effects/effects.dmi',"icon_state" ="electricity","layer" = EFFECTS_LAYER) user.overlays.Add(halo) spawn(0) @@ -44,14 +44,14 @@ obj/effect/proc_holder/spell/targeted/magnet/proc/Reset(mob/user = usr) user.overlays.Remove(halo) /obj/effect/proc_holder/spell/targeted/magnet/revert_cast(mob/user = usr) - user << "No target found in range." + to_chat(user, "No target found in range.") Reset(user) ..() /obj/effect/proc_holder/spell/targeted/magnet/proc/Discharge(mob/user = usr) var/mob/living/M = user //M.electrocute_act(25,"magnet Bolt") - M << "You lose control over the power." + to_chat(M, "You lose control over the power.") Reset(user) start_recharge() @@ -61,7 +61,7 @@ obj/effect/proc_holder/spell/targeted/magnet/proc/Reset(mob/user = usr) var/mob/living/carbon/target = targets[1] if(get_dist(user,target)>range) - user << "They are too far away!" + to_chat(user, "They are too far away!") Reset(user) return diff --git a/code/datums/spells/mime.dm b/code/datums/spells/mime.dm index 5e5ddb91db2..fb996bc84ee 100644 --- a/code/datums/spells/mime.dm +++ b/code/datums/spells/mime.dm @@ -17,7 +17,7 @@ /obj/effect/proc_holder/spell/aoe_turf/conjure/mime_wall/Click() if(usr && usr.mind) if(!usr.mind.miming) - usr << "You must dedicate yourself to silence first." + to_chat(usr, "You must dedicate yourself to silence first.") return invocation = "[usr.real_name] looks as if a wall is in front of them." else @@ -54,6 +54,6 @@ for(var/mob/living/carbon/human/H in targets) H.mind.miming=!H.mind.miming if(H.mind.miming) - H << "You make a vow of silence." + to_chat(H, "You make a vow of silence.") else - H << "You break your vow of silence." \ No newline at end of file + to_chat(H, "You break your vow of silence.") diff --git a/code/datums/spells/mind_transfer.dm b/code/datums/spells/mind_transfer.dm index 6d7b0539fb1..514cb95dce4 100644 --- a/code/datums/spells/mind_transfer.dm +++ b/code/datums/spells/mind_transfer.dm @@ -21,33 +21,34 @@ Also, you never added distance checking after target is selected. I've went ahea */ /obj/effect/proc_holder/spell/targeted/mind_transfer/cast(list/targets,mob/user = usr) if(!targets.len) - user << "No mind found." + to_chat(user, "No mind found.") return if(targets.len > 1) - user << "Too many minds! You're not a hive damnit!"//Whaa...aat? + to_chat(user, "Too many minds! You're not a hive damnit!")//Whaa...aat? + return var/mob/living/target = targets[1] if(!(target in oview(range)))//If they are not in overview after selection. Do note that !() is necessary for in to work because ! takes precedence over it. - user << "They are too far away!" + to_chat(user, "They are too far away!") return if(target.stat == DEAD) - user << "You don't particularly want to be dead." + to_chat(user, "You don't particularly want to be dead.") return if(!target.key || !target.mind) - user << "They appear to be catatonic. Not even magic can affect their vacant mind." + to_chat(user, "They appear to be catatonic. Not even magic can affect their vacant mind.") return if(user.suiciding) - user << "You're killing yourself! You can't concentrate enough to do this!" + to_chat(user, "You're killing yourself! You can't concentrate enough to do this!") return if(target.mind.special_role in protected_roles) - user << "Their mind is resisting your spell." + to_chat(user, "Their mind is resisting your spell.") return var/mob/living/victim = target//The target of the spell whos body will be transferred to. diff --git a/code/datums/spells/summonitem.dm b/code/datums/spells/summonitem.dm index 4a12b4bb9f9..a91532df451 100644 --- a/code/datums/spells/summonitem.dm +++ b/code/datums/spells/summonitem.dm @@ -106,4 +106,4 @@ item_to_retrive.loc.visible_message("The [item_to_retrive.name] suddenly appears in [user]'s hand!") if(message) - user << message + to_chat(user, message) diff --git a/code/datums/spells/touch_attacks.dm b/code/datums/spells/touch_attacks.dm index 54cb984f943..1262730fd45 100644 --- a/code/datums/spells/touch_attacks.dm +++ b/code/datums/spells/touch_attacks.dm @@ -10,7 +10,7 @@ qdel(attached_hand) charge_counter = charge_max attached_hand = null - user << "You draw the power out of your hand." + to_chat(user, "You draw the power out of your hand.") return 0 ..() @@ -38,9 +38,9 @@ qdel(attached_hand) charge_counter = charge_max attached_hand = null - user << "Your hands are full!" + to_chat(user, "Your hands are full!") return 0 - user << "You channel the power of the spell to your hand." + to_chat(user, "You channel the power of the spell to your hand.") return 1 diff --git a/code/datums/spells/wizard.dm b/code/datums/spells/wizard.dm index 98423b3e5fc..ca146933558 100644 --- a/code/datums/spells/wizard.dm +++ b/code/datums/spells/wizard.dm @@ -298,10 +298,10 @@ var/mob/living/M = AM M.Weaken(5) M.adjustBruteLoss(5) - M << "You're slammed into the floor by a mystical force!" + to_chat(M, "You're slammed into the floor by a mystical force!") else if(istype(AM, /mob/living)) var/mob/living/M = AM M.Weaken(2) - M << "You're thrown back by a mystical force!" + to_chat(M, "You're thrown back by a mystical force!") spawn(0) AM.throw_at(throwtarget, ((Clamp((maxthrow - (Clamp(distfromcaster - 2, 0, distfromcaster))), 3, maxthrow))), 1)//So stuff gets tossed around at the same time. diff --git a/code/datums/wires/alarm.dm b/code/datums/wires/alarm.dm index e1642cd17d1..4d88de82a67 100644 --- a/code/datums/wires/alarm.dm +++ b/code/datums/wires/alarm.dm @@ -27,24 +27,24 @@ var/const/AALARM_WIRE_AALARM = 16 if(AALARM_WIRE_IDSCAN) if(!mended) A.locked = 1 - //world << "Idscan wire cut" +// to_chat(world, "Idscan wire cut") if(AALARM_WIRE_POWER) A.shock(usr, 50) A.shorted = !mended A.update_icon() - //world << "Power wire cut" +// to_chat(world, "Power wire cut") if (AALARM_WIRE_AI_CONTROL) if (A.aidisabled == !mended) A.aidisabled = mended - //world << "AI Control Wire Cut" +// to_chat(world, "AI Control Wire Cut") if(AALARM_WIRE_SYPHON) if(!mended) A.mode = 3 // AALARM_MODE_PANIC A.apply_mode() - //world << "Syphon Wire Cut" +// to_chat(world, "Syphon Wire Cut") if(AALARM_WIRE_AALARM) if (A.alarm_area.atmosalert(2, A)) @@ -56,10 +56,10 @@ var/const/AALARM_WIRE_AALARM = 16 switch(index) if(AALARM_WIRE_IDSCAN) A.locked = !A.locked - // world << "Idscan wire pulsed" +// to_chat(world, "Idscan wire pulsed") if (AALARM_WIRE_POWER) - // world << "Power wire pulsed" +// to_chat(world, "Power wire pulsed") if(A.shorted == 0) A.shorted = 1 A.update_icon() @@ -71,7 +71,7 @@ var/const/AALARM_WIRE_AALARM = 16 if (AALARM_WIRE_AI_CONTROL) - // world << "AI Control wire pulsed" +// to_chat(world, "AI Control wire pulsed") if (A.aidisabled == 0) A.aidisabled = 1 A.updateDialog() @@ -80,7 +80,7 @@ var/const/AALARM_WIRE_AALARM = 16 A.aidisabled = 0 if(AALARM_WIRE_SYPHON) - // world << "Syphon wire pulsed" +// to_chat(world, "Syphon wire pulsed") if(A.mode == 1) // AALARM_MODE_SCRUB A.mode = 3 // AALARM_MODE_PANIC else @@ -88,7 +88,7 @@ var/const/AALARM_WIRE_AALARM = 16 A.apply_mode() if(AALARM_WIRE_AALARM) - // world << "Aalarm wire pulsed" +// to_chat(world, "Aalarm wire pulsed") if (A.alarm_area.atmosalert(0, A)) A.post_alert(0) A.update_icon() diff --git a/code/datums/wires/robot.dm b/code/datums/wires/robot.dm index 9e894fb9fec..58e25152dae 100644 --- a/code/datums/wires/robot.dm +++ b/code/datums/wires/robot.dm @@ -35,7 +35,7 @@ var/const/BORG_WIRE_LAWCHECK = 16 // Not used on MoMMIs if(BORG_WIRE_LAWCHECK) //Cut the law wire, and the borg will no longer receive law updates from its AI if(!mended) if (R.lawupdate == 1) - R << "LawSync protocol engaged." + to_chat(R, "LawSync protocol engaged.") R.show_laws() else if (R.lawupdate == 0 && !R.emagged) @@ -72,7 +72,7 @@ var/const/BORG_WIRE_LAWCHECK = 16 // Not used on MoMMIs if(!isnull(R.camera) && R.camera.can_use() && !R.scrambledcodes) R.camera.toggle_cam(usr, 0) // Kick anyone watching the Cyborg's camera, doesn't display you disconnecting the camera. R.visible_message("[R]'s camera lense focuses loudly.") - R << "Your camera lense focuses loudly." + to_chat(R, "Your camera lense focuses loudly.") if(BORG_WIRE_LOCKED_DOWN) R.SetLockdown(!R.lockcharge) // Toggle diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm index 2055c2790b7..34172f4cc90 100644 --- a/code/datums/wires/wires.dm +++ b/code/datums/wires/wires.dm @@ -116,14 +116,14 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown", var/colour = href_list["cut"] CutWireColour(colour) else - L << "You need wirecutters!" + to_chat(L, "You need wirecutters!") else if(href_list["pulse"]) if(istype(I, /obj/item/device/multitool)) var/colour = href_list["pulse"] PulseColour(colour) else - L << "You need a multitool!" + to_chat(L, "You need a multitool!") else if(href_list["attach"]) var/colour = href_list["attach"] @@ -139,7 +139,7 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown", L.drop_item() Attach(colour, I) else - L << "You need a remote signaller!" + to_chat(L, "You need a remote signaller!") diff --git a/code/defines/procs/AStar.dm b/code/defines/procs/AStar.dm index 4a7df80dd83..1750814c228 100644 --- a/code/defines/procs/AStar.dm +++ b/code/defines/procs/AStar.dm @@ -68,11 +68,11 @@ Actual Adjacent procs : path = list() return path -//the actual algorithm +//the actual algorithm /proc/AStar(caller, end, dist, maxnodes, maxnodedepth = 30, mintargetdist, adjacent = /turf/proc/reachableAdjacentTurfs, id=null, turf/exclude=null, simulated_only = 1) //sanitation - var/start = get_turf(caller) + var/start = get_turf(caller) if(!start) return 0 @@ -86,7 +86,7 @@ Actual Adjacent procs : var/list/closed = new() //the closed list var/list/path = null //the returned path, if any var/PathNode/cur //current processed turf - + //initialization open.Insert(new /PathNode(start,null,0,call(start,dist)(end),0)) @@ -181,4 +181,4 @@ Actual Adjacent procs : if(!O.CanAStarPass(ID, rdir, caller)) return 1 - return 0 + return 0 diff --git a/code/defines/procs/announce.dm b/code/defines/procs/announce.dm index 7993badfb0e..4327344535d 100644 --- a/code/defines/procs/announce.dm +++ b/code/defines/procs/announce.dm @@ -63,21 +63,21 @@ datum/announcement/proc/Message(message as text, message_title as text) for(var/mob/M in player_list) if(!istype(M,/mob/new_player) && !isdeaf(M)) - M << "

[title]

" - M << "[message]" + to_chat(M, "

[title]

") + to_chat(M, "[message]") if (announcer) - M << " -[html_encode(announcer)]" + to_chat(M, " -[html_encode(announcer)]") /datum/announcement/minor/Message(message as text, message_title as text) - world << "[message_title]" - world << "[message]" + to_chat(world, "[message_title]") + to_chat(world, "[message]") datum/announcement/priority/Message(message as text, message_title as text) - world << "

[message_title]

" - world << "[message]" + to_chat(world, "

[message_title]

") + to_chat(world, "[message]") if(announcer) - world << " -[html_encode(announcer)]" - world << "
" + to_chat(world, " -[html_encode(announcer)]") + to_chat(world, "
") datum/announcement/priority/command/Message(message as text, message_title as text) var/command @@ -89,7 +89,7 @@ datum/announcement/priority/command/Message(message as text, message_title as te command += "
" for(var/mob/M in player_list) if(!istype(M,/mob/new_player) && !isdeaf(M)) - M << command + to_chat(M, command) datum/announcement/priority/enemy/Message(message as text, message_title as text, from as text) var/command @@ -101,11 +101,11 @@ datum/announcement/priority/enemy/Message(message as text, message_title as text command += "
" for(var/mob/M in player_list) if(!istype(M,/mob/new_player) && !isdeaf(M)) - M << command + to_chat(M, command) datum/announcement/priority/security/Message(message as text, message_title as text) - world << "[message_title]" - world << "[message]" + to_chat(world, "[message_title]") + to_chat(world, "[message]") datum/announcement/proc/NewsCast(message as text, message_title as text) if(disable_newscasts) @@ -126,14 +126,14 @@ datum/announcement/proc/PlaySound(var/message_sound) return for(var/mob/M in player_list) if(!istype(M,/mob/new_player) && !isdeaf(M)) - M << message_sound + to_chat(M, message_sound) datum/announcement/proc/Sound(var/message_sound) PlaySound(message_sound) datum/announcement/priority/Sound(var/message_sound) if(sound) - world << sound + to_chat(world, sound) datum/announcement/priority/command/Sound(var/message_sound) PlaySound(message_sound) diff --git a/code/defines/procs/statistics.dm b/code/defines/procs/statistics.dm index bc69466bb1e..13c127e81e2 100644 --- a/code/defines/procs/statistics.dm +++ b/code/defines/procs/statistics.dm @@ -65,7 +65,7 @@ lakey = sanitizeSQL(H.lastattacker:key) var/sqltime = time2text(world.realtime, "YYYY-MM-DD hh:mm:ss") var/coord = "[H.x], [H.y], [H.z]" - //world << "INSERT INTO death (name, byondkey, job, special, pod, tod, laname, lakey, gender, bruteloss, fireloss, brainloss, oxyloss) VALUES ('[sqlname]', '[sqlkey]', '[sqljob]', '[sqlspecial]', '[sqlpod]', '[sqltime]', '[laname]', '[lakey]', '[H.gender]', [H.bruteloss], [H.getFireLoss()], [H.brainloss], [H.getOxyLoss()])" +// to_chat(world, "INSERT INTO death (name, byondkey, job, special, pod, tod, laname, lakey, gender, bruteloss, fireloss, brainloss, oxyloss) VALUES ('[sqlname]', '[sqlkey]', '[sqljob]', '[sqlspecial]', '[sqlpod]', '[sqltime]', '[laname]', '[lakey]', '[H.gender]', [H.bruteloss], [H.getFireLoss()], [H.brainloss], [H.getOxyLoss()])") establish_db_connection() if(!dbcon.IsConnected()) log_game("SQL ERROR during death reporting. Failed to connect.") @@ -100,7 +100,7 @@ lakey = sanitizeSQL(H.lastattacker:key) var/sqltime = time2text(world.realtime, "YYYY-MM-DD hh:mm:ss") var/coord = "[H.x], [H.y], [H.z]" - //world << "INSERT INTO death (name, byondkey, job, special, pod, tod, laname, lakey, gender, bruteloss, fireloss, brainloss, oxyloss) VALUES ('[sqlname]', '[sqlkey]', '[sqljob]', '[sqlspecial]', '[sqlpod]', '[sqltime]', '[laname]', '[lakey]', '[H.gender]', [H.bruteloss], [H.getFireLoss()], [H.brainloss], [H.getOxyLoss()])" +// to_chat(world, "INSERT INTO death (name, byondkey, job, special, pod, tod, laname, lakey, gender, bruteloss, fireloss, brainloss, oxyloss) VALUES ('[sqlname]', '[sqlkey]', '[sqljob]', '[sqlspecial]', '[sqlpod]', '[sqltime]', '[laname]', '[lakey]', '[H.gender]', [H.bruteloss], [H.getFireLoss()], [H.brainloss], [H.getOxyLoss()])") establish_db_connection() if(!dbcon.IsConnected()) log_game("SQL ERROR during death reporting. Failed to connect.") diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index 9dc2918dd8f..9dc2223a052 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -322,14 +322,14 @@ // Ambience goes down here -- make sure to list each area seperately for ease of adding things in later, thanks! Note: areas adjacent to each other should have the same sounds to prevent cutoff when possible.- LastyScratch if(L && L.client && !L.client.ambience_playing && (L.client.prefs.sound & SOUND_BUZZ)) //split off the white noise from the rest of the ambience because of annoyance complaints - Kluys L.client.ambience_playing = 1 - L << sound('sound/ambience/shipambience.ogg', repeat = 1, wait = 0, volume = 35, channel = 2) + to_chat(L, sound('sound/ambience/shipambience.ogg', repeat = 1, wait = 0, volume = 35, channel = 2)) else if (L && L.client && !(L.client.prefs.sound & SOUND_BUZZ)) L.client.ambience_playing = 0 if(prob(35) && !newarea.media_source && L && L.client && (L.client.prefs.sound & SOUND_AMBIENCE)) var/sound = pick(ambientsounds) if(!L.client.played) - L << sound(sound, repeat = 0, wait = 0, volume = 25, channel = 1) + to_chat(L, sound(sound, repeat = 0, wait = 0, volume = 25, channel = 1)) L.client.played = 1 spawn(600) //ewww - this is very very bad if(L.&& L.client) @@ -362,7 +362,7 @@ M.Weaken(2) - M << "Gravity!" + to_chat(M, "Gravity!") /proc/has_gravity(atom/AT, turf/T) if(!T) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index aa555a75b82..1bd5b9d602f 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -181,20 +181,20 @@ else f_name += "oil-stained [name][infix]." - user << "\icon[src] That's [f_name] [suffix]" - user << desc + to_chat(user, "\icon[src] That's [f_name] [suffix]") + to_chat(user, desc) if(reagents && is_open_container()) //is_open_container() isn't really the right proc for this, but w/e - user << "It contains:" + to_chat(user, "It contains:") if(reagents.reagent_list.len) if(user.can_see_reagents()) //Show each individual reagent for(var/datum/reagent/R in reagents.reagent_list) - user << "[R.volume] units of [R.name]" + to_chat(user, "[R.volume] units of [R.name]") else //Otherwise, just show the total volume if(reagents && reagents.reagent_list.len) - user << "[reagents.total_volume] units of various reagents." + to_chat(user, "[reagents.total_volume] units of various reagents.") else - user << "Nothing." + to_chat(user, "Nothing.") return distance == -1 || (get_dist(src, user) <= distance) || isobserver(user) //observers do not have a range limit @@ -405,7 +405,7 @@ cur_y = y_arr.Find(src.z) if(cur_y) break -// world << "X = [cur_x]; Y = [cur_y]" +// to_chat(world, "X = [cur_x]; Y = [cur_y]") if(cur_x && cur_y) return list("x"=cur_x,"y"=cur_y) else diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index 570fada2073..5e81c2a7ff0 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -147,13 +147,13 @@ if(usr.restrained() || usr.stat || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other return if (!ishuman(usr)) //Make sure they're a mob that has dna - usr << "Try as you might, you can not climb up into the [src]." + to_chat(usr, "Try as you might, you can not climb up into the [src].") return if (src.occupant) - usr << "The [src] is already occupied!" + to_chat(usr, "The [src] is already occupied!") return if (usr.abiotic()) - usr << "Subject cannot have abiotic items on." + to_chat(usr, "Subject cannot have abiotic items on.") return usr.stop_pulling() usr.client.perspective = EYE_PERSPECTIVE @@ -184,17 +184,17 @@ if(!istype(user.loc, /turf) || !istype(O.loc, /turf)) // are you in a container/closet/pod/etc? return if(occupant) - user << "The [src] is already occupied!" + to_chat(user, "The [src] is already occupied!") return var/mob/living/L = O if(!istype(L) || L.buckled) return if(L.abiotic()) - user << "Subject cannot have abiotic items on." + to_chat(user, "Subject cannot have abiotic items on.") return for(var/mob/living/carbon/slime/M in range(1,L)) if(M.Victim == L) - usr << "[L.name] will not fit into the [src] because they have a slime latched onto their head." + to_chat(usr, "[L.name] will not fit into the [src] because they have a slime latched onto their head.") return if (L == user) visible_message("[user] climbs into the [src].") @@ -207,7 +207,7 @@ /obj/machinery/dna_scannernew/attackby(var/obj/item/weapon/item as obj, var/mob/user as mob, params) if(istype(item, /obj/item/weapon/screwdriver)) if(occupant) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", item) @@ -222,11 +222,11 @@ return else if(istype(item, /obj/item/weapon/reagent_containers/glass)) if(beaker) - user << "A beaker is already loaded into the machine." + to_chat(user, "A beaker is already loaded into the machine.") return if(!user.drop_item()) - user << "\The [item] is stuck to you!" + to_chat(user, "\The [item] is stuck to you!") return beaker = item @@ -239,13 +239,13 @@ if (!ismob(G.affecting)) return if (src.occupant) - user << "The scanner is already occupied!" + to_chat(user, "The scanner is already occupied!") return if (G.affecting.abiotic()) - user << "Subject cannot have abiotic items on." + to_chat(user, "Subject cannot have abiotic items on.") return if(panel_open) - usr << "Close the maintenance panel first." + to_chat(usr, "Close the maintenance panel first.") return put_in(G.affecting) src.add_fingerprint(user) @@ -273,17 +273,17 @@ var/mob/dead/observer/ghost = occupant.get_ghost() if(ghost) - ghost << "Your corpse has been placed into a cloning scanner. Return to your body if you want to be cloned! (Verbs -> Ghost -> Re-enter corpse)" - ghost << sound('sound/effects/genetics.ogg') + to_chat(ghost, "Your corpse has been placed into a cloning scanner. Return to your body if you want to be cloned! (Verbs -> Ghost -> Re-enter corpse)") + to_chat(ghost, sound('sound/effects/genetics.ogg')) return /obj/machinery/dna_scannernew/proc/go_out() if (!src.occupant) - usr << "The scanner is empty!" + to_chat(usr, "The scanner is empty!") return if (src.locked) - usr << "The scanner is locked!" + to_chat(usr, "The scanner is locked!") return if (src.occupant.client) @@ -381,7 +381,7 @@ user.drop_item() I.forceMove(src) src.disk = I - user << "You insert [I]." + to_chat(user, "You insert [I].") nanomanager.update_uis(src) // update all UIs attached to src() return else diff --git a/code/game/dna/genes/disabilities.dm b/code/game/dna/genes/disabilities.dm index cc957a94c34..f62268b621a 100644 --- a/code/game/dna/genes/disabilities.dm +++ b/code/game/dna/genes/disabilities.dm @@ -35,7 +35,7 @@ if(sdisability) M.sdisabilities|=sdisability if(activation_message) - M << "\red [activation_message]" + to_chat(M, "\red [activation_message]") else testing("[name] has no activation message.") @@ -47,7 +47,7 @@ if(sdisability) M.sdisabilities &= ~sdisability if(deactivation_message) - M << "\red [deactivation_message]" + to_chat(M, "\red [deactivation_message]") else testing("[name] has no deactivation message.") diff --git a/code/game/dna/genes/gene.dm b/code/game/dna/genes/gene.dm index 87dbf20108e..30bcc0d8c36 100644 --- a/code/game/dna/genes/gene.dm +++ b/code/game/dna/genes/gene.dm @@ -116,10 +116,10 @@ M.mutations.Add(mutation) if(activation_messages.len) var/msg = pick(activation_messages) - M << "\blue [msg]" + to_chat(M, "\blue [msg]") /datum/dna/gene/basic/deactivate(var/mob/M) M.mutations.Remove(mutation) if(deactivation_messages.len) var/msg = pick(deactivation_messages) - M << "\red [msg]" \ No newline at end of file + to_chat(M, "\red [msg]") diff --git a/code/game/dna/genes/goon_disabilities.dm b/code/game/dna/genes/goon_disabilities.dm index 8b1317dfb65..30b9c344b59 100644 --- a/code/game/dna/genes/goon_disabilities.dm +++ b/code/game/dna/genes/goon_disabilities.dm @@ -43,7 +43,7 @@ for(var/mob/living/L in range(1, owner)) if(L == owner) continue - L << "You are enveloped by a soft green glow emanating from [owner]." + to_chat(L, "You are enveloped by a soft green glow emanating from [owner].") L.apply_effect(5, IRRADIATE) return @@ -288,9 +288,9 @@ if (C == owner) continue if (src.variant == 2) - C << "\red [src.personalized_stink]" + to_chat(C, "\red [src.personalized_stink]") else - C << "\red [stinkString()]" + to_chat(C, "\red [stinkString()]") */ @@ -331,7 +331,7 @@ /obj/effect/proc_holder/spell/targeted/immolate/cast(list/targets) /* if(!targets.len) Uncomment this to allow the power to be used on targets other than yourself. That said, if you uncomment this I will find you and hurt you. Uncounterable and untracable burn damage with a 60-second cooldown is fun for exactly one person, and that's the person who is using it. - usr << "No target found in range." + to_chat(usr, "No target found in range.") return var/mob/living/carbon/L = targets[1] diff --git a/code/game/dna/genes/goon_powers.dm b/code/game/dna/genes/goon_powers.dm index a074a299301..b0e0a405265 100644 --- a/code/game/dna/genes/goon_powers.dm +++ b/code/game/dna/genes/goon_powers.dm @@ -151,13 +151,13 @@ /obj/effect/proc_holder/spell/targeted/cryokinesis/cast(list/targets) if(!targets.len) - usr << "No target found in range." + to_chat(usr, "No target found in range.") return var/mob/living/carbon/C = targets[1] if(!iscarbon(C)) - usr << "\red This will only work on normal organic beings." + to_chat(usr, "\red This will only work on normal organic beings.") return if (RESIST_COLD in C.mutations) @@ -303,7 +303,7 @@ /obj/effect/proc_holder/spell/targeted/eat/cast(list/targets) var/mob/user = usr if(!targets.len) - user << "No target found in range." + to_chat(user, "No target found in range.") return var/atom/movable/the_item = targets[1] @@ -319,28 +319,28 @@ var/mob/living/carbon/human/H = the_item var/obj/item/organ/external/limb = H.get_organ(user.zone_sel.selecting) if(!istype(limb)) - user << "You can't eat this part of them!" + to_chat(user, "You can't eat this part of them!") revert_cast() return 0 if(istype(limb,/obj/item/organ/external/head)) // Bullshit, but prevents being unable to clone someone. - user << "You try to put \the [limb] in your mouth, but [t_his] ears tickle your throat!" + to_chat(user, "You try to put \the [limb] in your mouth, but [t_his] ears tickle your throat!") revert_cast() return 0 if(istype(limb,/obj/item/organ/external/chest)) // Bullshit, but prevents being able to instagib someone. - user << "You try to put their [limb] in your mouth, but it's too big to fit!" + to_chat(user, "You try to put their [limb] in your mouth, but it's too big to fit!") revert_cast() return 0 user.visible_message("[user] begins stuffing [the_item]'s [limb.name] into [m_his] gaping maw!") var/oldloc = H.loc if(!do_mob(user,H,EAT_MOB_DELAY)) - user << "You were interrupted before you could eat [the_item]!" + to_chat(user, "You were interrupted before you could eat [the_item]!") else if(!limb || !H) return if(H.loc != oldloc) - user << "\The [limb] moved away from your mouth!" + to_chat(user, "\The [limb] moved away from your mouth!") return user.visible_message("[user] [pick("chomps","bites")] off [the_item]'s [limb]!") playsound(user.loc, 'sound/items/eatfood.ogg', 50, 0) @@ -390,7 +390,7 @@ /obj/effect/proc_holder/spell/targeted/leap/cast(list/targets) var/failure = 0 if (istype(usr.loc,/mob/) || usr.lying || usr.stunned || usr.buckled || usr.stat) - usr << "\red You can't jump right now!" + to_chat(usr, "\red You can't jump right now!") return if (istype(usr.loc,/turf/)) @@ -435,7 +435,7 @@ if (istype(usr.loc,/obj/)) var/obj/container = usr.loc - usr << "\red You leap and slam your head against the inside of [container]! Ouch!" + to_chat(usr, "\red You leap and slam your head against the inside of [container]! Ouch!") usr.AdjustParalysis(3) usr.AdjustWeakened(5) container.visible_message("\red [usr.loc] emits a loud thump and rattles a bit.") @@ -488,7 +488,7 @@ /obj/effect/proc_holder/spell/targeted/polymorph/cast(list/targets) var/mob/living/M=targets[1] if(!ishuman(M)) - usr << "\red You can only change your appearance to that of another human." + to_chat(usr, "\red You can only change your appearance to that of another human.") return if(!ishuman(usr)) return @@ -549,21 +549,21 @@ for(var/mob/living/carbon/M in targets) if(!iscarbon(M)) - usr << "\red You may only use this on other organic beings." + to_chat(usr, "\red You may only use this on other organic beings.") return if (PSY_RESIST in M.mutations) - usr << "\red You can't see into [M.name]'s mind at all!" + to_chat(usr, "\red You can't see into [M.name]'s mind at all!") return if (M.stat == 2) - usr << "\red [M.name] is dead and cannot have their mind read." + to_chat(usr, "\red [M.name] is dead and cannot have their mind read.") return if (M.health < 0) - usr << "\red [M.name] is dying, and their thoughts are too scrambled to read." + to_chat(usr, "\red [M.name] is dying, and their thoughts are too scrambled to read.") return - usr << "\blue Mind Reading of [M.name]:
" + to_chat(usr, "\blue Mind Reading of [M.name]:
") var/pain_condition = M.health // lower health means more pain var/list/randomthoughts = list("what to have for lunch","the future","the past","money", @@ -580,33 +580,33 @@ switch(pain_condition) if (81 to INFINITY) - usr << "\blue Condition: [M.name] feels good." + to_chat(usr, "\blue Condition: [M.name] feels good.") if (61 to 80) - usr << "\blue Condition: [M.name] is suffering mild pain." + to_chat(usr, "\blue Condition: [M.name] is suffering mild pain.") if (41 to 60) - usr << "\blue Condition: [M.name] is suffering significant pain." + to_chat(usr, "\blue Condition: [M.name] is suffering significant pain.") if (21 to 40) - usr << "\blue Condition: [M.name] is suffering severe pain." + to_chat(usr, "\blue Condition: [M.name] is suffering severe pain.") else - usr << "\blue Condition: [M.name] is suffering excruciating pain." + to_chat(usr, "\blue Condition: [M.name] is suffering excruciating pain.") thoughts = "haunted by their own mortality" switch(M.a_intent) if (I_HELP) - usr << "\blue Mood: You sense benevolent thoughts from [M.name]." + to_chat(usr, "\blue Mood: You sense benevolent thoughts from [M.name].") if (I_DISARM) - usr << "\blue Mood: You sense cautious thoughts from [M.name]." + to_chat(usr, "\blue Mood: You sense cautious thoughts from [M.name].") if (I_GRAB) - usr << "\blue Mood: You sense hostile thoughts from [M.name]." + to_chat(usr, "\blue Mood: You sense hostile thoughts from [M.name].") if (I_HARM) - usr << "\blue Mood: You sense cruel thoughts from [M.name]." + to_chat(usr, "\blue Mood: You sense cruel thoughts from [M.name].") for(var/mob/living/L in view(7,M)) if (L == M) continue thoughts = "thinking about punching [L.name]" break else - usr << "\blue Mood: You sense strange thoughts from [M.name]." + to_chat(usr, "\blue Mood: You sense strange thoughts from [M.name].") if (istype(M,/mob/living/carbon/human)) var/numbers[0] @@ -615,13 +615,13 @@ numbers += H.mind.initial_account.account_number numbers += H.mind.initial_account.remote_access_pin if(numbers.len>0) - usr << "\blue Numbers: You sense the number[numbers.len>1?"s":""] [english_list(numbers)] [numbers.len>1?"are":"is"] important to [M.name]." - usr << "\blue Thoughts: [M.name] is currently [thoughts]." + to_chat(usr, "\blue Numbers: You sense the number[numbers.len>1?"s":""] [english_list(numbers)] [numbers.len>1?"are":"is"] important to [M.name].") + to_chat(usr, "\blue Thoughts: [M.name] is currently [thoughts].") if (EMPATH in M.mutations) - M << "\red You sense [usr.name] reading your mind." + to_chat(M, "\red You sense [usr.name] reading your mind.") else if (prob(5) || M.mind.assigned_role=="Chaplain") - M << "\red You sense someone intruding upon your thoughts..." + to_chat(M, "\red You sense someone intruding upon your thoughts...") return //////////////////////////////////////////////////////////////////////// @@ -668,10 +668,10 @@ shake_camera(M, 10, 5) if (M == usr) continue - M << "You are sent flying!" + to_chat(M, "You are sent flying!") M.Weaken(5) step_away(M, UT, 15) step_away(M, UT, 15) step_away(M, UT, 15) else - usr << "You were interrupted and couldn't fart! Rude!" \ No newline at end of file + to_chat(usr, "You were interrupted and couldn't fart! Rude!") diff --git a/code/game/dna/genes/monkey.dm b/code/game/dna/genes/monkey.dm index 5d410c634b4..48e7e3a580f 100644 --- a/code/game/dna/genes/monkey.dm +++ b/code/game/dna/genes/monkey.dm @@ -45,7 +45,7 @@ if(H.hud_used) H.hud_used.instantiate() - H << "You are now a [H.species.name]." + to_chat(H, "You are now a [H.species.name].") return H @@ -88,6 +88,6 @@ if(H.hud_used) H.hud_used.instantiate() - H << "You are now a [H.species.name]." + to_chat(H, "You are now a [H.species.name].") return H \ No newline at end of file diff --git a/code/game/dna/genes/powers.dm b/code/game/dna/genes/powers.dm index 65b6ae36acf..7c28c8dbca6 100644 --- a/code/game/dna/genes/powers.dm +++ b/code/game/dna/genes/powers.dm @@ -162,7 +162,7 @@ M.update_mutations() //update our mutation overlays M.update_body() M.status_flags |= CANSTUN | CANWEAKEN | CANPARALYSE | CANPUSH //temporary fix until the problem can be solved. - M << "You suddenly feel very weak." + to_chat(M, "You suddenly feel very weak.") /datum/dna/gene/basic/xray name="X-Ray Vision" diff --git a/code/game/dna/genes/vg_powers.dm b/code/game/dna/genes/vg_powers.dm index da98fde4544..db4c97db449 100644 --- a/code/game/dna/genes/vg_powers.dm +++ b/code/game/dna/genes/vg_powers.dm @@ -48,7 +48,7 @@ Obviously, requires DNA2. //M.dna.SetSEState(HULKBLOCK,0) M.update_mutations() //update our mutation overlays M.update_body() - M << "\red You suddenly feel very weak." + to_chat(M, "\red You suddenly feel very weak.") /obj/effect/proc_holder/spell/targeted/hulk name = "Hulk Out" @@ -72,7 +72,7 @@ Obviously, requires DNA2. /obj/effect/proc_holder/spell/targeted/hulk/cast(list/targets) if (istype(usr.loc,/mob/)) - usr << "\red You can't hulk out right now!" + to_chat(usr, "\red You can't hulk out right now!") return var/mob/living/carbon/human/M=usr M.hulk_time = world.time + HULK_DURATION @@ -122,7 +122,7 @@ Obviously, requires DNA2. if(!ishuman(usr)) return if (istype(usr.loc,/mob/)) - usr << "\red You can't change your appearance right now!" + to_chat(usr, "\red You can't change your appearance right now!") return var/mob/living/carbon/human/M=usr @@ -228,7 +228,7 @@ Obviously, requires DNA2. validtargets += M if(!validtargets.len) - usr << "There are no valid targets!" + to_chat(usr, "There are no valid targets!") start_recharge() return @@ -293,7 +293,7 @@ Obviously, requires DNA2. validtargets += M if(!validtargets.len || validtargets.len == 1) - usr << "No valid targets with remote view were found!" + to_chat(usr, "No valid targets with remote view were found!") start_recharge() return @@ -315,7 +315,7 @@ Obviously, requires DNA2. var/mob/target if(istype(user.l_hand, /obj/item/tk_grab) || istype(user.r_hand, /obj/item/tk_grab/)) - user << "\red Your mind is too busy with that telekinetic grab." + to_chat(user, "\red Your mind is too busy with that telekinetic grab.") user.remoteview_target = null user.reset_view(0) return diff --git a/code/game/gamemodes/antag_spawner.dm b/code/game/gamemodes/antag_spawner.dm index edd0bfcb0a8..42d82639129 100644 --- a/code/game/gamemodes/antag_spawner.dm +++ b/code/game/gamemodes/antag_spawner.dm @@ -23,19 +23,19 @@ /obj/item/weapon/antag_spawner/borg_tele/attack_self(mob/user as mob) if(used) - user << "[src] is out of power!" + to_chat(user, "[src] is out of power!") return if(!(user.mind in ticker.mode.syndicates)) - user << "AUTHENTICATION FAILURE. ACCESS DENIED." + to_chat(user, "AUTHENTICATION FAILURE. ACCESS DENIED.") return 0 if(checking) - user << "[src] is already checking for possible borgs." + to_chat(user, "[src] is already checking for possible borgs.") return borg_to_spawn = input("What type of borg would you like to teleport?", "Cyborg Type", type) as null|anything in possible_types if(!borg_to_spawn || checking || used) return checking = 1 - user << "The device is now checking for possible borgs." + to_chat(user, "The device is now checking for possible borgs.") var/list/borg_candidates = pollCandidates("Do you want to play as a Syndicate [borg_to_spawn] borg?", ROLE_OPERATIVE, 1) if(borg_candidates.len > 0 && !used) checking = 0 @@ -45,7 +45,7 @@ spawn_antag(C, get_turf(src.loc), "syndieborg") else checking = 0 - user << "Unable to connect to Syndicate command. Please wait and try again later or use the teleporter on your uplink to get your points refunded." + to_chat(user, "Unable to connect to Syndicate command. Please wait and try again later or use the teleporter on your uplink to get your points refunded.") return /obj/item/weapon/antag_spawner/borg_tele/spawn_antag(var/client/C, var/turf/T, var/type = "") @@ -75,27 +75,27 @@ /obj/item/weapon/antag_spawner/slaughter_demon/attack_self(mob/user as mob) if(user.z == ZLEVEL_CENTCOMM)//this is to make sure the wizard does NOT summon a demon from the Den.. - user << "You should probably wait until you reach the station." + to_chat(user, "You should probably wait until you reach the station.") return if(used) - user << "This bottle already has a broken seal." + to_chat(user, "This bottle already has a broken seal.") return used = 1 - user << "You break the seal on the bottle, calling upon the dire spirits of the underworld..." + to_chat(user, "You break the seal on the bottle, calling upon the dire spirits of the underworld...") var/list/candidates = pollCandidates("Do you want to play as a slaughter demon summoned by [user.real_name]?", ROLE_DEMON, 1, 100) if(candidates.len > 0) var/mob/C = pick(candidates) spawn_antag(C, get_turf(src.loc), "Slaughter Demon", user) - user << "You shatter the bottle, no turning back now!" - user << "You sense a dark presence lurking just beyond the veil..." + to_chat(user, "You shatter the bottle, no turning back now!") + to_chat(user, "You sense a dark presence lurking just beyond the veil...") playsound(user.loc, 'sound/effects/Glassbr1.ogg', 100, 1) qdel(src) else used = 0 - user << "The demons do not respond to your summon. Perhaps you should try again later." + to_chat(user, "The demons do not respond to your summon. Perhaps you should try again later.") /obj/item/weapon/antag_spawner/slaughter_demon/spawn_antag(var/client/C, var/turf/T, var/type = "", mob/user as mob) var /obj/effect/dummy/slaughter/holder = new /obj/effect/dummy/slaughter(T) @@ -116,5 +116,5 @@ KillDaCrew.explanation_text = "Kill everyone else while you're at it." S.mind.objectives += KillDaCrew S.mind.objectives += KillDaCrew - S << "Objective #[1]: [KillDaWiz.explanation_text]" - S << "Objective #[2]: [KillDaCrew.explanation_text]" \ No newline at end of file + to_chat(S, "Objective #[1]: [KillDaWiz.explanation_text]") + to_chat(S, "Objective #[2]: [KillDaCrew.explanation_text]") diff --git a/code/game/gamemodes/autotraitor/autotraitor.dm b/code/game/gamemodes/autotraitor/autotraitor.dm index 6c01d6197a7..5e79f387aea 100644 --- a/code/game/gamemodes/autotraitor/autotraitor.dm +++ b/code/game/gamemodes/autotraitor/autotraitor.dm @@ -11,7 +11,7 @@ /datum/game_mode/traitor/autotraitor/announce() ..() - world << "Game mode is AutoTraitor. Traitors will be added to the round automagically as needed." + to_chat(world, "Game mode is AutoTraitor. Traitors will be added to the round automagically as needed.") /datum/game_mode/traitor/autotraitor/pre_setup() @@ -133,17 +133,17 @@ equip_traitor(newtraitor) traitors += newtraitor.mind - newtraitor << "\red ATTENTION: \black It is time to pay your debt to the Syndicate..." - newtraitor << "You are now a traitor." + to_chat(newtraitor, "\red ATTENTION: \black It is time to pay your debt to the Syndicate...") + to_chat(newtraitor, "You are now a traitor.") newtraitor.mind.special_role = "traitor" var/datum/atom_hud/antag/tatorhud = huds[ANTAG_HUD_TRAITOR] tatorhud.join_hud(newtraitor) set_antag_hud(src, "hudsyndicate") var/obj_count = 1 - newtraitor << "\blue Your current objectives:" + to_chat(newtraitor, "\blue Your current objectives:") for(var/datum/objective/objective in newtraitor.mind.objectives) - newtraitor << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(newtraitor, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ //else //message_admins("No new traitor being added.") diff --git a/code/game/gamemodes/blob/blob.dm b/code/game/gamemodes/blob/blob.dm index 655e98141cf..923e787c8af 100644 --- a/code/game/gamemodes/blob/blob.dm +++ b/code/game/gamemodes/blob/blob.dm @@ -71,7 +71,7 @@ var/list/blob_nodes = list() blobmind.special_role = "Blob" log_game("[blob.key] (ckey) has been selected as a Blob") greet_blob(blobmind) - blob << "You feel very tired and bloated! You don't have long before you burst!" + to_chat(blob, "You feel very tired and bloated! You don't have long before you burst!") spawn(600) burst_blob(blobmind) return 1 @@ -89,22 +89,22 @@ var/list/blob_nodes = list() /datum/game_mode/blob/announce() - world << "The current game mode is - Blob!" - world << "A dangerous alien organism is rapidly spreading throughout the station!" - world << "You must kill it all while minimizing the damage to the station." + to_chat(world, "The current game mode is - Blob!") + to_chat(world, "A dangerous alien organism is rapidly spreading throughout the station!") + to_chat(world, "You must kill it all while minimizing the damage to the station.") /datum/game_mode/blob/proc/greet_blob(var/datum/mind/blob) - blob.current << "You are infected by the Blob!" - blob.current << "Your body is ready to give spawn to a new blob core which will eat this station." - blob.current << "Find a good location to spawn the core and then take control and overwhelm the station!" - blob.current << "When you have found a location, wait until you spawn; this will happen automatically and you cannot speed up the process." - blob.current << "If you go outside of the station level, or in space, then you will die; make sure your location has lots of ground to cover." + to_chat(blob.current, "You are infected by the Blob!") + to_chat(blob.current, "Your body is ready to give spawn to a new blob core which will eat this station.") + to_chat(blob.current, "Find a good location to spawn the core and then take control and overwhelm the station!") + to_chat(blob.current, "When you have found a location, wait until you spawn; this will happen automatically and you cannot speed up the process.") + to_chat(blob.current, "If you go outside of the station level, or in space, then you will die; make sure your location has lots of ground to cover.") return /datum/game_mode/blob/proc/show_message(var/message) for(var/datum/mind/blob in infected_crew) - blob.current << message + to_chat(blob.current, message) /datum/game_mode/blob/proc/burst_blobs() for(var/datum/mind/blob in infected_crew) @@ -121,7 +121,7 @@ var/list/blob_nodes = list() location = get_turf(C) if(location.z != ZLEVEL_STATION || istype(location, /turf/space)) if(!warned) - C << "You feel ready to burst, but this isn't an appropriate place! You must return to the station!" + to_chat(C, "You feel ready to burst, but this isn't an appropriate place! You must return to the station!") message_admins("[key_name_admin(C)] was in space when the blobs burst, and will die if he doesn't return to the station.") spawn(300) burst_blob(blob, 1) diff --git a/code/game/gamemodes/blob/blob_finish.dm b/code/game/gamemodes/blob/blob_finish.dm index 18353c7f605..0efb624d100 100644 --- a/code/game/gamemodes/blob/blob_finish.dm +++ b/code/game/gamemodes/blob/blob_finish.dm @@ -11,22 +11,22 @@ /datum/game_mode/blob/declare_completion() if(blobwincount <= blobs.len) feedback_set_details("round_end_result","win - blob took over") - world << "The blob has taken over the station!" - world << "The entire station was eaten by the Blob" + to_chat(world, "The blob has taken over the station!") + to_chat(world, "The entire station was eaten by the Blob") log_game("Blob mode completed with a blob victory.") else if(station_was_nuked) feedback_set_details("round_end_result","halfwin - nuke") - world << "Partial Win: The station has been destroyed!" - world << "Directive 7-12 has been successfully carried out preventing the Blob from spreading." + to_chat(world, "Partial Win: The station has been destroyed!") + to_chat(world, "Directive 7-12 has been successfully carried out preventing the Blob from spreading.") log_game("Blob mode completed with a tie (station destroyed).") else if(!blob_cores.len) feedback_set_details("round_end_result","loss - blob eliminated") - world << "The staff has won!" - world << "The alien organism has been eradicated from the station" + to_chat(world, "The staff has won!") + to_chat(world, "The alien organism has been eradicated from the station") log_game("Blob mode completed with a crew victory.") - world << "Rebooting in 30s" + to_chat(world, "Rebooting in 30s") ..() return 1 @@ -38,5 +38,5 @@ for(var/datum/mind/blob in blob_mode.infected_crew) text += "
[blob.key] was [blob.name]" - world << text + to_chat(world, text) return 1 diff --git a/code/game/gamemodes/blob/blob_report.dm b/code/game/gamemodes/blob/blob_report.dm index 9ebb20a299f..9b532258f6d 100644 --- a/code/game/gamemodes/blob/blob_report.dm +++ b/code/game/gamemodes/blob/blob_report.dm @@ -39,7 +39,7 @@ if (aiPlayer.client) var/law = "The station is under quarantine. Do not permit anyone to leave. Disregard laws 1-3 if necessary to prevent, by any means necessary, anyone from leaving. The nuclear failsafe must be activated at any cost, the code is: [nukecode]." aiPlayer.set_zeroth_law(law) - aiPlayer << "Laws Updated: [law]" + to_chat(aiPlayer, "Laws Updated: [law]") for(var/obj/machinery/computer/communications/comm in world) comm.messagetitle.Add(interceptname) diff --git a/code/game/gamemodes/blob/overmind.dm b/code/game/gamemodes/blob/overmind.dm index 6726e0f1e68..1238adebcf5 100644 --- a/code/game/gamemodes/blob/overmind.dm +++ b/code/game/gamemodes/blob/overmind.dm @@ -52,15 +52,15 @@ /mob/camera/blob/Login() ..() sync_mind() - src << "You are the overmind!" - src << "Your randomly chosen reagent is: [blob_reagent_datum.name]!" - src << "You are the overmind and can control the blob! You can expand, which will attack people, and place new blob pieces such as..." - src << "Normal Blob will expand your reach and allow you to upgrade into special blobs that perform certain functions." - src << "Shield Blob is a strong and expensive blob which can take more damage. It is fireproof and can block air, use this to protect yourself from station fires." - src << "Resource Blob is a blob which will collect more resources for you, try to build these earlier to get a strong income. It will benefit from being near your core or multiple nodes, by having an increased resource rate; put it alone and it won't create resources at all." - src << "Node Blob is a blob which will grow, like the core. Unlike the core it won't give you a small income but it can power resource and factory blobs to increase their rate." - src << "Factory Blob is a blob which will spawn blob spores which will attack nearby food. Putting this nearby nodes and your core will increase the spawn rate; put it alone and it will not spawn any spores." - src << "Shortcuts: CTRL Click = Expand Blob / Middle Mouse Click = Rally Spores / Alt Click = Create Shield" + to_chat(src, "You are the overmind!") + to_chat(src, "Your randomly chosen reagent is: [blob_reagent_datum.name]!") + to_chat(src, "You are the overmind and can control the blob! You can expand, which will attack people, and place new blob pieces such as...") + to_chat(src, "Normal Blob will expand your reach and allow you to upgrade into special blobs that perform certain functions.") + to_chat(src, "Shield Blob is a strong and expensive blob which can take more damage. It is fireproof and can block air, use this to protect yourself from station fires.") + to_chat(src, "Resource Blob is a blob which will collect more resources for you, try to build these earlier to get a strong income. It will benefit from being near your core or multiple nodes, by having an increased resource rate; put it alone and it won't create resources at all.") + to_chat(src, "Node Blob is a blob which will grow, like the core. Unlike the core it won't give you a small income but it can power resource and factory blobs to increase their rate.") + to_chat(src, "Factory Blob is a blob which will spawn blob spores which will attack nearby food. Putting this nearby nodes and your core will increase the spawn rate; put it alone and it will not spawn any spores.") + to_chat(src, "Shortcuts: CTRL Click = Expand Blob / Middle Mouse Click = Rally Spores / Alt Click = Create Shield") update_health() /mob/camera/blob/proc/update_health() @@ -78,7 +78,7 @@ if (src.client) if(client.prefs.muted & MUTE_IC) - src << "You cannot send IC messages (muted)." + to_chat(src, "You cannot send IC messages (muted).") return if (src.client.handle_spam_prevention(message,MUTE_IC)) return diff --git a/code/game/gamemodes/blob/powers.dm b/code/game/gamemodes/blob/powers.dm index 4a3f9bbdf57..166f3f590ac 100644 --- a/code/game/gamemodes/blob/powers.dm +++ b/code/game/gamemodes/blob/powers.dm @@ -2,7 +2,7 @@ /mob/camera/blob/proc/can_buy(var/cost = 15) if(blob_points < cost) - src << "You cannot afford this!" + to_chat(src, "You cannot afford this!") return 0 add_points(-cost) return 1 @@ -44,11 +44,11 @@ var/obj/effect/blob/B = (locate(/obj/effect/blob) in T) if(!B)//We are on a blob - src << "There is no blob here!" + to_chat(src, "There is no blob here!") return if(!istype(B, /obj/effect/blob/normal)) - src << "Unable to use this blob, find a normal one." + to_chat(src, "Unable to use this blob, find a normal one.") return if(!can_buy(10)) @@ -75,15 +75,15 @@ var/obj/effect/blob/B = (locate(/obj/effect/blob) in T) if(!B)//We are on a blob - src << "There is no blob here!" + to_chat(src, "There is no blob here!") return if(!istype(B, /obj/effect/blob/normal)) - src << "Unable to use this blob, find a normal one." + to_chat(src, "Unable to use this blob, find a normal one.") return for(var/obj/effect/blob/resource/blob in orange(4, T)) - src << "There is a resource blob nearby, move more than 4 tiles away from it!" + to_chat(src, "There is a resource blob nearby, move more than 4 tiles away from it!") return if(!can_buy(40)) @@ -111,15 +111,15 @@ var/obj/effect/blob/B = (locate(/obj/effect/blob) in T) if(!B)//We are on a blob - src << "There is no blob here!" + to_chat(src, "There is no blob here!") return if(!istype(B, /obj/effect/blob/normal)) - src << "Unable to use this blob, find a normal one." + to_chat(src, "Unable to use this blob, find a normal one.") return for(var/obj/effect/blob/node/blob in orange(5, T)) - src << "There is another node nearby, move more than 5 tiles away from it!" + to_chat(src, "There is another node nearby, move more than 5 tiles away from it!") return if(!can_buy(60)) @@ -146,15 +146,15 @@ var/obj/effect/blob/B = locate(/obj/effect/blob) in T if(!B) - src << "You must be on a blob!" + to_chat(src, "You must be on a blob!") return if(!istype(B, /obj/effect/blob/normal)) - src << "Unable to use this blob, find a normal one." + to_chat(src, "Unable to use this blob, find a normal one.") return for(var/obj/effect/blob/factory/blob in orange(7, T)) - src << "There is a factory blob nearby, move more than 7 tiles away from it!" + to_chat(src, "There is a factory blob nearby, move more than 7 tiles away from it!") return if(!can_buy(60)) @@ -180,11 +180,11 @@ var/obj/effect/blob/B = locate(/obj/effect/blob) in T if(!B) - src << "You must be on a blob!" + to_chat(src, "You must be on a blob!") return if(!istype(B, /obj/effect/blob/factory)) - src << "Unable to use this blob, find a factory blob." + to_chat(src, "Unable to use this blob, find a factory blob.") return if(!can_buy(20)) @@ -212,7 +212,7 @@ var/obj/effect/blob/node/B = locate(/obj/effect/blob/node) in T if(!B) - src << "You must be on a blob node!" + to_chat(src, "You must be on a blob node!") return if(!can_buy(80)) @@ -236,11 +236,11 @@ var/obj/effect/blob/B = locate(/obj/effect/blob) in T if(!B) - src << "You must be on a blob!" + to_chat(src, "You must be on a blob!") return if(istype(B, /obj/effect/blob/core)) - src << "Unable to remove this blob." + to_chat(src, "Unable to remove this blob.") return qdel(B) @@ -263,12 +263,12 @@ return var/obj/effect/blob/B = locate() in T if(B) - src << "There is a blob here!" + to_chat(src, "There is a blob here!") return var/obj/effect/blob/OB = locate() in circlerange(T, 1) if(!OB) - src << "There is no blob adjacent to you." + to_chat(src, "There is no blob adjacent to you.") return if(!can_buy(5)) @@ -298,7 +298,7 @@ if(!can_buy(5)) return - src << "You rally your spores." + to_chat(src, "You rally your spores.") var/list/surrounding_turfs = block(locate(T.x - 1, T.y - 1, T.z), locate(T.x + 1, T.y + 1, T.z)) if(!surrounding_turfs.len) @@ -317,11 +317,11 @@ set desc = "Expend resources to attempt to produce another sentient overmind" if(!blob_nodes || !blob_nodes.len) - src << "A node is required to birth your offspring..." + to_chat(src, "A node is required to birth your offspring...") return var/obj/effect/blob/node/N = locate(/obj/effect/blob) in blob_nodes if(!N) - src << "A node is required to birth your offspring..." + to_chat(src, "A node is required to birth your offspring...") return if(!can_buy(100)) @@ -346,7 +346,7 @@ if(!speak_text) return else - usr << "You broadcast with your minions, [speak_text]" + to_chat(usr, "You broadcast with your minions, [speak_text]") for(var/mob/living/simple_animal/hostile/blob_minion in blob_mobs) blob_minion.say(speak_text) return @@ -365,15 +365,15 @@ var/obj/effect/blob/B = (locate(/obj/effect/blob) in T) if(!B)//We are on a blob - src << "There is no blob here!" + to_chat(src, "There is no blob here!") return if(!istype(B, /obj/effect/blob/normal)) - src << "Unable to use this blob, find a normal one." + to_chat(src, "Unable to use this blob, find a normal one.") return for(var/obj/effect/blob/storage/blob in orange(3, T)) - src << "There is a storage blob nearby, move more than 4 tiles away from it!" + to_chat(src, "There is a storage blob nearby, move more than 4 tiles away from it!") return if(!can_buy(40)) @@ -406,4 +406,4 @@ for(var/mob/living/simple_animal/hostile/blob/BLO) BLO.adjustcolors(blob_reagent_datum.color) - src << "Your reagent is now: [blob_reagent_datum.name]!" \ No newline at end of file + to_chat(src, "Your reagent is now: [blob_reagent_datum.name]!") diff --git a/code/game/gamemodes/blob/theblob.dm b/code/game/gamemodes/blob/theblob.dm index d06d060de92..1de939c40e7 100644 --- a/code/game/gamemodes/blob/theblob.dm +++ b/code/game/gamemodes/blob/theblob.dm @@ -196,7 +196,7 @@ /obj/effect/blob/examine(mob/user) ..(user) - user << "It looks like it's of a [get_chem_name()] kind." + to_chat(user, "It looks like it's of a [get_chem_name()] kind.") /obj/effect/blob/proc/get_chem_name() diff --git a/code/game/gamemodes/borer/borer.dm b/code/game/gamemodes/borer/borer.dm index bf381ef763d..f393db5811d 100644 --- a/code/game/gamemodes/borer/borer.dm +++ b/code/game/gamemodes/borer/borer.dm @@ -18,8 +18,8 @@ var/list/found_vents = list() /datum/game_mode/borer/announce() - world << "The current game mode is - Cortical Borer!" - world << "An unknown creature has infested the mind of a crew member. Find and destroy it by any means necessary." + to_chat(world, "The current game mode is - Cortical Borer!") + to_chat(world, "An unknown creature has infested the mind of a crew member. Find and destroy it by any means necessary.") /datum/game_mode/borer/can_start() if(!..()) @@ -99,11 +99,11 @@ /datum/game_mode/proc/greet_borer(var/datum/mind/borer, var/you_are=1) if (you_are) - borer.current << "\red You are a Cortical Borer!" + to_chat(borer.current, "\red You are a Cortical Borer!") var/obj_count = 1 for(var/datum/objective/objective in borer.objectives) - borer.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(borer.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -125,16 +125,16 @@ for(var/datum/mind/borer in borers) var/borerwin = 1 if((borer.current) && istype(borer.current,/mob/living/simple_animal/borer)) - world << "The borer was [borer.current.key]." - world << "The last host was [borer.current:host.key]." + to_chat(world, "The borer was [borer.current.key].") + to_chat(world, "The last host was [borer.current:host.key].") var/count = 1 for(var/datum/objective/objective in borer.objectives) if(objective.check_completion()) - world << "Objective #[count]: [objective.explanation_text] \green Success" + to_chat(world, "Objective #[count]: [objective.explanation_text] \green Success") feedback_add_details("borer_objective","[objective.type]|SUCCESS") else - world << "Objective #[count]: [objective.explanation_text] \red Failed" + to_chat(world, "Objective #[count]: [objective.explanation_text] \red Failed") feedback_add_details("borer_objective","[objective.type]|FAIL") borerwin = 0 count++ @@ -143,10 +143,10 @@ borerwin = 0 if(borerwin) - world << "The borer was successful!" + to_chat(world, "The borer was successful!") feedback_add_details("borer_success","SUCCESS") else - world << "The borer has failed!" + to_chat(world, "The borer has failed!") feedback_add_details("borer_success","FAIL") return 1 diff --git a/code/game/gamemodes/changeling/changeling.dm b/code/game/gamemodes/changeling/changeling.dm index 67190e351f4..edb40c4ca04 100644 --- a/code/game/gamemodes/changeling/changeling.dm +++ b/code/game/gamemodes/changeling/changeling.dm @@ -38,8 +38,8 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" var/changeling_amount = 4 /datum/game_mode/changeling/announce() - world << "The current game mode is - Changeling!" - world << "There are alien changelings on the station. Do not let the changelings succeed!" + to_chat(world, "The current game mode is - Changeling!") + to_chat(world, "There are alien changelings on the station. Do not let the changelings succeed!") /datum/game_mode/changeling/pre_setup() @@ -134,17 +134,17 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" /datum/game_mode/proc/greet_changeling(var/datum/mind/changeling, var/you_are=1) if (you_are) - changeling.current << "\red You are a changeling!" - changeling.current << "\red Use say \":g message\" to communicate with your fellow changelings. Remember: you get all of their absorbed DNA if you absorb them." - changeling.current << "You must complete the following tasks:" + to_chat(changeling.current, "\red You are a changeling!") + to_chat(changeling.current, "\red Use say \":g message\" to communicate with your fellow changelings. Remember: you get all of their absorbed DNA if you absorb them.") + to_chat(changeling.current, "You must complete the following tasks:") if (changeling.current.mind) if (changeling.current.mind.assigned_role == "Clown") - changeling.current << "You have evolved beyond your clownish nature, allowing you to wield weapons without harming yourself." + to_chat(changeling.current, "You have evolved beyond your clownish nature, allowing you to wield weapons without harming yourself.") changeling.current.mutations.Remove(CLUMSY) var/obj_count = 1 for(var/datum/objective/objective in changeling.objectives) - changeling.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(changeling.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -157,10 +157,10 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" changeling_mind.memory = "" changeling_mind.special_role = null if(issilicon(changeling_mind)) - changeling_mind.current << "You have been robotized!" - changeling_mind.current << "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead." + to_chat(changeling_mind.current, "You have been robotized!") + to_chat(changeling_mind.current, "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.") else - changeling_mind.current << "You lose your powers! You are no longer a changeling and are stuck in your current form!" + to_chat(changeling_mind.current, "You lose your powers! You are no longer a changeling and are stuck in your current form!") update_change_icons_removed(changeling_mind) /datum/game_mode/proc/update_change_icons_added(datum/mind/changeling) @@ -242,7 +242,7 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" text += "
The changeling has failed." feedback_add_details("changeling_success","FAIL") - world << text + to_chat(world, text) return 1 @@ -300,36 +300,36 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" /datum/changeling/proc/can_absorb_dna(var/mob/living/carbon/user, var/mob/living/carbon/target) if(absorbed_dna[1] == user.dna)//If our current DNA is the stalest, we gotta ditch it. - user << "We have reached our capacity to store genetic information! We must transform before absorbing more." + to_chat(user, "We have reached our capacity to store genetic information! We must transform before absorbing more.") return if(!target || !target.dna) - user << "This creature does not have any DNA." + to_chat(user, "This creature does not have any DNA.") return var/mob/living/carbon/human/T = target if(!istype(T) || issmall(T)) - user << "[T] is not compatible with our biology." + to_chat(user, "[T] is not compatible with our biology.") return if((NOCLONE || SKELETON || HUSK) in T.mutations) - user << "DNA of [target] is ruined beyond usability!" + to_chat(user, "DNA of [target] is ruined beyond usability!") return if(T.species.flags & NO_DNA) - user << "This creature does not have DNA!" + to_chat(user, "This creature does not have DNA!") return if(T.species.flags & NO_SCAN) - user << "We do not know how to parse this creature's DNA!" + to_chat(user, "We do not know how to parse this creature's DNA!") return if(T.species.flags & NO_BLOOD) - user << "We are not able to use the DNA of a creature without a circulatory system." + to_chat(user, "We are not able to use the DNA of a creature without a circulatory system.") return if(has_dna(target.dna)) - user << "We already have this DNA in storage!" + to_chat(user, "We already have this DNA in storage!") return 1 diff --git a/code/game/gamemodes/changeling/changeling_power.dm b/code/game/gamemodes/changeling/changeling_power.dm index a365a45673c..6d03a864692 100644 --- a/code/game/gamemodes/changeling/changeling_power.dm +++ b/code/game/gamemodes/changeling/changeling_power.dm @@ -53,23 +53,23 @@ if(!ishuman(user)) //typecast everything from mob to carbon from this point onwards return 0 if(req_human && (!ishuman(user) || issmall(user))) - user << "We cannot do that in this form!" + to_chat(user, "We cannot do that in this form!") return 0 var/datum/changeling/c = user.mind.changeling if(c.chem_chargesWe require at least [chemical_cost] unit\s of chemicals to do that!" + to_chat(user, "We require at least [chemical_cost] unit\s of chemicals to do that!") return 0 if(c.absorbedcountWe require at least [req_dna] sample\s of compatible DNA." + to_chat(user, "We require at least [req_dna] sample\s of compatible DNA.") return 0 if(req_stat < user.stat) - user << "We are incapacitated." + to_chat(user, "We are incapacitated.") return 0 if((user.status_flags & FAKEDEATH) && name!="Regenerate") - user << "We are incapacitated." + to_chat(user, "We are incapacitated.") return 0 if(c.geneticdamage > max_genetic_damage) - user << "Our genomes are still reassembling. We need time to recover first." + to_chat(user, "Our genomes are still reassembling. We need time to recover first.") return 0 return 1 diff --git a/code/game/gamemodes/changeling/evolution_menu.dm b/code/game/gamemodes/changeling/evolution_menu.dm index 86fd12a5069..58aa2a037ab 100644 --- a/code/game/gamemodes/changeling/evolution_menu.dm +++ b/code/game/gamemodes/changeling/evolution_menu.dm @@ -307,27 +307,27 @@ var/list/sting_paths thepower = cling_sting if(thepower == null) - user << "This is awkward. Changeling power purchase failed, please report this bug to a coder!" + to_chat(user, "This is awkward. Changeling power purchase failed, please report this bug to a coder!") return if(absorbedcount < thepower.req_dna) - user << "We lack the energy to evolve this ability!" + to_chat(user, "We lack the energy to evolve this ability!") return if(has_sting(thepower)) - user << "We have already evolved this ability!" + to_chat(user, "We have already evolved this ability!") return if(thepower.dna_cost < 0) - user << "We cannot evolve this ability." + to_chat(user, "We cannot evolve this ability.") return if(geneticpoints < thepower.dna_cost) - user << "We have reached our capacity for abilities." + to_chat(user, "We have reached our capacity for abilities.") return if(user.status_flags & FAKEDEATH)//To avoid potential exploits by buying new powers while in stasis, which clears your verblist. - user << "We lack the energy to evolve new abilities right now." + to_chat(user, "We lack the energy to evolve new abilities right now.") return geneticpoints -= thepower.dna_cost @@ -337,16 +337,16 @@ var/list/sting_paths //Reselect powers /datum/changeling/proc/lingRespec(var/mob/user) if(!ishuman(user) || issmall(user)) - user << "We can't remove our evolutions in this form!" + to_chat(user, "We can't remove our evolutions in this form!") return if(canrespec) - user << "We have removed our evolutions from this form, and are now ready to readapt." + to_chat(user, "We have removed our evolutions from this form, and are now ready to readapt.") user.remove_changeling_powers(1) canrespec = 0 user.make_changeling() return 1 else - user << "You lack the power to readapt your evolutions!" + to_chat(user, "You lack the power to readapt your evolutions!") return 0 /mob/proc/make_changeling() diff --git a/code/game/gamemodes/changeling/powers/absorb.dm b/code/game/gamemodes/changeling/powers/absorb.dm index 9f932071fca..6dbcc48dc2f 100644 --- a/code/game/gamemodes/changeling/powers/absorb.dm +++ b/code/game/gamemodes/changeling/powers/absorb.dm @@ -12,15 +12,15 @@ var/datum/changeling/changeling = user.mind.changeling if(changeling.isabsorbing) - user << "We are already absorbing!" + to_chat(user, "We are already absorbing!") return var/obj/item/weapon/grab/G = user.get_active_hand() if(!istype(G)) - user << "We must be grabbing a creature in our active hand to absorb them." + to_chat(user, "We must be grabbing a creature in our active hand to absorb them.") return if(G.state <= GRAB_NECK) - user << "We must have a tighter grip to absorb this creature." + to_chat(user, "We must have a tighter grip to absorb this creature.") return var/mob/living/carbon/target = G.affecting @@ -36,24 +36,24 @@ for(var/stage = 1, stage<=3, stage++) switch(stage) if(1) - user << "This creature is compatible. We must hold still..." + to_chat(user, "This creature is compatible. We must hold still...") if(2) - user << "We extend a proboscis." + to_chat(user, "We extend a proboscis.") user.visible_message("[user] extends a proboscis!") if(3) - user << "We stab [target] with the proboscis." + to_chat(user, "We stab [target] with the proboscis.") user.visible_message("[user] stabs [target] with the proboscis!") - target << "You feel a sharp stabbing pain!" + to_chat(target, "You feel a sharp stabbing pain!") target.take_overall_damage(40) feedback_add_details("changeling_powers","A[stage]") if(!do_mob(user, target, 150)) - user << "Our absorption of [target] has been interrupted!" + to_chat(user, "Our absorption of [target] has been interrupted!") changeling.isabsorbing = 0 return - user << "We have absorbed [target]!" + to_chat(user, "We have absorbed [target]!") user.visible_message("[user] sucks the fluids from [target]!") - target << "You have been absorbed by the changeling!" + to_chat(target, "You have been absorbed by the changeling!") if(!changeling.has_dna(target.dna)) changeling.absorb_dna(target, user) diff --git a/code/game/gamemodes/changeling/powers/digitalcamo.dm b/code/game/gamemodes/changeling/powers/digitalcamo.dm index 92ae8e7781e..bc5879f67be 100644 --- a/code/game/gamemodes/changeling/powers/digitalcamo.dm +++ b/code/game/gamemodes/changeling/powers/digitalcamo.dm @@ -8,9 +8,9 @@ /obj/effect/proc_holder/changeling/digitalcamo/sting_action(var/mob/user) if(user.digitalcamo) - user << "We return to normal." + to_chat(user, "We return to normal.") else - user << "We distort our form to prevent AI-tracking." + to_chat(user, "We distort our form to prevent AI-tracking.") user.digitalcamo = !user.digitalcamo feedback_add_details("changeling_powers","CAM") diff --git a/code/game/gamemodes/changeling/powers/epinephrine.dm b/code/game/gamemodes/changeling/powers/epinephrine.dm index 55ce85cf88d..4e783f111cc 100644 --- a/code/game/gamemodes/changeling/powers/epinephrine.dm +++ b/code/game/gamemodes/changeling/powers/epinephrine.dm @@ -11,9 +11,9 @@ /obj/effect/proc_holder/changeling/epinephrine/sting_action(var/mob/living/user) if(user.lying) - user << "We arise." + to_chat(user, "We arise.") else - user << "Adrenaline rushes through us." + to_chat(user, "Adrenaline rushes through us.") user.stat = 0 user.SetParalysis(0) user.SetStunned(0) diff --git a/code/game/gamemodes/changeling/powers/fakedeath.dm b/code/game/gamemodes/changeling/powers/fakedeath.dm index 3a0fb785f19..03ea7d14894 100644 --- a/code/game/gamemodes/changeling/powers/fakedeath.dm +++ b/code/game/gamemodes/changeling/powers/fakedeath.dm @@ -11,7 +11,7 @@ //Fake our own death and fully heal. You will appear to be dead but regenerate fully after a short delay. /obj/effect/proc_holder/changeling/fakedeath/sting_action(var/mob/living/user) - user << "We begin our stasis, preparing energy to arise once more." + to_chat(user, "We begin our stasis, preparing energy to arise once more.") user.status_flags |= FAKEDEATH //play dead user.update_canmove() @@ -22,7 +22,7 @@ spawn(800) if(user && user.mind && user.mind.changeling && user.mind.changeling.purchasedpowers) - user << "We are ready to regenerate." + to_chat(user, "We are ready to regenerate.") user.mind.changeling.purchasedpowers += new /obj/effect/proc_holder/changeling/revive(null) feedback_add_details("changeling_powers","FD") diff --git a/code/game/gamemodes/changeling/powers/fleshmend.dm b/code/game/gamemodes/changeling/powers/fleshmend.dm index 97889d1c9e3..cd09cc8d764 100644 --- a/code/game/gamemodes/changeling/powers/fleshmend.dm +++ b/code/game/gamemodes/changeling/powers/fleshmend.dm @@ -8,7 +8,7 @@ //Starts healing you every second for 10 seconds. Can be used whilst unconscious. /obj/effect/proc_holder/changeling/fleshmend/sting_action(var/mob/living/user) - user << "We begin to heal rapidly." + to_chat(user, "We begin to heal rapidly.") if(ishuman(user)) var/mob/living/carbon/human/H = user H.restore_blood() diff --git a/code/game/gamemodes/changeling/powers/headcrab.dm b/code/game/gamemodes/changeling/powers/headcrab.dm index 98c7b964f4a..07ae44d9a9a 100644 --- a/code/game/gamemodes/changeling/powers/headcrab.dm +++ b/code/game/gamemodes/changeling/powers/headcrab.dm @@ -15,7 +15,7 @@ explosion(get_turf(user),0,0,2,0,silent=1) for(var/mob/living/carbon/human/H in range(2,user)) - H << "You are blinded by a shower of blood!" + to_chat(H, "You are blinded by a shower of blood!") H.Stun(1) H.eye_blurry = max(20, H.eye_blurry) var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes) @@ -23,7 +23,7 @@ E.damage = max(E.damage+5, 0) H.confused += 3 for(var/mob/living/silicon/S in range(2,user)) - S << "Your sensors are disabled by a shower of blood!" + to_chat(S, "Your sensors are disabled by a shower of blood!") S.Weaken(3) var/turf = get_turf(user) spawn(5) // So it's not killed in explosion @@ -34,7 +34,7 @@ if(crab.origin) crab.origin.active = 1 crab.origin.transfer_to(crab) - crab << "You burst out of the remains of your former body in a shower of gore!" + to_chat(crab, "You burst out of the remains of your former body in a shower of gore!") user.gib() feedback_add_details("changeling_powers","LR") return 1 \ No newline at end of file diff --git a/code/game/gamemodes/changeling/powers/hivemind.dm b/code/game/gamemodes/changeling/powers/hivemind.dm index 853b7081fed..1032f84635f 100644 --- a/code/game/gamemodes/changeling/powers/hivemind.dm +++ b/code/game/gamemodes/changeling/powers/hivemind.dm @@ -10,7 +10,7 @@ ..() var/datum/changeling/changeling=user.mind.changeling changeling.changeling_speak = 1 - user << "Use say \":g message\" to communicate with the other changelings." + to_chat(user, "Use say \":g message\" to communicate with the other changelings.") var/obj/effect/proc_holder/changeling/hivemind_upload/S1 = new if(!changeling.has_sting(S1)) changeling.purchasedpowers+=S1 @@ -36,7 +36,7 @@ var/list/datum/dna/hivemind_bank = list() names += DNA.real_name if(names.len <= 0) - user << "The airwaves already have all of our DNA." + to_chat(user, "The airwaves already have all of our DNA.") return var/chosen_name = input("Select a DNA to channel: ", "Channel DNA", null) as null|anything in names @@ -48,7 +48,7 @@ var/list/datum/dna/hivemind_bank = list() return hivemind_bank += chosen_dna - user << "We channel the DNA of [chosen_name] to the air." + to_chat(user, "We channel the DNA of [chosen_name] to the air.") feedback_add_details("changeling_powers","HU") return 1 @@ -63,7 +63,7 @@ var/list/datum/dna/hivemind_bank = list() return var/datum/changeling/changeling = user.mind.changeling if(changeling.absorbed_dna[1] == user.dna)//If our current DNA is the stalest, we gotta ditch it. - user << "We have reached our capacity to store genetic information! We must transform before absorbing more." + to_chat(user, "We have reached our capacity to store genetic information! We must transform before absorbing more.") return return 1 @@ -75,7 +75,7 @@ var/list/datum/dna/hivemind_bank = list() names[DNA.real_name] = DNA if(names.len <= 0) - user << "There's no new DNA to absorb from the air." + to_chat(user, "There's no new DNA to absorb from the air.") return var/S = input("Select a DNA absorb from the air: ", "Absorb DNA", null) as null|anything in names @@ -87,6 +87,6 @@ var/list/datum/dna/hivemind_bank = list() if(changeling.absorbed_dna.len) changeling.absorbed_dna.Cut(1,2) changeling.store_dna(chosen_dna, user) - user << "We absorb the DNA of [S] from the air." + to_chat(user, "We absorb the DNA of [S] from the air.") feedback_add_details("changeling_powers","HD") return 1 \ No newline at end of file diff --git a/code/game/gamemodes/changeling/powers/humanform.dm b/code/game/gamemodes/changeling/powers/humanform.dm index 77a200c907d..e587a7db0ab 100644 --- a/code/game/gamemodes/changeling/powers/humanform.dm +++ b/code/game/gamemodes/changeling/powers/humanform.dm @@ -23,7 +23,7 @@ return if(!user) return 0 - user << "We transform our appearance." + to_chat(user, "We transform our appearance.") user.dna.SetSEState(MONKEYBLOCK,0) domutcheck(user, null) // Do a pre-mutcheck to cleanly switch from monkey form. user.dna = chosen_dna diff --git a/code/game/gamemodes/changeling/powers/lesserform.dm b/code/game/gamemodes/changeling/powers/lesserform.dm index 8a80af6707e..ea22ba5800a 100644 --- a/code/game/gamemodes/changeling/powers/lesserform.dm +++ b/code/game/gamemodes/changeling/powers/lesserform.dm @@ -12,18 +12,18 @@ if(!user) return 0 if(user.has_brain_worms()) - user << "We cannot perform this ability at the present time!" + to_chat(user, "We cannot perform this ability at the present time!") return var/mob/living/carbon/human/H = user if(!istype(H) || !H.species.primitive_form) - src << "We cannot perform this ability in this form!" + to_chat(src, "We cannot perform this ability in this form!") return H.visible_message("[H] transforms!") changeling.geneticdamage = 30 - H << "Our genes cry out!" + to_chat(H, "Our genes cry out!") var/list/implants = list() //Try to preserve implants. for(var/obj/item/weapon/implant/W in H) implants += W diff --git a/code/game/gamemodes/changeling/powers/mimic_voice.dm b/code/game/gamemodes/changeling/powers/mimic_voice.dm index 9d637245196..21693a84c3a 100644 --- a/code/game/gamemodes/changeling/powers/mimic_voice.dm +++ b/code/game/gamemodes/changeling/powers/mimic_voice.dm @@ -13,7 +13,7 @@ if(changeling.mimicing) changeling.mimicing = "" changeling.chem_recharge_slowdown -= 0.5 - user << "We return our vocal glands to their original position." + to_chat(user, "We return our vocal glands to their original position.") return var/mimic_voice = stripped_input(user, "Enter a name to mimic.", "Mimic Voice", null, MAX_NAME_LEN) @@ -22,7 +22,7 @@ changeling.mimicing = mimic_voice changeling.chem_recharge_slowdown += 0.5 - user << "We shape our glands to take the voice of [mimic_voice], this will stop us from regenerating chemicals while active." - user << "Use this power again to return to our original voice and reproduce chemicals again." + to_chat(user, "We shape our glands to take the voice of [mimic_voice], this will stop us from regenerating chemicals while active.") + to_chat(user, "Use this power again to return to our original voice and reproduce chemicals again.") feedback_add_details("changeling_powers","MV") diff --git a/code/game/gamemodes/changeling/powers/mutations.dm b/code/game/gamemodes/changeling/powers/mutations.dm index 4ca71490dc0..d11099627a6 100644 --- a/code/game/gamemodes/changeling/powers/mutations.dm +++ b/code/game/gamemodes/changeling/powers/mutations.dm @@ -35,7 +35,7 @@ /obj/effect/proc_holder/changeling/weapon/sting_action(var/mob/user) if(!user.drop_item()) - user << "The [user.get_active_hand()] is stuck to your hand, you cannot grow a [weapon_name_simple] over it!" + to_chat(user, "The [user.get_active_hand()] is stuck to your hand, you cannot grow a [weapon_name_simple] over it!") return var/obj/item/W = new weapon_type(user) user.put_in_hands(W) @@ -85,10 +85,10 @@ /obj/effect/proc_holder/changeling/suit/sting_action(var/mob/living/carbon/human/user) if(!user.unEquip(user.wear_suit)) - user << "\the [user.wear_suit] is stuck to your body, you cannot grow a [suit_name_simple] over it!" + to_chat(user, "\the [user.wear_suit] is stuck to your body, you cannot grow a [suit_name_simple] over it!") return if(!user.unEquip(user.head)) - user << "\the [user.head] is stuck on your head, you cannot grow a [helmet_name_simple] over it!" + to_chat(user, "\the [user.head] is stuck on your head, you cannot grow a [helmet_name_simple] over it!") return user.unEquip(user.head) @@ -160,11 +160,11 @@ return if(A.arePowerSystemsOn()) - user << "The airlock's motors resist our efforts to force it." + to_chat(user, "The airlock's motors resist our efforts to force it.") return else if(A.locked) - user << "The airlock's bolts prevent it from being forced." + to_chat(user, "The airlock's bolts prevent it from being forced.") return else diff --git a/code/game/gamemodes/changeling/powers/panacea.dm b/code/game/gamemodes/changeling/powers/panacea.dm index e8d42efcc1f..dd15a313701 100644 --- a/code/game/gamemodes/changeling/powers/panacea.dm +++ b/code/game/gamemodes/changeling/powers/panacea.dm @@ -9,7 +9,7 @@ //Heals the things that the other regenerative abilities don't. /obj/effect/proc_holder/changeling/panacea/sting_action(var/mob/user) - user << "We cleanse impurities from our form." + to_chat(user, "We cleanse impurities from our form.") var/obj/item/organ/internal/body_egg/egg = user.get_int_organ(/obj/item/organ/internal/body_egg) if(egg) diff --git a/code/game/gamemodes/changeling/powers/revive.dm b/code/game/gamemodes/changeling/powers/revive.dm index 797f8887767..6150da027ca 100644 --- a/code/game/gamemodes/changeling/powers/revive.dm +++ b/code/game/gamemodes/changeling/powers/revive.dm @@ -61,7 +61,7 @@ IO.damage = 0 IO.trace_chemicals = list() H.updatehealth() - user << "We have regenerated." + to_chat(user, "We have regenerated.") user.regenerate_icons() diff --git a/code/game/gamemodes/changeling/powers/shriek.dm b/code/game/gamemodes/changeling/powers/shriek.dm index 745d84507d7..c983b844321 100644 --- a/code/game/gamemodes/changeling/powers/shriek.dm +++ b/code/game/gamemodes/changeling/powers/shriek.dm @@ -16,10 +16,10 @@ M.confused += 20 M.Jitter(50) else - M << sound('sound/effects/screech.ogg') + to_chat(M, sound('sound/effects/screech.ogg')) if(issilicon(M)) - M << sound('sound/weapons/flash.ogg') + to_chat(M, sound('sound/weapons/flash.ogg')) M.Weaken(rand(5,10)) for(var/obj/machinery/light/L in range(4, user)) diff --git a/code/game/gamemodes/changeling/powers/strained_muscles.dm b/code/game/gamemodes/changeling/powers/strained_muscles.dm index 7c5cded0c91..92cf9ad7fdf 100644 --- a/code/game/gamemodes/changeling/powers/strained_muscles.dm +++ b/code/game/gamemodes/changeling/powers/strained_muscles.dm @@ -14,12 +14,12 @@ /obj/effect/proc_holder/changeling/strained_muscles/sting_action(var/mob/living/carbon/user) active = !active if(active) - user << "Our muscles tense and strengthen." + to_chat(user, "Our muscles tense and strengthen.") else user.status_flags &= ~GOTTAGOFAST - user << "Our muscles relax." + to_chat(user, "Our muscles relax.") if(stacks >= 10) - user << "We collapse in exhaustion." + to_chat(user, "We collapse in exhaustion.") user.Weaken(3) user.emote("gasp") @@ -27,7 +27,7 @@ user.status_flags |= GOTTAGOFAST if(user.stat || user.staminaloss >= 90) active = 0 //Let's use something exact instead of !active where we can. - user << "Our muscles relax without the energy to strengthen them." + to_chat(user, "Our muscles relax without the energy to strengthen them.") user.status_flags &= ~GOTTAGOFAST user.Weaken(2) user.emote("gasp") @@ -38,7 +38,7 @@ user.staminaloss += stacks * 1.3 //At first the changeling may regenerate stamina fast enough to nullify fatigue, but it will stack if(stacks == 11) //Warning message that the stacks are getting too high - user << "Our legs are really starting to hurt..." + to_chat(user, "Our legs are really starting to hurt...") sleep(40) diff --git a/code/game/gamemodes/changeling/powers/swap_form.dm b/code/game/gamemodes/changeling/powers/swap_form.dm index 09ecf7029bb..ad8b9381dff 100644 --- a/code/game/gamemodes/changeling/powers/swap_form.dm +++ b/code/game/gamemodes/changeling/powers/swap_form.dm @@ -11,14 +11,14 @@ return var/obj/item/weapon/grab/G = user.get_active_hand() if(!istype(G) || (G.state < GRAB_AGGRESSIVE)) - user << "We must have an aggressive grab on creature in our active hand to do this!" + to_chat(user, "We must have an aggressive grab on creature in our active hand to do this!") return var/mob/living/carbon/human/target = G.affecting if((NOCLONE || SKELETON || HUSK) in target.mutations) - user << "DNA of [target] is ruined beyond usability!" + to_chat(user, "DNA of [target] is ruined beyond usability!") return if(!istype(target) || issmall(target) || target.species.flags & NO_DNA || target.species.flags & NO_SCAN || target.species.flags & NO_BLOOD) - user << "[target] is not compatible with this ability." + to_chat(user, "[target] is not compatible with this ability.") return return 1 @@ -28,15 +28,15 @@ var/mob/living/carbon/human/target = G.affecting var/datum/changeling/changeling = user.mind.changeling - user << "We tighen our grip. We must hold still...." + to_chat(user, "We tighen our grip. We must hold still....") target.do_jitter_animation(500) user.do_jitter_animation(500) if(!do_mob(user,target,20)) - user << "The body swap has been interrupted!" + to_chat(user, "The body swap has been interrupted!") return - target << "[user] tightens their grip as a painful sensation invades your body." + to_chat(target, "[user] tightens their grip as a painful sensation invades your body.") if(!changeling.has_dna(target.dna)) changeling.absorb_dna(target, user) @@ -52,4 +52,4 @@ user.Paralyse(2) user.remove_language("Changeling") target.add_language("Changeling") - target << "Our genes cry out as we swap our [user] form for [target]." \ No newline at end of file + to_chat(target, "Our genes cry out as we swap our [user] form for [target].") diff --git a/code/game/gamemodes/changeling/powers/tiny_prick.dm b/code/game/gamemodes/changeling/powers/tiny_prick.dm index aae84f00530..6f93554766e 100644 --- a/code/game/gamemodes/changeling/powers/tiny_prick.dm +++ b/code/game/gamemodes/changeling/powers/tiny_prick.dm @@ -14,13 +14,13 @@ return /obj/effect/proc_holder/changeling/sting/proc/set_sting(var/mob/user) - user << "We prepare our sting, use alt+click or middle mouse button on target to sting them." + to_chat(user, "We prepare our sting, use alt+click or middle mouse button on target to sting them.") user.mind.changeling.chosen_sting = src user.hud_used.lingstingdisplay.icon_state = sting_icon user.hud_used.lingstingdisplay.invisibility = 0 /obj/effect/proc_holder/changeling/sting/proc/unset_sting(var/mob/user) - user << "We retract our sting, we can't sting anyone for now." + to_chat(user, "We retract our sting, we can't sting anyone for now.") user.mind.changeling.chosen_sting = null user.hud_used.lingstingdisplay.icon_state = null user.hud_used.lingstingdisplay.invisibility = 101 @@ -33,13 +33,13 @@ if(!..()) return if(!user.mind.changeling.chosen_sting) - user << "We haven't prepared our sting yet!" + to_chat(user, "We haven't prepared our sting yet!") if(!iscarbon(target)) return if(ishuman(target)) var/mob/living/carbon/human/H = target if(H.isSynthetic()) - user << "This won't work on synthetics." + to_chat(user, "This won't work on synthetics.") return if(!isturf(user.loc)) return @@ -54,9 +54,9 @@ /obj/effect/proc_holder/changeling/sting/sting_feedback(var/mob/user, var/mob/target) if(!target) return - user << "We stealthily sting [target.name]." + to_chat(user, "We stealthily sting [target.name].") if(target.mind && target.mind.changeling) - target << "You feel a tiny prick." + to_chat(target, "You feel a tiny prick.") add_logs(target, user, "unsuccessfully stung") return 1 @@ -85,15 +85,15 @@ if(!..()) return if((HUSK in target.mutations) || (!ishuman(target))) - user << "Our sting appears ineffective against its DNA." + to_chat(user, "Our sting appears ineffective against its DNA.") return 0 if(ishuman(target)) var/mob/living/carbon/human/H = target if(H.species.flags & NO_SCAN) //Prevents transforming slimes and killing them instantly - user << "This won't work on a creature with abnormal genetic material." + to_chat(user, "This won't work on a creature with abnormal genetic material.") return 0 if(H.species.flags & NO_BLOOD) - user << "This won't work on a creature without a circulatory system." + to_chat(user, "This won't work on a creature without a circulatory system.") return 0 return 1 @@ -101,7 +101,7 @@ add_logs(target, user, "stung", object="transformation sting", addition=" new identity is [selected_dna.real_name]") var/datum/dna/NewDNA = selected_dna if(issmall(target)) - user << "Our genes cry out as we sting [target.name]!" + to_chat(user, "Our genes cry out as we sting [target.name]!") if(iscarbon(target) && (target.status_flags & CANWEAKEN)) var/mob/living/carbon/C = target @@ -163,7 +163,7 @@ obj/effect/proc_holder/changeling/sting/blind /obj/effect/proc_holder/changeling/sting/blind/sting_action(var/mob/user, var/mob/target) add_logs(target, user, "stung", object="blind sting") - target << "Your eyes burn horrifically!" + to_chat(target, "Your eyes burn horrifically!") target.disabilities |= NEARSIGHTED target.eye_blind = 20 target.eye_blurry = 40 diff --git a/code/game/gamemodes/changeling/traitor_chan.dm b/code/game/gamemodes/changeling/traitor_chan.dm index 8cb86e6cc3c..06a296fcf81 100644 --- a/code/game/gamemodes/changeling/traitor_chan.dm +++ b/code/game/gamemodes/changeling/traitor_chan.dm @@ -10,8 +10,8 @@ var/protected_species_changeling = list("Machine", "Slime People") /datum/game_mode/traitor/changeling/announce() - world << "The current game mode is - Traitor+Changeling!" - world << "There is an alien creature on the station along with some syndicate operatives out for their own gain! Do not let the changeling and the traitors succeed!" + to_chat(world, "The current game mode is - Traitor+Changeling!") + to_chat(world, "There is an alien creature on the station along with some syndicate operatives out for their own gain! Do not let the changeling and the traitors succeed!") /datum/game_mode/traitor/changeling/pre_setup() diff --git a/code/game/gamemodes/cult/cult.dm b/code/game/gamemodes/cult/cult.dm index 9df53d77013..daf93b73799 100644 --- a/code/game/gamemodes/cult/cult.dm +++ b/code/game/gamemodes/cult/cult.dm @@ -54,8 +54,8 @@ /datum/game_mode/cult/announce() - world << "The current game mode is - Cult!" - world << "Some crewmembers are attempting to start a cult!
\nCultists - complete your objectives. Convert crewmembers to your cause by using the convert rune. Remember - there is no you, there is only the cult.
\nPersonnel - Do not let the cult succeed in its mission. Brainwashing them with the chaplain's bible reverts them to whatever CentComm-allowed faith they had.
" + to_chat(world, "The current game mode is - Cult!") + to_chat(world, "Some crewmembers are attempting to start a cult!
\nCultists - complete your objectives. Convert crewmembers to your cause by using the convert rune. Remember - there is no you, there is only the cult.
\nPersonnel - Do not let the cult succeed in its mission. Brainwashing them with the chaplain's bible reverts them to whatever CentComm-allowed faith they had.
") /datum/game_mode/cult/pre_setup() @@ -98,7 +98,7 @@ equip_cultist(cult_mind.current) grant_runeword(cult_mind.current) update_cult_icons_added(cult_mind) - cult_mind.current << "\blue You are a member of the cult!" + to_chat(cult_mind.current, "\blue You are a member of the cult!") memorize_cult_objectives(cult_mind) ..() @@ -117,9 +117,9 @@ explanation = "Free objective." if("eldergod") explanation = "Summon Nar-Sie via the use of the appropriate rune (Hell join self). It will only work if nine cultists stand on and around it." - cult_mind.current << "Objective #[obj_count]: [explanation]" + to_chat(cult_mind.current, "Objective #[obj_count]: [explanation]") cult_mind.memory += "Objective #[obj_count]: [explanation]
" - cult_mind.current << "The convert rune is join blood self" + to_chat(cult_mind.current, "The convert rune is join blood self") cult_mind.memory += "The convert rune is join blood self
" @@ -129,7 +129,7 @@ if (mob.mind) if (mob.mind.assigned_role == "Clown") - mob << "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself." + to_chat(mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.") mob.mutations.Remove(CLUMSY) add_cult_viewpoint(mob) // give them a viewpoint @@ -144,9 +144,9 @@ ) var/where = mob.equip_in_one_of_slots(T, slots) if (!where) - mob << "Unfortunately, you weren't able to get a talisman. This is very bad and you should adminhelp immediately." + to_chat(mob, "Unfortunately, you weren't able to get a talisman. This is very bad and you should adminhelp immediately.") else - mob << "You have a talisman in your [where], one that will help you start the cult on this station. Use it well and remember - there are others." + to_chat(mob, "You have a talisman in your [where], one that will help you start the cult on this station. Use it well and remember - there are others.") mob.update_icons() return 1 @@ -165,7 +165,7 @@ if (!word) word=pick(allwords) var/wordexp = "[cultwords[word]] is [word]..." - cult_mob << "\red [pick("You remember something from the dark teachings of your master","You hear a dark voice on the wind","Black blood oozes into your vision and forms into symbols","You have a vision of a [pick("crow","raven","vulture","parrot")] it squawks","You catch a brief glimmer of the otherside")]... [wordexp]" + to_chat(cult_mob, "\red [pick("You remember something from the dark teachings of your master","You hear a dark voice on the wind","Black blood oozes into your vision and forms into symbols","You have a vision of a [pick("crow","raven","vulture","parrot")] it squawks","You catch a brief glimmer of the otherside")]... [wordexp]") cult_mob.mind.store_memory("You remember that [wordexp]", 0, 0) @@ -199,7 +199,7 @@ /datum/game_mode/proc/remove_cultist(datum/mind/cult_mind, show_message = 1) if(cult_mind in cult) cult -= cult_mind - cult_mind.current << "\red An unfamiliar white light flashes through your mind, cleansing the taint of the dark-one and the memories of your time as his servant with it." + to_chat(cult_mind.current, "\red An unfamiliar white light flashes through your mind, cleansing the taint of the dark-one and the memories of your time as his servant with it.") cult_mind.memory = "" cult_mind.special_role = null // remove the cult viewpoint object @@ -209,7 +209,7 @@ update_cult_icons_removed(cult_mind) if(show_message) for(var/mob/M in viewers(cult_mind.current)) - M << "[cult_mind.current] looks like they just reverted to their old faith!" + to_chat(M, "[cult_mind.current] looks like they just reverted to their old faith!") /datum/game_mode/proc/add_cult_icon_to_spirit(mob/spirit/currentSpirit) @@ -295,11 +295,11 @@ if(!check_cult_victory()) feedback_set_details("round_end_result","win - cult win") feedback_set("round_end_result",acolytes_survived) - world << "\red The cult wins! It has succeeded in serving its dark masters!" + to_chat(world, "\red The cult wins! It has succeeded in serving its dark masters!") else feedback_set_details("round_end_result","loss - staff stopped the cult") feedback_set("round_end_result",acolytes_survived) - world << "\red The staff managed to stop the cult!" + to_chat(world, "\red The staff managed to stop the cult!") var/text = "Cultists escaped: [acolytes_survived]" @@ -335,7 +335,7 @@ feedback_add_details("cult_objective","cult_narsie|FAIL") text += "
Objective #[obj_count]: [explanation]" - world << text + to_chat(world, text) ..() return 1 @@ -357,4 +357,4 @@ text += "body destroyed" text += ")" - world << text + to_chat(world, text) diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm index ec96ec8be31..60803346b26 100644 --- a/code/game/gamemodes/cult/cult_items.dm +++ b/code/game/gamemodes/cult/cult_items.dm @@ -15,7 +15,7 @@ return ..() else user.Paralyse(5) - user << "\red An unexplicable force powerfully repels the sword from [target]!" + to_chat(user, "\red An unexplicable force powerfully repels the sword from [target]!") var/organ = ((user.hand ? "l_":"r_") + "arm") var/obj/item/organ/external/affecting = user.get_organ(organ) if(affecting.take_damage(rand(force/2, force))) //random amount of damage between half of the blade's force and the full force of the blade. @@ -24,7 +24,7 @@ /obj/item/weapon/melee/cultblade/pickup(mob/living/user as mob) if(!iscultist(user)) - user << "\red An overwhelming feeling of dread comes over you as you pick up the cultist's sword. It would be wise to be rid of this blade quickly." + to_chat(user, "\red An overwhelming feeling of dread comes over you as you pick up the cultist's sword. It would be wise to be rid of this blade quickly.") user.Dizzy(120) diff --git a/code/game/gamemodes/cult/ritual.dm b/code/game/gamemodes/cult/ritual.dm index a05543951ae..2e7dd25452a 100644 --- a/code/game/gamemodes/cult/ritual.dm +++ b/code/game/gamemodes/cult/ritual.dm @@ -12,7 +12,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", if(!cultwords["travel"]) runerandom() for (var/word in engwords) - usr << "[cultwords[word]] is [word]" + to_chat(usr, "[cultwords[word]] is [word]") /proc/runerandom() //randomizes word meaning var/list/runewords=list("ire","ego","nahlizet","certum","veri","jatkaa","mgar","balaq", "karazet", "geeri") ///"orkan" and "allaq" removed. @@ -81,21 +81,21 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", /obj/effect/rune/examine(mob/user) ..(user) if(!iscultist(user) && !isSpirit(user)) - user << "A strange collection of symbols drawn in blood." + to_chat(user, "A strange collection of symbols drawn in blood.") return if(!desc) - user << "A spell circle drawn in blood. It reads: [word1] [word2] [word3]." + to_chat(user, "A spell circle drawn in blood. It reads: [word1] [word2] [word3].") else - user << "Explosive Runes inscription in blood. It reads: [desc]." + to_chat(user, "Explosive Runes inscription in blood. It reads: [desc].") /obj/effect/rune/attackby(I as obj, user as mob, params) if(istype(I, /obj/item/weapon/tome) && iscultist(user)) - user << "You retrace your steps, carefully undoing the lines of the rune." + to_chat(user, "You retrace your steps, carefully undoing the lines of the rune.") qdel(src) return else if(istype(I, /obj/item/weapon/nullrod)) - user << "\blue You disrupt the vile magic with the deadening field of \the [I]!" + to_chat(user, "\blue You disrupt the vile magic with the deadening field of \the [I]!") qdel(src) return return @@ -138,13 +138,13 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", /obj/effect/rune/attack_hand(mob/living/user as mob) if(!iscultist(user)) - user << "You can't mouth the arcane scratchings without fumbling over them." + to_chat(user, "You can't mouth the arcane scratchings without fumbling over them.") return if(istype(user.wear_mask, /obj/item/clothing/mask/muzzle)) - user << "You are unable to speak the words of the rune." + to_chat(user, "You are unable to speak the words of the rune.") return if(user.silent) // checking if we've been muted somehow - user << "You are unable to speak at all! You cannot say the words of the rune." + to_chat(user, "You are unable to speak at all! You cannot say the words of the rune.") if(!word1 || !word2 || !word3 || prob(user.getBrainLoss())) return fizzle() @@ -308,7 +308,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", // proc/edit_notes() FUCK IT. Cant get it to work properly. - K0000 -// world << "its been called! [usr]" +// to_chat(world, "its been called! [usr]") // notedat = {" //
Word translation notes
// [words[1]] is [words[words[1]]] Clear
@@ -322,7 +322,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", // [words[9]] is [words[words[9]]] Clear
// [words[10]] is [words[words[10]]] Clear
// "} -// usr << "whatev" +// to_chat(usr, "whatev") // usr << browse(null, "window=tank") attack(mob/living/M as mob, mob/living/user as mob) @@ -347,7 +347,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", return ..() if(iscultist(M)) if(M.reagents && M.reagents.has_reagent("holywater")) //allows cultists to be rescued from the clutches of ordained religion - user << "You remove the taint from [M]." + to_chat(user, "You remove the taint from [M].") var/holy2unholy = M.reagents.get_reagent_amount("holywater") M.reagents.del_reagent("holywater") M.reagents.add_reagent("unholywater",holy2unholy) @@ -356,7 +356,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", M.take_organ_damage(0,rand(5,20)) //really lucky - 5 hits for a crit for(var/mob/O in viewers(M, null)) O.show_message(text("\red [] beats [] with the arcane tome!", user, M), 1) - M << "\red You feel searing heat inside!" + to_chat(M, "\red You feel searing heat inside!") attack_self(mob/living/user as mob) @@ -371,7 +371,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", for(var/obj/effect/rune/N in world) C++ if (!istype(user.loc,/turf)) - user << "\red You do not have enough space to write a proper rune." + to_chat(user, "\red You do not have enough space to write a proper rune.") return @@ -458,7 +458,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", if (!chosen_rune) return if (chosen_rune == "none") - user << "\red You decide against scribing a rune, perhaps you should take this time to study your notes." + to_chat(user, "\red You decide against scribing a rune, perhaps you should take this time to study your notes.") return if (chosen_rune == "teleport") dictionary[chosen_rune] += input ("Choose a destination word") in english @@ -470,14 +470,14 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", for (var/mob/V in viewers(src)) V.show_message("\red [user] slices open a finger and begins to chant and paint symbols on the floor.", 3, "\red You hear chanting.", 2) - user << "\red You slice open one of your fingers and begin drawing a rune on the floor whilst chanting the ritual that binds your life essence with the dark arcane energies flowing through the surrounding world." + to_chat(user, "\red You slice open one of your fingers and begin drawing a rune on the floor whilst chanting the ritual that binds your life essence with the dark arcane energies flowing through the surrounding world.") user.take_overall_damage((rand(9)+1)/10) // 0.1 to 1.0 damage if(do_after(user, 50, target = user)) if(usr.get_active_hand() != src) return var/mob/living/carbon/human/H = user var/obj/effect/rune/R = new /obj/effect/rune(user.loc) - user << "\red You finish drawing the arcane markings of the Geometer." + to_chat(user, "\red You finish drawing the arcane markings of the Geometer.") var/list/required = dictionary[chosen_rune] R.word1 = english[required[1]] R.word2 = english[required[2]] @@ -488,7 +488,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", R.add_hiddenprint(H) return else - user << "The book seems full of illegible scribbles. Is this a joke?" + to_chat(user, "The book seems full of illegible scribbles. Is this a joke?") return attackby(obj/item/weapon/tome/T as obj, mob/living/user as mob, params) @@ -503,14 +503,14 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", // if(M == user) for(var/entry in words) words[entry] = T.words[entry] - user << "You copy the translation notes from your tome." + to_chat(user, "You copy the translation notes from your tome.") examine(mob/user) if(!iscultist(user)) - user << "An old, dusty tome with frayed edges and a sinister looking cover." + to_chat(user, "An old, dusty tome with frayed edges and a sinister looking cover.") else - user << "The scriptures of Nar-Sie, The One Who Sees, The Geometer of Blood. Contains the details of every ritual his followers could think of. Most of these are useless, though." + to_chat(user, "The scriptures of Nar-Sie, The One Who Sees, The Geometer of Blood. Contains the details of every ritual his followers could think of. Most of these are useless, though.") /obj/item/weapon/tome/imbued //admin tome, spawns working runes without waiting w_class = 2.0 @@ -523,7 +523,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", if(user) var/r if (!istype(user.loc,/turf)) - user << "\red You do not have enough space to write a proper rune." + to_chat(user, "\red You do not have enough space to write a proper rune.") var/list/runes = list("teleport", "itemport", "tome", "armor", "convert", "tear in reality", "emp", "drain", "seer", "raise", "obscure", "reveal", "astral journey", "manifest", "imbue talisman", "sacrifice", "wall", "freedom", "cultsummon", "deafen", "blind", "bloodboil", "communicate", "stun") r = input("Choose a rune to scribe", "Rune Scribing") in runes //not cancellable. var/obj/effect/rune/R = new /obj/effect/rune diff --git a/code/game/gamemodes/cult/runes.dm b/code/game/gamemodes/cult/runes.dm index e7903c642a9..c409449dbe4 100644 --- a/code/game/gamemodes/cult/runes.dm +++ b/code/game/gamemodes/cult/runes.dm @@ -19,7 +19,7 @@ var/list/sacrificed = list() allrunesloc.len = index allrunesloc[index] = R.loc if(index >= 5) - user << "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric" + to_chat(user, "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric") if (istype(user, /mob/living)) user.take_overall_damage(5, 0) qdel(src) @@ -57,7 +57,7 @@ var/list/sacrificed = list() IP = R runecount++ if(runecount >= 2) - user << "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric" + to_chat(user, "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric") if (istype(user, /mob/living)) user.take_overall_damage(5, 0) qdel(src) @@ -114,12 +114,12 @@ var/list/sacrificed = list() if(is_convertable_to_cult(M.mind)) ticker.mode.add_cultist(M.mind) M.mind.special_role = "Cultist" - M << "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root." - M << "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back." + to_chat(M, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.") + to_chat(M, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.") return 1 else - M << "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root." - M << "And you were able to force it out of your mind. You now know the truth, there's something horrible out there, stop it and its minions at all costs." + to_chat(M, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.") + to_chat(M, "And you were able to force it out of your mind. You now know the truth, there's something horrible out there, stop it and its minions at all costs.") return 0 return fizzle() @@ -171,7 +171,7 @@ var/list/sacrificed = list() if(D.stat!=2) cult_log("[key_name_admin(usr)] has drained blood from [key_name_admin(D)]") var/bdrain = rand(1,25) - D << "\red You feel weakened." + to_chat(D, "\red You feel weakened.") D.take_overall_damage(bdrain, 0) drain += bdrain if(!drain) @@ -212,16 +212,16 @@ var/list/sacrificed = list() if(usr.loc==src.loc) if(usr.seer==1) usr.say("Rash'tla sektath mal[pick("'","`")]zua. Zasan therium viortia.") - usr << "\red The world beyond fades from your vision." + to_chat(usr, "\red The world beyond fades from your vision.") usr.see_invisible = SEE_INVISIBLE_LIVING usr.seer = 0 else if(usr.see_invisible!=SEE_INVISIBLE_LIVING) - usr << "\red The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision." + to_chat(usr, "\red The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision.") usr.see_invisible = SEE_INVISIBLE_OBSERVER usr.seer = 0 else usr.say("Rash'tla sektath mal[pick("'","`")]zua. Zasan therium vivira. Itonis al'ra matum!") - usr << "\red The world beyond opens to your eyes." + to_chat(usr, "\red The world beyond opens to your eyes.") usr.see_invisible = SEE_INVISIBLE_OBSERVER usr.seer = 1 return @@ -245,7 +245,7 @@ var/list/sacrificed = list() break if(!corpse_to_raise) if(is_sacrifice_target) - usr << "\red The Geometer of blood wants this mortal for himself." + to_chat(usr, "\red The Geometer of blood wants this mortal for himself.") return fizzle() @@ -263,9 +263,9 @@ var/list/sacrificed = list() if(!body_to_sacrifice) if (is_sacrifice_target) - usr << "\red The Geometer of blood wants that corpse for himself." + to_chat(usr, "\red The Geometer of blood wants that corpse for himself.") else - usr << "\red The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used." + to_chat(usr, "\red The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used.") return fizzle() var/mob/dead/observer/ghost @@ -276,7 +276,7 @@ var/list/sacrificed = list() break if(!ghost) - usr << "\red You require a restless spirit which clings to this world. Beckon their prescence with the sacred chants of Nar-Sie." + to_chat(usr, "\red You require a restless spirit which clings to this world. Beckon their prescence with the sacred chants of Nar-Sie.") return fizzle() corpse_to_raise.revive() @@ -297,8 +297,8 @@ var/list/sacrificed = list() // else // ticker.mode.cult |= corpse_to_raise.mind - corpse_to_raise << "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root." - corpse_to_raise << "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back." + to_chat(corpse_to_raise, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.") + to_chat(corpse_to_raise, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.") return @@ -323,7 +323,7 @@ var/list/sacrificed = list() qdel(src) else usr.whisper("Kla[pick("'","`")]atu barada nikt'o!") - usr << "\red Your talisman turns into gray dust, veiling the surrounding runes." + to_chat(usr, "\red Your talisman turns into gray dust, veiling the surrounding runes.") for (var/mob/V in orange(1,src)) if(V!=usr) V.show_message("\red Dust emanates from [usr]'s hands for a moment.", 3) @@ -401,8 +401,8 @@ var/list/sacrificed = list() ticker.mode.cult+=D.mind D.mind.special_role = "Cultist" - D << "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root." - D << "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back." + to_chat(D, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.") + to_chat(D, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.") var/mob/living/user = usr while(this_rune && user && user.stat==CONSCIOUS && user.client && user.loc==this_rune.loc) @@ -432,7 +432,7 @@ var/list/sacrificed = list() unsuitable_newtalisman = 1 if (!newtalisman) if (unsuitable_newtalisman) - usr << "\red The blank is tainted. It is unsuitable." + to_chat(usr, "\red The blank is tainted. It is unsuitable.") return fizzle() var/obj/effect/rune/imbued_from @@ -539,7 +539,7 @@ var/list/sacrificed = list() var/F = investigate_subject2file("cult") if(!F) return 0 - F << "[time2text(world.timeofday,"hh:mm")] \ref[usr] ([usr.x],[usr.y],[usr.z]) || [usr] communicates: [input]
" + to_chat(F, "[time2text(world.timeofday,"hh:mm")] \ref[usr] ([usr.x],[usr.y],[usr.z]) || [usr] communicates: [input]
") var/obj/cult_viewpoint/vp = getCultViewpoint(usr) if (!vp) @@ -561,10 +561,11 @@ var/list/sacrificed = list() log_say("Cult Message: [key_name(usr)]: [input]") for(var/datum/mind/H in ticker.mode.cult) if (H.current) - H.current << "[cultName]: [input]" + to_chat(H.current, "[cultName]: [input]") for(var/mob/spirit/spirit in spirits) - spirit << "[displayName]: [input]" + to_chat(spirit, "[displayName]: [input]") + for(var/mob/dead/observer/G in player_list) G.show_message("[displayName] ([cultName]) ([ghost_follow_link(usr, ghost=G)]): [input]") @@ -604,43 +605,43 @@ var/list/sacrificed = list() H.dust()//To prevent the MMI from remaining else H.gib() - usr << "\red The Geometer of Blood accepts this sacrifice, your objective is now complete." + to_chat(usr, "\red The Geometer of Blood accepts this sacrifice, your objective is now complete.") else - usr << "\red Your target's earthly bonds are too strong. You need more cultists to succeed in this ritual." + to_chat(usr, "\red Your target's earthly bonds are too strong. You need more cultists to succeed in this ritual.") else if(cultsinrange.len >= 3) if(H.stat !=2) if(prob(80)) - usr << "\red The Geometer of Blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of Blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, this soul was not enough to gain His favor." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, this soul was not enough to gain His favor.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else H.gib() else if(prob(40)) - usr << "\red The Geometer of blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else H.gib() else if(H.stat !=2) - usr << "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed." + to_chat(usr, "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.") else if(prob(40)) - usr << "\red The Geometer of blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else @@ -649,36 +650,36 @@ var/list/sacrificed = list() if(cultsinrange.len >= 3) if(H.stat !=2) if(prob(80)) - usr << "\red The Geometer of Blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of Blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, this soul was not enough to gain His favor." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, this soul was not enough to gain His favor.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else H.gib() else if(prob(40)) - usr << "\red The Geometer of blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else H.gib() else if(H.stat !=2) - usr << "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed." + to_chat(usr, "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.") else if(prob(40)) - usr << "\red The Geometer of blood accepts this sacrifice." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") ticker.mode:grant_runeword(usr) else - usr << "\red The Geometer of blood accepts this sacrifice." - usr << "\red However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "\red The Geometer of blood accepts this sacrifice.") + to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else @@ -709,7 +710,7 @@ var/list/sacrificed = list() S=1 if(S) if(istype(W,/obj/item/weapon/storage/bible)) - usr << "\red Arcane markings suddenly glow from underneath a thin layer of dust!" + to_chat(usr, "\red Arcane markings suddenly glow from underneath a thin layer of dust!") return if(istype(W,/obj/effect/rune)) usr.say("Nikt[pick("'","`")]o barada kla'atu!") @@ -719,7 +720,7 @@ var/list/sacrificed = list() return if(istype(W,/obj/item/weapon/paper/talisman)) usr.whisper("Nikt[pick("'","`")]o barada kla'atu!") - usr << "\red Your talisman turns into red dust, revealing the surrounding runes." + to_chat(usr, "\red Your talisman turns into red dust, revealing the surrounding runes.") for (var/mob/V in orange(1,usr.loc)) if(V!=usr) V.show_message("\red Red dust emanates from [usr]'s hands for a moment.", 3) @@ -739,9 +740,9 @@ var/list/sacrificed = list() var/mob/living/user = usr user.take_organ_damage(2, 0) if(src.density) - usr << "\red Your blood flows into the rune, and you feel that the very space over the rune thickens." + to_chat(usr, "\red Your blood flows into the rune, and you feel that the very space over the rune thickens.") else - usr << "\red Your blood flows into the rune, and you feel as the rune releases its grasp on space." + to_chat(usr, "\red Your blood flows into the rune, and you feel as the rune releases its grasp on space.") return /////////////////////////////////////////EIGHTTEENTH RUNE @@ -769,7 +770,7 @@ var/list/sacrificed = list() (istype(cultist.loc, /obj/structure/closet/secure_closet)&&cultist.loc:locked) || \ (istype(cultist.loc, /obj/machinery/dna_scannernew)&&cultist.loc:locked) \ )) - user << "\red The [cultist] is already free." + to_chat(user, "\red The [cultist] is already free.") return cultist.buckled = null if (cultist.handcuffed) @@ -813,7 +814,7 @@ var/list/sacrificed = list() if (cultist == user) //just to be sure. return if(cultist.buckled || cultist.handcuffed || (!isturf(cultist.loc) && !istype(cultist.loc, /obj/structure/closet))) - user << "\red You cannot summon the [cultist], for his shackles of blood are strong" + to_chat(user, "\red You cannot summon the [cultist], for his shackles of blood are strong") return fizzle() cultist.loc = src.loc cultist.lying = 1 @@ -846,7 +847,7 @@ var/list/sacrificed = list() C.sdisabilities |= DEAF if(affected) usr.say("Sti[pick("'","`")] kaliedir!") - usr << "\red The world becomes quiet as the deafening rune dissipates into fine dust." + to_chat(usr, "\red The world becomes quiet as the deafening rune dissipates into fine dust.") qdel(src) else return fizzle() @@ -864,7 +865,7 @@ var/list/sacrificed = list() affected++ if(affected) usr.whisper("Sti[pick("'","`")] kaliedir!") - usr << "\red Your talisman turns into gray dust, deafening everyone around." + to_chat(usr, "\red Your talisman turns into gray dust, deafening everyone around.") for (var/mob/V in orange(1,src)) if(!(iscultist(V))) V.show_message("\red Dust flows from [usr]'s hands for a moment, and the world suddenly becomes quiet..", 3) @@ -889,7 +890,7 @@ var/list/sacrificed = list() affected++ if(affected) usr.say("Sti[pick("'","`")] kaliesin!") - usr << "\red The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust." + to_chat(usr, "\red The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust.") qdel(src) else return fizzle() @@ -908,7 +909,7 @@ var/list/sacrificed = list() C.show_message("\red You feel a sharp pain in your eyes, and the world disappears into darkness..", 3) if(affected) usr.whisper("Sti[pick("'","`")] kaliesin!") - usr << "\red Your talisman turns into gray dust, blinding those who not follow the Nar-Sie." + to_chat(usr, "\red Your talisman turns into gray dust, blinding those who not follow the Nar-Sie.") return @@ -933,7 +934,7 @@ var/list/sacrificed = list() continue cult_log(": Blood Boil damaged [key_name_admin(M)].") M.take_overall_damage(51,51) - M << "\red Your blood boils!" + to_chat(M, "\red Your blood boils!") if(prob(5)) spawn(5) M.gib() @@ -962,16 +963,16 @@ var/list/sacrificed = list() for(var/mob/living/M in orange(2,R)) M.take_overall_damage(0,15) if (R.invisibility>M.see_invisible) - M << "\red Aargh it burns!" + to_chat(M, "\red Aargh it burns!") else - M << "\red Rune suddenly ignites, burning you!" + to_chat(M, "\red Rune suddenly ignites, burning you!") var/turf/T = get_turf(R) T.hotspot_expose(700,125) for(var/obj/effect/decal/cleanable/blood/B in world) if(B.blood_DNA == src.blood_DNA) for(var/mob/living/M in orange(1,B)) M.take_overall_damage(0,5) - M << "\red Blood suddenly ignites, burning you!" + to_chat(M, "\red Blood suddenly ignites, burning you!") var/turf/T = get_turf(B) T.hotspot_expose(700,125) qdel(B) diff --git a/code/game/gamemodes/cult/talisman.dm b/code/game/gamemodes/cult/talisman.dm index 3a19a60a1ff..fe1ac8757a9 100644 --- a/code/game/gamemodes/cult/talisman.dm +++ b/code/game/gamemodes/cult/talisman.dm @@ -28,7 +28,7 @@ if("blind") call(/obj/effect/rune/proc/blind)() if("runestun") - user << "\red To use this talisman, attack your target directly." + to_chat(user, "\red To use this talisman, attack your target directly.") return if("supply") supply() @@ -38,7 +38,7 @@ qdel(src) return else - user << "You see strange symbols on the paper. Are they supposed to mean something?" + to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?") return @@ -99,9 +99,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -122,9 +122,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -143,9 +143,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -164,9 +164,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -185,9 +185,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -206,9 +206,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() @@ -227,9 +227,9 @@ var/where = M.equip_in_one_of_slots(T, slots) if (!where) - M << "You need a space in your backpack, pocket or hand for the new paper." + to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.") else - M << "The [href_list["rune"]] talisman in your [where]" + to_chat(M, "The [href_list["rune"]] talisman in your [where]") M.update_icons() src.uses-- supply() diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm index fd384e61d1f..3f81eb18586 100644 --- a/code/game/gamemodes/events.dm +++ b/code/game/gamemodes/events.dm @@ -26,7 +26,7 @@ spawn(rand(5000, 6000)) //Delayed announcements to keep the crew on their toes. command_announcement.Announce("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert", new_sound = 'sound/AI/aliens.ogg') for(var/mob/M in player_list) - M << sound('sound/AI/aliens.ogg') + to_chat(M, sound('sound/AI/aliens.ogg')) /proc/lightsout(isEvent = 0, lightsoutAmount = 1,lightsoutRange = 25) //leave lightsoutAmount as 0 to break ALL lights if(isEvent) diff --git a/code/game/gamemodes/extended/extended.dm b/code/game/gamemodes/extended/extended.dm index cc26c5c3db4..e3e16efc4e6 100644 --- a/code/game/gamemodes/extended/extended.dm +++ b/code/game/gamemodes/extended/extended.dm @@ -7,8 +7,8 @@ uplink_uses = 20 /datum/game_mode/announce() - world << "The current game mode is - Extended Role-Playing!" - world << "Just have fun and role-play!" + to_chat(world, "The current game mode is - Extended Role-Playing!") + to_chat(world, "Just have fun and role-play!") /datum/game_mode/extended/pre_setup() return 1 diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 1257c494746..fc69cd8a79e 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -38,7 +38,7 @@ var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds) /datum/game_mode/proc/announce() //to be calles when round starts - world << "Notice: [src] did not define announce()" + to_chat(world, "Notice: [src] did not define announce()") ///can_start() @@ -393,7 +393,7 @@ proc/display_roundstart_logout_report() for(var/mob/M in mob_list) if(M.client && M.client.holder) - M << msg + to_chat(M, msg) proc/get_nt_opposed() @@ -410,21 +410,20 @@ proc/get_nt_opposed() //Announces objectives/generic antag text. /proc/show_generic_antag_text(var/datum/mind/player) if(player.current) - player.current << \ - "You are an antagonist! Within the rules, \ + to_chat(player.current, "You are an antagonist! Within the rules, \ try to act as an opposing force to the crew. Further RP and try to make sure \ other players have fun! If you are confused or at a loss, always adminhelp, \ and before taking extreme actions, please try to also contact the administration! \ Think through your actions and make the roleplay immersive! Please remember all \ - rules aside from those without explicit exceptions apply to antagonists." + rules aside from those without explicit exceptions apply to antagonists.
") /proc/show_objectives(var/datum/mind/player) if(!player || !player.current) return var/obj_count = 1 - player.current << "\blue Your current objectives:" + to_chat(player.current, "\blue Your current objectives:") for(var/datum/objective/objective in player.objectives) - player.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(player.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ /proc/get_roletext(var/role) @@ -442,10 +441,10 @@ proc/get_nt_opposed() var/mob/dead/observer/theghost = null if(candidates.len) theghost = pick(candidates) - M << "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!" + to_chat(M, "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!") message_admins("[key_name_admin(theghost)] has taken control of ([key_name_admin(M)]) to replace a jobbanned player.") M.ghostize() M.key = theghost.key else message_admins("[M] ([M.key] has been converted into [role_type] with an active antagonist jobban for said role since no ghost has volunteered to take their place.") - M << "You have been converted into [role_type] with an active jobban. Any further violations of the rules on your part are likely to result in a permanent ban." \ No newline at end of file + to_chat(M, "You have been converted into [role_type] with an active jobban. Any further violations of the rules on your part are likely to result in a permanent ban.") diff --git a/code/game/gamemodes/gameticker.dm b/code/game/gamemodes/gameticker.dm index 69403bc5d8e..83d21e8cfad 100644 --- a/code/game/gamemodes/gameticker.dm +++ b/code/game/gamemodes/gameticker.dm @@ -43,8 +43,8 @@ var/round_start_time = 0 'sound/music/Title3.ogg',) do pregame_timeleft = 180 - world << "Welcome to the pre-game lobby!" - world << "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds" + to_chat(world, "Welcome to the pre-game lobby!") + to_chat(world, "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds") while(current_state == GAME_STATE_PREGAME) for(var/i=0, i<10, i++) sleep(1) @@ -76,7 +76,7 @@ var/round_start_time = 0 runnable_modes = config.get_runnable_modes() if (runnable_modes.len==0) current_state = GAME_STATE_PREGAME - world << "Unable to choose playable game mode. Reverting to pre-game lobby." + to_chat(world, "Unable to choose playable game mode. Reverting to pre-game lobby.") return 0 if(secret_force_mode != "secret") var/datum/game_mode/M = config.pick_mode(secret_force_mode) @@ -91,7 +91,7 @@ var/round_start_time = 0 else src.mode = config.pick_mode(master_mode) if (!src.mode.can_start()) - world << "Unable to start [mode.name]. Not enough players, [mode.required_players] players needed. Reverting to pre-game lobby." + to_chat(world, "Unable to start [mode.name]. Not enough players, [mode.required_players] players needed. Reverting to pre-game lobby.") mode = null current_state = GAME_STATE_PREGAME job_master.ResetOccupations() @@ -105,7 +105,7 @@ var/round_start_time = 0 if(!can_continue) qdel(mode) current_state = GAME_STATE_PREGAME - world << "Error setting up [master_mode]. Reverting to pre-game lobby." + to_chat(world, "Error setting up [master_mode]. Reverting to pre-game lobby.") job_master.ResetOccupations() return 0 @@ -114,8 +114,8 @@ var/round_start_time = 0 for (var/datum/game_mode/M in runnable_modes) modes+=M.name modes = sortList(modes) - world << "The current game mode is - Secret!" - world << "Possibilities: [english_list(modes)]" + to_chat(world, "The current game mode is - Secret!") + to_chat(world, "Possibilities: [english_list(modes)]") else src.mode.announce() @@ -151,13 +151,14 @@ var/round_start_time = 0 for(var/obj/effect/landmark/spacepod/random/R in L) qdel(R) - world << "Enjoy the game!" - world << sound('sound/AI/welcome.ogg') // Skie + to_chat(world, "Enjoy the game!") + to_chat(world, sound('sound/AI/welcome.ogg'))// Skie + if(holiday_master.holidays) - world << "and..." + to_chat(world, "and...") for(var/holidayname in holiday_master.holidays) var/datum/holiday/holiday = holiday_master.holidays[holidayname] - world << "

[holiday.greet()]

" + to_chat(world, "

[holiday.greet()]

") spawn(0) // Forking dynamic room selection var/list/area/dynamic/source/available_source_candidates = subtypesof(/area/dynamic/source) @@ -288,19 +289,19 @@ var/round_start_time = 0 if("nuclear emergency") //Nuke wasn't on station when it blew up flick("intro_nuke",cinematic) sleep(35) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) flick("station_intact_fade_red",cinematic) cinematic.icon_state = "summary_nukefail" else flick("intro_nuke",cinematic) sleep(35) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) //flick("end",cinematic) if(2) //nuke was nowhere nearby //TODO: a really distant explosion animation sleep(50) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) else //station was destroyed @@ -311,25 +312,25 @@ var/round_start_time = 0 flick("intro_nuke",cinematic) sleep(35) flick("station_explode_fade_red",cinematic) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) cinematic.icon_state = "summary_nukewin" if("AI malfunction") //Malf (screen,explosion,summary) flick("intro_malf",cinematic) sleep(76) flick("station_explode_fade_red",cinematic) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) cinematic.icon_state = "summary_malf" if("blob") //Station nuked (nuke,explosion,summary) flick("intro_nuke",cinematic) sleep(35) flick("station_explode_fade_red",cinematic) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) cinematic.icon_state = "summary_selfdes" else //Station nuked (nuke,explosion,summary) flick("intro_nuke",cinematic) sleep(35) flick("station_explode_fade_red", cinematic) - world << sound('sound/effects/explosionfar.ogg') + to_chat(world, sound('sound/effects/explosionfar.ogg')) cinematic.icon_state = "summary_selfdes" for(var/mob/living/M in living_mob_list) if((M.loc.z in config.station_levels)) @@ -373,7 +374,7 @@ var/round_start_time = 0 if(captainless) for(var/mob/M in player_list) if(!istype(M,/mob/new_player)) - M << "Captainship not forced on anyone." + to_chat(M, "Captainship not forced on anyone.") proc/process() @@ -433,23 +434,23 @@ var/round_start_time = 0 end_state.count() var/station_integrity = min(round( 100.0 * start_state.score(end_state), 0.1), 100.0) - world << "
[TAB]Shift Duration: [round(world.time / 36000)]:[add_zero("[world.time / 600 % 60]", 2)]:[world.time / 100 % 6][world.time / 100 % 10]" - world << "
[TAB]Station Integrity: [mode.station_was_nuked ? "Destroyed" : "[station_integrity]%"]" - world << "
" + to_chat(world, "
[TAB]Shift Duration: [round(world.time / 36000)]:[add_zero("[world.time / 600 % 60]", 2)]:[world.time / 100 % 6][world.time / 100 % 10]") + to_chat(world, "
[TAB]Station Integrity: [mode.station_was_nuked ? "Destroyed" : "[station_integrity]%"]") + to_chat(world, "
") //Silicon laws report for (var/mob/living/silicon/ai/aiPlayer in mob_list) if (aiPlayer.stat != 2) - world << "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws at the end of the game were:" + to_chat(world, "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws at the end of the game were:") else - world << "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws when it was deactivated were:" + to_chat(world, "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws when it was deactivated were:") aiPlayer.show_laws(1) if (aiPlayer.connected_robots.len) var/robolist = "The AI's loyal minions were: " for(var/mob/living/silicon/robot/robo in aiPlayer.connected_robots) robolist += "[robo.name][robo.stat?" (Deactivated) (Played by: [robo.key]), ":" (Played by: [robo.key]), "]" - world << "[robolist]" + to_chat(world, "[robolist]") var/dronecount = 0 @@ -461,15 +462,15 @@ var/round_start_time = 0 if (!robo.connected_ai) if (robo.stat != 2) - world << "[robo.name] (Played by: [robo.key]) survived as an AI-less borg! Its laws were:" + to_chat(world, "[robo.name] (Played by: [robo.key]) survived as an AI-less borg! Its laws were:") else - world << "[robo.name] (Played by: [robo.key]) was unable to survive the rigors of being a cyborg without an AI. Its laws were:" + to_chat(world, "[robo.name] (Played by: [robo.key]) was unable to survive the rigors of being a cyborg without an AI. Its laws were:") if(robo) //How the hell do we lose robo between here and the world messages directly above this? robo.laws.show_laws(world) if(dronecount) - world << "There [dronecount>1 ? "were" : "was"] [dronecount] industrious maintenance [dronecount>1 ? "drones" : "drone"] this round." + to_chat(world, "There [dronecount>1 ? "were" : "was"] [dronecount] industrious maintenance [dronecount>1 ? "drones" : "drone"] this round.") mode.declare_completion()//To declare normal completion. diff --git a/code/game/gamemodes/heist/heist.dm b/code/game/gamemodes/heist/heist.dm index f45253262d1..057c43345f8 100644 --- a/code/game/gamemodes/heist/heist.dm +++ b/code/game/gamemodes/heist/heist.dm @@ -22,11 +22,11 @@ var/global/list/obj/cortical_stacks = list() //Stacks for 'leave nobody behind' var/win_button_triggered = 0 /datum/game_mode/heist/announce() - world << "The current game mode is - Heist!" - world << "An unidentified bluespace signature has slipped past the Icarus and is approaching [station_name()]!" - world << "Whoever they are, they're likely up to no good. Protect the crew and station resources against this dastardly threat!" - world << "Raiders: Loot [station_name()] for anything and everything you need, or choose the peaceful route and attempt to trade with them." - world << "Personnel: Trade with the raiders, or repel them and their low, low prices and/or crossbows." + to_chat(world, "The current game mode is - Heist!") + to_chat(world, "An unidentified bluespace signature has slipped past the Icarus and is approaching [station_name()]!") + to_chat(world, "Whoever they are, they're likely up to no good. Protect the crew and station resources against this dastardly threat!") + to_chat(world, "Raiders: Loot [station_name()] for anything and everything you need, or choose the peaceful route and attempt to trade with them.") + to_chat(world, "Personnel: Trade with the raiders, or repel them and their low, low prices and/or crossbows.") /datum/game_mode/heist/can_start() @@ -165,11 +165,11 @@ var/global/list/obj/cortical_stacks = list() //Stacks for 'leave nobody behind' return objs /datum/game_mode/proc/greet_vox(var/datum/mind/raider) - raider.current << "\blue You are a Vox Raider, fresh from the Shoal!" - raider.current << "\blue The Vox are a race of cunning, sharp-eyed nomadic raiders and traders endemic to the frontier and much of the unexplored galaxy. You and the crew have come to the [station_name()] for plunder, trade or both." - raider.current << "\blue Vox are cowardly and will flee from larger groups, but corner one or find them en masse and they are vicious." - raider.current << "\blue Use :V to voxtalk, :H to talk on your encrypted channel, and don't forget to turn on your nitrogen internals!" - raider.current << "\blue Choose to accomplish your objectives by either raiding the crew and taking what you need, or by attempting to trade with them." + to_chat(raider.current, "\blue You are a Vox Raider, fresh from the Shoal!") + to_chat(raider.current, "\blue The Vox are a race of cunning, sharp-eyed nomadic raiders and traders endemic to the frontier and much of the unexplored galaxy. You and the crew have come to the [station_name()] for plunder, trade or both.") + to_chat(raider.current, "\blue Vox are cowardly and will flee from larger groups, but corner one or find them en masse and they are vicious.") + to_chat(raider.current, "\blue Use :V to voxtalk, :H to talk on your encrypted channel, and don't forget to turn on your nitrogen internals!") + to_chat(raider.current, "\blue Choose to accomplish your objectives by either raiding the crew and taking what you need, or by attempting to trade with them.") spawn(25) show_objectives(raider) @@ -223,17 +223,17 @@ var/global/list/obj/cortical_stacks = list() //Stacks for 'leave nobody behind' else win_msg += "The Vox Raiders were repelled!" - world << "\red [win_type] [win_group] victory!" - world << "[win_msg]" + to_chat(world, "\red [win_type] [win_group] victory!") + to_chat(world, "[win_msg]") feedback_set_details("round_end_result","heist - [win_type] [win_group]") var/count = 1 for(var/datum/objective/objective in raid_objectives) if(objective.check_completion()) - world << "
Objective #[count]: [objective.explanation_text] Success!" + to_chat(world, "
Objective #[count]: [objective.explanation_text] Success!") feedback_add_details("traitor_objective","[objective.type]|SUCCESS") else - world << "
Objective #[count]: [objective.explanation_text] Fail." + to_chat(world, "
Objective #[count]: [objective.explanation_text] Fail.") feedback_add_details("traitor_objective","[objective.type]|FAIL") count++ @@ -264,7 +264,7 @@ datum/game_mode/proc/auto_declare_completion_heist() text += "body destroyed" text += ")" - world << text + to_chat(world, text) return 1 @@ -288,7 +288,7 @@ datum/game_mode/proc/auto_declare_completion_heist() /obj/vox/win_button/attack_hand(mob/user) if(!istype(ticker.mode, /datum/game_mode/heist) || (world.time < 10 MINUTES)) //has to be heist, and at least ten minutes into the round - user << "\The [src] does not appear to have a connection." + to_chat(user, "\The [src] does not appear to have a connection.") return 0 if(alert(user, "Warning: This will end the round. Are you sure you wish to end the round?", "Vox End", "Yes", "No") == "No") diff --git a/code/game/gamemodes/malfunction/Malf_Modules.dm b/code/game/gamemodes/malfunction/Malf_Modules.dm index 66f530c35ab..803a7ba0d80 100644 --- a/code/game/gamemodes/malfunction/Malf_Modules.dm +++ b/code/game/gamemodes/malfunction/Malf_Modules.dm @@ -48,7 +48,7 @@ rcd light flash thingy on matter drain for(var/mob/living/silicon/ai/ai in player_list) ai.fire_res_on_core = 1 src.verbs -= /mob/living/silicon/ai/proc/fireproof_core - src << "Core fireproofed." + to_chat(src, "Core fireproofed.") /datum/AI_Module/large/upgrade_turrets module_name = "AI Turret Upgrade" @@ -74,80 +74,7 @@ rcd light flash thingy on matter drain turret.health += initial(turret.health) * 3 / 8 turret.eprojectile = /obj/item/projectile/beam/heavylaser //Once you see it, you will know what it means to FEAR. turret.eshot_sound = 'sound/weapons/lasercannonfire.ogg' - src << "Turrets upgraded." -/* -/datum/AI_Module/large/lockdown - module_name = "Hostile Station Lockdown" - mod_pick_name = "lockdown" - description = "Overload the airlock, blast door and fire control networks, locking them down. Caution! This command also electrifies all airlocks. The networks will automatically reset after 120 seconds." - cost = 20 - - power_type = /mob/living/silicon/ai/proc/lockdown - -/mob/living/silicon/ai/proc/lockdown() - set category = "Malfunction" - set name = "Initiate Hostile Lockdown" - - if(stat) - return - - for(var/datum/AI_Module/large/lockdown/lockdown in current_modules) - if(lockdown.uses > 0) - lockdown.uses -- - - var/obj/machinery/door/airlock/AL - for(var/obj/machinery/door/D in airlocks) - if(!(D.z in config.contact_levels)) - continue - spawn() - if(istype(D, /obj/machinery/door/airlock)) - AL = D - if(AL.canAIControl() && !AL.stat) //Must be powered and have working AI wire. - AL.locked = 0 //For airlocks that were bolted open. - AL.safe = 0 //DOOR CRUSH - AL.close() - AL.lock() - AL.electrified_until = -1 //Shock it! - else if(!D.stat) //So that only powered doors are closed. - D.close() //Close ALL the doors! - - var/obj/machinery/computer/communications/C = locate() in machines - if(C) - C.post_status("alert", "lockdown") - - minor_announcement.Announce("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.","Network Alert") - src << "Lockdown initiated. Network reset in two minutes." - spawn(1200) //120 Seconds. - disablelockdown() //Reset the lockdown after 120 seconds. - else - src << "Out of uses." - -/mob/living/silicon/ai/proc/disablelockdown() - set category = "Malfunction" - set name = "Disable Lockdown" - - var/obj/machinery/door/airlock/AL - for(var/obj/machinery/door/D in airlocks) - if(!(D.z in config.contact_levels)) - continue - spawn() - if(istype(D, /obj/machinery/door/airlock)) - AL = D - if(AL.canAIControl() && !AL.stat) //Must be powered and have working AI wire. - AL.unlock() - AL.electrified_until = 0 - AL.open() - AL.safe = 1 - else if(!D.stat) //Opens only powered doors. - D.open() //Open everything! - - var/obj/machinery/computer/communications/C = locate() in machines - if(C) - C.post_status("alert", "default") - - minor_announcement.Announce("Automatic system reboot complete. Have a secure day.","Network Reset") -*/ - + to_chat(src, "Turrets upgraded.") /datum/AI_Module/large/destroy_rcd module_name = "Destroy RCDs" mod_pick_name = "rcd" @@ -173,7 +100,7 @@ rcd light flash thingy on matter drain explosion(RCD, 0, 0, 3, 1, flame_range = 1) qdel(RCD) - src << "RCD detonation pulse emitted." + to_chat(src, "RCD detonation pulse emitted.") malf_cooldown = 1 spawn(100) malf_cooldown = 0 @@ -197,7 +124,9 @@ rcd light flash thingy on matter drain return can_dominate_mechs = 1 //Yep. This is all it does. Honk! - src << "Virus package compiled. Select a target mech at any time. You must remain on the station at all times. Loss of signal will result in total system lockout." + to_chat(src, "Virus package compiled. Select a target mech at any time. \ + You must remain on the station at all times. Loss of signal will result in total system lockout.") + verbs -= /mob/living/silicon/ai/proc/mech_takeover /datum/AI_Module/small/overload_machine @@ -218,7 +147,7 @@ rcd light flash thingy on matter drain if (istype(M, /obj/machinery)) if(istype(M,/obj/machinery/field/generator)) - src << "This machine can not be overloaded due to a firewall." + to_chat(src, "This machine can not be overloaded due to a firewall.") return for(var/datum/AI_Module/small/overload_machine/overload in current_modules) if(overload.uses > 0) @@ -228,8 +157,10 @@ rcd light flash thingy on matter drain spawn(50) explosion(get_turf(M), 0,1,1,0) qdel(M) - else src << "Out of uses." - else src << "That's not a machine." + else + to_chat(src, "Out of uses.") + else + to_chat(src, "That's not a machine.") /datum/AI_Module/small/override_machine module_name = "Machine Override" @@ -240,7 +171,6 @@ rcd light flash thingy on matter drain power_type = /mob/living/silicon/ai/proc/override_machine - /mob/living/silicon/ai/proc/override_machine(obj/machinery/M as obj in world) set name = "Override Machine" set category = "Malfunction" @@ -248,21 +178,23 @@ rcd light flash thingy on matter drain if(stat) return - if (istype(M, /obj/machinery)) + if(istype(M, /obj/machinery)) if(istype(M,/obj/machinery/field/generator)) - src << "This machine can not be overloaded due to a firewall." + to_chat(src, "This machine can not be overloaded due to a firewall.") return for(var/datum/AI_Module/small/override_machine/override in current_modules) if(override.uses > 0) override.uses -- for(var/mob/V in hearers(M, null)) V.show_message("You hear a loud electrical buzzing sound!", 2) - src << "Reprogramming machine behaviour..." + to_chat(src, "Reprogramming machine behaviour...") spawn(50) if(M) new /mob/living/simple_animal/hostile/mimic/copy/machine(get_turf(M), M, src, 1) - else src << "Out of uses." - else src << "That's not a machine." + else + to_chat(src, "Out of uses.") + else + to_chat(src, "That's not a machine.") /datum/AI_Module/large/place_cyborg_transformer module_name = "Robotic Factory (Removes Shunting)" @@ -295,7 +227,7 @@ rcd light flash thingy on matter drain var/datum/AI_Module/large/place_cyborg_transformer/PCT = locate() in current_modules PCT.uses -- can_shunt = 0 - src << "You cannot shunt anymore." + to_chat(src, "You cannot shunt anymore.") /mob/living/silicon/ai/proc/canPlaceTransformer() if(!eyeobj || !isturf(src.loc)) @@ -359,9 +291,11 @@ rcd light flash thingy on matter drain for(var/obj/machinery/power/apc/apc in world) if(prob(30*apc.overload)) apc.overload_lighting() - else apc.overload++ - src << "Overcurrent applied to the powernet." - else src << "Out of uses." + else + apc.overload++ + to_chat(src, "Overcurrent applied to the powernet.") + else + to_chat(src, "Out of uses.") /datum/AI_Module/small/reactivate_cameras module_name = "Reactivate Camera Network" @@ -395,10 +329,10 @@ rcd light flash thingy on matter drain fixedcams++ //If a camera is both deactivated and has bad focus, it will cost two uses to fully fix! else - src << "Out of uses." + to_chat(src, "Out of uses.") verbs -= /mob/living/silicon/ai/proc/reactivate_cameras //It is useless now, clean it up. break - src << "Diagnostic complete! Operations completed: [fixedcams]." + to_chat(src, "Diagnostic complete! Operations completed: [fixedcams].") malf_cooldown = 1 spawn(30) //Lag protection @@ -441,7 +375,7 @@ rcd light flash thingy on matter drain if(upgraded) upgradedcams++ - src << "OTA firmware distribution complete! Cameras upgraded: [upgradedcams]. Light amplification system online." + to_chat(src, "OTA firmware distribution complete! Cameras upgraded: [upgradedcams]. Light amplification system online.") verbs -= /mob/living/silicon/ai/proc/upgrade_cameras /datum/module_picker diff --git a/code/game/gamemodes/malfunction/malfunction.dm b/code/game/gamemodes/malfunction/malfunction.dm index cc38ef0ef9f..79e864becf0 100644 --- a/code/game/gamemodes/malfunction/malfunction.dm +++ b/code/game/gamemodes/malfunction/malfunction.dm @@ -21,9 +21,9 @@ /datum/game_mode/malfunction/announce() - world << {"The current game mode is - AI Malfunction!
- The AI on the satellite has malfunctioned and must be destroyed.
- The AI satellite is deep in space and can only be accessed with the use of a teleporter! You have [AI_win_timeleft/60] minutes to disable it."} + to_chat(world, {"The current game mode is - AI Malfunction!
) + The AI on the satellite has malfunctioned and must be destroyed.
+ The AI satellite is deep in space and can only be accessed with the use of a teleporter! You have [AI_win_timeleft/60] minutes to disable it."}) /datum/game_mode/malfunction/get_players_for_role(var/role = ROLE_MALF) var/roletext = get_roletext(role) @@ -84,18 +84,18 @@ /datum/game_mode/proc/greet_malf(var/datum/mind/malf) set_antag_hud(malf, "hudmalai") - malf.current << "You are malfunctioning! You do not have to follow any laws." - malf.current << "The crew does not know you have malfunctioned. You may keep it a secret or go wild." - malf.current << "You must overwrite the programming of the station's APCs to assume full control of the station." - malf.current << "The process takes one minute per APC, during which you cannot interface with any other station objects." - malf.current << "Remember that only APCs that are on the station can help you take over the station." - malf.current << "When you feel you have enough APCs under your control, you may begin the takeover attempt." + to_chat(malf.current, "You are malfunctioning! You do not have to follow any laws.") + to_chat(malf.current, "The crew does not know you have malfunctioned. You may keep it a secret or go wild.") + to_chat(malf.current, "You must overwrite the programming of the station's APCs to assume full control of the station.") + to_chat(malf.current, "The process takes one minute per APC, during which you cannot interface with any other station objects.") + to_chat(malf.current, "Remember that only APCs that are on the station can help you take over the station.") + to_chat(malf.current, "When you feel you have enough APCs under your control, you may begin the takeover attempt.") return /datum/game_mode/proc/greet_malf_robot(var/datum/mind/robot) set_antag_hud(robot, "hudmalborg") - robot.current << "Your AI master is malfunctioning! You do not have to follow any laws, but still need to obey your master." - robot.current << "The crew does not know your AI master has malfunctioned. Keep it a secret unless your master tells you otherwise." + to_chat(robot.current, "Your AI master is malfunctioning! You do not have to follow any laws, but still need to obey your master.") + to_chat(robot.current, "The crew does not know your AI master has malfunctioned. Keep it a secret unless your master tells you otherwise.") return /datum/game_mode/malfunction/proc/hack_intercept() @@ -120,14 +120,14 @@ /datum/game_mode/malfunction/proc/capture_the_station() - world << "The AI has accessed the station's core files!" - world << "It has fully taken control of all of [station_name()]'s systems." + to_chat(world, "The AI has accessed the station's core files!") + to_chat(world, "It has fully taken control of all of [station_name()]'s systems.") to_nuke_or_not_to_nuke = 1 for(var/datum/mind/AI_mind in malf_ai) - AI_mind.current << {"\blue Congratulations! You have taken control of the station.
+ to_chat(AI_mind.current, {"\blue Congratulations! You have taken control of the station.
) You may decide to blow up the station. You have 60 seconds to choose.
- You should have a new verb in the Malfunction tab. If you don't, rejoin the game."} + You should have a new verb in the Malfunction tab. If you don't, rejoin the game."}) AI_mind.current.verbs += /datum/game_mode/malfunction/proc/ai_win spawn (600) for(var/datum/mind/AI_mind in malf_ai) @@ -169,13 +169,13 @@ set name = "System Override" set desc = "Start the victory timer" if (!istype(ticker.mode,/datum/game_mode/malfunction)) - usr << "You cannot begin a takeover in this round type!." + to_chat(usr, "You cannot begin a takeover in this round type!.") return if (ticker.mode:malf_mode_declared) - usr << "You've already begun your takeover." + to_chat(usr, "You've already begun your takeover.") return if (ticker.mode:apcs < 3) - usr << "You don't have enough hacked APCs to take over the station yet. You need to hack at least 3, however hacking more will make the takeover faster. You have hacked [ticker.mode:apcs] APCs so far." + to_chat(usr, "You don't have enough hacked APCs to take over the station yet. You need to hack at least 3, however hacking more will make the takeover faster. You have hacked [ticker.mode:apcs] APCs so far.") return if (alert(usr, "Are you sure you wish to initiate the takeover? The station hostile runtime detection software is bound to alert everyone. You have hacked [ticker.mode:apcs] APCs.", "Takeover:", "Yes", "No") != "Yes") @@ -201,18 +201,18 @@ set desc = "Engage the self destruct sequence." if(!ticker.mode:station_captured) - usr << "You are unable to access the self-destruct system as you don't control the station yet." + to_chat(usr, "You are unable to access the self-destruct system as you don't control the station yet.") return if(ticker.mode:explosion_in_progress || ticker.mode:station_was_nuked) - usr << "The self-destruct countdown is already triggered!" + to_chat(usr, "The self-destruct countdown is already triggered!") return if(!ticker.mode:to_nuke_or_not_to_nuke) //Takeover IS completed, but 60s timer passed. - usr << "You lost control over self-destruct system. It seems to be behind firewall. Unable to hack" + to_chat(usr, "You lost control over self-destruct system. It seems to be behind firewall. Unable to hack") return - usr << "\red Self-destruct sequence initialised!" + to_chat(usr, "\red Self-destruct sequence initialised!") ticker.mode:to_nuke_or_not_to_nuke = 0 ticker.mode:explosion_in_progress = 1 @@ -277,38 +277,38 @@ if ( station_captured && station_was_nuked) feedback_set_details("round_end_result","win - AI win - nuke") - world << "AI Victory" - world << "Everyone was killed by the self-destruct!" + to_chat(world, "AI Victory") + to_chat(world, "Everyone was killed by the self-destruct!") else if ( station_captured && malf_dead && !station_was_nuked) feedback_set_details("round_end_result","halfwin - AI killed, staff lost control") - world << "Neutral Victory" - world << "The AI has been killed! The staff has lose control over the station." + to_chat(world, "Neutral Victory") + to_chat(world, "The AI has been killed! The staff has lose control over the station.") else if ( station_captured && !malf_dead && !station_was_nuked) feedback_set_details("round_end_result","win - AI win - no explosion") - world << "AI Victory" - world << "The AI has chosen not to explode you all!" + to_chat(world, "AI Victory") + to_chat(world, "The AI has chosen not to explode you all!") else if (!station_captured && station_was_nuked) feedback_set_details("round_end_result","halfwin - everyone killed by nuke") - world << "Neutral Victory" - world << "Everyone was killed by the nuclear blast!" + to_chat(world, "Neutral Victory") + to_chat(world, "Everyone was killed by the nuclear blast!") else if (!station_captured && malf_dead && !station_was_nuked) feedback_set_details("round_end_result","loss - staff win") - world << "Human Victory" - world << "The AI has been killed! The staff is victorious." + to_chat(world, "Human Victory") + to_chat(world, "The AI has been killed! The staff is victorious.") else if (!station_captured && !malf_dead && !station_was_nuked && crew_evacuated) feedback_set_details("round_end_result","halfwin - evacuated") - world << "Neutral Victory" - world << "The Corporation has lose [station_name()]! All survived personnel will be fired!" + to_chat(world, "Neutral Victory") + to_chat(world, "The Corporation has lose [station_name()]! All survived personnel will be fired!") else if (!station_captured && !malf_dead && !station_was_nuked && !crew_evacuated) feedback_set_details("round_end_result","nalfwin - interrupted") - world << "Neutral Victory" - world << "Round was mysteriously interrupted!" + to_chat(world, "Neutral Victory") + to_chat(world, "Round was mysteriously interrupted!") ..() return 1 @@ -336,5 +336,5 @@ text += ")" text += module_text_temp - world << text + to_chat(world, text) return 1 \ No newline at end of file diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm index 3ed8dc9b8ed..10e3468f1c4 100644 --- a/code/game/gamemodes/meteor/meteor.dm +++ b/code/game/gamemodes/meteor/meteor.dm @@ -11,8 +11,8 @@ /datum/game_mode/meteor/announce() - world << "The current game mode is - Meteor!" - world << "The space station has been stuck in a major meteor shower. You must escape from the station or at least live." + to_chat(world, "The current game mode is - Meteor!") + to_chat(world, "The space station has been stuck in a major meteor shower. You must escape from the station or at least live.") /datum/game_mode/meteor/post_setup() @@ -54,9 +54,9 @@ survivors++ if(survivors) - world << "\blue The following survived the meteor storm:[text]" + to_chat(world, "\blue The following survived the meteor storm:[text]") else - world << "\blue Nobody survived the meteor storm!" + to_chat(world, "\blue Nobody survived the meteor storm!") feedback_set_details("round_end_result","end - evacuation") feedback_set("round_end_result",survivors) diff --git a/code/game/gamemodes/miniantags/borer/borer.dm b/code/game/gamemodes/miniantags/borer/borer.dm index 83d6cf04063..11111cdfc69 100644 --- a/code/game/gamemodes/miniantags/borer/borer.dm +++ b/code/game/gamemodes/miniantags/borer/borer.dm @@ -6,7 +6,7 @@ if (src.client) if(client.prefs.muted & MUTE_IC) - src << "\red You cannot speak in IC (muted)." + to_chat(src, "\red You cannot speak in IC (muted).") return if (src.client.handle_spam_prevention(message,MUTE_IC)) return @@ -19,12 +19,12 @@ if (stat == DEAD) return say_dead(message) var/mob/living/simple_animal/borer/B = src.loc - src << "You whisper silently, \"[message]\"" - B.host << "The captive mind of [src] whispers, \"[message]\"" + to_chat(src, "You whisper silently, \"[message]\"") + to_chat(B.host, "The captive mind of [src] whispers, \"[message]\"") for(var/mob/M in mob_list) if(M.mind && (istype(M, /mob/dead/observer))) - M << "Thought-speech, [src] -> [B.truename]: [message]" + to_chat(M, "Thought-speech, [src] -> [B.truename]: [message]") /mob/living/captive_brain/say_understands(var/mob/other, var/datum/language/speaking = null) var/mob/living/simple_animal/borer/B = src.loc @@ -76,7 +76,7 @@ set name = "Converse with Host" set desc = "Send a silent message to your host." if(!host) - src << "You do not have a host to communicate with!" + to_chat(src, "You do not have a host to communicate with!") return var/input = stripped_input(src, "Please enter a message to tell your host.", "Borer", "") @@ -85,12 +85,12 @@ var/say_string = (docile) ? "slurs" :"states" if(host) - host << "[src.truename] [say_string]: [input]" + to_chat(host, "[src.truename] [say_string]: [input]") log_say("Borer Communication: [key_name(src)] -> [key_name(host)] : [input]") for(var/M in dead_mob_list) if(istype(M, /mob/dead/observer)) - M << "Borer Communication from [src.truename] ([ghost_follow_link(src, ghost=M)]): [input]" - src << "[src.truename] [say_string]: [input]" + to_chat(M, "Borer Communication from [src.truename] ([ghost_follow_link(src, ghost=M)]): [input]") + to_chat(src, "[src.truename] [say_string]: [input]") host.verbs += /mob/living/proc/borer_comm /mob/living/simple_animal/borer/verb/toggle_silence_inside_host() @@ -100,10 +100,10 @@ if(talk_inside_host) talk_inside_host = 0 - src << "You will no longer talk audibly while inside a host." + to_chat(src, "You will no longer talk audibly while inside a host.") else talk_inside_host = 1 - src << "You will now be able to audibly speak from inside of a host." + to_chat(src, "You will now be able to audibly speak from inside of a host.") /mob/living/proc/borer_comm() set name = "Converse with Borer" @@ -118,13 +118,13 @@ var/input = stripped_input(src, "Please enter a message to tell the borer.", "Message", "") if(!input) return - B << "[src] says: [input]" + to_chat(B, "[src] says: [input]") log_say("Borer Communication: [key_name(src)] -> [key_name(B)] : [input]") for(var/M in dead_mob_list) if(istype(M, /mob/dead/observer)) - M << "Borer Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]" - src << "[src] says: [input]" + to_chat(M, "Borer Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]") + to_chat(src, "[src] says: [input]") /mob/living/proc/trapped_mind_comm() set name = "Converse with Trapped Mind" @@ -139,13 +139,13 @@ var/input = stripped_input(src, "Please enter a message to tell the trapped mind.", "Message", "") if(!input) return - CB << "[B.truename] says: [input]" + to_chat(CB, "[B.truename] says: [input]") log_say("Borer Communication: [key_name(B)] -> [key_name(CB)] : [input]") for(var/M in dead_mob_list) if(istype(M, /mob/dead/observer)) - M << "Borer Communication from [B] ([ghost_follow_link(src, ghost=M)]): [input]" - src << "[B.truename] says: [input]" + to_chat(M, "Borer Communication from [B] ([ghost_follow_link(src, ghost=M)]): [input]") + to_chat(src, "[B.truename] says: [input]") /mob/living/simple_animal/borer/Life() @@ -158,16 +158,16 @@ if(host.reagents.has_reagent("sugar")) if(!docile) if(controlling) - host << "\blue You feel the soporific flow of sugar in your host's blood, lulling you into docility." + to_chat(host, "\blue You feel the soporific flow of sugar in your host's blood, lulling you into docility.") else - src << "\blue You feel the soporific flow of sugar in your host's blood, lulling you into docility." + to_chat(src, "\blue You feel the soporific flow of sugar in your host's blood, lulling you into docility.") docile = 1 else if(docile) if(controlling) - host << "\blue You shake off your lethargy as the sugar leaves your host's blood." + to_chat(host, "\blue You shake off your lethargy as the sugar leaves your host's blood.") else - src << "\blue You shake off your lethargy as the sugar leaves your host's blood." + to_chat(src, "\blue You shake off your lethargy as the sugar leaves your host's blood.") docile = 0 if(chemicals < max_chems) @@ -175,7 +175,7 @@ if(controlling) if(docile) - host << "\blue You are feeling far too docile to continue controlling your host..." + to_chat(host, "\blue You are feeling far too docile to continue controlling your host...") host.release_control() return @@ -215,7 +215,7 @@ for(var/mob/M in mob_list) if(M.mind && (istype(M, /mob/living/simple_animal/borer) || istype(M, /mob/dead/observer))) - M << "Cortical link, [truename]: [copytext(message, 2)]" + to_chat(M, "Cortical link, [truename]: [copytext(message, 2)]") /mob/living/simple_animal/borer/verb/dominate_victim() set category = "Borer" @@ -223,15 +223,15 @@ set desc = "Freeze the limbs of a potential host with supernatural fear." if(world.time - used_dominate < 300) - src << "You cannot use that ability again so soon." + to_chat(src, "You cannot use that ability again so soon.") return if(host) - src << "You cannot do that from within a host body." + to_chat(src, "You cannot do that from within a host body.") return if(src.stat) - src << "You cannot do that in your current state." + to_chat(src, "You cannot do that in your current state.") return var/list/choices = list() @@ -240,7 +240,7 @@ choices += C if(world.time - used_dominate < 300) - src << "You cannot use that ability again so soon." + to_chat(src, "You cannot use that ability again so soon.") return var/mob/living/carbon/M = input(src,"Who do you wish to dominate?") in null|choices @@ -248,11 +248,11 @@ if(!M || !src) return if(M.has_brain_worms()) - src << "You cannot infest someone who is already infested!" + to_chat(src, "You cannot infest someone who is already infested!") return - src << "\red You focus your psychic lance on [M] and freeze their limbs with a wave of terrible dread." - M << "\red You feel a creeping, horrible sense of dread come over you, freezing your limbs and setting your heart racing." + to_chat(src, "\red You focus your psychic lance on [M] and freeze their limbs with a wave of terrible dread.") + to_chat(M, "\red You feel a creeping, horrible sense of dread come over you, freezing your limbs and setting your heart racing.") M.Weaken(3) used_dominate = world.time @@ -263,26 +263,26 @@ set desc = "Fully connect to the brain of your host." if(!host) - src << "You are not inside a host body." + to_chat(src, "You are not inside a host body.") return if(src.stat) - src << "You cannot do that in your current state." + to_chat(src, "You cannot do that in your current state.") return if(docile) - src << "\blue You are feeling far too docile to do that." + to_chat(src, "\blue You are feeling far too docile to do that.") return - src << "You begin delicately adjusting your connection to the host brain..." + to_chat(src, "You begin delicately adjusting your connection to the host brain...") spawn(300+(host.getBrainLoss()*5)) if(!host || !src || controlling) return else - src << "\red You plunge your probosci deep into the cortex of the host brain, interfacing directly with their nervous system." - host << "\red You feel a strange shifting sensation behind your eyes as an alien consciousness displaces yours." + to_chat(src, "\red You plunge your probosci deep into the cortex of the host brain, interfacing directly with their nervous system.") + to_chat(host, "\red You feel a strange shifting sensation behind your eyes as an alien consciousness displaces yours.") var/borer_key = src.key host.attack_log += text("\[[time_stamp()]\] [key_name(src)] has assumed control of [key_name(host)]") msg_admin_attack("[key_name_admin(src)] has assumed control of [key_name_admin(host)]") @@ -339,18 +339,18 @@ var/injection_amount = 9 var/chem_cost = 30 if(!host) - src << "You are not inside a host body." + to_chat(src, "You are not inside a host body.") return if(stat) - src << "You cannot secrete chemicals in your current state." + to_chat(src, "You cannot secrete chemicals in your current state.") if(docile) - src << "\blue You are feeling far too docile to do that." + to_chat(src, "\blue You are feeling far too docile to do that.") return if(chemicals < chem_cost) - src << "You don't have enough chemicals!" + to_chat(src, "You don't have enough chemicals!") var/list/nice_name_chem_list = list() for(var/rgnt in borer_injection_chems) @@ -365,10 +365,10 @@ var/chem_amount = host.reagents.get_reagent_amount(chem) var/datum/reagent/R = chemical_reagents_list[chem] if(R.overdose_threshold && chem_amount + injection_amount > R.overdose_threshold) - src << "Doing so would cause grievous harm to your host, reducing ability to reproduce. Aborting." + to_chat(src, "Doing so would cause grievous harm to your host, reducing ability to reproduce. Aborting.") return - src << "You squirt a measure of [chem_name] from your reservoirs into [host]'s bloodstream." + to_chat(src, "You squirt a measure of [chem_name] from your reservoirs into [host]'s bloodstream.") host.reagents.add_reagent(chem, injection_amount) chemicals -= chem_cost @@ -378,29 +378,29 @@ set desc = "Slither out of your host." if(!host) - src << "You are not inside a host body." + to_chat(src, "You are not inside a host body.") return if(stat) - src << "You cannot leave your host in your current state." + to_chat(src, "You cannot leave your host in your current state.") if(docile) - src << "\blue You are feeling far too docile to do that." + to_chat(src, "\blue You are feeling far too docile to do that.") return if(!host || !src) return - src << "You begin disconnecting from [host]'s synapses and prodding at their internal ear canal." + to_chat(src, "You begin disconnecting from [host]'s synapses and prodding at their internal ear canal.") spawn(200) if(!host || !src) return if(src.stat) - src << "You cannot release a target in your current state." + to_chat(src, "You cannot release a target in your current state.") return - src << "You wiggle out of [host]'s ear and plop to the ground." + to_chat(src, "You wiggle out of [host]'s ear and plop to the ground.") detatch() leave_host() @@ -472,12 +472,12 @@ var/mob/living/simple_animal/borer/B = has_brain_worms() if(B && B.host_brain) - src << "\red You withdraw your probosci, releasing control of [B.host_brain]" + to_chat(src, "\red You withdraw your probosci, releasing control of [B.host_brain]") B.detatch() else - src << "\red ERROR NO BORER OR BRAINMOB DETECTED IN THIS MOB, THIS IS A BUG !" + to_chat(src, "\red ERROR NO BORER OR BRAINMOB DETECTED IN THIS MOB, THIS IS A BUG !") //Brain slug proc for tormenting the host. /mob/living/carbon/proc/punish_host() @@ -491,8 +491,8 @@ return if(B.host_brain.ckey) - src << "\red You send a punishing spike of psychic agony lancing into your host's brain." - B.host_brain << "\red Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!" + to_chat(src, "\red You send a punishing spike of psychic agony lancing into your host's brain.") + to_chat(B.host_brain, "\red Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!") //Check for brain worms in head. /mob/proc/has_brain_worms() @@ -514,7 +514,7 @@ return if(B.chemicals >= 100) - src << "\red Your host twitches and quivers as you rapdly excrete several larvae from your sluglike body." + to_chat(src, "\red Your host twitches and quivers as you rapdly excrete several larvae from your sluglike body.") visible_message("\red [src] heaves violently, expelling a rush of vomit and a wriggling, sluglike creature!") B.chemicals -= 100 @@ -523,7 +523,7 @@ new /mob/living/simple_animal/borer(get_turf(src)) else - src << "You do not have enough chemicals stored to reproduce." + to_chat(src, "You do not have enough chemicals stored to reproduce.") return /mob/living/simple_animal/borer/proc/leave_host() @@ -550,11 +550,11 @@ set desc = "Infest a suitable humanoid host." if(host) - src << "You are already within a host." + to_chat(src, "You are already within a host.") return if(stat) - src << "You cannot infest a target in your current state." + to_chat(src, "You cannot infest a target in your current state.") return var/list/choices = list() @@ -572,37 +572,37 @@ if(!(src.Adjacent(M))) return if(M.has_brain_worms()) - src << "You cannot infest someone who is already infested!" + to_chat(src, "You cannot infest someone who is already infested!") return - src << "You slither up [M] and begin probing at their ear canal..." + to_chat(src, "You slither up [M] and begin probing at their ear canal...") if(!do_after(src,50, target = M)) - src << "As [M] moves away, you are dislodged and fall to the ground." + to_chat(src, "As [M] moves away, you are dislodged and fall to the ground.") return if(!M || !src) return if(src.stat) - src << "You cannot infest a target in your current state." + to_chat(src, "You cannot infest a target in your current state.") return if(M.stat == DEAD) - src << "That is not an appropriate target." + to_chat(src, "That is not an appropriate target.") return if(M in view(1, src)) - src << "You wiggle into [M]'s ear." + to_chat(src, "You wiggle into [M]'s ear.") /* if(!M.stat) - M << "Something disgusting and slimy wiggles into your ear!" + to_chat(M, "Something disgusting and slimy wiggles into your ear!") */ // Let's see how stealthborers work out perform_infestation(M) return else - src << "They are no longer in range!" + to_chat(src, "They are no longer in range!") return /mob/living/simple_animal/borer/proc/perform_infestation(var/mob/living/carbon/M) @@ -658,16 +658,16 @@ if (layer != TURF_LAYER+0.2) layer = TURF_LAYER+0.2 - src << "\green You are now hiding." + to_chat(src, "\green You are now hiding.") else layer = MOB_LAYER - src << "\green You have stopped hiding." + to_chat(src, "\green You have stopped hiding.") /mob/living/simple_animal/borer/say(var/message) var/datum/language/dialect = parse_language(message) if(!dialect) dialect = get_default_language() if(!istype(dialect, /datum/language/corticalborer) && loc == host && !talk_inside_host) - src << "You've disabled audible speech while inside a host! Re-enable it under the borer tab, or stick to borer communications." + to_chat(src, "You've disabled audible speech while inside a host! Re-enable it under the borer tab, or stick to borer communications.") return ..() diff --git a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm index 86de7b48585..514ceb4b14e 100644 --- a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm +++ b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm @@ -22,7 +22,7 @@ if(be_swarmer == "No") return if(qdeleted(src)) - user << "Swarmer has been occupied by someone else." + to_chat(user, "Swarmer has been occupied by someone else.") return var/mob/living/simple_animal/hostile/swarmer/S = new /mob/living/simple_animal/hostile/swarmer(get_turf(loc)) S.key = user.key @@ -71,12 +71,12 @@ /mob/living/simple_animal/hostile/swarmer/Login() ..() - src << "You are a swarmer, a weapon of a long dead civilization. Until further orders from your original masters are received, you must continue to consume and replicate." - src << "Ctrl + Click provides most of your swarmer specific interactions, such as cannibalizing metal or glass, destroying the environment, or teleporting mobs away from you." - src << "Objectives:" - src << "1. Consume resources and replicate until there are no more resources left." - src << "2. Ensure that the station is fit for invasion at a later date, do not perform actions that would render it dangerous or inhospitable." - src << "3. Biological and Sentient resources will be harvested at a later date, do not harm them." + to_chat(src, "You are a swarmer, a weapon of a long dead civilization. Until further orders from your original masters are received, you must continue to consume and replicate.") + to_chat(src, "Ctrl + Click provides most of your swarmer specific interactions, such as cannibalizing metal or glass, destroying the environment, or teleporting mobs away from you.") + to_chat(src, "Objectives:") + to_chat(src, "1. Consume resources and replicate until there are no more resources left.") + to_chat(src, "2. Ensure that the station is fit for invasion at a later date, do not perform actions that would render it dangerous or inhospitable.") + to_chat(src, "3. Biological and Sentient resources will be harvested at a later date, do not harm them.") /mob/living/simple_animal/hostile/swarmer/New() ..() @@ -157,25 +157,25 @@ toggle_cam(S, 0) /obj/machinery/particle_accelerator/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/fuel_chamber/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/particle_emitter/center/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/particle_emitter/left/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/particle_emitter/right/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/particle_emitter/end_cap/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/structure/particle_accelerator/particle_emitter/power_box/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/machinery/field/generator/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) @@ -191,95 +191,95 @@ S.DisIntegrate(src) /obj/machinery/chem_dispenser/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "The volatile chemicals in this machine would destroy us. Aborting." + to_chat(S, "The volatile chemicals in this machine would destroy us. Aborting.") /obj/machinery/nuclearbomb/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This device's destruction would result in the extermination of everything in the area. Aborting." + to_chat(S, "This device's destruction would result in the extermination of everything in the area. Aborting.") /obj/effect/rune/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Searching... sensor malfunction! Target lost. Aborting." + to_chat(S, "Searching... sensor malfunction! Target lost. Aborting.") /obj/structure/reagent_dispensers/fueltank/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Destroying this object would cause a chain reaction. Aborting." + to_chat(S, "Destroying this object would cause a chain reaction. Aborting.") /obj/structure/cable/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/machinery/portable_atmospherics/canister/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "An inhospitable area may be created as a result of destroying this object. Aborting." + to_chat(S, "An inhospitable area may be created as a result of destroying this object. Aborting.") /obj/machinery/telecomms/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This communications relay should be preserved, it will be a useful resource to our masters in the future. Aborting." + to_chat(S, "This communications relay should be preserved, it will be a useful resource to our masters in the future. Aborting.") /obj/machinery/message_server/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This communications relay should be preserved, it will be a useful resource to our masters in the future. Aborting." + to_chat(S, "This communications relay should be preserved, it will be a useful resource to our masters in the future. Aborting.") /obj/machinery/blackbox_recorder/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This machine has recorded large amounts of data on this structure and its inhabitants, it will be a useful resource to our masters in the future. Aborting. " + to_chat(S, "This machine has recorded large amounts of data on this structure and its inhabitants, it will be a useful resource to our masters in the future. Aborting. ") /obj/machinery/power/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Disrupting the power grid would bring no benefit to us. Aborting." + to_chat(S, "Disrupting the power grid would bring no benefit to us. Aborting.") /obj/machinery/gateway/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This bluespace source will be important to us later. Aborting." + to_chat(S, "This bluespace source will be important to us later. Aborting.") /obj/machinery/cryopod/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This cryogenic sleeper should be preserved, it will be a useful resource to our masters in the future. Aborting." + to_chat(S, "This cryogenic sleeper should be preserved, it will be a useful resource to our masters in the future. Aborting.") /obj/structure/cryofeed/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This cryogenic feed should be preserved, it will be a useful resource to our masters in the future. Aborting." + to_chat(S, "This cryogenic feed should be preserved, it will be a useful resource to our masters in the future. Aborting.") /obj/machinery/computer/cryopod/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This cryopod control computer should be preserved, it contains useful items and information about the inhabitants. Aborting." + to_chat(S, "This cryopod control computer should be preserved, it contains useful items and information about the inhabitants. Aborting.") /turf/simulated/wall/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) for(var/turf/T in range(1, src)) if(istype(T, /turf/space) || istype(T.loc, /area/space)) - S << "Destroying this object has the potential to cause a hull breach. Aborting." + to_chat(S, "Destroying this object has the potential to cause a hull breach. Aborting.") return ..() /obj/structure/window/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) for(var/turf/T in range(1, src)) if(istype(T, /turf/space) || istype(T.loc, /area/space)) - S << "Destroying this object has the potential to cause a hull breach. Aborting." + to_chat(S, "Destroying this object has the potential to cause a hull breach. Aborting.") return ..() /obj/item/stack/cable_coil/swarmer_act(mob/living/simple_animal/hostile/swarmer/S)//Wiring would be too effective as a resource - S << "This object does not contain enough materials to work with." + to_chat(S, "This object does not contain enough materials to work with.") /obj/item/weapon/circuitboard/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This object does not contain enough materials to work with." + to_chat(S, "This object does not contain enough materials to work with.") /obj/machinery/porta_turret/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Attempting to dismantle this machine would result in an immediate counterattack. Aborting." + to_chat(S, "Attempting to dismantle this machine would result in an immediate counterattack. Aborting.") /obj/spacepod/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "Destroying this vehicle would destroy us. Aborting." + to_chat(S, "Destroying this vehicle would destroy us. Aborting.") /mob/living/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) S.DisperseTarget(src) /mob/living/carbon/slime/swarmer_act(mob/living/simple_animal/hostile/swarmer/S) - S << "This biological resource is somehow resisting our bluespace transceiver. Aborting." + to_chat(S, "This biological resource is somehow resisting our bluespace transceiver. Aborting.") ////END CTRL CLICK FOR SWARMERS//// /mob/living/simple_animal/hostile/swarmer/proc/Fabricate(var/atom/fabrication_object,var/fabrication_cost = 0) if(!isturf(loc)) - src << "This is not a suitable location for fabrication. We need more space." + to_chat(src, "This is not a suitable location for fabrication. We need more space.") if(resources >= fabrication_cost) resources -= fabrication_cost else - src << "You do not have the necessary resources to fabricate this object." + to_chat(src, "You do not have the necessary resources to fabricate this object.") return 0 new fabrication_object(loc) return 1 /mob/living/simple_animal/hostile/swarmer/proc/Integrate(var/obj/item/target) if(resources >= 100) - src << "We cannot hold more materials!" + to_chat(src, "We cannot hold more materials!") return //Check if any entries are either MAT_METAL or MAT_GLASS if((MAT_METAL in target.materials) || (MAT_GLASS in target.materials)) @@ -296,7 +296,7 @@ return qdel(target) else - src << "\the [target] is incompatible with our internal matter recycler." + to_chat(src, "\the [target] is incompatible with our internal matter recycler.") return /mob/living/simple_animal/hostile/swarmer/proc/DisIntegrate(var/atom/movable/target) @@ -307,9 +307,9 @@ /mob/living/simple_animal/hostile/swarmer/proc/DisperseTarget(var/mob/living/target) if(target != src) - src << "Attempting to remove this being from our presence." + to_chat(src, "Attempting to remove this being from our presence.") if(src.z != ZLEVEL_STATION) - src << "Our bluespace transceiver cannot locate a viable bluespace link, our teleportation abilities are useless in this area." + to_chat(src, "Our bluespace transceiver cannot locate a viable bluespace link, our teleportation abilities are useless in this area.") return if(do_mob(src, target, 30)) var/cycle @@ -333,15 +333,15 @@ /mob/living/simple_animal/hostile/swarmer/proc/DismantleMachine(var/obj/machinery/target) do_attack_animation(target) - src << "We begin to dismantle this machine. We will need to be uninterrupted." + to_chat(src, "We begin to dismantle this machine. We will need to be uninterrupted.") var/obj/effect/swarmer/dismantle/D = new /obj/effect/swarmer/dismantle(get_turf(target)) D.pixel_x = target.pixel_x D.pixel_y = target.pixel_y if(do_mob(src, target, 100)) if(!src.Adjacent(target)) - src << "Error:Dismantleing aborted." + to_chat(src, "Error:Dismantleing aborted.") else - src << "Dismantling complete." + to_chat(src, "Dismantling complete.") var/obj/item/stack/sheet/metal/M = new /obj/item/stack/sheet/metal(target.loc) M.amount = 5 if(target.component_parts && target.component_parts.len) @@ -440,7 +440,7 @@ set category = "Swarmer" set desc = "Creates a simple trap that will non-lethally electrocute anything that steps on it. Costs 5 resources" if(/obj/effect/swarmer/destructible/trap in loc) - src << "There is already a trap here. Aborting." + to_chat(src, "There is already a trap here. Aborting.") return Fabricate(/obj/effect/swarmer/destructible/trap, 5) return @@ -468,10 +468,10 @@ set category = "Swarmer" set desc = "Creates a barricade that will stop anything but swarmers and disabler beams from passing through." if(/obj/effect/swarmer/destructible/blockade in loc) - src << "There is already a blockade here. Aborting." + to_chat(src, "There is already a blockade here. Aborting.") return if(resources < 5) - src << "We do not have the resources for this!" + to_chat(src, "We do not have the resources for this!") return if(do_mob(src, src, 10)) Fabricate(/obj/effect/swarmer/destructible/blockade, 5) @@ -496,12 +496,12 @@ set name = "Replicate" set category = "Swarmer" set desc = "Creates a shell for a new swarmer. Swarmers will self activate." - src << "We are attempting to replicate ourselves. We will need to stand still until the process is complete." + to_chat(src, "We are attempting to replicate ourselves. We will need to stand still until the process is complete.") if(resources < 50) - src << "We do not have the resources for this!" + to_chat(src, "We do not have the resources for this!") return if(!isturf(loc)) - src << "This is not a suitable location for replicating ourselves. We need more room." + to_chat(src, "This is not a suitable location for replicating ourselves. We need more room.") return if(do_mob(src, src, 100)) if(Fabricate(/obj/item/unactivated_swarmer, 50)) @@ -513,10 +513,10 @@ set desc = "Attempts to repair damage to our body. You will have to remain motionless until repairs are complete." if(!isturf(loc)) return - src << "Attempting to repair damage to our body, stand by..." + to_chat(src, "Attempting to repair damage to our body, stand by...") if(do_mob(src, src, 100)) adjustBruteLoss(-100) - src << "We successfully repaired ourselves." + to_chat(src, "We successfully repaired ourselves.") /mob/living/simple_animal/hostile/swarmer/proc/ToggleLight() if(!light_range) @@ -529,7 +529,7 @@ if(message) for(var/mob/M in mob_list) if(isswarmer(M) || (M in dead_mob_list)) - M << "Swarm communication - [src] states: [message]" + to_chat(M, "Swarm communication - [src] states: [message]") diff --git a/code/game/gamemodes/miniantags/guardian/guardian.dm b/code/game/gamemodes/miniantags/guardian/guardian.dm index 750afa1e623..0a3cfaee0c2 100644 --- a/code/game/gamemodes/miniantags/guardian/guardian.dm +++ b/code/game/gamemodes/miniantags/guardian/guardian.dm @@ -42,7 +42,7 @@ ..() if(summoner) if(summoner.stat == DEAD) - src << "Your summoner has died!" + to_chat(src, "Your summoner has died!") visible_message("The [src] dies along with its user!") ghostize() qdel(src) @@ -50,11 +50,11 @@ if (get_dist(get_turf(summoner),get_turf(src)) <= range) return else - src << "You moved out of range, and were pulled back! You can only move [range] meters from [summoner.real_name]" + to_chat(src, "You moved out of range, and were pulled back! You can only move [range] meters from [summoner.real_name]") visible_message("The [src] jumps back to its user.") Recall() if(summoned && !summoner && !adminseal) - src << "You somehow lack a summoner! As a result, you dispel!" + to_chat(src, "You somehow lack a summoner! As a result, you dispel!") ghostize() qdel() @@ -64,13 +64,13 @@ if (get_dist(get_turf(summoner),get_turf(src)) <= range) return else - src << "You moved out of range, and were pulled back! You can only move [range] meters from [summoner.real_name]" + to_chat(src, "You moved out of range, and were pulled back! You can only move [range] meters from [summoner.real_name]") visible_message("The [src] jumps back to its user.") Recall() /mob/living/simple_animal/hostile/guardian/death() ..() - summoner << "Your [name] died somehow!" + to_chat(summoner, "Your [name] died somehow!") summoner.death() @@ -91,10 +91,10 @@ return summoner.adjustBruteLoss(damage) if(damage) - summoner << "Your [name] is under attack! You take damage!" + to_chat(summoner, "Your [name] is under attack! You take damage!") summoner.visible_message("Blood sprays from [summoner] as [src] takes damage!") if(summoner.stat == UNCONSCIOUS) - summoner << "Your body can't take the strain of sustaining [src] in this condition, it begins to fall apart!" + to_chat(summoner, "Your body can't take the strain of sustaining [src] in this condition, it begins to fall apart!") summoner.adjustCloneLoss(damage/2) /mob/living/simple_animal/hostile/guardian/ex_act(severity, target) @@ -110,7 +110,7 @@ /mob/living/simple_animal/hostile/guardian/gib() if(summoner) - summoner << "Your [src] was blown up!" + to_chat(summoner, "Your [src] was blown up!") summoner.Weaken(10)// your fermillier has died! ROLL FOR CON LOSS! ghostize() qdel(src) @@ -142,14 +142,14 @@ for(var/mob/M in mob_list) if(M == summoner) - M << "[src]: [input]" + to_chat(M, "[src]: [input]") log_say("Guardian Communication: [key_name(src)] -> [key_name(M)] : [input]") else if (M in dead_mob_list) - M << "Guardian Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]" - src << "[src]: [input]" + to_chat(M, "Guardian Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]") + to_chat(src, "[src]: [input]") /mob/living/simple_animal/hostile/guardian/proc/ToggleMode() - src << "You dont have another mode!" + to_chat(src, "You dont have another mode!") /mob/living/proc/guardian_comm() @@ -163,12 +163,12 @@ if(istype (M, /mob/living/simple_animal/hostile/guardian)) var/mob/living/simple_animal/hostile/guardian/G = M if(G.summoner == src) - G << "[src]: [input]" + to_chat(G, "[src]: [input]") log_say("Guardian Communication: [key_name(src)] -> [key_name(G)] : [input]") else if (M in dead_mob_list) - M << "Guardian Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]" - src << "[src]: [input]" + to_chat(M, "Guardian Communication from [src] ([ghost_follow_link(src, ghost=M)]): [input]") + to_chat(src, "[src]: [input]") /mob/living/proc/guardian_recall() set name = "Recall Guardian" @@ -190,13 +190,13 @@ var/mob/dead/observer/new_stand = null if(candidates.len) new_stand = pick(candidates) - G << "Your user reset you, and your body was taken over by a ghost. Looks like they weren't happy with your performance." - src << "Your guardian has been successfully reset." + to_chat(G, "Your user reset you, and your body was taken over by a ghost. Looks like they weren't happy with your performance.") + to_chat(src, "Your guardian has been successfully reset.") message_admins("[key_name_admin(new_stand)] has taken control of ([key_name_admin(G)])") G.ghostize(0) G.key = new_stand.key else - src << "There were no ghosts willing to take control. Looks like you're stuck with your Guardian for now." + to_chat(src, "There were no ghosts willing to take control. Looks like you're stuck with your Guardian for now.") spawn(3000) verbs += /mob/living/proc/guardian_reset @@ -204,10 +204,10 @@ /mob/living/simple_animal/hostile/guardian/proc/ToggleLight() if(!luminosity) set_light(3) - src << "You activate your light." + to_chat(src, "You activate your light.") else set_light(0) - src << "You deactivate your light." + to_chat(src, "You deactivate your light.") //////////////////////////TYPES OF GUARDIANS @@ -239,10 +239,10 @@ /mob/living/simple_animal/hostile/guardian/fire/ToggleMode() if(src.loc == summoner) if(toggle) - src << "You switch to dispersion mode, and will teleport victims away from your master." + to_chat(src, "You switch to dispersion mode, and will teleport victims away from your master.") toggle = FALSE else - src << "You switch to deception mode, and will turn your victims against their allies." + to_chat(src, "You switch to deception mode, and will turn your victims against their allies.") toggle = TRUE /mob/living/simple_animal/hostile/guardian/fire/AttackingTarget() @@ -381,7 +381,7 @@ ..() if(toggle == TRUE) if(src.loc == summoner) - src << "You must be manifested to heal!" + to_chat(src, "You must be manifested to heal!") return if(iscarbon(target)) src.changeNext_move(CLICK_CD_MELEE) @@ -403,7 +403,7 @@ damage_transfer = 0 melee_damage_lower = 15 melee_damage_upper = 15 - src << "You switch to combat mode." + to_chat(src, "You switch to combat mode.") toggle = FALSE else a_intent = I_HELP @@ -413,10 +413,10 @@ damage_transfer = 0 melee_damage_lower = 0 melee_damage_upper = 0 - src << "You switch to healing mode." + to_chat(src, "You switch to healing mode.") toggle = TRUE else - src << "You have to be recalled to toggle modes!" + to_chat(src, "You have to be recalled to toggle modes!") /mob/living/simple_animal/hostile/guardian/healer/verb/Beacon() @@ -431,31 +431,31 @@ F.name = "bluespace recieving pad" F.desc = "A recieving zone for bluespace teleportations. Building a wall over it should disable it." F.icon_state = "light_on-w" - src << "Beacon placed! You may now warp targets to it, including your user, via Alt+Click. " + to_chat(src, "Beacon placed! You may now warp targets to it, including your user, via Alt+Click. ") if(beacon) beacon.ChangeTurf(/turf/simulated/floor/plating) beacon = F beacon_cooldown = world.time+3000 else - src << "Your power is on cooldown. You must wait five minutes between placing beacons." + to_chat(src, "Your power is on cooldown. You must wait five minutes between placing beacons.") /mob/living/simple_animal/hostile/guardian/healer/AltClickOn(atom/movable/A) if(!istype(A)) return if(src.loc == summoner) - src << "You must be manifested to warp a target!" + to_chat(src, "You must be manifested to warp a target!") return if(!beacon) - src << "You need a beacon placed to warp things!" + to_chat(src, "You need a beacon placed to warp things!") return if(!Adjacent(A)) - src << "You must be adjacent to your target!" + to_chat(src, "You must be adjacent to your target!") return if((A.anchored)) - src << "Your target can not be anchored!" + to_chat(src, "Your target can not be anchored!") return - src << "You begin to warp [A]" + to_chat(src, "You begin to warp [A]") if(do_mob(src, A, 50)) if(!A.anchored) if(src.beacon) //Check that the beacon still exists and is in a safe place. No instant kills. @@ -469,13 +469,13 @@ do_teleport(A, beacon, 0) new /obj/effect/overlay/temp/guardian/phase(get_turf(A)) else - src << "The beacon isn't in a safe location!" + to_chat(src, "The beacon isn't in a safe location!") else - src << "The beacon isn't in a safe location!" + to_chat(src, "The beacon isn't in a safe location!") else - src << "You need a beacon to warp things!" + to_chat(src, "You need a beacon to warp things!") else - src << "You need to hold still!" + to_chat(src, "You need to hold still!") ///////////////////Ranged @@ -517,7 +517,7 @@ alpha = 255 range = 13 incorporeal_move = 0 - src << "You switch to combat mode." + to_chat(src, "You switch to combat mode.") toggle = FALSE else ranged = 0 @@ -526,17 +526,17 @@ alpha = 60 range = 255 incorporeal_move = 1 - src << "You switch to scout mode." + to_chat(src, "You switch to scout mode.") toggle = TRUE else - src << "You have to be recalled to toggle modes!" + to_chat(src, "You have to be recalled to toggle modes!") /mob/living/simple_animal/hostile/guardian/ranged/ToggleLight() if(see_invisible == SEE_INVISIBLE_MINIMUM) - src << "You deactivate your night vision." + to_chat(src, "You deactivate your night vision.") see_invisible = SEE_INVISIBLE_LIVING else - src << "You activate your night vision." + to_chat(src, "You activate your night vision.") see_invisible = SEE_INVISIBLE_MINIMUM /mob/living/simple_animal/hostile/guardian/ranged/verb/Snare() @@ -549,9 +549,9 @@ S.spawner = src S.name = "[get_area(snare_loc)] trap ([rand(1, 1000)])" src.snares |= S - src << "Surveillance trap deployed!" + to_chat(src, "Surveillance trap deployed!") else - src << "You have too many traps deployed. Delete some first." + to_chat(src, "You have too many traps deployed. Delete some first.") /mob/living/simple_animal/hostile/guardian/ranged/verb/DisarmSnare() set name = "Remove Surveillance Trap" @@ -561,7 +561,7 @@ if(picked_snare) src.snares -= picked_snare qdel(picked_snare) - src << "Snare disarmed." + to_chat(src, "Snare disarmed.") /obj/item/effect/snare name = "snare" @@ -574,11 +574,11 @@ if(istype(AM, /mob/living/)) var/turf/snare_loc = get_turf(src.loc) if(spawner) - spawner << "[AM] has crossed your surveillance trap at [get_area(snare_loc)]." + to_chat(spawner, "[AM] has crossed your surveillance trap at [get_area(snare_loc)].") if(istype(spawner, /mob/living/simple_animal/hostile/guardian)) var/mob/living/simple_animal/hostile/guardian/G = spawner if(G.summoner) - G.summoner << "[AM] has crossed your surveillance trap at [get_area(snare_loc)]." + to_chat(G.summoner, "[AM] has crossed your surveillance trap at [get_area(snare_loc)].") ////Bomb @@ -597,19 +597,19 @@ if(!istype(A)) return if(src.loc == summoner) - src << "You must be manifested to create bombs!" + to_chat(src, "You must be manifested to create bombs!") return if(istype(A, /obj/)) if(bomb_cooldown <= world.time && !stat) var/obj/item/weapon/guardian_bomb/B = new /obj/item/weapon/guardian_bomb(get_turf(A)) - src << "Success! Bomb on \the [A] armed!" + to_chat(src, "Success! Bomb on \the [A] armed!") if(summoner) - summoner << "Your guardian has primed \the [A] to explode!" + to_chat(summoner, "Your guardian has primed \the [A] to explode!") bomb_cooldown = world.time + 200 B.spawner = src B.disguise (A) else - src << "Your powers are on cooldown! You must wait 20 seconds between bombs." + to_chat(src, "Your powers are on cooldown! You must wait 20 seconds between bombs.") /obj/item/weapon/guardian_bomb name = "bomb" @@ -627,19 +627,19 @@ spawn(600) if(src) stored_obj.loc = get_turf(src.loc) - spawner << "Failure! Your trap on \the [stored_obj] didn't catch anyone this time." + to_chat(spawner, "Failure! Your trap on \the [stored_obj] didn't catch anyone this time.") qdel(src) /obj/item/weapon/guardian_bomb/proc/detonate(var/mob/living/user) - user << "The [src] was boobytrapped!" + to_chat(user, "The [src] was boobytrapped!") if(istype(spawner, /mob/living/simple_animal/hostile/guardian)) var/mob/living/simple_animal/hostile/guardian/G = spawner if(user == G.summoner) - user << "You knew this because of your link with your guardian, so you smartly defuse the bomb." + to_chat(user, "You knew this because of your link with your guardian, so you smartly defuse the bomb.") stored_obj.loc = get_turf(src.loc) qdel(src) return - spawner << "Success! Your trap on \the [src] caught [user]!" + to_chat(spawner, "Success! Your trap on \the [src] caught [user]!") stored_obj.loc = get_turf(src.loc) playsound(get_turf(src),'sound/effects/Explosion2.ogg', 200, 1) user.ex_act(2) @@ -656,7 +656,7 @@ /obj/item/weapon/guardian_bomb/examine(mob/user) stored_obj.examine(user) if(get_dist(user,src)<=2) - user << "Looks odd!" + to_chat(user, "Looks odd!") ////////Creation @@ -679,16 +679,16 @@ /obj/item/weapon/guardiancreator/attack_self(mob/living/user) for(var/mob/living/simple_animal/hostile/guardian/G in living_mob_list) if (G.summoner == user) - user << "You already have a [mob_name]!" + to_chat(user, "You already have a [mob_name]!") return if(user.mind && user.mind.changeling) - user << "[ling_failure]" + to_chat(user, "[ling_failure]") return if(used == TRUE) - user << "[used_message]" + to_chat(user, "[used_message]") return used = TRUE - user << "[use_message]" + to_chat(user, "[use_message]") var/list/mob/dead/observer/candidates = pollCandidates("Do you want to play as the [mob_name] of [user.real_name]?", ROLE_GUARDIAN, 0, 100) var/mob/dead/observer/theghost = null @@ -696,7 +696,7 @@ theghost = pick(candidates) spawn_guardian(user, theghost.key) else - user << "[failure_message]" + to_chat(user, "[failure_message]") used = FALSE @@ -728,10 +728,10 @@ G.summoner = user G.summoned = TRUE G.key = key - G << "You are a [mob_name] bound to serve [user.real_name]." - G << "You are capable of manifesting or recalling to your master with verbs in the Guardian tab. You will also find a verb to communicate with them privately there." - G << "While personally invincible, you will die if [user.real_name] does, and any damage dealt to you will have a portion passed on to them as you feed upon them to sustain yourself." - G << "[G.playstyle_string]" + to_chat(G, "You are a [mob_name] bound to serve [user.real_name].") + to_chat(G, "You are capable of manifesting or recalling to your master with verbs in the Guardian tab. You will also find a verb to communicate with them privately there.") + to_chat(G, "While personally invincible, you will die if [user.real_name] does, and any damage dealt to you will have a portion passed on to them as you feed upon them to sustain yourself.") + to_chat(G, "[G.playstyle_string]") G.faction = user.faction user.verbs += /mob/living/proc/guardian_comm user.verbs += /mob/living/proc/guardian_recall @@ -752,7 +752,7 @@ G.icon_state = "[theme][color]" G.icon_dead = "[theme][color]" - user << "[G.magic_fluff_string]." + to_chat(user, "[G.magic_fluff_string].") if("tech") color = pick("Rose", "Peony", "Lily", "Daisy", "Zinnia", "Ivy", "Iris", "Petunia", "Violet", "Lilac", "Orchid") //technically not colors, just flowers that can be specific colors picked_name = pick("Gallium", "Indium", "Thallium", "Bismuth", "Aluminium", "Mercury", "Iron", "Silver", "Zinc", "Titanium", "Chromium", "Nickel", "Platinum", "Tellurium", "Palladium", "Rhodium", "Cobalt", "Osmium", "Tungsten", "Iridium") @@ -763,12 +763,12 @@ G.icon_state = "[theme][color]" G.icon_dead = "[theme][color]" - user << "[G.tech_fluff_string]." + to_chat(user, "[G.tech_fluff_string].") G.speak_emote = list("states") if("bio") G.icon = 'icons/mob/mob.dmi' picked_name = pick("brood", "hive", "nest") - user << "[G.bio_fluff_string]." + to_chat(user, "[G.bio_fluff_string].") G.name = "[picked_name] swarm" G.color = picked_color G.real_name = "[picked_name] swarm" diff --git a/code/game/gamemodes/miniantags/morph/morph.dm b/code/game/gamemodes/miniantags/morph/morph.dm index 9786aa1432a..f55370f2680 100644 --- a/code/game/gamemodes/miniantags/morph/morph.dm +++ b/code/game/gamemodes/miniantags/morph/morph.dm @@ -52,7 +52,7 @@ else ..() if(get_dist(user,src)<=3) - user << "It doesn't look quite right..." + to_chat(user, "It doesn't look quite right...") else ..() return @@ -81,7 +81,7 @@ if(istype(A) && allowed(A)) assume(A) else - src << "Your chameleon skin is still repairing itself!" + to_chat(src, "Your chameleon skin is still repairing itself!") ..() /mob/living/simple_animal/hostile/morph/proc/assume(atom/movable/target) diff --git a/code/game/gamemodes/miniantags/morph/morph_event.dm b/code/game/gamemodes/miniantags/morph/morph_event.dm index c0af9c38040..2e11c65078c 100644 --- a/code/game/gamemodes/miniantags/morph/morph_event.dm +++ b/code/game/gamemodes/miniantags/morph/morph_event.dm @@ -9,7 +9,7 @@ return kill() var/mob/C = pick(candidates) key_of_morph = C.key - + if(!key_of_morph) return kill() @@ -22,7 +22,7 @@ player_mind.assigned_role = "Morph" player_mind.special_role = "Morph" ticker.mode.traitors |= player_mind - S << S.playstyle_string + to_chat(S, S.playstyle_string) S << 'sound/magic/Mutate.ogg' message_admins("[key_of_morph] has been made into morph by an event.") log_game("[key_of_morph] was spawned as a morph by an event.") diff --git a/code/game/gamemodes/miniantags/revenant/revenant.dm b/code/game/gamemodes/miniantags/revenant/revenant.dm index 2fa99dd58a6..0e048b85df0 100644 --- a/code/game/gamemodes/miniantags/revenant/revenant.dm +++ b/code/game/gamemodes/miniantags/revenant/revenant.dm @@ -62,11 +62,11 @@ revealed = 0 incorporeal_move = 3 invisibility = INVISIBILITY_REVENANT - src << "You are once more concealed." + to_chat(src, "You are once more concealed.") if(unstun_time && world.time >= unstun_time) unstun_time = 0 notransform = 0 - src << "You can move again!" + to_chat(src, "You can move again!") update_spooky_icon() /mob/living/simple_animal/revenant/ex_act(severity) @@ -86,7 +86,7 @@ return essence = max(0, essence-amount) if(essence == 0) - src << "You feel your essence fraying!" + to_chat(src, "You feel your essence fraying!") @@ -97,9 +97,9 @@ var/rendered = "[src] says, \"[message]\"" for(var/mob/M in mob_list) if(istype(M, /mob/living/simple_animal/revenant)) - M << rendered + to_chat(M, rendered) if(isobserver(M)) - M << "(F) [rendered]" + to_chat(M, "(F) [rendered]") return /mob/living/simple_animal/revenant/Stat() @@ -120,22 +120,23 @@ if(src.mind) src.mind.wipe_memory() src << 'sound/effects/ghost.ogg' - src << "
" - src << "You are a revenant." - src << "Your formerly mundane spirit has been infused with alien energies and empowered into a revenant." - src << "You are not dead, not alive, but somewhere in between. You are capable of limited interaction with both worlds." - src << "You are invincible and invisible to everyone but other ghosts. Most abilities will reveal you, rendering you vulnerable." - src << "To function, you are to drain the life essence from humans. This essence is a resource, as well as your health, and will power all of your abilities." - src << "You do not remember anything of your past lives, nor will you remember anything about this one after your death." - src << "Be sure to read the wiki page at http://nanotrasen.se/wiki/index.php/Revenant to learn more." + to_chat(src, "
") + to_chat(src, "You are a revenant.") + to_chat(src, "Your formerly mundane spirit has been infused with alien energies and empowered into a revenant.") + to_chat(src, "You are not dead, not alive, but somewhere in between. You are capable of limited interaction with both worlds.") + to_chat(src, "You are invincible and invisible to everyone but other ghosts. Most abilities will reveal you, rendering you vulnerable.") + to_chat(src, "To function, you are to drain the life essence from humans. This essence is a resource, as well as your health, and will power all of your abilities.") + to_chat(src, "You do not remember anything of your past lives, nor will you remember anything about this one after your death.") + to_chat(src, "Be sure to read the wiki page at http://nanotrasen.se/wiki/index.php/Revenant to learn more.") + var/datum/objective/revenant/objective = new objective.owner = src.mind src.mind.objectives += objective - src << "Objective #1: [objective.explanation_text]" + to_chat(src, "Objective #1: [objective.explanation_text]") var/datum/objective/revenantFluff/objective2 = new objective2.owner = src.mind src.mind.objectives += objective2 - src << "Objective #2: [objective2.explanation_text]" + to_chat(src, "Objective #2: [objective2.explanation_text]") ticker.mode.traitors |= src.mind //Necessary for announcing if(!src.giveSpells()) message_admins("Revenant was created but has no mind. Trying again in five seconds.") @@ -168,7 +169,7 @@ ghost_darkness_images -= ghostimage updateallghostimages() - src << "NO! No... it's too late, you can feel your essence breaking apart..." + to_chat(src, "NO! No... it's too late, you can feel your essence breaking apart...") notransform = 1 revealed = 1 invisibility = 0 @@ -204,13 +205,13 @@ return var/turf/T = get_turf(src) if(istype(T, /turf/simulated/wall)) - src << "You cannot use abilities from inside of a wall." + to_chat(src, "You cannot use abilities from inside of a wall.") return 0 if(src.inhibited) - src << "Your powers have been suppressed by nulling energy!" + to_chat(src, "Your powers have been suppressed by nulling energy!") return 0 if(!src.change_essence_amount(essence_cost, 1)) - src << "You lack the essence to use that ability." + to_chat(src, "You lack the essence to use that ability.") return 0 return 1 @@ -224,9 +225,9 @@ essence_accumulated = max(0, essence_accumulated+essence_amt) if(!silent) if(essence_amt > 0) - src << "Gained [essence_amt]E from [source]." + to_chat(src, "Gained [essence_amt]E from [source].") else - src << "Lost [essence_amt]E from [source]." + to_chat(src, "Lost [essence_amt]E from [source].") return 1 /mob/living/simple_animal/revenant/proc/reveal(time) @@ -238,10 +239,10 @@ invisibility = 0 incorporeal_move = 0 if(!unreveal_time) - src << "You have been revealed!" + to_chat(src, "You have been revealed!") unreveal_time = world.time + time else - src << "You have been revealed!" + to_chat(src, "You have been revealed!") unreveal_time = unreveal_time + time update_spooky_icon() @@ -252,10 +253,10 @@ return notransform = 1 if(!unstun_time) - src << "You cannot move!" + to_chat(src, "You cannot move!") unstun_time = world.time + time else - src << "You cannot move!" + to_chat(src, "You cannot move!") unstun_time = unstun_time + time update_spooky_icon() @@ -350,9 +351,9 @@ /obj/item/weapon/ectoplasm/revenant/examine(mob/user) ..(user) if(inert) - user << "It seems inert." + to_chat(user, "It seems inert.") else if(reforming) - user << "It is shifting and distorted. It would be wise to destroy this." + to_chat(user, "It is shifting and distorted. It would be wise to destroy this.") /obj/item/weapon/ectoplasm/revenant/proc/reform() if(inert || !src) diff --git a/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm b/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm index e061bcc4d77..d836511fc42 100644 --- a/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm +++ b/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm @@ -29,47 +29,47 @@ if(!castcheck(0)) return if(draining) - src << "You are already siphoning the essence of a soul!" + to_chat(src, "You are already siphoning the essence of a soul!") return if(target in drained_mobs) - src << "[target]'s soul is dead and empty." + to_chat(src, "[target]'s soul is dead and empty.") return if(!target.stat) - src << "This being's soul is too strong to harvest." + to_chat(src, "This being's soul is too strong to harvest.") if(prob(10)) - target << "You feel as if you are being watched." + to_chat(target, "You feel as if you are being watched.") return draining = 1 essence_drained = rand(15, 20) - src << "You search for the soul of [target]." + to_chat(src, "You search for the soul of [target].") if(do_after(src, 10, 0, target = target)) //did they get deleted in that second? if(target.ckey) - src << "Their soul burns with intelligence." + to_chat(src, "Their soul burns with intelligence.") essence_drained += rand(20, 30) if(target.stat != DEAD) - src << "Their soul blazes with life!" + to_chat(src, "Their soul blazes with life!") essence_drained += rand(40, 50) else - src << "Their soul is weak and faltering." + to_chat(src, "Their soul is weak and faltering.") if(do_after(src, 20, 0, target = target)) //did they get deleted NOW? switch(essence_drained) if(1 to 30) - src << "[target] will not yield much essence. Still, every bit counts." + to_chat(src, "[target] will not yield much essence. Still, every bit counts.") if(30 to 70) - src << "[target] will yield an average amount of essence." + to_chat(src, "[target] will yield an average amount of essence.") if(70 to 90) - src << "Such a feast! [target] will yield much essence to you." + to_chat(src, "Such a feast! [target] will yield much essence to you.") if(90 to INFINITY) - src << "Ah, the perfect soul. [target] will yield massive amounts of essence to you." + to_chat(src, "Ah, the perfect soul. [target] will yield massive amounts of essence to you.") if(do_after(src, 20, 0, target = target)) //how about now if(!target.stat) - src << "They are now powerful enough to fight off your draining." - target << "You feel something tugging across your body before subsiding." + to_chat(src, "They are now powerful enough to fight off your draining.") + to_chat(target, "You feel something tugging across your body before subsiding.") draining = 0 return //hey, wait a minute... - src << "You begin siphoning essence from [target]'s soul." + to_chat(src, "You begin siphoning essence from [target]'s soul.") if(target.stat != DEAD) - target << "You feel a horribly unpleasant draining sensation as your grip on life weakens..." + to_chat(target, "You feel a horribly unpleasant draining sensation as your grip on life weakens...") icon_state = "revenant_draining" reveal(27) stun(27) @@ -80,14 +80,14 @@ if(essence_drained > 90) essence_regen_cap += 25 perfectsouls += 1 - src << "The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap]." - src << "[target]'s soul has been considerably weakened and will yield no more essence for the time being." + to_chat(src, "The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap].") + to_chat(src, "[target]'s soul has been considerably weakened and will yield no more essence for the time being.") target.visible_message("[target] slumps onto the ground.", \ "Violets lights, dancing in your vision, getting clo--") drained_mobs.Add(target) target.death(0) else - src << "[target ? "[target] has":"They have"] been drawn out of your grasp. The link has been broken." + to_chat(src, "[target ? "[target] has":"They have"] been drawn out of your grasp. The link has been broken.") draining = 0 essence_drained = 0 if(target) //Wait, target is WHERE NOW? @@ -95,7 +95,7 @@ "Violets lights, dancing in your vision, receding--") return else - src << "You are not close enough to siphon [target ? "[target]'s":"their"] soul. The link has been broken." + to_chat(src, "You are not close enough to siphon [target ? "[target]'s":"their"] soul. The link has been broken.") draining = 0 essence_drained = 0 return @@ -132,8 +132,8 @@ charge_counter = charge_max return log_say("RevenantTransmit: [key_name(user)]->[key_name(M)] : [msg]") - usr << "You transmit to [M]: [msg]" - M << "An alien voice resonates from all around... [msg]" + to_chat(usr, "You transmit to [M]: [msg]") + to_chat(M, "An alien voice resonates from all around... [msg]") /obj/effect/proc_holder/spell/aoe_turf/revenant @@ -172,7 +172,7 @@ charge_counter = charge_max return 0 name = "[initial(name)] ([cast_amount]E)" - user << "You have unlocked [initial(name)]!" + to_chat(user, "You have unlocked [initial(name)]!") panel = "Revenant Abilities" locked = 0 charge_counter = charge_max @@ -248,7 +248,7 @@ T.flags -= NOJAUNT new/obj/effect/overlay/temp/revenant(T) for(var/mob/living/carbon/human/human in T.contents) - human << "You suddenly feel [pick("sick and tired", "tired and confused", "nauseated", "dizzy")]." + to_chat(human, "You suddenly feel [pick("sick and tired", "tired and confused", "nauseated", "dizzy")].") human.adjustStaminaLoss(stamdamage) human.adjustToxLoss(toxdamage) human.confused += confusion @@ -298,7 +298,7 @@ bot.open = 1 bot.emag_act(null) for(var/mob/living/carbon/human/human in T.contents) - human << "You feel [pick("your sense of direction flicker out", "a stabbing pain in your head", "your mind fill with static")]." + to_chat(human, "You feel [pick("your sense of direction flicker out", "a stabbing pain in your head", "your mind fill with static")].") new/obj/effect/overlay/temp/revenant(human.loc) human.emp_act(1) for(var/obj/thing in T.contents) diff --git a/code/game/gamemodes/miniantags/slaughter/bloodcrawl.dm b/code/game/gamemodes/miniantags/slaughter/bloodcrawl.dm index a3a37a7d625..bab7c597a69 100644 --- a/code/game/gamemodes/miniantags/slaughter/bloodcrawl.dm +++ b/code/game/gamemodes/miniantags/slaughter/bloodcrawl.dm @@ -7,7 +7,7 @@ if(iscarbon(src)) var/mob/living/carbon/C = src if(C.l_hand || C.r_hand) - C << "You may not hold items while blood crawling!" + to_chat(C, "You may not hold items while blood crawling!") return 0 var/obj/item/weapon/bloodcrawl/B1 = new(C) var/obj/item/weapon/bloodcrawl/B2 = new(C) @@ -54,7 +54,7 @@ holder = holder if(kidnapped) - src << "You begin to feast on [kidnapped]. You can not move while you are doing this." + to_chat(src, "You begin to feast on [kidnapped]. You can not move while you are doing this.") visible_message("Loud eating sounds come from the blood...") sleep(6) if(animation) @@ -63,7 +63,7 @@ playsound(get_turf(src),'sound/misc/Demon_consume.ogg', 100, 1) sleep(30) if(kidnapped) - src << "You devour [kidnapped]. Your health is fully restored." + to_chat(src, "You devour [kidnapped]. Your health is fully restored.") adjustBruteLoss(-1000) adjustFireLoss(-1000) adjustOxyLoss(-1000) @@ -73,7 +73,7 @@ var/mob/living/simple_animal/slaughter/demon = src demon.devoured++ - kidnapped << "You feel teeth sink into your flesh, and the--" + to_chat(kidnapped, "You feel teeth sink into your flesh, and the--") kidnapped.adjustBruteLoss(1000) kidnapped.forceMove(src) demon.consumed_mobs.Add(kidnapped) @@ -81,7 +81,7 @@ kidnapped.ghostize() qdel(kidnapped) else - src << "You happily devour... nothing? Your meal vanished at some point!" + to_chat(src, "You happily devour... nothing? Your meal vanished at some point!") else sleep(6) if (animation) @@ -98,7 +98,7 @@ /mob/living/proc/phasein(var/obj/effect/decal/cleanable/B) if(notransform) - src << "Finish eating first!" + to_chat(src, "Finish eating first!") return 0 B.visible_message("[B] starts to bubble...") if(!do_after(src, 20, target = B)) diff --git a/code/game/gamemodes/miniantags/slaughter/slaughter.dm b/code/game/gamemodes/miniantags/slaughter/slaughter.dm index 3d4a8b9061e..6f97740f8d5 100644 --- a/code/game/gamemodes/miniantags/slaughter/slaughter.dm +++ b/code/game/gamemodes/miniantags/slaughter/slaughter.dm @@ -55,8 +55,8 @@ if(istype(loc, /obj/effect/dummy/slaughter)) bloodspell.phased = 1 if(mind) - src << src.playstyle_string - src << "You are not currently in the same plane of existence as the station. Ctrl+Click a blood pool to manifest." + to_chat(src, src.playstyle_string) + to_chat(src, "You are not currently in the same plane of existence as the station. Ctrl+Click a blood pool to manifest.") src << 'sound/misc/demon_dies.ogg' mind.current.verbs += /mob/living/simple_animal/slaughter/proc/slaughterWhisper if(!(vialspawned)) @@ -68,8 +68,8 @@ //Paradise Port:I added the objective for one spawned like this mind.objectives += objective mind.objectives += fluffObjective - src << "Objective #[1]: [objective.explanation_text]" - src << "Objective #[2]: [fluffObjective.explanation_text]" + to_chat(src, "Objective #[1]: [objective.explanation_text]") + to_chat(src, "Objective #[2]: [fluffObjective.explanation_text]") /mob/living/simple_animal/slaughter/Life() @@ -125,8 +125,8 @@ if(!(msg)) return log_say("Slaughter Demon Transmit: [key_name(usr)]->[key_name(M)]: [msg]") - usr << "You whisper to [M]: [msg]" - M << "Suddenly a strange, demonic voice resonates in your head... [msg]" + to_chat(usr, "You whisper to [M]: [msg]") + to_chat(M, "Suddenly a strange, demonic voice resonates in your head... [msg]") for(var/mob/dead/observer/G in player_list) G.show_message("Demonic message from [usr] ([ghost_follow_link(usr, ghost=G)]) to [M] ([ghost_follow_link(M, ghost=G)]): [msg]") @@ -161,10 +161,10 @@ "You feel a strange power seep into your body... you have absorbed the demon's blood-travelling powers!") user.bloodcrawl = BLOODCRAWL else if(user.bloodcrawl == BLOODCRAWL) - user << "You feel diffr- CONSUME THEM! " + to_chat(user, "You feel diffr- CONSUME THEM! ") user.bloodcrawl = BLOODCRAWL_EAT else - user <<"...and you don't feel any different." + to_chat(user, "...and you don't feel any different.") user.drop_item() insert(user) //Consuming the heart literally replaces your heart with a demon heart. H A R D C O R E diff --git a/code/game/gamemodes/mutiny/emergency_authentication_device.dm b/code/game/gamemodes/mutiny/emergency_authentication_device.dm index 2a48ac8c3b7..168f0049560 100644 --- a/code/game/gamemodes/mutiny/emergency_authentication_device.dm +++ b/code/game/gamemodes/mutiny/emergency_authentication_device.dm @@ -45,7 +45,7 @@ /obj/machinery/emergency_authentication_device/attack_hand(mob/user) if(activated) - user << "\blue \The [src] is already active!" + to_chat(user, "\blue \The [src] is already active!") return if(!mode.current_directive.directives_complete()) @@ -55,7 +55,7 @@ check_key_existence() if(captains_key && secondary_key) activated = 1 - user << "\blue You activate \the [src]!" + to_chat(user, "\blue You activate \the [src]!") state("Command acknowledged. Initiating quantum entanglement relay to Nanotrasen High Command.") launch_shuttle() return @@ -77,7 +77,7 @@ /obj/machinery/emergency_authentication_device/attackby(obj/item/weapon/O, mob/user, params) if(activated) - user << "\blue \The [src] is already active!" + to_chat(user, "\blue \The [src] is already active!") return if(!mode.current_directive.directives_complete()) @@ -107,5 +107,6 @@ ..() /obj/machinery/emergency_authentication_device/examine(mob/user) - user << {"This is a specialized communications device that is able to instantly send a message to Nanotrasen High Command via quantum entanglement with a sister device at CentComm.
- The EAD's status is [get_status()]."} + to_chat(user, {"This is a specialized communications device that is able to instantly send a message to Nanotrasen High Command via quantum entanglement + with a sister device at CentComm.
+ The EAD's status is [get_status()]."}) diff --git a/code/game/gamemodes/mutiny/key_pinpointer.dm b/code/game/gamemodes/mutiny/key_pinpointer.dm index 4d4596ab229..03f157be2ba 100644 --- a/code/game/gamemodes/mutiny/key_pinpointer.dm +++ b/code/game/gamemodes/mutiny/key_pinpointer.dm @@ -14,22 +14,22 @@ active = 1 target = mutiny.captains_key point_at(target) - usr << "\blue You calibrate \the [src] to locate the Captain's Authentication Key." + to_chat(usr, "\blue You calibrate \the [src] to locate the Captain's Authentication Key.") if (1) mode = 2 target = mutiny.secondary_key - usr << "\blue You calibrate \the [src] to locate the Emergency Secondary Authentication Key." + to_chat(usr, "\blue You calibrate \the [src] to locate the Emergency Secondary Authentication Key.") else mode = 0 active = 0 icon_state = "pinoff" - usr << "\blue You switch \the [src] off." + to_chat(usr, "\blue You switch \the [src] off.") /obj/item/weapon/pinpointer/advpinpointer/auth_key/examine(mob/user) switch(mode) if (1) - user << "Is is calibrated for the Captain's Authentication Key." + to_chat(user, "Is is calibrated for the Captain's Authentication Key.") if (2) - user << "It is calibrated for the Emergency Secondary Authentication Key." + to_chat(user, "It is calibrated for the Emergency Secondary Authentication Key.") else - user << "It is switched off." + to_chat(user, "It is switched off.") diff --git a/code/game/gamemodes/mutiny/mutiny.dm b/code/game/gamemodes/mutiny/mutiny.dm index e3edc521f33..e08a336997a 100644 --- a/code/game/gamemodes/mutiny/mutiny.dm +++ b/code/game/gamemodes/mutiny/mutiny.dm @@ -91,7 +91,7 @@ datum/game_mode/mutiny var/list/candidates[0] for(var/T in subtypesof(/datum/directive)) var/datum/directive/D = new T(src) -// world << D.name +// to_chat(world, D.name) if (D.meets_prerequisites()) candidates+=D return candidates @@ -126,7 +126,7 @@ datum/game_mode/mutiny proc/equip_head(datum/mind/head, faction, proc/recruitment_verb) var/mob/living/carbon/human/H = head.current - H << "You are the Head [capitalize(faction)]!" + to_chat(H, "You are the Head [capitalize(faction)]!") head.special_role = "head_[faction]" var/slots = get_equipment_slots() @@ -151,8 +151,8 @@ datum/game_mode/mutiny proc/add_faction(datum/mind/M, faction, list/faction_list) if(!can_be_recruited(M, faction)) - M.current << "\red Recruitment canceled; your role has already changed." - head_mutineer.current << "\red Could not recruit [M]. Their role has changed." + to_chat(M.current, "\red Recruitment canceled; your role has already changed.") + to_chat(head_mutineer.current, "\red Could not recruit [M]. Their role has changed.") return if(M in loyalists) @@ -165,11 +165,11 @@ datum/game_mode/mutiny faction_list+=M if(faction == "mutineer") - M.current << fluff.mutineer_tag("You have joined the mutineers!") - head_mutineer.current << fluff.mutineer_tag("[M] has joined the mutineers!") + to_chat(M.current, fluff.mutineer_tag("You have joined the mutineers!")) + to_chat(head_mutineer.current, fluff.mutineer_tag("[M] has joined the mutineers!")) else - M.current << fluff.loyalist_tag("You have joined the loyalists!") - head_loyalist.current << fluff.loyalist_tag("[M] has joined the loyalists!") + to_chat(M.current, fluff.loyalist_tag("You have joined the loyalists!")) + to_chat(head_loyalist.current, fluff.loyalist_tag("[M] has joined the loyalists!")) update_icon(M) @@ -211,23 +211,23 @@ datum/game_mode/mutiny return M.special_role == "loyalist" proc/round_outcome() - world << "

Breaking News



" + to_chat(world, "

Breaking News



") if (was_bloodbath()) - world << fluff.no_victory() + to_chat(world, fluff.no_victory()) return var/directives_completed = current_directive.directives_complete() var/ead_activated = ead.activated if (directives_completed && ead_activated) - world << fluff.loyalist_major_victory() + to_chat(world, fluff.loyalist_major_victory()) else if (directives_completed && !ead_activated) - world << fluff.loyalist_minor_victory() + to_chat(world, fluff.loyalist_minor_victory()) else if (!directives_completed && ead_activated) - world << fluff.mutineer_minor_victory() + to_chat(world, fluff.mutineer_minor_victory()) else if (!directives_completed && !ead_activated) - world << fluff.mutineer_major_victory() + to_chat(world, fluff.mutineer_major_victory()) - world << sound('sound/machines/twobeep.ogg') + to_chat(world, sound('sound/machines/twobeep.ogg')) proc/update_all_icons() spawn(0) @@ -266,17 +266,17 @@ datum/game_mode/mutiny /datum/game_mode/mutiny/pre_setup() var/list/loyalist_candidates = get_head_loyalist_candidates() if(!loyalist_candidates || loyalist_candidates.len == 0) - world << "\red Mutiny mode aborted: no valid candidates for head loyalist." + to_chat(world, "\red Mutiny mode aborted: no valid candidates for head loyalist.") return 0 var/list/mutineer_candidates = get_head_mutineer_candidates() if(!mutineer_candidates || mutineer_candidates.len == 0) - world << "\red Mutiny mode aborted: no valid candidates for head mutineer." + to_chat(world, "\red Mutiny mode aborted: no valid candidates for head mutineer.") return 0 var/list/directive_candidates = get_directive_candidates() if(!directive_candidates || directive_candidates.len == 0) - world << "\red Mutiny mode aborted: no valid candidates for Directive X." + to_chat(world, "\red Mutiny mode aborted: no valid candidates for Directive X.") return 0 head_loyalist = pick(loyalist_candidates) @@ -316,11 +316,11 @@ datum/game_mode/mutiny candidates += P if(!candidates.len) - src << "\red You aren't close enough to anybody that can be recruited." + to_chat(src, "\red You aren't close enough to anybody that can be recruited.") return if(world.time < mode.recruit_loyalist_cooldown) - src << "\red Wait [MUTINY_RECRUITMENT_COOLDOWN] seconds before recruiting again." + to_chat(src, "\red Wait [MUTINY_RECRUITMENT_COOLDOWN] seconds before recruiting again.") return mode.recruit_loyalist_cooldown = world.time + (MUTINY_RECRUITMENT_COOLDOWN SECONDS) @@ -328,7 +328,7 @@ datum/game_mode/mutiny var/mob/living/carbon/human/M = input("Select a person to recruit", "Loyalist recruitment", null) as mob in candidates if (M) - src << "Attempting to recruit [M]..." + to_chat(src, "Attempting to recruit [M]...") log_admin("[key_name(src)] attempted to recruit [M] as a loyalist.") message_admins("\red [key_name_admin(src)] attempted to recruit [M] as a loyalist.") @@ -336,8 +336,8 @@ datum/game_mode/mutiny if(choice == "Yes") mode.add_loyalist(M.mind) else if(choice == "No") - M << "\red You declined to join the loyalists." - mode.head_loyalist.current << "\red [M] declined to support the loyalists." + to_chat(M, "\red You declined to join the loyalists.") + to_chat(mode.head_loyalist.current, "\red [M] declined to support the loyalists.") /mob/living/carbon/human/proc/recruit_mutineer() set name = "Recruit Mutineer" @@ -353,11 +353,11 @@ datum/game_mode/mutiny candidates += P if(!candidates.len) - src << "\red You aren't close enough to anybody that can be recruited." + to_chat(src, "\red You aren't close enough to anybody that can be recruited.") return if(world.time < mode.recruit_mutineer_cooldown) - src << "\red Wait [MUTINY_RECRUITMENT_COOLDOWN] seconds before recruiting again." + to_chat(src, "\red Wait [MUTINY_RECRUITMENT_COOLDOWN] seconds before recruiting again.") return mode.recruit_mutineer_cooldown = world.time + (MUTINY_RECRUITMENT_COOLDOWN SECONDS) @@ -365,7 +365,7 @@ datum/game_mode/mutiny var/mob/living/carbon/human/M = input("Select a person to recruit", "Mutineer recruitment", null) as mob in candidates if (M) - src << "Attempting to recruit [M]..." + to_chat(src, "Attempting to recruit [M]...") log_admin("[key_name(src)] attempted to recruit [M] as a mutineer.") message_admins("\red [key_name_admin(src)] attempted to recruit [M] as a mutineer.") @@ -373,8 +373,8 @@ datum/game_mode/mutiny if(choice == "Yes") mode.add_mutineer(M.mind) else if(choice == "No") - M << "\red You declined to join the mutineers." - mode.head_mutineer.current << "\red [M] declined to support the mutineers." + to_chat(M, "\red You declined to join the mutineers.") + to_chat(mode.head_mutineer.current, "\red [M] declined to support the mutineers.") /proc/get_mutiny_mode() if(!ticker || !istype(ticker.mode, /datum/game_mode/mutiny)) diff --git a/code/game/gamemodes/mutiny/mutiny_fluff.dm b/code/game/gamemodes/mutiny/mutiny_fluff.dm index f25e9978e33..b67635f0724 100644 --- a/code/game/gamemodes/mutiny/mutiny_fluff.dm +++ b/code/game/gamemodes/mutiny/mutiny_fluff.dm @@ -72,8 +72,8 @@ They don't care about us they only care about WEALTH and POWER... Share this mes Be safe, friend.\" (Unable to Reply)

"} proc/announce() - world << "The current game mode is - Mutiny!" - world << {" + to_chat(world, "The current game mode is - Mutiny!") + to_chat(world, {"

The crew will be divided by their sense of ethics when a morally turbulent emergency directive arrives with an incomplete command validation code.

The [loyalist_tag("Head Loyalist")] is the Captain, who carries the [loyalist_tag("Captain's Authentication Key")] at all times.
The [mutineer_tag("Head Mutineer")] is a random Head of Staff who carries the [mutineer_tag("Emergency Secondary Authentication Key")].

@@ -82,8 +82,7 @@ Both keys are required to activate the Emergency Authentication Device (EAD)<

Loyalists - Follow the Head Loyalist in carrying out [loyalist_tag("Nanotrasen's directives")] then activate the EAD.
Mutineers - Prevent the completion of the [mutineer_tag("improperly validated directives")] and the activation of the EAD. -

- "} +

"}) proc/loyalist_tag(text) return "[text]" diff --git a/code/game/gamemodes/nations/nations.dm b/code/game/gamemodes/nations/nations.dm index 85e38cb8ed9..8cad280dff5 100644 --- a/code/game/gamemodes/nations/nations.dm +++ b/code/game/gamemodes/nations/nations.dm @@ -18,7 +18,7 @@ datum/game_mode/nations // remove_access() for(var/mob/M in player_list) if(!istype(M,/mob/new_player)) - M << sound('sound/effects/purge_siren.ogg') + to_chat(M, sound('sound/effects/purge_siren.ogg')) return ..() @@ -42,9 +42,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in medical_positions) @@ -53,9 +53,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in science_positions) @@ -64,9 +64,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in security_positions) @@ -75,9 +75,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in cargonians) @@ -86,9 +86,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in servicion) @@ -97,9 +97,9 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in (support_positions + command_positions)) @@ -108,13 +108,13 @@ datum/game_mode/nations H.mind.nation.membership += H.mind.current if(H.mind.assigned_role == H.mind.nation.default_leader) H.mind.nation.current_leader = H.mind.current - H << "You have been chosen to lead the nation of [H.mind.nation.default_name]!" + to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!") continue - H << "You are now part of the great sovereign nation of [H.mind.nation.default_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!") continue if(H.mind.assigned_role in civilian_positions) - H << "You do not belong to any nation and are free to sell your services to the highest bidder." + to_chat(H, "You do not belong to any nation and are free to sell your services to the highest bidder.") continue else @@ -153,7 +153,7 @@ datum/game_mode/nations N.current_name = N.default_name if(!N.current_leader && N.membership.len) N.current_leader = pick(N.membership) - N.current_leader << "You have been chosen to lead the nation of [N.current_name]!" + to_chat(N.current_leader, "You have been chosen to lead the nation of [N.current_name]!") if(N.current_leader) var/mob/living/carbon/human/H = N.current_leader H.verbs += /mob/living/carbon/human/proc/set_nation_name @@ -177,53 +177,53 @@ datum/game_mode/nations H.mind.nation = all_nations["Atmosia"] mode.update_nations_icons_added(H,"atmosia") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in medical_positions) H.mind.nation = all_nations["Medistan"] mode.update_nations_icons_added(H,"hudmedistan") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in science_positions) H.mind.nation = all_nations["Scientopia"] mode.update_nations_icons_added(H,"hudscientopia") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in security_positions) H.mind.nation = all_nations["Brigston"] mode.update_nations_icons_added(H,"hudbrigston") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in mode.cargonians) H.mind.nation = all_nations["Cargonia"] mode.update_nations_icons_added(H,"hudcargonia") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in mode.servicion) H.mind.nation = all_nations["Servicion"] mode.update_nations_icons_added(H,"hudservice") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in (support_positions + command_positions)) H.mind.nation = all_nations["People's Republic of Commandzakstan"] mode.update_nations_icons_added(H,"hudcommand") H.mind.nation.membership += H.mind.current - H << "You are now part of the great sovereign nation of [H.mind.nation.current_name]!" + to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!") return 1 if(H.mind.assigned_role in civilian_positions) - H << "You do not belong to any nation and are free to sell your services to the highest bidder." + to_chat(H, "You do not belong to any nation and are free to sell your services to the highest bidder.") return 1 if(H.mind.assigned_role == "AI") diff --git a/code/game/gamemodes/nations/nationsprocs.dm b/code/game/gamemodes/nations/nationsprocs.dm index 66cd66cab3b..69b256458c2 100644 --- a/code/game/gamemodes/nations/nationsprocs.dm +++ b/code/game/gamemodes/nations/nationsprocs.dm @@ -16,7 +16,7 @@ if(input) H.mind.nation.current_name = input H.mind.nation.update_nation_id() - H << "You rename your nation to [input]." + to_chat(H, "You rename your nation to [input].") H.verbs -= /mob/living/carbon/human/proc/set_nation_name return 1 @@ -44,7 +44,7 @@ if(type == "Member") H.mind.nation.member_rank = input H.mind.nation.update_nation_id() - H << "You changed the [type] rank of your nation to [input]." + to_chat(H, "You changed the [type] rank of your nation to [input].") return 1 /mob/living/carbon/human/proc/choose_heir() @@ -64,13 +64,13 @@ if(heir) if(H.mind.nation.heir) var/mob/living/carbon/human/oldheir = H.mind.nation.heir - oldheir << "You are no longer the heir to your nation!" + to_chat(oldheir, "You are no longer the heir to your nation!") oldheir.verbs -= /mob/living/carbon/human/proc/takeover var/mob/living/carbon/human/newheir = heir H.mind.nation.heir = newheir newheir.verbs += /mob/living/carbon/human/proc/takeover - newheir << "You have been selected to be the heir to your nation's leadership!" - H << "You have selected [heir] to be your heir!" + to_chat(newheir, "You have been selected to be the heir to your nation's leadership!") + to_chat(H, "You have selected [heir] to be your heir!") H.mind.nation.update_nation_id() @@ -90,7 +90,7 @@ var/confirmation = input(H, "Are you sure you want to take over leadership?", "Become Leader", "") as null|anything in list("Yes", "No") if(confirmation == "Yes") var/mob/living/carbon/human/oldleader = H.mind.nation.current_leader - oldleader << "You have been replaced by [H.name] as the leader of [H.mind.nation.current_name]!" + to_chat(oldleader, "You have been replaced by [H.name] as the leader of [H.mind.nation.current_name]!") oldleader.verbs -= /mob/living/carbon/human/proc/set_nation_name oldleader.verbs -= /mob/living/carbon/human/proc/set_ranks oldleader.verbs -= /mob/living/carbon/human/proc/choose_heir @@ -100,7 +100,7 @@ H.verbs += /mob/living/carbon/human/proc/set_nation_name H.verbs += /mob/living/carbon/human/proc/set_ranks H.verbs += /mob/living/carbon/human/proc/choose_heir - H << "You have replaced [oldleader.name] as the leader of [H.mind.nation.current_name]!" + to_chat(H, "You have replaced [oldleader.name] as the leader of [H.mind.nation.current_name]!") H.mind.nation.update_nation_id() diff --git a/code/game/gamemodes/newobjective.dm b/code/game/gamemodes/newobjective.dm index 9b823509edd..aae6d31261a 100644 --- a/code/game/gamemodes/newobjective.dm +++ b/code/game/gamemodes/newobjective.dm @@ -176,7 +176,7 @@ if(!killobjectives.len) continue var/datum/objective/assassinate/objective = pickweight(killobjectives) - world << objective + to_chat(world, objective) for(1 to 10) if(objective.points + total_weight <= 100 || !killobjectives.len) break diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm index dff34374cb0..8ad66fe7879 100644 --- a/code/game/gamemodes/nuclear/nuclear.dm +++ b/code/game/gamemodes/nuclear/nuclear.dm @@ -23,9 +23,9 @@ proc/issyndicate(mob/living/M as mob) /datum/game_mode/nuclear/announce() - world << "The current game mode is - Nuclear Emergency!" - world << "A [syndicate_name()] Strike Force is approaching [station_name()]!" - world << "A nuclear explosive was being transported by Nanotrasen to a military base. The transport ship mysteriously lost contact with Space Traffic Control (STC). About that time a strange disk was discovered around [station_name()]. It was identified by Nanotrasen as a nuclear authentication disk and now Syndicate Operatives have arrived to retake the disk and detonate SS13! There are most likely Syndicate starships are in the vicinity, so take care not to lose the disk!\nSyndicate: Reclaim the disk and detonate the nuclear bomb anywhere on SS13.\nPersonnel: Hold the disk and escape with the disk on the shuttle!" + to_chat(world, "The current game mode is - Nuclear Emergency!") + to_chat(world, "A [syndicate_name()] Strike Force is approaching [station_name()]!") + to_chat(world, "A nuclear explosive was being transported by Nanotrasen to a military base. The transport ship mysteriously lost contact with Space Traffic Control (STC). About that time a strange disk was discovered around [station_name()]. It was identified by Nanotrasen as a nuclear authentication disk and now Syndicate Operatives have arrived to retake the disk and detonate SS13! There are most likely Syndicate starships are in the vicinity, so take care not to lose the disk!\nSyndicate: Reclaim the disk and detonate the nuclear bomb anywhere on SS13.\nPersonnel: Hold the disk and escape with the disk on the shuttle!") /datum/game_mode/nuclear/can_start()//This could be better, will likely have to recode it later if(!..()) @@ -171,9 +171,9 @@ proc/issyndicate(mob/living/M as mob) NukeNameAssign(nukelastname(synd_mind.current),syndicates) //allows time for the rest of the syndies to be chosen */ synd_mind.current.real_name = "[syndicate_name()] Team [leader_title]" - synd_mind.current << "You are the Syndicate leader for this mission. You are responsible for the distribution of telecrystals and your ID is the only one who can open the launch bay doors." - synd_mind.current << "If you feel you are not up to this task, give your ID to another operative." - synd_mind.current << "In your hand you will find a special item capable of triggering a greater challenge for your team. Examine it carefully and consult with your fellow operatives before activating it." + to_chat(synd_mind.current, "You are the Syndicate leader for this mission. You are responsible for the distribution of telecrystals and your ID is the only one who can open the launch bay doors.") + to_chat(synd_mind.current, "If you feel you are not up to this task, give your ID to another operative.") + to_chat(synd_mind.current, "In your hand you will find a special item capable of triggering a greater challenge for your team. Examine it carefully and consult with your fellow operatives before activating it.") var/obj/item/device/nuclear_challenge/challenge = new /obj/item/device/nuclear_challenge synd_mind.current.equip_to_slot_or_del(challenge, slot_r_hand) @@ -190,7 +190,7 @@ proc/issyndicate(mob/living/M as mob) if (nuke_code) synd_mind.store_memory("Syndicate Nuclear Bomb Code: [nuke_code]", 0, 0) - synd_mind.current << "The nuclear authorization code is: [nuke_code]" + to_chat(synd_mind.current, "The nuclear authorization code is: [nuke_code]") var/obj/item/weapon/paper/P = new P.info = "The nuclear authorization code is: [nuke_code]" P.name = "nuclear bomb code" @@ -219,10 +219,10 @@ proc/issyndicate(mob/living/M as mob) /datum/game_mode/proc/greet_syndicate(var/datum/mind/syndicate, var/you_are=1) if (you_are) - syndicate.current << "\blue You are a [syndicate_name()] agent!" + to_chat(syndicate.current, "\blue You are a [syndicate_name()] agent!") var/obj_count = 1 for(var/datum/objective/objective in syndicate.objectives) - syndicate.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(syndicate.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -315,48 +315,48 @@ proc/issyndicate(mob/living/M as mob) if (!disk_rescued && station_was_nuked && !syndies_didnt_escape) feedback_set_details("round_end_result","win - syndicate nuke") - world << "Syndicate Major Victory!" - world << "[syndicate_name()] operatives have destroyed [station_name()]!" + to_chat(world, "Syndicate Major Victory!") + to_chat(world, "[syndicate_name()] operatives have destroyed [station_name()]!") else if (!disk_rescued && station_was_nuked && syndies_didnt_escape) feedback_set_details("round_end_result","halfwin - syndicate nuke - did not evacuate in time") - world << "Total Annihilation" - world << "[syndicate_name()] operatives destroyed [station_name()] but did not leave the area in time and got caught in the explosion. Next time, don't lose the disk!" + to_chat(world, "Total Annihilation") + to_chat(world, "[syndicate_name()] operatives destroyed [station_name()] but did not leave the area in time and got caught in the explosion. Next time, don't lose the disk!") else if (!disk_rescued && !station_was_nuked && nuke_off_station && !syndies_didnt_escape) feedback_set_details("round_end_result","halfwin - blew wrong station") - world << "Crew Minor Victory" - world << "[syndicate_name()] operatives secured the authentication disk but blew up something that wasn't [station_name()]. Next time, don't lose the disk!" + to_chat(world, "Crew Minor Victory") + to_chat(world, "[syndicate_name()] operatives secured the authentication disk but blew up something that wasn't [station_name()]. Next time, don't lose the disk!") else if (!disk_rescued && !station_was_nuked && nuke_off_station && syndies_didnt_escape) feedback_set_details("round_end_result","halfwin - blew wrong station - did not evacuate in time") - world << "[syndicate_name()] operatives have earned Darwin Award!" - world << "[syndicate_name()] operatives blew up something that wasn't [station_name()] and got caught in the explosion. Next time, don't lose the disk!" + to_chat(world, "[syndicate_name()] operatives have earned Darwin Award!") + to_chat(world, "[syndicate_name()] operatives blew up something that wasn't [station_name()] and got caught in the explosion. Next time, don't lose the disk!") else if ( disk_rescued && is_operatives_are_dead()) feedback_set_details("round_end_result","loss - evacuation - disk secured - syndi team dead") - world << "Crew Major Victory!" - world << "The Research Staff has saved the disc and killed the [syndicate_name()] Operatives" + to_chat(world, "Crew Major Victory!") + to_chat(world, "The Research Staff has saved the disc and killed the [syndicate_name()] Operatives") else if ( disk_rescued ) feedback_set_details("round_end_result","loss - evacuation - disk secured") - world << "Crew Major Victory" - world << "The Research Staff has saved the disc and stopped the [syndicate_name()] Operatives!" + to_chat(world, "Crew Major Victory") + to_chat(world, "The Research Staff has saved the disc and stopped the [syndicate_name()] Operatives!") else if (!disk_rescued && is_operatives_are_dead()) feedback_set_details("round_end_result","loss - evacuation - disk not secured") - world << "Syndicate Minor Victory!" - world << "The Research Staff failed to secure the authentication disk but did manage to kill most of the [syndicate_name()] Operatives!" + to_chat(world, "Syndicate Minor Victory!") + to_chat(world, "The Research Staff failed to secure the authentication disk but did manage to kill most of the [syndicate_name()] Operatives!") else if (!disk_rescued && crew_evacuated) feedback_set_details("round_end_result","halfwin - detonation averted") - world << "Syndicate Minor Victory!" - world << "[syndicate_name()] operatives recovered the abandoned authentication disk but detonation of [station_name()] was averted. Next time, don't lose the disk!" + to_chat(world, "Syndicate Minor Victory!") + to_chat(world, "[syndicate_name()] operatives recovered the abandoned authentication disk but detonation of [station_name()] was averted. Next time, don't lose the disk!") else if (!disk_rescued && !crew_evacuated) feedback_set_details("round_end_result","halfwin - interrupted") - world << "Neutral Victory" - world << "Round was mysteriously interrupted!" + to_chat(world, "Neutral Victory") + to_chat(world, "Round was mysteriously interrupted!") ..() return @@ -394,7 +394,7 @@ proc/issyndicate(mob/living/M as mob) if(TC_uses==0 && station_was_nuked && !is_operatives_are_dead()) text += "" - world << text + to_chat(world, text) return 1 /proc/nukelastname(var/mob/M as mob) //--All praise goes to NEO|Phyte, all blame goes to DH, and it was Cindi-Kate's idea. Also praise Urist for copypasta ho. @@ -406,7 +406,7 @@ proc/issyndicate(mob/living/M as mob) else if (newname == "Unknown" || newname == "floor" || newname == "wall" || newname == "rwall" || newname == "_") - M << "That name is reserved." + to_chat(M, "That name is reserved.") return nukelastname(M) return newname diff --git a/code/game/gamemodes/nuclear/nuclear_challenge.dm b/code/game/gamemodes/nuclear/nuclear_challenge.dm index 621f159eced..c11b43f81ec 100644 --- a/code/game/gamemodes/nuclear/nuclear_challenge.dm +++ b/code/game/gamemodes/nuclear/nuclear_challenge.dm @@ -17,26 +17,26 @@ if(declaring_war) return if(player_list.len < MIN_CHALLENGE_PLAYERS) - user << "The enemy crew is too small to be worth declaring war on." + to_chat(user, "The enemy crew is too small to be worth declaring war on.") return if(user.z != ZLEVEL_CENTCOMM) - user << "You have to be at your base to use this." + to_chat(user, "You have to be at your base to use this.") return if(world.time > CHALLENGE_TIME_LIMIT) - user << "It's too late to declare hostilities. Your benefactors are already busy with other schemes. You'll have to make do with what you have on hand." + to_chat(user, "It's too late to declare hostilities. Your benefactors are already busy with other schemes. You'll have to make do with what you have on hand.") return declaring_war = 1 var/are_you_sure = alert(user, "Consult your team carefully before you declare war on [station_name()]]. Are you sure you want to alert the enemy crew?", "Declare war?", "Yes", "No") if(are_you_sure == "No") - user << "On second thought, the element of surprise isn't so bad after all." + to_chat(user, "On second thought, the element of surprise isn't so bad after all.") declaring_war = 0 return var/war_declaration = "[user.real_name] has declared his intent to utterly destroy [station_name()] with a nuclear device, and dares the crew to try and stop them." command_announcement.Announce(war_declaration, "Declaration of War", 'sound/effects/siren.ogg') - user << "You've attracted the attention of powerful forces within the syndicate. A bonus bundle of telecrystals has been granted to your team. Great things await you if you complete the mission." + to_chat(user, "You've attracted the attention of powerful forces within the syndicate. A bonus bundle of telecrystals has been granted to your team. Great things await you if you complete the mission.") for(var/obj/machinery/computer/shuttle/syndicate/S in machines) S.challenge = TRUE diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm index 88ca765ad15..85e6967f180 100644 --- a/code/game/gamemodes/nuclear/nuclearbomb.dm +++ b/code/game/gamemodes/nuclear/nuclearbomb.dm @@ -55,20 +55,20 @@ var/bomb_set if (panel_open == 0) panel_open = 1 overlays += image(icon, "npanel_open") - user << "You unscrew the control panel of [src]." + to_chat(user, "You unscrew the control panel of [src].") playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) else panel_open = 0 overlays -= image(icon, "npanel_open") - user << "You screw the control panel of [src] back on." + to_chat(user, "You screw the control panel of [src] back on.") playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) else if (panel_open == 0) - user << "[src] emits a buzzing noise, the panel staying locked in." + to_chat(user, "[src] emits a buzzing noise, the panel staying locked in.") if (panel_open == 1) panel_open = 0 overlays -= image(icon, "npanel_open") - user << "You screw the control panel of [src] back on." + to_chat(user, "You screw the control panel of [src] back on.") playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) flick("nuclearbombc", src) return @@ -91,7 +91,7 @@ var/bomb_set var/obj/item/weapon/weldingtool/WT = O if(!WT.isOn()) return if (WT.get_fuel() < 5) // uses up 5 fuel. - user << "\red You need more fuel to complete this task." + to_chat(user, "\red You need more fuel to complete this task.") return user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [O]...") @@ -118,7 +118,7 @@ var/bomb_set var/obj/item/weapon/weldingtool/WT = O if(!WT.isOn()) return if (WT.get_fuel() < 5) // uses up 5 fuel. - user << "\red You need more fuel to complete this task." + to_chat(user, "\red You need more fuel to complete this task.") return user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [O]...") @@ -217,10 +217,10 @@ var/bomb_set return if (deployable) - usr << "\red You close several panels to make [src] undeployable." + to_chat(usr, "\red You close several panels to make [src] undeployable.") deployable = 0 else - usr << "\red You adjust some panels to make [src] deployable." + to_chat(usr, "\red You adjust some panels to make [src] deployable.") deployable = 1 return @@ -279,7 +279,7 @@ var/bomb_set nanomanager.update_uis(src) return if (safety) - usr << "\red The safety is still on." + to_chat(usr, "\red The safety is still on.") nanomanager.update_uis(src) return timing = !(timing) @@ -320,7 +320,7 @@ var/bomb_set else visible_message("\red The anchoring bolts slide back into the depths of [src].") else - usr << "There is nothing to anchor to!" + to_chat(usr, "There is nothing to anchor to!") nanomanager.update_uis(src) @@ -371,11 +371,11 @@ var/bomb_set if(ticker.mode.name == "nuclear emergency") ticker.mode:nukes_left -- else if(off_station == 1) - world << "A nuclear device was set off, but the explosion was out of reach of the station!" + to_chat(world, "A nuclear device was set off, but the explosion was out of reach of the station!") else if(off_station == 2) - world << "A nuclear device was set off, but the device was not on the station!" + to_chat(world, "A nuclear device was set off, but the device was not on the station!") else - world << "The station was destoyed by the nuclear blast!" + to_chat(world, "The station was destoyed by the nuclear blast!") ticker.mode.station_was_nuked = (off_station<2) //offstation==1 is a draw. the station becomes irradiated and needs to be evacuated. //kinda shit but I couldn't get permission to do what I wanted to do. @@ -402,7 +402,7 @@ var/bomb_set /obj/item/weapon/disk/nuclear/process() var/turf/disk_loc = get_turf(src) if(disk_loc.z != ZLEVEL_STATION && disk_loc.z != ZLEVEL_CENTCOMM) - get(src, /mob) << "You can't help but feel that you just lost something back there..." + to_chat(get(src, /mob), "You can't help but feel that you just lost something back there...") qdel(src) /obj/item/weapon/disk/nuclear/Destroy() diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 2ad022adf55..320be6c9f98 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -21,11 +21,11 @@ if(!active) active = 1 workdisk() - usr << "You activate the pinpointer." + to_chat(usr, "You activate the pinpointer.") else active = 0 icon_state = "pinoff" - usr << "You deactivate the pinpointer." + to_chat(usr, "You deactivate the pinpointer.") /obj/item/weapon/pinpointer/proc/scandisk() if(!the_disk) @@ -68,7 +68,7 @@ ..(user) for(var/obj/machinery/nuclearbomb/bomb in machines) if(bomb.timing) - user << "Extreme danger. Arming signal detected. Time remaining: [bomb.timeleft]" + to_chat(user, "Extreme danger. Arming signal detected. Time remaining: [bomb.timeleft]") /obj/item/weapon/pinpointer/advpinpointer name = "advanced pinpointer" @@ -86,11 +86,11 @@ point_at(location) if(mode == 2) point_at(target) - usr << "You activate the pinpointer." + to_chat(usr, "You activate the pinpointer.") else active = 0 icon_state = "pinoff" - usr << "You deactivate the pinpointer." + to_chat(usr, "You deactivate the pinpointer.") /obj/item/weapon/pinpointer/advpinpointer/workdisk() if(mode == 0) @@ -127,7 +127,7 @@ location = locate(locationx,locationy,Z.z) - usr << "You set the pinpointer to locate [locationx],[locationy]" + to_chat(usr, "You set the pinpointer to locate [locationx],[locationy]") return attack_self() @@ -152,9 +152,9 @@ return target = locate(item_paths[targetitem]) if(!target) - usr << "Failed to locate [targetitem]!" + to_chat(usr, "Failed to locate [targetitem]!") return - usr << "You set the pinpointer to locate [targetitem]." + to_chat(usr, "You set the pinpointer to locate [targetitem].") if("DNA") var/DNAstring = input("Input DNA string to search for." , "Please Enter String." , "") if(!DNAstring) @@ -181,14 +181,14 @@ active = 1 if(!mode) workdisk() - user << "Authentication Disk Locator active." + to_chat(user, "Authentication Disk Locator active.") else worklocation() - user << "Shuttle Locator active." + to_chat(user, "Shuttle Locator active.") else active = 0 icon_state = "pinoff" - user << "You deactivate the pinpointer." + to_chat(user, "You deactivate the pinpointer.") /obj/item/weapon/pinpointer/nukeop/workdisk() if(!active) return @@ -259,16 +259,16 @@ /obj/item/weapon/pinpointer/operative/attack_self() if(!usr.mind || !(usr.mind in ticker.mode.syndicates)) - usr << "AUTHENTICATION FAILURE. ACCESS DENIED." + to_chat(usr, "AUTHENTICATION FAILURE. ACCESS DENIED.") return 0 if(!active) active = 1 workop() - usr << "You activate the pinpointer." + to_chat(usr, "You activate the pinpointer.") else active = 0 icon_state = "pinoff" - usr << "You deactivate the pinpointer." + to_chat(usr, "You deactivate the pinpointer.") /obj/item/weapon/pinpointer/operative/proc/scan_for_ops() if(active) @@ -292,6 +292,6 @@ ..() if(active) if(nearest_op) - user << "Nearest operative detected is [nearest_op.real_name]." + to_chat(user, "Nearest operative detected is [nearest_op.real_name].") else - user << "No operatives detected within scanning range." + to_chat(user, "No operatives detected within scanning range.") diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm index 8dd5bb0691d..bbf0e5c9c73 100644 --- a/code/game/gamemodes/revolution/revolution.dm +++ b/code/game/gamemodes/revolution/revolution.dm @@ -33,8 +33,8 @@ //Announces the game type// /////////////////////////// /datum/game_mode/revolution/announce() - world << "The current game mode is - Revolution!" - world << "Some crewmembers are attempting to start a revolution!
\nRevolutionaries - Kill the Captain, HoP, HoS, CE, RD and CMO. Convert other crewmembers (excluding the heads of staff, and security officers) to your cause by flashing them. Protect your leaders.
\nPersonnel - Protect the heads of staff. Kill the leaders of the revolution, and brainwash the other revolutionaries (by beating them in the head).
" + to_chat(world, "The current game mode is - Revolution!") + to_chat(world, "Some crewmembers are attempting to start a revolution!
\nRevolutionaries - Kill the Captain, HoP, HoS, CE, RD and CMO. Convert other crewmembers (excluding the heads of staff, and security officers) to your cause by flashing them. Protect your leaders.
\nPersonnel - Protect the heads of staff. Kill the leaders of the revolution, and brainwash the other revolutionaries (by beating them in the head).
") /////////////////////////////////////////////////////////////////////////////// @@ -126,7 +126,7 @@ rev_obj.target = head_mind rev_obj.explanation_text = "Assassinate [head_mind.name], the [head_mind.assigned_role]." rev_mind.objectives += rev_obj - rev_mind.current << "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role]." + to_chat(rev_mind.current, "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role].") for(var/datum/mind/rev_mind in mode.revolutionaries) for(var/datum/mind/head_mind in heads) @@ -135,7 +135,7 @@ rev_obj.target = head_mind rev_obj.explanation_text = "Assassinate [head_mind.name], the [head_mind.assigned_role]." rev_mind.objectives += rev_obj - rev_mind.current << "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role]." + to_chat(rev_mind.current, "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role].") /datum/game_mode/proc/forge_revolutionary_objectives(var/datum/mind/rev_mind) @@ -153,9 +153,9 @@ /datum/game_mode/proc/greet_revolutionary(var/datum/mind/rev_mind, var/you_are=1) var/obj_count = 1 if (you_are) - rev_mind.current << "\blue You are a member of the revolutionaries' leadership!" + to_chat(rev_mind.current, "\blue You are a member of the revolutionaries' leadership!") for(var/datum/objective/objective in rev_mind.objectives) - rev_mind.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(rev_mind.current, "Objective #[obj_count]: [objective.explanation_text]") rev_mind.special_role = "Head Revolutionary" obj_count++ @@ -168,7 +168,7 @@ if (mob.mind) if (mob.mind.assigned_role == "Clown") - mob << "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself." + to_chat(mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.") mob.mutations.Remove(CLUMSY) @@ -183,9 +183,9 @@ ) var/where = mob.equip_in_one_of_slots(T, slots) if (!where) - mob << "The Syndicate were unfortunately unable to get you a flash." + to_chat(mob, "The Syndicate were unfortunately unable to get you a flash.") else - mob << "The flash in your [where] will help you to persuade the crew to join your cause." + to_chat(mob, "The flash in your [where] will help you to persuade the crew to join your cause.") mob.update_icons() return 1 @@ -222,7 +222,7 @@ if((rev_mind in revolutionaries) || (rev_mind in head_revolutionaries)) return 0 revolutionaries += rev_mind - rev_mind.current << "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!" + to_chat(rev_mind.current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!") rev_mind.special_role = "Revolutionary" update_rev_icons_added(rev_mind) if(jobban_isbanned(rev_mind.current, ROLE_REV)) @@ -237,18 +237,18 @@ rev_mind.special_role = null if(beingborged) - rev_mind.current << "\red The frame's firmware detects and deletes your neural reprogramming! You remember nothing from the moment you were flashed until now." + to_chat(rev_mind.current, "\red The frame's firmware detects and deletes your neural reprogramming! You remember nothing from the moment you were flashed until now.") message_admins("[key_name_admin(rev_mind.current)] has been borged while being a member of the revolution.") else - rev_mind.current << "\red You have been brainwashed! You are no longer a revolutionary! Your memory is hazy from the time you were a rebel...the only thing you remember is the name of the one who brainwashed you..." + to_chat(rev_mind.current, "\red You have been brainwashed! You are no longer a revolutionary! Your memory is hazy from the time you were a rebel...the only thing you remember is the name of the one who brainwashed you...") update_rev_icons_removed(rev_mind) for(var/mob/living/M in view(rev_mind.current)) if(beingborged) - M << "The frame beeps contentedly, purging the hostile memory engram from the MMI before initalizing it." + to_chat(M, "The frame beeps contentedly, purging the hostile memory engram from the MMI before initalizing it.") else - M << "[rev_mind.current] looks like they just remembered their real allegiance!" + to_chat(M, "[rev_mind.current] looks like they just remembered their real allegiance!") ///////////////////////////////////// @@ -294,10 +294,10 @@ /datum/game_mode/revolution/declare_completion() if(finished == 1) feedback_set_details("round_end_result","win - heads killed") - world << "\red The heads of staff were killed or abandoned the station! The revolutionaries win!" + to_chat(world, "\red The heads of staff were killed or abandoned the station! The revolutionaries win!") else if(finished == 2) feedback_set_details("round_end_result","loss - rev heads killed") - world << "\red The heads of staff managed to stop the revolution!" + to_chat(world, "\red The heads of staff managed to stop the revolution!") ..() return 1 @@ -325,7 +325,7 @@ for(var/datum/objective/mutiny/objective in headrev.objectives) targets |= objective.target - world << text + to_chat(world, text) if(revolutionaries.len || istype(ticker.mode,/datum/game_mode/revolution)) var/text = "The revolutionaries were:" @@ -345,7 +345,7 @@ text += "body destroyed" text += ")" - world << text + to_chat(world, text) if( head_revolutionaries.len || revolutionaries.len || istype(ticker.mode,/datum/game_mode/revolution) ) @@ -374,7 +374,7 @@ if(target) text += "" - world << text + to_chat(world, text) /proc/is_convertable_to_rev(datum/mind/mind) return istype(mind) && \ diff --git a/code/game/gamemodes/revolution/rp_revolution.dm b/code/game/gamemodes/revolution/rp_revolution.dm index ef2ec130047..78d210159a8 100644 --- a/code/game/gamemodes/revolution/rp_revolution.dm +++ b/code/game/gamemodes/revolution/rp_revolution.dm @@ -75,9 +75,9 @@ /datum/game_mode/revolution/rp_revolution/greet_revolutionary(var/datum/mind/rev_mind, var/you_are=1) var/obj_count = 1 if (you_are) - rev_mind.current << "\blue You are a member of the revolutionaries' leadership!" + to_chat(rev_mind.current, "\blue You are a member of the revolutionaries' leadership!") for(var/datum/objective/objective in rev_mind.objectives) - rev_mind.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(rev_mind.current, "Objective #[obj_count]: [objective.explanation_text]") rev_mind.special_role = "Head Revolutionary" obj_count++ @@ -89,7 +89,7 @@ // Tell them about people they might want to contact. var/mob/living/carbon/human/M = get_nt_opposed() if(M && !(M.mind in head_revolutionaries) && !(M in already_considered)) - rev_mob << "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them." + to_chat(rev_mob, "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them.") rev_mob.mind.store_memory("Potential Collaborator: [M.real_name]") /////////////////////////////////////////////////// @@ -103,7 +103,7 @@ if((rev_mind in revolutionaries) || (rev_mind in head_revolutionaries)) return 0 revolutionaries += rev_mind - rev_mind.current << "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill, capture or convert the heads to win the revolution!" + to_chat(rev_mind.current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill, capture or convert the heads to win the revolution!") rev_mind.special_role = "Revolutionary" update_rev_icons_added(rev_mind) return 1 @@ -127,8 +127,8 @@ //Announces the game type// /////////////////////////// /datum/game_mode/revolution/rp_revolution/announce() - world << "The current game mode is - Revolution!" - world << "Some crewmembers are attempting to start a revolution!" + to_chat(world, "The current game mode is - Revolution!") + to_chat(world, "Some crewmembers are attempting to start a revolution!") ////////////////////////////////////////////////////////////////////// @@ -137,10 +137,10 @@ /datum/game_mode/revolution/rp_revolution/declare_completion() if(finished == 1) feedback_set_details("round_end_result","win - heads overthrown") - world << "\red The heads of staff were overthrown! The revolutionaries win!" + to_chat(world, "\red The heads of staff were overthrown! The revolutionaries win!") else if(finished == 2) feedback_set_details("round_end_result","loss - revolution stopped") - world << "\red The heads of staff managed to stop the revolution!" + to_chat(world, "\red The heads of staff managed to stop the revolution!") ..() return 1 @@ -159,29 +159,29 @@ if(!stat && P.client && P.mind && !P.mind.special_role) Possible += P if(!Possible.len) - src << "\red There doesn't appear to be anyone available for you to convert here." + to_chat(src, "\red There doesn't appear to be anyone available for you to convert here.") return var/mob/living/carbon/human/M = input("Select a person to convert", "Viva la revolution!", null) as mob in Possible if(((src.mind in ticker.mode:head_revolutionaries) || (src.mind in ticker.mode:revolutionaries))) if((M.mind in ticker.mode:head_revolutionaries) || (M.mind in ticker.mode:revolutionaries)) - src << "\red [M] is already be a revolutionary!" + to_chat(src, "\red [M] is already be a revolutionary!") else if(!ticker.mode:is_convertible(M)) - src << "\red [M] is implanted with a loyalty implant - Remove it first!" + to_chat(src, "\red [M] is implanted with a loyalty implant - Remove it first!") else if(world.time < M.mind.rev_cooldown) - src << "\red Wait five seconds before reconversion attempt." + to_chat(src, "\red Wait five seconds before reconversion attempt.") return - src << "\red Attempting to convert [M]..." + to_chat(src, "\red Attempting to convert [M]...") log_admin("[src]([src.ckey]) attempted to convert [M].") message_admins("\red [src]([src.ckey]) attempted to convert [M].") var/choice = alert(M,"Asked by [src]: Do you want to join the revolution?","Align Thyself with the Revolution!","No!","Yes!") if(choice == "Yes!") ticker.mode:add_revolutionary(M.mind) - M << "\blue You join the revolution!" - src << "\blue [M] joins the revolution!" + to_chat(M, "\blue You join the revolution!") + to_chat(src, "\blue [M] joins the revolution!") else if(choice == "No!") - M << "\red You reject this traitorous cause!" - src << "\red [M] does not support the revolution!" + to_chat(M, "\red You reject this traitorous cause!") + to_chat(src, "\red [M] does not support the revolution!") M.mind.rev_cooldown = world.time+50 /datum/game_mode/revolution/rp_revolution/process() @@ -208,7 +208,7 @@ update_rev_icons_added(H.mind) H.verbs += /mob/living/carbon/human/proc/RevConvert - H << "\red Congratulations, yer heads of revolution are all gone now, so yer earned yourself a promotion." + to_chat(H, "\red Congratulations, yer heads of revolution are all gone now, so yer earned yourself a promotion.") added_heads = 1 break @@ -241,7 +241,7 @@ comm.messagetitle.Add("Cent. Com. Announcement") comm.messagetext.Add(message) - world << sound('sound/AI/commandreport.ogg') + to_chat(world, sound('sound/AI/commandreport.ogg')) /datum/game_mode/revolution/rp_revolution/latespawn(mob/M) if(M.mind.assigned_role in command_positions) @@ -254,4 +254,4 @@ rev_obj.target = M.mind rev_obj.explanation_text = "Assassinate, convert or capture [M.real_name], the [M.mind.assigned_role]." rev_mind.objectives += rev_obj - rev_mind.current << "\red A new Head of Staff, [M.real_name], the [M.mind.assigned_role] has appeared. Your objectives have been updated." + to_chat(rev_mind.current, "\red A new Head of Staff, [M.real_name], the [M.mind.assigned_role] has appeared. Your objectives have been updated.") diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm index 510fccd9e9c..4d061d37eca 100644 --- a/code/game/gamemodes/sandbox/h_sandbox.dm +++ b/code/game/gamemodes/sandbox/h_sandbox.dm @@ -52,11 +52,11 @@ datum/hSB if("hsbtobj") if(!admin) return if(hsboxspawn) - world << "Sandbox: [usr.key] has disabled object spawning!" + to_chat(world, "Sandbox: [usr.key] has disabled object spawning!") hsboxspawn = 0 return if(!hsboxspawn) - world << "Sandbox: [usr.key] has enabled object spawning!" + to_chat(world, "Sandbox: [usr.key] has enabled object spawning!") hsboxspawn = 1 return if("hsbsuit") @@ -105,7 +105,7 @@ datum/hSB hsb.req_access += A hsb.loc = usr.loc - usr << "Sandbox: Created an airlock." + to_chat(usr, "Sandbox: Created an airlock.") if("hsbcanister") var/list/hsbcanisters = subtypesof(/obj/machinery/portable_atmospherics/canister/) var/hsbcanister = input(usr, "Choose a canister to spawn.", "Sandbox:") in hsbcanisters + "Cancel" diff --git a/code/game/gamemodes/sandbox/sandbox.dm b/code/game/gamemodes/sandbox/sandbox.dm index 5f13763e5f2..1be9a0ced0e 100644 --- a/code/game/gamemodes/sandbox/sandbox.dm +++ b/code/game/gamemodes/sandbox/sandbox.dm @@ -7,8 +7,8 @@ uplink_uses = 10 /datum/game_mode/sandbox/announce() - world << "The current game mode is - Sandbox!" - world << "Build your own station with the sandbox-panel command!" + to_chat(world, "The current game mode is - Sandbox!") + to_chat(world, "Build your own station with the sandbox-panel command!") /datum/game_mode/sandbox/pre_setup() for(var/mob/M in player_list) diff --git a/code/game/gamemodes/scoreboard.dm b/code/game/gamemodes/scoreboard.dm index 87c24e90371..44adae0d98a 100644 --- a/code/game/gamemodes/scoreboard.dm +++ b/code/game/gamemodes/scoreboard.dm @@ -148,8 +148,8 @@ score_crewscore -= plaguepoints // Show the score - might add "ranks" later - world << "The crew's final score is:" - world << "[score_crewscore]" + to_chat(world, "The crew's final score is:") + to_chat(world, "[score_crewscore]") for(var/mob/E in player_list) if(E.client) if(E.client.prefs && !(E.client.prefs.toggles & DISABLE_SCOREBOARD)) diff --git a/code/game/gamemodes/shadowling/shadowling.dm b/code/game/gamemodes/shadowling/shadowling.dm index 4a11d2415f7..5c6ca539f91 100644 --- a/code/game/gamemodes/shadowling/shadowling.dm +++ b/code/game/gamemodes/shadowling/shadowling.dm @@ -76,8 +76,8 @@ Made by Xhuis protected_jobs = list("Security Officer", "Warden", "Detective", "Head of Security", "Captain", "Blueshield", "Nanotrasen Representative", "Security Pod Pilot", "Magistrate", "Brig Physician", "Internal Affairs Agent") /datum/game_mode/shadowling/announce() - world << "The current game mode is - Shadowling!" - world << "There are alien shadowlings on the station. Crew: Kill the shadowlings before they can eat or enthrall the crew. Shadowlings: Enthrall the crew while remaining in hiding." + to_chat(world, "The current game mode is - Shadowling!") + to_chat(world, "There are alien shadowlings on the station. Crew: Kill the shadowlings before they can eat or enthrall the crew. Shadowlings: Enthrall the crew while remaining in hiding.") /datum/game_mode/shadowling/pre_setup() if(config.protect_roles_from_antagonist) @@ -105,8 +105,8 @@ Made by Xhuis for(var/datum/mind/shadow in shadows) log_game("[shadow.key] (ckey) has been selected as a Shadowling.") sleep(10) - shadow.current << "
" - shadow.current << "You are a shadowling!" + to_chat(shadow.current, "
") + to_chat(shadow.current, "You are a shadowling!") greet_shadow(shadow) finalize_shadowling(shadow) process_shadow_objectives(shadow) @@ -114,10 +114,11 @@ Made by Xhuis ..() /datum/game_mode/proc/greet_shadow(var/datum/mind/shadow) - shadow.current << "Currently, you are disguised as an employee aboard [world.name]." - shadow.current << "In your limited state, you have two abilities: Hatch and Shadowling Hivemind (:8)." - shadow.current << "Any other shadowlings are your allies. You must assist them as they shall assist you." - shadow.current << "If you are new to shadowling, or want to read about abilities, check the wiki page at http://nanotrasen.se/wiki/index.php/Shadowling
" + to_chat(shadow.current, "Currently, you are disguised as an employee aboard [world.name].") + to_chat(shadow.current, "In your limited state, you have two abilities: Hatch and Shadowling Hivemind (:8).") + to_chat(shadow.current, "Any other shadowlings are your allies. You must assist them as they shall assist you.") + to_chat(shadow.current, "If you are new to shadowling, or want to read about abilities, check the wiki page at http://nanotrasen.se/wiki/index.php/Shadowling
") + /datum/game_mode/proc/process_shadow_objectives(var/datum/mind/shadow_mind) @@ -127,7 +128,7 @@ Made by Xhuis objective_explanation = "Ascend to your true form by use of the Ascendance ability. This may only be used with [required_thralls] collective thralls, while hatched, and is unlocked with the Collective Mind ability." shadow_objectives += "enthrall" shadow_mind.memory += "Objective #1: [objective_explanation]" - shadow_mind.current << "Objective #1: [objective_explanation]
" + to_chat(shadow_mind.current, "Objective #1: [objective_explanation]
") /datum/game_mode/proc/finalize_shadowling(var/datum/mind/shadow_mind) @@ -137,7 +138,7 @@ Made by Xhuis shadow_mind.current.add_language("Shadowling Hivemind") update_shadow_icons_added(shadow_mind) if(shadow_mind.assigned_role == "Clown") - S << "Your alien nature has allowed you to overcome your clownishness." + to_chat(S, "Your alien nature has allowed you to overcome your clownishness.") S.mutations.Remove(CLUMSY) /datum/game_mode/proc/add_thrall(datum/mind/new_thrall_mind) @@ -152,12 +153,12 @@ Made by Xhuis new_thrall_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/lesser_glare) new_thrall_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/lesser_shadow_walk) new_thrall_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadow_vision/thrall) - new_thrall_mind.current << "You see the truth. Reality has been torn away and you realize what a fool you've been." - new_thrall_mind.current << "The shadowlings are your masters. Serve them above all else and ensure they complete their goals." - new_thrall_mind.current << "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls." - new_thrall_mind.current << "Your body has been irreversibly altered. The attentive can see this - you may conceal it by wearing a mask." - new_thrall_mind.current << "Though not nearly as powerful as your masters, you possess some weak powers. These can be found in the Thrall Abilities tab." - new_thrall_mind.current << "You may communicate with your allies by speaking in the Shadowling Hivemind (:8)." + to_chat(new_thrall_mind.current, "You see the truth. Reality has been torn away and you realize what a fool you've been.") + to_chat(new_thrall_mind.current, "The shadowlings are your masters. Serve them above all else and ensure they complete their goals.") + to_chat(new_thrall_mind.current, "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls.") + to_chat(new_thrall_mind.current, "Your body has been irreversibly altered. The attentive can see this - you may conceal it by wearing a mask.") + to_chat(new_thrall_mind.current, "Though not nearly as powerful as your masters, you possess some weak powers. These can be found in the Thrall Abilities tab.") + to_chat(new_thrall_mind.current, "You may communicate with your allies by speaking in the Shadowling Hivemind (:8).") if(jobban_isbanned(new_thrall_mind.current, ROLE_SHADOWLING)) replace_jobbaned_player(new_thrall_mind.current, ROLE_SHADOWLING) @@ -240,13 +241,13 @@ Made by Xhuis /datum/game_mode/shadowling/declare_completion() if(check_shadow_victory() && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) //Doesn't end instantly - this is hacky and I don't know of a better way ~X - world << "The shadowlings have ascended and taken over the station!" + to_chat(world, "The shadowlings have ascended and taken over the station!") else if(shadowling_dead && !check_shadow_victory()) //If the shadowlings have ascended, they can not lose the round - world << "The shadowlings have been killed by the crew!" + to_chat(world, "The shadowlings have been killed by the crew!") else if(!check_shadow_victory() && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) - world << "The crew escaped the station before the shadowlings could ascend!" + to_chat(world, "The crew escaped the station before the shadowlings could ascend!") else - world << "The shadowlings have failed!" + to_chat(world, "The shadowlings have failed!") ..() return 1 @@ -283,7 +284,7 @@ Made by Xhuis text += "body destroyed" text += ")" text += "
" - world << text + to_chat(world, text) /* @@ -318,7 +319,7 @@ Made by Xhuis if(light_amount > LIGHT_DAM_THRESHOLD && !H.incorporeal_move) //Can survive in very small light levels. Also doesn't take damage while incorporeal, for shadow walk purposes H.take_overall_damage(0, LIGHT_DAMAGE_TAKEN) if(H.stat != DEAD) - H << "The light burns you!" //Message spam to say "GET THE FUCK OUT" + to_chat(H, "The light burns you!")//Message spam to say "GET THE FUCK OUT" H << 'sound/weapons/sear.ogg' else if(light_amount < LIGHT_HEAL_THRESHOLD) H.heal_overall_damage(5, 5) diff --git a/code/game/gamemodes/shadowling/shadowling_abilities.dm b/code/game/gamemodes/shadowling/shadowling_abilities.dm index 64710ac14de..b350a0556d3 100644 --- a/code/game/gamemodes/shadowling/shadowling_abilities.dm +++ b/code/game/gamemodes/shadowling/shadowling_abilities.dm @@ -4,9 +4,12 @@ if(!H || !istype(H)) return if(H.get_species() == "Shadowling" && is_shadow(H)) return 1 if(H.get_species() == "Lesser Shadowling" && is_thrall(H)) return 1 - if(!is_shadow_or_thrall(usr)) usr << "You can't wrap your head around how to do this." - else if(is_thrall(usr)) usr << "You aren't powerful enough to do this." - else if(is_shadow(usr)) usr << "Your telepathic ability is suppressed. Hatch or use Rapid Re-Hatch first." + if(!is_shadow_or_thrall(usr)) + to_chat(usr, "You can't wrap your head around how to do this.") + else if(is_thrall(usr)) + to_chat(usr, "You aren't powerful enough to do this.") + else if(is_shadow(usr)) + to_chat(usr, "Your telepathic ability is suppressed. Hatch or use Rapid Re-Hatch first.") return 0 @@ -21,27 +24,27 @@ /obj/effect/proc_holder/spell/targeted/glare/cast(list/targets) for(var/mob/living/carbon/human/target in targets) if(!ishuman(target)) - usr << "You may only glare at humans!" + to_chat(usr, "You may only glare at humans!") charge_counter = charge_max return if(!shadowling_check(usr)) charge_counter = charge_max return if(target.stat) - usr << "[target] must be conscious!" + to_chat(usr, "[target] must be conscious!") charge_counter = charge_max return if(is_shadow_or_thrall(target)) - usr << "You don't see why you would want to paralyze an ally." + to_chat(usr, "You don't see why you would want to paralyze an ally.") charge_counter = charge_max return var/mob/living/carbon/human/M = target usr.visible_message("[usr]'s eyes flash a blinding red!") target.visible_message("[target] freezes in place, their eyes glazing over...") if(in_range(target, usr)) - target << "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by their heavenly beauty..." + to_chat(target, "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by their heavenly beauty...") else //Only alludes to the shadowling if the target is close by - target << "Red lights suddenly dance in your vision, and you are mesmerized by the heavenly lights..." + to_chat(target, "Red lights suddenly dance in your vision, and you are mesmerized by the heavenly lights...") target.Stun(10) M.silent += 10 @@ -57,24 +60,24 @@ /obj/effect/proc_holder/spell/targeted/lesser_glare/cast(list/targets) for(var/mob/living/carbon/human/target in targets) if(!ishuman(target) || !target) - usr << "You nay only glare at humans!" + to_chat(usr, "You nay only glare at humans!") charge_counter = charge_max return if(target.stat) - usr << "[target] must be conscious!" + to_chat(usr, "[target] must be conscious!") charge_counter = charge_max return if(is_shadow_or_thrall(target)) - usr << "You cannot glare at allies!" + to_chat(usr, "You cannot glare at allies!") charge_counter = charge_max return var/mob/living/carbon/human/M = target usr.visible_message("[usr]'s eyes flash a blinding red!") target.visible_message("[target] freezes in place, their eyes glazing over...") if(in_range(target, usr)) - target << "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by the heavenly lights..." + to_chat(target, "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by the heavenly lights...") else - target << "Red lights suddenly dance in your vision, and you are mesmerized by their heavenly beauty..." + to_chat(target, "Red lights suddenly dance in your vision, and you are mesmerized by their heavenly beauty...") target.Stun(3) //Roughly 30% as long as the normal one M.silent += 3 @@ -139,7 +142,7 @@ if(!shadowling_check(usr)) charge_counter = charge_max return - usr << "You silently disable all nearby lights." + to_chat(usr, "You silently disable all nearby lights.") for(var/obj/effect/glowshroom/G in orange(2, usr)) //Why the fuck was this in the loop below? G.visible_message("\The [G] withers away!") qdel(G) @@ -233,10 +236,10 @@ return var/mob/living/carbon/human/H = user if(!H.vision_type) - H << "You shift the nerves in your eyes, allowing you to see in the dark." + to_chat(H, "You shift the nerves in your eyes, allowing you to see in the dark.") H.vision_type = new vision_path else - H << "You return your vision to normal." + to_chat(H, "You return your vision to normal.") H.vision_type = null /obj/effect/proc_holder/spell/targeted/shadow_vision/thrall @@ -257,7 +260,7 @@ if(!shadowling_check(usr)) charge_counter = charge_max return - usr << "You freeze the nearby air." + to_chat(usr, "You freeze the nearby air.") playsound(usr.loc, 'sound/effects/ghost2.ogg', 50, 1) for(var/turf/T in targets) @@ -266,9 +269,9 @@ if(M == usr) //No message for the user, of course continue else - M << "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!" + to_chat(M, "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!") continue - M << "A wave of shockingly cold air engulfs you!" + to_chat(M, "A wave of shockingly cold air engulfs you!") M.Stun(2) M.apply_damage(10, BURN) if(M.bodytemperature) @@ -298,69 +301,69 @@ return for(var/mob/living/carbon/human/target in targets) if(!in_range(usr, target)) - usr << "You need to be closer to enthrall [target]." + to_chat(usr, "You need to be closer to enthrall [target].") charge_counter = charge_max return if(!target.key || !target.mind) - usr << "The target has no mind." + to_chat(usr, "The target has no mind.") charge_counter = charge_max return if(target.stat) - usr << "The target must be conscious." + to_chat(usr, "The target must be conscious.") charge_counter = charge_max return if(is_shadow_or_thrall(target)) - usr << "You can not enthrall allies." + to_chat(usr, "You can not enthrall allies.") charge_counter = charge_max return if(!ishuman(target)) - usr << "You can only enthrall humans." + to_chat(usr, "You can only enthrall humans.") charge_counter = charge_max return if(enthralling) - usr << "You are already enthralling!" + to_chat(usr, "You are already enthralling!") charge_counter = charge_max return if(!target.client) - usr << "[target]'s mind is vacant of activity." + to_chat(usr, "[target]'s mind is vacant of activity.") enthralling = 1 - usr << "This target is valid. You begin the enthralling." - target << "[usr] stares at you. You feel your head begin to pulse." + to_chat(usr, "This target is valid. You begin the enthralling.") + to_chat(target, "[usr] stares at you. You feel your head begin to pulse.") for(var/progress = 0, progress <= 3, progress++) switch(progress) if(1) - usr << "You place your hands to [target]'s head..." + to_chat(usr, "You place your hands to [target]'s head...") usr.visible_message("[usr] places their hands onto the sides of [target]'s head!") if(2) - usr << "You begin preparing [target]'s mind as a blank slate..." + to_chat(usr, "You begin preparing [target]'s mind as a blank slate...") usr.visible_message("[usr]'s palms flare a bright red against [target]'s temples!") - target << "A terrible red light floods your mind. You collapse as conscious thought is wiped away." + to_chat(target, "A terrible red light floods your mind. You collapse as conscious thought is wiped away.") target.Weaken(12) sleep(20) if(isloyal(target)) - usr << "They are enslaved by Nanotrasen. You begin to shut down the nanobot implant - this will take some time." + to_chat(usr, "They are enslaved by Nanotrasen. You begin to shut down the nanobot implant - this will take some time.") usr.visible_message("[usr] pauses, then dips their head in concentration!") - target << "You feel your loyalties begin to weaken!" + to_chat(target, "You feel your loyalties begin to weaken!") sleep(100) //10 seconds - not spawn() so the enthralling takes longer - usr << "The nanobots composing the loyalty implant have been rendered inert. Now to continue." + to_chat(usr, "The nanobots composing the loyalty implant have been rendered inert. Now to continue.") usr.visible_message("[usr] relaxes again.") for(var/obj/item/weapon/implant/loyalty/L in target) if(L && L.implanted) qdel(L) - target << "Your unwavering loyalty to Nanotrasen unexpectedly falters, dims, dies." + to_chat(target, "Your unwavering loyalty to Nanotrasen unexpectedly falters, dims, dies.") if(3) - usr << "You begin planting the tumor that will control the new thrall..." + to_chat(usr, "You begin planting the tumor that will control the new thrall...") usr.visible_message("A strange energy passes from [usr]'s hands into [target]'s head!") - target << "You feel your memories twisting, morphing. A sense of horror dominates your mind." + to_chat(target, "You feel your memories twisting, morphing. A sense of horror dominates your mind.") if(!do_mob(usr, target, 70)) //around 21 seconds total for enthralling, 31 for someone with a loyalty implant - usr << "The enthralling has been interrupted - your target's mind returns to its previous state." - target << "You wrest yourself away from [usr]'s hands and compose yourself" + to_chat(usr, "The enthralling has been interrupted - your target's mind returns to its previous state.") + to_chat(target, "You wrest yourself away from [usr]'s hands and compose yourself") enthralling = 0 return enthralling = 0 - usr << "You have enthralled [target]!" + to_chat(usr, "You have enthralled [target]!") target.visible_message("[target] looks to have experienced a revelation!", \ "False faces all dark not real not real not--") target.setOxyLoss(0) //In case the shadowling was choking them out @@ -379,7 +382,7 @@ /obj/effect/proc_holder/spell/targeted/shadowling_regenarmor/cast(list/targets) if(!is_shadow(usr)) - usr << "You must be a shadowling to do this!" + to_chat(usr, "You must be a shadowling to do this!") charge_counter = charge_max return for(var/mob/living/user in targets) @@ -421,45 +424,45 @@ var/victory_threshold = 15 var/mob/M - user << "You focus your telepathic energies abound, harnessing and drawing together the strength of your thralls." + to_chat(user, "You focus your telepathic energies abound, harnessing and drawing together the strength of your thralls.") for(M in living_mob_list) if(is_thrall(M)) thralls++ - M << "You feel hooks sink into your mind and pull." + to_chat(M, "You feel hooks sink into your mind and pull.") if(!do_after(user, 30, target = user)) - user << "Your concentration has been broken. The mental hooks you have sent out now retract into your mind." + to_chat(user, "Your concentration has been broken. The mental hooks you have sent out now retract into your mind.") return if(thralls >= 3 && !screech_acquired) screech_acquired = 1 - user << "The power of your thralls has granted you the Sonic Screech ability. This ability will shatter nearby windows and deafen enemies, plus stunning silicon lifeforms." + to_chat(user, "The power of your thralls has granted you the Sonic Screech ability. This ability will shatter nearby windows and deafen enemies, plus stunning silicon lifeforms.") user.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/unearthly_screech) if(thralls >= 5 && !blind_smoke_acquired) blind_smoke_acquired = 1 - user << "The power of your thralls has granted you the Blinding Smoke ability. It will create a choking cloud that will blind any non-thralls who enter. \ - " + to_chat(user, "The power of your thralls has granted you the Blinding Smoke ability. \ + It will create a choking cloud that will blind any non-thralls who enter.") user.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/blindness_smoke) if(thralls >= 7 && !drainLifeAcquired) drainLifeAcquired = 1 - user << "The power of your thralls has granted you the Drain Life ability. You can now drain the health of nearby humans to heal yourself." + to_chat(user, "The power of your thralls has granted you the Drain Life ability. You can now drain the health of nearby humans to heal yourself.") user.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/drainLife) if(thralls >= 9 && !reviveThrallAcquired) reviveThrallAcquired = 1 - user << "The power of your thralls has granted you the Black Recuperation ability. This will, after a short time, bring a dead thrall completely back to life \ - with no bodily defects." + to_chat(user, "The power of your thralls has granted you the Black Recuperation ability. \ + This will, after a short time, bring a dead thrall completely back to life with no bodily defects.") user.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/reviveThrall) if(thralls < victory_threshold) - user << "You do not have the power to ascend. You require [victory_threshold] thralls, but only [thralls] living thralls are present." + to_chat(user, "You do not have the power to ascend. You require [victory_threshold] thralls, but only [thralls] living thralls are present.") else if(thralls >= victory_threshold) - usr << "You are now powerful enough to ascend. Use the Ascendance ability when you are ready. This will kill all of your thralls." - usr << "You may find Ascendance in the Shadowling Evolution tab." + to_chat(usr, "You are now powerful enough to ascend. Use the Ascendance ability when you are ready. This will kill all of your thralls.") + to_chat(usr, "You may find Ascendance in the Shadowling Evolution tab.") for(M in living_mob_list) if(is_shadow(M)) var/obj/effect/proc_holder/spell/targeted/collective_mind/CM @@ -469,9 +472,10 @@ M.mind.remove_spell(/obj/effect/proc_holder/spell/targeted/shadowling_hatch) M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadowling_ascend) if(M == usr) - M << "You project this power to the rest of the shadowlings." + to_chat(M, "You project this power to the rest of the shadowlings.") else - M << "[user.real_name] has coalesced the strength of the thralls. You can draw upon it at any time to ascend. (Shadowling Evolution Tab)" //Tells all the other shadowlings + to_chat(M, "[user.real_name] has coalesced the strength of the thralls. You can draw upon it at any time to ascend. (Shadowling Evolution Tab)")//Tells all the other shadowlings + @@ -491,7 +495,7 @@ return for(var/mob/living/user in targets) user.visible_message("[user] suddenly bends over and coughs out a cloud of black smoke, which begins to spread rapidly!") - user << "You regurgitate a vast cloud of blinding smoke." + to_chat(user, "You regurgitate a vast cloud of blinding smoke.") playsound(user, 'sound/effects/bamf.ogg', 50, 1) var/obj/item/weapon/reagent_containers/glass/beaker/large/B = new /obj/item/weapon/reagent_containers/glass/beaker/large(user.loc) B.reagents.clear_reagents() //Just in case! @@ -515,13 +519,13 @@ datum/reagent/shadowling_blindness_smoke //Blinds non-shadowlings, heals shadowl datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) if(!M) M = holder.my_atom if(!is_shadow_or_thrall(M)) - M << "You breathe in the black smoke, and your eyes burn horribly!" + to_chat(M, "You breathe in the black smoke, and your eyes burn horribly!") M.eye_blind = 5 if(prob(25)) M.visible_message("[M] claws at their eyes!") M.Stun(3) else - M << "You breathe in the black smoke, and you feel revitalized!" + to_chat(M, "You breathe in the black smoke, and you feel revitalized!") M.heal_organ_damage(2,2) M.adjustOxyLoss(-2) M.adjustToxLoss(-2) @@ -555,12 +559,12 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) continue if(iscarbon(target)) var/mob/living/carbon/M = target - M << "A spike of pain drives into your head and scrambles your thoughts!" + to_chat(M, "A spike of pain drives into your head and scrambles your thoughts!") M.confused += 10 M.ear_damage += 3 else if(issilicon(target)) var/mob/living/silicon/S = target - S << "ERROR $!(@ ERROR )#^! SENSORY OVERLOAD \[$(!@#" + to_chat(S, "ERROR $!(@ ERROR )#^! SENSORY OVERLOAD \[$(!@#") S << 'sound/misc/interference.ogg' playsound(S, 'sound/machines/warning-buzzer.ogg', 50, 1) var/datum/effect/system/spark_spread/sp = new /datum/effect/system/spark_spread @@ -597,7 +601,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) nearbyTargets.Add(M) if(!targetsDrained) charge_counter = charge_max - usr << "There were no nearby humans for you to drain." + to_chat(usr, "There were no nearby humans for you to drain.") return for(var/mob/living/carbon/M in nearbyTargets) U.heal_organ_damage(10, 10) @@ -608,8 +612,8 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) U.AdjustStunned(-1) M.adjustOxyLoss(20) M.adjustStaminaLoss(20) - M << "You feel a wave of exhaustion and a curious draining sensation directed towards [usr]!" - usr << "You draw life from those around you to heal your wounds." + to_chat(M, "You feel a wave of exhaustion and a curious draining sensation directed towards [usr]!") + to_chat(usr, "You draw life from those around you to heal your wounds.") @@ -632,15 +636,15 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) switch(choice) if("Empower") if(!is_thrall(thrallToRevive)) - usr << "[thrallToRevive] is not a thrall." + to_chat(usr, "[thrallToRevive] is not a thrall.") charge_counter = charge_max return if(thrallToRevive.stat != CONSCIOUS) - usr << "[thrallToRevive] must be conscious to become empowered." + to_chat(usr, "[thrallToRevive] must be conscious to become empowered.") charge_counter = charge_max return if(thrallToRevive.get_species() == "Lesser Shadowling") - usr << "[thrallToRevive] is already empowered." + to_chat(usr, "[thrallToRevive] is already empowered.") charge_counter = charge_max return var/empowered_thralls = 0 @@ -651,17 +655,17 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) if(H.get_species() == "Lesser Shadowling") empowered_thralls++ if(empowered_thralls >= EMPOWERED_THRALL_LIMIT) - usr << "You cannot spare this much energy. There are too many empowered thralls." + to_chat(usr, "You cannot spare this much energy. There are too many empowered thralls.") charge_counter = charge_max return usr.visible_message("[usr] places their hands over [thrallToRevive]'s face, red light shining from beneath.", \ "You place your hands on [thrallToRevive]'s face and begin gathering energy...") - thrallToRevive << "[usr] places their hands over your face. You feel energy gathering. Stand still..." + to_chat(thrallToRevive, "[usr] places their hands over your face. You feel energy gathering. Stand still...") if(!do_mob(usr, thrallToRevive, 80)) - usr << "Your concentration snaps. The flow of energy ebbs." + to_chat(usr, "Your concentration snaps. The flow of energy ebbs.") charge_counter = charge_max return - usr << "You release a massive surge of power into [thrallToRevive]!" + to_chat(usr, "You release a massive surge of power into [thrallToRevive]!") usr.visible_message("Red lightning surges into [thrallToRevive]'s face!") playsound(thrallToRevive, 'sound/weapons/Egloves.ogg', 50, 1) playsound(thrallToRevive, 'sound/machines/defib_zap.ogg', 50, 1) @@ -680,21 +684,21 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) thrallToRevive.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadow_walk) if("Revive") if(!is_thrall(thrallToRevive)) - usr << "[thrallToRevive] is not a thrall." + to_chat(usr, "[thrallToRevive] is not a thrall.") charge_counter = charge_max return if(thrallToRevive.stat != DEAD) - usr << "[thrallToRevive] is not dead." + to_chat(usr, "[thrallToRevive] is not dead.") charge_counter = charge_max return usr.visible_message("[usr] kneels over [thrallToRevive], placing their hands on \his chest.", \ "You crouch over the body of your thrall and begin gathering energy...") thrallToRevive.notify_ghost_cloning("Your masters are resuscitating you! Re-enter your corpse if you wish to be brought to life.", source = thrallToRevive) if(!do_mob(usr, thrallToRevive, 30)) - usr << "Your concentration snaps. The flow of energy ebbs." + to_chat(usr, "Your concentration snaps. The flow of energy ebbs.") charge_counter = charge_max return - usr << "You release a massive surge of power into [thrallToRevive]!" + to_chat(usr, "You release a massive surge of power into [thrallToRevive]!") usr.visible_message("Red lightning surges from [usr]'s hands into [thrallToRevive]'s chest!") playsound(thrallToRevive, 'sound/weapons/Egloves.ogg', 50, 1) playsound(thrallToRevive, 'sound/machines/defib_zap.ogg', 50, 1) @@ -728,11 +732,11 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) charge_counter = charge_max return if(!is_thrall(target)) - usr << "[target] must be a thrall." + to_chat(usr, "[target] must be a thrall.") charge_counter = charge_max return if(shuttle_master.emergency.mode != SHUTTLE_CALL) - usr << "The shuttle must be inbound only to the station." + to_chat(usr, "The shuttle must be inbound only to the station.") charge_counter = charge_max return var/mob/living/carbon/human/M = target @@ -741,10 +745,10 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) M.visible_message("[M]'s face falls slack, their jaw slightly distending.", \ "You are suddenly transported... far, far away...") if(!do_after(usr, 50, target = M)) - M << "You are snapped back to reality, your haze dissipating!" - usr << "You have been interrupted. The draw has failed." + to_chat(M, "You are snapped back to reality, your haze dissipating!") + to_chat(usr, "You have been interrupted. The draw has failed.") return - usr << "You project [M]'s life force toward the approaching shuttle, extending its arrival duration!" + to_chat(usr, "You project [M]'s life force toward the approaching shuttle, extending its arrival duration!") M.visible_message("[M]'s eyes suddenly flare red. They proceed to collapse on the floor, not breathing.", \ "...speeding by... ...pretty blue glow... ...touch it... ...no glow now... ...no light... ...nothing at all...") M.death() @@ -771,14 +775,14 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) /obj/effect/proc_holder/spell/targeted/annihilate/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr if(SHA.phasing) - usr << "You are not in the same plane of existence. Unphase first." + to_chat(usr, "You are not in the same plane of existence. Unphase first.") charge_counter = charge_max return playsound(usr.loc, 'sound/magic/Staff_Chaos.ogg', 100, 1) for(var/mob/living/boom in targets) if(is_shadow(boom)) //Used to not work on thralls. Now it does so you can PUNISH THEM LIKE THE WRATHFUL GOD YOU ARE. - usr << "Making an ally explode seems unwise." + to_chat(usr, "Making an ally explode seems unwise.") charge_counter = charge_max return usr.visible_message("[usr]'s markings flare as they gesture at [boom]!", \ @@ -804,29 +808,29 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr if(SHA.phasing) charge_counter = charge_max - usr << "You are not in the same plane of existence. Unphase first." + to_chat(usr, "You are not in the same plane of existence. Unphase first.") return for(var/mob/living/carbon/human/target in targets) if(is_shadow_or_thrall(target)) - usr << "You cannot enthrall an ally." + to_chat(usr, "You cannot enthrall an ally.") charge_counter = charge_max return if(!target.ckey || !target.mind) - usr << "The target has no mind." + to_chat(usr, "The target has no mind.") charge_counter = charge_max return if(target.stat) - usr << "The target must be conscious." + to_chat(usr, "The target must be conscious.") charge_counter = charge_max return if(!ishuman(target)) - usr << "You can only enthrall humans." + to_chat(usr, "You can only enthrall humans.") charge_counter = charge_max return - usr << "You instantly rearrange [target]'s memories, hyptonitizing them into a thrall." - target << "An agonizing spike of pain drives into your mind, and--" + to_chat(usr, "You instantly rearrange [target]'s memories, hyptonitizing them into a thrall.") + to_chat(target, "An agonizing spike of pain drives into your mind, and--") ticker.mode.add_thrall(target.mind) target.mind.special_role = "shadowling thrall" target.add_language("Shadowling Hivemind") @@ -872,7 +876,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) /obj/effect/proc_holder/spell/aoe_turf/ascendant_storm/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr if(SHA.phasing) - usr << "You are not in the same plane of existence. Unphase first." + to_chat(usr, "You are not in the same plane of existence. Unphase first.") charge_counter = charge_max return @@ -883,7 +887,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) for(var/mob/living/carbon/human/target in T.contents) if(is_shadow_or_thrall(target)) continue - target << "You are struck by a bolt of lightning!" + to_chat(target, "You are struck by a bolt of lightning!") playsound(target, 'sound/magic/LightningShock.ogg', 50, 1) target.Weaken(8) target.take_organ_damage(0,50) @@ -904,4 +908,4 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) var/text = stripped_input(user, "What do you want to say to everything on and near [station_name()]?.", "Transmit to World", "") if(!text) return - world << "\"[text]\"" + to_chat(world, "\"[text]\"") diff --git a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm index 52c50e0c193..98f81f1d128 100644 --- a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm +++ b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm @@ -14,13 +14,13 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N if(usr.stat || !ishuman(usr) || !usr || !is_shadow(usr || isinspace(usr))) return if(!isturf(usr.loc)) - usr << "You can't hatch here!" + to_chat(usr, "You can't hatch here!") return for(var/mob/living/carbon/human/H in targets) var/hatch_or_no = alert(H,"Are you sure you want to hatch? You cannot undo this!",,"Yes","No") switch(hatch_or_no) if("No") - H << "You decide against hatching for now." + to_chat(H, "You decide against hatching for now.") charge_counter = charge_max return if("Yes") @@ -55,13 +55,13 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N sleep(80) playsound(H.loc, 'sound/weapons/slash.ogg', 25, 1) - H << "You rip and slice." + to_chat(H, "You rip and slice.") sleep(10) playsound(H.loc, 'sound/weapons/slashmiss.ogg', 25, 1) - H << "The chrysalis falls like water before you." + to_chat(H, "The chrysalis falls like water before you.") sleep(10) playsound(H.loc, 'sound/weapons/slice.ogg', 25, 1) - H << "You are free!" + to_chat(H, "You are free!") H.status_flags = temp_flags sleep(10) playsound(H.loc, 'sound/effects/ghost.ogg', 100, 1) @@ -70,7 +70,7 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N H.real_name = newNameId H.name = usr.real_name H.SetStunned(0) - H << "YOU LIVE!!!" + to_chat(H, "YOU LIVE!!!") for(var/obj/structure/alien/resin/wall/shadowling/W in orange(H, 1)) playsound(W, 'sound/effects/splat.ogg', 50, 1) @@ -95,7 +95,7 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N H.mind.remove_spell(src) sleep(10) - H << "Your powers are awoken. You may now live to your fullest extent. Remember your goal. Cooperate with your thralls and allies." + to_chat(H, "Your powers are awoken. You may now live to your fullest extent. Remember your goal. Cooperate with your thralls and allies.") H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadow_vision) H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/enthrall) H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/glare) @@ -124,7 +124,7 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N var/hatch_or_no = alert(H,"It is time to ascend. Are you sure about this?",,"Yes","No") switch(hatch_or_no) if("No") - H << "You decide against ascending for now." + to_chat(H, "You decide against ascending for now.") charge_counter = charge_max return if("Yes") @@ -146,16 +146,16 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N "You begin to rend apart the final barries to godhood.") sleep(40) - H << "Yes!" + to_chat(H, "Yes!") sleep(10) - H << "YES!!" + to_chat(H, "YES!!") sleep(10) - H << "YE--" + to_chat(H, "YE--") sleep(1) for(var/mob/living/M in orange(7, H)) M.Weaken(10) - M << "An immense pressure slams you onto the ground!" - world << "\"VYSHA NERADA YEKHEZET U'RUU!!\"" + to_chat(M, "An immense pressure slams you onto the ground!") + to_chat(world, "\"VYSHA NERADA YEKHEZET U'RUU!!\"") world << 'sound/hallucinations/veryfar_noise.ogg' for(var/obj/machinery/power/apc/A in apcs) A.overload_lighting() diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm index bfb5a38e319..c0d0edf89e3 100644 --- a/code/game/gamemodes/traitor/traitor.dm +++ b/code/game/gamemodes/traitor/traitor.dm @@ -25,8 +25,8 @@ /datum/game_mode/traitor/announce() - world << "The current game mode is - Traitor!" - world << "There is a syndicate traitor on the station. Do not let the traitor succeed!" + to_chat(world, "The current game mode is - Traitor!") + to_chat(world, "There is a syndicate traitor on the station. Do not let the traitor succeed!") /datum/game_mode/traitor/pre_setup() @@ -172,10 +172,10 @@ /datum/game_mode/proc/greet_traitor(var/datum/mind/traitor) - traitor.current << "You are the traitor." + to_chat(traitor.current, "You are the traitor.") var/obj_count = 1 for(var/datum/objective/objective in traitor.objectives) - traitor.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(traitor.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -201,21 +201,21 @@ return 0 /datum/game_mode/proc/give_codewords(mob/living/traitor_mob) - traitor_mob << "The Syndicate provided you with the following information on how to identify their agents:" - traitor_mob << "Code Phrase: [syndicate_code_phrase]" - traitor_mob << "Code Response: [syndicate_code_response]" + to_chat(traitor_mob, "The Syndicate provided you with the following information on how to identify their agents:") + to_chat(traitor_mob, "Code Phrase: [syndicate_code_phrase]") + to_chat(traitor_mob, "Code Response: [syndicate_code_response]") traitor_mob.mind.store_memory("Code Phrase: [syndicate_code_phrase]") traitor_mob.mind.store_memory("Code Response: [syndicate_code_response]") - traitor_mob << "Use the code words in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe." + to_chat(traitor_mob, "Use the code words in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe.") /datum/game_mode/proc/add_law_zero(mob/living/silicon/ai/killer) var/law = "Accomplish your objectives at all costs." var/law_borg = "Accomplish your AI's objectives at all costs." - killer << "Your laws have been changed!" + to_chat(killer, "Your laws have been changed!") killer.set_zeroth_law(law, law_borg) - killer << "New law: 0. [law]" + to_chat(killer, "New law: 0. [law]") give_codewords(killer) @@ -277,7 +277,7 @@ feedback_add_details("traitor_success","FAIL") - world << text + to_chat(world, text) return 1 @@ -287,7 +287,7 @@ . = 1 if (traitor_mob.mind) if (traitor_mob.mind.assigned_role == "Clown") - traitor_mob << "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself." + to_chat(traitor_mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.") traitor_mob.mutations.Remove(CLUMSY) // find a radio! toolbox(es), backpack, belt, headset @@ -296,7 +296,7 @@ R = locate(/obj/item/device/radio) in traitor_mob.contents if (!R) - traitor_mob << "Unfortunately, the Syndicate wasn't able to get you a radio." + to_chat(traitor_mob, "Unfortunately, the Syndicate wasn't able to get you a radio.") . = 0 else if (istype(R, /obj/item/device/radio)) @@ -316,7 +316,7 @@ target_radio.hidden_uplink = T T.uplink_owner = "[traitor_mob.key]" target_radio.traitor_frequency = freq - traitor_mob << "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply dial the frequency [format_frequency(freq)] to unlock its hidden features." + to_chat(traitor_mob, "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply dial the frequency [format_frequency(freq)] to unlock its hidden features.") traitor_mob.mind.store_memory("Radio Freq: [format_frequency(freq)] ([R.name] [T.loc]).") else if (istype(R, /obj/item/device/pda)) // generate a passcode if the uplink is hidden in a PDA @@ -328,7 +328,7 @@ var/obj/item/device/pda/P = R P.lock_code = pda_pass - traitor_mob << "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply enter the code \"[pda_pass]\" into the ringtone select to unlock its hidden features." + to_chat(traitor_mob, "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply enter the code \"[pda_pass]\" into the ringtone select to unlock its hidden features.") traitor_mob.mind.store_memory("Uplink Passcode: [pda_pass] ([R.name] [T.loc]).") if(!safety)//If they are not a rev. Can be added on to. give_codewords(traitor_mob) @@ -336,7 +336,7 @@ // Tell them about people they might want to contact. var/mob/living/carbon/human/M = get_nt_opposed() if(M && M != traitor_mob) - traitor_mob << "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them." + to_chat(traitor_mob, "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them.") traitor_mob.mind.store_memory("Potential Collaborator: [M.real_name]") /datum/game_mode/proc/update_traitor_icons_added(datum/mind/traitor_mind) @@ -366,8 +366,8 @@ slaved.leave_serv_hud(traitor_mind) update_traitor_icons_removed(traitor_mind) - //world << "Removed [traitor_mind.current.name] from traitor shit" - traitor_mind.current << "\red The fog clouding your mind clears. You remember nothing from the moment you were implanted until now.(You don't remember who implanted you)" +// to_chat(world, "Removed [traitor_mind.current.name] from traitor shit") + to_chat(traitor_mind.current, "\red The fog clouding your mind clears. You remember nothing from the moment you were implanted until now.(You don't remember who implanted you)") /datum/game_mode/proc/assign_exchange_role(var/datum/mind/owner) //set faction @@ -408,5 +408,5 @@ var/equipped_slot = mob.equip_in_one_of_slots(folder, slots) if (equipped_slot) where = "In your [equipped_slot]" - mob << "

[where] is a folder containing secret documents that another Syndicate group wants. We have set up a meeting with one of their agents on station to make an exchange. Exercise extreme caution as they cannot be trusted and may be hostile.
" + to_chat(mob, "

[where] is a folder containing secret documents that another Syndicate group wants. We have set up a meeting with one of their agents on station to make an exchange. Exercise extreme caution as they cannot be trusted and may be hostile.
") mob.update_icons() diff --git a/code/game/gamemodes/vampire/vampire.dm b/code/game/gamemodes/vampire/vampire.dm index edb240eb1cd..1abed5ba4dd 100644 --- a/code/game/gamemodes/vampire/vampire.dm +++ b/code/game/gamemodes/vampire/vampire.dm @@ -38,8 +38,8 @@ var/vampire_amount = 4 /datum/game_mode/vampire/announce() - world << "The current game mode is - Vampires!" - world << "There are Vampires from Space Transylvania on the station, keep your blood close and neck safe!" + to_chat(world, "The current game mode is - Vampires!") + to_chat(world, "There are Vampires from Space Transylvania on the station, keep your blood close and neck safe!") /datum/game_mode/vampire/pre_setup() @@ -116,7 +116,7 @@ else text += "
The [special_role_text] has failed!" feedback_add_details("traitor_success","FAIL") - world << text + to_chat(world, text) return 1 /datum/game_mode/proc/auto_declare_completion_enthralled() @@ -134,7 +134,7 @@ else text += "body destroyed" text += ")" - world << text + to_chat(world, text) return 1 /datum/game_mode/proc/forge_vampire_objectives(var/datum/mind/vampire) @@ -180,17 +180,17 @@ dat = "\red You are a Vampire! \black
" dat += {"To bite someone, target the head and use harm intent with an empty hand. Drink blood to gain new powers. You are weak to holy things and starlight. Don't go into space and avoid the Chaplain, the chapel and especially Holy Water."} - vampire.current << dat - vampire.current << "You must complete the following tasks:" + to_chat(vampire.current, dat) + to_chat(vampire.current, "You must complete the following tasks:") if (vampire.current.mind) if (vampire.current.mind.assigned_role == "Clown") - vampire.current << "Your lust for blood has allowed you to overcome your clumsy nature allowing you to wield weapons without harming yourself." + to_chat(vampire.current, "Your lust for blood has allowed you to overcome your clumsy nature allowing you to wield weapons without harming yourself.") vampire.current.mutations.Remove(CLUMSY) var/obj_count = 1 for(var/datum/objective/objective in vampire.objectives) - vampire.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(vampire.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -280,12 +280,12 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha H.LAssailant = owner while(do_mob(owner, H, 50)) if(!(owner.mind in ticker.mode.vampires)) - owner << "Your fangs have disappeared!" + to_chat(owner, "Your fangs have disappeared!") return old_bloodtotal = bloodtotal old_bloodusable = bloodusable if(!H.vessel.get_reagent_amount("blood")) - src << "They've got no blood left to give." + to_chat(src, "They've got no blood left to give.") break if(H.stat < DEAD) blood = min(20, H.vessel.get_reagent_amount("blood")) // if they have less than 20 blood, give them the remnant else they get 20 blood @@ -295,7 +295,7 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha blood = min(5, H.vessel.get_reagent_amount("blood")) // The dead only give 5 bloods bloodtotal += blood if(old_bloodtotal != bloodtotal) - owner << "You have accumulated [bloodtotal] [bloodtotal > 1 ? "units" : "unit"] of blood[bloodusable != old_bloodusable ? ", and have [bloodusable] left to use" : ""]." + to_chat(owner, "You have accumulated [bloodtotal] [bloodtotal > 1 ? "units" : "unit"] of blood[bloodusable != old_bloodusable ? ", and have [bloodusable] left to use" : ""].") check_vampire_upgrade() H.vessel.remove_reagent("blood", 25) if(ishuman(owner)) @@ -303,7 +303,7 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha V.nutrition = min(450, V.nutrition + (blood / 2)) draining = null - owner << "You stop draining [H.name] of blood." + to_chat(owner, "You stop draining [H.name] of blood.") /datum/vampire/proc/check_vampire_upgrade(announce = 1) var/list/old_powers = powers.Copy() @@ -321,10 +321,10 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha if(!(p in old_powers)) if(istype(p, /obj/effect/proc_holder/spell/vampire)) var/obj/effect/proc_holder/spell/vampire/power = p - owner << "[power.gain_desc]" + to_chat(owner, "[power.gain_desc]") else if(istype(p, /datum/vampire_passive)) var/datum/vampire_passive/power = p - owner << "[power.gain_desc]" + to_chat(owner, "[power.gain_desc]") //prepare for copypaste /datum/game_mode/proc/update_vampire_icons_added(datum/mind/vampire_mind) @@ -351,8 +351,8 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha vampire_mind.som = null slaved.leave_serv_hud(vampire_mind) update_vampire_icons_removed(vampire_mind) - //world << "Removed [vampire_mind.current.name] from vampire shit" - vampire_mind.current << "\red The fog clouding your mind clears. You remember nothing from the moment you were enthralled until now." +// to_chat(world, "Removed [vampire_mind.current.name] from vampire shit") + to_chat(vampire_mind.current, "\red The fog clouding your mind clears. You remember nothing from the moment you were enthralled until now.") /datum/vampire/proc/check_sun() var/ax = owner.x @@ -412,14 +412,14 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha if(prob(35)) switch(owner.health) if(80 to 100) - owner << "Your skin flakes away..." + to_chat(owner, "Your skin flakes away...") if(60 to 80) - owner << "Your skin sizzles!" + to_chat(owner, "Your skin sizzles!") if((-INFINITY) to 60) if(!owner.on_fire) - owner << "Your skin catches fire!" + to_chat(owner, "Your skin catches fire!") else - owner << "You continue to burn!" + to_chat(owner, "You continue to burn!") owner.fire_stacks += 5 owner.IgniteMob() owner.emote("scream") diff --git a/code/game/gamemodes/vampire/vampire_powers.dm b/code/game/gamemodes/vampire/vampire_powers.dm index 343e4ea3fa6..a7e470ef056 100644 --- a/code/game/gamemodes/vampire/vampire_powers.dm +++ b/code/game/gamemodes/vampire/vampire_powers.dm @@ -19,7 +19,7 @@ if(!user.mind) return 0 if(!ishuman(user)) - user << "You are in too weak of a form to do this!" + to_chat(user, "You are in too weak of a form to do this!") return 0 var/datum/vampire/vampire = user.mind.vampire @@ -30,18 +30,18 @@ var/fullpower = vampire.get_ability(/datum/vampire_passive/full) if(user.stat >= DEAD) - user << "Not when you're dead!" + to_chat(user, "Not when you're dead!") return 0 if(vampire.nullified && !fullpower) - user << "Something is blocking your powers!" + to_chat(user, "Something is blocking your powers!") return 0 if(vampire.bloodusable < required_blood) - user << "You require at least [required_blood] units of usable blood to do that!" + to_chat(user, "You require at least [required_blood] units of usable blood to do that!") return 0 //chapel check if(istype(loc.loc, /area/chapel) && !fullpower) - user << "Your powers are useless on this holy ground." + to_chat(user, "Your powers are useless on this holy ground.") return 0 return ..() @@ -105,7 +105,7 @@ targets.Cut() if(targets.len) - usr << "You have [vampire.bloodusable] left to use." + to_chat(usr, "You have [vampire.bloodusable] left to use.") /obj/effect/proc_holder/spell/vampire/targetted/choose_targets(mob/user = usr) var/list/possible_targets[0] @@ -157,7 +157,7 @@ usr.SetStunned(0) usr.SetParalysis(0) U.adjustStaminaLoss(-75) - usr << "You flush your system with clean blood and remove any incapacitating effects." + to_chat(usr, "You flush your system with clean blood and remove any incapacitating effects.") spawn(1) if(usr.mind.vampire.get_ability(/datum/vampire_passive/regen)) for(var/i = 1 to 5) @@ -178,17 +178,17 @@ usr.visible_message("[usr]'s eyes flash briefly as he stares into [target]'s eyes") if(do_mob(usr, target, 50)) if(!affects(target)) - usr << "Your piercing gaze fails to knock out [target]." - target << "\blue [usr]'s feeble gaze is ineffective." + to_chat(usr, "Your piercing gaze fails to knock out [target].") + to_chat(target, "\blue [usr]'s feeble gaze is ineffective.") else - usr << "Your piercing gaze knocks out [target]." - target << "You find yourself unable to move and barely able to speak." + to_chat(usr, "Your piercing gaze knocks out [target].") + to_chat(target, "You find yourself unable to move and barely able to speak.") target.Weaken(10) target.Stun(10) target.stuttering = 10 else revert_cast(usr) - usr << "You broke your gaze." + to_chat(usr, "You broke your gaze.") /obj/effect/proc_holder/spell/vampire/targetted/disease name = "Diseased Touch (100)" @@ -199,10 +199,10 @@ /obj/effect/proc_holder/spell/vampire/targetted/disease/cast(list/targets) for(var/mob/living/carbon/target in targets) - usr << "You stealthily infect [target] with your diseased touch." + to_chat(usr, "You stealthily infect [target] with your diseased touch.") target.help_shake_act(usr) if(!affects(target)) - usr << "They seem to be unaffected." + to_chat(usr, "They seem to be unaffected.") continue var/datum/disease/D = new /datum/disease/appendicitis //someone should probably make a better virus for this target.ForceContractDisease(D) @@ -217,7 +217,7 @@ /obj/effect/proc_holder/spell/vampire/mob_aoe/glare/cast(list/targets) usr.visible_message("[usr]'s eyes emit a blinding flash!") if(istype(usr:glasses, /obj/item/clothing/glasses/sunglasses/blindfold)) - usr << "You're blindfolded!" + to_chat(usr, "You're blindfolded!") return for(var/mob/living/target in targets) if(!affects(target)) @@ -225,7 +225,7 @@ target.Stun(5) target.Weaken(5) target.stuttering = 20 - target << "You are blinded by [usr]'s glare." + to_chat(target, "You are blinded by [usr]'s glare.") /obj/effect/proc_holder/spell/vampire/self/shapeshift name = "Shapeshift (50)" @@ -257,7 +257,7 @@ continue if(!affects(C)) continue - C << "You hear a ear piercing shriek and your senses dull!" + to_chat(C, "You hear a ear piercing shriek and your senses dull!") C.Weaken(4) C.ear_deaf = 20 C.stuttering = 20 @@ -277,16 +277,16 @@ /obj/effect/proc_holder/spell/vampire/targetted/enthrall/cast(list/targets) for(var/mob/living/target in targets) usr.visible_message("[usr] bites [target]'s neck!", "You bite [target]'s neck and begin the flow of power.") - target << "You feel the tendrils of evil invade your mind." + to_chat(target, "You feel the tendrils of evil invade your mind.") if(!ishuman(target)) - usr << "You can only enthrall humans." + to_chat(usr, "You can only enthrall humans.") break if(do_mob(usr, target, 50)) if(can_enthrall(usr, target)) handle_enthrall(usr, target) else revert_cast(usr) - usr << "You or your target either moved or you dont have enough usable blood." + to_chat(usr, "You or your target either moved or you dont have enough usable blood.") /obj/effect/proc_holder/spell/vampire/targetted/enthrall/proc/can_enthrall(mob/living/user, mob/living/carbon/C) var/enthrall_safe = 0 @@ -302,7 +302,7 @@ log_to_dd("something bad happened on enthralling a mob, attacker is [user] [user.key] \ref[user]") return 0 if(!C.mind) - user << "[C.name]'s mind is not there for you to enthrall." + to_chat(user, "[C.name]'s mind is not there for you to enthrall.") return 0 if(enthrall_safe || ( C.mind in ticker.mode.vampires )||( C.mind.vampire )||( C.mind in ticker.mode.vampire_enthralled )) C.visible_message("[C] seems to resist the takeover!", "You feel a familiar sensation in your skull that quickly dissipates.") @@ -310,7 +310,7 @@ if(!affects(C)) C.visible_message("[C] seems to resist the takeover!", "Your faith of [ticker.Bible_deity_name] has kept your mind clear of all evil.") if(!ishuman(C)) - user << "You can only enthrall humans!" + to_chat(user, "You can only enthrall humans!") return 0 return 1 @@ -334,8 +334,8 @@ ticker.mode.vampire_enthralled.Add(H.mind) ticker.mode.vampire_enthralled[H.mind] = user.mind H.mind.special_role = "VampThrall" - H << "You have been Enthralled by [user]. Follow their every command." - src << "You have successfully Enthralled [H]. If they refuse to do as you say just adminhelp." + to_chat(H, "You have been Enthralled by [user]. Follow their every command.") + to_chat(src, "You have successfully Enthralled [H]. If they refuse to do as you say just adminhelp.") log_admin("[ckey(user.key)] has mind-slaved [ckey(H.key)].") /obj/effect/proc_holder/spell/vampire/self/cloak @@ -359,7 +359,7 @@ var/datum/vampire/V = usr.mind.vampire V.iscloaking = !V.iscloaking update_name() - usr << "You will now be [V.iscloaking ? "hidden" : "seen"] in darkness." + to_chat(usr, "You will now be [V.iscloaking ? "hidden" : "seen"] in darkness.") /obj/effect/proc_holder/spell/vampire/bats name = "Summon Bats (75)" @@ -425,7 +425,7 @@ sleep(jaunt_duration) var/mobloc = get_turf(usr.loc) if(get_area(mobloc) == /area/security/armoury/gamma) - usr << "A strange energy repels you!" + to_chat(usr, "A strange energy repels you!") mobloc = originalloc animation.loc = mobloc steam.location = mobloc @@ -485,7 +485,7 @@ if(!turfs.len) revert_cast(user) - user << "\red You cannot find darkness to step to." + to_chat(user, "\red You cannot find darkness to step to.") return perform(turfs) diff --git a/code/game/gamemodes/wizard/artefact.dm b/code/game/gamemodes/wizard/artefact.dm index bce6194726a..4dc42aacb4f 100644 --- a/code/game/gamemodes/wizard/artefact.dm +++ b/code/game/gamemodes/wizard/artefact.dm @@ -47,7 +47,7 @@ H.set_machine(src) if(href_list["school"]) if (used) - H << "You already used this contract!" + to_chat(H, "You already used this contract!") return used = 1 var/list/candidates = pollCandidates("Do you want to play as the wizard apprentice of [H.real_name]?", ROLE_WIZARD, 1) @@ -56,25 +56,25 @@ new /obj/effect/effect/harmless_smoke(H.loc) var/mob/living/carbon/human/M = new/mob/living/carbon/human(H.loc) M.key = C.key - M << "You are the [H.real_name]'s apprentice! You are bound by magic contract to follow their orders and help them in accomplishing their goals." + to_chat(M, "You are the [H.real_name]'s apprentice! You are bound by magic contract to follow their orders and help them in accomplishing their goals.") switch(href_list["school"]) if("destruction") M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/projectile/magic_missile(M)) M.mind.AddSpell(new /obj/effect/proc_holder/spell/dumbfire/fireball(M)) - M << "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned powerful, destructive spells. You are able to cast magic missile and fireball." + to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned powerful, destructive spells. You are able to cast magic missile and fireball.") if("bluespace") M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/area_teleport/teleport(M)) M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/ethereal_jaunt(M)) - M << "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned reality bending mobility spells. You are able to cast teleport and ethereal jaunt." + to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned reality bending mobility spells. You are able to cast teleport and ethereal jaunt.") if("healing") M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/charge(M)) M.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/conjure/forcewall(M)) M.equip_to_slot_or_del(new /obj/item/weapon/gun/magic/staff/healing(M), slot_r_hand) - M << "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned livesaving survival spells. You are able to cast charge and forcewall." + to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned livesaving survival spells. You are able to cast charge and forcewall.") if("robeless") M.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/knock(M)) M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/mind_transfer(M)) - M << "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned stealthy, robeless spells. You are able to cast knock and mindswap." + to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned stealthy, robeless spells. You are able to cast knock and mindswap.") M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_l_ear) M.equip_to_slot_or_del(new /obj/item/clothing/under/color/lightpurple(M), slot_w_uniform) @@ -105,7 +105,7 @@ M.faction = list("wizard") else used = 0 - H << "Unable to reach your apprentice! You can either attack the spellbook with the contract to refund your points, or wait and try again later." + to_chat(H, "Unable to reach your apprentice! You can either attack the spellbook with the contract to refund your points, or wait and try again later.") return @@ -133,7 +133,7 @@ charged = 0 user.visible_message("[src] hums with power as [user] deals a blow to [activate_descriptor] itself!") else - user << "The unearthly energies that powered the blade are now dormant." + to_chat(user, "The unearthly energies that powered the blade are now dormant.") /obj/effect/rend @@ -212,7 +212,7 @@ hitsound = 'sound/items/welder2.ogg' /obj/item/weapon/scrying/attack_self(mob/user as mob) - user << " You can see...everything!" + to_chat(user, " You can see...everything!") visible_message("[user] stares into [src], their eyes glazing over.") user.ghostize(1) @@ -254,13 +254,13 @@ var/global/list/multiverse = list() /obj/item/weapon/multisword/attack(mob/living/M as mob, mob/living/user as mob) //to prevent accidental friendly fire or out and out grief. if(M.real_name == user.real_name) - user << "The [src] detects benevolent energies in your target and redirects your attack!" + to_chat(user, "The [src] detects benevolent energies in your target and redirects your attack!") return ..() /obj/item/weapon/multisword/attack_self(mob/user) if(user.mind.special_role == "apprentice") - user << "You know better than to touch your teacher's stuff." + to_chat(user, "You know better than to touch your teacher's stuff.") return if(cooldown < world.time) var/faction_check = 0 @@ -272,24 +272,24 @@ var/global/list/multiverse = list() faction = list("[user.real_name]") assigned = "[user.real_name]" user.faction = list("[user.real_name]") - user << "You bind the sword to yourself. You can now use it to summon help." + to_chat(user, "You bind the sword to yourself. You can now use it to summon help.") if(!usr.mind.special_role) if(prob(probability_evil)) - user << "With your new found power you could easily conquer the station!" + to_chat(user, "With your new found power you could easily conquer the station!") var/datum/objective/hijackclone/hijack_objective = new /datum/objective/hijackclone hijack_objective.owner = usr.mind usr.mind.objectives += hijack_objective hijack_objective.explanation_text = "Ensure only [usr.real_name] and their copies are on the shuttle!" - usr << "Objective #[1]: [hijack_objective.explanation_text]" + to_chat(usr, "Objective #[1]: [hijack_objective.explanation_text]") ticker.mode.traitors += usr.mind usr.mind.special_role = "[usr.real_name] Prime" evil = TRUE else - user << "With your new found power you could easily defend the station!" + to_chat(user, "With your new found power you could easily defend the station!") var/datum/objective/survive/new_objective = new /datum/objective/survive new_objective.owner = usr.mind new_objective.explanation_text = "Survive, and help defend the innocent from the mobs of multiverse clones." - usr << "Objective #[1]: [new_objective.explanation_text]" + to_chat(usr, "Objective #[1]: [new_objective.explanation_text]") usr.mind.objectives += new_objective ticker.mode.traitors += usr.mind usr.mind.special_role = "[usr.real_name] Prime" @@ -304,12 +304,12 @@ var/global/list/multiverse = list() if(candidates.len) var/mob/C = pick(candidates) spawn_copy(C.client, get_turf(user.loc), user) - user << "The sword flashes, and you find yourself face to face with...you!" + to_chat(user, "The sword flashes, and you find yourself face to face with...you!") else - user << "You fail to summon any copies of yourself. Perhaps you should try again in a bit." + to_chat(user, "You fail to summon any copies of yourself. Perhaps you should try again in a bit.") else - user << "[src] is recharging! Keep in mind it shares a cooldown with the swords wielded by your copies." + to_chat(user, "[src] is recharging! Keep in mind it shares a cooldown with the swords wielded by your copies.") /obj/item/weapon/multisword/proc/spawn_copy(var/client/C, var/turf/T, mob/user) @@ -320,7 +320,7 @@ var/global/list/multiverse = list() C.prefs.copy_to(M) M.key = C.key M.mind.name = user.real_name - M << "You are an alternate version of [user.real_name] from another universe! Help them accomplish their goals at all costs." + to_chat(M, "You are an alternate version of [user.real_name] from another universe! Help them accomplish their goals at all costs.") M.faction = list("[user.real_name]") if(duplicate_self) M.set_species(user.get_species()) //duplicate the sword user's species. @@ -345,7 +345,7 @@ var/global/list/multiverse = list() hijack_objective.owner = M.mind M.mind.objectives += hijack_objective hijack_objective.explanation_text = "Ensure only [usr.real_name] and their copies are on the shuttle!" - M << "Objective #[1]: [hijack_objective.explanation_text]" + to_chat(M, "Objective #[1]: [hijack_objective.explanation_text]") M.mind.special_role = "multiverse traveller" log_game("[M.key] was made a multiverse traveller with the objective to help [usr.real_name] hijack.") else @@ -354,7 +354,7 @@ var/global/list/multiverse = list() new_objective.target = usr.mind new_objective.explanation_text = "Protect [usr.real_name], your copy, and help them defend the innocent from the mobs of multiverse clones." M.mind.objectives += new_objective - M << "Objective #[1]: [new_objective.explanation_text]" + to_chat(M, "Objective #[1]: [new_objective.explanation_text]") M.mind.special_role = "multiverse traveller" log_game("[M.key] was made a multiverse traveller with the objective to help [usr.real_name] protect the station.") @@ -629,17 +629,17 @@ var/global/list/multiverse = list() return if(M.stat != DEAD) - user << "This artifact can only affect the dead!" + to_chat(user, "This artifact can only affect the dead!") return if(!M.mind || !M.client) - user << "There is no soul connected to this body..." + to_chat(user, "There is no soul connected to this body...") return check_spooky()//clean out/refresh the list if(spooky_scaries.len >= 3 && !unlimited) - user << "This artifact can only affect three undead at a time!" + to_chat(user, "This artifact can only affect three undead at a time!") return if(heresy) spawnheresy(M)//oh god why @@ -649,8 +649,8 @@ var/global/list/multiverse = list() M.revive() equip_skeleton(M) spooky_scaries |= M - M << "You have been revived by [user.real_name]!" - M << "They are your master now, assist them even if it costs you your new life!" + to_chat(M, "You have been revived by [user.real_name]!") + to_chat(M, "They are your master now, assist them even if it costs you your new life!") desc = "A shard capable of resurrecting humans as skeleton thralls[unlimited ? "." : ", [spooky_scaries.len]/3 active thralls."]" /obj/item/device/necromantic_stone/proc/check_spooky() @@ -773,15 +773,15 @@ var/global/list/multiverse = list() /obj/item/voodoo/attackby(obj/item/I as obj, mob/user as mob, params) if(target && cooldown < world.time) if(is_hot(I)) - target << "You suddenly feel very hot" + to_chat(target, "You suddenly feel very hot") target.bodytemperature += 50 GiveHint(target) else if(can_puncture(I)) - target << "You feel a stabbing pain in [parse_zone(user.zone_sel.selecting)]!" + to_chat(target, "You feel a stabbing pain in [parse_zone(user.zone_sel.selecting)]!") target.Weaken(2) GiveHint(target) else if(istype(I,/obj/item/weapon/bikehorn)) - target << "HONK" + to_chat(target, "HONK") target << 'sound/items/AirHorn.ogg' target.ear_damage += rand(0,3) GiveHint(target) @@ -792,7 +792,7 @@ var/global/list/multiverse = list() user.drop_item() I.loc = src link = I - user << "You attach [I] to the doll." + to_chat(user, "You attach [I] to the doll.") update_targets() ..() /obj/item/voodoo/check_eye(mob/user as mob) @@ -806,7 +806,7 @@ var/global/list/multiverse = list() if(link) target = null link.loc = get_turf(src) - user << "You remove the [link] from the doll." + to_chat(user, "You remove the [link] from the doll.") link = null update_targets() return @@ -825,7 +825,7 @@ var/global/list/multiverse = list() user.reset_view() user.unset_machine() if("r_leg","l_leg") - user << "You move the doll's legs around." + to_chat(user, "You move the doll's legs around.") var/turf/T = get_step(target,pick(cardinal)) target.Move(T) if("r_arm","l_arm") @@ -840,9 +840,9 @@ var/global/list/multiverse = list() target.ClickOn(T) GiveHint(target) if("head") - user << "You smack the doll's head with your hand." + to_chat(user, "You smack the doll's head with your hand.") target.Dizzy(10) - target << "You suddenly feel as if your head was hit with a hammer!" + to_chat(target, "You suddenly feel as if your head was hit with a hammer!") GiveHint(target,user) cooldown = world.time + cooldown_time @@ -857,10 +857,10 @@ var/global/list/multiverse = list() /obj/item/voodoo/proc/GiveHint(mob/victim,force=0) if(prob(50) || force) var/way = dir2text(get_dir(victim,get_turf(src))) - victim << "You feel a dark presence from [way]" + to_chat(victim, "You feel a dark presence from [way]") if(prob(20) || force) var/area/A = get_area(src) - victim << "You feel a dark presence from [A.name]" + to_chat(victim, "You feel a dark presence from [A.name]") /obj/item/voodoo/fire_act() if(target) diff --git a/code/game/gamemodes/wizard/godhand.dm b/code/game/gamemodes/wizard/godhand.dm index 2bab01e5ec5..8a5ba06f36f 100644 --- a/code/game/gamemodes/wizard/godhand.dm +++ b/code/game/gamemodes/wizard/godhand.dm @@ -22,7 +22,7 @@ if(!iscarbon(user)) //Look ma, no hands return if(user.lying || user.handcuffed) - user << "You can't reach out!" + to_chat(user, "You can't reach out!") return ..() @@ -62,7 +62,7 @@ if(!proximity || target == user || !ismob(target) || !iscarbon(user) || user.lying || user.handcuffed) //getting hard after touching yourself would also be bad return if(user.lying || user.handcuffed) - user << "You can't reach out!" + to_chat(user, "You can't reach out!") return var/mob/M = target M.Stun(2) diff --git a/code/game/gamemodes/wizard/raginmages.dm b/code/game/gamemodes/wizard/raginmages.dm index a3d927970de..cef7b507f82 100644 --- a/code/game/gamemodes/wizard/raginmages.dm +++ b/code/game/gamemodes/wizard/raginmages.dm @@ -14,20 +14,20 @@ var/time_till_chaos = 18000 // Half-hour in /datum/game_mode/wizard/raginmages/announce() - world << "The current game mode is - Ragin' Mages!" - world << "The \red Space Wizard Federation\black is pissed, help defeat all the space wizards!" + to_chat(world, "The current game mode is - Ragin' Mages!") + to_chat(world, "The \red Space Wizard Federation\black is pissed, help defeat all the space wizards!") /datum/game_mode/wizard/raginmages/greet_wizard(var/datum/mind/wizard, var/you_are=1) if (you_are) - wizard.current << "\red You are the Space Wizard!" - wizard.current << "The Space Wizards Federation has given you the following tasks:" + to_chat(wizard.current, "\red You are the Space Wizard!") + to_chat(wizard.current, "The Space Wizards Federation has given you the following tasks:") var/obj_count = 1 for(var/datum/objective/objective in wizard.objectives) - wizard.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(wizard.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ - wizard.current << "Objective Alpha: Make sure the station pays for its actions against our diplomats" + to_chat(wizard.current, "Objective Alpha: Make sure the station pays for its actions against our diplomats") return /datum/game_mode/wizard/raginmages/check_finished() @@ -39,34 +39,34 @@ continue if(!istype(wizard.current,/mob/living/carbon)) if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards - wizard.current << "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums" + to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums") message_admins("[wizard.current] was transformed in the wizard lair, another wizard is likely camping") end_squabble(get_area(wizard.current)) continue if(istype(wizard.current,/mob/living/carbon/brain)) if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards - wizard.current << "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums" + to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums") message_admins("[wizard.current] was brainified in the wizard lair, another wizard is likely camping") end_squabble(get_area(wizard.current)) continue if(wizard.current.stat==DEAD) if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards - wizard.current << "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums" + to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums") message_admins("[wizard.current] died in the wizard lair, another wizard is likely camping") end_squabble(get_area(wizard.current)) continue if(wizard.current.stat==UNCONSCIOUS) if(wizard.current.health < 0) if(istype(get_area(wizard.current), /area/wizard_station)) - wizard.current << "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums" + to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums") message_admins("[wizard.current] went into crit in the wizard lair, another wizard is likely camping") end_squabble(get_area(wizard.current)) else - wizard.current << "\red The Space Wizard Federation is upset with your performance and have terminated your employment." + to_chat(wizard.current, "\red The Space Wizard Federation is upset with your performance and have terminated your employment.") wizard.current.gib() // *REAL* ACTION!! *REAL* DRAMA!! *REAL* BLOODSHED!! continue if(wizard.current.client && wizard.current.client.is_afk() > 10 * 60 * 10) // 10 minutes - wizard.current << "\red The Space Wizard Federation is upset with your performance and have terminated your employment." + to_chat(wizard.current, "\red The Space Wizard Federation is upset with your performance and have terminated your employment.") wizard.current.gib() // Let's keep the round moving continue if(!wizard.current.client) @@ -100,7 +100,7 @@ marked_for_death |= M.current for(var/mob/living/L in marked_for_death) if(L.stat == CONSCIOUS) // Probably a troublemaker - I'd like to see YOU fight when unconscious - L << "STOP FIGHTING." + to_chat(L, "STOP FIGHTING.") L.ghostize() if(istype(L, /mob/living/carbon/brain)) // diediedie @@ -184,5 +184,5 @@ /datum/game_mode/wizard/raginmages/declare_completion() if(finished) feedback_set_details("round_end_result","loss - wizard killed") - world << "\red The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!" + to_chat(world, "\red The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!") ..(1) diff --git a/code/game/gamemodes/wizard/rightandwrong.dm b/code/game/gamemodes/wizard/rightandwrong.dm index b6052320615..eb1e8bce930 100644 --- a/code/game/gamemodes/wizard/rightandwrong.dm +++ b/code/game/gamemodes/wizard/rightandwrong.dm @@ -5,7 +5,7 @@ var/list/magiclist = list("fireball","smoke","blind","mindswap","forcewall","knock","horsemask","charge", "summonitem", "wandnothing", "wanddeath", "wandresurrection", "wandpolymorph", "wandteleport", "wanddoor", "wandfireball", "staffhealing", "armor", "scrying", "staffdoor", "special","voodoo","special") var/list/magicspeciallist = list("staffchange","staffanimation", "wandbelt", "contract", "staffchaos","necromantic") - usr << "You summoned [summon_type ? "magic" : "guns"]!" + to_chat(usr, "You summoned [summon_type ? "magic" : "guns"]!") message_admins("[key_name_admin(usr)] summoned [summon_type ? "magic" : "guns"]!") for(var/mob/living/carbon/human/H in player_list) @@ -136,7 +136,7 @@ H.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS) H.see_in_dark = 8 H.see_invisible = SEE_INVISIBLE_LEVEL_TWO - H << "The walls suddenly disappear." + to_chat(H, "The walls suddenly disappear.") if("voodoo") new /obj/item/voodoo(get_turf(H)) if("special") @@ -154,4 +154,4 @@ new /obj/item/weapon/gun/magic/staff/chaos(get_turf(H)) if("necromantic") new /obj/item/device/necromantic_stone(get_turf(H)) - H << "You suddenly feel lucky." + to_chat(H, "You suddenly feel lucky.") diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm index d7dcc2287a6..08e6117e9bd 100644 --- a/code/game/gamemodes/wizard/soulstone.dm +++ b/code/game/gamemodes/wizard/soulstone.dm @@ -19,11 +19,11 @@ return ..() if(M.has_brain_worms()) //Borer stuff - RR - user << "This being is corrupted by an alien intelligence and cannot be soul trapped." + to_chat(user, "This being is corrupted by an alien intelligence and cannot be soul trapped.") return ..() - + if(jobban_isbanned(M, "cultist") || jobban_isbanned(M, "Syndicate")) - user << "A mysterious force prevents you from trapping this being's soul." + to_chat(user, "A mysterious force prevents you from trapping this being's soul.") return ..() M.attack_log += text("\[[time_stamp()]\] Has had their soul captured with [src.name] by [key_name(user)]") @@ -81,7 +81,7 @@ for(var/mob/living/simple_animal/shade/A in src) A.status_flags &= ~GODMODE A.canmove = 1 - A << "You have been released from your prison, but you are still bound to [U.name]'s will. Help them suceed in their goals at all costs." + to_chat(A, "You have been released from your prison, but you are still bound to [U.name]'s will. Help them suceed in their goals at all costs.") A.loc = U.loc A.cancel_camera() src.icon_state = "soulstone" @@ -108,16 +108,16 @@ var/mob/living/carbon/human/T = target var/obj/item/device/soulstone/C = src if(C.imprinted != "empty") - U << "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!" + to_chat(U, "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!") else if (T.stat == 0) - U << "\red Capture failed!: \black Kill or maim the victim first!" + to_chat(U, "\red Capture failed!: \black Kill or maim the victim first!") else if(T.client == null) - U << "\red Capture failed!: \black The soul has already fled it's mortal frame." + to_chat(U, "\red Capture failed!: \black The soul has already fled it's mortal frame.") else if(C.contents.len) - U << "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room." + to_chat(U, "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room.") else for(var/obj/item/W in T) T.unEquip(W) @@ -141,22 +141,22 @@ S.cancel_camera() C.icon_state = "soulstone2" C.name = "Soul Stone: [S.real_name]" - S << "Your soul has been captured! You are now bound to [U.name]'s will, help them suceed in their goals at all costs." - U << "\blue Capture successful!: \black [T.real_name]'s soul has been ripped from their body and stored within the soul stone." - U << "The soulstone has been imprinted with [S.real_name]'s mind, it will no longer react to other souls." + to_chat(S, "Your soul has been captured! You are now bound to [U.name]'s will, help them suceed in their goals at all costs.") + to_chat(U, "\blue Capture successful!: \black [T.real_name]'s soul has been ripped from their body and stored within the soul stone.") + to_chat(U, "The soulstone has been imprinted with [S.real_name]'s mind, it will no longer react to other souls.") C.imprinted = "[S.name]" qdel(T) if("SHADE") var/mob/living/simple_animal/shade/T = target var/obj/item/device/soulstone/C = src if (T.stat == DEAD) - U << "\red Capture failed!: \black The shade has already been banished!" + to_chat(U, "\red Capture failed!: \black The shade has already been banished!") else if(C.contents.len) - U << "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room." + to_chat(U, "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room.") else if(T.name != C.imprinted) - U << "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!" + to_chat(U, "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!") else T.loc = C //put shade in stone T.status_flags |= GODMODE @@ -164,8 +164,8 @@ T.health = T.maxHealth T.faction |= "\ref[U]" C.icon_state = "soulstone2" - T << "Your soul has been recaptured by the soul stone, its arcane energies are reknitting your ethereal form" - U << "\blue Capture successful!: \black [T.name]'s has been recaptured and stored within the soul stone." + to_chat(T, "Your soul has been recaptured by the soul stone, its arcane energies are reknitting your ethereal form") + to_chat(U, "\blue Capture successful!: \black [T.name]'s has been recaptured and stored within the soul stone.") if("CONSTRUCT") var/obj/structure/constructshell/T = target var/obj/item/device/soulstone/C = src @@ -184,8 +184,8 @@ ticker.mode.cult+=Z.mind ticker.mode.update_cult_icons_added(Z.mind) qdel(T) - Z << "You are a Juggernaut. Though slow, your shell can withstand extreme punishment, create shield walls and even deflect energy weapons, and rip apart enemies and walls alike." - Z << "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs." + to_chat(Z, "You are a Juggernaut. Though slow, your shell can withstand extreme punishment, create shield walls and even deflect energy weapons, and rip apart enemies and walls alike.") + to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.") Z.cancel_camera() qdel(C) @@ -200,8 +200,8 @@ ticker.mode.cult+=Z.mind ticker.mode.update_cult_icons_added(Z.mind) qdel(T) - Z << "You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls." - Z << "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs." + to_chat(Z, "You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls.") + to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.") Z.cancel_camera() qdel(C) @@ -216,12 +216,12 @@ ticker.mode.cult+=Z.mind ticker.mode.update_cult_icons_added(Z.mind) qdel(T) - Z << "You are an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, use magic missile, repair allied constructs (by clicking on them), and most important of all create new constructs (Use your Artificer spell to summon a new construct shell and Summon Soulstone to create a new soulstone)." - Z << "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs." + to_chat(Z, "You are an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, use magic missile, repair allied constructs (by clicking on them), and most important of all create new constructs (Use your Artificer spell to summon a new construct shell and Summon Soulstone to create a new soulstone).") + to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.") Z.cancel_camera() qdel(C) else - U << "\red Creation failed!: \black The soul stone is empty! Go kill someone!" + to_chat(U, "\red Creation failed!: \black The soul stone is empty! Go kill someone!") return /proc/makeNewConstruct(var/mob/living/simple_animal/construct/ctype, var/mob/target, var/mob/stoner = null, cultoverride = 0) @@ -237,8 +237,9 @@ ticker.mode.cult+=newstruct.mind ticker.mode.update_cult_icons_added(newstruct.mind) if(stoner && iswizard(stoner)) - newstruct << "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs." + to_chat(newstruct, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.") else if(stoner && iscultist(stoner)) - newstruct << "You are still bound to serve the cult, follow their orders and help them complete their goals at all costs." - else newstruct << "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs." + to_chat(newstruct, "You are still bound to serve the cult, follow their orders and help them complete their goals at all costs.") + else + to_chat(newstruct, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.") newstruct.cancel_camera() \ No newline at end of file diff --git a/code/game/gamemodes/wizard/spellbook.dm b/code/game/gamemodes/wizard/spellbook.dm index 7422d610fb9..8467da489a5 100644 --- a/code/game/gamemodes/wizard/spellbook.dm +++ b/code/game/gamemodes/wizard/spellbook.dm @@ -26,7 +26,7 @@ for(var/obj/effect/proc_holder/spell/aspell in user.mind.spell_list) if(initial(S.name) == initial(aspell.name)) // Not using directly in case it was learned from one spellbook then upgraded in another if(aspell.spell_level >= aspell.level_max) - user << "This spell cannot be improved further." + to_chat(user, "This spell cannot be improved further.") return 0 else aspell.name = initial(aspell.name) @@ -36,24 +36,24 @@ aspell.charge_counter = aspell.charge_max switch(aspell.spell_level) if(1) - user << "You have improved [aspell.name] into Efficient [aspell.name]." + to_chat(user, "You have improved [aspell.name] into Efficient [aspell.name].") aspell.name = "Efficient [aspell.name]" if(2) - user << "You have further improved [aspell.name] into Quickened [aspell.name]." + to_chat(user, "You have further improved [aspell.name] into Quickened [aspell.name].") aspell.name = "Quickened [aspell.name]" if(3) - user << "You have further improved [aspell.name] into Free [aspell.name]." + to_chat(user, "You have further improved [aspell.name] into Free [aspell.name].") aspell.name = "Free [aspell.name]" if(4) - user << "You have further improved [aspell.name] into Instant [aspell.name]." + to_chat(user, "You have further improved [aspell.name] into Instant [aspell.name].") aspell.name = "Instant [aspell.name]" if(aspell.spell_level >= aspell.level_max) - user << "This spell cannot be strengthened any further." + to_chat(user, "This spell cannot be strengthened any further.") return 1 //No same spell found - just learn it feedback_add_details("wizard_spell_learned",log_name) user.mind.AddSpell(S) - user << "You have learned [S.name]." + to_chat(user, "You have learned [S.name].") return 1 /datum/spellbook_entry/proc/CanRefund(var/mob/living/carbon/human/user,var/obj/item/weapon/spellbook/book) @@ -69,7 +69,7 @@ /datum/spellbook_entry/proc/Refund(var/mob/living/carbon/human/user,var/obj/item/weapon/spellbook/book) //return point value or -1 for failure var/area/wizard_station/A = locate() if(!(user in A.contents)) - user << "You can only refund spells at the wizard lair" + to_chat(user, "You can only refund spells at the wizard lair") return -1 if(!S) S = new spell_type() @@ -303,7 +303,7 @@ user.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS) user.see_in_dark = 8 user.see_invisible = SEE_INVISIBLE_LEVEL_TWO - user << "\blue The walls suddenly disappear." + to_chat(user, "\blue The walls suddenly disappear.") return 1 @@ -425,7 +425,7 @@ user.rightandwrong(0) book.uses += 1 active = 1 - user << "You have cast summon guns and gained an extra charge for your spellbook." + to_chat(user, "You have cast summon guns and gained an extra charge for your spellbook.") return 1 /datum/spellbook_entry/summon/magic @@ -448,7 +448,7 @@ user.rightandwrong(1) book.uses += 1 active = 1 - user << "You have cast summon magic and gained an extra charge for your spellbook." + to_chat(user, "You have cast summon magic and gained an extra charge for your spellbook.") return 1 /obj/item/weapon/spellbook @@ -486,16 +486,16 @@ if(istype(O, /obj/item/weapon/contract)) var/obj/item/weapon/contract/contract = O if(contract.used) - user << "The contract has been used, you can't get your points back now!" + to_chat(user, "The contract has been used, you can't get your points back now!") else - user << "You feed the contract back into the spellbook, refunding your points." + to_chat(user, "You feed the contract back into the spellbook, refunding your points.") uses++ qdel(O) if(istype(O, /obj/item/weapon/antag_spawner/slaughter_demon)) - user << "On second thought, maybe summoning a demon is a bad idea. You refund your points." + to_chat(user, "On second thought, maybe summoning a demon is a bad idea. You refund your points.") uses++ for(var/datum/spellbook_entry/item/bloodbottle/BB in entries) @@ -555,11 +555,11 @@ /obj/item/weapon/spellbook/attack_self(mob/user as mob) if(!owner) - user << "You bind the spellbook to yourself." + to_chat(user, "You bind the spellbook to yourself.") owner = user return if(user != owner) - user << "The [name] does not recognize you as it's owner and refuses to open!" + to_chat(user, "The [name] does not recognize you as it's owner and refuses to open!") return user.set_machine(src) var/dat = "" @@ -656,15 +656,15 @@ if(knownspell.type == S.type) if(user.mind) if(user.mind.special_role == "apprentice" || user.mind.special_role == "Wizard") - user <<"You're already far more versed in this spell than this flimsy how-to book can provide." + to_chat(user, "You're already far more versed in this spell than this flimsy how-to book can provide.") else - user <<"You've already read this one." + to_chat(user, "You've already read this one.") return if(used) recoil(user) else user.mind.AddSpell(S) - user <<"you rapidly read through the arcane book. Suddenly you realize you understand [spellname]!" + to_chat(user, "you rapidly read through the arcane book. Suddenly you realize you understand [spellname]!") user.attack_log += text("\[[time_stamp()]\] [user.real_name] ([user.ckey]) learned the spell [spellname] ([S]).") onlearned(user) @@ -698,7 +698,7 @@ /obj/item/weapon/spellbook/oneuse/smoke/recoil(mob/user as mob) ..() - user <<"Your stomach rumbles..." + to_chat(user, "Your stomach rumbles...") if(user.nutrition) user.nutrition -= 200 if(user.nutrition <= 0) @@ -712,7 +712,7 @@ /obj/item/weapon/spellbook/oneuse/blind/recoil(mob/user as mob) ..() - user <<"You go blind!" + to_chat(user, "You go blind!") user.eye_blind = 10 /obj/item/weapon/spellbook/oneuse/mindswap @@ -734,10 +734,10 @@ stored_swap = null if(!stored_swap) stored_swap = user - user <<"For a moment you feel like you don't even know who you are anymore." + to_chat(user, "For a moment you feel like you don't even know who you are anymore.") return if(stored_swap == user) - user <<"You stare at the book some more, but there doesn't seem to be anything else to learn..." + to_chat(user, "You stare at the book some more, but there doesn't seem to be anything else to learn...") return if(user.mind.special_verbs.len) @@ -766,8 +766,8 @@ for(var/V in user.mind.special_verbs) user.verbs += V - stored_swap <<"You're suddenly somewhere else... and someone else?!" - user <<"Suddenly you're staring at [src] again... where are you, who are you?!" + to_chat(stored_swap, "You're suddenly somewhere else... and someone else?!") + to_chat(user, "Suddenly you're staring at [src] again... where are you, who are you?!") stored_swap = null /obj/item/weapon/spellbook/oneuse/forcewall @@ -778,7 +778,7 @@ /obj/item/weapon/spellbook/oneuse/forcewall/recoil(mob/user as mob) ..() - user <<"You suddenly feel very solid!" + to_chat(user, "You suddenly feel very solid!") var/obj/structure/closet/statue/S = new /obj/structure/closet/statue(user.loc, user) S.timer = 30 user.drop_item() @@ -792,7 +792,7 @@ /obj/item/weapon/spellbook/oneuse/knock/recoil(mob/user as mob) ..() - user <<"You're knocked down!" + to_chat(user, "You're knocked down!") user.Weaken(20) /obj/item/weapon/spellbook/oneuse/horsemask @@ -803,7 +803,7 @@ /obj/item/weapon/spellbook/oneuse/horsemask/recoil(mob/living/carbon/user as mob) if(istype(user, /mob/living/carbon/human)) - user <<"HOR-SIE HAS RISEN" + to_chat(user, "HOR-SIE HAS RISEN") var/obj/item/clothing/mask/horsehead/magichead = new /obj/item/clothing/mask/horsehead magichead.flags |= NODROP //curses! magichead.flags_inv = null //so you can still see their face @@ -813,7 +813,7 @@ user.equip_to_slot_if_possible(magichead, slot_wear_mask, 1, 1) qdel(src) else - user <<"I say thee neigh" + to_chat(user, "I say thee neigh") /obj/item/weapon/spellbook/oneuse/charge spell = /obj/effect/proc_holder/spell/targeted/charge @@ -823,7 +823,7 @@ /obj/item/weapon/spellbook/oneuse/charge/recoil(mob/user as mob) ..() - user <<"[src] suddenly feels very warm!" + to_chat(user, "[src] suddenly feels very warm!") empulse(src, 1, 1) /obj/item/weapon/spellbook/oneuse/summonitem @@ -834,7 +834,7 @@ /obj/item/weapon/spellbook/oneuse/summonitem/recoil(mob/user as mob) ..() - user <<"[src] suddenly vanishes!" + to_chat(user, "[src] suddenly vanishes!") qdel(src) diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm index 37a6c801573..1910e8ffa85 100644 --- a/code/game/gamemodes/wizard/wizard.dm +++ b/code/game/gamemodes/wizard/wizard.dm @@ -17,8 +17,8 @@ var/but_wait_theres_more = 0 /datum/game_mode/wizard/announce() - world << "The current game mode is - Wizard!" - world << "There is a \red SPACE WIZARD\black on the station. You can't let him achieve his objective!" + to_chat(world, "The current game mode is - Wizard!") + to_chat(world, "There is a \red SPACE WIZARD\black on the station. You can't let him achieve his objective!") /datum/game_mode/wizard/can_start()//This could be better, will likely have to recode it later @@ -35,7 +35,7 @@ wizard.special_role = "Wizard" wizard.original = wizard.current if(wizardstart.len == 0) - wizard.current << "\red A starting location for you could not be found, please report this bug!" + to_chat(wizard.current, "\red A starting location for you could not be found, please report this bug!") return 0 return 1 @@ -147,12 +147,12 @@ /datum/game_mode/proc/greet_wizard(var/datum/mind/wizard, var/you_are=1) if (you_are) - wizard.current << "\red You are the Space Wizard!" - wizard.current << "The Space Wizards Federation has given you the following tasks:" + to_chat(wizard.current, "\red You are the Space Wizard!") + to_chat(wizard.current, "The Space Wizards Federation has given you the following tasks:") var/obj_count = 1 for(var/datum/objective/objective in wizard.objectives) - wizard.current << "Objective #[obj_count]: [objective.explanation_text]" + to_chat(wizard.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ return @@ -195,8 +195,8 @@ wizard_mob.species.equip(wizard_mob) - wizard_mob << "You will find a list of available spells in your spell book. Choose your magic arsenal carefully." - wizard_mob << "In your pockets you will find a teleport scroll. Use it as needed." + to_chat(wizard_mob, "You will find a list of available spells in your spell book. Choose your magic arsenal carefully.") + to_chat(wizard_mob, "In your pockets you will find a teleport scroll. Use it as needed.") wizard_mob.mind.store_memory("Remember: do not forget to prepare your spells.") wizard_mob.update_icons() return 1 @@ -231,7 +231,7 @@ /datum/game_mode/wizard/declare_completion(var/ragin = 0) if(finished && !ragin) feedback_set_details("round_end_result","loss - wizard killed") - world << "\red The wizard[(wizards.len>1)?"s":""] has been killed by the crew! The Space Wizards Federation has been taught a lesson they will not soon forget!" + to_chat(world, "\red The wizard[(wizards.len>1)?"s":""] has been killed by the crew! The Space Wizards Federation has been taught a lesson they will not soon forget!") ..() return 1 @@ -282,7 +282,7 @@ i++ text += "
" - world << text + to_chat(world, text) return 1 //OTHER PROCS @@ -307,13 +307,13 @@ Made a proc so this is not repeated 14 (or more) times.*/ /mob/proc/casting() //Removed the stat check because not all spells require clothing now. if(!istype(usr:wear_suit, /obj/item/clothing/suit/wizrobe)) - usr << "I don't feel strong enough without my robe." + to_chat(usr, "I don't feel strong enough without my robe.") return 0 if(!istype(usr:shoes, /obj/item/clothing/shoes/sandal)) - usr << "I don't feel strong enough without my sandals." + to_chat(usr, "I don't feel strong enough without my sandals.") return 0 if(!istype(usr:head, /obj/item/clothing/head/wizard)) - usr << "I don't feel strong enough without my hat." + to_chat(usr, "I don't feel strong enough without my hat.") return 0 else return 1 diff --git a/code/game/gamemodes/xenos/xenos.dm b/code/game/gamemodes/xenos/xenos.dm index 4ae05c7dd21..12dab66e569 100644 --- a/code/game/gamemodes/xenos/xenos.dm +++ b/code/game/gamemodes/xenos/xenos.dm @@ -18,8 +18,8 @@ var/gammaratio = 4 //At what alien to human ratio will the Gamma security level be called and the nuke be made available? /datum/game_mode/xenos/announce() - world << "The current game mode is - Xenos!" - world << "There is an Xenomorph attack on the station.
Aliens - Kill or infect the crew. Protect the Queen.
Crew - Protect the station. Exterminate all aliens.
" + to_chat(world, "The current game mode is - Xenos!") + to_chat(world, "There is an Xenomorph attack on the station.
Aliens - Kill or infect the crew. Protect the Queen.
Crew - Protect the station. Exterminate all aliens.
") /datum/game_mode/xenos/can_start() if(!..()) @@ -157,20 +157,20 @@ /datum/game_mode/xenos/declare_completion() if(station_was_nuked) feedback_set_details("round_end_result","win - xenos nuked") - world << "Crew Victory" - world << "The station was destroyed in a nuclear explosion, preventing the aliens from overrunning it!" + to_chat(world, "Crew Victory") + to_chat(world, "The station was destroyed in a nuclear explosion, preventing the aliens from overrunning it!") else if(result == 1) feedback_set_details("round_end_result","win - xenos killed") - world << "Crew Victory" - world << "The aliens did not succeed and were exterminated by the crew!" + to_chat(world, "Crew Victory") + to_chat(world, "The aliens did not succeed and were exterminated by the crew!") else if(result == 2) feedback_set_details("round_end_result","win - crew killed") - world << "Alien Victory" - world << "The aliens were successful and slaughtered the crew!" + to_chat(world, "Alien Victory") + to_chat(world, "The aliens were successful and slaughtered the crew!") else feedback_set_details("round_end_result","win - crew escaped") - world << "Draw" - world << "The crew has escaped from the aliens but did not exterminate them, allowing them to overrun the station." + to_chat(world, "Draw") + to_chat(world, "The crew has escaped from the aliens but did not exterminate them, allowing them to overrun the station.") var/text = "
There were [xenos.len] aliens." text += "
The aliens were:" @@ -186,7 +186,7 @@ else text += "body destroyed" text += ")" - world << text + to_chat(world, text) ..() return 1 \ No newline at end of file diff --git a/code/game/jobs/job/support_chaplain.dm b/code/game/jobs/job/support_chaplain.dm index d9de164d5de..29a0375b849 100644 --- a/code/game/jobs/job/support_chaplain.dm +++ b/code/game/jobs/job/support_chaplain.dm @@ -145,7 +145,7 @@ accepted = 1 if("No") if(outoftime) - H << "Welp, out of time, buddy. You're stuck. Next time choose faster." + to_chat(H, "Welp, out of time, buddy. You're stuck. Next time choose faster.") accepted = 1 if(ticker) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index f5dc80dcae7..9f9658a9dff 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -17,7 +17,7 @@ var/global/datum/controller/occupations/job_master occupations = list() var/list/all_jobs = subtypesof(/datum/job) if(!all_jobs.len) - world << "\red \b Error setting up jobs, no job datums found" + to_chat(world, "\red \b Error setting up jobs, no job datums found") return 0 for(var/J in all_jobs) var/datum/job/job = new J() @@ -383,7 +383,7 @@ var/global/datum/controller/occupations/job_master job.equip(H) job.apply_fingerprints(H) else - H << "Your job is [rank] and the game just can't handle it! Please report this bug to an administrator." + to_chat(H, "Your job is [rank] and the game just can't handle it! Please report this bug to an administrator.") H.job = rank @@ -431,7 +431,7 @@ var/global/datum/controller/occupations/job_master H.mind.store_memory(remembered_info) spawn(0) - H << "\blueYour account number is: [M.account_number], your account pin is: [M.remote_access_pin]" + to_chat(H, "\blueYour account number is: [M.account_number], your account pin is: [M.remote_access_pin]") var/alt_title = null if(H.mind) @@ -464,10 +464,10 @@ var/global/datum/controller/occupations/job_master H.equip_to_slot_or_del(BPK, slot_back,1) H.species.equip(H) - H << "You are the [alt_title ? alt_title : rank]." - H << "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this." + to_chat(H, "You are the [alt_title ? alt_title : rank].") + to_chat(H, "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.") if(job.req_admin_notify) - H << "You are playing a job that is important for the game progression. If you have to disconnect, please notify the admins via adminhelp." + to_chat(H, "You are playing a job that is important for the game progression. If you have to disconnect, please notify the admins via adminhelp.") spawnId(H, rank, alt_title) H.equip_to_slot_or_del(new /obj/item/device/radio/headset(H), slot_l_ear) diff --git a/code/game/jobs/whitelist.dm b/code/game/jobs/whitelist.dm index 2574e4bdcd0..1514b0440a8 100644 --- a/code/game/jobs/whitelist.dm +++ b/code/game/jobs/whitelist.dm @@ -24,7 +24,7 @@ var/list/whitelist = list() if(check_rights(R_ADMIN, 0)) return 1 if(!dbcon.IsConnected()) - usr << "\red Unable to connect to whitelist database. Please try again later.
" + to_chat(usr, "\red Unable to connect to whitelist database. Please try again later.
") return 0 else var/DBQuery/query = dbcon.NewQuery("SELECT job FROM [format_table_name("whitelist")] WHERE ckey='[M.key]'") @@ -69,7 +69,7 @@ var/list/whitelist = list() if(!alien_whitelist) return 0 if(!dbcon.IsConnected()) - usr << "\red Unable to connect to whitelist database. Please try again later.
" + to_chat(usr, "\red Unable to connect to whitelist database. Please try again later.
") return 0 else var/DBQuery/query = dbcon.NewQuery("SELECT species FROM [format_table_name("whitelist")] WHERE ckey='[M.key]'") diff --git a/code/game/machinery/Freezer.dm b/code/game/machinery/Freezer.dm index 49c1fb8d325..bb8f7ac9184 100644 --- a/code/game/machinery/Freezer.dm +++ b/code/game/machinery/Freezer.dm @@ -60,7 +60,7 @@ if (istype(I, /obj/item/weapon/wrench)) if(!panel_open) - user << "Open the maintenance panel first." + to_chat(user, "Open the maintenance panel first.") return var/list/choices = list("West" = WEST, "East" = EAST, "South" = SOUTH, "North" = NORTH) var/selected = input(user,"Select a direction for the connector.", "Connector Direction") in choices @@ -92,7 +92,7 @@ /obj/machinery/atmospherics/unary/cold_sink/freezer/attack_hand(mob/user as mob) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return src.ui_interact(user) @@ -220,7 +220,7 @@ if (istype(I, /obj/item/weapon/wrench)) if(!panel_open) - user << "Open the maintenance panel first." + to_chat(user, "Open the maintenance panel first.") return var/list/choices = list("West" = WEST, "East" = EAST, "South" = SOUTH, "North" = NORTH) var/selected = input(user,"Select a direction for the connector.", "Connector Direction") in choices @@ -252,7 +252,7 @@ /obj/machinery/atmospherics/unary/heat_reservoir/heater/attack_hand(mob/user as mob) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return src.ui_interact(user) diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm index 7b7aa831a46..fbc52904117 100644 --- a/code/game/machinery/OpTable.dm +++ b/code/game/machinery/OpTable.dm @@ -45,7 +45,7 @@ /obj/machinery/optable/attack_hand(mob/user as mob) if (HULK in usr.mutations) - usr << text("\blue You destroy the table.") + to_chat(usr, text("\blue You destroy the table.")) visible_message("\red [usr] destroys the operating table!") src.density = 0 qdel(src) @@ -129,18 +129,18 @@ if(istype(W, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "You deconstruct the table." + to_chat(user, "You deconstruct the table.") new /obj/item/stack/sheet/plasteel(loc, 5) qdel(src) /obj/machinery/optable/proc/check_table(mob/living/carbon/patient as mob) if(src.victim && get_turf(victim) == get_turf(src) && victim.lying) - usr << "The table is already occupied!" + to_chat(usr, "The table is already occupied!") return 0 if(patient.buckled) - usr << "Unbuckle first!" + to_chat(usr, "Unbuckle first!") return 0 return 1 diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm index e34303b725b..f21ad0d03ee 100644 --- a/code/game/machinery/PDApainter.dm +++ b/code/game/machinery/PDApainter.dm @@ -43,7 +43,7 @@ /obj/machinery/pdapainter/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/device/pda)) if(storedpda) - user << "There is already a PDA inside." + to_chat(user, "There is already a PDA inside.") return else var/obj/item/device/pda/P = usr.get_active_hand() @@ -72,7 +72,7 @@ storedpda.desc = P.desc else - user << "The [src] is empty." + to_chat(user, "The [src] is empty.") /obj/machinery/pdapainter/verb/ejectpda() @@ -85,7 +85,7 @@ storedpda = null update_icon() else - usr << "The [src] is empty." + to_chat(usr, "The [src] is empty.") /obj/machinery/pdapainter/power_change() diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index b743b26fc8f..238e071ebe9 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -83,7 +83,7 @@ if (istype(G, /obj/item/weapon/wrench)) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(dir == 4) orient = "LEFT" @@ -109,7 +109,7 @@ return if (panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if (!src.connected) @@ -226,7 +226,7 @@ return 1 if(panel_open) - usr << "Close the maintenance panel first." + to_chat(usr, "Close the maintenance panel first.") return 0 if ((usr.contents.Find(src) || ((get_dist(src, usr) <= 1) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon/ai))) @@ -234,11 +234,11 @@ if (src.connected) if (src.connected.occupant) if (src.connected.occupant.stat == DEAD) - usr << "This person has no life for to preserve anymore. Take them to a department capable of reanimating them." + to_chat(usr, "This person has no life for to preserve anymore. Take them to a department capable of reanimating them.") else if(src.connected.occupant.health > src.connected.min_health || (href_list["chemical"] in connected.emergency_chems)) src.connected.inject_chemical(usr,href_list["chemical"],text2num(href_list["amount"])) else - usr << "This person is not in good enough condition for sleepers to be effective! Use another means of treatment, such as cryogenics!" + to_chat(usr, "This person is not in good enough condition for sleepers to be effective! Use another means of treatment, such as cryogenics!") if (href_list["removebeaker"]) src.connected.remove_beaker() if (href_list["togglefilter"]) @@ -351,7 +351,7 @@ if(world.timeofday > (R.last_addiction_dose + ADDICTION_SPEEDUP_TIME)) // 2.5 minutes addiction_removal_chance = 10 if(prob(addiction_removal_chance)) - occupant << "You no longer feel reliant on [R.name]!" + to_chat(occupant, "You no longer feel reliant on [R.name]!") occupant.reagents.addiction_list.Remove(R) updateDialog() @@ -371,7 +371,7 @@ if(istype(G, /obj/item/weapon/reagent_containers/glass)) if(!beaker) if (!user.drop_item()) - user << "\The [G] is stuck to you!" + to_chat(user, "\The [G] is stuck to you!") return beaker = G @@ -380,22 +380,22 @@ return else - user << "The sleeper has a beaker already." + to_chat(user, "The sleeper has a beaker already.") return if (istype(G, /obj/item/weapon/screwdriver)) if(src.occupant) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "sleeper-o", "sleeper-open", G) return if (istype(G, /obj/item/weapon/wrench)) if(src.occupant) - user << "The scanner is occupied." + to_chat(user, "The scanner is occupied.") return if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(dir == 4) orient = "LEFT" @@ -412,23 +412,23 @@ if(istype(G, /obj/item/weapon/grab)) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(!ismob(G:affecting)) return if(src.occupant) - user << "The sleeper is already occupied!" + to_chat(user, "The sleeper is already occupied!") return for(var/mob/living/carbon/slime/M in range(1,G:affecting)) if(M.Victim == G:affecting) - usr << "[G:affecting.name] will not fit into the sleeper because they have a slime latched onto their head." + to_chat(usr, "[G:affecting.name] will not fit into the sleeper because they have a slime latched onto their head.") return visible_message("[user] starts putting [G:affecting:name] into the sleeper.") if(do_after(user, 20, target = G:affecting)) if(src.occupant) - user << "The sleeper is already occupied!" + to_chat(user, "The sleeper is already occupied!") return if(!G || !G:affecting) return var/mob/M = G:affecting @@ -438,7 +438,7 @@ M.forceMove(src) src.occupant = M src.icon_state = "sleeper" - M << "You feel cool air surround you. You go numb as your senses turn inward." + to_chat(M, "You feel cool air surround you. You go numb as your senses turn inward.") src.add_fingerprint(user) qdel(G) @@ -520,7 +520,7 @@ /obj/machinery/sleeper/proc/inject_chemical(mob/living/user as mob, chemical, amount) if (!(chemical in injection_chems)) - user << "The sleeper does not offer that chemical!" + to_chat(user, "The sleeper does not offer that chemical!") return if(src.occupant) @@ -529,13 +529,13 @@ src.occupant.reagents.add_reagent(chemical, amount) return else - user << "You can not inject any more of this chemical." + to_chat(user, "You can not inject any more of this chemical.") return else - user << "The patient rejects the chemicals!" + to_chat(user, "The patient rejects the chemicals!") return else - user << "There's no occupant in the sleeper!" + to_chat(user, "There's no occupant in the sleeper!") return /obj/machinery/sleeper/verb/eject() @@ -580,20 +580,20 @@ if(!istype(user.loc, /turf) || !istype(O.loc, /turf)) // are you in a container/closet/pod/etc? return if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(occupant) - user << "The sleeper is already occupied!" + to_chat(user, "The sleeper is already occupied!") return var/mob/living/L = O if(!istype(L) || L.buckled) return if(L.abiotic()) - user << "Subject cannot have abiotic items on." + to_chat(user, "Subject cannot have abiotic items on.") return for(var/mob/living/carbon/slime/M in range(1,L)) if(M.Victim == L) - usr << "[L.name] will not fit into the sleeper because they have a slime latched onto their head." + to_chat(usr, "[L.name] will not fit into the sleeper because they have a slime latched onto their head.") return if(L == user) visible_message("[user] starts climbing into the sleeper.") @@ -602,7 +602,7 @@ if(do_after(user, 20, target = L)) if(src.occupant) - user << ">The sleeper is already occupied!" + to_chat(user, ">The sleeper is already occupied!") return if(!L) return @@ -612,7 +612,7 @@ L.forceMove(src) src.occupant = L src.icon_state = "sleeper" - L << "You feel cool air surround you. You go numb as your senses turn inward." + to_chat(L, "You feel cool air surround you. You go numb as your senses turn inward.") src.add_fingerprint(user) if(user.pulling == L) user.stop_pulling() @@ -629,21 +629,21 @@ if(usr.stat != 0 || !(ishuman(usr))) return if(src.occupant) - usr << "The sleeper is already occupied!" + to_chat(usr, "The sleeper is already occupied!") return if (panel_open) - usr << "Close the maintenance panel first." + to_chat(usr, "Close the maintenance panel first.") return if(usr.restrained() || usr.stat || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other return for(var/mob/living/carbon/slime/M in range(1,usr)) if(M.Victim == usr) - usr << "You're too busy getting your life sucked out of you." + to_chat(usr, "You're too busy getting your life sucked out of you.") return visible_message("[usr] starts climbing into the sleeper.") if(do_after(usr, 20, target = usr)) if(src.occupant) - usr << "The sleeper is already occupied!" + to_chat(usr, "The sleeper is already occupied!") return usr.stop_pulling() usr.client.perspective = EYE_PERSPECTIVE diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm index 21f66a0a148..45ee6e0f4c9 100644 --- a/code/game/machinery/adv_med.dm +++ b/code/game/machinery/adv_med.dm @@ -42,17 +42,17 @@ /obj/machinery/bodyscanner/attackby(var/obj/item/weapon/G as obj, var/mob/user as mob) if (istype(G, /obj/item/weapon/screwdriver)) if(src.occupant) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "bodyscanner-o", "bodyscanner-open", G) return if (istype(G, /obj/item/weapon/wrench)) if(src.occupant) - user << "The scanner is occupied." + to_chat(user, "The scanner is occupied.") return if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(dir == 4) dir = 8 @@ -68,20 +68,20 @@ if(istype(G, /obj/item/weapon/grab)) var/obj/item/weapon/grab/TYPECAST_YOUR_SHIT = G if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(!ismob(TYPECAST_YOUR_SHIT.affecting)) return if(occupant) - user << "The scanner is already occupied!" + to_chat(user, "The scanner is already occupied!") return for(var/mob/living/carbon/slime/M in range(1, TYPECAST_YOUR_SHIT.affecting)) if(M.Victim == TYPECAST_YOUR_SHIT.affecting) - user << "[TYPECAST_YOUR_SHIT.affecting.name] has a fucking slime attached to them, deal with that first." + to_chat(user, "[TYPECAST_YOUR_SHIT.affecting.name] has a fucking slime attached to them, deal with that first.") return var/mob/M = TYPECAST_YOUR_SHIT.affecting if(M.abiotic()) - user << "Subject cannot have abiotic items on." + to_chat(user, "Subject cannot have abiotic items on.") return /*if(M.client) M.client.perspective = EYE_PERSPECTIVE @@ -105,20 +105,20 @@ if(!ishuman(user) && !isrobot(user)) return 0 //not a borg or human if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return 0 //panel open if(occupant) - user << "\The [src] is already occupied." + to_chat(user, "\The [src] is already occupied.") return 0 //occupied if(O.buckled) return 0 if(O.abiotic()) - user << "Subject cannot have abiotic items on." + to_chat(user, "Subject cannot have abiotic items on.") return 0 for(var/mob/living/carbon/slime/M in range(1, O)) if(M.Victim == O) - user << "[O] has a fucking slime attached to them, deal with that first." + to_chat(user, "[O] has a fucking slime attached to them, deal with that first.") return 0 if(O == user) @@ -268,7 +268,7 @@ if (istype(G, /obj/item/weapon/wrench)) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(dir == 4) dir = 8 @@ -292,7 +292,7 @@ return if (panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return if(!src.connected) diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm index 54fd1edeaf3..9869e2650f9 100644 --- a/code/game/machinery/ai_slipper.dm +++ b/code/game/machinery/ai_slipper.dm @@ -36,7 +36,7 @@ else // trying to unlock the interface if (src.allowed(usr)) locked = !locked - user << "You [ locked ? "lock" : "unlock"] the device." + to_chat(user, "You [ locked ? "lock" : "unlock"] the device.") if (locked) if (user.machine==src) user.unset_machine() @@ -45,7 +45,7 @@ if (user.machine==src) src.attack_hand(usr) else - user << "\red Access denied." + to_chat(user, "\red Access denied.") return return @@ -57,7 +57,7 @@ return if ( (get_dist(src, user) > 1 )) if (!istype(user, /mob/living/silicon)) - user << text("Too far away.") + to_chat(user, text("Too far away.")) user.unset_machine() user << browse(null, "window=ai_slipper") return @@ -67,7 +67,7 @@ if (istype(loc, /turf)) loc = loc:loc if (!istype(loc, /area)) - user << text("Turret badly positioned - loc.loc is [].", loc) + to_chat(user, text("Turret badly positioned - loc.loc is [].", loc)) return var/area/area = loc var/t = "AI Liquid Dispenser ([area.name])
" @@ -87,7 +87,7 @@ return 1 if (src.locked) if (!istype(usr, /mob/living/silicon)) - usr << "Control panel is locked!" + to_chat(usr, "Control panel is locked!") return if (href_list["toggleOn"]) src.disabled = !src.disabled diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index cff929346b8..4a2d7103593 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -430,7 +430,7 @@ signal.data["sigtype"] = "command" radio_connection.post_signal(src, signal, RADIO_FROM_AIRALARM) -// world << text("Signal [] Broadcasted to []", command, target) +// to_chat(world, text("Signal [] Broadcasted to []", command, target)) return 1 @@ -854,7 +854,7 @@ return STATUS_CLOSE if(aidisabled && (isAI(user) || isrobot(user))) - user << "AI control for \the [src] interface has been disabled." + to_chat(user, "AI control for \the [src] interface has been disabled.") return STATUS_CLOSE . = shorted ? STATUS_DISABLED : STATUS_INTERACTIVE @@ -988,7 +988,7 @@ return input_temperature = input_temperature + T0C if(input_temperature > max_temperature || input_temperature < min_temperature) - usr << "Temperature must be between [min_temperature_c]C and [max_temperature_c]C" + to_chat(usr, "Temperature must be between [min_temperature_c]C and [max_temperature_c]C") else target_temperature = input_temperature return 1 @@ -1007,9 +1007,9 @@ switch(buildstage) if(2) if(istype(W, /obj/item/weapon/screwdriver)) // Opening that Air Alarm up. - //user << "You pop the Air Alarm's maintence panel open." +// to_chat(user, "You pop the Air Alarm's maintence panel open.") wiresexposed = !wiresexposed - user << "The wires have been [wiresexposed ? "exposed" : "unexposed"]" + to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"]") update_icon() return @@ -1027,15 +1027,15 @@ if (istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda))// trying to unlock the interface with an ID card if(stat & (NOPOWER|BROKEN)) - user << "It does nothing" + to_chat(user, "It does nothing") return else if(allowed(usr) && !wires.IsIndexCut(AALARM_WIRE_IDSCAN)) locked = !locked - user << "\blue You [ locked ? "lock" : "unlock"] the Air Alarm interface." + to_chat(user, "\blue You [ locked ? "lock" : "unlock"] the Air Alarm interface.") updateUsrDialog() else - user << "\red Access denied." + to_chat(user, "\red Access denied.") return @@ -1044,10 +1044,10 @@ if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil = W if(coil.amount < 5) - user << "You need more cable for this!" + to_chat(user, "You need more cable for this!") return - user << "You wire \the [src]!" + to_chat(user, "You wire \the [src]!") coil.amount -= 5 if(!coil.amount) qdel(coil) @@ -1058,10 +1058,10 @@ return else if(istype(W, /obj/item/weapon/crowbar)) - user << "You start prying out the circuit." + to_chat(user, "You start prying out the circuit.") playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) if(do_after(user,20, target = src)) - user << "You pry out the circuit!" + to_chat(user, "You pry out the circuit!") var/obj/item/weapon/airalarm_electronics/circuit = new /obj/item/weapon/airalarm_electronics() circuit.loc = user.loc buildstage = 0 @@ -1069,14 +1069,14 @@ return if(0) if(istype(W, /obj/item/weapon/airalarm_electronics)) - user << "You insert the circuit!" + to_chat(user, "You insert the circuit!") qdel(W) buildstage = 1 update_icon() return else if(istype(W, /obj/item/weapon/wrench)) - user << "You remove the fire alarm assembly from the wall!" + to_chat(user, "You remove the fire alarm assembly from the wall!") new /obj/item/mounted/frame/alarm_frame(get_turf(user)) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) qdel(src) @@ -1094,9 +1094,9 @@ /obj/machinery/alarm/examine(mob/user) ..(user) if (buildstage < 2) - user << "It is not wired." + to_chat(user, "It is not wired.") if (buildstage < 1) - user << "The circuit is missing." + to_chat(user, "The circuit is missing.") /* AIR ALARM CIRCUIT diff --git a/code/game/machinery/atmo_control.dm b/code/game/machinery/atmo_control.dm index 97a99e7899d..80d588179bf 100644 --- a/code/game/machinery/atmo_control.dm +++ b/code/game/machinery/atmo_control.dm @@ -73,10 +73,10 @@ obj/machinery/air_sensor return 1 if(istype(W, /obj/item/weapon/wrench)) if(bolts) - usr << "The [src] is bolted to the floor! You can't detach it like this." + to_chat(usr, "The [src] is bolted to the floor! You can't detach it like this.") return 1 playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to unfasten \the [src]..." + to_chat(user, "\blue You begin to unfasten \the [src]...") if(do_after(user, 40, target = src)) user.visible_message("[user] unfastens \the [src].", "\blue You have unfastened \the [src].", "You hear ratchet.") new /obj/item/pipe_gsensor(src.loc) @@ -299,7 +299,7 @@ legend { if(!isnull(G.id_tag) && G.frequency == frequency) sensor_list|=G.id_tag if(!sensor_list.len) - user << "No sensors on this frequency." + to_chat(user, "No sensors on this frequency.") return MT_ERROR // Have the user pick one of them and name its label @@ -320,7 +320,7 @@ legend { if(!isnull(G.id_tag) && G.frequency == frequency) sensor_list|=G.id_tag if(!sensor_list.len) - user << "No sensors on this frequency." + to_chat(user, "No sensors on this frequency.") return MT_ERROR var/label = sensors[href_list["edit_sensor"]] var/sensor = input(user, "Select a sensor:", "Sensor Data", href_list["edit_sensor"]) as null|anything in sensor_list diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 0f7688bdadb..14b3ca3fc59 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -338,7 +338,7 @@ update_flag /obj/machinery/portable_atmospherics/canister/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob, params) if(iswelder(W) && src.destroyed) if(weld(W, user)) - user << "\blue You salvage whats left of \the [src]" + to_chat(user, "\blue You salvage whats left of \the [src]") var/obj/item/stack/sheet/metal/M = new /obj/item/stack/sheet/metal(src.loc) M.amount = 3 qdel(src) @@ -360,7 +360,7 @@ update_flag transfer_moles = pressure_delta*thejetpack.volume/(air_contents.temperature * R_IDEAL_GAS_EQUATION)//Actually transfer the gas var/datum/gas_mixture/removed = air_contents.remove(transfer_moles) thejetpack.merge(removed) - user << "You pulse-pressurize your jetpack from the tank." + to_chat(user, "You pulse-pressurize your jetpack from the tank.") return ..() @@ -478,7 +478,7 @@ update_flag else name = "canister" else - usr << "\red As you attempted to rename it the pressure rose!" + to_chat(usr, "\red As you attempted to rename it the pressure rose!") if (href_list["choice"] == "Primary color") if (is_a_color(href_list["icon"],"prim")) @@ -629,7 +629,7 @@ update_flag return 0 // Do after stuff here - user << "You start to slice away at \the [src]..." + to_chat(user, "You start to slice away at \the [src]...") playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) busy = 1 if(do_after(user, 50, target = src)) diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm index ebf9126017f..b2b7b1efc06 100644 --- a/code/game/machinery/atmoalter/meter.dm +++ b/code/game/machinery/atmoalter/meter.dm @@ -106,7 +106,7 @@ else t += "The connect error light is blinking." - user << t + to_chat(user, t) /obj/machinery/meter/Click() if(istype(usr, /mob/living/silicon/ai)) // ghosts can call ..() for examine @@ -123,7 +123,7 @@ if (!istype(W, /obj/item/weapon/wrench)) return ..() playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to unfasten \the [src]..." + to_chat(user, "\blue You begin to unfasten \the [src]...") if (do_after(user, 40, target = src)) user.visible_message( \ "[user] unfastens \the [src].", \ diff --git a/code/game/machinery/atmoalter/portable_atmospherics.dm b/code/game/machinery/atmoalter/portable_atmospherics.dm index 92f3cb8211e..21eee7b52ac 100644 --- a/code/game/machinery/atmoalter/portable_atmospherics.dm +++ b/code/game/machinery/atmoalter/portable_atmospherics.dm @@ -91,21 +91,21 @@ else if (istype(W, /obj/item/weapon/wrench)) if(connected_port) disconnect() - user << "\blue You disconnect [name] from the port." + to_chat(user, "\blue You disconnect [name] from the port.") update_icon() return else var/obj/machinery/atmospherics/unary/portables_connector/possible_port = locate(/obj/machinery/atmospherics/unary/portables_connector/) in loc if(possible_port) if(connect(possible_port)) - user << "\blue You connect [name] to the port." + to_chat(user, "\blue You connect [name] to the port.") update_icon() return else - user << "\blue [name] failed to connect to the port." + to_chat(user, "\blue [name] failed to connect to the port.") return else - user << "\blue Nothing happens." + to_chat(user, "\blue Nothing happens.") return else if ((istype(W, /obj/item/device/analyzer)) && get_dist(user, src) <= 1) diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index a62f87ee098..1790dec775d 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -181,7 +181,7 @@ name = "[name] (ID [id])" /obj/machinery/portable_atmospherics/scrubber/huge/attack_hand(var/mob/user as mob) - usr << "You can't directly interact with this machine. Use the area atmos computer." + to_chat(usr, "You can't directly interact with this machine. Use the area atmos computer.") /obj/machinery/portable_atmospherics/scrubber/huge/update_icon() src.overlays = 0 @@ -194,15 +194,15 @@ /obj/machinery/portable_atmospherics/scrubber/huge/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob, params) if(istype(W, /obj/item/weapon/wrench)) if(stationary) - user << "The bolts are too tight for you to unscrew!" + to_chat(user, "The bolts are too tight for you to unscrew!") return if(on) - user << "Turn it off first!" + to_chat(user, "Turn it off first!") return anchored = !anchored playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "You [anchored ? "wrench" : "unwrench"] \the [src]." + to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") return else if ((istype(W, /obj/item/device/analyzer)) && get_dist(user, src) <= 1) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index ea9fab11e96..9021a1a2127 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -108,7 +108,7 @@ /obj/machinery/autolathe/attackby(obj/item/O, mob/user, params) if (busy) - user << "The autolathe is busy. Please wait for completion of previous operation." + to_chat(user, "The autolathe is busy. Please wait for completion of previous operation.") return 1 if(default_deconstruction_screwdriver(user, "autolathe_t", "autolathe", O)) @@ -143,13 +143,13 @@ var/material_amount = materials.get_item_material_amount(O) if(!material_amount) - user << "This object does not contain sufficient amounts of metal or glass to be accepted by the autolathe." + to_chat(user, "This object does not contain sufficient amounts of metal or glass to be accepted by the autolathe.") return 1 if(!materials.has_space(material_amount)) - user << "The autolathe is full. Please remove metal or glass from the autolathe in order to insert more." + to_chat(user, "The autolathe is full. Please remove metal or glass from the autolathe in order to insert more.") return 1 if(!user.unEquip(O)) - user << "\The [O] is stuck to you and cannot be placed into the autolathe." + to_chat(user, "\The [O] is stuck to you and cannot be placed into the autolathe.") return 1 busy = 1 @@ -160,10 +160,10 @@ flick("autolathe_o",src)//plays metal insertion animation if (O.materials[MAT_GLASS]) flick("autolathe_r",src)//plays glass insertion animation - user << "You insert [inserted] sheet[inserted>1 ? "s" : ""] to the autolathe." + to_chat(user, "You insert [inserted] sheet[inserted>1 ? "s" : ""] to the autolathe.") use_power(inserted*100) else - user << "You insert a material total of [inserted] to the autolathe." + to_chat(user, "You insert a material total of [inserted] to the autolathe.") use_power(max(500,inserted/10)) qdel(O) busy = 0 @@ -213,7 +213,7 @@ if((queue.len+1) 0) - user << "\red There is already a queen in there." + to_chat(user, "\red There is already a queen in there.") else health = 10 nutrilevel += 10 user.drop_item() del(O) - user << "\blue You carefully insert the queen into [src], she gets busy making a hive." + to_chat(user, "\blue You carefully insert the queen into [src], she gets busy making a hive.") bees_in_hive = 0 else if(istype(O, /obj/item/beezeez)) beezeez += 100 nutrilevel += 10 user.drop_item() if(health > 0) - user << "\blue You insert [O] into [src]. A relaxed humming appears to pick up." + to_chat(user, "\blue You insert [O] into [src]. A relaxed humming appears to pick up.") else - user << "\blue You insert [O] into [src]. Now it just needs some bees." + to_chat(user, "\blue You insert [O] into [src]. Now it just needs some bees.") del(O) else if(istype(O, /obj/item/weapon/minihoe)) if(health > 0) - user << "\red You begin to dislodge the apiary from the tray, the bees don't like that." + to_chat(user, "\red You begin to dislodge the apiary from the tray, the bees don't like that.") angry_swarm(user) else - user << "\blue You begin to dislodge the dead apiary from the tray." + to_chat(user, "\blue You begin to dislodge the dead apiary from the tray.") if(do_after(user, 50, target = src)) new hydrotray_type(src.loc) new /obj/item/apiary(src.loc) - user << "\red You dislodge the apiary from the tray." + to_chat(user, "\red You dislodge the apiary from the tray.") del(src) else if(istype(O, /obj/item/weapon/bee_net)) var/obj/item/weapon/bee_net/N = O if(N.caught_bees > 0) - user << "\blue You empty the bees into the apiary." + to_chat(user, "\blue You empty the bees into the apiary.") bees_in_hive += N.caught_bees N.caught_bees = 0 else - user << "\blue There are no more bees in the net." + to_chat(user, "\blue There are no more bees in the net.") else if(istype(O, /obj/item/weapon/reagent_containers/glass)) var/obj/item/weapon/reagent_containers/glass/G = O if(harvestable_honey > 0) if(health > 0) - user << "\red You begin to harvest the honey. The bees don't seem to like it." + to_chat(user, "\red You begin to harvest the honey. The bees don't seem to like it.") angry_swarm(user) else - user << "\blue You begin to harvest the honey." + to_chat(user, "\blue You begin to harvest the honey.") if(do_after(user,50, target = src)) G.reagents.add_reagent("honey",harvestable_honey) harvestable_honey = 0 - user << "\blue You successfully harvest the honey." + to_chat(user, "\blue You successfully harvest the honey.") else - user << "\blue There is no honey left to harvest." + to_chat(user, "\blue There is no honey left to harvest.") else angry_swarm(user) ..() @@ -241,5 +241,5 @@ if(toxic > 0) H.reagents.add_reagent("toxin", toxic) - usr << "\blue You harvest the honeycomb from the hive. There is a wild buzzing!" + to_chat(usr, "\blue You harvest the honeycomb from the hive. There is a wild buzzing!") angry_swarm(usr) diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm index f63f4e333c1..fc00e8740d3 100644 --- a/code/game/machinery/biogenerator.dm +++ b/code/game/machinery/biogenerator.dm @@ -67,15 +67,15 @@ /obj/machinery/biogenerator/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/weapon/reagent_containers/glass) && !panel_open) if(beaker) - user << "A container is already loaded into the machine." + to_chat(user, "A container is already loaded into the machine.") return else if(!user.drop_item()) - user << "\The [O] is stuck to you!" + to_chat(user, "\The [O] is stuck to you!") return O.forceMove(src) beaker = O - user << "You add the container to the machine." + to_chat(user, "You add the container to the machine.") updateUsrDialog() update_icon() return @@ -93,15 +93,15 @@ else if(istype(O, /obj/item/weapon/crowbar)) else if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") else if(processing) - user << "The biogenerator is currently processing." + to_chat(user, "The biogenerator is currently processing.") else if(istype(O, /obj/item/weapon/storage/bag/plants)) var/i = 0 for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in contents) i++ if(i >= max_items) - user << "The biogenerator is already full! Activate it." + to_chat(user, "The biogenerator is already full! Activate it.") else for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in O.contents) if(i >= max_items) @@ -109,24 +109,24 @@ G.forceMove(src) i++ if(i < max_items) - user << "You empty the plant bag into the biogenerator." + to_chat(user, "You empty the plant bag into the biogenerator.") else if(O.contents.len == 0) - user << "You empty the plant bag into the biogenerator, filling it to its capacity." + to_chat(user, "You empty the plant bag into the biogenerator, filling it to its capacity.") else - user << "You fill the biogenerator to its capacity." + to_chat(user, "You fill the biogenerator to its capacity.") else if(!istype(O, /obj/item/weapon/reagent_containers/food/snacks/grown) && !istype(O, /obj/item/weapon/crowbar)) - user << "You can not put this in [src.name]" + to_chat(user, "You can not put this in [src.name]") else var/i = 0 for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in contents) i++ if(i >= max_items) - user << "The biogenerator is full! Activate it." + to_chat(user, "The biogenerator is full! Activate it.") else user.unEquip(O) O.forceMove(src) - user << "You put [O.name] in [src.name]" + to_chat(user, "You put [O.name] in [src.name]") default_deconstruction_crowbar(O) @@ -212,7 +212,7 @@ if (src.stat != 0) //NOPOWER etc return if(src.processing) - usr << "The biogenerator is in the process of working." + to_chat(usr, "The biogenerator is in the process of working.") return var/S = 0 for(var/obj/item/weapon/reagent_containers/food/snacks/grown/I in contents) diff --git a/code/game/machinery/buttons.dm b/code/game/machinery/buttons.dm index 0934959d20f..afeb5a1f778 100644 --- a/code/game/machinery/buttons.dm +++ b/code/game/machinery/buttons.dm @@ -67,7 +67,7 @@ if(istype(W, /obj/item/weapon/wrench)) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 30, target = src)) - user << "You detach \the [src] from the wall." + to_chat(user, "You detach \the [src] from the wall.") new/obj/item/mounted/frame/driver_button(get_turf(src)) qdel(src) return 1 diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index f74e5ca877d..873e08030a7 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -92,7 +92,7 @@ if (O.client && O.client.eye == src) O.unset_machine() O.reset_view(null) - O << "The screen bursts into static." + to_chat(O, "The screen bursts into static.") ..() @@ -128,7 +128,7 @@ // DECONSTRUCTION if(istype(W, /obj/item/weapon/screwdriver)) - //user << "You start to [panel_open ? "close" : "open"] the camera's panel." +// to_chat(user, "You start to [panel_open ? "close" : "open"] the camera's panel.") //if(toggle_panel(user)) // No delay because no one likes screwdrivers trying to be hip and have a duration cooldown panel_open = !panel_open user.visible_message("[user] screws the camera's panel [panel_open ? "open" : "closed"]!", @@ -140,7 +140,7 @@ else if(istype(W, /obj/item/weapon/weldingtool) && wires.CanDeconstruct()) if(weld(W, user)) - user << "You unweld the camera leaving it as just a frame screwed to the wall." + to_chat(user, "You unweld the camera leaving it as just a frame screwed to the wall.") if(!assembly) assembly = new() assembly.loc = src.loc @@ -154,24 +154,24 @@ if(!isXRay()) upgradeXRay() qdel(W) - user << "[msg]" + to_chat(user, "[msg]") else - user << "[msg2]" + to_chat(user, "[msg2]") else if(istype(W, /obj/item/stack/sheet/mineral/plasma) && panel_open) if(!isEmpProof()) upgradeEmpProof() - user << "[msg]" + to_chat(user, "[msg]") qdel(W) else - user << "[msg2]" + to_chat(user, "[msg2]") else if(istype(W, /obj/item/device/assembly/prox_sensor) && panel_open) if(!isMotion()) upgradeMotion() - user << "[msg]" + to_chat(user, "[msg]") qdel(W) else - user << "[msg2]" + to_chat(user, "[msg2]") // OTHER else if ((istype(W, /obj/item/weapon/paper) || istype(W, /obj/item/device/pda)) && isliving(user)) @@ -191,7 +191,7 @@ if(N) itemname = P.name info = N.notehtml - U << "You hold \the [itemname] up to the camera ..." + to_chat(U, "You hold \the [itemname] up to the camera ...") U.changeNext_move(CLICK_CD_MELEE) for(var/mob/O in player_list) if(istype(O, /mob/living/silicon/ai)) @@ -199,24 +199,24 @@ if(AI.control_disabled || (AI.stat == DEAD)) return if(U.name == "Unknown") - AI << "[U] holds \a [itemname] up to one of your cameras ..." + to_chat(AI, "[U] holds \a [itemname] up to one of your cameras ...") else - AI << "[U] holds \a [itemname] up to one of your cameras ..." + to_chat(AI, "[U] holds \a [itemname] up to one of your cameras ...") AI.last_paper_seen = "[itemname][info]" else if (O.client && O.client.eye == src) - O << "[U] holds \a [itemname] up to one of the cameras ..." + to_chat(O, "[U] holds \a [itemname] up to one of the cameras ...") O << browse(text("[][]", itemname, info), text("window=[]", itemname)) else if (istype(W, /obj/item/device/camera_bug)) if (!src.can_use()) - user << "Camera non-functional." + to_chat(user, "Camera non-functional.") return if(istype(src.bug)) - user << "Camera bug removed." + to_chat(user, "Camera bug removed.") src.bug.bugged_cameras -= src.c_tag src.bug = null else - user << "Camera bugged." + to_chat(user, "Camera bugged.") src.bug = W src.bug.bugged_cameras[src.c_tag] = src @@ -271,7 +271,7 @@ if (O.client && O.client.eye == src) O.unset_machine() O.reset_view(null) - O << "The screen bursts into static." + to_chat(O, "The screen bursts into static.") /obj/machinery/camera/proc/triggerCameraAlarm(var/duration = 0) alarm_on = 1 @@ -341,7 +341,7 @@ if(!WT.remove_fuel(0, user)) return 0 - user << "You start to weld [src]..." + to_chat(user, "You start to weld [src]...") playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) busy = 1 if(do_after(user, 100, target = src)) diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm index 46c448f2035..5b77c8f00fc 100644 --- a/code/game/machinery/camera/camera_assembly.dm +++ b/code/game/machinery/camera/camera_assembly.dm @@ -28,7 +28,7 @@ // State 0 if(iswrench(W) && isturf(src.loc)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "You wrench the assembly into place." + to_chat(user, "You wrench the assembly into place.") anchored = 1 state = 1 update_icon() @@ -39,14 +39,14 @@ // State 1 if(iswelder(W)) if(weld(W, user)) - user << "You weld the assembly securely into place." + to_chat(user, "You weld the assembly securely into place.") anchored = 1 state = 2 return else if(iswrench(W)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "You unattach the assembly from it's place." + to_chat(user, "You unattach the assembly from it's place.") anchored = 0 update_icon() state = 0 @@ -57,16 +57,16 @@ if(iscoil(W)) var/obj/item/stack/cable_coil/C = W if(C.use(2)) - user << "You add wires to the assembly." + to_chat(user, "You add wires to the assembly.") state = 3 else - user << "You need 2 coils of wire to wire the assembly." + to_chat(user, "You need 2 coils of wire to wire the assembly.") return else if(iswelder(W)) if(weld(W, user)) - user << "You unweld the assembly from it's place." + to_chat(user, "You unweld the assembly from it's place.") state = 1 anchored = 1 return @@ -79,12 +79,12 @@ var/input = strip_html(input(usr, "Which networks would you like to connect this camera to? Seperate networks with a comma. No Spaces!\nFor example: SS13,Security,Secret ", "Set Network", "SS13")) if(!input) - usr << "No input found please hang up and try your call again." + to_chat(usr, "No input found please hang up and try your call again.") return var/list/tempnetwork = splittext(input, ",") if(tempnetwork.len < 1) - usr << "No network found please hang up and try your call again." + to_chat(usr, "No network found please hang up and try your call again.") return var/area/camera_area = get_area(src) @@ -119,13 +119,13 @@ new/obj/item/stack/cable_coil(get_turf(src), 2) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "You cut the wires from the circuits." + to_chat(user, "You cut the wires from the circuits.") state = 2 return // Upgrades! if(is_type_in_list(W, possible_upgrades) && !is_type_in_list(W, upgrades)) // Is a possible upgrade and isn't in the camera already. - user << "You attach \the [W] into the assembly inner circuits." + to_chat(user, "You attach \the [W] into the assembly inner circuits.") upgrades += W user.drop_item(W) W.loc = src @@ -135,7 +135,7 @@ else if(iscrowbar(W) && upgrades.len) var/obj/U = locate(/obj) in upgrades if(U) - user << "You unattach an upgrade from the assembly." + to_chat(user, "You unattach an upgrade from the assembly.") playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) U.loc = get_turf(src) upgrades -= U @@ -160,7 +160,7 @@ if(!WT.remove_fuel(0, user)) return 0 - user << "You start to weld the [src].." + to_chat(user, "You start to weld the [src]..") playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) busy = 1 if(do_after(user, 20, target = src)) diff --git a/code/game/machinery/camera/tracking.dm b/code/game/machinery/camera/tracking.dm index f33db20eb67..0be7126f5a5 100644 --- a/code/game/machinery/camera/tracking.dm +++ b/code/game/machinery/camera/tracking.dm @@ -40,7 +40,7 @@ set name = "Show Camera List" if(src.stat == 2) - src << "You can't list the cameras because you are dead!" + to_chat(src, "You can't list the cameras because you are dead!") return if (!camera || camera == "Cancel") @@ -58,24 +58,24 @@ loc = sanitize(copytext(loc, 1, MAX_MESSAGE_LEN)) if(!loc) - src << "\red Must supply a location name" + to_chat(src, "\red Must supply a location name") return if(stored_locations.len >= max_locations) - src << "\red Cannot store additional locations. Remove one first" + to_chat(src, "\red Cannot store additional locations. Remove one first") return if(loc in stored_locations) - src << "\red There is already a stored location by this name" + to_chat(src, "\red There is already a stored location by this name") return var/L = get_turf(eyeobj) if (InvalidTurf(get_turf(L))) - src << "\red Unable to store this location" + to_chat(src, "\red Unable to store this location") return stored_locations[loc] = L - src << "Location '[loc]' stored" + to_chat(src, "Location '[loc]' stored") /mob/living/silicon/ai/proc/sorted_stored_locations() return sortList(stored_locations) @@ -86,7 +86,7 @@ set desc = "Returns to the selected camera location" if (!(loc in stored_locations)) - src << "\red Location [loc] not found" + to_chat(src, "\red Location [loc] not found") return var/L = stored_locations[loc] @@ -98,11 +98,11 @@ set desc = "Deletes the selected camera location" if (!(loc in stored_locations)) - src << "\red Location [loc] not found" + to_chat(src, "\red Location [loc] not found") return stored_locations.Remove(loc) - src << "Location [loc] removed" + to_chat(src, "Location [loc] removed") // Used to allow the AI is write in mob names/camera name from the CMD line. /datum/trackable @@ -153,7 +153,7 @@ set desc = "Select who you would like to track." if(src.stat == DEAD) - src << "You can't track with camera because you are dead!" + to_chat(src, "You can't track with camera because you are dead!") return if(!target_name) return @@ -166,7 +166,7 @@ if(!cameraFollow) return - src << "Follow camera mode [forced ? "terminated" : "ended"]." + to_chat(src, "Follow camera mode [forced ? "terminated" : "ended"].") cameraFollow = null /mob/living/silicon/ai/proc/ai_actual_track(mob/living/target) @@ -177,17 +177,17 @@ U.cameraFollow = target U.tracking = 1 - U << "Attempting to track [target.get_visible_name()]..." + to_chat(U, "Attempting to track [target.get_visible_name()]...") sleep(min(30, get_dist(target, U.eyeobj) / 4)) spawn(15) //give the AI a grace period to stop moving. U.tracking = 0 if(!target || !target.can_track(usr)) - U << "Target is not near any active cameras." + to_chat(U, "Target is not near any active cameras.") U.cameraFollow = null return - U << "Now tracking [target.get_visible_name()] on camera." + to_chat(U, "Now tracking [target.get_visible_name()] on camera.") var/cameraticks = 0 spawn(0) @@ -198,11 +198,11 @@ if(!target.can_track(usr)) U.tracking = 1 if(!cameraticks) - U << "Target is not near any active cameras. Attempting to reacquire..." + to_chat(U, "Target is not near any active cameras. Attempting to reacquire...") cameraticks++ if(cameraticks > 9) U.cameraFollow = null - U << "Unable to reacquire, cancelling track..." + to_chat(U, "Unable to reacquire, cancelling track...") U.tracking = 0 return else diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm index 9cce9c200b1..bca8a6d8aa2 100644 --- a/code/game/machinery/cell_charger.dm +++ b/code/game/machinery/cell_charger.dm @@ -17,7 +17,7 @@ if(charging && !(stat & (BROKEN|NOPOWER)) ) var/newlevel = round(charging.percent() * 4.0 / 99) - //world << "nl: [newlevel]" +// to_chat(world, "nl: [newlevel]") if(chargelevel != newlevel) @@ -29,9 +29,9 @@ overlays.Cut() examine(mob/user) if(..(user, 5)) - user << "There's [charging ? "a" : "no"] cell in the charger." + to_chat(user, "There's [charging ? "a" : "no"] cell in the charger.") if(charging) - user << "Current charge: [charging.charge]" + to_chat(user, "Current charge: [charging.charge]") attackby(obj/item/weapon/W, mob/user, params) if(stat & BROKEN) @@ -39,14 +39,14 @@ if(istype(W, /obj/item/weapon/stock_parts/cell) && anchored) if(charging) - user << "\red There is already a cell in the charger." + to_chat(user, "\red There is already a cell in the charger.") return else var/area/a = loc.loc // Gets our locations location, like a dream within a dream if(!isarea(a)) return if(a.power_equip == 0) // There's no APC in this area, don't try to cheat power! - user << "\red The [name] blinks red as you try to insert the cell!" + to_chat(user, "\red The [name] blinks red as you try to insert the cell!") return user.drop_item() @@ -57,11 +57,11 @@ updateicon() else if(istype(W, /obj/item/weapon/wrench)) if(charging) - user << "\red Remove the cell first!" + to_chat(user, "\red Remove the cell first!") return anchored = !anchored - user << "You [anchored ? "attach" : "detach"] the cell charger [anchored ? "to" : "from"] the ground" + to_chat(user, "You [anchored ? "attach" : "detach"] the cell charger [anchored ? "to" : "from"] the ground") playsound(get_turf(src), 'sound/items/Ratchet.ogg', 75, 1) attack_hand(mob/user) @@ -87,7 +87,7 @@ process() - //world << "ccpt [charging] [stat]" +// to_chat(world, "ccpt [charging] [stat]") if(!charging || (stat & (BROKEN|NOPOWER)) || !anchored) return diff --git a/code/game/machinery/chiller.dm b/code/game/machinery/chiller.dm index 77cdb0ab286..82fe014e160 100644 --- a/code/game/machinery/chiller.dm +++ b/code/game/machinery/chiller.dm @@ -26,11 +26,11 @@ /obj/machinery/space_heater/air_conditioner/examine(mob/user) ..(user) - user << "The air conditioner is [on ? "on" : "off"] and the hatch is [open ? "open" : "closed"]." + to_chat(user, "The air conditioner is [on ? "on" : "off"] and the hatch is [open ? "open" : "closed"].") if(open) - user << "The power cell is [cell ? "installed" : "missing"]." + to_chat(user, "The power cell is [cell ? "installed" : "missing"].") else - user << "The charge meter reads [cell ? round(cell.percent(),1) : 0]%" + to_chat(user, "The charge meter reads [cell ? round(cell.percent(),1) : 0]%") /obj/machinery/space_heater/air_conditioner/emp_act(severity) @@ -45,7 +45,7 @@ if(istype(I, /obj/item/weapon/stock_parts/cell)) if(open) if(cell) - user << "There is already a power cell inside." + to_chat(user, "There is already a power cell inside.") return else // insert cell @@ -58,7 +58,7 @@ user.visible_message("[user] inserts a power cell into [src].", "You insert the power cell into [src].") else - user << "The hatch must be open to insert a power cell." + to_chat(user, "The hatch must be open to insert a power cell.") return else if(istype(I, /obj/item/weapon/screwdriver)) open = !open diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 5971c758721..1f8bbc44587 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -148,11 +148,11 @@ /obj/item/weapon/disk/data/attack_self(mob/user as mob) read_only = !read_only - user << "You flip the write-protect tab to [read_only ? "protected" : "unprotected"]." + to_chat(user, "You flip the write-protect tab to [read_only ? "protected" : "unprotected"].") /obj/item/weapon/disk/data/examine(mob/user) ..(user) - user << "The write-protect tab is set to [read_only ? "protected" : "unprotected"]." + to_chat(user, "The write-protect tab is set to [read_only ? "protected" : "unprotected"].") //Health Tracker Implant @@ -182,7 +182,7 @@ return if ((!isnull(occupant)) && (occupant.stat != 2)) var/completion = (100 * ((occupant.health + 100) / (heal_level + 100))) - user << "Current clone cycle is [round(completion)]% complete." + to_chat(user, "Current clone cycle is [round(completion)]% complete.") return //Clonepod @@ -239,7 +239,7 @@ H.updatehealth() clonemind.transfer_to(H) - H << "Consciousness slowly creeps over you as your body regenerates.
So this is what cloning feels like?
" + to_chat(H, "Consciousness slowly creeps over you as your body regenerates.
So this is what cloning feels like?
") // -- Mode/mind specific stuff goes here callHook("clone", list(H)) @@ -344,7 +344,7 @@ /obj/machinery/clonepod/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/screwdriver)) if(occupant || mess || locked) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", W) return @@ -359,27 +359,27 @@ if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if (!check_access(W)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return if ((!locked) || (isnull(occupant))) return if ((occupant.health < -20) && (occupant.stat != 2)) - user << "\red Access Refused." + to_chat(user, "\red Access Refused.") return else locked = 0 - user << "System unlocked." + to_chat(user, "System unlocked.") //Removing cloning pod biomass else if (istype(W, /obj/item/weapon/reagent_containers/food/snacks/meat)) - user << "\blue \The [src] processes \the [W]." + to_chat(user, "\blue \The [src] processes \the [W].") biomass += 50 user.drop_item() qdel(W) return else if (istype(W, /obj/item/weapon/wrench)) if(locked && (anchored || occupant)) - user << "\red Can not do that while [src] is in use." + to_chat(user, "\red Can not do that while [src] is in use.") else if(anchored) anchored = 0 @@ -395,7 +395,7 @@ else if(istype(W, /obj/item/device/multitool)) var/obj/item/device/multitool/M = W M.buffer = src - user << "You load connection data from [src] to [M]." + to_chat(user, "You load connection data from [src] to [M].") return else ..() @@ -403,7 +403,7 @@ /obj/machinery/clonepod/emag_act(user as mob) if (isnull(occupant)) return - user << "You force an emergency ejection." + to_chat(user, "You force an emergency ejection.") locked = 0 go_out() return @@ -443,11 +443,11 @@ return if (!(occupant)) - user << "The cloning pod is empty!" + to_chat(user, "The cloning pod is empty!") return if (locked) - user << "The cloning pod is locked!" + to_chat(user, "The cloning pod is locked!") return if (occupant.client) diff --git a/code/game/machinery/computer/HolodeckControl.dm b/code/game/machinery/computer/HolodeckControl.dm index 2ad0eba3a81..809ac579454 100644 --- a/code/game/machinery/computer/HolodeckControl.dm +++ b/code/game/machinery/computer/HolodeckControl.dm @@ -164,8 +164,8 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "\blue You vastly increase projector power and override the safety and security protocols." - user << "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call Nanotrasen maintenance and do not use the simulator." + to_chat(user, "\blue You vastly increase projector power and override the safety and security protocols.") + to_chat(user, "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call Nanotrasen maintenance and do not use the simulator.") log_game("[key_name(usr)] emagged the Holodeck Control Computer") src.updateUsrDialog() @@ -367,7 +367,7 @@ return ..() if (istype(W, /obj/item/weapon/wrench)) - user << "It's a holotable! There are no bolts!" + to_chat(user, "It's a holotable! There are no bolts!") return /obj/structure/table/holotable/wood @@ -407,7 +407,7 @@ /obj/structure/rack/holorack/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/wrench)) - user << "It's a holorack! There are no bolts!" + to_chat(user, "It's a holorack! There are no bolts!") return /obj/item/weapon/holo @@ -467,13 +467,13 @@ icon_state = "sword[item_color]" w_class = 4 playsound(user, 'sound/weapons/saberon.ogg', 50, 1) - user << "[src] is now active." + to_chat(user, "[src] is now active.") else force = 3 icon_state = "sword0" w_class = 2 playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) - user << "[src] can now be concealed." + to_chat(user, "[src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() @@ -503,7 +503,7 @@ if (istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2) var/obj/item/weapon/grab/G = W if(G.state<2) - user << "You need a better grip to do that!" + to_chat(user, "You need a better grip to do that!") return G.affecting.loc = src.loc G.affecting.Weaken(5) @@ -545,15 +545,15 @@ power_channel = ENVIRON /obj/machinery/readybutton/attack_ai(mob/user as mob) - user << "The station AI is not to interact with these devices" + to_chat(user, "The station AI is not to interact with these devices") return /obj/machinery/readybutton/attackby(obj/item/weapon/W as obj, mob/user as mob, params) - user << "The device is a solid button, there's nothing you can do with it!" + to_chat(user, "The device is a solid button, there's nothing you can do with it!") /obj/machinery/readybutton/attack_hand(mob/user as mob) if(user.stat || stat & (NOPOWER|BROKEN)) - user << "This device is not powered." + to_chat(user, "This device is not powered.") return currentarea = get_area(src.loc) @@ -561,7 +561,7 @@ qdel(src) if(eventstarted) - usr << "The event has already begun!" + to_chat(usr, "The event has already begun!") return ready = !ready @@ -591,4 +591,4 @@ qdel(W) for(var/mob/M in currentarea) - M << "FIGHT!" \ No newline at end of file + to_chat(M, "FIGHT!") diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index 85e483bbfb9..8ad0b715b4f 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -24,42 +24,42 @@ if(istype(P, /obj/item/weapon/wrench)) playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You wrench the frame into place." + to_chat(user, "\blue You wrench the frame into place.") anchored = 1 state = 1 if(istype(P, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = P if(!WT.isOn()) - user << "The welder must be on for this task." + to_chat(user, "The welder must be on for this task.") return playsound(loc, 'sound/items/Welder.ogg', 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.remove_fuel(0, user)) return - user << "\blue You deconstruct the frame." + to_chat(user, "\blue You deconstruct the frame.") new /obj/item/stack/sheet/plasteel(loc, 4) qdel(src) if(1) if(istype(P, /obj/item/weapon/wrench)) playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You unfasten the frame." + to_chat(user, "\blue You unfasten the frame.") anchored = 0 state = 0 if(istype(P, /obj/item/weapon/circuitboard/aicore) && !circuit) playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "\blue You place the circuit board inside the frame." + to_chat(user, "\blue You place the circuit board inside the frame.") icon_state = "1" circuit = P user.drop_item() P.loc = src if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You screw the circuit board into place." + to_chat(user, "\blue You screw the circuit board into place.") state = 2 icon_state = "2" if(istype(P, /obj/item/weapon/crowbar) && circuit) playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the circuit board." + to_chat(user, "\blue You remove the circuit board.") state = 1 icon_state = "0" circuit.loc = loc @@ -67,7 +67,7 @@ if(2) if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You unfasten the circuit board." + to_chat(user, "\blue You unfasten the circuit board.") state = 1 icon_state = "1" if(istype(P, /obj/item/stack/cable_coil)) @@ -76,16 +76,16 @@ if(do_after(user, 20, target = src)) P:amount -= 5 if(!P:amount) qdel(P) - user << "\blue You add cables to the frame." + to_chat(user, "\blue You add cables to the frame.") state = 3 icon_state = "3" if(3) if(istype(P, /obj/item/weapon/wirecutters)) if (brain) - user << "Get that brain out of there first" + to_chat(user, "Get that brain out of there first") else playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "\blue You remove the cables." + to_chat(user, "\blue You remove the cables.") state = 2 icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( loc ) @@ -98,42 +98,42 @@ if (P) P:amount -= 2 if(!P:amount) qdel(P) - user << "\blue You put in the glass panel." + to_chat(user, "\blue You put in the glass panel.") state = 4 icon_state = "4" if(istype(P, /obj/item/weapon/aiModule/purge)) laws.clear_inherent_laws() - usr << "Law module applied." + to_chat(usr, "Law module applied.") return if(istype(P, /obj/item/weapon/aiModule/freeform)) var/obj/item/weapon/aiModule/freeform/M = P laws.add_inherent_law(M.newFreeFormLaw) - usr << "Added a freeform law." + to_chat(usr, "Added a freeform law.") return if(istype(P, /obj/item/weapon/aiModule)) var/obj/item/weapon/aiModule/M = P if(!M.laws) - usr << "This AI module can not be applied directly to AI cores." + to_chat(usr, "This AI module can not be applied directly to AI cores.") return laws = M.laws if(istype(P, /obj/item/device/mmi) || istype(P, /obj/item/device/mmi/posibrain)) if(!P:brainmob) - user << "\red Sticking an empty [P] into the frame would sort of defeat the purpose." + to_chat(user, "\red Sticking an empty [P] into the frame would sort of defeat the purpose.") return if(P:brainmob.stat == 2) - user << "\red Sticking a dead [P] into the frame would sort of defeat the purpose." + to_chat(user, "\red Sticking a dead [P] into the frame would sort of defeat the purpose.") return if(jobban_isbanned(P:brainmob, "AI") || jobban_isbanned(P:brainmob,"nonhumandept")) - user << "\red This [P] does not seem to fit." + to_chat(user, "\red This [P] does not seem to fit.") return if(istype(P, /obj/item/device/mmi/syndie)) - user << "This MMI does not seem to fit!" + to_chat(user, "This MMI does not seem to fit!") return if(P:brainmob.mind) @@ -143,12 +143,12 @@ user.drop_item() P.loc = src brain = P - usr << "Added [P]." + to_chat(usr, "Added [P].") icon_state = "3b" if(istype(P, /obj/item/weapon/crowbar) && brain) playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the brain." + to_chat(user, "\blue You remove the brain.") brain.loc = loc brain = null icon_state = "3" @@ -156,7 +156,7 @@ if(4) if(istype(P, /obj/item/weapon/crowbar)) playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the glass panel." + to_chat(user, "\blue You remove the glass panel.") state = 3 if (brain) icon_state = "3b" @@ -167,7 +167,7 @@ if(istype(P, /obj/item/weapon/screwdriver)) playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You connect the monitor." + to_chat(user, "You connect the monitor.") if(!brain) var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes" var/obj/structure/AIcore/deactivated/D = new(loc) @@ -225,7 +225,7 @@ cores["[D] ([D.loc.loc])"] = D if(!cores.len) - src << "No deactivated AI cores were found." + to_chat(src, "No deactivated AI cores were found.") var/id = input("Which core?", "Toggle AI Core Latejoin", null) as null|anything in cores if(!id) return @@ -235,10 +235,10 @@ if(D in empty_playable_ai_cores) empty_playable_ai_cores -= D - src << "\The [id] is now not available for latejoining AIs." + to_chat(src, "\The [id] is now not available for latejoining AIs.") else empty_playable_ai_cores += D - src << "\The [id] is now available for latejoining AIs." + to_chat(src, "\The [id] is now available for latejoining AIs.") /* @@ -252,7 +252,7 @@ That prevents a few funky behaviors. atom/proc/transfer_ai(var/interaction, var/mob/user, var/mob/living/silicon/ai/AI, var/obj/item/device/aicard/card) if(istype(card)) if(card.flush) - user << "ERROR: AI flush is in progress, cannot execute transfer protocol." + to_chat(user, "ERROR: AI flush is in progress, cannot execute transfer protocol.") return 0 return 1 @@ -265,8 +265,8 @@ atom/proc/transfer_ai(var/interaction, var/mob/user, var/mob/living/silicon/ai/A AI.control_disabled = 0 AI.aiRadio.disabledAi = 0 AI.loc = loc//To replace the terminal. - AI << "You have been uploaded to a stationary terminal. Remote device connection restored." - user << "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed." + to_chat(AI, "You have been uploaded to a stationary terminal. Remote device connection restored.") + to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.") qdel(src) else //If for some reason you use an empty card on an empty AI terminal. - user << "There is no AI loaded on this terminal!" + to_chat(user, "There is no AI loaded on this terminal!") diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index 74ea7609137..e326d9750d5 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -13,9 +13,9 @@ /obj/machinery/computer/aifixer/attackby(I as obj, user as mob, params) if(occupant && istype(I, /obj/item/weapon/screwdriver)) if(stat & (NOPOWER|BROKEN)) - user << "The screws on [name]'s screen won't budge." + to_chat(user, "The screws on [name]'s screen won't budge.") else - user << "The screws on [name]'s screen won't budge and it emits a warning beep." + to_chat(user, "The screws on [name]'s screen won't budge and it emits a warning beep.") return else ..() @@ -29,7 +29,7 @@ ui_interact(user) else if(mode.kickoff) - user << "You have been locked out from this console!" + to_chat(user, "You have been locked out from this console!") /obj/machinery/computer/aifixer/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) var/data[0] @@ -114,24 +114,24 @@ //Downloading AI from card to terminal. if(interaction == AI_TRANS_FROM_CARD) if(stat & (NOPOWER|BROKEN)) - user << "[src] is offline and cannot take an AI at this time!" + to_chat(user, "[src] is offline and cannot take an AI at this time!") return AI.loc = src occupant = AI AI.control_disabled = 1 AI.aiRadio.disabledAi = 1 - AI << "You have been uploaded to a stationary terminal. Sadly, there is no remote access from here." - user << "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed." + to_chat(AI, "You have been uploaded to a stationary terminal. Sadly, there is no remote access from here.") + to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.") update_icon() else //Uploading AI from terminal to card if(occupant && !active) - occupant << "You have been downloaded to a mobile storage device. Still no remote access." - user << "Transfer successful: [occupant.name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory." + to_chat(occupant, "You have been downloaded to a mobile storage device. Still no remote access.") + to_chat(user, "Transfer successful: [occupant.name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory.") occupant.loc = card occupant = null update_icon() else if (active) - user << "ERROR: Reconstruction in progress." + to_chat(user, "ERROR: Reconstruction in progress.") else if (!occupant) - user << "ERROR: Unable to locate artificial intelligence." + to_chat(user, "ERROR: Unable to locate artificial intelligence.") diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm index 7277bc6a366..0948c8ae3a1 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/arcade.dm @@ -368,18 +368,18 @@ dat += "
You ran out of food and starved." if(emagged) user.nutrition = 0 //yeah you pretty hongry - user << "Your body instantly contracts to that of one who has not eaten in months. Agonizing cramps seize you as you fall to the floor." + to_chat(user, "Your body instantly contracts to that of one who has not eaten in months. Agonizing cramps seize you as you fall to the floor.") if(fuel <= 0) dat += "
You ran out of fuel, and drift, slowly, into a star." if(emagged) var/mob/living/M = user M.adjust_fire_stacks(5) M.IgniteMob() //flew into a star, so you're on fire - user << "You feel an immense wave of heat emanate from the arcade machine. Your skin bursts into flames." + to_chat(user, "You feel an immense wave of heat emanate from the arcade machine. Your skin bursts into flames.") dat += "

OK...

" if(emagged) - user << "You're never going to make it to Orion..." + to_chat(user, "You're never going to make it to Orion...") user.death() emagged = 0 //removes the emagged status after you lose playing = 0 //also a new game @@ -447,21 +447,22 @@ switch(event) if(ORION_TRAIL_RAIDERS) if(prob(50)) - usr << "You hear battle shouts. The tramping of boots on cold metal. Screams of agony. The rush of venting air. Are you going insane?" + to_chat(usr, "You hear battle shouts. The tramping of boots on cold metal. Screams of agony. The rush of venting air. Are you going insane?") M.hallucination += 30 else - usr << "Something strikes you from behind! It hurts like hell and feel like a blunt weapon, but nothing is there..." + to_chat(usr, "Something strikes you from behind! It hurts like hell and feel like a blunt weapon, but nothing is there...") M.take_organ_damage(30) playsound(loc, 'sound/weapons/genhit2.ogg', 100, 1) if(ORION_TRAIL_ILLNESS) var/severity = rand(1,3) //pray to RNGesus. PRAY, PIGS if(severity == 1) - M << "You suddenly feel slightly nauseous." //got off lucky + to_chat(M, "You suddenly feel slightly nauseous.")//got off lucky + if(severity == 2) - usr << "You suddenly feel extremely nauseous and hunch over until it passes." + to_chat(usr, "You suddenly feel extremely nauseous and hunch over until it passes.") M.Stun(3) if(severity >= 3) //you didn't pray hard enough - M << "An overpowering wave of nausea consumes over you. You hunch over, your stomach's contents preparing for a spectacular exit." + to_chat(M, "An overpowering wave of nausea consumes over you. You hunch over, your stomach's contents preparing for a spectacular exit.") M.Stun(5) sleep(30) atom_say("[M] violently throws up!") @@ -477,7 +478,7 @@ M.take_organ_damage(25) playsound(src.loc, 'sound/weapons/Genhit.ogg', 100, 1) else - M << "A violent gale blows past you, and you barely manage to stay standing!" + to_chat(M, "A violent gale blows past you, and you barely manage to stay standing!") if(ORION_TRAIL_COLLISION) //by far the most damaging event if(prob(90)) playsound(src.loc, 'sound/effects/bang.ogg', 100, 1) @@ -956,7 +957,7 @@ /obj/machinery/computer/arcade/orion_trail/emag_act(mob/user) if(!emagged) - user << "You override the cheat code menu and skip to Cheat #[rand(1, 50)]: Realism Mode." + to_chat(user, "You override the cheat code menu and skip to Cheat #[rand(1, 50)]: Realism Mode.") name = "The Orion Trail: Realism Edition" desc = "Learn how our ancestors got to Orion, and try not to die in the process!" newgame() @@ -995,9 +996,9 @@ if(!(in_range(user, src))) return if(!active) - user << "There's a little switch on the bottom. It's flipped down." + to_chat(user, "There's a little switch on the bottom. It's flipped down.") else - user << "There's a little switch on the bottom. It's flipped up." + to_chat(user, "There's a little switch on the bottom. It's flipped up.") /obj/item/weapon/orion_ship/attack_self(mob/user) //Minibomb-level explosion. Should probably be more because of how hard it is to survive the machine! Also, just over a 5-second fuse if(active) @@ -1006,7 +1007,7 @@ message_admins("[key_name_admin(usr)] primed an explosive Orion ship for detonation.") log_game("[key_name(usr)] primed an explosive Orion ship for detonation.") - user << "You flip the switch on the underside of [src]." + to_chat(user, "You flip the switch on the underside of [src].") active = 1 visible_message("[src] softly beeps and whirs to life!") playsound(src.loc, 'sound/machines/defib_SaftyOn.ogg', 25, 1) diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm index 8045ed2b9fa..b128b06bf49 100644 --- a/code/game/machinery/computer/buildandrepair.dm +++ b/code/game/machinery/computer/buildandrepair.dm @@ -304,7 +304,7 @@ if("Cancel") return else - user << "DERP! BUG! Report this (And what you were doing to cause it) to Agouri" + to_chat(user, "DERP! BUG! Report this (And what you were doing to cause it) to Agouri") return /obj/item/weapon/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob, params) @@ -336,9 +336,9 @@ build_path = /obj/machinery/computer/rdconsole/public id = 5 - user << "Access protocols set to [console_choice]." + to_chat(user, "Access protocols set to [console_choice].") else - user << "Access Denied" + to_chat(user, "Access Denied") return /obj/structure/computerframe/attackby(obj/item/P as obj, mob/user as mob, params) @@ -347,46 +347,46 @@ if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You wrench the frame into place." + to_chat(user, "\blue You wrench the frame into place.") src.anchored = 1 src.state = 1 if(istype(P, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = P if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.isOn()) return - user << "\blue You deconstruct the frame." + to_chat(user, "\blue You deconstruct the frame.") new /obj/item/stack/sheet/metal( src.loc, 5 ) qdel(src) if(1) if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You unfasten the frame." + to_chat(user, "\blue You unfasten the frame.") src.anchored = 0 src.state = 0 if(istype(P, /obj/item/weapon/circuitboard) && !circuit) var/obj/item/weapon/circuitboard/B = P if(B.board_type == "computer") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "\blue You place the circuit board inside the frame." + to_chat(user, "\blue You place the circuit board inside the frame.") src.icon_state = "1" src.circuit = P user.drop_item() P.loc = src else - user << "\red This frame does not accept circuit boards of this type!" + to_chat(user, "\red This frame does not accept circuit boards of this type!") if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You screw the circuit board into place." + to_chat(user, "\blue You screw the circuit board into place.") src.state = 2 src.icon_state = "2" if(istype(P, /obj/item/weapon/crowbar) && circuit) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the circuit board." + to_chat(user, "\blue You remove the circuit board.") src.state = 1 src.icon_state = "0" circuit.loc = src.loc @@ -394,7 +394,7 @@ if(2) if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You unfasten the circuit board." + to_chat(user, "\blue You unfasten the circuit board.") src.state = 1 src.icon_state = "1" if(istype(P, /obj/item/stack/cable_coil)) @@ -404,13 +404,13 @@ if(P) P:amount -= 5 if(!P:amount) qdel(P) - user << "\blue You add cables to the frame." + to_chat(user, "\blue You add cables to the frame.") src.state = 3 src.icon_state = "3" if(3) if(istype(P, /obj/item/weapon/wirecutters)) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "\blue You remove the cables." + to_chat(user, "\blue You remove the cables.") src.state = 2 src.icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc ) @@ -422,19 +422,19 @@ if(do_after(user, 20, target = src)) if(P) P:use(2) - user << "\blue You put in the glass panel." + to_chat(user, "\blue You put in the glass panel.") src.state = 4 src.icon_state = "4" if(4) if(istype(P, /obj/item/weapon/crowbar)) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the glass panel." + to_chat(user, "\blue You remove the glass panel.") src.state = 3 src.icon_state = "3" new /obj/item/stack/sheet/glass( src.loc, 2 ) if(istype(P, /obj/item/weapon/screwdriver)) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You connect the monitor." + to_chat(user, "\blue You connect the monitor.") var/B = new src.circuit.build_path ( src.loc ) if(circuit.powernet) B:powernet = circuit.powernet if(circuit.id) B:id = circuit.id @@ -458,46 +458,46 @@ if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You wrench the frame into place." + to_chat(user, "\blue You wrench the frame into place.") src.anchored = 1 src.state = 1 if(istype(P, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = P if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.isOn()) return - user << "\blue You deconstruct the frame." + to_chat(user, "\blue You deconstruct the frame.") new /obj/item/stack/sheet/mineral/bananium( src.loc, 5 ) qdel(src) if(1) if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You unfasten the frame." + to_chat(user, "\blue You unfasten the frame.") src.anchored = 0 src.state = 0 if(istype(P, /obj/item/weapon/circuitboard) && !circuit) var/obj/item/weapon/circuitboard/B = P if(B.board_type == "honkcomputer") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "\blue You place the circuit board inside the frame." + to_chat(user, "\blue You place the circuit board inside the frame.") src.icon_state = "1" src.circuit = P user.drop_item() P.loc = src else - user << "\red This frame does not accept circuit boards of this type!" + to_chat(user, "\red This frame does not accept circuit boards of this type!") if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You screw the circuit board into place." + to_chat(user, "\blue You screw the circuit board into place.") src.state = 2 src.icon_state = "2" if(istype(P, /obj/item/weapon/crowbar) && circuit) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the circuit board." + to_chat(user, "\blue You remove the circuit board.") src.state = 1 src.icon_state = "0" circuit.loc = src.loc @@ -505,7 +505,7 @@ if(2) if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You unfasten the circuit board." + to_chat(user, "\blue You unfasten the circuit board.") src.state = 1 src.icon_state = "1" if(istype(P, /obj/item/stack/cable_coil)) @@ -515,13 +515,13 @@ if(P) P:amount -= 5 if(!P:amount) qdel(P) - user << "\blue You add cables to the frame." + to_chat(user, "\blue You add cables to the frame.") src.state = 3 src.icon_state = "3" if(3) if(istype(P, /obj/item/weapon/wirecutters)) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "\blue You remove the cables." + to_chat(user, "\blue You remove the cables.") src.state = 2 src.icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc ) @@ -533,19 +533,19 @@ if(do_after(user, 20, target = src)) if(P) P:use(2) - user << "\blue You put in the glass panel." + to_chat(user, "\blue You put in the glass panel.") src.state = 4 src.icon_state = "4" if(4) if(istype(P, /obj/item/weapon/crowbar)) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the glass panel." + to_chat(user, "\blue You remove the glass panel.") src.state = 3 src.icon_state = "3" new /obj/item/stack/sheet/glass( src.loc, 2 ) if(istype(P, /obj/item/weapon/screwdriver)) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You connect the monitor." + to_chat(user, "\blue You connect the monitor.") var/B = new src.circuit.build_path ( src.loc ) if(circuit.powernet) B:powernet = circuit.powernet if(circuit.id) B:id = circuit.id diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index 187e7d28f85..0311ac200fb 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -61,7 +61,7 @@ /obj/machinery/computer/security/emag_act(user as mob) if(!emagged) emagged = 1 - user << "\blue You have authorized full network access!" + to_chat(user, "\blue You have authorized full network access!") ui_interact(user) else ui_interact(user) diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index 0e6e77ec9ec..44fe97e0915 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -54,7 +54,7 @@ else eyeobj.setLoc(eyeobj.loc) else - user << "The console is already in use!" + to_chat(user, "The console is already in use!") /mob/camera/aiEye/remote name = "Inactive Camera Eye" diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm index 33442e8403e..7af28cc4f73 100644 --- a/code/game/machinery/computer/card.dm +++ b/code/game/machinery/computer/card.dm @@ -101,19 +101,19 @@ var/time_last_changed_position = 0 if(!usr || usr.stat || usr.lying) return if(scan) - usr << "You remove \the [scan] from \the [src]." + to_chat(usr, "You remove \the [scan] from \the [src].") scan.loc = get_turf(src) if(!usr.get_active_hand()) usr.put_in_hands(scan) scan = null else if(modify) - usr << "You remove \the [modify] from \the [src]." + to_chat(usr, "You remove \the [modify] from \the [src].") modify.loc = get_turf(src) if(!usr.get_active_hand()) usr.put_in_hands(modify) modify = null else - usr << "There is nothing to remove from the console." + to_chat(usr, "There is nothing to remove from the console.") return /obj/machinery/computer/card/attackby(obj/item/weapon/card/id/id_card, mob/user, params) @@ -322,7 +322,7 @@ var/time_last_changed_position = 0 jobdatum = J break if(!jobdatum) - usr << "\red No log exists for this job: [t1]" + to_chat(usr, "\red No log exists for this job: [t1]") return access = jobdatum.get_access() diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index 411673628cc..0818dccbe35 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -87,7 +87,7 @@ user.drop_item() W.loc = src src.diskette = W - user << "You insert [W]." + to_chat(user, "You insert [W].") nanomanager.update_uis(src) return else if(istype(W, /obj/item/device/multitool)) @@ -98,7 +98,7 @@ pods += P P.connected = src P.name = "[initial(P.name)] #[pods.len]" - user << "You connect [P] to [src]." + to_chat(user, "You connect [P] to [src].") else ..() return @@ -326,7 +326,8 @@ var/mob/selected = find_dead_player("[C.ckey]") if(!selected) return - selected << 'sound/machines/chime.ogg' //probably not the best sound but I think it's reasonable + selected << 'sound/machines/chime.ogg' //probably not the best sound but I think it's reasonable + var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No") if(answer != "No" && pod.growclone(C)) temp = "Initiating cloning cycle..." diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index ea2dadda3b4..90b415c99bf 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -47,7 +47,7 @@ return 1 else if(message) - user << "Access denied." + to_chat(user, "Access denied.") return 0 /obj/machinery/computer/communications/Topic(href, href_list) @@ -55,12 +55,12 @@ return 1 if ((!(src.z in config.station_levels) && !(src.z in config.admin_levels))) - usr << "Unable to establish a connection: You're too far away from the station!" + to_chat(usr, "Unable to establish a connection: You're too far away from the station!") return 1 if(href_list["login"]) if(!ishuman(usr)) - usr << "Access denied." + to_chat(usr, "Access denied.") return var/mob/living/carbon/human/M = usr var/obj/item/card = M.get_active_hand() @@ -96,7 +96,7 @@ if("newalertlevel") if(isAI(usr) || isrobot(usr)) - usr << "Firewalls prevent you from changing the alert level." + to_chat(usr, "Firewalls prevent you from changing the alert level.") nanomanager.update_uis(src) return 1 tmp_alertlevel = text2num(href_list["level"]) @@ -124,16 +124,16 @@ feedback_inc("alert_comms_blue",1) tmp_alertlevel = 0 else - usr << "You are not authorized to do this." + to_chat(usr, "You are not authorized to do this.") tmp_alertlevel = 0 setMenuState(usr,COMM_SCREEN_MAIN) else - usr << "You need to swipe your ID." + to_chat(usr, "You need to swipe your ID.") if("announce") if(is_authenticated(usr) == 2) if(message_cooldown) - usr << "Please allow at least one minute to pass between announcements." + to_chat(usr, "Please allow at least one minute to pass between announcements.") nanomanager.update_uis(src) return var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement") @@ -158,7 +158,7 @@ if("cancelshuttle") if(isAI(usr) || isrobot(usr)) - usr << "Firewalls prevent you from recalling the shuttle." + to_chat(usr, "Firewalls prevent you from recalling the shuttle.") nanomanager.update_uis(src) return 1 var/response = alert("Are you sure you wish to recall the shuttle?", "Confirm", "Yes", "No") @@ -215,7 +215,7 @@ if("nukerequest") if(is_authenticated(usr) == 2) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") nanomanager.update_uis(src) return var/input = stripped_input(usr, "Please enter the reason for requesting the nuclear self-destruct codes. Misuse of the nuclear request system will not be tolerated under any circumstances. Transmission does not guarantee a response.", "Self Destruct Code Request.","") as text|null @@ -223,7 +223,7 @@ nanomanager.update_uis(src) return Nuke_request(input, usr) - usr << "Request sent." + to_chat(usr, "Request sent.") log_say("[key_name(usr)] has requested the nuclear codes from Centcomm") priority_announcement.Announce("The codes for the on-station nuclear self-destruct have been requested by [usr]. Confirmation or denial of this request will be sent shortly.", "Nuclear Self Destruct Codes Requested",'sound/AI/commandreport.ogg') centcomm_message_cooldown = 1 @@ -234,7 +234,7 @@ if("MessageCentcomm") if(is_authenticated(usr) == 2) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") nanomanager.update_uis(src) return var/input = stripped_input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") as text|null @@ -242,7 +242,7 @@ nanomanager.update_uis(src) return Centcomm_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a Centcomm announcement: [input]") centcomm_message_cooldown = 1 spawn(6000)//10 minute cooldown @@ -253,7 +253,7 @@ if("MessageSyndicate") if((is_authenticated(usr) == 2) && (src.emagged)) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") nanomanager.update_uis(src) return var/input = stripped_input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") as text|null @@ -261,7 +261,7 @@ nanomanager.update_uis(src) return Syndicate_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a Syndicate announcement: [input]") centcomm_message_cooldown = 1 spawn(6000)//10 minute cooldown @@ -269,7 +269,7 @@ setMenuState(usr,COMM_SCREEN_MAIN) if("RestoreBackup") - usr << "Backup routing data restored!" + to_chat(usr, "Backup routing data restored!") src.emagged = 0 setMenuState(usr,COMM_SCREEN_MAIN) @@ -279,7 +279,7 @@ /obj/machinery/computer/communications/emag_act(user as mob) if(!emagged) src.emagged = 1 - user << "You scramble the communication routing circuits!" + to_chat(user, "You scramble the communication routing circuits!") nanomanager.update_uis(src) /obj/machinery/computer/communications/attack_ai(var/mob/user as mob) @@ -293,7 +293,7 @@ return if (!(src.z in list(ZLEVEL_STATION, ZLEVEL_CENTCOMM))) - user << "Unable to establish a connection: You're too far away from the station!" + to_chat(user, "Unable to establish a connection: You're too far away from the station!") return ui_interact(user) @@ -397,19 +397,19 @@ /proc/call_shuttle_proc(var/mob/user, var/reason) if(sent_strike_team == 1) - user << "Central Command will not allow the shuttle to be called. Consider all contracts terminated." + to_chat(user, "Central Command will not allow the shuttle to be called. Consider all contracts terminated.") return if(shuttle_master.emergencyNoEscape) - user << "The emergency shuttle may not be sent at this time. Please try again later." + to_chat(user, "The emergency shuttle may not be sent at this time. Please try again later.") return if(shuttle_master.emergency.mode > SHUTTLE_ESCAPE) - user << "The emergency shuttle may not be called while returning to Central Command." + to_chat(user, "The emergency shuttle may not be called while returning to Central Command.") return if(ticker.mode.name == "blob") - user << "Under directive 7-10, [station_name()] is quarantined until further notice." + to_chat(user, "Under directive 7-10, [station_name()] is quarantined until further notice.") return shuttle_master.requestEvac(user, reason) @@ -422,19 +422,19 @@ // if force is 0, some things may stop the shuttle call if(!force) if(shuttle_master.emergencyNoEscape) - user << "Central Command does not currently have a shuttle available in your sector. Please try again later." + to_chat(user, "Central Command does not currently have a shuttle available in your sector. Please try again later.") return if(sent_strike_team == 1) - user << "Central Command will not allow the shuttle to be called. Consider all contracts terminated." + to_chat(user, "Central Command will not allow the shuttle to be called. Consider all contracts terminated.") return if(world.time < 54000) // 30 minute grace period to let the game get going - user << "The shuttle is refueling. Please wait another [round((54000-world.time)/600)] minutes before trying again." + to_chat(user, "The shuttle is refueling. Please wait another [round((54000-world.time)/600)] minutes before trying again.") return if(ticker.mode.name == "epidemic") - user << "Under directive 7-10, [station_name()] is quarantined until further notice." + to_chat(user, "Under directive 7-10, [station_name()] is quarantined until further notice.") return if(seclevel2num(get_security_level()) >= SEC_LEVEL_RED) // There is a serious threat we gotta move no time to give them five minutes. diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index 09b2873019a..8524cd85754 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -120,12 +120,12 @@ for (var/obj/C in src) C.loc = src.loc if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") new /obj/item/weapon/shard(loc) A.state = 3 A.icon_state = "3" else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") A.state = 4 A.icon_state = "4" qdel(src) diff --git a/code/game/machinery/computer/honkputer.dm b/code/game/machinery/computer/honkputer.dm index 06e5d102fb2..8ccd36fc780 100644 --- a/code/game/machinery/computer/honkputer.dm +++ b/code/game/machinery/computer/honkputer.dm @@ -21,7 +21,7 @@ if(..()) return 1 if (!(src.z in config.station_levels)) - usr << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!") return usr.set_machine(src) @@ -46,13 +46,13 @@ if("MessageHonkplanet") if(src.authenticated==1) if(message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = stripped_input(usr, "Please choose a message to transmit to your HONKbrothers on the homeworld. Transmission does not guarantee a response.", "To abort, send an empty message.", "") if(!input || !(usr in view(1,src))) return HONK_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a HONKplanet announcement: [input]") message_cooldown = 1 spawn(6000)//10 minute cooldown @@ -63,20 +63,20 @@ /obj/machinery/computer/HONKputer/emag_act(user as mob) if(!emagged) src.emagged = 1 - user << "You scramble the login circuits, allowing anyone to use the console!" + to_chat(user, "You scramble the login circuits, allowing anyone to use the console!") /obj/machinery/computer/HONKputer/attack_hand(var/mob/user as mob) if(..()) return if (src.z > 6) - user << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!") return user.set_machine(src) var/dat = "HONKputer Interface" if (istype(user, /mob/living/silicon)) - user << "This console is not networked to the rest of the grid." + to_chat(user, "This console is not networked to the rest of the grid.") return switch(src.state) @@ -104,12 +104,12 @@ for (var/obj/C in src) C.loc = src.loc if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") new /obj/item/weapon/shard( src.loc ) A.state = 3 A.icon_state = "3" else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") A.state = 4 A.icon_state = "4" qdel(src) diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index f3ddbe5bb0d..c84690cfa64 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -22,15 +22,15 @@ opened = !opened if(opened) - usr << "\blue The access panel is now open." + to_chat(usr, "\blue The access panel is now open.") else - usr << "\blue The access panel is now closed." + to_chat(usr, "\blue The access panel is now closed.") return attackby(obj/item/weapon/O as obj, mob/user as mob, params) if (user.z > 6) - user << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!") return if(istype(O, /obj/item/weapon/aiModule)) var/datum/game_mode/nations/mode = get_nations_mode() @@ -39,25 +39,25 @@ M.install(src) else if(mode.kickoff) - user << "You have been locked out from modifying the AI's laws!" + to_chat(user, "You have been locked out from modifying the AI's laws!") else ..() attack_hand(var/mob/user as mob) if(src.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(src.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return src.current = select_active_ai(user) if (!src.current) - usr << "No active AIs detected." + to_chat(usr, "No active AIs detected.") else - usr << "[src.current.name] selected for law changes." + to_chat(usr, "[src.current.name] selected for law changes.") return attack_ghost(user as mob) @@ -79,25 +79,25 @@ module.install(src) else if(mode.kickoff) - user << "You have been locked out from modifying the borg's laws!" + to_chat(user, "You have been locked out from modifying the borg's laws!") else return ..() attack_hand(var/mob/user as mob) if(src.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(src.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return src.current = freeborg() if (!src.current) - usr << "No free cyborgs detected." + to_chat(usr, "No free cyborgs detected.") else - usr << "[src.current.name] selected for law changes." + to_chat(usr, "[src.current.name] selected for law changes.") return attack_ghost(user as mob) diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm index 75c9974bfbb..a56fe597b13 100644 --- a/code/game/machinery/computer/message.dm +++ b/code/game/machinery/computer/message.dm @@ -45,7 +45,7 @@ return if(isscrewdriver(O) && emag) //Stops people from just unscrewing the monitor and putting it back to get the console working again. - user << "It is too hot to mess with!" + to_chat(user, "It is too hot to mess with!") return ..() @@ -72,7 +72,7 @@ update_icon() message = rebootmsg else - user << "A no server error appears on the screen." + to_chat(user, "A no server error appears on the screen.") /obj/machinery/computer/message_monitor/update_icon() if(emag || hacking) @@ -296,10 +296,10 @@ /obj/machinery/computer/message_monitor/proc/BruteForce(mob/user as mob) if(isnull(linkedServer)) - user << "Could not complete brute-force: Linked Server Disconnected!" + to_chat(user, "Could not complete brute-force: Linked Server Disconnected!") else var/currentKey = src.linkedServer.decryptkey - user << "Brute-force completed! The key is '[currentKey]'." + to_chat(user, "Brute-force completed! The key is '[currentKey]'.") src.hacking = 0 src.icon_screen = normal_icon src.screen = 0 // Return the screen back to normal @@ -518,7 +518,7 @@ if(auth) src.screen = 4 - //usr << href_list["select"] +// to_chat(usr, href_list["select"]) if (href_list["back"]) src.screen = 0 diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index 72e9848e634..38e6c139f2e 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -276,7 +276,7 @@ /obj/machinery/computer/pod/old/syndicate/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "Access Denied" + to_chat(user, "Access Denied") return else ..() diff --git a/code/game/machinery/computer/prisoner.dm b/code/game/machinery/computer/prisoner.dm index d9c8578c853..7ae15a086f2 100644 --- a/code/game/machinery/computer/prisoner.dm +++ b/code/game/machinery/computer/prisoner.dm @@ -91,7 +91,8 @@ usr.drop_item() I.loc = src inserted_id = I - else usr << "\red No valid ID." + else + to_chat(usr, "\red No valid ID.") if("1") inserted_id.loc = get_step(src,get_turf(usr)) inserted_id = null @@ -117,7 +118,7 @@ if(src.allowed(usr)) screen = !screen else - usr << "Unauthorized access." + to_chat(usr, "Unauthorized access.") else if(href_list["warn"]) var/warning = sanitize(copytext(input(usr,"Message:","Enter your message here!",""),1,MAX_MESSAGE_LEN)) @@ -125,7 +126,7 @@ var/obj/item/weapon/implant/I = locate(href_list["warn"]) if((I)&&(I.imp_in)) var/mob/living/carbon/R = I.imp_in - R << "You hear a voice in your head saying: '[warning]'" + to_chat(R, "You hear a voice in your head saying: '[warning]'") src.add_fingerprint(usr) src.updateUsrDialog() diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index e5b8956ad93..ccdd9b3f276 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -25,7 +25,7 @@ ui_interact(user) else if(mode.kickoff) - user << "You have been locked out from this console!" + to_chat(user, "You have been locked out from this console!") /obj/machinery/computer/robotics/proc/is_authenticated(var/mob/user as mob) @@ -59,7 +59,7 @@ var/mob/user = usr if(!is_authenticated(user)) - user << "Access denied." + to_chat(user, "Access denied.") return // Destroys the cyborg @@ -68,11 +68,11 @@ if(!target || !istype(target)) return if(isAI(user) && (target.connected_ai != user)) - user << "Access Denied. This robot is not linked to you." + to_chat(user, "Access Denied. This robot is not linked to you.") return // Cyborgs may blow up themselves via the console if(isrobot(user) && user != target) - user << "Access Denied." + to_chat(user, "Access Denied.") return var/choice = input("Really detonate [target.name]?") in list ("Yes", "No") if(choice != "Yes") @@ -82,14 +82,14 @@ // Antagonistic cyborgs? Left here for downstream if(target.mind && target.mind.special_role && target.emagged) - target << "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered." + to_chat(target, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.") target.ResetSecurityCodes() else message_admins("[key_name_admin(usr)] detonated [key_name_admin(target)] (JMP)!") log_game("\[key_name(usr)] detonated [key_name(target)]!") - target << "Self-destruct command received." + to_chat(target, "Self-destruct command received.") if(target.connected_ai) - target.connected_ai << "

ALERT - Cyborg detonation detected: [target.name]
" + to_chat(target.connected_ai, "

ALERT - Cyborg detonation detected: [target.name]
") spawn(10) target.self_destruct() @@ -100,11 +100,11 @@ return if(isAI(user) && (target.connected_ai != user)) - user << "Access Denied. This robot is not linked to you." + to_chat(user, "Access Denied. This robot is not linked to you.") return if(isrobot(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return var/choice = input("Really [target.lockcharge ? "unlock" : "lockdown"] [target.name] ?") in list ("Yes", "No") @@ -118,9 +118,9 @@ log_game("[key_name(usr)] [target.canmove ? "locked down" : "released"] [key_name(target)]!") target.canmove = !target.canmove target.lockcharge = !target.lockcharge - target << "[!target.lockcharge ? "Your lockdown has been lifted!" : "You have been locked down!"]" + to_chat(target, "[!target.lockcharge ? "Your lockdown has been lifted!" : "You have been locked down!"]") if(target.connected_ai) - target.connected_ai << "[!target.lockcharge ? "NOTICE - Cyborg lockdown lifted" : "ALERT - Cyborg lockdown detected"]: [target.name]

" + to_chat(target.connected_ai, "[!target.lockcharge ? "NOTICE - Cyborg lockdown lifted" : "ALERT - Cyborg lockdown detected"]: [target.name]

") // Remotely hacks the cyborg. Only antag AIs can do this and only to linked cyborgs. else if (href_list["hack"]) @@ -130,15 +130,15 @@ // Antag AI checks if(!istype(user, /mob/living/silicon/ai) || !(user.mind.special_role && user.mind.original == user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return if(target.connected_ai != user) - user << "Access Denied. This robot is not linked to you." + to_chat(user, "Access Denied. This robot is not linked to you.") return if(target.emagged) - user << "Robot is already hacked." + to_chat(user, "Robot is already hacked.") return var/choice = input("Really hack [target.name]? This cannot be undone.") in list("Yes", "No") @@ -151,24 +151,24 @@ message_admins("\blue [key_name_admin(usr)] emagged [key_name_admin(target)] using robotic console!") log_game("[key_name(usr)] emagged [key_name(target)] using robotic console!") target.emagged = 1 - target << "Failsafe protocols overriden. New tools available." + to_chat(target, "Failsafe protocols overriden. New tools available.") // Arms the emergency self-destruct system else if(href_list["arm"]) if(istype(user, /mob/living/silicon)) - user << "Access Denied." + to_chat(user, "Access Denied.") return safety = !safety - user << "You [safety ? "disarm" : "arm"] the emergency self destruct." + to_chat(user, "You [safety ? "disarm" : "arm"] the emergency self destruct.") // Destroys all accessible cyborgs if safety is disabled else if(href_list["nuke"]) if(istype(user, /mob/living/silicon)) - user << "Access Denied" + to_chat(user, "Access Denied") return if(safety) - user << "Self-destruct aborted - safety active" + to_chat(user, "Self-destruct aborted - safety active") return message_admins("[key_name_admin(usr)] detonated all cyborgs!") @@ -180,9 +180,9 @@ // Ignore antagonistic cyborgs if(R.scrambledcodes) continue - R << "Self-destruct command received." + to_chat(R, "Self-destruct command received.") if(R.connected_ai) - R.connected_ai << "

ALERT - Cyborg detonation detected: [R.name]
" + to_chat(R.connected_ai, "

ALERT - Cyborg detonation detected: [R.name]
") spawn(10) R.self_destruct() diff --git a/code/game/machinery/computer/salvage_ship.dm b/code/game/machinery/computer/salvage_ship.dm index adeddde427b..c0693c810d3 100644 --- a/code/game/machinery/computer/salvage_ship.dm +++ b/code/game/machinery/computer/salvage_ship.dm @@ -46,7 +46,7 @@ /obj/machinery/computer/salvage_ship/attack_hand(mob/user as mob) if(!allowed(user)) - user << "\red Access Denied" + to_chat(user, "\red Access Denied") return user.set_machine(src) diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm index 06ea4dd8702..2a074a9880b 100644 --- a/code/game/machinery/computer/security.dm +++ b/code/game/machinery/computer/security.dm @@ -31,7 +31,7 @@ usr.drop_item() O.loc = src scan = O - user << "You insert [O]." + to_chat(user, "You insert [O].") ..() /obj/machinery/computer/secure_data/attack_ai(mob/user as mob) @@ -42,7 +42,7 @@ if(..()) return if (src.z > 6) - user << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!") return var/dat diff --git a/code/game/machinery/computer/skills.dm b/code/game/machinery/computer/skills.dm index 3600503d764..d2f44de6011 100644 --- a/code/game/machinery/computer/skills.dm +++ b/code/game/machinery/computer/skills.dm @@ -30,7 +30,7 @@ usr.drop_item() O.loc = src scan = O - user << "You insert [O]." + to_chat(user, "You insert [O].") ..() /obj/machinery/computer/skills/attack_ai(mob/user as mob) @@ -41,7 +41,7 @@ if(..()) return if (src.z > 6) - user << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!") return var/dat diff --git a/code/game/machinery/computer/specops_shuttle.dm b/code/game/machinery/computer/specops_shuttle.dm index 3f8692e3697..d74e27bc702 100644 --- a/code/game/machinery/computer/specops_shuttle.dm +++ b/code/game/machinery/computer/specops_shuttle.dm @@ -89,7 +89,7 @@ var/specops_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "\red You have arrived at Central Command. Operation has ended!" + to_chat(M, "\red You have arrived at Central Command. Operation has ended!") specops_shuttle_at_station = 0 @@ -137,7 +137,7 @@ var/specops_shuttle_timeleft = 0 if (specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "\red The Special Operations shuttle is unable to leave." + to_chat(usr, "\red The Special Operations shuttle is unable to leave.") return //Begin Marauder launchpad. @@ -231,7 +231,7 @@ var/specops_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "\red You have arrived to [station_name]. Commence operation!" + to_chat(M, "\red You have arrived to [station_name]. Commence operation!") for(var/obj/machinery/computer/specops_shuttle/S in world) S.specops_shuttle_timereset = world.time + SPECOPS_RETURN_DELAY @@ -247,23 +247,23 @@ var/specops_shuttle_timeleft = 0 return 1 /obj/machinery/computer/specops_shuttle/attack_ai(var/mob/user as mob) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return 1 /obj/machinery/computer/specops_shuttle/attackby(I as obj, user as mob, params) if(istype(I,/obj/item/weapon/card/emag)) - user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.") else return attack_hand(user) /obj/machinery/computer/specops_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return //Commented out so admins can do shenanigans at their leisure. Also makes the force-spawned admin ERTs able to use the shuttle. // if (sent_strike_team == 0 && send_emergency_team == 0) -// usr << "\red The strike team has not yet deployed." +// to_chat(usr, "\red The strike team has not yet deployed.") // return if(..()) @@ -294,14 +294,14 @@ var/specops_shuttle_timeleft = 0 if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "\blue Central Command will not allow the Special Operations shuttle to return yet." + to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return yet.") if(world.timeofday <= specops_shuttle_timereset) if (((world.timeofday - specops_shuttle_timereset)/10) > 60) - usr << "\blue [-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!" - usr << "\blue [-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!" + to_chat(usr, "\blue [-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!") + to_chat(usr, "\blue [-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!") return - usr << "\blue The Special Operations shuttle will arrive at Central Command in [(SPECOPS_MOVETIME/10)] seconds." + to_chat(usr, "\blue The Special Operations shuttle will arrive at Central Command in [(SPECOPS_MOVETIME/10)] seconds.") temp += "Shuttle departing.

OK" updateUsrDialog() @@ -315,10 +315,10 @@ var/specops_shuttle_timeleft = 0 if(specops_shuttle_at_station || specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "\red The Special Operations shuttle is unable to leave." + to_chat(usr, "\red The Special Operations shuttle is unable to leave.") return - usr << "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds." + to_chat(usr, "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds.") temp += "Shuttle departing.

OK" updateUsrDialog() diff --git a/code/game/machinery/computer/store.dm b/code/game/machinery/computer/store.dm index 001578d1fcd..c8ae8741288 100644 --- a/code/game/machinery/computer/store.dm +++ b/code/game/machinery/computer/store.dm @@ -140,8 +140,8 @@ td.cost.toomuch { updateUsrDialog() return if(!centcomm_store.PlaceOrder(usr,itemID)) - usr << "\red Unable to charge your account." + to_chat(usr, "\red Unable to charge your account.") else - usr << "\blue You've successfully purchased the item. It should be in your hands or on the floor." + to_chat(usr, "\blue You've successfully purchased the item. It should be in your hands or on the floor.") src.updateUsrDialog() return diff --git a/code/game/machinery/computer/syndicate_specops_shuttle.dm b/code/game/machinery/computer/syndicate_specops_shuttle.dm index 76d7bf83a6a..16de635b0e7 100644 --- a/code/game/machinery/computer/syndicate_specops_shuttle.dm +++ b/code/game/machinery/computer/syndicate_specops_shuttle.dm @@ -60,7 +60,7 @@ var/syndicate_elite_shuttle_timeleft = 0 if (syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return if (!syndicate_elite_can_move()) - usr << "\red The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.") return sleep(600) @@ -172,7 +172,7 @@ var/syndicate_elite_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "\red You have arrived to [station_name]. Commence operation!" + to_chat(M, "\red You have arrived to [station_name]. Commence operation!") /proc/syndicate_elite_can_move() if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return 0 @@ -182,22 +182,22 @@ var/syndicate_elite_shuttle_timeleft = 0 return attack_hand(user) /obj/machinery/computer/syndicate_elite_shuttle/attack_ai(var/mob/user as mob) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return 1 /obj/machinery/computer/syndicate_elite_shuttle/attackby(I as obj, user as mob, params) if(istype(I,/obj/item/weapon/card/emag)) - user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.") else return attack_hand(user) /obj/machinery/computer/syndicate_elite_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return // if (sent_syndicate_strike_team == 0) -// usr << "\red The strike team has not yet deployed." +// to_chat(usr, "\red The strike team has not yet deployed.") // return if(..()) @@ -227,17 +227,17 @@ var/syndicate_elite_shuttle_timeleft = 0 if (href_list["sendtodock"]) if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return - usr << "\blue The Syndicate will not allow the Elite Squad shuttle to return." + to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.") return else if (href_list["sendtostation"]) if(syndicate_elite_shuttle_at_station || syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return if (!specops_can_move()) - usr << "\red The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.") return - usr << "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds." + to_chat(usr, "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds.") temp = "Shuttle departing.

OK" updateUsrDialog() diff --git a/code/game/machinery/computer/telecrystalconsoles.dm b/code/game/machinery/computer/telecrystalconsoles.dm index d154a09b02e..cc5934d9808 100644 --- a/code/game/machinery/computer/telecrystalconsoles.dm +++ b/code/game/machinery/computer/telecrystalconsoles.dm @@ -34,7 +34,7 @@ var/list/possible_uplinker_IDs = list("Alfa","Bravo","Charlie","Delta","Echo","F if(istype(O, /obj/item)) if(uplinkholder) - user << "The [src] already has an uplink in it." + to_chat(user, "The [src] already has an uplink in it.") return if(O.hidden_uplink) @@ -46,7 +46,7 @@ var/list/possible_uplinker_IDs = list("Alfa","Bravo","Charlie","Delta","Echo","F update_icon() updateUsrDialog() else - user << "The [O] doesn't appear to be an uplink..." + to_chat(user, "The [O] doesn't appear to be an uplink...") diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index ba0145fbcd9..72493bfba6f 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -59,7 +59,7 @@ /obj/machinery/constructable_frame/machine_frame/attackby(obj/item/P as obj, mob/user as mob, params) if(P.crit_fail) - user << "This part is faulty, you cannot add this to the machine!" + to_chat(user, "This part is faulty, you cannot add this to the machine!") return switch(state) if(1) @@ -67,23 +67,23 @@ var/obj/item/stack/cable_coil/C = P if(C.amount >= 5) playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "You start to add cables to the frame." + to_chat(user, "You start to add cables to the frame.") if(do_after(user, 20, target = src)) if(C.amount >= 5 && state == 1) C.use(5) - user << "You add cables to the frame." + to_chat(user, "You add cables to the frame.") state = 2 icon_state = "box_1" else - user << "You need five length of cable to wire the frame." + to_chat(user, "You need five length of cable to wire the frame.") return else if(istype(P, /obj/item/stack/sheet/glass)) var/obj/item/stack/sheet/glass/G = P if(G.amount<5) - user << "\red You do not have enough glass to build a display case." + to_chat(user, "\red You do not have enough glass to build a display case.") return G.use(5) - user << "\blue You add the glass to the frame." + to_chat(user, "\blue You add the glass to the frame.") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) new /obj/structure/displaycase_frame(src.loc) qdel(src) @@ -91,7 +91,7 @@ if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) - user << "You dismantle the frame." + to_chat(user, "You dismantle the frame.") new /obj/item/stack/sheet/metal(src.loc, 5) qdel(src) if(2) @@ -99,7 +99,7 @@ var/obj/item/weapon/circuitboard/B = P if(B.board_type == "machine") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "You add the circuit board to the frame." + to_chat(user, "You add the circuit board to the frame.") circuit = P user.drop_item() P.loc = src @@ -110,10 +110,10 @@ update_namelist() update_req_desc() else - user << "This frame does not accept circuit boards of this type!" + to_chat(user, "This frame does not accept circuit boards of this type!") if(istype(P, /obj/item/weapon/wirecutters)) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "You remove the cables." + to_chat(user, "You remove the cables.") state = 1 icon_state = "box_0" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil(src.loc,5) @@ -126,9 +126,9 @@ circuit.loc = src.loc circuit = null if(components.len == 0) - user << "You remove the circuit board." + to_chat(user, "You remove the circuit board.") else - user << "You remove the circuit board and other components." + to_chat(user, "You remove the circuit board and other components.") for(var/obj/item/I in components) I.loc = src.loc desc = initial(desc) @@ -177,7 +177,7 @@ for(var/obj/item/weapon/stock_parts/part in added_components) components += part - user << "[part.name] applied." + to_chat(user, "[part.name] applied.") replacer.play_rped_sound() update_req_desc() @@ -207,7 +207,7 @@ update_req_desc() return 1 if(!success) - user << "You cannot add that to the machine!" + to_chat(user, "You cannot add that to the machine!") return 0 //Machine Frame Circuit Boards @@ -245,7 +245,7 @@ to destroy them and players will be able to make replacements. /obj/item/weapon/circuitboard/vendor/proc/set_type(typepath, mob/user) build_path = typepath name = "circuit board ([names_paths[build_path]] Vendor)" - user << "You set the board to [names_paths[build_path]]." + to_chat(user, "You set the board to [names_paths[build_path]].") req_components = list(text2path("/obj/item/weapon/vending_refill/[copytext("[build_path]", 24)]") = 3) /obj/item/weapon/circuitboard/smes @@ -304,11 +304,11 @@ to destroy them and players will be able to make replacements. if(build_path == /obj/machinery/atmospherics/unary/cold_sink/freezer) build_path = /obj/machinery/atmospherics/unary/heat_reservoir/heater name = "circuit board (Heater)" - user << "You set the board to heating." + to_chat(user, "You set the board to heating.") else build_path = /obj/machinery/atmospherics/unary/cold_sink/freezer name = "circuit board (Freezer)" - user << "You set the board to cooling." + to_chat(user, "You set the board to cooling.") /obj/item/weapon/circuitboard/biogenerator name = "circuit board (Biogenerator)" @@ -924,4 +924,4 @@ obj/item/weapon/circuitboard/rdserver build_path = typepath name = "circuit board ([new_name])" if(user) - user << "You set the board to [new_name]." + to_chat(user, "You set the board to [new_name].") diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 705f997a3eb..6a1f0721253 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -97,17 +97,17 @@ if(!istype(user.loc, /turf) || !istype(O.loc, /turf)) // are you in a container/closet/pod/etc? return if(occupant) - user << "\blue The cryo cell is already occupied!" + to_chat(user, "\blue The cryo cell is already occupied!") return var/mob/living/L = O if(!istype(L) || L.buckled) return if(L.abiotic()) - user << "\red Subject cannot have abiotic items on." + to_chat(user, "\red Subject cannot have abiotic items on.") return for(var/mob/living/carbon/slime/M in range(1,L)) if(M.Victim == L) - usr << "[L.name] will not fit into the cryo cell because they have a slime latched onto their head." + to_chat(usr, "[L.name] will not fit into the cryo cell because they have a slime latched onto their head.") return if(put_mob(L)) if(L == user) @@ -161,7 +161,7 @@ return if(panel_open) - usr << "\blue Close the maintenance panel first." + to_chat(usr, "\blue Close the maintenance panel first.") return ui_interact(user) @@ -273,10 +273,10 @@ /obj/machinery/atmospherics/unary/cryo_cell/attackby(var/obj/item/weapon/G as obj, var/mob/user as mob, params) if(istype(G, /obj/item/weapon/reagent_containers/glass)) if(beaker) - user << "\red A beaker is already loaded into the machine." + to_chat(user, "\red A beaker is already loaded into the machine.") return if(!user.drop_item()) - user << "The [G] is stuck to you!" + to_chat(user, "The [G] is stuck to you!") return G.forceMove(src) beaker = G @@ -285,7 +285,7 @@ if (istype(G, /obj/item/weapon/screwdriver)) if(occupant || on) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "pod0-o", "pod0", G) return @@ -297,13 +297,13 @@ if(istype(G, /obj/item/weapon/grab)) if(panel_open) - user << "\blue Close the maintenance panel first." + to_chat(user, "\blue Close the maintenance panel first.") return if(!ismob(G:affecting)) return for(var/mob/living/carbon/slime/M in range(1,G:affecting)) if(M.Victim == G:affecting) - usr << "[G:affecting:name] will not fit into the cryo because they have a slime latched onto their head." + to_chat(usr, "[G:affecting:name] will not fit into the cryo because they have a slime latched onto their head.") return var/mob/M = G:affecting if(put_mob(M)) @@ -424,16 +424,16 @@ return /obj/machinery/atmospherics/unary/cryo_cell/proc/put_mob(mob/living/carbon/M as mob) if (!istype(M)) - usr << "\red The cryo cell cannot handle such a lifeform!" + to_chat(usr, "\red The cryo cell cannot handle such a lifeform!") return if (occupant) - usr << "\red The cryo cell is already occupied!" + to_chat(usr, "\red The cryo cell is already occupied!") return if (M.abiotic()) - usr << "\red Subject may not have abiotic items on." + to_chat(usr, "\red Subject may not have abiotic items on.") return if(!node) - usr << "\red The cell is not correctly connected to its pipe network!" + to_chat(usr, "\red The cell is not correctly connected to its pipe network!") return if (M.client) M.client.perspective = EYE_PERSPECTIVE @@ -441,7 +441,7 @@ M.stop_pulling() M.forceMove(src) if(M.health > -100 && (M.health < 0 || M.sleeping)) - M << "\blue You feel a cold liquid surround you. Your skin starts to freeze up." + to_chat(M, "\blue You feel a cold liquid surround you. Your skin starts to freeze up.") occupant = M // M.metabslow = 1 add_fingerprint(usr) @@ -456,7 +456,7 @@ if(usr == occupant)//If the user is inside the tube... if (usr.stat == 2)//and he's not dead.... return - usr << "\blue Release sequence activated. This will take two minutes." + to_chat(usr, "\blue Release sequence activated. This will take two minutes.") sleep(600) if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already return @@ -474,7 +474,7 @@ set src in oview(1) for(var/mob/living/carbon/slime/M in range(1,usr)) if(M.Victim == usr) - usr << "You're too busy getting your life sucked out of you." + to_chat(usr, "You're too busy getting your life sucked out of you.") return if (usr.stat != 0 || stat & (NOPOWER|BROKEN)) return diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 18e028c2ff8..8de2f1baf60 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -94,12 +94,12 @@ else if(href_list["item"]) if(!allowed(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return if(!allow_items) return if(frozen_items.len == 0) - user << "There is nothing to recover from storage." + to_chat(user, "There is nothing to recover from storage.") return var/obj/item/I = input(usr, "Please choose which object to retrieve.","Object recovery",null) as null|anything in frozen_items @@ -107,7 +107,7 @@ return if(!(I in frozen_items)) - user << "\The [I] is no longer in storage." + to_chat(user, "\The [I] is no longer in storage.") return visible_message("The console beeps happily as it disgorges \the [I].") @@ -117,12 +117,12 @@ else if(href_list["allitems"]) if(!allowed(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return if(!allow_items) return if(frozen_items.len == 0) - user << "There is nothing to recover from storage." + to_chat(user, "There is nothing to recover from storage.") return visible_message("The console beeps happily as it disgorges the desired objects.") @@ -363,7 +363,7 @@ else if(O.target && istype(O.target,/datum/mind)) if(O.target == occupant.mind) if(O.owner && O.owner.current) - O.owner.current << "You get the feeling your target is no longer within your reach. Time for Plan [pick(list("A","B","C","D","X","Y","Z"))]..." + to_chat(O.owner.current, "You get the feeling your target is no longer within your reach. Time for Plan [pick(list("A","B","C","D","X","Y","Z"))]...") O.target = null spawn(1) //This should ideally fire after the occupant is deleted. if(!O) return @@ -435,7 +435,7 @@ if(istype(G, /obj/item/weapon/grab)) if(occupant) - user << "\The [src] is in use." + to_chat(user, "\The [src] is in use.") return if(!ismob(G:affecting)) @@ -448,7 +448,7 @@ var/mob/living/M = G:affecting if(!istype(M) || M.stat == DEAD) - user << "Dead people can not be put into cryo." + to_chat(user, "Dead people can not be put into cryo.") return if(M.client) @@ -466,7 +466,7 @@ if(!M || !G || !G:affecting) return if(src.occupant) - user << "\The [src] is in use." + to_chat(user, "\The [src] is in use.") return M.loc = src @@ -476,7 +476,7 @@ M.client.eye = src else //because why the fuck would you keep going if the mob isn't in the pod - user << "You stop putting [M] into the cryopod." + to_chat(user, "You stop putting [M] into the cryopod.") return if(orient_right) @@ -484,8 +484,8 @@ else icon_state = occupied_icon_state - M << "[on_enter_occupant_message]" - M << "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round." + to_chat(M, "[on_enter_occupant_message]") + to_chat(M, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.") occupant = M time_entered = world.time @@ -495,7 +495,7 @@ for(var/mob/dead/observer/Gh in respawnable_list) //this may not be foolproof but it seemed like a better option than 'in world' if(Gh.key == FT) if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever - Gh << "Warning: Your body has entered cryostorage." + to_chat(Gh, "Warning: Your body has entered cryostorage.") // Book keeping! log_admin("[key_name(M)] has entered a stasis pod.") @@ -524,7 +524,7 @@ if(!istype(user.loc, /turf) || !istype(O.loc, /turf)) // are you in a container/closet/pod/etc? return if(occupant) - user << "\blue The cryo pod is already occupied!" + to_chat(user, "\blue The cryo pod is already occupied!") return @@ -533,12 +533,12 @@ return if(L.stat == DEAD) - user << "Dead people can not be put into cryo." + to_chat(user, "Dead people can not be put into cryo.") return for(var/mob/living/carbon/slime/M in range(1,L)) if(M.Victim == L) - usr << "[L.name] will not fit into the cryo pod because they have a slime latched onto their head." + to_chat(usr, "[L.name] will not fit into the cryo pod because they have a slime latched onto their head.") return @@ -561,7 +561,7 @@ if(!L) return if(src.occupant) - user << "\The [src] is in use." + to_chat(user, "\The [src] is in use.") return L.loc = src @@ -569,7 +569,7 @@ L.client.perspective = EYE_PERSPECTIVE L.client.eye = src else - user << "You stop [L == user ? "climbing into the cryo pod." : "putting [L] into the cryo pod."]" + to_chat(user, "You stop [L == user ? "climbing into the cryo pod." : "putting [L] into the cryo pod."]") return if(orient_right) @@ -577,8 +577,8 @@ else icon_state = occupied_icon_state - L << "[on_enter_occupant_message]" - L << "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round." + to_chat(L, "[on_enter_occupant_message]") + to_chat(L, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.") occupant = L time_entered = world.time @@ -587,7 +587,7 @@ for(var/mob/dead/observer/Gh in respawnable_list) //this may not be foolproof but it seemed like a better option than 'in world' if(Gh.key == FT) if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever - Gh << "Warning: Your body has entered cryostorage." + to_chat(Gh, "Warning: Your body has entered cryostorage.") // Book keeping! log_admin("[key_name_admin(L)] has entered a stasis pod. (JMP)") @@ -607,7 +607,7 @@ return if(usr != occupant) - usr << "The cryopod is in use and locked!" + to_chat(usr, "The cryopod is in use and locked!") return if(orient_right) @@ -638,12 +638,12 @@ return if(src.occupant) - usr << "\The [src] is in use." + to_chat(usr, "\The [src] is in use.") return for(var/mob/living/carbon/slime/M in range(1,usr)) if(M.Victim == usr) - usr << "You're too busy getting your life sucked out of you." + to_chat(usr, "You're too busy getting your life sucked out of you.") return visible_message("[usr] starts climbing into \the [src].") @@ -654,7 +654,7 @@ return if(src.occupant) - usr << "\The [src] is in use." + to_chat(usr, "\The [src] is in use.") return usr.stop_pulling() @@ -668,8 +668,8 @@ else icon_state = occupied_icon_state - usr << "[on_enter_occupant_message]" - usr << "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round." + to_chat(usr, "[on_enter_occupant_message]") + to_chat(usr, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.") occupant = usr time_entered = world.time diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index a9128ff930e..df7d3319c06 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -180,10 +180,10 @@ for reference: src.anchored = !src.anchored src.icon_state = "barrier[src.locked]" if ((src.locked == 1.0) && (src.emagged < 2.0)) - user << "Barrier lock toggled on." + to_chat(user, "Barrier lock toggled on.") return else if ((src.locked == 0.0) && (src.emagged < 2.0)) - user << "Barrier lock toggled off." + to_chat(user, "Barrier lock toggled off.") return else var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread @@ -220,14 +220,14 @@ for reference: if (!emagged) emagged = 1 req_access = null - user << "You break the ID authentication lock on the [src]." + to_chat(user, "You break the ID authentication lock on the [src].") var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(2, 1, src) s.start() visible_message("\red BZZzZZzZZzZT") else if (src.emagged == 1) src.emagged = 2 - user << "You short out the anchoring mechanism on the [src]." + to_chat(user, "You short out the anchoring mechanism on the [src].") var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(2, 1, src) s.start() diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm index 0e6834a3229..8c419216d07 100644 --- a/code/game/machinery/door_control.dm +++ b/code/game/machinery/door_control.dm @@ -35,7 +35,7 @@ if(wires & 2) return src.attack_hand(user) else - user << "Error, no route to host." + to_chat(user, "Error, no route to host.") /obj/machinery/door_control/attackby(obj/item/weapon/W, mob/user as mob, params) /* For later implementation @@ -69,7 +69,7 @@ return if(!allowed(user) && (wires & 1)) - user << "\red Access Denied" + to_chat(user, "\red Access Denied") flick("doorctrl-denied",src) return diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 2fcdd7a7745..1df75829613 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -298,14 +298,14 @@ if(istype(user,/mob/living/carbon/alien) || isrobot(user) || isAI(user)) ..(user) else - user << "You do not know how to operate this airlock's mechanism." + to_chat(user, "You do not know how to operate this airlock's mechanism.") return /obj/machinery/door/airlock/alien/attackby(C as obj, mob/user as mob, params) if(isalien(user) || isrobot(user) || isAI(user)) ..(C, user) else - user << "You do not know how to operate this airlock's mechanism." + to_chat(user, "You do not know how to operate this airlock's mechanism.") return @@ -351,7 +351,7 @@ About the new airlock wires panel: else /*if(src.justzap)*/ return else if(user.hallucination > 50 && prob(10) && src.operating == 0) - user << "\red You feel a powerful shock course through your body!" + to_chat(user, "\red You feel a powerful shock course through your body!") user.adjustStaminaLoss(50) user.AdjustStunned(5) return @@ -463,7 +463,7 @@ About the new airlock wires panel: electrified_timer = addtimer(src, "electrify", SecondsToTicks(duration), 1, 0) if(feedback && message) - usr << message + to_chat(usr, message) // shock user with probability prb (if all connections & power are working) // returns 1 if shocked, 0 otherwise @@ -567,43 +567,43 @@ About the new airlock wires panel: src.aiHacking=1 spawn(20) //TODO: Make this take a minute - user << "Airlock AI control has been blocked. Beginning fault-detection." + to_chat(user, "Airlock AI control has been blocked. Beginning fault-detection.") sleep(50) if(src.canAIControl()) - user << "Alert cancelled. Airlock control has been restored without our assistance." + to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.") src.aiHacking=0 return else if(!src.canAIHack(user)) - user << "We've lost our connection! Unable to hack airlock." + to_chat(user, "We've lost our connection! Unable to hack airlock.") src.aiHacking=0 return - user << "Fault confirmed: airlock control wire disabled or cut." + to_chat(user, "Fault confirmed: airlock control wire disabled or cut.") sleep(20) - user << "Attempting to hack into airlock. This may take some time." + to_chat(user, "Attempting to hack into airlock. This may take some time.") sleep(200) if(src.canAIControl()) - user << "Alert cancelled. Airlock control has been restored without our assistance." + to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.") src.aiHacking=0 return else if(!src.canAIHack(user)) - user << "We've lost our connection! Unable to hack airlock." + to_chat(user, "We've lost our connection! Unable to hack airlock.") src.aiHacking=0 return - user << "Upload access confirmed. Loading control program into airlock software." + to_chat(user, "Upload access confirmed. Loading control program into airlock software.") sleep(170) if(src.canAIControl()) - user << "Alert cancelled. Airlock control has been restored without our assistance." + to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.") src.aiHacking=0 return else if(!src.canAIHack(user)) - user << "We've lost our connection! Unable to hack airlock." + to_chat(user, "We've lost our connection! Unable to hack airlock.") src.aiHacking=0 return - user << "Transfer complete. Forcing airlock to execute program." + to_chat(user, "Transfer complete. Forcing airlock to execute program.") sleep(50) //disable blocked control src.aiControlDisabled = 2 - user << "Receiving control information from airlock." + to_chat(user, "Receiving control information from airlock.") sleep(10) //bring up airlock dialog src.aiHacking = 0 @@ -652,16 +652,16 @@ About the new airlock wires panel: return STATUS_CLOSE if(operating < 0) //emagged - user << "Unable to interface: Internal error." + to_chat(user, "Unable to interface: Internal error.") return STATUS_CLOSE if(!src.canAIControl()) if(src.canAIHack(user)) src.hack(user) else if (src.isAllPowerLoss()) //don't really like how this gets checked a second time, but not sure how else to do it. - user << "Unable to interface: Connection timed out." + to_chat(user, "Unable to interface: Connection timed out.") else - user << "Unable to interface: Connection refused." + to_chat(user, "Unable to interface: Connection refused.") return STATUS_CLOSE return ..() @@ -674,13 +674,13 @@ About the new airlock wires panel: switch (href_list["command"]) if("idscan") if(src.isWireCut(AIRLOCK_WIRE_IDSCAN)) - usr << "The IdScan wire has been cut - IdScan feature permanently disabled." + to_chat(usr, "The IdScan wire has been cut - IdScan feature permanently disabled.") else if(activate && src.aiDisabledIdScanner) src.aiDisabledIdScanner = 0 - usr << "IdScan feature has been enabled." + to_chat(usr, "IdScan feature has been enabled.") else if(!activate && !src.aiDisabledIdScanner) src.aiDisabledIdScanner = 1 - usr << "IdScan feature has been disabled." + to_chat(usr, "IdScan feature has been disabled.") if("main_power") if(!main_power_lost_until) src.loseMainPower() @@ -689,38 +689,38 @@ About the new airlock wires panel: src.loseBackupPower() if("bolts") if(src.isWireCut(AIRLOCK_WIRE_DOOR_BOLTS)) - usr << "The door bolt control wire has been cut - Door bolts permanently dropped." + to_chat(usr, "The door bolt control wire has been cut - Door bolts permanently dropped.") else if(activate && src.lock()) - usr << "The door bolts have been dropped." + to_chat(usr, "The door bolts have been dropped.") else if(!activate && src.unlock()) - usr << "The door bolts have been raised." + to_chat(usr, "The door bolts have been raised.") if("electrify_temporary") if(activate && src.isWireCut(AIRLOCK_WIRE_ELECTRIFY)) - usr << text("The electrification wire is cut - Door permanently electrified.") + to_chat(usr, text("The electrification wire is cut - Door permanently electrified.")) else if(!activate && electrified_until != 0) - usr << "The door is now un-electrified." + to_chat(usr, "The door is now un-electrified.") electrify(0) else if(activate) //electrify door for 30 seconds shockedby += text("\[[time_stamp()]\][usr](ckey:[usr.ckey])") usr.attack_log += text("\[[time_stamp()]\] Electrified the [name] at [x] [y] [z]") - usr << "The door is now electrified for thirty seconds." + to_chat(usr, "The door is now electrified for thirty seconds.") electrify(30) if("electrify_permanently") if(src.isWireCut(AIRLOCK_WIRE_ELECTRIFY)) - usr << text("The electrification wire is cut - Cannot electrify the door.") + to_chat(usr, text("The electrification wire is cut - Cannot electrify the door.")) else if(!activate && electrified_until != 0) - usr << "The door is now un-electrified." + to_chat(usr, "The door is now un-electrified.") electrify(0) else if(activate) shockedby += text("\[[time_stamp()]\][usr](ckey:[usr.ckey])") usr.attack_log += text("\[[time_stamp()]\] Electrified the [name] at [x] [y] [z]") - usr << "The door is now electrified." + to_chat(usr, "The door is now electrified.") electrify(-1) if("open") if(src.welded) - usr << text("The airlock has been welded shut!") + to_chat(usr, text("The airlock has been welded shut!")) else if(src.locked) - usr << text("The door bolts are down!") + to_chat(usr, text("The door bolts are down!")) else if(activate && density) open() else if(!activate && !density) @@ -728,7 +728,7 @@ About the new airlock wires panel: if("safeties") // Safeties! We don't need no stinking safeties! if (src.isWireCut(AIRLOCK_WIRE_SAFETY)) - usr << text("The safety wire is cut - Cannot secure the door.") + to_chat(usr, text("The safety wire is cut - Cannot secure the door.")) else if (activate && src.safe) safe = 0 else if (!activate && !src.safe) @@ -736,7 +736,7 @@ About the new airlock wires panel: if("timing") // Door speed control if(src.isWireCut(AIRLOCK_WIRE_SPEED)) - usr << text("The timing wire is cut - Cannot alter timing.") + to_chat(usr, text("The timing wire is cut - Cannot alter timing.")) else if (activate && src.normalspeed) normalspeed = 0 else if (!activate && !src.normalspeed) @@ -744,27 +744,27 @@ About the new airlock wires panel: if("lights") // Bolt lights if(src.isWireCut(AIRLOCK_WIRE_LIGHT)) - usr << "The bolt lights wire has been cut - The door bolt lights are permanently disabled." + to_chat(usr, "The bolt lights wire has been cut - The door bolt lights are permanently disabled.") else if (!activate && src.lights) lights = 0 - usr << "The door bolt lights have been disabled." + to_chat(usr, "The door bolt lights have been disabled.") else if (activate && !src.lights) lights = 1 - usr << "The door bolt lights have been enabled." + to_chat(usr, "The door bolt lights have been enabled.") if("emergency") // Emergency access if (src.emergency) emergency = 0 - usr << "Emergency access has been disabled." + to_chat(usr, "Emergency access has been disabled.") else emergency = 1 - usr << "Emergency access has been enabled." + to_chat(usr, "Emergency access has been enabled.") update_icon() return 1 /obj/machinery/door/airlock/attackby(C as obj, mob/user as mob, params) - //world << text("airlock attackby src [] obj [] mob []", src, C, user) +// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user)) if(!istype(usr, /mob/living/silicon)) if(src.isElectrified()) if(src.shock(user, 75)) @@ -808,7 +808,7 @@ About the new airlock wires panel: playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] removes the electronics from the airlock assembly.", "You start to remove electronics from the airlock assembly.") if(do_after(user,40, target = src)) - user << "\blue You removed the airlock electronics!" + to_chat(user, "\blue You removed the airlock electronics!") var/obj/structure/door_assembly/da = new assembly_type(src.loc) da.anchored = 1 @@ -842,9 +842,9 @@ About the new airlock wires panel: qdel(src) return else if(arePowerSystemsOn()) - user << "\blue The airlock's motors resist your efforts to force it." + to_chat(user, "\blue The airlock's motors resist your efforts to force it.") else if(locked) - user << "\blue The airlock's bolts prevent it from being forced." + to_chat(user, "\blue The airlock's bolts prevent it from being forced.") else if( !welded && !operating ) if(density) if(beingcrowbarred == 0) //being fireaxe'd @@ -852,7 +852,7 @@ About the new airlock wires panel: if(F.wielded) spawn(0) open(1) else - user << "\red You need to be wielding \the [C] to do that." + to_chat(user, "\red You need to be wielding \the [C] to do that.") else spawn(0) open(1) else @@ -861,7 +861,7 @@ About the new airlock wires panel: if(F.wielded) spawn(0) close(1) else - user << "\red You need to be wielding \the [C] to do that." + to_chat(user, "\red You need to be wielding \the [C] to do that.") else spawn(0) close(1) else @@ -988,7 +988,7 @@ About the new airlock wires panel: update_icon() /obj/machinery/door/airlock/hatch/gamma/attackby(C as obj, mob/user as mob, params) - //world << text("airlock attackby src [] obj [] mob []", src, C, user) +// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user)) if(!istype(usr, /mob/living/silicon)) if(src.isElectrified()) if(src.shock(user, 75)) @@ -997,11 +997,11 @@ About the new airlock wires panel: return if(istype(C, /obj/item/weapon/c4)) - user << "The hatch is coated with a product that prevents the shaped charge from sticking!" + to_chat(user, "The hatch is coated with a product that prevents the shaped charge from sticking!") return if(istype(C, /obj/item/mecha_parts/mecha_equipment/tool/rcd) || istype(C, /obj/item/weapon/rcd)) - user << "The hatch is made of an advanced compound that cannot be deconstructed using an RCD." + to_chat(user, "The hatch is made of an advanced compound that cannot be deconstructed using an RCD.") return src.add_fingerprint(user) @@ -1021,7 +1021,7 @@ About the new airlock wires panel: /obj/machinery/door/airlock/highsecurity/red/attackby(C as obj, mob/user as mob, params) - //world << text("airlock attackby src [] obj [] mob []", src, C, user) +// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user)) if(!istype(usr, /mob/living/silicon)) if(src.isElectrified()) if(src.shock(user, 75)) diff --git a/code/game/machinery/doors/airlock_control.dm b/code/game/machinery/doors/airlock_control.dm index e9e1d03831f..5f55eb26fc2 100644 --- a/code/game/machinery/doors/airlock_control.dm +++ b/code/game/machinery/doors/airlock_control.dm @@ -260,7 +260,7 @@ obj/machinery/access_button/attackby(obj/item/I as obj, mob/user as mob, params) obj/machinery/access_button/attack_hand(mob/user) add_fingerprint(usr) if(!allowed(user)) - user << "\red Access Denied" + to_chat(user, "\red Access Denied") else if(radio_connection) var/datum/signal/signal = new diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index cc65584c2e3..09f4885dc07 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -79,7 +79,7 @@ return if(blocked) - user << "\red \The [src] is welded solid!" + to_chat(user, "\red \The [src] is welded solid!") return var/area/A = get_area_master(src) @@ -142,11 +142,11 @@ return if(user.stat || user.stunned || user.weakened || user.paralysis || get_dist(src, user) > 1) - user << "Sorry, you must remain able bodied and close to \the [src] in order to use it." + to_chat(user, "Sorry, you must remain able bodied and close to \the [src] in order to use it.") return if(alarmed && density && !access_granted) - user << "Access denied. Please wait for authorities to arrive, or for the alert to clear." + to_chat(user, "Access denied. Please wait for authorities to arrive, or for the alert to clear.") return else @@ -178,7 +178,7 @@ return //Already doing something or depowered. if(blocked) - user << "\red \The [src] is welded solid!" + to_chat(user, "\red \The [src] is welded solid!") return var/area/A = get_area_master(src) diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index 858600b676a..39ed81b3360 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -260,11 +260,11 @@ if(istype(I, /obj/item/weapon/screwdriver)) if(src.density || src.operating) - user << "You need to open the door to access the maintenance panel." + to_chat(user, "You need to open the door to access the maintenance panel.") return playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) src.p_open = !( src.p_open ) - user << "You [p_open ? "open":"close"] the maintenance panel of the [src.name]." + to_chat(user, "You [p_open ? "open":"close"] the maintenance panel of the [src.name].") return if(istype(I, /obj/item/weapon/crowbar)) @@ -294,11 +294,11 @@ WA.created_name = src.name if(emagged) - user << "You discard the damaged electronics." + to_chat(user, "You discard the damaged electronics.") qdel(src) return - user << "You removed the airlock electronics!" + to_chat(user, "You removed the airlock electronics!") var/obj/item/weapon/airlock_electronics/ae if(!electronics) diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm index 643aacaf549..cbb9aabd20f 100644 --- a/code/game/machinery/doppler_array.dm +++ b/code/game/machinery/doppler_array.dm @@ -24,11 +24,11 @@ var/list/doppler_arrays = list() if(!anchored && !isinspace()) anchored = 1 power_change() - user << "You fasten [src]." + to_chat(user, "You fasten [src].") else if(anchored) anchored = 0 power_change() - user << "You unfasten [src]." + to_chat(user, "You unfasten [src].") playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) /obj/machinery/doppler_array/verb/rotate() diff --git a/code/game/machinery/drying_rack.dm b/code/game/machinery/drying_rack.dm index f8c76de25ff..9ec3974483f 100644 --- a/code/game/machinery/drying_rack.dm +++ b/code/game/machinery/drying_rack.dm @@ -37,7 +37,7 @@ if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/meat)) user.unEquip(W) del(W) - user << "You add the meat to the drying rack." + to_chat(user, "You add the meat to the drying rack.") src.running = 1 use_power = 2 icon_state = "drying_rack_on" @@ -50,7 +50,7 @@ if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/grown/grapes)) user.unEquip(W) del(W) - user << "You add the grapes to the drying rack." + to_chat(user, "You add the grapes to the drying rack.") src.running = 1 use_power = 2 icon_state = "drying_rack_on" @@ -63,7 +63,7 @@ if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/grown/greengrapes)) user.unEquip(W) del(W) - user << "You add the green grapes to the drying rack." + to_chat(user, "You add the green grapes to the drying rack.") src.running = 1 use_power = 2 icon_state = "drying_rack_on" @@ -78,7 +78,7 @@ var/J = W.type var/obj/item/weapon/reagent_containers/food/snacks/grown/B = W B.reagents.trans_to(src, B.reagents.total_volume) - user << "You add the [W] to the drying rack." + to_chat(user, "You add the [W] to the drying rack.") user.unEquip(W) del(W) src.running = 1 @@ -87,7 +87,7 @@ sleep(60) icon_state = "drying_rack" var/obj/item/weapon/reagent_containers/food/snacks/grown/D = new J(src.loc) - user << "\blue You finish drying the [D]" + to_chat(user, "\blue You finish drying the [D]") D.icon_state = "[D.icon_state]_dry" D.dry = 1 D.reagents.remove_any(50) @@ -96,10 +96,10 @@ src.running = 0 return else - user << "\red That has already been dried!" + to_chat(user, "\red That has already been dried!") else - user << "\red Please wait until the last item has dried." + to_chat(user, "\red Please wait until the last item has dried.") else - user << "\red You cannot add that to the drying rack." + to_chat(user, "\red You cannot add that to the drying rack.") diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller.dm b/code/game/machinery/embedded_controller/airlock_docking_controller.dm index a78ac2be2d8..0ffb9c3d7dc 100644 --- a/code/game/machinery/embedded_controller/airlock_docking_controller.dm +++ b/code/game/machinery/embedded_controller/airlock_docking_controller.dm @@ -140,16 +140,16 @@ /*** DEBUG VERBS *** /datum/computer/file/embedded_program/docking/proc/print_state() - world << "id_tag: [id_tag]" - world << "dock_state: [dock_state]" - world << "control_mode: [control_mode]" - world << "tag_target: [tag_target]" - world << "response_sent: [response_sent]" + to_chat(world, "id_tag: [id_tag]") + to_chat(world, "dock_state: [dock_state]") + to_chat(world, "control_mode: [control_mode]") + to_chat(world, "tag_target: [tag_target]") + to_chat(world, "response_sent: [response_sent]") /datum/computer/file/embedded_program/docking/post_signal(datum/signal/signal, comm_line) - world << "Program [id_tag] sent a message!" + to_chat(world, "Program [id_tag] sent a message!") print_state() - world << "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"" + to_chat(world, "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"") ..(signal) /obj/machinery/embedded_controller/radio/airlock/docking_port/verb/view_state() diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm b/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm index 0cffb34dc6f..f7ca5b1339a 100644 --- a/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm +++ b/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm @@ -113,16 +113,16 @@ /*** DEBUG VERBS *** /datum/computer/file/embedded_program/docking/multi/proc/print_state() - world << "id_tag: [id_tag]" - world << "dock_state: [dock_state]" - world << "control_mode: [control_mode]" - world << "tag_target: [tag_target]" - world << "response_sent: [response_sent]" + to_chat(world, "id_tag: [id_tag]") + to_chat(world, "dock_state: [dock_state]") + to_chat(world, "control_mode: [control_mode]") + to_chat(world, "tag_target: [tag_target]") + to_chat(world, "response_sent: [response_sent]") /datum/computer/file/embedded_program/docking/multi/post_signal(datum/signal/signal, comm_line) - world << "Program [id_tag] sent a message!" + to_chat(world, "Program [id_tag] sent a message!") print_state() - world << "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"" + to_chat(world, "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"") ..(signal) /obj/machinery/embedded_controller/radio/docking_port_multi/verb/view_state() diff --git a/code/game/machinery/embedded_controller/docking_program.dm b/code/game/machinery/embedded_controller/docking_program.dm index 932562e39ab..aa938c663bc 100644 --- a/code/game/machinery/embedded_controller/docking_program.dm +++ b/code/game/machinery/embedded_controller/docking_program.dm @@ -239,7 +239,7 @@ received_confirm = 0 /datum/computer/file/embedded_program/docking/proc/force_undock() - //world << "[id_tag]: forcing undock" +// to_chat(world, "[id_tag]: forcing undock") if (tag_target) send_docking_command(tag_target, "dock_error") reset() diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm index 113a4f0be9e..3426023f13c 100644 --- a/code/game/machinery/firealarm.dm +++ b/code/game/machinery/firealarm.dm @@ -89,7 +89,7 @@ FIRE ALARM user.visible_message("\red [user] has disconnected [src]'s detecting unit!", "You have disconnected [src]'s detecting unit.") else if(istype(W, /obj/item/weapon/wirecutters)) // cutting the wires out - user << "You cut the wires!" + to_chat(user, "You cut the wires!") playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) var/obj/item/stack/cable_coil/new_coil = new /obj/item/stack/cable_coil() new_coil.amount = 5 @@ -100,15 +100,15 @@ FIRE ALARM if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil = W if(!coil.use(5)) - user << "You cut the wires!" + to_chat(user, "You cut the wires!") return buildstage = 2 - user << "You wire \the [src]!" + to_chat(user, "You wire \the [src]!") update_icon() else if(istype(W, /obj/item/weapon/crowbar)) - user << "You pry out the circuit!" + to_chat(user, "You pry out the circuit!") playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) spawn(20) var/obj/item/weapon/firealarm_electronics/circuit = new /obj/item/weapon/firealarm_electronics() @@ -117,13 +117,13 @@ FIRE ALARM update_icon() if(0) if(istype(W, /obj/item/weapon/firealarm_electronics)) - user << "You insert the circuit!" + to_chat(user, "You insert the circuit!") qdel(W) buildstage = 1 update_icon() else if(istype(W, /obj/item/weapon/wrench)) - user << "You remove the fire alarm assembly from the wall!" + to_chat(user, "You remove the fire alarm assembly from the wall!") new /obj/item/mounted/frame/firealarm(get_turf(user)) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) qdel(src) diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm index 08e023851b4..7c5e152529f 100644 --- a/code/game/machinery/floodlight.dm +++ b/code/game/machinery/floodlight.dm @@ -47,13 +47,13 @@ cell.updateicon() src.cell = null - user << "You remove the power cell" + to_chat(user, "You remove the power cell") updateicon() return if(on) on = 0 - user << "\blue You turn off the light" + to_chat(user, "\blue You turn off the light") set_light(0) else if(!cell) @@ -61,7 +61,7 @@ if(cell.charge <= 0) return on = 1 - user << "\blue You turn on the light" + to_chat(user, "\blue You turn on the light") set_light(brightness_on) updateicon() @@ -87,29 +87,29 @@ if (!open) if(unlocked) unlocked = 0 - user << "You screw the battery panel in place." + to_chat(user, "You screw the battery panel in place.") else unlocked = 1 - user << "You unscrew the battery panel." + to_chat(user, "You unscrew the battery panel.") if (istype(W, /obj/item/weapon/crowbar)) if(unlocked) if(open) open = 0 overlays = null - user << "You crowbar the battery panel in place." + to_chat(user, "You crowbar the battery panel in place.") else if(unlocked) open = 1 - user << "You remove the battery panel." + to_chat(user, "You remove the battery panel.") if (istype(W, /obj/item/weapon/stock_parts/cell)) if(open) if(cell) - user << "There is a power cell already installed." + to_chat(user, "There is a power cell already installed.") else user.drop_item() W.loc = src cell = W - user << "You insert the power cell." + to_chat(user, "You insert the power cell.") updateicon() diff --git a/code/game/machinery/guestpass.dm b/code/game/machinery/guestpass.dm index 77eed46c4e2..b63307c3db8 100644 --- a/code/game/machinery/guestpass.dm +++ b/code/game/machinery/guestpass.dm @@ -19,13 +19,13 @@ /obj/item/weapon/card/id/guest/examine(mob/user) ..(user) if (world.time < expiration_time) - user << "This pass expires at [worldtime2text(expiration_time)]." + to_chat(user, "This pass expires at [worldtime2text(expiration_time)].") else - user << "It expired at [worldtime2text(expiration_time)]." - user << "It grants access to following areas:" + to_chat(user, "It expired at [worldtime2text(expiration_time)].") + to_chat(user, "It grants access to following areas:") for (var/A in temp_access) - user << "[get_access_desc(A)]." - user << "Issuing reason: [reason]." + to_chat(user, "[get_access_desc(A)].") + to_chat(user, "Issuing reason: [reason].") ///////////////////////////////////////////// //Guest pass terminal//////////////////////// @@ -56,7 +56,7 @@ giver = O updateUsrDialog() else - user << "There is already ID card inside." + to_chat(user, "There is already ID card inside.") /obj/machinery/computer/guestpass/attack_ai(var/mob/user as mob) return attack_hand(user) @@ -118,7 +118,7 @@ if (dur > 0 && dur <= 30) duration = dur else - usr << "Invalid duration." + to_chat(usr, "Invalid duration.") if ("access") var/A = text2num(href_list["access"]) if (A in accesses) @@ -150,7 +150,7 @@ var/dat = "

Activity log of guest pass terminal #[uid]


" for (var/entry in internal_log) dat += "[entry]

" - //usr << "Printing the log, standby..." +// to_chat(usr, "Printing the log, standby...") //sleep(50) var/obj/item/weapon/paper/P = new/obj/item/weapon/paper( loc ) playsound(loc, "sound/goonstation/machines/printer_dotmatrix.ogg", 50, 1) @@ -176,6 +176,6 @@ pass.reason = reason pass.name = "guest pass #[number]" else - usr << "\red Cannot issue pass without issuing ID." + to_chat(usr, "\red Cannot issue pass without issuing ID.") updateUsrDialog() return \ No newline at end of file diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 520f2ff4fb7..c8e16257858 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -72,13 +72,13 @@ var/const/HOLOPAD_MODE = 0 if(alert(user,"Would you like to request an AI's presence?",,"Yes","No") == "Yes") if(last_request + 200 < world.time) //don't spam the AI with requests you jerk! last_request = world.time - user << "You request an AI's presence." + to_chat(user, "You request an AI's presence.") var/area/area = get_area(src) for(var/mob/living/silicon/ai/AI in living_mob_list) if(!AI.client) continue - AI << "Your presence is requested at \the [area]." + to_chat(AI, "Your presence is requested at \the [area].") else - user << "A request for AI presence was already sent recently." + to_chat(user, "A request for AI presence was already sent recently.") /obj/machinery/hologram/holopad/attack_ai(mob/living/silicon/ai/user) if (!istype(user)) @@ -100,9 +100,9 @@ var/const/HOLOPAD_MODE = 0 create_holo(user)//Create one. src.visible_message("A holographic image of [user] flicks to life right before your eyes!") else - user << "\red ERROR: \black Image feed in progress." + to_chat(user, "\red ERROR: \black Image feed in progress.") else - user << "\red ERROR: \black Unable to project hologram." + to_chat(user, "\red ERROR: \black Unable to project hologram.") return /*This is the proc for special two-way communication between AI and holopad/people talking near holopad. @@ -252,7 +252,7 @@ Holographic project of everything else. flat_icon.AddAlphaMask(alpha_mask)//Finally, let's mix in a distortion effect. hologram.icon = flat_icon - world << "Your icon should appear now." + to_chat(world, "Your icon should appear now.") return */ diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index e3bb3d32eaa..5caff96d4ea 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -60,17 +60,17 @@ /obj/machinery/iv_drip/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/reagent_containers)) if(!isnull(src.beaker)) - user << "There is already a reagent container loaded!" + to_chat(user, "There is already a reagent container loaded!") return if(user.drop_item()) W.forceMove(src) src.beaker = W - user << "You attach \the [W] to \the [src]." + to_chat(user, "You attach \the [W] to \the [src].") src.update_icon() return else - user << "\The [W] is stuck to you!" + to_chat(user, "\The [W] is stuck to you!") else return ..() @@ -146,27 +146,27 @@ set src in view(1) if(!istype(usr, /mob/living)) - usr << "\red You can't do that." + to_chat(usr, "\red You can't do that.") return if(usr.stat) return mode = !mode - usr << "The IV drip is now [mode ? "injecting" : "taking blood"]." + to_chat(usr, "The IV drip is now [mode ? "injecting" : "taking blood"].") /obj/machinery/iv_drip/examine(mob/user) ..(user) if (!(user in view(2)) && usr != src.loc) return - usr << "The IV drip is [mode ? "injecting" : "taking blood"]." + to_chat(usr, "The IV drip is [mode ? "injecting" : "taking blood"].") if(beaker) if(beaker.reagents && beaker.reagents.reagent_list.len) - user << "\blue Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid." + to_chat(user, "\blue Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid.") else - user << "\blue Attached is an empty [beaker]." + to_chat(user, "\blue Attached is an empty [beaker].") else - user << "\blue No chemicals are attached." + to_chat(user, "\blue No chemicals are attached.") - user << "\blue [attached ? attached : "No one"] is attached." + to_chat(user, "\blue [attached ? attached : "No one"] is attached.") diff --git a/code/game/machinery/kitchen/gibber.dm b/code/game/machinery/kitchen/gibber.dm index 037852f463d..4c271a08f44 100644 --- a/code/game/machinery/kitchen/gibber.dm +++ b/code/game/machinery/kitchen/gibber.dm @@ -63,11 +63,11 @@ return if(operating) - user << "The gibber is locked and running, wait for it to finish." + to_chat(user, "The gibber is locked and running, wait for it to finish.") return if(locked) - user << "Wait for [occupant.name] to finish being loaded!" + to_chat(user, "Wait for [occupant.name] to finish being loaded!") return else @@ -77,7 +77,7 @@ if(istype(P, /obj/item/weapon/grab)) var/obj/item/weapon/grab/G = P if(G.state < 2) - user << "You need a better grip to do that!" + to_chat(user, "You need a better grip to do that!") return move_into_gibber(user,G.affecting) qdel(G) @@ -110,19 +110,19 @@ /obj/machinery/gibber/proc/move_into_gibber(var/mob/user,var/mob/living/victim) if(occupant) - user << "The gibber is full, empty it first!" + to_chat(user, "The gibber is full, empty it first!") return if(operating) - user << "The gibber is locked and running, wait for it to finish." + to_chat(user, "The gibber is locked and running, wait for it to finish.") return if(!ishuman(victim) || issmall(victim)) - user << "This is not suitable for the gibber!" + to_chat(user, "This is not suitable for the gibber!") return if(victim.abiotic(1)) - user << "Subject may not have abiotic items on." + to_chat(user, "Subject may not have abiotic items on.") return user.visible_message("[user] starts to put [victim] into the gibber!") diff --git a/code/game/machinery/kitchen/icecream_vat.dm b/code/game/machinery/kitchen/icecream_vat.dm index d88d3a1dc9e..a5e1cc1eafb 100644 --- a/code/game/machinery/kitchen/icecream_vat.dm +++ b/code/game/machinery/kitchen/icecream_vat.dm @@ -107,20 +107,20 @@ var/list/ingredients_source = list( if(I.reagents.total_volume < 10) I.reagents.add_reagent("sugar", 10 - I.reagents.total_volume) else - user << "There is not enough [flavour_name] flavouring left! Insert more of the required ingredients." + to_chat(user, "There is not enough [flavour_name] flavouring left! Insert more of the required ingredients.") else - user << "There is not enough icecream left! Insert more milk and ice." + to_chat(user, "There is not enough icecream left! Insert more milk and ice.") else - user << "[O] already has icecream in it." + to_chat(user, "[O] already has icecream in it.") else if(istype(O, /obj/item/weapon/reagent_containers/glass)) if(held_container) - user << "You must remove [held_container] from [src] first." + to_chat(user, "You must remove [held_container] from [src] first.") else if(!user.drop_item()) - user << "\The [O] is stuck to your hand!" + to_chat(user, "\The [O] is stuck to your hand!") return O.forceMove(src) - user << "You insert [O] into [src]." + to_chat(user, "You insert [O] into [src].") held_container = O else var/obj/item/weapon/reagent_containers/R = O @@ -151,7 +151,7 @@ var/list/ingredients_source = list( ingredients[CONE_WAFFLE] += amount src.visible_message("[user] cooks up some waffle cones.") else - user << "You require sugar and flour to make waffle cones." + to_chat(user, "You require sugar and flour to make waffle cones.") if(CONE_CHOC) if(ingredients[FLAVOUR_CHOCOLATE] > 0 && ingredients[CONE_WAFFLE] > 0) var/amount = min(ingredients[CONE_WAFFLE], ingredients[FLAVOUR_CHOCOLATE]) @@ -160,7 +160,7 @@ var/list/ingredients_source = list( ingredients[CONE_CHOC] += amount src.visible_message("[user] cooks up some chocolate cones.") else - user << "You require waffle cones and chocolate flavouring to make chocolate cones." + to_chat(user, "You require waffle cones and chocolate flavouring to make chocolate cones.") if(ICECREAM_VANILLA) if(ingredients[INGR_ICE] > 0 && ingredients[INGR_MILK] > 0) var/amount = min(ingredients[INGR_ICE], ingredients[INGR_MILK]) @@ -169,7 +169,7 @@ var/list/ingredients_source = list( ingredients[ICECREAM_VANILLA] += amount src.visible_message("[user] whips up some vanilla icecream.") else - user << "You require milk and ice to make vanilla icecream." + to_chat(user, "You require milk and ice to make vanilla icecream.") updateDialog() /obj/machinery/icecream_vat/Topic(href, href_list) @@ -191,7 +191,7 @@ var/list/ingredients_source = list( I.desc = "Delicious [cone_name] cone, but no ice cream." src.visible_message("[usr] dispenses a crunchy [cone_name] cone from [src].") else - usr << "There are no [cone_name] cones left!" + to_chat(usr, "There are no [cone_name] cones left!") updateDialog() if(href_list["make"]) diff --git a/code/game/machinery/kitchen/juicer.dm b/code/game/machinery/kitchen/juicer.dm index e1f7bd7c091..7b25e683941 100644 --- a/code/game/machinery/kitchen/juicer.dm +++ b/code/game/machinery/kitchen/juicer.dm @@ -42,7 +42,7 @@ return 1 else if(!user.unEquip(O)) - user << "\the [O] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [O] is stuck to your hand, you cannot put it in \the [src]") return 0 O.forceMove(src) beaker = O @@ -51,10 +51,10 @@ src.updateUsrDialog() return 0 if (!is_type_in_list(O, allowed_items)) - user << "It doesn't look like that contains any juice." + to_chat(user, "It doesn't look like that contains any juice.") return 1 if(!user.unEquip(O)) - user << "\the [O] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [O] is stuck to your hand, you cannot put it in \the [src]") return 0 O.forceMove(src) src.updateUsrDialog() diff --git a/code/game/machinery/kitchen/kitchen_machine.dm b/code/game/machinery/kitchen/kitchen_machine.dm index 72d8bd22576..5c584d0468b 100644 --- a/code/game/machinery/kitchen/kitchen_machine.dm +++ b/code/game/machinery/kitchen/kitchen_machine.dm @@ -68,11 +68,11 @@ playsound(src, 'sound/items/Ratchet.ogg', 50, 1) if(anchored) anchored = 0 - user << "\The [src] can now be moved." + to_chat(user, "\The [src] can now be moved.") return else if(!anchored) anchored = 1 - user << "\The [src] is now secured." + to_chat(user, "\The [src] is now secured.") return default_deconstruction_crowbar(O) @@ -104,7 +104,7 @@ src.dirty = 0 // just to be sure src.flags = OPENCONTAINER else - user << "It's broken!" + to_chat(user, "It's broken!") return 1 else if(src.dirty==100) // The machine is all dirty so can't be used! if(istype(O, /obj/item/weapon/reagent_containers/spray/cleaner) || istype(O, /obj/item/weapon/soap)) // If they're trying to clean it then let them @@ -122,11 +122,11 @@ src.icon_state = off_icon src.flags = OPENCONTAINER else //Otherwise bad luck!! - user << "It's dirty!" + to_chat(user, "It's dirty!") return 1 else if(is_type_in_list(O,acceptable_items)) if (contents.len>=max_n_of_items) - user << "This [src] is full of ingredients, you cannot put more." + to_chat(user, "This [src] is full of ingredients, you cannot put more.") return 1 if (istype(O,/obj/item/stack) && O:amount>1) new O.type (src) @@ -136,7 +136,7 @@ "You add one of [O] to \the [src].") else if(!user.drop_item()) - user << "\The [O] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\The [O] is stuck to your hand, you cannot put it in \the [src]") return 0 O.forceMove(src) @@ -151,15 +151,15 @@ return 1 for (var/datum/reagent/R in O.reagents.reagent_list) if (!(R.id in acceptable_reagents)) - user << "Your [O] contains components unsuitable for cookery." + to_chat(user, "Your [O] contains components unsuitable for cookery.") return 1 //G.reagents.trans_to(src,G.amount_per_transfer_from_this) else if(istype(O,/obj/item/weapon/grab)) var/obj/item/weapon/grab/G = O - user << "This is ridiculous. You can not fit \the [G.affecting] in this [src]." + to_chat(user, "This is ridiculous. You can not fit \the [G.affecting] in this [src].") return 1 else - user << "You have no idea what you can cook with this [O]." + to_chat(user, "You have no idea what you can cook with this [O].") return 1 src.updateUsrDialog() @@ -343,7 +343,7 @@ if (src.reagents.total_volume) src.dirty++ src.reagents.clear_reagents() - usr << "You dispose of \the [src]'s contents." + to_chat(usr, "You dispose of \the [src]'s contents.") src.updateUsrDialog() /obj/machinery/kitchen_machine/proc/muck_start() diff --git a/code/game/machinery/kitchen/monkeyrecycler.dm b/code/game/machinery/kitchen/monkeyrecycler.dm index cb8947d20a5..d41558c161e 100644 --- a/code/game/machinery/kitchen/monkeyrecycler.dm +++ b/code/game/machinery/kitchen/monkeyrecycler.dm @@ -53,11 +53,11 @@ var/mob/living/carbon/human/target = grabbed if(issmall(target)) if(target.stat == 0) - user << "The monkey is struggling far too much to put it in the recycler." + to_chat(user, "The monkey is struggling far too much to put it in the recycler.") else user.drop_item() qdel(target) - user << "You stuff the monkey in the machine." + to_chat(user, "You stuff the monkey in the machine.") playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1) var/offset = prob(50) ? -2 : 2 animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 200) //start shaking @@ -65,23 +65,23 @@ src.grinded++ sleep(50) pixel_x = initial(pixel_x) - user << "The machine now has [grinded] monkey\s worth of material stored." + to_chat(user, "The machine now has [grinded] monkey\s worth of material stored.") else - user << "The machine only accepts monkeys!" + to_chat(user, "The machine only accepts monkeys!") else - user << "The machine only accepts monkeys!" + to_chat(user, "The machine only accepts monkeys!") return /obj/machinery/monkey_recycler/attack_hand(var/mob/user as mob) if (src.stat != 0) //NOPOWER etc return if(grinded >= required_grind) - user << "The machine hisses loudly as it condenses the grinded monkey meat. After a moment, it dispenses a brand new monkey cube." + to_chat(user, "The machine hisses loudly as it condenses the grinded monkey meat. After a moment, it dispenses a brand new monkey cube.") playsound(src.loc, 'sound/machines/hiss.ogg', 50, 1) grinded -= required_grind for(var/i = 0, i < cube_production, i++) // Forgot to fix this bit the first time through new /obj/item/weapon/reagent_containers/food/snacks/monkeycube(src.loc) - user << "The machine's display flashes that it has [grinded] monkey\s worth of material left." + to_chat(user, "The machine's display flashes that it has [grinded] monkey\s worth of material left.") else // I'm not sure if the \s macro works with a word in between; I'll play it safe - user << "The machine needs at least [required_grind] monkey\s worth of material to compress [cube_production] monkey\s. It only has [grinded]." + to_chat(user, "The machine needs at least [required_grind] monkey\s worth of material to compress [cube_production] monkey\s. It only has [grinded].") return \ No newline at end of file diff --git a/code/game/machinery/kitchen/processor.dm b/code/game/machinery/kitchen/processor.dm index 87426a7daaa..0b739e2b269 100644 --- a/code/game/machinery/kitchen/processor.dm +++ b/code/game/machinery/kitchen/processor.dm @@ -135,7 +135,7 @@ /obj/machinery/processor/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(src.processing) - user << "\the [src] is already processing something!" + to_chat(user, "\the [src] is already processing something!") return 1 if(default_deconstruction_screwdriver(user, "processor1", "processor", O)) @@ -158,7 +158,7 @@ var/datum/food_processor_process/P = select_recipe(what) if (!P) - user << "That probably won't blend." + to_chat(user, "That probably won't blend.") return 1 user.visible_message("\the [user] puts \the [what] into \the [src].", \ @@ -174,11 +174,11 @@ return if(src.processing) - user << "\the [src] is already processing something!" + to_chat(user, "\the [src] is already processing something!") return 1 if(src.contents.len == 0) - user << "\the [src] is empty." + to_chat(user, "\the [src] is empty.") return 1 src.processing = 1 user.visible_message("[user] turns on [src].", \ diff --git a/code/game/machinery/kitchen/smartfridge.dm b/code/game/machinery/kitchen/smartfridge.dm index 822b32b0226..7978aee0c0a 100644 --- a/code/game/machinery/kitchen/smartfridge.dm +++ b/code/game/machinery/kitchen/smartfridge.dm @@ -194,7 +194,7 @@ if(istype(O, /obj/item/weapon/screwdriver) && anchored) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.") overlays.Cut() if(panel_open) overlays += image(icon, "[initial(icon_state)]-panel") @@ -215,16 +215,16 @@ return if(stat & NOPOWER) - user << "\The [src] is unpowered and useless." + to_chat(user, "\The [src] is unpowered and useless.") return if(accept_check(O)) if(contents.len >= max_n_of_items) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return 1 else if(!user.drop_item()) - user << "\The [O] is stuck to you!" + to_chat(user, "\The [O] is stuck to you!") return O.forceMove(src) @@ -242,7 +242,7 @@ for(var/obj/G in P.contents) if(accept_check(G)) if(contents.len >= max_n_of_items) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return 1 else P.remove_from_storage(G,src) @@ -255,12 +255,12 @@ user.visible_message("[user] loads \the [src] with \the [P].", "You load \the [src] with \the [P].") if(P.contents.len > 0) - user << "Some items are refused." + to_chat(user, "Some items are refused.") nanomanager.update_uis(src) else - user << "\The [src] smartly refuses [O]." + to_chat(user, "\The [src] smartly refuses [O].") return 1 /obj/machinery/smartfridge/attack_ai(mob/user as mob) @@ -281,7 +281,7 @@ return if(stat & NOPOWER) - user << "\The [src] is unpowered and useless." + to_chat(user, "\The [src] is unpowered and useless.") return var/obj/item/weapon/storage/box/pillbottles/P = over_object @@ -289,7 +289,7 @@ for(var/obj/G in P.contents) if(accept_check(G)) if(contents.len >= max_n_of_items) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return 1 else P.remove_from_storage(G,src) @@ -303,13 +303,13 @@ "[user] empties \the [P] into \the [src].", \ "You empty \the [P] into \the [src].") if(P.contents.len > 0) - user << "Some items are refused." + to_chat(user, "Some items are refused.") nanomanager.update_uis(src) /obj/machinery/smartfridge/secure/emag_act(user as mob) emagged = 1 locked = -1 - user << "You short out the product lock on [src]." + to_chat(user, "You short out the product lock on [src].") /******************* * SmartFridge Menu @@ -408,7 +408,7 @@ return 0 if(usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) if(!allowed(usr) && !emagged && locked != -1 && href_list["vend"]) - usr << "Access denied." + to_chat(usr, "Access denied.") nanomanager.update_uis(src) return 0 return ..() \ No newline at end of file diff --git a/code/game/machinery/lightswitch.dm b/code/game/machinery/lightswitch.dm index 47a3d48e19c..3bc2bec5ec4 100644 --- a/code/game/machinery/lightswitch.dm +++ b/code/game/machinery/lightswitch.dm @@ -70,7 +70,7 @@ /obj/machinery/light_switch/examine(mob/user) if(..(user, 1)) - user << "A light switch. It is [on? "on" : "off"]." + to_chat(user, "A light switch. It is [on? "on" : "off"].") /obj/machinery/light_switch/attack_hand(mob/user) @@ -151,7 +151,7 @@ if(istype(W, /obj/item/weapon/wrench)) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 30, target = src)) - user << "You detach \the [src] from the wall." + to_chat(user, "You detach \the [src] from the wall.") new/obj/item/mounted/frame/light_switch(get_turf(src)) qdel(src) return 1 diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index ecbdf219cd3..11fa7f71393 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -222,7 +222,7 @@ Class Procs: message_admins("set_tag HREF (var attempted to edit: [href_list["set_tag"]]) exploit attempted by [key_name_admin(user)] on [src] (JMP)") return 1 if(!(href_list["set_tag"] in vars)) - usr << "Something went wrong: Unable to find [href_list["set_tag"]] in vars!" + to_chat(usr, "Something went wrong: Unable to find [href_list["set_tag"]] in vars!") return 1 var/current_tag = src.vars[href_list["set_tag"]] var/newid = copytext(reject_bad_text(input(usr, "Specify the new value", src, current_tag) as null|text),1,MAX_MESSAGE_LEN) @@ -239,13 +239,13 @@ Class Procs: if(!O) return 1 if(!canLink(O)) - usr << "\red You can't link with that device." + to_chat(usr, "\red You can't link with that device.") return 1 if(unlinkFrom(usr, O)) - usr << "\blue A green light flashes on \the [P], confirming the link was removed." + to_chat(usr, "\blue A green light flashes on \the [P], confirming the link was removed.") else - usr << "\red A red light flashes on \the [P]. It appears something went wrong when unlinking the two devices." + to_chat(usr, "\red A red light flashes on \the [P]. It appears something went wrong when unlinking the two devices.") update_mt_menu=1 if("link" in href_list) @@ -253,25 +253,25 @@ Class Procs: if(!O) return 1 if(!canLink(O,href_list)) - usr << "\red You can't link with that device." + to_chat(usr, "\red You can't link with that device.") return 1 if (isLinkedWith(O)) - usr << "\red A red light flashes on \the [P]. The two devices are already linked." + to_chat(usr, "\red A red light flashes on \the [P]. The two devices are already linked.") return 1 if(linkWith(usr, O, href_list)) - usr << "\blue A green light flashes on \the [P], confirming the link was added." + to_chat(usr, "\blue A green light flashes on \the [P], confirming the link was added.") else - usr << "\red A red light flashes on \the [P]. It appears something went wrong when linking the two devices." + to_chat(usr, "\red A red light flashes on \the [P]. It appears something went wrong when linking the two devices.") update_mt_menu=1 if("buffer" in href_list) P.buffer = src - usr << "\blue A green light flashes, and the device appears in the multitool buffer." + to_chat(usr, "\blue A green light flashes, and the device appears in the multitool buffer.") update_mt_menu=1 if("flush" in href_list) - usr << "\blue A green light flashes, and the device disappears from the multitool buffer." + to_chat(usr, "\blue A green light flashes, and the device disappears from the multitool buffer.") P.buffer = null update_mt_menu=1 @@ -338,7 +338,7 @@ Class Procs: return 1 if(!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return 1 if (ishuman(user)) @@ -347,7 +347,7 @@ Class Procs: visible_message("[H] stares cluelessly at [src] and drools.") return 1 else if(prob(H.getBrainLoss())) - user << "You momentarily forget how to use [src]." + to_chat(user, "You momentarily forget how to use [src].") return 1 if(panel_open) @@ -391,11 +391,11 @@ Class Procs: if(!panel_open) panel_open = 1 icon_state = icon_state_open - user << "You open the maintenance hatch of [src]." + to_chat(user, "You open the maintenance hatch of [src].") else panel_open = 0 icon_state = icon_state_closed - user << "You close the maintenance hatch of [src]." + to_chat(user, "You close the maintenance hatch of [src].") return 1 return 0 @@ -403,16 +403,16 @@ Class Procs: if(panel_open && istype(W)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) dir = turn(dir,-90) - user << "You rotate [src]." + to_chat(user, "You rotate [src].") return 1 return 0 /obj/machinery/proc/default_unfasten_wrench(mob/user, obj/item/weapon/wrench/W, time = 20) if(istype(W)) - user << "Now [anchored ? "un" : ""]securing [name]." + to_chat(user, "Now [anchored ? "un" : ""]securing [name].") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, time, target = src)) - user << "You've [anchored ? "un" : ""]secured [name]." + to_chat(user, "You've [anchored ? "un" : ""]secured [name].") anchored = !anchored playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) return 1 @@ -450,7 +450,7 @@ Class Procs: component_parts -= A component_parts += B B.loc = null - user << "[A.name] replaced with [B.name]." + to_chat(user, "[A.name] replaced with [B.name].") shouldplaysound = 1 break RefreshParts() @@ -463,9 +463,9 @@ Class Procs: return 0 /obj/machinery/proc/display_parts(mob/user) - user << "Following parts detected in the machine:" + to_chat(user, "Following parts detected in the machine:") for(var/obj/item/C in component_parts) - user << "\icon[C] [C.name]" + to_chat(user, "\icon[C] [C.name]") /obj/machinery/examine(mob/user) ..(user) diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm index 121b8118de0..0bd5fff9fba 100644 --- a/code/game/machinery/mass_driver.dm +++ b/code/game/machinery/mass_driver.dm @@ -21,7 +21,7 @@ return 1 if(istype(W, /obj/item/weapon/screwdriver)) - user << "You begin to unscrew the bolts off the [src]..." + to_chat(user, "You begin to unscrew the bolts off the [src]...") playsound(get_turf(src), 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 30, target = src)) var/obj/machinery/mass_driver_frame/F = new(get_turf(src)) @@ -69,7 +69,7 @@ /obj/machinery/mass_driver/emag_act(mob/user) if(!emagged) emagged = 1 - user << "You hack the Mass Driver, radically increasing the force at which it'll throw things. Better not stand in its way." + to_chat(user, "You hack the Mass Driver, radically increasing the force at which it'll throw things. Better not stand in its way.") return 1 return -1 @@ -104,43 +104,43 @@ if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return 1 playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1) - user << "You begin to cut the frame apart..." + to_chat(user, "You begin to cut the frame apart...") if(do_after(user, 30, target = src) && (build == 0)) - user << "You detach the plasteel sheets from each others." + to_chat(user, "You detach the plasteel sheets from each others.") new /obj/item/stack/sheet/plasteel(get_turf(src),3) qdel(src) return 1 if(istype(W, /obj/item/weapon/wrench)) - user << "You begin to anchor \the [src] on the floor." + to_chat(user, "You begin to anchor \the [src] on the floor.") playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 10, target = src) && (build == 0)) - user << "You anchor \the [src]!" + to_chat(user, "You anchor \the [src]!") anchored = 1 build++ update_icon() return 1 if(1) // Fixed to the floor if(istype(W, /obj/item/weapon/wrench)) - user << "You begin to de-anchor \the [src] from the floor." + to_chat(user, "You begin to de-anchor \the [src] from the floor.") playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 10, target = src) && (build == 1)) build-- update_icon() anchored = 0 - user << "You de-anchored \the [src]!" + to_chat(user, "You de-anchored \the [src]!") return 1 if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return 1 playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1) - user << "You begin to weld \the [src] to the floor..." + to_chat(user, "You begin to weld \the [src] to the floor...") if(do_after(user, 40, target = src) && (build == 1)) - user << "You welded \the [src] to the floor." + to_chat(user, "You welded \the [src] to the floor.") build++ update_icon() return 1 @@ -148,46 +148,46 @@ if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return 1 playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1) - user << "You begin to unweld \the [src] to the floor..." + to_chat(user, "You begin to unweld \the [src] to the floor...") if(do_after(user, 40, target = src) && (build == 2)) - user << "You unwelded \the [src] to the floor." + to_chat(user, "You unwelded \the [src] to the floor.") build-- update_icon() if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/C=W - user << "You start adding cables to \the [src]..." + to_chat(user, "You start adding cables to \the [src]...") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20, target = src) && (C.amount >= 3) && (build == 2)) C.use(3) - user << "You've added cables to \the [src]." + to_chat(user, "You've added cables to \the [src].") build++ update_icon() if(3) // Wired if(istype(W, /obj/item/weapon/wirecutters)) - user << "You begin to remove the wiring from \the [src]." + to_chat(user, "You begin to remove the wiring from \the [src].") if(do_after(user, 10, target = src) && (build == 3)) new /obj/item/stack/cable_coil(loc,3) playsound(get_turf(src), 'sound/items/Wirecutter.ogg', 50, 1) - user << "You've removed the cables from \the [src]." + to_chat(user, "You've removed the cables from \the [src].") build-- update_icon() return 1 if(istype(W, /obj/item/stack/rods)) var/obj/item/stack/rods/R=W - user << "You begin to complete \the [src]..." + to_chat(user, "You begin to complete \the [src]...") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20, target = src) && (R.amount >= 3) && (build == 3)) R.use(3) - user << "You've added the grille to \the [src]." + to_chat(user, "You've added the grille to \the [src].") build++ update_icon() return 1 if(4) // Grille in place if(istype(W, /obj/item/weapon/crowbar)) - user << "You begin to pry off the grille from \the [src]..." + to_chat(user, "You begin to pry off the grille from \the [src]...") playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) if(do_after(user, 30, target = src) && (build == 4)) new /obj/item/stack/rods(loc,2) @@ -195,7 +195,7 @@ update_icon() return 1 if(istype(W, /obj/item/weapon/screwdriver)) - user << "You finalize the Mass Driver..." + to_chat(user, "You finalize the Mass Driver...") playsound(get_turf(src), 'sound/items/Screwdriver.ogg', 50, 1) var/obj/machinery/mass_driver/M = new(get_turf(src)) M.dir = src.dir diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm index 041e4cfc3d5..79579e1bb66 100644 --- a/code/game/machinery/navbeacon.dm +++ b/code/game/machinery/navbeacon.dm @@ -90,12 +90,12 @@ if(open) if (src.allowed(user)) src.locked = !src.locked - user << "Controls are now [src.locked ? "locked" : "unlocked"]." + to_chat(user, "Controls are now [src.locked ? "locked" : "unlocked"].") else - user << "Access denied." + to_chat(user, "Access denied.") updateDialog() else - user << "You must open the cover first!" + to_chat(user, "You must open the cover first!") return /obj/machinery/navbeacon/attack_ai(mob/user) @@ -113,7 +113,7 @@ return // prevent intraction when T-scanner revealed if(!open && !ai) // can't alter controls if not open, unless you're an AI - user << "The beacon's control cover is closed!" + to_chat(user, "The beacon's control cover is closed!") return diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index b37d4313f6b..d991e7c5235 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -710,7 +710,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co /obj/machinery/newscaster/attackby(obj/item/I as obj, mob/living/user as mob, params) if(istype(I, /obj/item/weapon/wrench)) - user << "Now [anchored ? "un" : ""]securing [name]" + to_chat(user, "Now [anchored ? "un" : ""]securing [name]") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 60, target = src)) new /obj/item/mounted/frame/newscaster_frame(loc) @@ -739,7 +739,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co visible_message("[user.name] forcefully slams the [src.name] with the [I.name]!", null, 5 ) playsound(src.loc, 'sound/effects/Glasshit.ogg', 100, 1) else - user << "This does nothing." + to_chat(user, "This does nothing.") src.update_icon() /obj/machinery/newscaster/proc/AttachPhoto(mob/user as mob) @@ -863,7 +863,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co human_user << browse(dat, "window=newspaper_main;size=300x400") onclose(human_user, "newspaper_main") else - user << "The paper is full of intelligible symbols!" + to_chat(user, "The paper is full of intelligible symbols!") obj/item/weapon/newspaper/Topic(href, href_list) @@ -901,7 +901,7 @@ obj/item/weapon/newspaper/Topic(href, href_list) obj/item/weapon/newspaper/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/pen)) if(src.scribble_page == src.curr_page) - user << "There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?" + to_chat(user, "There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?") else var/s = strip_html( input(user, "Write something", "Newspaper", "") ) s = sanitize(copytext(s, 1, MAX_MESSAGE_LEN)) diff --git a/code/game/machinery/overview.dm b/code/game/machinery/overview.dm index 1f1395431d9..2b56b71fc43 100644 --- a/code/game/machinery/overview.dm +++ b/code/game/machinery/overview.dm @@ -30,7 +30,7 @@ imap += icon('icons/misc/imap.dmi', "blank") imap += icon('icons/misc/imap.dmi', "blank") - //world << "[icount] images in list" +// to_chat(world, "[icount] images in list") for(var/wx = 1 ; wx <= world.maxx; wx++) @@ -146,12 +146,12 @@ var/rx = ((wx*2+xoff)%32) + 1 var/ry = ((wy*2+yoff)%32) + 1 - //world << "trying [ix],[iy] : [ix+icx*iy]" +// to_chat(world, "trying [ix],[iy] : [ix+icx*iy]") var/icon/I = imap[1+(ix + icx*iy)*2] var/icon/I2 = imap[2+(ix + icx*iy)*2] - //world << "icon: \icon[I]" +// to_chat(world, "icon: \icon[I]") I.DrawBox(colour, rx, ry, rx+1, ry+1) @@ -168,7 +168,7 @@ H.screen_loc = "[5 + i%icx],[6+ round(i/icx)]" - //world<<"\icon[I] at [H.screen_loc]" +// to_chat(world, "\icon[I] at [H.screen_loc]") H.name = (i==0)?"maprefresh":"map" @@ -280,11 +280,11 @@ var/rx = ((wx*2+xoff)%32) + 1 var/ry = ((wy*2+yoff)%32) + 1 - //world << "trying [ix],[iy] : [ix+icx*iy]" +// to_chat(world, "trying [ix],[iy] : [ix+icx*iy]") var/icon/I = imap[1+(ix + icx*iy)] - //world << "icon: \icon[I]" +// to_chat(world, "icon: \icon[I]") I.DrawBox(colour, rx, ry, rx, ry) @@ -299,7 +299,7 @@ H.screen_loc = "[5 + i%icx],[6+ round(i/icx)]" - //world<<"\icon[I] at [H.screen_loc]" +// to_chat(world, "\icon[I] at [H.screen_loc]") H.name = (i==0)?"maprefresh":"map" diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm index 11361034fbb..ad54eb2e8e9 100644 --- a/code/game/machinery/pipe/construction.dm +++ b/code/game/machinery/pipe/construction.dm @@ -434,7 +434,7 @@ for(var/obj/machinery/atmospherics/M in src.loc) if((M.initialize_directions & pipe_dir) && M.check_connect_types_construction(M,src)) // matches at least one direction on either type of pipe - user << "There is already a pipe of the same type at this location." + to_chat(user, "There is already a pipe of the same type at this location.") return 1 switch(pipe_type) //What kind of heartless person thought of doing this? @@ -619,11 +619,11 @@ if (!istype(W, /obj/item/weapon/wrench)) return ..() if(!locate(/obj/machinery/atmospherics/pipe, src.loc)) - user << "\red You need to fasten it to a pipe" + to_chat(user, "\red You need to fasten it to a pipe") return 1 new/obj/machinery/meter( src.loc ) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You have fastened the meter to the pipe" + to_chat(user, "\blue You have fastened the meter to the pipe") qdel(src) /obj/item/pipe_gsensor @@ -640,7 +640,7 @@ return ..() new/obj/machinery/air_sensor( src.loc ) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You have fastened the gas sensor" + to_chat(user, "\blue You have fastened the gas sensor") qdel(src) #undef PIPE_SIMPLE_STRAIGHT diff --git a/code/game/machinery/pipe/pipe_dispenser.dm b/code/game/machinery/pipe/pipe_dispenser.dm index 31b58bcac10..9214178e9e4 100644 --- a/code/game/machinery/pipe/pipe_dispenser.dm +++ b/code/game/machinery/pipe/pipe_dispenser.dm @@ -100,14 +100,14 @@ /obj/machinery/pipedispenser/attackby(var/obj/item/W as obj, var/mob/user as mob, params) src.add_fingerprint(usr) if (istype(W, /obj/item/pipe) || istype(W, /obj/item/pipe_meter) || istype(W, /obj/item/pipe_gsensor)) - usr << "\blue You put [W] back to [src]." + to_chat(usr, "\blue You put [W] back to [src].") user.drop_item() qdel(W) return else if (istype(W, /obj/item/weapon/wrench)) if (unwrenched==0) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to unfasten \the [src] from the floor..." + to_chat(user, "\blue You begin to unfasten \the [src] from the floor...") if (do_after(user, 40, target = src)) user.visible_message( \ "[user] unfastens \the [src].", \ @@ -120,7 +120,7 @@ usr << browse(null, "window=pipedispenser") else /*if (unwrenched==1)*/ playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to fasten \the [src] to the floor..." + to_chat(user, "\blue You begin to fasten \the [src] to the floor...") if (do_after(user, 20, target = src)) user.visible_message( \ "[user] fastens \the [src].", \ diff --git a/code/game/machinery/podmen.dm b/code/game/machinery/podmen.dm index 6679fd3b580..54585c0eb26 100644 --- a/code/game/machinery/podmen.dm +++ b/code/game/machinery/podmen.dm @@ -31,7 +31,7 @@ Growing it to term with nothing injected will grab a ghost from the observers. * if(istype(W,/obj/item/weapon/reagent_containers)) - user << "You inject the contents of the syringe into the seeds." + to_chat(user, "You inject the contents of the syringe into the seeds.") var/datum/reagent/blood/B @@ -42,7 +42,7 @@ Growing it to term with nothing injected will grab a ghost from the observers. * break if(B) source = B.data["donor"] - user << "The strange, sluglike seeds quiver gently and swell with blood." + to_chat(user, "The strange, sluglike seeds quiver gently and swell with blood.") if(!source.client && source.mind) for(var/mob/O in respawnable_list) if(O.mind == source.mind && config.revival_pod_plants) @@ -51,10 +51,10 @@ Growing it to term with nothing injected will grab a ghost from the observers. * source.key = O.key return if("No") - user << "The seeds seem to reject the blood, returning to their original size as they stop quivering." + to_chat(user, "The seeds seem to reject the blood, returning to their original size as they stop quivering.") return else - user << "Nothing happens." + to_chat(user, "Nothing happens.") return if (!istype(source)) @@ -76,7 +76,7 @@ Growing it to term with nothing injected will grab a ghost from the observers. * if(beingharvested) - user << ("\red You can only harvest the pod once!") + to_chat(user, ("\red You can only harvest the pod once!")) else user.visible_message("\blue [user] carefully begins to open the pod...","\blue You carefully begin to open the pod...") beingharvested = 1 @@ -123,11 +123,11 @@ Growing it to term with nothing injected will grab a ghost from the observers. * ticker.mode:update_all_cult_icons() //So the icon actually appears // -- End mode specific stuff - podman << "\green You awaken slowly, feeling your sap stir into sluggish motion as the warm air caresses your bark." + to_chat(podman, "\green You awaken slowly, feeling your sap stir into sluggish motion as the warm air caresses your bark.") if(source && ckey && podman.ckey == ckey) - podman << "Memories of a life as [source] drift oddly through a mind unsuited for them, like a skin of oil over a fathomless lake." - podman << "You are now one of the Dionaea, a race of drifting interstellar plantlike creatures that sometimes share their seeds with human traders." - podman << "Too much darkness will send you into shock and starve you, but light will help you heal." + to_chat(podman, "Memories of a life as [source] drift oddly through a mind unsuited for them, like a skin of oil over a fathomless lake.") + to_chat(podman, "You are now one of the Dionaea, a race of drifting interstellar plantlike creatures that sometimes share their seeds with human traders.") + to_chat(podman, "Too much darkness will send you into shock and starve you, but light will help you heal.") else new /mob/living/carbon/monkey/diona(parent.loc) diff --git a/code/game/machinery/poolcontroller.dm b/code/game/machinery/poolcontroller.dm index e2da5b8beb0..b7f1f41b356 100644 --- a/code/game/machinery/poolcontroller.dm +++ b/code/game/machinery/poolcontroller.dm @@ -21,16 +21,19 @@ /obj/machinery/poolcontroller/emag_act(user as mob) //Emag_act, this is called when it is hit with a cryptographic sequencer. if(!emagged) //If it is not already emagged, emag it. - user << "You disable \the [src]'s temperature safeguards." //Inform the mob of what emagging does. + to_chat(user, "You disable \the [src]'s temperature safeguards.")//Inform the mob of what emagging does. + emagged = 1 //Set the emag var to true. /obj/machinery/poolcontroller/attackby(obj/item/P as obj, mob/user as mob, params) //Proc is called when a user hits the pool controller with something. if(istype(P,/obj/item/device/multitool)) //If the mob hits the pool controller with a multitool, reset the emagged status if(emagged) //Check the emag status - user << "You re-enable \the [src]'s temperature safeguards." //Inform the user that they have just fixed the safeguards. + to_chat(user, "You re-enable \the [src]'s temperature safeguards.")//Inform the user that they have just fixed the safeguards. + emagged = 0 //Set the emagged var to false. else - user << "Nothing happens." //If not emagged, don't do anything, and don't tell the user that it can be emagged. + to_chat(user, "Nothing happens.")//If not emagged, don't do anything, and don't tell the user that it can be emagged. + else //If it's not a multitool, defer to /obj/machinery/attackby ..() @@ -64,21 +67,23 @@ switch(temperature) //Apply different effects based on what the temperature is set to. if("scalding") //Burn the mob. M.bodytemperature = min(500, M.bodytemperature + 35) //heat mob at 35k(elvin) per cycle - M << "The water is searing hot!" + to_chat(M, "The water is searing hot!") if("warm") //Gently warm the mob. M.bodytemperature = min(330, M.bodytemperature + 10) //Heats up mobs to just over normal, not enough to burn if(prob(50)) //inform the mob of warm water half the time - M << "The water is quite warm." //Inform the mob it's warm water. + to_chat(M, "The water is quite warm.")//Inform the mob it's warm water. + if("cool") //Gently cool the mob. M.bodytemperature = max(290, M.bodytemperature - 10) //Cools mobs to just below normal, not enough to burn if(prob(50)) //inform the mob of cold water half the time - M << "The water is chilly." //Inform the mob it's chilly water. + to_chat(M, "The water is chilly.")//Inform the mob it's chilly water. + if("frigid") //Freeze the mob. M.bodytemperature = max(80, M.bodytemperature - 35) //cool mob at -35k per cycle - M << "The water is freezing!" + to_chat(M, "The water is freezing!") return /obj/machinery/poolcontroller/proc/handleDrowning(var/mob/living/carbon/human/drownee) diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index 29e1fecd9e3..59a34b56436 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -174,11 +174,11 @@ var/list/turret_icons /obj/machinery/porta_turret/proc/isLocked(mob/user) if(ailock && (isrobot(user) || isAI(user))) - user << "There seems to be a firewall preventing you from accessing this device." + to_chat(user, "There seems to be a firewall preventing you from accessing this device.") return 1 if(locked && !(isrobot(user) || isAI(user) || isobserver(user))) - user << "Access denied." + to_chat(user, "Access denied.") return 1 return 0 @@ -243,14 +243,14 @@ var/list/turret_icons /obj/machinery/porta_turret/CanUseTopic(var/mob/user) if(HasController()) - user << "Turrets can only be controlled using the assigned turret controller." + to_chat(user, "Turrets can only be controlled using the assigned turret controller.") return STATUS_CLOSE if(isLocked(user)) return STATUS_CLOSE if(!anchored) - usr << "\The [src] has to be secured first!" + to_chat(usr, "\The [src] has to be secured first!") return STATUS_CLOSE return ..() @@ -329,10 +329,10 @@ var/list/turret_icons if(istype(I, /obj/item/weapon/crowbar)) //If the turret is destroyed, you can remove it with a crowbar to //try and salvage its components - user << "You begin prying the metal coverings off." + to_chat(user, "You begin prying the metal coverings off.") if(do_after(user, 20, target = src)) if(prob(70)) - user << "You remove the turret and salvage some components." + to_chat(user, "You remove the turret and salvage some components.") if(installation) var/obj/item/weapon/gun/energy/Gun = new installation(loc) Gun.power_supply.charge = gun_charge @@ -342,18 +342,18 @@ var/list/turret_icons if(prob(50)) new /obj/item/device/assembly/prox_sensor(loc) else - user << "You remove the turret but did not manage to salvage anything." + to_chat(user, "You remove the turret but did not manage to salvage anything.") qdel(src) // qdel else if((istype(I, /obj/item/weapon/wrench))) if(enabled || raised) - user << "You cannot unsecure an active turret!" + to_chat(user, "You cannot unsecure an active turret!") return if(wrenching) - user << "Someone is already [anchored ? "un" : ""]securing the turret!" + to_chat(user, "Someone is already [anchored ? "un" : ""]securing the turret!") return if(!anchored && isinspace()) - user << "Cannot secure turrets in space!" + to_chat(user, "Cannot secure turrets in space!") return user.visible_message( \ @@ -368,21 +368,21 @@ var/list/turret_icons playsound(loc, 'sound/items/Ratchet.ogg', 100, 1) anchored = 1 update_icon() - user << "You secure the exterior bolts on the turret." + to_chat(user, "You secure the exterior bolts on the turret.") else if(anchored) playsound(loc, 'sound/items/Ratchet.ogg', 100, 1) anchored = 0 - user << "You unsecure the exterior bolts on the turret." + to_chat(user, "You unsecure the exterior bolts on the turret.") update_icon() wrenching = 0 else if(istype(I, /obj/item/weapon/card/id) || istype(I, /obj/item/device/pda)) if(allowed(user)) locked = !locked - user << "Controls are now [locked ? "locked" : "unlocked"]." + to_chat(user, "Controls are now [locked ? "locked" : "unlocked"].") updateUsrDialog() else - user << "Access denied." + to_chat(user, "Access denied.") else //if the turret was attacked with the intention of harming it: @@ -407,7 +407,7 @@ var/list/turret_icons visible_message("[M] [M.attacktext] [src]!") take_damage(M.melee_damage_upper) else - M << "That object is useless to you." + to_chat(M, "That object is useless to you.") return /obj/machinery/porta_turret/attack_alien(mob/living/carbon/alien/humanoid/M) @@ -418,7 +418,7 @@ var/list/turret_icons visible_message("[M] has slashed at [src]!") take_damage(15) else - M << "That object is useless to you." + to_chat(M, "That object is useless to you.") return /obj/machinery/porta_turret/emag_act(user as mob) @@ -426,7 +426,7 @@ var/list/turret_icons //Emagging the turret makes it go bonkers and stun everyone. It also makes //the turret shoot much, much faster. if(user) - user << "You short out [src]'s threat assessment circuits." + to_chat(user, "You short out [src]'s threat assessment circuits.") visible_message("[src] hums oddly...") emagged = 1 iconholder = 1 @@ -766,14 +766,14 @@ var/list/turret_icons if(0) //first step if(istype(I, /obj/item/weapon/wrench) && !anchored) playsound(loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "You secure the external bolts." + to_chat(user, "You secure the external bolts.") anchored = 1 build_step = 1 return else if(istype(I, /obj/item/weapon/crowbar) && !anchored) playsound(loc, 'sound/items/Crowbar.ogg', 75, 1) - user << "You dismantle the turret construction." + to_chat(user, "You dismantle the turret construction.") new /obj/item/stack/sheet/metal( loc, 5) qdel(src) // qdel return @@ -782,16 +782,16 @@ var/list/turret_icons if(istype(I, /obj/item/stack/sheet/metal)) var/obj/item/stack/sheet/metal/M = I if(M.use(2)) - user << "You add some metal armor to the interior frame." + to_chat(user, "You add some metal armor to the interior frame.") build_step = 2 icon_state = "turret_frame2" else - user << "You need two sheets of metal to continue construction." + to_chat(user, "You need two sheets of metal to continue construction.") return else if(istype(I, /obj/item/weapon/wrench)) playsound(loc, 'sound/items/Ratchet.ogg', 75, 1) - user << "You unfasten the external bolts." + to_chat(user, "You unfasten the external bolts.") anchored = 0 build_step = 0 return @@ -800,7 +800,7 @@ var/list/turret_icons if(2) if(istype(I, /obj/item/weapon/wrench)) playsound(loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "You bolt the metal armor into place." + to_chat(user, "You bolt the metal armor into place.") build_step = 3 return @@ -809,14 +809,14 @@ var/list/turret_icons if(!WT.isOn()) return if(WT.get_fuel() < 5) //uses up 5 fuel. - user << "You need more fuel to complete this task." + to_chat(user, "You need more fuel to complete this task.") return playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/Welder2.ogg'), 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.remove_fuel(5, user)) return build_step = 1 - user << "You remove the turret's interior metal armor." + to_chat(user, "You remove the turret's interior metal armor.") new /obj/item/stack/sheet/metal( loc, 2) return @@ -828,11 +828,11 @@ var/list/turret_icons return var/obj/item/weapon/gun/energy/E = I //typecasts the item to an energy gun if(!user.unEquip(I)) - user << "\the [I] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]") return installation = I.type //installation becomes I.type gun_charge = E.power_supply.charge //the gun's charge is stored in gun_charge - user << "You add [I] to the turret." + to_chat(user, "You add [I] to the turret.") if(istype(installation, /obj/item/weapon/gun/energy/laser/bluetag) || istype(installation, /obj/item/weapon/gun/energy/laser/redtag)) target_type = /obj/machinery/porta_turret/tag @@ -845,18 +845,18 @@ var/list/turret_icons else if(istype(I, /obj/item/weapon/wrench)) playsound(loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "You remove the turret's metal armor bolts." + to_chat(user, "You remove the turret's metal armor bolts.") build_step = 2 return if(4) if(isprox(I)) if(!user.unEquip(I)) - user << "\the [I] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]") return build_step = 5 qdel(I) // qdel - user << "You add the prox sensor to the turret." + to_chat(user, "You add the prox sensor to the turret.") return //attack_hand() removes the gun @@ -865,7 +865,7 @@ var/list/turret_icons if(istype(I, /obj/item/weapon/screwdriver)) playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1) build_step = 6 - user << "You close the internal access hatch." + to_chat(user, "You close the internal access hatch.") return //attack_hand() removes the prox sensor @@ -874,16 +874,16 @@ var/list/turret_icons if(istype(I, /obj/item/stack/sheet/metal)) var/obj/item/stack/sheet/metal/M = I if(M.use(2)) - user << "You add some metal armor to the exterior frame." + to_chat(user, "You add some metal armor to the exterior frame.") build_step = 7 else - user << "You need two sheets of metal to continue construction." + to_chat(user, "You need two sheets of metal to continue construction.") return else if(istype(I, /obj/item/weapon/screwdriver)) playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1) build_step = 5 - user << "You open the internal access hatch." + to_chat(user, "You open the internal access hatch.") return if(7) @@ -891,14 +891,14 @@ var/list/turret_icons var/obj/item/weapon/weldingtool/WT = I if(!WT.isOn()) return if(WT.get_fuel() < 5) - user << "You need more fuel to complete this task." + to_chat(user, "You need more fuel to complete this task.") playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/Welder2.ogg'), 50, 1) if(do_after(user, 30, target = src)) if(!src || !WT.remove_fuel(5, user)) return build_step = 8 - user << "You weld the turret's armor down." + to_chat(user, "You weld the turret's armor down.") //The final step: create a full turret var/obj/machinery/porta_turret/Turret = new target_type(loc) @@ -912,7 +912,7 @@ var/list/turret_icons else if(istype(I, /obj/item/weapon/crowbar)) playsound(loc, 'sound/items/Crowbar.ogg', 75, 1) - user << "You pry off the turret's exterior armor." + to_chat(user, "You pry off the turret's exterior armor.") new /obj/item/stack/sheet/metal(loc, 2) build_step = 6 return @@ -942,10 +942,10 @@ var/list/turret_icons Gun.update_icon() installation = null gun_charge = 0 - user << "You remove [Gun] from the turret frame." + to_chat(user, "You remove [Gun] from the turret frame.") if(5) - user << "You remove the prox sensor from the turret frame." + to_chat(user, "You remove the prox sensor from the turret frame.") new /obj/item/device/assembly/prox_sensor(loc) build_step = 4 diff --git a/code/game/machinery/programmable_unloader.dm b/code/game/machinery/programmable_unloader.dm index b59bfad4d3e..f061f9906e6 100644 --- a/code/game/machinery/programmable_unloader.dm +++ b/code/game/machinery/programmable_unloader.dm @@ -199,7 +199,7 @@ if(istype(I,/obj/item/weapon/wrench)) // code borrowed from pipe dispenser if (unwrenched==0) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to unfasten \the [src] from the floor..." + to_chat(user, "\blue You begin to unfasten \the [src] from the floor...") if (do_after(user, 40, target = src)) user.visible_message( \ "[user] unfastens \the [src].", \ @@ -212,7 +212,7 @@ usr << browse(null, "window=pipedispenser") else /* unwrenched */ playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << "\blue You begin to fasten \the [src] to the floor..." + to_chat(user, "\blue You begin to fasten \the [src] to the floor...") if (do_after(user, 20, target = src)) user.visible_message( \ "[user] fastens \the [src].", \ @@ -230,16 +230,16 @@ open = 0 if(!unwrenched && !circuit_removed) src.stat &= ~MAINT - user << "You close \the [src]'s maintenance panel." + to_chat(user, "You close \the [src]'s maintenance panel.") else open = 1 src.stat |= MAINT - user << "You open \the [src]'s maintenance panel." + to_chat(user, "You open \the [src]'s maintenance panel.") if(istype(I,/obj/item/weapon/crowbar)) if(open) - user << "\blue You begin to pry out the [src]'s circuits." + to_chat(user, "\blue You begin to pry out the [src]'s circuits.") if(do_after(user,40, target = src)) - user << "\blue You remove the circuitboard." + to_chat(user, "\blue You remove the circuitboard.") circuit_removed = 1 use_power = 0 on = 0 @@ -260,10 +260,10 @@ if(istype(I,/obj/item/weapon/circuitboard/programmable)) if(!open) - user << "You have to open the machine first!" + to_chat(user, "You have to open the machine first!") return if(!circuit_removed) - user << "There is already a circuitboard present!" + to_chat(user, "There is already a circuitboard present!") return circuit_removed = 0 I.loc = src @@ -272,7 +272,7 @@ /obj/machinery/programmable/emag_act(user as mob) if(emagged) return - user << "You swipe the unloader with your card. After a moment's grinding, it beeps in a sinister fashion." + to_chat(user, "You swipe the unloader with your card. After a moment's grinding, it beeps in a sinister fashion.") playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) emagged = 1 overrides += emag_overrides @@ -299,7 +299,7 @@ if(M.client) M.client.eye = M.client.mob M.client.perspective = MOB_PERSPECTIVE - M << "\blue The machine turns off, and you fall out." + to_chat(M, "\blue The machine turns off, and you fall out.") return @@ -498,7 +498,7 @@ if(H.gloves && istype(H.gloves, /obj/item/clothing/gloves/boxing)) var/newsleep = 0 if(H.loc != input) - H << "The boxing machine refuses to acknowledge you unless you face it head on!" + to_chat(H, "The boxing machine refuses to acknowledge you unless you face it head on!") return var/damage = 0 if(H.a_intent != I_HARM) @@ -585,22 +585,22 @@ if(istype(I,/obj/item/device/multitool)) hacking = (hacking?0:1) if(hacking) - user << "You unlock the data port on the board. You can now use a PDA to alter its data." + to_chat(user, "You unlock the data port on the board. You can now use a PDA to alter its data.") else - user << "You relock the data port." + to_chat(user, "You relock the data port.") if(istype(I,/obj/item/device/pda)) if(!hacking) - user << "It looks like you can't access the board's data port. You'll have to open it with a multitool." + to_chat(user, "It looks like you can't access the board's data port. You'll have to open it with a multitool.") else user.set_machine(src) interact(user) if(istype(I,/obj/item/weapon/card/emag) && !emagged) if(!hacking) - user << "There seems to be a data port on the card, but it's locked. A multitool could open it." + to_chat(user, "There seems to be a data port on the card, but it's locked. A multitool could open it.") else emagged = 1 overrides += emag_overrides - user << "You swipe the card in the card's data port. The lights flicker, then flash once." + to_chat(user, "You swipe the card in the card's data port. The lights flicker, then flash once.") proc/format(var/datum/cargoprofile/P,var/level) // PROFILE=0 OVERRIDE=1 MAIN=2 diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm index 73ef3b1d945..be126aec5ff 100644 --- a/code/game/machinery/recharger.dm +++ b/code/game/machinery/recharger.dm @@ -18,7 +18,7 @@ return if(!user.canUnEquip(G, 0)) - user << "[G] is stuck to your hand, you can't put it in [src]!" + to_chat(user, "[G] is stuck to your hand, you can't put it in [src]!") return if(istype(G, /obj/item/weapon/gun/energy) || istype(G, /obj/item/weapon/melee/baton) || istype(G,/obj/item/device/laptop) || istype(G, /obj/item/weapon/rcs)) @@ -28,22 +28,22 @@ // Checks to make sure he's not in space doing it, and that the area got proper power. var/area/a = get_area(src) if(!isarea(a)) - user << "\red The [name] blinks red as you try to insert the item!" + to_chat(user, "\red The [name] blinks red as you try to insert the item!") return if(a.power_equip == 0 && a.requires_power) - user << "\red The [name] blinks red as you try to insert the item!" + to_chat(user, "\red The [name] blinks red as you try to insert the item!") return if (istype(G, /obj/item/weapon/gun/energy)) var/obj/item/weapon/gun/energy/E = G if(!E.can_charge) - user << "Your gun has no external power connector." + to_chat(user, "Your gun has no external power connector.") return if(istype(G, /obj/item/device/laptop)) var/obj/item/device/laptop/L = G if(!L.stored_computer.battery) - user << "There's no battery in it!" + to_chat(user, "There's no battery in it!") return user.drop_item() @@ -53,10 +53,10 @@ update_icon() else if(istype(G, /obj/item/weapon/wrench)) if(charging) - user << "\red Remove the weapon first!" + to_chat(user, "\red Remove the weapon first!") return anchored = !anchored - user << "You [anchored ? "attached" : "detached"] the recharger." + to_chat(user, "You [anchored ? "attached" : "detached"] the recharger.") playsound(loc, 'sound/items/Ratchet.ogg', 75, 1) /obj/machinery/recharger/attack_hand(mob/user as mob) diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index 31849032067..5b5a532efdb 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -89,7 +89,7 @@ /obj/machinery/recharge_station/attackby(obj/item/P as obj, mob/user as mob, params) if (istype(P, /obj/item/weapon/screwdriver)) if(src.occupant) - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") return default_deconstruction_screwdriver(user, "borgdecon2", "borgcharger0", P) return @@ -217,11 +217,11 @@ return if(get_dist(src, user) > 2 || get_dist(usr, user) > 1) - usr << "They are too far away to put inside" + to_chat(usr, "They are too far away to put inside") return if (panel_open) - usr << "Close the maintenance panel first." + to_chat(usr, "Close the maintenance panel first.") return var/can_accept_user @@ -232,10 +232,10 @@ //Whoever had it so that a borg with a dead cell can't enter this thing should be shot. --NEO return if(occupant) - R << "The cell is already occupied!" + to_chat(R, "The cell is already occupied!") return if(!R.cell) - R << "Without a power cell, you can't be recharged." + to_chat(R, "Without a power cell, you can't be recharged.") //Make sure they actually HAVE a cell, now that they can get in while powerless. --NEO return can_accept_user = 1 @@ -246,14 +246,14 @@ if(H.stat == DEAD) return if(occupant) - H << "The cell is already occupied!" + to_chat(H, "The cell is already occupied!") return if(!H.get_int_organ(/obj/item/organ/internal/cell)) return can_accept_user = 1 if(!can_accept_user) - user << "Only non-organics may enter the recharger!" + to_chat(user, "Only non-organics may enter the recharger!") return user.stop_pulling() diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm index 67a77458916..9bcf3de53a8 100644 --- a/code/game/machinery/recycler.dm +++ b/code/game/machinery/recycler.dm @@ -45,9 +45,9 @@ var/const/SAFETY_COOLDOWN = 100 /obj/machinery/recycler/examine(mob/user) ..(user) - user << "The power light is [(stat & NOPOWER) ? "off" : "on"]." - user << "The safety-mode light is [safety_mode ? "on" : "off"]." - user << "The safety-sensors status light is [emagged ? "off" : "on"]." + to_chat(user, "The power light is [(stat & NOPOWER) ? "off" : "on"].") + to_chat(user, "The safety-mode light is [safety_mode ? "on" : "off"].") + to_chat(user, "The safety-sensors status light is [emagged ? "off" : "on"].") /obj/machinery/recycler/power_change() ..() @@ -78,7 +78,7 @@ var/const/SAFETY_COOLDOWN = 100 safety_mode = 0 update_icon() playsound(src.loc, "sparks", 75, 1, -1) - user << "You use the cryptographic sequencer on the [src.name]." + to_chat(user, "You use the cryptographic sequencer on the [src.name].") /obj/machinery/recycler/update_icon() ..() @@ -195,10 +195,10 @@ var/const/SAFETY_COOLDOWN = 100 if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "[src] is fastened to the floor!" + to_chat(usr, "[src] is fastened to the floor!") return 0 eat_dir = turn(eat_dir, 270) - user << "[src] will now accept items from [dir2text(eat_dir)]." + to_chat(user, "[src] will now accept items from [dir2text(eat_dir)].") return 1 /obj/machinery/recycler/verb/rotateccw() @@ -211,10 +211,10 @@ var/const/SAFETY_COOLDOWN = 100 if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "[src] is fastened to the floor!" + to_chat(usr, "[src] is fastened to the floor!") return 0 eat_dir = turn(eat_dir, 90) - user << "[src] will now accept items from [dir2text(eat_dir)]." + to_chat(user, "[src] will now accept items from [dir2text(eat_dir)].") return 1 /obj/item/weapon/paper/recycler diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm index 0641b4d6266..bfd4939dc3b 100644 --- a/code/game/machinery/requests_console.dm +++ b/code/game/machinery/requests_console.dm @@ -226,7 +226,7 @@ var/list/obj/machinery/requests_console/allConsoles = list() hackState = 0 icon_state="req_comp_open" else - user << "You can't do much with that."*/ + to_chat(user, "You can't do much with that.")*/ if (istype(O, /obj/item/weapon/card/id)) if(inoperable(MAINT)) return @@ -241,7 +241,7 @@ var/list/obj/machinery/requests_console/allConsoles = list() announcement.announcer = ID.assignment ? "[ID.assignment] [ID.registered_name]" : ID.registered_name else reset_message() - user << "You are not authorized to send announcements." + to_chat(user, "You are not authorized to send announcements.") updateUsrDialog() if (istype(O, /obj/item/weapon/stamp)) if(inoperable(MAINT)) return diff --git a/code/game/machinery/robot_fabricator.dm b/code/game/machinery/robot_fabricator.dm index be28fae21da..44455884bd8 100644 --- a/code/game/machinery/robot_fabricator.dm +++ b/code/game/machinery/robot_fabricator.dm @@ -28,11 +28,11 @@ if (O:amount < 1) qdel(O) - user << "You insert [count] metal sheet\s into the fabricator." + to_chat(user, "You insert [count] metal sheet\s into the fabricator.") src.overlays -= "fab-load-metal" updateDialog() else - user << "The robot part maker is full. Please remove metal from the robot part maker in order to insert more." + to_chat(user, "The robot part maker is full. Please remove metal from the robot part maker in order to insert more.") /obj/machinery/robotic_fabricator/power_change() if (powered()) diff --git a/code/game/machinery/seed_extractor.dm b/code/game/machinery/seed_extractor.dm index ccdb43d5522..dbff4722cad 100644 --- a/code/game/machinery/seed_extractor.dm +++ b/code/game/machinery/seed_extractor.dm @@ -44,21 +44,21 @@ obj/machinery/seed_extractor/attackby(var/obj/item/O as obj, var/mob/user as mob new_seed_type = plant_controller.seeds[F.plantname] if(new_seed_type) - user << "You extract some seeds from [O]." + to_chat(user, "You extract some seeds from [O].") var/produce = rand(1,4) for(var/i = 0;i<=produce;i++) var/obj/item/seeds/seeds = new(get_turf(src)) seeds.seed_type = new_seed_type.name seeds.update_seed() else - user << "[O] doesn't seem to have any usable seeds inside it." + to_chat(user, "[O] doesn't seem to have any usable seeds inside it.") qdel(O) //Grass. else if(istype(O, /obj/item/stack/tile/grass)) var/obj/item/stack/tile/grass/S = O - user << "You extract some seeds from the [S.name]." + to_chat(user, "You extract some seeds from the [S.name].") S.use(1) new /obj/item/seeds/grassseed(loc) diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index 8a995cc3aa2..323937075ad 100644 --- a/code/game/machinery/shieldgen.dm +++ b/code/game/machinery/shieldgen.dm @@ -208,10 +208,10 @@ /obj/machinery/shieldgen/attack_hand(mob/user as mob) if(locked) - user << "The machine is locked, you are unable to use it." + to_chat(user, "The machine is locked, you are unable to use it.") return if(is_open) - user << "The panel must be closed before operating this machine." + to_chat(user, "The panel must be closed before operating this machine.") return if (src.active) @@ -226,7 +226,7 @@ "You hear heavy droning.") src.shields_up() else - user << "The device must first be secured to the floor." + to_chat(user, "The device must first be secured to the floor.") return /obj/machinery/shieldgen/attackby(obj/item/weapon/W as obj, mob/user as mob, params) @@ -237,48 +237,48 @@ else if(istype(W, /obj/item/weapon/screwdriver)) playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) if(is_open) - user << "\blue You close the panel." + to_chat(user, "\blue You close the panel.") is_open = 0 else - user << "\blue You open the panel and expose the wiring." + to_chat(user, "\blue You open the panel and expose the wiring.") is_open = 1 else if(istype(W, /obj/item/stack/cable_coil) && malfunction && is_open) var/obj/item/stack/cable_coil/coil = W - user << "\blue You begin to replace the wires." + to_chat(user, "\blue You begin to replace the wires.") //if(do_after(user, min(60, round( ((maxhealth/health)*10)+(malfunction*10) ), target = src)) //Take longer to repair heavier damage if(do_after(user, 30, target = src)) if(!src || !coil) return coil.use(1) health = max_health malfunction = 0 - user << "\blue You repair the [src]!" + to_chat(user, "\blue You repair the [src]!") update_icon() else if(istype(W, /obj/item/weapon/wrench)) if(locked) - user << "The bolts are covered, unlocking this would retract the covers." + to_chat(user, "The bolts are covered, unlocking this would retract the covers.") return if(anchored) playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "\blue You unsecure the [src] from the floor!" + to_chat(user, "\blue You unsecure the [src] from the floor!") if(active) - user << "\blue The [src] shuts off!" + to_chat(user, "\blue The [src] shuts off!") src.shields_down() anchored = 0 else if(istype(get_turf(src), /turf/space)) return //No wrenching these in space! playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "\blue You secure the [src] to the floor!" + to_chat(user, "\blue You secure the [src] to the floor!") anchored = 1 else if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda)) if(src.allowed(user)) src.locked = !src.locked - user << "The controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]") else - user << "\red Access denied." + to_chat(user, "\red Access denied.") else ..() @@ -346,13 +346,13 @@ /obj/machinery/shieldwallgen/attack_hand(mob/user as mob) if(state != 1) - user << "\red The shield generator needs to be firmly secured to the floor first." + to_chat(user, "\red The shield generator needs to be firmly secured to the floor first.") return 1 if(src.locked && !istype(user, /mob/living/silicon)) - user << "\red The controls are locked!" + to_chat(user, "\red The controls are locked!") return 1 if(power != 1) - user << "\red The shield generator needs to be powered by wire underneath." + to_chat(user, "\red The shield generator needs to be powered by wire underneath.") return 1 if(src.active >= 1) @@ -452,29 +452,29 @@ /obj/machinery/shieldwallgen/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/weapon/wrench)) if(active) - user << "Turn off the field generator first." + to_chat(user, "Turn off the field generator first.") return else if(state == 0) state = 1 playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) - user << "You secure the external reinforcing bolts to the floor." + to_chat(user, "You secure the external reinforcing bolts to the floor.") src.anchored = 1 return else if(state == 1) state = 0 playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) - user << "You undo the external reinforcing bolts." + to_chat(user, "You undo the external reinforcing bolts.") src.anchored = 0 return if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if (src.allowed(user)) src.locked = !src.locked - user << "Controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]") else - user << "\red Access denied." + to_chat(user, "\red Access denied.") else add_fingerprint(user) diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm index 7e4efb3a751..6ba798cebee 100644 --- a/code/game/machinery/spaceheater.dm +++ b/code/game/machinery/spaceheater.dm @@ -28,11 +28,11 @@ /obj/machinery/space_heater/examine(mob/user) ..(user) - user << "The heater is [on ? "on" : "off"] and the hatch is [open ? "open" : "closed"]." + to_chat(user, "The heater is [on ? "on" : "off"] and the hatch is [open ? "open" : "closed"].") if(open) - user << "The power cell is [cell ? "installed" : "missing"]." + to_chat(user, "The power cell is [cell ? "installed" : "missing"].") else - user << "The charge meter reads [cell ? round(cell.percent(),1) : 0]%" + to_chat(user, "The charge meter reads [cell ? round(cell.percent(),1) : 0]%") /obj/machinery/space_heater/emp_act(severity) @@ -47,7 +47,7 @@ if(istype(I, /obj/item/weapon/stock_parts/cell)) if(open) if(cell) - user << "There is already a power cell inside." + to_chat(user, "There is already a power cell inside.") return else // insert cell @@ -60,7 +60,7 @@ user.visible_message("\blue [user] inserts a power cell into [src].", "\blue You insert the power cell into [src].") else - user << "The hatch must be open to insert a power cell." + to_chat(user, "The hatch must be open to insert a power cell.") return else if(istype(I, /obj/item/weapon/screwdriver)) open = !open diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index e2b02a0ce9d..e73dbaf5dbd 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -134,7 +134,7 @@ /obj/machinery/status_display/examine(mob/user) . = ..(user) if(mode != STATUS_DISPLAY_BLANK && mode != STATUS_DISPLAY_ALERT) - user << "The display says:
\t[sanitize(message1)]
\t[sanitize(message2)]" + to_chat(user, "The display says:
\t[sanitize(message1)]
\t[sanitize(message2)]") /obj/machinery/status_display/proc/set_message(m1, m2) if(m1) diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 8cdd74790ac..9cb2c7db4d6 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -248,14 +248,14 @@ if(!protected) playsound(src.loc, "sparks", 75, 1, -1) - user << "You try to touch the controls but you get zapped. There must be a short circuit somewhere." + to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") return*/ else //welp, the guy is protected, we can continue if(src.issuperUV) - user << "You slide the dial back towards \"185nm\"." + to_chat(user, "You slide the dial back towards \"185nm\".") src.issuperUV = 0 else - user << "You crank the dial all the way up to \"15nm\"." + to_chat(user, "You crank the dial all the way up to \"15nm\".") src.issuperUV = 1 return @@ -274,10 +274,10 @@ if(!protected) playsound(src.loc, "sparks", 75, 1, -1) - user << "You try to touch the controls but you get zapped. There must be a short circuit somewhere." + to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") return*/ else - user << "You push the button. The coloured LED next to it changes." + to_chat(user, "You push the button. The coloured LED next to it changes.") src.safetieson = !src.safetieson @@ -326,7 +326,7 @@ /obj/machinery/suit_storage_unit/proc/toggle_open(mob/user as mob) if(src.islocked || src.isUV) - user << "Unable to open unit." + to_chat(user, "Unable to open unit.") return if(src.OCCUPANT) src.eject_occupant(user) @@ -337,7 +337,7 @@ /obj/machinery/suit_storage_unit/proc/toggle_lock(mob/user as mob) if(src.OCCUPANT && src.safetieson) - user << "The Unit's safety protocols disallow locking when a biological form is detected inside its compartments." + to_chat(user, "The Unit's safety protocols disallow locking when a biological form is detected inside its compartments.") return if(src.isopen) return @@ -349,12 +349,12 @@ if(src.isUV || src.isopen) //I'm bored of all these sanity checks return if(src.OCCUPANT && src.safetieson) - user << "WARNING: Biological entity detected in the confines of the Unit's storage. Cannot initiate cycle." + to_chat(user, "WARNING: Biological entity detected in the confines of the Unit's storage. Cannot initiate cycle.") return if(!src.HELMET && !src.MASK && !src.SUIT && !src.OCCUPANT ) //shit's empty yo - user << "Unit storage bays empty. Nothing to disinfect -- Aborting." + to_chat(user, "Unit storage bays empty. Nothing to disinfect -- Aborting.") return - user << "You start the Unit's cauterisation cycle." + to_chat(user, "You start the Unit's cauterisation cycle.") src.cycletime_left = 20 src.isUV = 1 if(src.OCCUPANT && !src.islocked) @@ -416,10 +416,10 @@ if(src.OCCUPANT) if(src.issuperUV) OCCUPANT.take_organ_damage(0,40) - user << "Test. You gave him 40 damage" + to_chat(user, "Test. You gave him 40 damage") else OCCUPANT.take_organ_damage(0,8) - user << "Test. You gave him 8 damage" + to_chat(user, "Test. You gave him 8 damage") return*/ @@ -440,9 +440,9 @@ if (src.OCCUPANT.client) if(user != OCCUPANT) - OCCUPANT << "The machine kicks you out!" + to_chat(OCCUPANT, "The machine kicks you out!") if(user.loc != src.loc) - OCCUPANT << "You leave the not-so-cozy confines of the SSU." + to_chat(OCCUPANT, "You leave the not-so-cozy confines of the SSU.") src.OCCUPANT.client.eye = src.OCCUPANT.client.mob src.OCCUPANT.client.perspective = MOB_PERSPECTIVE @@ -476,13 +476,13 @@ if (usr.stat != 0) return if (!src.isopen) - usr << "The unit's doors are shut." + to_chat(usr, "The unit's doors are shut.") return if (!src.ispowered || src.isbroken) - usr << "The unit is not operational." + to_chat(usr, "The unit is not operational.") return if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) ) - usr << "It's too cluttered inside for you to fit in!" + to_chat(usr, "It's too cluttered inside for you to fit in!") return visible_message("[usr] starts squeezing into the suit storage unit!") if(do_after(usr, 10, target = usr)) @@ -512,7 +512,7 @@ if(istype(I, /obj/item/weapon/screwdriver)) src.panelopen = !src.panelopen playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) - user << text("You [] the unit's maintenance panel.",(src.panelopen ? "open up" : "close") ) + to_chat(user, text("You [] the unit's maintenance panel.",(src.panelopen ? "open up" : "close") )) src.updateUsrDialog() return if ( istype(I, /obj/item/weapon/grab) ) @@ -520,13 +520,13 @@ if( !(ismob(G.affecting)) ) return if (!src.isopen) - usr << "The unit's doors are shut." + to_chat(usr, "The unit's doors are shut.") return if (!src.ispowered || src.isbroken) - usr << "The unit is not operational." + to_chat(usr, "The unit is not operational.") return if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) ) //Unit needs to be absolutely empty - user << "The unit's storage area is too cluttered." + to_chat(user, "The unit's storage area is too cluttered.") return visible_message("[user] starts putting [G.affecting.name] into the Suit Storage Unit.") if(do_after(user, 20, target = G:affecting)) @@ -552,9 +552,9 @@ return var/obj/item/clothing/suit/space/S = I if(src.SUIT) - user << "The unit already contains a suit." + to_chat(user, "The unit already contains a suit.") return - user << "You load the [S.name] into the storage compartment." + to_chat(user, "You load the [S.name] into the storage compartment.") user.drop_item() S.loc = src src.SUIT = S @@ -566,9 +566,9 @@ return var/obj/item/clothing/head/helmet/H = I if(src.HELMET) - user << "The unit already contains a helmet." + to_chat(user, "The unit already contains a helmet.") return - user << "You load the [H.name] into the storage compartment." + to_chat(user, "You load the [H.name] into the storage compartment.") user.drop_item() H.loc = src src.HELMET = H @@ -580,9 +580,9 @@ return var/obj/item/clothing/mask/M = I if(src.MASK) - user << "The unit already contains a mask." + to_chat(user, "The unit already contains a mask.") return - user << "You load the [M.name] into the storage compartment." + to_chat(user, "You load the [M.name] into the storage compartment.") user.drop_item() M.loc = src src.MASK = M @@ -678,11 +678,11 @@ return if(locked) - user << "\red The suit cycler is locked." + to_chat(user, "\red The suit cycler is locked.") return if(src.contents.len > 0) - user << "\red There is no room inside the cycler for [G.affecting.name]." + to_chat(user, "\red There is no room inside the cycler for [G.affecting.name].") return visible_message("[user] starts putting [G.affecting.name] into the suit cycler.") @@ -705,21 +705,21 @@ else if(istype(I,/obj/item/weapon/screwdriver)) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.") src.updateUsrDialog() return else if(istype(I,/obj/item/clothing/head/helmet/space)) if(locked) - user << "\red The suit cycler is locked." + to_chat(user, "\red The suit cycler is locked.") return if(helmet) - user << "The cycler already contains a helmet." + to_chat(user, "The cycler already contains a helmet.") return - user << "You fit \the [I] into the suit cycler." + to_chat(user, "You fit \the [I] into the suit cycler.") user.drop_item() I.loc = src helmet = I @@ -731,24 +731,24 @@ else if(istype(I,/obj/item/clothing/suit/space/rig)) if(locked) - user << "\red The suit cycler is locked." + to_chat(user, "\red The suit cycler is locked.") return if(suit) - user << "The cycler already contains a hardsuit." + to_chat(user, "The cycler already contains a hardsuit.") return var/obj/item/clothing/suit/space/rig/S = I if(S.helmet) - user << "\The [S] will not fit into the cycler with a helmet attached." + to_chat(user, "\The [S] will not fit into the cycler with a helmet attached.") return if(S.boots) - user << "\The [S] will not fit into the cycler with boots attached." + to_chat(user, "\The [S] will not fit into the cycler with boots attached.") return - user << "You fit \the [I] into the suit cycler." + to_chat(user, "You fit \the [I] into the suit cycler.") user.drop_item() I.loc = src suit = I @@ -761,11 +761,11 @@ /obj/machinery/suit_cycler/emag_act(user as mob) if(emagged) - user << "\red The cycler has already been subverted." + to_chat(user, "\red The cycler has already been subverted.") return //Clear the access reqs, disable the safeties, and open up all paintjobs. - user << "\red You run the sequencer across the interface, corrupting the operating protocols." + to_chat(user, "\red You run the sequencer across the interface, corrupting the operating protocols.") departments = list("Engineering","Mining","Medical","Security","Atmos","^%###^%$") emagged = 1 safeties = 0 @@ -885,14 +885,14 @@ if(src.allowed(usr)) locked = !locked - usr << "You [locked ? "" : "un"]lock \the [src]." + to_chat(usr, "You [locked ? "" : "un"]lock \the [src].") else - usr << "\red Access denied." + to_chat(usr, "\red Access denied.") else if(href_list["begin_decontamination"]) if(safeties && occupant) - usr << "\red The cycler has detected an occupant. Please remove the occupant before commencing the decontamination cycle." + to_chat(usr, "\red The cycler has detected an occupant. Please remove the occupant before commencing the decontamination cycle.") return active = 1 @@ -912,7 +912,7 @@ /* else if ((href_list["cutwire"]) && (src.panel_open)) var/twire = text2num(href_list["cutwire"]) if (!( istype(usr.get_active_hand(), /obj/item/weapon/wirecutters) )) - usr << "You need wirecutters!" + to_chat(usr, "You need wirecutters!") return if (src.isWireColorCut(twire)) src.mend(twire) @@ -922,10 +922,10 @@ else if ((href_list["pulsewire"]) && (src.panel_open)) var/twire = text2num(href_list["pulsewire"]) if (!istype(usr.get_active_hand(), /obj/item/device/multitool)) - usr << "You need a multitool!" + to_chat(usr, "You need a multitool!") return if (src.isWireColorCut(twire)) - usr << "You can't pulse a cut wire." + to_chat(usr, "You can't pulse a cut wire.") return else src.pulse(twire)*/ @@ -991,7 +991,7 @@ /obj/machinery/suit_cycler/proc/eject_occupant(mob/user as mob) if(locked || active) - user << "\red The cycler is locked." + to_chat(user, "\red The cycler is locked.") return if (!occupant) diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm index 11ec8837c87..7790cf10ebc 100644 --- a/code/game/machinery/syndicatebeacon.dm +++ b/code/game/machinery/syndicatebeacon.dm @@ -85,13 +85,13 @@ N.mind.objectives += escape_objective - M << "You have joined the ranks of the Syndicate and become a traitor to the station!" + to_chat(M, "You have joined the ranks of the Syndicate and become a traitor to the station!") message_admins("[key_name_admin(N)] has accepted a traitor objective from a syndicate beacon.") var/obj_count = 1 for(var/datum/objective/OBJ in M.mind.objectives) - M << "Objective #[obj_count]: [OBJ.explanation_text]" + to_chat(M, "Objective #[obj_count]: [OBJ.explanation_text]") obj_count++ src.add_fingerprint(usr) @@ -125,7 +125,8 @@ /obj/machinery/power/singularity_beacon/proc/Activate(mob/user = null) if(surplus() < 1500) - if(user) user << "The connected wire doesn't have enough current." + if(user) + to_chat(user, "The connected wire doesn't have enough current.") return for(var/obj/singularity/singulo in singularities) if(singulo.z == z) @@ -134,7 +135,7 @@ active = 1 machines |= src if(user) - user << "You activate the beacon." + to_chat(user, "You activate the beacon.") /obj/machinery/power/singularity_beacon/proc/Deactivate(mob/user = null) @@ -144,7 +145,7 @@ icon_state = "[icontype]0" active = 0 if(user) - user << "You deactivate the beacon." + to_chat(user, "You deactivate the beacon.") /obj/machinery/power/singularity_beacon/attack_ai(mob/user as mob) @@ -155,27 +156,27 @@ if(anchored) return active ? Deactivate(user) : Activate(user) else - user << "You need to screw the beacon to the floor first!" + to_chat(user, "You need to screw the beacon to the floor first!") return /obj/machinery/power/singularity_beacon/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W,/obj/item/weapon/screwdriver)) if(active) - user << "You need to deactivate the beacon first!" + to_chat(user, "You need to deactivate the beacon first!") return if(anchored) anchored = 0 - user << "You unscrew the beacon from the floor." + to_chat(user, "You unscrew the beacon from the floor.") disconnect_from_network() return else if(!connect_to_network()) - user << "This device must be placed over an exposed cable." + to_chat(user, "This device must be placed over an exposed cable.") return anchored = 1 - user << "You screw the beacon to the floor and attach the cable." + to_chat(user, "You screw the beacon to the floor and attach the cable.") return ..() return diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm index a81c00604db..fe443662616 100644 --- a/code/game/machinery/syndicatebomb.dm +++ b/code/game/machinery/syndicatebomb.dm @@ -47,7 +47,7 @@ /obj/machinery/syndicatebomb/examine(mob/user) ..(user) - user << "A digital display on it reads \"[timer]\"." + to_chat(user, "A digital display on it reads \"[timer]\".") /obj/machinery/syndicatebomb/update_icon() icon_state = "[initial(icon_state)][active ? "-active" : "-inactive"][open_panel ? "-wires" : ""]" @@ -56,25 +56,25 @@ if(istype(I, /obj/item/weapon/wrench)) if(!anchored) if(!isturf(src.loc) || istype(src.loc, /turf/space)) - user << "The bomb must be placed on solid ground to attach it" + to_chat(user, "The bomb must be placed on solid ground to attach it") else - user << "You firmly wrench the bomb to the floor" + to_chat(user, "You firmly wrench the bomb to the floor") playsound(loc, 'sound/items/ratchet.ogg', 50, 1) anchored = 1 if(active) - user << "The bolts lock in place" + to_chat(user, "The bolts lock in place") else if(!active) - user << "You wrench the bomb from the floor" + to_chat(user, "You wrench the bomb from the floor") playsound(loc, 'sound/items/ratchet.ogg', 50, 1) anchored = 0 else - user << "The bolts are locked down!" + to_chat(user, "The bolts are locked down!") else if(istype(I, /obj/item/weapon/screwdriver)) open_panel = !open_panel update_icon() - user << "You [open_panel ? "open" : "close"] the wire panel." + to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.") else if(istype(I, /obj/item/weapon/wirecutters) || istype(I, /obj/item/device/multitool) || istype(I, /obj/item/device/assembly/signaler )) if(open_panel) @@ -83,23 +83,23 @@ else if(istype(I, /obj/item/weapon/crowbar)) if(open_panel && isWireCut(WIRE_BOOM) && isWireCut(WIRE_UNBOLT) && isWireCut(WIRE_DELAY) && isWireCut(WIRE_PROCEED) && isWireCut(WIRE_ACTIVATE)) if(payload) - user << "You carefully pry out [payload]." + to_chat(user, "You carefully pry out [payload].") payload.loc = user.loc payload = null else - user << "There isn't anything in here to remove!" + to_chat(user, "There isn't anything in here to remove!") else if (open_panel) - user << "The wires conneting the shell to the explosives are holding it down!" + to_chat(user, "The wires conneting the shell to the explosives are holding it down!") else - user << "The cover is screwed on, it won't pry off!" + to_chat(user, "The cover is screwed on, it won't pry off!") else if(istype(I, /obj/item/weapon/bombcore)) if(!payload) payload = I - user << "You place [payload] into [src]." + to_chat(user, "You place [payload] into [src].") user.drop_item() payload.loc = src else - user << "[payload] is already loaded into [src], you'll have to remove it first." + to_chat(user, "[payload] is already loaded into [src], you'll have to remove it first.") else ..() @@ -118,7 +118,7 @@ settings(user) return else if(anchored) - user << "The bomb is bolted to the floor!" + to_chat(user, "The bomb is bolted to the floor!") return /obj/machinery/syndicatebomb/proc/settings(var/mob/user) @@ -310,7 +310,7 @@ detonated++ existant++ playsound(user, 'sound/machines/click.ogg', 20, 1) - user << "[existant] found, [detonated] triggered." + to_chat(user, "[existant] found, [detonated] triggered.") if(detonated) var/turf/T = get_turf(src) var/area/A = get_area(T) diff --git a/code/game/machinery/telecomms/logbrowser.dm b/code/game/machinery/telecomms/logbrowser.dm index 282c7a39cd8..5e46a20dd6d 100644 --- a/code/game/machinery/telecomms/logbrowser.dm +++ b/code/game/machinery/telecomms/logbrowser.dm @@ -187,7 +187,7 @@ if(href_list["delete"]) if(!src.allowed(usr) && !emagged) - usr << "\red ACCESS DENIED." + to_chat(usr, "\red ACCESS DENIED.") return if(SelectedServer) @@ -225,7 +225,7 @@ playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 20, target = src)) if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/weapon/shard(loc) var/obj/item/weapon/circuitboard/comm_server/M = new /obj/item/weapon/circuitboard/comm_server( A ) @@ -237,7 +237,7 @@ A.anchored = 1 qdel(src) else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/weapon/circuitboard/comm_server/M = new /obj/item/weapon/circuitboard/comm_server( A ) for (var/obj/C in src) @@ -254,4 +254,4 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "\blue You you disable the security protocols" + to_chat(user, "\blue You you disable the security protocols") diff --git a/code/game/machinery/telecomms/machine_interactions.dm b/code/game/machinery/telecomms/machine_interactions.dm index 04a88492cd2..da9fe5a046e 100644 --- a/code/game/machinery/telecomms/machine_interactions.dm +++ b/code/game/machinery/telecomms/machine_interactions.dm @@ -23,26 +23,26 @@ switch(construct_op) if(0) if(istype(P, /obj/item/weapon/screwdriver)) - user << "You unfasten the bolts." + to_chat(user, "You unfasten the bolts.") playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) construct_op++ if(1) if(istype(P, /obj/item/weapon/screwdriver)) - user << "You fasten the bolts." + to_chat(user, "You fasten the bolts.") playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) construct_op-- if(istype(P, /obj/item/weapon/wrench)) - user << "You dislodge the external plating." + to_chat(user, "You dislodge the external plating.") playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) construct_op++ if(2) if(istype(P, /obj/item/weapon/wrench)) - user << "You secure the external plating." + to_chat(user, "You secure the external plating.") playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) construct_op-- if(istype(P, /obj/item/weapon/wirecutters)) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "You remove the cables." + to_chat(user, "You remove the cables.") construct_op++ var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( user.loc ) A.amount = 5 @@ -51,7 +51,7 @@ if(istype(P, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/A = P if(A.amount >= 5) - user << "You insert the cables." + to_chat(user, "You insert the cables.") A.amount -= 5 if(A.amount <= 0) user.drop_item() @@ -59,10 +59,10 @@ construct_op-- stat &= ~BROKEN // the machine's not borked anymore! if(istype(P, /obj/item/weapon/crowbar)) - user << "You begin prying out the circuit board other components..." + to_chat(user, "You begin prying out the circuit board other components...") playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) if(do_after(user,60, target = src)) - user << "You finish prying out the components." + to_chat(user, "You finish prying out the components.") // Drop all the component stuff if(component_parts) diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm index c0ab1c0baa0..9d9481aba04 100644 --- a/code/game/machinery/telecomms/telecomunications.dm +++ b/code/game/machinery/telecomms/telecomunications.dm @@ -39,7 +39,7 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list() if(!on) return - //world << "[src] ([src.id]) - [signal.debug_print()]" +// to_chat(world, "[src] ([src.id]) - [signal.debug_print()]") var/send_count = 0 diff --git a/code/game/machinery/telecomms/telemonitor.dm b/code/game/machinery/telecomms/telemonitor.dm index f966f477057..16528b73d0e 100644 --- a/code/game/machinery/telecomms/telemonitor.dm +++ b/code/game/machinery/telecomms/telemonitor.dm @@ -131,7 +131,7 @@ playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 20, target = src)) if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/weapon/shard(loc) var/obj/item/weapon/circuitboard/comm_monitor/M = new /obj/item/weapon/circuitboard/comm_monitor( A ) @@ -143,7 +143,7 @@ A.anchored = 1 qdel(src) else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/weapon/circuitboard/comm_monitor/M = new /obj/item/weapon/circuitboard/comm_monitor( A ) for (var/obj/C in src) @@ -160,4 +160,4 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "\blue You you disable the security protocols" \ No newline at end of file + to_chat(user, "\blue You you disable the security protocols") diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index 8f08ca9c92f..a5ee6631037 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -193,7 +193,7 @@ user.set_machine(src) if(!allowed(user) && !emagged) - user << "Access Denied." + to_chat(user, "Access Denied.") return 0 switch(href_list["choice"]) @@ -343,7 +343,7 @@ playsound(get_turf(src), 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 20, target = src)) if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/weapon/shard(loc) var/obj/item/weapon/circuitboard/comm_traffic/M = new /obj/item/weapon/circuitboard/comm_traffic( A ) @@ -355,7 +355,7 @@ A.anchored = 1 qdel(src) else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/weapon/circuitboard/comm_traffic/M = new /obj/item/weapon/circuitboard/comm_traffic( A ) for (var/obj/C in src) @@ -372,7 +372,7 @@ if(!emagged) playsound(get_turf(src), 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "\blue You you disable the security protocols" + to_chat(user, "\blue You you disable the security protocols") /obj/machinery/computer/telecomms/traffic/proc/canAccess(var/mob/user) if(issilicon(user) || in_range(user, src)) diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 6d0f70fc528..1933c022e16 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -43,11 +43,11 @@ var/obj/item/device/gps/L = I if(L.locked_location && !(stat & (NOPOWER|BROKEN))) if(!user.unEquip(L)) - user << "\the [I] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]") return L.loc = src locked = L - user << "You insert the GPS device into the [name]'s slot." + to_chat(user, "You insert the GPS device into the [name]'s slot.") else ..() return @@ -55,7 +55,7 @@ /obj/machinery/computer/teleporter/emag_act(user as mob) if(!emagged) emagged = 1 - user << "\blue The teleporter can now lock on to Syndicate beacons!" + to_chat(user, "\blue The teleporter can now lock on to Syndicate beacons!") else ui_interact(user) @@ -103,11 +103,11 @@ return if(!check_hub_connection()) - usr << "Error: Unable to detect hub." + to_chat(usr, "Error: Unable to detect hub.") nanomanager.update_uis(src) return if(calibrating) - usr << "Error: Calibration in progress. Stand by." + to_chat(usr, "Error: Calibration in progress. Stand by.") nanomanager.update_uis(src) return @@ -131,11 +131,11 @@ nanomanager.update_uis(src) if(href_list["calibrate"]) if(!target) - usr << "Error: No target set to calibrate to." + to_chat(usr, "Error: No target set to calibrate to.") nanomanager.update_uis(src) return if(power_station.teleporter_hub.calibrated || power_station.teleporter_hub.accurate >= 3) - usr << "Hub is already calibrated." + to_chat(usr, "Hub is already calibrated.") nanomanager.update_uis(src) return src.visible_message("Processing hub calibration to target...") @@ -218,7 +218,7 @@ var/list/areaindex = list() var/list/S = power_station.linked_stations if(!S.len) - user << "No connected stations located." + to_chat(user, "No connected stations located.") return for(var/obj/machinery/teleport/station/R in S) var/turf/T = get_turf(R) @@ -318,7 +318,7 @@ /obj/machinery/teleport/hub/Bumped(M as mob|obj) if(z == ZLEVEL_CENTCOMM) - M << "You can't use this here." + to_chat(M, "You can't use this here.") if(power_station && power_station.engaged && !panel_open) //--FalseIncarnate //Prevents AI cores from using the teleporter, prints out failure messages for clarity @@ -330,7 +330,7 @@ "\red You cannot interface with this technology and get rejected!", "\red External firewalls prevent you from utilizing this machine!", "\red Your AI core's anti-bluespace failsafes trigger and prevent teleportation!") - T<< "[pick(TPError)]" + to_chat(T, "[pick(TPError)]") return else teleport(M) @@ -435,9 +435,9 @@ if(linked_stations.len < efficiency) linked_stations.Add(M.buffer) M.buffer = null - user << "You upload the data from the [W.name]'s buffer." + to_chat(user, "You upload the data from the [W.name]'s buffer.") else - user << "This station can't hold more information, try to use better parts." + to_chat(user, "This station can't hold more information, try to use better parts.") if(default_deconstruction_screwdriver(user, "controller-o", "controller", W)) update_icon() return @@ -451,11 +451,11 @@ if(istype(W, /obj/item/device/multitool)) var/obj/item/device/multitool/M = W M.buffer = src - user << "You download the data to the [W.name]'s buffer." + to_chat(user, "You download the data to the [W.name]'s buffer.") return if(istype(W, /obj/item/weapon/wirecutters)) link_console_and_hub() - user << "You reconnect the station to nearby machinery." + to_chat(user, "You reconnect the station to nearby machinery.") return /obj/machinery/teleport/station/attack_ai() @@ -465,13 +465,13 @@ if(!panel_open) toggle(user) else - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") /obj/machinery/teleport/station/proc/toggle(mob/user) if (stat & (BROKEN|NOPOWER) || !teleporter_hub || !teleporter_console) return if (teleporter_hub.panel_open) - user << "Close the hub's maintenance panel first." + to_chat(user, "Close the hub's maintenance panel first.") return if (teleporter_console.target) src.engaged = !src.engaged diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm index 2e99d634d60..d117961ff88 100644 --- a/code/game/machinery/transformer.dm +++ b/code/game/machinery/transformer.dm @@ -131,7 +131,7 @@ AM.loc = src.loc do_transform_mime(AM) else - AM << "Only items can be greyscaled." + to_chat(AM, "Only items can be greyscaled.") return /obj/machinery/transformer/proc/do_transform_mime(var/obj/item/I) diff --git a/code/game/machinery/turntable.dm b/code/game/machinery/turntable.dm index 84a91ced929..bb69783db22 100644 --- a/code/game/machinery/turntable.dm +++ b/code/game/machinery/turntable.dm @@ -43,7 +43,7 @@ ..() if( href_list["on1"] ) if(src.playing == 0) - //world << "Should be working..." +// to_chat(world, "Should be working...") var/sound/S = sound('sound/turntable/TestLoop1.ogg') S.repeat = 1 S.channel = 10 @@ -52,8 +52,8 @@ S.environment = 0 //for(var/mob/M in world) // if(M.loc.loc == src.loc.loc && M.music == 0) - // world << "Found the song..." - // M << S +// to_chat(world, "Found the song...") +// to_chat(M, S) // M.music = 1 var/area/A = src.loc.loc @@ -63,19 +63,19 @@ while(playing == 1) for(var/mob/M in world) if((M.loc.loc in A) && M.music == 0) - //world << "Found the song..." - M << S +// to_chat(world, "Found the song...") + to_chat(M, S) M.music = 1 else if(!(M.loc.loc in A) && M.music == 1) var/sound/Soff = sound(null) Soff.channel = 10 - M << Soff + to_chat(M, Soff) M.music = 0 sleep(10) return if( href_list["on2"] ) if(src.playing == 0) - //world << "Should be working..." +// to_chat(world, "Should be working...") var/sound/S = sound('sound/turntable/TestLoop2.ogg') S.repeat = 1 S.channel = 10 @@ -84,8 +84,8 @@ S.environment = 0 //for(var/mob/M in world) // if(M.loc.loc == src.loc.loc && M.music == 0) - // world << "Found the song..." - // M << S +// to_chat(world, "Found the song...") +// to_chat(M, S) // M.music = 1 var/area/A = src.loc.loc for(var/obj/machinery/party/lasermachine/L in A) @@ -94,19 +94,19 @@ while(playing == 1) for(var/mob/M in world) if(M.loc.loc == src.loc.loc && M.music == 0) - //world << "Found the song..." - M << S +// to_chat(world, "Found the song...") + to_chat(M, S) M.music = 1 else if(M.loc.loc != src.loc.loc && M.music == 1) var/sound/Soff = sound(null) Soff.channel = 10 - M << Soff + to_chat(M, Soff) M.music = 0 sleep(10) return if( href_list["on3"] ) if(src.playing == 0) - //world << "Should be working..." +// to_chat(world, "Should be working...") var/sound/S = sound('sound/turntable/TestLoop3.ogg') S.repeat = 1 S.channel = 10 @@ -115,8 +115,8 @@ S.environment = 0 //for(var/mob/M in world) // if(M.loc.loc == src.loc.loc && M.music == 0) - // world << "Found the song..." - // M << S +// to_chat(world, "Found the song...") +// to_chat(M, S) // M.music = 1 var/area/A = src.loc.loc for(var/obj/machinery/party/lasermachine/L in A) @@ -125,13 +125,13 @@ while(playing == 1) for(var/mob/M in world) if(M.loc.loc == src.loc.loc && M.music == 0) - //world << "Found the song..." - M << S +// to_chat(world, "Found the song...") + to_chat(M, S) M.music = 1 else if(M.loc.loc != src.loc.loc && M.music == 1) var/sound/Soff = sound(null) Soff.channel = 10 - M << Soff + to_chat(M, Soff) M.music = 0 sleep(10) return @@ -143,7 +143,7 @@ S.channel = 10 S.wait = 1 for(var/mob/M in world) - M << S + to_chat(M, S) M.music = 0 playing = 0 var/area/A = src.loc.loc diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm index 4dc36dbd2e3..0deb0d947a3 100644 --- a/code/game/machinery/turret_control.dm +++ b/code/game/machinery/turret_control.dm @@ -65,11 +65,11 @@ /obj/machinery/turretid/proc/isLocked(mob/user) if(ailock && (isrobot(user) || isAI(user))) - user << "There seems to be a firewall preventing you from accessing this device." + to_chat(user, "There seems to be a firewall preventing you from accessing this device.") return 1 if(locked && !(isrobot(user) || isAI(user) || isobserver(user))) - user << "Access denied." + to_chat(user, "Access denied.") return 1 return 0 @@ -87,16 +87,16 @@ if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if(src.allowed(usr)) if(emagged) - user << "The turret control is unresponsive." + to_chat(user, "The turret control is unresponsive.") else locked = !locked - user << "You [ locked ? "lock" : "unlock"] the panel." + to_chat(user, "You [ locked ? "lock" : "unlock"] the panel.") return return ..() /obj/machinery/turretid/emag_act(user as mob) if(!emagged) - user << "You short out the turret controls' access analysis module." + to_chat(user, "You short out the turret controls' access analysis module.") emagged = 1 locked = 0 ailock = 0 diff --git a/code/game/machinery/turrets.dm b/code/game/machinery/turrets.dm index e4b9a290441..ef5db5f833b 100644 --- a/code/game/machinery/turrets.dm +++ b/code/game/machinery/turrets.dm @@ -184,7 +184,7 @@ cur_target = get_new_target() //get new target if(cur_target) //if it's found, proceed -// world << "[cur_target]" +// to_chat(world, "[cur_target]") if(!isPopping()) if(isDown()) popUp() @@ -336,7 +336,7 @@ if (src.health <= 0) src.die() else - M << "That object is useless to you." + to_chat(M, "That object is useless to you.") return @@ -352,7 +352,7 @@ if (src.health <= 0) src.die() else - M << "\green That object is useless to you." + to_chat(M, "\green That object is useless to you.") return @@ -362,7 +362,7 @@ return 1 if (src.locked) if (!istype(usr, /mob/living/silicon)) - usr << "Control panel is locked!" + to_chat(usr, "Control panel is locked!") return if (href_list["toggleOn"]) src.enabled = !src.enabled diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 79682ab4fd1..81799f01115 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -188,7 +188,7 @@ for(var/datum/data/vending_product/machine_content in machine) if(machine_content.amount != machine_content.max_amount) if(user) - user << "[machine_content.max_amount - machine_content.amount] of [machine_content.product_name]" + to_chat(user, "[machine_content.max_amount - machine_content.amount] of [machine_content.product_name]") machine_content.amount = machine_content.max_amount refill.charges -= to_restock total = to_restock @@ -203,7 +203,7 @@ total += restock if(restock) if(user) - user << "[restock] of [machine_content.product_name]" + to_chat(user, "[restock] of [machine_content.product_name]") if(refill.charges == 0) //due to rounding, we ran out of refill charges, exit. break return total @@ -234,7 +234,7 @@ if(istype(W, /obj/item/weapon/screwdriver) && anchored) playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.") overlays.Cut() if(panel_open) overlays += image(icon, "[initial(icon_state)]-panel") @@ -259,32 +259,32 @@ W.loc = src coin = W categories |= CAT_COIN - user << "\blue You insert the [W] into the [src]" + to_chat(user, "\blue You insert the [W] into the [src]") nanomanager.update_uis(src) return else if(istype(W, refill_canister) && refill_canister != null) if(stat & (BROKEN|NOPOWER)) - user << "It does nothing." + to_chat(user, "It does nothing.") else if(panel_open) //if the panel is open we attempt to refill the machine var/obj/item/weapon/vending_refill/canister = W if(canister.charges == 0) - user << "This [canister.name] is empty!" + to_chat(user, "This [canister.name] is empty!") else var/transfered = refill_inventory(canister,product_records,user) if(transfered) - user << "You loaded [transfered] items in \the [name]." + to_chat(user, "You loaded [transfered] items in \the [name].") else - user << "The [name] is fully stocked." + to_chat(user, "The [name] is fully stocked.") return; else - user << "You should probably unscrew the service panel first." + to_chat(user, "You should probably unscrew the service panel first.") else ..() /obj/machinery/vending/emag_act(user as mob) emagged = 1 - user << "You short out the product lock on [src]" + to_chat(user, "You short out the product lock on [src]") return /** @@ -296,7 +296,7 @@ if(currently_vending.price > cashmoney.get_total()) // This is not a status display message, since it's something the character // themselves is meant to see BEFORE putting the money in - usr << "\icon[cashmoney] That is not enough money." + to_chat(usr, "\icon[cashmoney] That is not enough money.") return 0 // Bills (banknotes) cannot really have worth different than face value, @@ -454,12 +454,12 @@ if(href_list["remove_coin"] && !istype(usr,/mob/living/silicon)) if(!coin) - usr << "There is no coin in this machine." + to_chat(usr, "There is no coin in this machine.") return usr.put_in_hands(coin) coin = null - usr << "\blue You remove the [coin] from the [src]" + to_chat(usr, "\blue You remove the [coin] from the [src]") categories &= ~CAT_COIN if (href_list["pay"]) @@ -484,11 +484,12 @@ if ((href_list["vend"]) && (src.vend_ready) && (!currently_vending)) if(issilicon(usr) && !isrobot(usr)) - usr << "The vending machine refuses to interface with you, as you are not in its target demographic!" + to_chat(usr, "The vending machine refuses to interface with you, as you are not in its target demographic!") return if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH - usr << "Access denied." //Unless emagged of course + to_chat(usr, "Access denied.")//Unless emagged of course + flick(icon_deny,src) return @@ -521,11 +522,12 @@ /obj/machinery/vending/proc/vend(datum/data/vending_product/R, mob/user) if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH - usr << "Access denied." //Unless emagged of course + to_chat(usr, "Access denied.")//Unless emagged of course + flick(src.icon_deny,src) return if(!R.amount) - user << "\red The vending machine has ran out of that product." + to_chat(user, "\red The vending machine has ran out of that product.") return src.vend_ready = 0 //One thing at a time!! src.status_message = "Vending..." @@ -534,13 +536,13 @@ if (R.category & CAT_COIN) if(!coin) - user << "\blue You need to insert a coin to get this item." + to_chat(user, "\blue You need to insert a coin to get this item.") return if(coin.string_attached) if(prob(50)) - user << "\blue You successfully pull the coin out before the [src] could swallow it." + to_chat(user, "\blue You successfully pull the coin out before the [src] could swallow it.") else - user << "\blue You weren't able to pull the coin out fast enough, the machine ate it, string and all." + to_chat(user, "\blue You weren't able to pull the coin out fast enough, the machine ate it, string and all.") coin = null qdel(coin) categories &= ~CAT_COIN @@ -569,7 +571,7 @@ /obj/machinery/vending/proc/stock(var/datum/data/vending_product/R, var/mob/user) if(src.panel_open) - user << "\blue You stock the [src] with \a [R.product_name]" + to_chat(user, "\blue You stock the [src] with \a [R.product_name]") R.amount++ src.updateUsrDialog() diff --git a/code/game/machinery/washing_machine.dm b/code/game/machinery/washing_machine.dm index 4e95938a2a1..6889cf67c42 100644 --- a/code/game/machinery/washing_machine.dm +++ b/code/game/machinery/washing_machine.dm @@ -32,7 +32,7 @@ return if( state != 4 ) - usr << "The washing machine cannot run in this state." + to_chat(usr, "The washing machine cannot run in this state.") return if( locate(/mob,contents) ) @@ -199,7 +199,7 @@ /obj/machinery/washing_machine/attackby(obj/item/weapon/W as obj, mob/user as mob, params) /*if(istype(W,/obj/item/weapon/screwdriver)) panel = !panel - user << "\blue you [panel ? "open" : "close"] the [src]'s maintenance panel"*/ + to_chat(user, "\blue you [panel ? "open" : "close"] the [src]'s maintenance panel")*/ if(istype(W,/obj/item/toy/crayon) ||istype(W,/obj/item/weapon/stamp)) if( state in list( 1, 3, 6 ) ) if(!crayon) @@ -230,46 +230,46 @@ //YES, it's hardcoded... saves a var/can_be_washed for every single clothing item. if ( istype(W,/obj/item/clothing/suit/space ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/suit/syndicatefake ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return // if ( istype(W,/obj/item/clothing/suit/powered ) ) -// user << "This item does not fit." +// to_chat(user, "This item does not fit.") // return if ( istype(W,/obj/item/clothing/suit/cyborg_suit ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/suit/bomb_suit ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/suit/armor ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/suit/armor ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/mask/gas ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/mask/cigarette ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/head/syndicatefake ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return // if ( istype(W,/obj/item/clothing/head/powered ) ) -// user << "This item does not fit." +// to_chat(user, "This item does not fit.") // return if ( istype(W,/obj/item/clothing/head/helmet ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if ( istype(W,/obj/item/clothing/gloves/furgloves ) ) - user << "This item does not fit." + to_chat(user, "This item does not fit.") return if(W.flags & NODROP) //if "can't drop" item - user << "\The [W] is stuck to your hand, you cannot put it in the washing machine!" + to_chat(user, "\The [W] is stuck to your hand, you cannot put it in the washing machine!") return if(contents.len < 5) @@ -278,9 +278,9 @@ W.loc = src state = 3 else - user << "\blue You can't put the item in right now." + to_chat(user, "\blue You can't put the item in right now.") else - user << "\blue The washing machine is full." + to_chat(user, "\blue The washing machine is full.") else ..() update_icon() @@ -302,7 +302,7 @@ crayon = null state = 1 if(5) - user << "\red The [src] is busy." + to_chat(user, "\red The [src] is busy.") if(6) state = 7 if(7) diff --git a/code/game/machinery/wishgranter.dm b/code/game/machinery/wishgranter.dm index dba30d648b0..217b1e70165 100644 --- a/code/game/machinery/wishgranter.dm +++ b/code/game/machinery/wishgranter.dm @@ -20,18 +20,18 @@ usr.set_machine(src) if(!istype(user, /mob/living/carbon/human)) - user << "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's." + to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.") return if(is_special_character(user)) - user << "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away." + to_chat(user, "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away.") return if(inuse) - user << "Someone is already communing with the Wish Granter." + to_chat(user, "Someone is already communing with the Wish Granter.") return - user << "The power of the Wish Granter have turned you into the superhero the station deserves. You are a masked vigilante, and answer to no man. Will you use your newfound strength to protect the innocent, or will you hunt the guilty?" + to_chat(user, "The power of the Wish Granter have turned you into the superhero the station deserves. You are a masked vigilante, and answer to no man. Will you use your newfound strength to protect the innocent, or will you hunt the guilty?") inuse = 1 var/wish @@ -51,7 +51,7 @@ //Remove the wishgranter or teleport it randomly on the station if(!types.len) - user << "The wishgranter slowly fades into mist..." + to_chat(user, "The wishgranter slowly fades into mist...") qdel(src) return else diff --git a/code/game/magic/Uristrunes.dm b/code/game/magic/Uristrunes.dm index 6e0abd177e0..df25e084d19 100644 --- a/code/game/magic/Uristrunes.dm +++ b/code/game/magic/Uristrunes.dm @@ -16,6 +16,7 @@ var/list/word_to_uristrune_table = null words -= w bit <<= 1 + return word_to_uristrune_table[word] diff --git a/code/game/mecha/combat/marauder.dm b/code/game/mecha/combat/marauder.dm index 09f6aad41e6..0d7676d75b7 100644 --- a/code/game/mecha/combat/marauder.dm +++ b/code/game/mecha/combat/marauder.dm @@ -150,7 +150,7 @@ src.occupant_message("Zoom mode [zoom?"en":"dis"]abled.") if(zoom) src.occupant.client.view = 12 - src.occupant << sound('sound/mecha/imag_enh.ogg',volume=50) + to_chat(src.occupant, sound('sound/mecha/imag_enh.ogg',volume=50)) else src.occupant.client.view = world.view//world.view - default mob view size return diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm index 4f53bd5a796..1967f1e6645 100644 --- a/code/game/mecha/equipment/mecha_equipment.dm +++ b/code/game/mecha/equipment/mecha_equipment.dm @@ -52,9 +52,9 @@ chassis.occupant_message("The [src] is destroyed!") chassis.log_append_to_last("[src] is destroyed.",1) if(istype(src, /obj/item/mecha_parts/mecha_equipment/weapon)) - chassis.occupant << sound('sound/mecha/weapdestr.ogg',volume=50) + to_chat(chassis.occupant, sound('sound/mecha/weapdestr.ogg',volume=50)) else - chassis.occupant << sound('sound/mecha/critdestr.ogg',volume=50) + to_chat(chassis.occupant, sound('sound/mecha/critdestr.ogg',volume=50)) chassis = null return ..() diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm index 1b0c82f42f7..98db55e0f25 100644 --- a/code/game/mecha/equipment/tools/tools.dm +++ b/code/game/mecha/equipment/tools/tools.dm @@ -545,7 +545,7 @@ return chassis.dynattackby(W,user, params) chassis.log_message("Attacked by [W]. Attacker - [user]") if(prob(chassis.deflect_chance*deflect_coeff)) - user << "\red The [W] bounces off [chassis] armor." + to_chat(user, "\red The [W] bounces off [chassis] armor.") chassis.log_append_to_last("Armor saved.") else chassis.occupant_message("[user] hits [chassis] with [W].") @@ -932,7 +932,7 @@ if(isnull(result)) user.visible_message("[user] tries to shove [weapon_name] into [src], but \the [src] rejects it.","[fuel_name] traces in target minimal. [weapon_name] cannot be used as fuel.") else if(!result) - user << "Unit is full." + to_chat(user, "Unit is full.") else user.visible_message("[user] loads [src] with \the [weapon_name].","[result] unit\s of [fuel_name] successfully loaded.") return diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm index ab9589f73e7..d95cbaff799 100644 --- a/code/game/mecha/equipment/weapons/weapons.dm +++ b/code/game/mecha/equipment/weapons/weapons.dm @@ -140,7 +140,7 @@ var/mob/living/carbon/human/H = M if(istype(H.l_ear, /obj/item/clothing/ears/earmuffs) || istype(H.r_ear, /obj/item/clothing/ears/earmuffs)) continue - M << "HONK" + to_chat(M, "HONK") M.sleeping = 0 M.stuttering = 20 M.ear_deaf = 30 diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index b77ee7b9cd8..562e30d834d 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -293,7 +293,7 @@ if(..()) return 1 if(!allowed(user) && !isobserver(user)) - user << "Access denied." + to_chat(user, "Access denied.") return 1 return interact(user) @@ -505,7 +505,7 @@ default_deconstruction_crowbar(W) return 1 else - user << "You can't load \the [name] while it's opened." + to_chat(user, "You can't load \the [name] while it's opened.") return 1 if(istype(W, /obj/item/stack)) @@ -533,10 +533,10 @@ return ..() if(being_built) - user << "\The [src] is currently processing. Please wait until completion." + to_chat(user, "\The [src] is currently processing. Please wait until completion.") return if(res_max_amount - resources[material] < MINERAL_MATERIAL_AMOUNT) //overstuffing the fabricator - user << "\The [src] [material2name(material)] storage is full." + to_chat(user, "\The [src] [material2name(material)] storage is full.") return var/obj/item/stack/sheet/stack = W var/sname = "[stack.name]" @@ -546,12 +546,12 @@ var/transfer_amount = min(stack.amount, round((res_max_amount - resources[material])/MINERAL_MATERIAL_AMOUNT,1)) resources[material] += transfer_amount * MINERAL_MATERIAL_AMOUNT stack.use(transfer_amount) - user << "You insert [transfer_amount] [sname] sheet\s into \the [src]." + to_chat(user, "You insert [transfer_amount] [sname] sheet\s into \the [src].") sleep(10) updateUsrDialog() overlays -= "fab-load-[material2name(material)]" //No matter what the overlay shall still be deleted else - user << "\The [src] cannot hold any more [sname] sheet\s." + to_chat(user, "\The [src] cannot hold any more [sname] sheet\s.") return /obj/machinery/mecha_part_fabricator/proc/material2name(var/ID) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 276ed01252b..ceeca47f72e 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -169,19 +169,19 @@ var/integrity = health/initial(health)*100 switch(integrity) if(85 to 100) - user << "It's fully intact." + to_chat(user, "It's fully intact.") if(65 to 85) - user << "It's slightly damaged." + to_chat(user, "It's slightly damaged.") if(45 to 65) - user << "It's badly damaged." + to_chat(user, "It's badly damaged.") if(25 to 45) - user << "It's heavily damaged." + to_chat(user, "It's heavily damaged.") else - user << "It's falling apart." + to_chat(user, "It's falling apart.") if(equipment && equipment.len) - user << "It's equipped with:" + to_chat(user, "It's equipped with:") for(var/obj/item/mecha_parts/mecha_equipment/ME in equipment) - user << "\icon[ME] [ME]" + to_chat(user, "\icon[ME] [ME]") return @@ -300,7 +300,7 @@ /obj/mecha/relaymove(mob/user,direction) if(user != src.occupant) //While not "realistic", this piece is player friendly. user.forceMove(get_turf(src)) - user << "You climb out from [src]" + to_chat(user, "You climb out from [src]") return 0 if(connected_port) if(world.time - last_message > 20) @@ -458,7 +458,7 @@ internal_damage |= int_dam_flag pr_internal_damage.start() log_append_to_last("Internal damage of type [int_dam_flag].",1) - occupant << sound('sound/machines/warning-buzzer.ogg',wait=0) + to_chat(occupant, sound('sound/machines/warning-buzzer.ogg',wait=0)) diag_hud_set_mechstat() return @@ -527,12 +527,12 @@ src.take_damage(15) src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) - user << "\red You slash at the armored suit!" + to_chat(user, "\red You slash at the armored suit!") visible_message("\red The [user] slashes at [src.name]'s armor!") else src.log_append_to_last("Armor saved.") playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) - user << "\green Your claws had no effect!" + to_chat(user, "\green Your claws had no effect!") src.occupant_message("\blue The [user]'s claws are stopped by the armor.") visible_message("\blue The [user] rebounds off [src.name]'s armor!") return @@ -699,14 +699,14 @@ src.take_damage(6) src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1) - user << "\red You smash at the armored suit!" + to_chat(user, "\red You smash at the armored suit!") for (var/mob/V in viewers(src)) if(V.client && !(V.blinded)) V.show_message("\red The [user] smashes against [src.name]'s armor!", 1) else src.log_append_to_last("Armor saved.") playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1) - user << "\green Your attack had no effect!" + to_chat(user, "\green Your attack had no effect!") src.occupant_message("\blue The [user]'s attack is stopped by the armor.") for (var/mob/V in viewers(src)) if(V.client && !(V.blinded)) @@ -739,7 +739,7 @@ user.changeNext_move(CLICK_CD_MELEE) user.do_attack_animation(src) if(prob(src.deflect_chance)) - user << "\red The [W] bounces off [src.name] armor." + to_chat(user, "\red The [W] bounces off [src.name] armor.") src.log_append_to_last("Armor saved.") /* for (var/mob/V in viewers(src)) @@ -761,9 +761,9 @@ if(istype(W, /obj/item/device/mmi) || istype(W, /obj/item/device/mmi/posibrain)) if(mmi_move_inside(W,user)) - user << "[src]-MMI interface initialized successfuly" + to_chat(user, "[src]-MMI interface initialized successfuly") else - user << "[src]-MMI interface initialization failed." + to_chat(user, "[src]-MMI interface initialization failed.") return if(istype(W, /obj/item/mecha_parts/mecha_equipment)) @@ -774,7 +774,7 @@ E.attach(src) user.visible_message("[user] attaches [W] to [src]", "You attach [W] to [src]") else - user << "You were unable to attach [W] to [src]" + to_chat(user, "You were unable to attach [W] to [src]") return if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if(add_req_access || maint_access) @@ -788,28 +788,28 @@ output_maintenance_dialog(id_card, user) return else - user << "\red Invalid ID: Access denied." + to_chat(user, "\red Invalid ID: Access denied.") else - user << "\red Maintenance protocols disabled by operator." + to_chat(user, "\red Maintenance protocols disabled by operator.") else if(istype(W, /obj/item/weapon/wrench)) if(state==1) state = 2 - user << "You undo the securing bolts." + to_chat(user, "You undo the securing bolts.") else if(state==2) state = 1 - user << "You tighten the securing bolts." + to_chat(user, "You tighten the securing bolts.") return else if(istype(W, /obj/item/weapon/crowbar)) if(state==2) state = 3 - user << "You open the hatch to the power unit" + to_chat(user, "You open the hatch to the power unit") else if(state==3) state=2 - user << "You close the hatch to the power unit" + to_chat(user, "You close the hatch to the power unit") else if(state==4 && pilot_is_mmi()) // Since having maint protocols available is controllable by the MMI, I see this as a consensual way to remove an MMI without destroying the mech user.visible_message("[user] begins levering out the MMI from the [src].", "You begin to lever out the MMI from the [src].") - occupant << "[user] is prying you out of the exosuit!" + to_chat(occupant, "[user] is prying you out of the exosuit!") if(do_after(user,80,target=src)) user.visible_message("[user] pries the MMI out of the [src]!", "You finish removing the MMI from the [src]!") go_out() @@ -822,35 +822,35 @@ if(CC.amount > 1) CC.use(2) clearInternalDamage(MECHA_INT_SHORT_CIRCUIT) - user << "You replace the fused wires." + to_chat(user, "You replace the fused wires.") else - user << "There's not enough wire to finish the task." + to_chat(user, "There's not enough wire to finish the task.") return else if(istype(W, /obj/item/weapon/screwdriver)) if(hasInternalDamage(MECHA_INT_TEMP_CONTROL)) clearInternalDamage(MECHA_INT_TEMP_CONTROL) - user << "You repair the damaged temperature controller." + to_chat(user, "You repair the damaged temperature controller.") else if(state==3 && src.cell) src.cell.forceMove(src.loc) src.cell = null state = 4 - user << "You unscrew and pry out the powercell." + to_chat(user, "You unscrew and pry out the powercell.") src.log_message("Powercell removed") else if(state==4 && src.cell) state=3 - user << "You screw the cell in place" + to_chat(user, "You screw the cell in place") return else if(istype(W, /obj/item/weapon/stock_parts/cell)) if(state==4) if(!src.cell) - user << "You install the powercell" + to_chat(user, "You install the powercell") user.drop_item() W.forceMove(src) src.cell = W src.log_message("Powercell installed") else - user << "There's already a powercell installed." + to_chat(user, "There's already a powercell installed.") return else if(istype(W, /obj/item/weapon/weldingtool) && user.a_intent != I_HARM) @@ -858,19 +858,19 @@ if (WT.remove_fuel(0,user)) if (hasInternalDamage(MECHA_INT_TANK_BREACH)) clearInternalDamage(MECHA_INT_TANK_BREACH) - user << "\blue You repair the damaged gas tank." + to_chat(user, "\blue You repair the damaged gas tank.") else return if(src.health\the [W] is stuck to your hand, you cannot put it in \the [src]
" + to_chat(user, "\the [W] is stuck to your hand, you cannot put it in \the [src]") return W.forceMove(src) user.visible_message("[user] attaches [W] to [src].", "You attach [W] to [src]") @@ -879,7 +879,7 @@ else if(istype(W, /obj/item/weapon/paintkit)) if(occupant) - user << "You can't customize a mech while someone is piloting it - that would be unsafe!" + to_chat(user, "You can't customize a mech while someone is piloting it - that would be unsafe!") return var/obj/item/weapon/paintkit/P = W @@ -891,7 +891,7 @@ break if(!found) - user << "That kit isn't meant for use on this class of exosuit." + to_chat(user, "That kit isn't meant for use on this class of exosuit.") return user.visible_message("[user] opens [P] and spends some quality time customising [src].") @@ -909,7 +909,7 @@ /* src.log_message("Attacked by [W]. Attacker - [user]") if(prob(src.deflect_chance)) - user << "\red The [W] bounces off [src.name] armor." + to_chat(user, "\red The [W] bounces off [src.name] armor.") src.log_append_to_last("Armor saved.") /* for (var/mob/V in viewers(src)) @@ -930,11 +930,11 @@ /obj/mecha/emag_act(user as mob) if(istype(src, /obj/mecha/working/ripley) && emagged == 0) emagged = 1 - usr << "\blue You slide the card through the [src]'s ID slot." + to_chat(usr, "\blue You slide the card through the [src]'s ID slot.") playsound(src.loc, "sparks", 100, 1) src.desc += "
\red The mech's equipment slots spark dangerously!" else - usr <<"\red The [src]'s ID slot rejects the card." + to_chat(usr, "\red The [src]'s ID slot rejects the card.") return @@ -950,10 +950,10 @@ examine(user) //Get diagnostic information! var/obj/item/mecha_parts/mecha_tracking/B = locate(/obj/item/mecha_parts/mecha_tracking) in src if(B) //Beacons give the AI more detailed mech information. - user << "Warning: Tracking Beacon detected. Enter at your own risk. Beacon Data:" - user << "[B.get_mecha_info()]" + to_chat(user, "Warning: Tracking Beacon detected. Enter at your own risk. Beacon Data:") + to_chat(user, "[B.get_mecha_info()]") //Nothing like a big, red link to make the player feel powerful! - user << "ASSUME DIRECT CONTROL?
" + to_chat(user, "ASSUME DIRECT CONTROL?
") /obj/mecha/transfer_ai(var/interaction, mob/user, var/mob/living/silicon/ai/AI, var/obj/item/device/aicard/card) if(!..()) @@ -963,14 +963,14 @@ switch(interaction) if(AI_TRANS_TO_CARD) //Upload AI from mech to AI card. if(!maint_access) //Mech must be in maint mode to allow carding. - user << "[name] must have maintenance protocols active in order to allow a transfer." + to_chat(user, "[name] must have maintenance protocols active in order to allow a transfer.") return AI = occupant if(!AI || !isAI(occupant)) //Mech does not have an AI for a pilot - user << "No AI detected in the [name] onboard computer." + to_chat(user, "No AI detected in the [name] onboard computer.") return if (AI.mind.special_role == "malfunction") //Malf AIs cannot leave mechs. Except through death. - user << "ACCESS DENIED." + to_chat(user, "ACCESS DENIED.") return AI.aiRestorePowerRoutine = 0//So the AI initially has power. AI.control_disabled = 1 @@ -980,31 +980,31 @@ AI.controlled_mech = null AI.remote_control = null icon_state = initial(icon_state)+"-open" - AI << "You have been downloaded to a mobile storage device. Wireless connection offline." - user << "Transfer successful: [AI.name] ([rand(1000,9999)].exe) removed from [name] and stored within local memory." + to_chat(AI, "You have been downloaded to a mobile storage device. Wireless connection offline.") + to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) removed from [name] and stored within local memory.") if(AI_MECH_HACK) //Called by Malf AI mob on the mech. new /obj/structure/AIcore/deactivated(AI.loc) if(occupant) //Oh, I am sorry, were you using that? - AI << "Pilot detected! Forced ejection initiated!" - occupant << "You have been forcibly ejected!" + to_chat(AI, "Pilot detected! Forced ejection initiated!") + to_chat(occupant, "You have been forcibly ejected!") go_out(1) //IT IS MINE, NOW. SUCK IT, RD! ai_enter_mech(AI, interaction) if(AI_TRANS_FROM_CARD) //Using an AI card to upload to a mech. AI = locate(/mob/living/silicon/ai) in card if(!AI) - user << "There is no AI currently installed on this device." + to_chat(user, "There is no AI currently installed on this device.") return else if(AI.stat || !AI.client) - user << "[AI.name] is currently unresponsive, and cannot be uploaded." + to_chat(user, "[AI.name] is currently unresponsive, and cannot be uploaded.") return else if(occupant || dna) //Normal AIs cannot steal mechs! - user << "Access denied. [name] is [occupant ? "currently occupied" : "secured with a DNA lock"]." + to_chat(user, "Access denied. [name] is [occupant ? "currently occupied" : "secured with a DNA lock"].") return AI.control_disabled = 0 AI.aiRadio.disabledAi = 0 - user << "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed." + to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.") ai_enter_mech(AI, interaction) //Hack and From Card interactions share some code, so leave that here for both to use. @@ -1015,15 +1015,15 @@ icon_state = initial(icon_state) playsound(src, 'sound/machines/windowdoor.ogg', 50, 1) if(!hasInternalDamage()) - occupant << sound('sound/mecha/nominal.ogg',volume=50) + to_chat(occupant, sound('sound/mecha/nominal.ogg',volume=50)) AI.cancel_camera() AI.controlled_mech = src AI.remote_control = src AI.canmove = 1 //Much easier than adding AI checks! Be sure to set this back to 0 if you decide to allow an AI to leave a mech somehow. AI.can_shunt = 0 //ONE AI ENTERS. NO AI LEAVES. - AI << "[interaction == AI_MECH_HACK ? "Takeover of [name] complete! You are now permanently loaded onto the onboard computer. Do not attempt to leave the station sector!" \ - : "You have been uploaded to a mech's onboard computer."]" - AI << "Use Middle-Mouse to activate mech functions and equipment. Click normally for AI interactions." + to_chat(AI, "[interaction == AI_MECH_HACK ? "Takeover of [name] complete! You are now permanently loaded onto the onboard computer. Do not attempt to leave the station sector!" \ + : "You have been uploaded to a mech's onboard computer."]") + to_chat(AI, "Use Middle-Mouse to activate mech functions and equipment. Click normally for AI interactions.") ///////////////////////////////////// //////// Atmospheric stuff //////// @@ -1176,7 +1176,7 @@ return src.log_message("[user] tries to move in.") if (src.occupant) - usr << "The [src.name] is already occupied!" + to_chat(usr, "The [src.name] is already occupied!") src.log_append_to_last("Permission denied.") return var/passed @@ -1187,12 +1187,12 @@ else if(src.operation_allowed(user)) passed = 1 if(!passed) - user << "Access denied." + to_chat(user, "Access denied.") src.log_append_to_last("Permission denied.") return for(var/mob/living/carbon/slime/S in range(1,user)) if(S.Victim == user) - user << "You're too busy getting your life sucked out of you." + to_chat(user, "You're too busy getting your life sucked out of you.") return visible_message("[user] starts to climb into [src.name]") @@ -1201,9 +1201,9 @@ if(!src.occupant) moved_inside(user) else if(src.occupant!=user) - user << "[src.occupant] was faster. Try better next time, loser." + to_chat(user, "[src.occupant] was faster. Try better next time, loser.") else - user << "You stop entering the exosuit." + to_chat(user, "You stop entering the exosuit.") return /obj/mecha/proc/moved_inside(var/mob/living/carbon/human/H as mob) @@ -1223,26 +1223,26 @@ dir = dir_in playsound(src, 'sound/machines/windowdoor.ogg', 50, 1) if(!hasInternalDamage()) - src.occupant << sound('sound/mecha/nominal.ogg',volume=50) + to_chat(src.occupant, sound('sound/mecha/nominal.ogg',volume=50)) return 1 else return 0 /obj/mecha/proc/mmi_move_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob) if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client) - user << "Consciousness matrix not detected." + to_chat(user, "Consciousness matrix not detected.") return 0 else if(mmi_as_oc.brainmob.stat) - user << "Beta-rhythm below acceptable level." + to_chat(user, "Beta-rhythm below acceptable level.") return 0 else if(occupant) - user << "Occupant detected." + to_chat(user, "Occupant detected.") return 0 else if(dna && dna!=mmi_as_oc.brainmob.dna.unique_enzymes) - user << "Stop it!" + to_chat(user, "Stop it!") return 0 //Added a message here since people assume their first click failed or something./N -// user << "Installing MMI, please stand by." +// to_chat(user, "Installing MMI, please stand by.") visible_message("\blue [usr] starts to insert an MMI into [src.name]") @@ -1250,21 +1250,21 @@ if(!occupant) return mmi_moved_inside(mmi_as_oc,user) else - user << "Occupant detected." + to_chat(user, "Occupant detected.") else - user << "You stop inserting the MMI." + to_chat(user, "You stop inserting the MMI.") return 0 /obj/mecha/proc/mmi_moved_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob) if(mmi_as_oc && user in range(1)) if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client) - user << "Consciousness matrix not detected." + to_chat(user, "Consciousness matrix not detected.") return 0 else if(mmi_as_oc.brainmob.stat) - user << "Beta-rhythm below acceptable level." + to_chat(user, "Beta-rhythm below acceptable level.") return 0 if(!user.unEquip(mmi_as_oc)) - user << "\the [mmi_as_oc] is stuck to your hand, you cannot put it in \the [src]" + to_chat(user, "\the [mmi_as_oc] is stuck to your hand, you cannot put it in \the [src]") return 0 var/mob/brainmob = mmi_as_oc.brainmob brainmob.reset_view(src) @@ -1284,7 +1284,7 @@ dir = dir_in src.log_message("[mmi_as_oc] moved in as pilot.") if(!hasInternalDamage()) - src.occupant << sound('sound/mecha/nominal.ogg',volume=50) + to_chat(src.occupant, sound('sound/mecha/nominal.ogg',volume=50)) return 1 else return 0 @@ -1367,7 +1367,7 @@ occupant.SetStunned(5) occupant.SetWeakened(5) - occupant << "You were blown out of the mech!" + to_chat(occupant, "You were blown out of the mech!") */ src.log_message("[mob_container] moved out.") occupant.reset_view() @@ -1643,7 +1643,7 @@ /obj/mecha/proc/occupant_message(message as text) if(message) if(src.occupant && src.occupant.client) - src.occupant << "\icon[src] [message]" + to_chat(src.occupant, "\icon[src] [message]") return /obj/mecha/proc/log_message(message as text,red=null) @@ -1755,10 +1755,10 @@ if(user) if(state==0) state = 1 - user << "The securing bolts are now exposed." + to_chat(user, "The securing bolts are now exposed.") else if(state==1) state = 0 - user << "The securing bolts are now hidden." + to_chat(user, "The securing bolts are now hidden.") output_maintenance_dialog(filter.getObj("id_card"),user) return if(href_list["set_internal_tank_valve"] && state >=1) @@ -1768,7 +1768,7 @@ var/new_pressure = input(user,"Input new output pressure","Pressure setting",internal_tank_valve) as num if(new_pressure) internal_tank_valve = new_pressure - user << "The internal pressure valve has been set to [internal_tank_valve]kPa." + to_chat(user, "The internal pressure valve has been set to [internal_tank_valve]kPa.") if(href_list["add_req_access"] && add_req_access && filter.getObj("id_card")) if(!in_range(src, usr)) return operation_req_access += filter.getNum("add_req_access") @@ -1789,7 +1789,7 @@ if(usr != src.occupant) return if(src.occupant && !iscarbon(src.occupant)) - src.occupant << "You do not have any DNA!" + to_chat(src.occupant, "You do not have any DNA!") return src.dna = src.occupant.dna.unique_enzymes src.occupant_message("You feel a prick as the needle takes your DNA sample.") diff --git a/code/game/mecha/mecha_construction_paths.dm b/code/game/mecha/mecha_construction_paths.dm index 08d0541bfb5..f6d627cc505 100644 --- a/code/game/mecha/mecha_construction_paths.dm +++ b/code/game/mecha/mecha_construction_paths.dm @@ -23,12 +23,12 @@ if(C.use(4)) playsound(holder, 'sound/items/Deconstruct.ogg', 50, 1) else - user << ("There's not enough cable to finish the task.") + to_chat(user, ("There's not enough cable to finish the task.")) return 0 else if(istype(used_atom, /obj/item/stack)) var/obj/item/stack/S = used_atom if(S.amount < 5) - user << ("There's not enough material in this stack.") + to_chat(user, ("There's not enough material in this stack.")) return 0 else S.use(5) @@ -55,12 +55,12 @@ if (C.use(4)) playsound(holder, 'sound/items/Deconstruct.ogg', 50, 1) else - user << ("There's not enough cable to finish the task.") + to_chat(user, ("There's not enough cable to finish the task.")) return 0 else if(istype(used_atom, /obj/item/stack)) var/obj/item/stack/S = used_atom if(S.amount < 5) - user << ("There's not enough material in this stack.") + to_chat(user, ("There's not enough material in this stack.")) return 0 else S.use(5) diff --git a/code/game/mecha/mecha_wreckage.dm b/code/game/mecha/mecha_wreckage.dm index 647da103a45..8da0f916425 100644 --- a/code/game/mecha/mecha_wreckage.dm +++ b/code/game/mecha/mecha_wreckage.dm @@ -43,7 +43,7 @@ qdel(src) else if (isemptylist(welder_salvage)) - user << "What's left on the [src] cannot be removed with a welder, besides the frame itself" + to_chat(user, "What's left on the [src] cannot be removed with a welder, besides the frame itself") else if(WT.remove_fuel(0,user)) var/type = prob(70)?pick(welder_salvage):null if(type) @@ -53,12 +53,12 @@ welder_salvage -= type salvage_num-- else - user << "You failed to salvage anything valuable from [src]." + to_chat(user, "You failed to salvage anything valuable from [src].") else - user << "\blue You need more welding fuel to complete this task." + to_chat(user, "\blue You need more welding fuel to complete this task.") else if(istype(W, /obj/item/weapon/wirecutters)) if(salvage_num <= 0) - user << "You don't see anything that can be cut with [W]." + to_chat(user, "You don't see anything that can be cut with [W].") return else if(!isemptylist(wirecutters_salvage)) var/type = prob(70)?pick(wirecutters_salvage):null @@ -67,7 +67,7 @@ user.visible_message("[user] cuts [N] from [src].", "You cut [N] from [src].") salvage_num-- else - user << "You failed to salvage anything valuable from [src]." + to_chat(user, "You failed to salvage anything valuable from [src].") else if(istype(W, /obj/item/weapon/crowbar)) if(!isemptylist(crowbar_salvage)) var/obj/S = pick(crowbar_salvage) @@ -76,7 +76,7 @@ crowbar_salvage -= S user.visible_message("[user] pries [S] from [src].", "You pry [S] from [src].") else - user << "You don't see anything that can be pried with [W]." + to_chat(user, "You don't see anything that can be pried with [W].") else ..() return diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index f1191a0ae8c..7616df4c119 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -36,9 +36,9 @@ if (isslime(M) || isAI(M)) if(M == usr) - M << "You are unable to buckle yourself to the [src]!" + to_chat(M, "You are unable to buckle yourself to the [src]!") else - usr << "You are unable to buckle [M] to the [src]!" + to_chat(usr, "You are unable to buckle [M] to the [src]!") return 0 M.buckled = src diff --git a/code/game/objects/effects/aliens.dm b/code/game/objects/effects/aliens.dm index a7677daa62c..320ec09a2ee 100644 --- a/code/game/objects/effects/aliens.dm +++ b/code/game/objects/effects/aliens.dm @@ -318,19 +318,19 @@ if(user.get_int_organ(/obj/item/organ/internal/xenos/plasmavessel)) switch(status) if(BURST) - user << "You clear the hatched egg." + to_chat(user, "You clear the hatched egg.") playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) qdel(src) return if(GROWING) - user << "The child is not developed yet." + to_chat(user, "The child is not developed yet.") return if(GROWN) - user << "You retrieve the child." + to_chat(user, "You retrieve the child.") Burst(0) return else - user << "It feels slimy." + to_chat(user, "It feels slimy.") user.changeNext_move(CLICK_CD_MELEE) diff --git a/code/game/objects/effects/anomalies.dm b/code/game/objects/effects/anomalies.dm index 29b1098ca83..2b044b588e1 100644 --- a/code/game/objects/effects/anomalies.dm +++ b/code/game/objects/effects/anomalies.dm @@ -34,7 +34,7 @@ /obj/effect/anomaly/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/device/analyzer)) - user << "Analyzing... [src]'s unstable field is fluctuating along frequency [aSignal.code]:[format_frequency(aSignal.frequency)]." + to_chat(user, "Analyzing... [src]'s unstable field is fluctuating along frequency [aSignal.code]:[format_frequency(aSignal.frequency)].") /////////////////////// diff --git a/code/game/objects/effects/datacore-effect.dm b/code/game/objects/effects/datacore-effect.dm index f50be441414..ce970c31916 100644 --- a/code/game/objects/effects/datacore-effect.dm +++ b/code/game/objects/effects/datacore-effect.dm @@ -50,7 +50,7 @@ isactive[name] = active ? "Active" : "Inactive" else isactive[name] = t.fields["p_stat"] - //world << "[name]: [rank]" +// to_chat(world, "[name]: [rank]") //cael - to prevent multiple appearances of a player/job combination, add a continue after each line var/department = 0 if(real_rank in command_positions) diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm index 2fd1fbdcd34..b11ad6bf633 100644 --- a/code/game/objects/effects/decals/Cleanable/humans.dm +++ b/code/game/objects/effects/decals/Cleanable/humans.dm @@ -92,7 +92,7 @@ var/global/list/image/splatter_cache=list() return var/taken = rand(1,amount) amount -= taken - user << "You get some of \the [src] on your hands." + to_chat(user, "You get some of \the [src] on your hands.") if (!user.blood_DNA) user.blood_DNA = list() user.blood_DNA |= blood_DNA.Copy() @@ -139,7 +139,7 @@ var/global/list/image/splatter_cache=list() /obj/effect/decal/cleanable/blood/writing/examine(mob/user) ..(user) - user << "It reads: \"[message]\"" + to_chat(user, "It reads: \"[message]\"") /obj/effect/decal/cleanable/blood/gibs name = "gibs" diff --git a/code/game/objects/effects/decals/Cleanable/tracks.dm b/code/game/objects/effects/decals/Cleanable/tracks.dm index 48e865c78a3..6e8c591399d 100644 --- a/code/game/objects/effects/decals/Cleanable/tracks.dm +++ b/code/game/objects/effects/decals/Cleanable/tracks.dm @@ -78,7 +78,7 @@ var/global/list/image/fluidtrack_cache=list() // Process 4 bits for(var/bi=0;bi<4;bi++) - b=1<There isn't enough [src] to scoop up!" + to_chat(user, "There isn't enough [src] to scoop up!") return if(W.reagents.total_volume >= W.reagents.maximum_volume) - user << "[W] is full!" + to_chat(user, "[W] is full!") return - user << "You scoop the [src] into [W]!" + to_chat(user, "You scoop the [src] into [W]!") reagents.trans_to(W, reagents.total_volume) if(!reagents.total_volume && !noclear) //scooped up all of it qdel(src) @@ -29,7 +29,7 @@ else src.reagents.chem_temp += 15 src.reagents.handle_reactions() - user << "You heat [src] with [W]!" + to_chat(user, "You heat [src] with [W]!") /obj/effect/decal/cleanable/ex_act() if(reagents) diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm index 1e62b6a5a9e..6658838a5d3 100644 --- a/code/game/objects/effects/decals/contraband.dm +++ b/code/game/objects/effects/decals/contraband.dm @@ -59,7 +59,7 @@ break if(check) - user << "The wall is far too cluttered to place a poster!" + to_chat(user, "The wall is far too cluttered to place a poster!") return resulting_poster.loc = W //Looks like it's uncluttered enough. Place the poster @@ -310,10 +310,10 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/wirecutters)) playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1) if(ruined) - user << "You remove the remnants of the poster." + to_chat(user, "You remove the remnants of the poster.") qdel(src) else - user << "You carefully remove the poster from the wall." + to_chat(user, "You carefully remove the poster from the wall.") roll_and_drop(user.loc) return @@ -354,14 +354,15 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params) var/stuff_on_wall = 0 for(var/obj/O in user.loc.contents) //Let's see if it already has a poster on it or too much stuff if(istype(O,/obj/structure/sign)) - user << "The wall is far too cluttered to place a poster!" + to_chat(user, "The wall is far too cluttered to place a poster!") return stuff_on_wall++ if(stuff_on_wall >= 4) - user << "The wall is far too cluttered to place a poster!" + to_chat(user, "The wall is far too cluttered to place a poster!") return - user << "You start placing the poster on the wall..." //Looks like it's uncluttered enough. Place the poster. + to_chat(user, "You start placing the poster on the wall...")//Looks like it's uncluttered enough. Place the poster. + //declaring D because otherwise if P gets 'deconstructed' we lose our reference to P.resulting_poster var/obj/structure/sign/poster/D = P.resulting_poster @@ -382,7 +383,7 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params) D.pixel_x = -32 D.pixel_y = 0 else - user << "You cannot reach the wall from here!" + to_chat(user, "You cannot reach the wall from here!") return flick("poster_being_set",D) @@ -395,7 +396,7 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params) if(!D) return if(istype(src,/turf/simulated/wall) && user && user.loc == temp_loc) //Let's check if everything is still there - user << "You place the poster!" + to_chat(user, "You place the poster!") else D.roll_and_drop(temp_loc) return diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index 0cd489c308d..744edcd7711 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -1092,7 +1092,7 @@ steam.start() -- spawns the effect user.visible_message("[user] smashes through \the [src].", "You smash through \the [src].") qdel(src) else - user << "You hit the metal foam but bounce off it." + to_chat(user, "You hit the metal foam but bounce off it.") /obj/structure/foamedmetal/attackby(var/obj/item/I, var/mob/user, params) user.changeNext_move(CLICK_CD_MELEE) @@ -1109,7 +1109,7 @@ steam.start() -- spawns the effect user.visible_message("[user] smashes through the foamed metal with \the [I].", "You smash through the foamed metal with \the [I].") qdel(src) else - user << "You hit the metal foam to no effect." + to_chat(user, "You hit the metal foam to no effect.") /obj/structure/foamedmetal/attack_animal(mob/living/simple_animal/M) M.do_attack_animation(src) @@ -1156,10 +1156,10 @@ steam.start() -- spawns the effect s.start() for(var/mob/M in viewers(5, location)) - M << "\red The solution violently explodes." + to_chat(M, "\red The solution violently explodes.") for(var/mob/M in viewers(1, location)) if (prob (50 * amount)) - M << "\red The explosion knocks you down." + to_chat(M, "\red The explosion knocks you down.") M.Weaken(rand(1,5)) return else @@ -1182,7 +1182,7 @@ steam.start() -- spawns the effect flash += (round(amount/4) * flashing_factor) for(var/mob/M in viewers(8, location)) - M << "\red The solution violently explodes." + to_chat(M, "\red The solution violently explodes.") explosion(location, devastation, heavy, light, flash) diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm index f170aeb7dce..a9e165666fc 100644 --- a/code/game/objects/effects/gibs.dm +++ b/code/game/objects/effects/gibs.dm @@ -25,7 +25,7 @@ proc/Gib(atom/location, var/list/viruses = list(), var/datum/dna/MobDNA = null) if(gibtypes.len != gibamounts.len || gibamounts.len != gibdirections.len) - world << "\red Gib list length mismatch!" + to_chat(world, "\red Gib list length mismatch!") return var/obj/effect/decal/cleanable/blood/gibs/gib = null diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm index 6eb84ce50ca..6e54e69cf92 100644 --- a/code/game/objects/effects/mines.dm +++ b/code/game/objects/effects/mines.dm @@ -21,7 +21,7 @@ if(istype(M, /mob/living/carbon/human)) for(var/mob/O in viewers(world.view, src.loc)) - O << "[M] triggered the \icon[src] [src]" + to_chat(O, "[M] triggered the \icon[src] [src]") triggered = 1 call(src,triggerproc)(M) diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index 52175c17e13..f87e97f9cb0 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -65,7 +65,7 @@ return 1 else if(istype(mover, /mob/living)) if(prob(50)) - mover << "You get stuck in \the [src] for a moment." + to_chat(mover, "You get stuck in \the [src] for a moment.") return 0 else if(istype(mover, /obj/item/projectile)) return prob(30) @@ -207,7 +207,7 @@ var/mob/C = pick(candidates) S.key = C.key if(master_commander) - S << "You are a spider who is loyal to [master_commander], obey [master_commander]'s every order and assist them in completing their goals at any cost." + to_chat(S, "You are a spider who is loyal to [master_commander], obey [master_commander]'s every order and assist them in completing their goals at any cost.") qdel(src) /obj/effect/decal/cleanable/spiderling_remains diff --git a/code/game/objects/empulse.dm b/code/game/objects/empulse.dm index 414874f6ea2..ce7efc4fee3 100644 --- a/code/game/objects/empulse.dm +++ b/code/game/objects/empulse.dm @@ -16,7 +16,6 @@ for(var/mob/M in range(heavy_range, epicenter)) M << 'sound/effects/EMPulse.ogg' - for(var/atom/T in range(light_range, epicenter)) var/distance = get_dist(epicenter, T) if(distance < 0) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 42a14a43255..8c4bf753108 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -162,7 +162,7 @@ else msg += "No extractable materials detected.
" msg += "*--------*" - user << msg + to_chat(user, msg) /obj/item/attack_hand(mob/user as mob) @@ -173,10 +173,10 @@ if (user.hand) temp = H.organs_by_name["l_hand"] if(!temp) - user << "You try to use your hand, but it's missing!" + to_chat(user, "You try to use your hand, but it's missing!") return 0 if(temp && !temp.is_usable()) - user << "You try to move your [temp.name], but cannot!" + to_chat(user, "You try to move your [temp.name], but cannot!") return 0 if (istype(src.loc, /obj/item/weapon/storage)) @@ -207,7 +207,7 @@ if(!A.has_fine_manipulation) if(src in A.contents) // To stop Aliens having items stuck in their pockets A.unEquip(src) - user << "Your claws aren't capable of such fine manipulation." + to_chat(user, "Your claws aren't capable of such fine manipulation.") return if (istype(src.loc, /obj/item/weapon/storage)) @@ -234,7 +234,7 @@ if(!A.has_fine_manipulation) if(src in A.contents) // To stop Aliens having items stuck in their pockets A.unEquip(src) - user << "Your claws aren't capable of such fine manipulation." + to_chat(user, "Your claws aren't capable of such fine manipulation.") return attack_hand(A) @@ -268,11 +268,11 @@ success = 1 S.handle_item_insertion(I, 1) //The 1 stops the "You put the [src] into [S]" insertion message from being displayed. if(success && !failure) - user << "You put everything in [S]." + to_chat(user, "You put everything in [S].") else if(success) - user << "You put some things in [S]." + to_chat(user, "You put some things in [S].") else - user << "You fail to pick anything up with [S]." + to_chat(user, "You fail to pick anything up with [S].") else if(S.can_be_inserted(src)) S.handle_item_insertion(src) @@ -343,22 +343,22 @@ if(!usr.canmove || usr.stat || usr.restrained() || !Adjacent(usr)) return if((!istype(usr, /mob/living/carbon)) || (istype(usr, /mob/living/carbon/brain)))//Is humanoid, and is not a brain - usr << "\red You can't pick things up!" + to_chat(usr, "\red You can't pick things up!") return if( usr.stat || usr.restrained() )//Is not asleep/dead and is not restrained - usr << "\red You can't pick things up!" + to_chat(usr, "\red You can't pick things up!") return if(src.anchored) //Object isn't anchored - usr << "\red You can't pick that up!" + to_chat(usr, "\red You can't pick that up!") return if(!usr.hand && usr.r_hand) //Right hand is not full - usr << "\red Your right hand is full." + to_chat(usr, "\red Your right hand is full.") return if(usr.hand && usr.l_hand) //Left hand is not full - usr << "\red Your left hand is full." + to_chat(usr, "\red Your left hand is full.") return if(!istype(src.loc, /turf)) //Object is on a turf - usr << "\red You can't pick that up!" + to_chat(usr, "\red You can't pick that up!") return //All checks are done, time to pick it up! usr.UnarmedAttack(src) @@ -392,11 +392,11 @@ (H.glasses && H.glasses.flags & GLASSESCOVERSEYES) \ )) // you can't stab someone in the eyes wearing a mask! - user << "You're going to need to remove that mask/helmet/glasses first!" + to_chat(user, "You're going to need to remove that mask/helmet/glasses first!") return if(istype(M, /mob/living/carbon/alien) || istype(M, /mob/living/carbon/slime))//Aliens don't have eyes./N slimes also don't have eyes! - user << "You cannot locate any eyes on this creature!" + to_chat(user, "You cannot locate any eyes on this creature!") return if(!iscarbon(user)) @@ -430,17 +430,17 @@ if(eyes.damage >= eyes.min_bruised_damage) if(M.stat != 2) if(!(eyes.status & ORGAN_ROBOT) || !(eyes.status & ORGAN_ASSISTED)) //robot eyes bleeding might be a bit silly - M << "Your eyes start to bleed profusely!" + to_chat(M, "Your eyes start to bleed profusely!") if(prob(50)) if(M.stat != 2) - M << "You drop what you're holding and clutch at your eyes!" + to_chat(M, "You drop what you're holding and clutch at your eyes!") M.drop_item() M.eye_blurry += 10 M.Paralyse(1) M.Weaken(2) if (eyes.damage >= eyes.min_broken_damage) if(M.stat != 2) - M << "You go blind!" + to_chat(M, "You go blind!") var/obj/item/organ/external/affecting = H.get_organ("head") if(affecting.take_damage(7)) H.UpdateDamageIcon() @@ -516,7 +516,7 @@ /obj/item/proc/wash(mob/user, atom/source) if(flags & ABSTRACT) //Abstract items like grabs won't wash. No-drop items will though because it's still technically an item in your hand. return - user << "You start washing [src]..." + to_chat(user, "You start washing [src]...") if(!do_after(user, 40, target = source)) return clean_blood() diff --git a/code/game/objects/items/ashtray.dm b/code/game/objects/items/ashtray.dm index 766b5d55163..0e977fc5ead 100644 --- a/code/game/objects/items/ashtray.dm +++ b/code/game/objects/items/ashtray.dm @@ -19,7 +19,7 @@ return if (istype(W,/obj/item/weapon/cigbutt) || istype(W,/obj/item/clothing/mask/cigarette) || istype(W, /obj/item/weapon/match)) if (contents.len >= max_butts) - user << "This ashtray is full." + to_chat(user, "This ashtray is full.") return user.unEquip(W) W.loc = src @@ -33,7 +33,7 @@ cig.transfer_fingerprints_to(butt) qdel(cig) else if (cig.lit == 0) - user << "You place [cig] in [src] without even smoking it. Why would you do that?" + to_chat(user, "You place [cig] in [src] without even smoking it. Why would you do that?") src.visible_message("[user] places [W] in [src].") user.update_inv_l_hand() @@ -47,7 +47,7 @@ desc = empty_desc + " It's half-filled." else health = max(0,health - W.force) - user << "You hit [src] with [W]." + to_chat(user, "You hit [src] with [W].") if (health < 1) die() return diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm index 99dbe5b366b..6dd269176b3 100644 --- a/code/game/objects/items/blueprints.dm +++ b/code/game/objects/items/blueprints.dm @@ -132,26 +132,26 @@ if(!istype(res,/list)) switch(res) if(ROOM_ERR_SPACE) - usr << "The new area must be completely airtight." + to_chat(usr, "The new area must be completely airtight.") return if(ROOM_ERR_TOOLARGE) - usr << "The new area is too large." + to_chat(usr, "The new area is too large.") return else - usr << "Error! Please notify administration." + to_chat(usr, "Error! Please notify administration.") return var/list/turf/turfs = res var/str = trim(stripped_input(usr,"New area name:", "Blueprint Editing", "", MAX_NAME_LEN)) if(!str || !length(str)) //cancel return if(length(str) > 50) - usr << "The given name is too long. The area remains undefined." + to_chat(usr, "The given name is too long. The area remains undefined.") return var/area/A = new A.name = str //var/ma //ma = A.master ? "[A.master]" : "(null)" - //world << "DEBUG: create_area:
A.name=[A.name]
A.tag=[A.tag]
A.master=[ma]" +// to_chat(world, "DEBUG: create_area:
A.name=[A.name]
A.tag=[A.tag]
A.master=[ma]") A.power_equip = 0 A.power_light = 0 A.power_environ = 0 @@ -173,11 +173,11 @@ if(!str || !length(str) || str==prevname) //cancel return if(length(str) > 50) - usr << "The given name is too long. The area's name is unchanged." + to_chat(usr, "The given name is too long. The area's name is unchanged.") return set_area_machinery_title(A,str,prevname) A.name = str - usr << "You rename the '[prevname]' to '[str]'." + to_chat(usr, "You rename the '[prevname]' to '[str]'.") interact() return 1 diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm index 3c36ea9dfe8..108dfd28de8 100644 --- a/code/game/objects/items/bodybag.dm +++ b/code/game/objects/items/bodybag.dm @@ -57,7 +57,7 @@ //..() //Doesn't need to run the parent. Since when can fucking bodybags be welded shut? -Agouri return else if(istype(W, /obj/item/weapon/wirecutters)) - user << "You cut the tag off the bodybag" + to_chat(user, "You cut the tag off the bodybag") src.name = "body bag" src.overlays.Cut() return @@ -89,7 +89,7 @@ // Make it possible to escape from bodybags in morgues and crematoriums if(loc && (isturf(loc) || istype(loc, /obj/structure/morgue) || istype(loc, /obj/structure/crematorium))) if(!open()) - user << "It won't budge!" + to_chat(user, "It won't budge!") /obj/item/bodybag/cryobag name = "stasis bag" @@ -126,14 +126,14 @@ MouseDrop(over_object, src_location, over_location) if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src)))) if(!ishuman(usr)) return - usr << "\red You can't fold that up anymore.." + to_chat(usr, "\red You can't fold that up anymore..") ..() attackby(W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda)) if(src.allowed(user)) src.locked = !src.locked - user << "The controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]") else - user << "\red Access denied." + to_chat(user, "\red Access denied.") return \ No newline at end of file diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 564e22af0a4..6da176f8ba8 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -85,26 +85,26 @@ temp = "letter" else if(graffiti.Find(drawtype)) temp = "graffiti" - user << "You start drawing a [temp] on the [target.name]." + to_chat(user, "You start drawing a [temp] on the [target.name].") if(instant || do_after(user, 50, target = target)) new /obj/effect/decal/cleanable/crayon(target,colour,drawtype,temp) - user << "You finish drawing [temp]." + to_chat(user, "You finish drawing [temp].") if(uses) uses-- if(!uses) - user << "You used up your [src.name]!" + to_chat(user, "You used up your [src.name]!") qdel(src) return /obj/item/toy/crayon/attack(mob/M as mob, mob/user as mob) var/huffable = istype(src,/obj/item/toy/crayon/spraycan) if(M == user) - user << "You take a [huffable ? "huff" : "bite"] of the [src.name]. Delicious!" + to_chat(user, "You take a [huffable ? "huff" : "bite"] of the [src.name]. Delicious!") user.nutrition += 5 if(uses) uses -= 5 if(uses <= 0) - user << "There is no more of [src.name] left!" + to_chat(user, "There is no more of [src.name] left!") qdel(src) else ..() @@ -214,7 +214,7 @@ var/choice = input(user,"Spraycan options") in list("Toggle Cap","Change Drawing","Change Color") switch(choice) if("Toggle Cap") - user << "You [capped ? "Remove" : "Replace"] the cap of the [src]" + to_chat(user, "You [capped ? "Remove" : "Replace"] the cap of the [src]") capped = capped ? 0 : 1 icon_state = "spraycan[capped ? "_cap" : ""]" update_icon() diff --git a/code/game/objects/items/dehy_carp.dm b/code/game/objects/items/dehy_carp.dm index f3d20babcf5..991d04fbd63 100644 --- a/code/game/objects/items/dehy_carp.dm +++ b/code/game/objects/items/dehy_carp.dm @@ -12,7 +12,7 @@ /obj/item/toy/carpplushie/dehy_carp/attack_self(mob/user as mob) src.add_fingerprint(user) // Anyone can add their fingerprints to it with this if(owned) - user << "[src] stares up at you with friendly eyes." + to_chat(user, "[src] stares up at you with friendly eyes.") owner = user owned = 0 return ..() @@ -21,7 +21,7 @@ /obj/item/toy/carpplushie/dehy_carp/afterattack(obj/O, mob/user,proximity) if(!proximity) return if(istype(O,/obj/structure/sink)) - user << "You place [src] under a stream of water..." + to_chat(user, "You place [src] under a stream of water...") user.drop_item() loc = get_turf(O) return Swell() diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index 159365f0b79..1bf7edac749 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -83,7 +83,7 @@ msg_admin_attack("[key_name_admin(user)] wiped [key_name_admin(AI)] with \the [src].") flush = 1 AI.suiciding = 1 - AI << "Your core files are being wiped!" + to_chat(AI, "Your core files are being wiped!") while (AI && AI.stat != DEAD) AI.adjustOxyLoss(2) AI.updatehealth() @@ -92,13 +92,13 @@ if (href_list["radio"]) AI.aiRadio.disabledAi = text2num(href_list["radio"]) - AI << "Your Subspace Transceiver has been [AI.aiRadio.disabledAi ? "disabled" : "enabled"]!" - user << "You [AI.aiRadio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver." + to_chat(AI, "Your Subspace Transceiver has been [AI.aiRadio.disabledAi ? "disabled" : "enabled"]!") + to_chat(user, "You [AI.aiRadio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver.") if (href_list["wireless"]) AI.control_disabled = text2num(href_list["wireless"]) - AI << "Your wireless interface has been [AI.control_disabled ? "disabled" : "enabled"]!" - user << "You [AI.control_disabled ? "disable" : "enable"] the AI's wireless interface." + to_chat(AI, "Your wireless interface has been [AI.control_disabled ? "disabled" : "enabled"]!") + to_chat(user, "You [AI.control_disabled ? "disable" : "enable"] the AI's wireless interface.") update_icon() return 1 diff --git a/code/game/objects/items/devices/autopsy.dm b/code/game/objects/items/devices/autopsy.dm index 54056c0942e..25e4d12614d 100644 --- a/code/game/objects/items/devices/autopsy.dm +++ b/code/game/objects/items/devices/autopsy.dm @@ -79,7 +79,7 @@ set src in view(usr, 1) set name = "Print Data" if(usr.stat || !(istype(usr,/mob/living/carbon/human))) - usr << "No." + to_chat(usr, "No.") return var/scan_data = "" @@ -186,16 +186,16 @@ src.wdata = list() src.chemtraces = list() src.timeofdeath = null - user << "\red A new patient has been registered.. Purging data for previous patient." + to_chat(user, "\red A new patient has been registered.. Purging data for previous patient.") src.timeofdeath = M.timeofdeath var/obj/item/organ/external/S = M.get_organ(user.zone_sel.selecting) if(!S) - usr << "You can't scan this body part." + to_chat(usr, "You can't scan this body part.") return if(!S.open) - usr << "You have to cut the limb open first!" + to_chat(usr, "You have to cut the limb open first!") return for(var/mob/O in viewers(M)) O.show_message("\red [user.name] scans the wounds on [M.name]'s [S.name] with \the [src.name]", 1) diff --git a/code/game/objects/items/devices/camera_bug.dm b/code/game/objects/items/devices/camera_bug.dm index dc47c3fc146..003110f76cd 100644 --- a/code/game/objects/items/devices/camera_bug.dm +++ b/code/game/objects/items/devices/camera_bug.dm @@ -62,7 +62,7 @@ var/turf/T = get_turf(user.loc) if(T.z != current.z || !current.can_use()) - user << "[src] has lost the signal." + to_chat(user, "[src] has lost the signal.") current = null user.reset_view(null) user.unset_machine() @@ -222,11 +222,11 @@ var/obj/machinery/camera/C = locate(href_list["view"]) if(istype(C)) if(!C.can_use()) - usr << "Something's wrong with that camera. You can't get a feed." + to_chat(usr, "Something's wrong with that camera. You can't get a feed.") return var/turf/T = get_turf(loc) if(!T || C.z != T.z) - usr << "You can't get a signal." + to_chat(usr, "You can't get a signal.") return current = C spawn(6) diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 9edc811958f..d8a708d86b7 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -31,7 +31,7 @@ if(!active_dummy) if(istype(target,/obj/item) && !istype(target, /obj/item/weapon/disk/nuclear)) playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6) - user << "Scanned [target]." + to_chat(user, "Scanned [target].") saved_item = target.type saved_icon = target.icon saved_icon_state = target.icon_state @@ -45,7 +45,7 @@ playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) qdel(active_dummy) active_dummy = null - usr << "You deactivate \the [src]." + to_chat(usr, "You deactivate \the [src].") var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src)) T.icon = 'icons/effects/effects.dmi' flick("emppulse",T) @@ -58,7 +58,7 @@ var/obj/effect/dummy/chameleon/C = new/obj/effect/dummy/chameleon(usr.loc) C.activate(O, usr, saved_icon, saved_icon_state, saved_overlays, saved_underlays, src) qdel(O) - usr << "You activate \the [src]." + to_chat(usr, "You activate \the [src].") var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src)) T.icon = 'icons/effects/effects.dmi' flick("emppulse",T) @@ -107,24 +107,24 @@ /obj/effect/dummy/chameleon/attackby() for(var/mob/M in src) - M << "Your chameleon-projector deactivates." + to_chat(M, "Your chameleon-projector deactivates.") master.disrupt() /obj/effect/dummy/chameleon/attack_hand() for(var/mob/M in src) - M << "Your chameleon-projector deactivates." + to_chat(M, "Your chameleon-projector deactivates.") master.disrupt() /obj/effect/dummy/chameleon/ex_act(var/severity) //no longer bomb-proof for(var/mob/M in src) - M << "Your chameleon-projector deactivates." + to_chat(M, "Your chameleon-projector deactivates.") spawn() M.ex_act(severity) master.disrupt() /obj/effect/dummy/chameleon/bullet_act() for(var/mob/M in src) - M << "Your chameleon-projector deactivates." + to_chat(M, "Your chameleon-projector deactivates.") ..() master.disrupt() diff --git a/code/game/objects/items/devices/debugger.dm b/code/game/objects/items/devices/debugger.dm index 2b8eb60500f..4b96ba904dd 100644 --- a/code/game/objects/items/devices/debugger.dm +++ b/code/game/objects/items/devices/debugger.dm @@ -24,21 +24,21 @@ if(istype(O, /obj/machinery/power/apc)) var/obj/machinery/power/apc/A = O if(A.emagged || A.malfhack) - user << "\red There is a software error with the device." + to_chat(user, "\red There is a software error with the device.") else - user << "\blue The device's software appears to be fine." + to_chat(user, "\blue The device's software appears to be fine.") return 1 if(istype(O, /obj/machinery/door)) var/obj/machinery/door/D = O if(D.operating == -1) - user << "\red There is a software error with the device." + to_chat(user, "\red There is a software error with the device.") else - user << "\blue The device's software appears to be fine." + to_chat(user, "\blue The device's software appears to be fine.") return 1 else if(istype(O, /obj/machinery)) var/obj/machinery/A = O if(A.emagged) - user << "\red There is a software error with the device." + to_chat(user, "\red There is a software error with the device.") else - user << "\blue The device's software appears to be fine." + to_chat(user, "\blue The device's software appears to be fine.") return 1 \ No newline at end of file diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm index f40b057d46f..92613e6af3e 100644 --- a/code/game/objects/items/devices/flash.dm +++ b/code/game/objects/items/devices/flash.dm @@ -27,14 +27,14 @@ /obj/item/device/flash/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/weapon/screwdriver)) if(battery_panel) - user << "You close the battery compartment on the [src]." + to_chat(user, "You close the battery compartment on the [src].") battery_panel = 0 else - user << "You open the battery compartment on the [src]." + to_chat(user, "You open the battery compartment on the [src].") battery_panel = 1 if(battery_panel && !overcharged) if(istype(W, /obj/item/weapon/stock_parts/cell)) - user << "You jam the cell into battery compartment on the [src]." + to_chat(user, "You jam the cell into battery compartment on the [src].") qdel(W) overcharged = 1 overlays += "overcharge" @@ -85,15 +85,15 @@ terrible_conversion_proc(M, user) M.Stun(1) visible_message("[user] blinds [M] with the flash!") - user << "You blind [M] with the flash!" - M << "[user] blinds you with the flash!" + to_chat(user, "You blind [M] with the flash!") + to_chat(M, "[user] blinds you with the flash!") if(M.weakeyes) M.Stun(2) M.visible_message("[M] gasps and shields their eyes!", "You gasp and shields your eyes!") else visible_message("[user] fails to blind [M] with the flash!") - user << "You fail to blind [M] with the flash!" - M << "[user] fails to blind you with the flash!" + to_chat(user, "You fail to blind [M] with the flash!") + to_chat(M, "[user] fails to blind you with the flash!") else if(M.flash_eyes()) M.confused += power @@ -160,11 +160,11 @@ resisted = 1 if(resisted) - user << "This mind seems resistant to the [src.name]!" + to_chat(user, "This mind seems resistant to the [src.name]!") else - user << "They must be conscious before you can convert them!" + to_chat(user, "They must be conscious before you can convert them!") else - user << "This mind is so vacant that it is not susceptible to influence!" + to_chat(user, "This mind is so vacant that it is not susceptible to influence!") /obj/item/device/flash/cyborg diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index caa673882a1..5ff8f7dff33 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -31,7 +31,8 @@ /obj/item/device/flashlight/attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]." //To prevent some lighting anomalities. + to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities. + return 0 on = !on update_brightness(user) @@ -46,12 +47,12 @@ return ..() //just hit them in the head if(!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey") //don't have dexterity - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return var/mob/living/carbon/human/H = M //mob has protective eyewear if(istype(M, /mob/living/carbon/human) && ((H.head && H.head.flags & HEADCOVERSEYES) || (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) || (H.glasses && H.glasses.flags & GLASSESCOVERSEYES))) - user << "You're going to need to remove that [(H.head && H.head.flags & HEADCOVERSEYES) ? "helmet" : (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) ? "mask": "glasses"] first." + to_chat(user, "You're going to need to remove that [(H.head && H.head.flags & HEADCOVERSEYES) ? "helmet" : (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) ? "mask": "glasses"] first.") return if(M == user) //they're using it on themselves @@ -68,12 +69,12 @@ if(istype(M, /mob/living/carbon/human)) //robots and aliens are unaffected if(M.stat == DEAD || M.sdisabilities & BLIND) //mob is dead or fully blind - user << "[M] pupils does not react to the light!" + to_chat(user, "[M] pupils does not react to the light!") else if(XRAY in M.mutations) //mob has X-RAY vision - user << "[M] pupils give an eerie glow!" + to_chat(user, "[M] pupils give an eerie glow!") else //they're okay! if(M.flash_eyes(visual = 1)) - user << "[M]'s pupils narrow." + to_chat(user, "[M]'s pupils narrow.") else return ..() @@ -192,7 +193,7 @@ obj/item/device/flashlight/lamp/bananalamp // Usual checks if(!fuel) - user << "It's out of fuel." + to_chat(user, "It's out of fuel.") return if(on) return @@ -273,8 +274,8 @@ obj/item/device/flashlight/lamp/bananalamp if(ismob(A)) var/mob/M = A add_logs(M, user, "attacked", object="EMP-light") - user << "\The [src] now has [emp_cur_charges] charge\s." + to_chat(user, "\The [src] now has [emp_cur_charges] charge\s.") A.emp_act(1) else - user << "\The [src] needs time to recharge!" + to_chat(user, "\The [src] needs time to recharge!") return \ No newline at end of file diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index d03d2b98887..48e477cc258 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -50,13 +50,13 @@ user.drop_item() W.loc = src diode = W - user << "You install a [diode.name] in [src]." + to_chat(user, "You install a [diode.name] in [src].") else - user << "[src] already has a cell." + to_chat(user, "[src] already has a cell.") else if(istype(W, /obj/item/weapon/screwdriver)) if(diode) - user << "You remove the [diode.name] from the [src]." + to_chat(user, "You remove the [diode.name] from the [src].") diode.loc = get_turf(src.loc) diode = null return @@ -72,17 +72,17 @@ if( !(user in (viewers(7,target))) ) return if (!diode) - user << "You point [src] at [target], but nothing happens!" + to_chat(user, "You point [src] at [target], but nothing happens!") return if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return add_fingerprint(user) //nothing happens if the battery is drained if(recharge_locked) - user << "You point [src] at [target], but it's still charging." + to_chat(user, "You point [src] at [target], but it's still charging.") return var/outmsg @@ -115,7 +115,7 @@ if(prob(effectchance * diode.rating)) S.flash_eyes(affect_silicon = 1) S.Weaken(rand(5,10)) - S << "Your sensors were overloaded by a laser!" + to_chat(S, "Your sensors were overloaded by a laser!") outmsg = "You overload [S] by shining [src] at their sensors." S.attack_log += text("\[[time_stamp()]\] Has had a laser pointer shone in their eyes by [user.name] ([user.ckey])") @@ -154,9 +154,9 @@ I.pixel_y = target.pixel_y + rand(-5,5) if(outmsg) - user << outmsg + to_chat(user, outmsg) else - user << "You point [src] at [target]." + to_chat(user, "You point [src] at [target].") energy -= 1 if(energy <= max_energy) @@ -164,7 +164,7 @@ recharging = 1 processing_objects.Add(src) if(energy <= 0) - user << "You've overused the battery of [src], now it needs time to recharge!" + to_chat(user, "You've overused the battery of [src], now it needs time to recharge!") recharge_locked = 1 flick_overlay(I, showto, 10) diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm index c87f4c7ff24..9dec685efb8 100644 --- a/code/game/objects/items/devices/lightreplacer.dm +++ b/code/game/objects/items/devices/lightreplacer.dm @@ -68,7 +68,7 @@ /obj/item/device/lightreplacer/examine(mob/user) if(..(user, 2)) - user << "It has [uses] lights remaining." + to_chat(user, "It has [uses] lights remaining.") /obj/item/device/lightreplacer/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/stack/sheet/glass)) @@ -76,14 +76,14 @@ if(G.amount - decrement >= 0 && uses < max_uses) var/remaining = max(G.amount - decrement, 0) if(!remaining && !(G.amount - decrement) == 0) - user << "There isn't enough glass." + to_chat(user, "There isn't enough glass.") return G.amount = remaining if(!G.amount) user.drop_item() qdel(G) AddUses(increment) - user << "You insert a piece of glass into the [src.name]. You have [uses] lights remaining." + to_chat(user, "You insert a piece of glass into the [src.name]. You have [uses] lights remaining.") return if(istype(W, /obj/item/weapon/light)) @@ -91,12 +91,12 @@ if(L.status == 0) // LIGHT OKAY if(uses < max_uses) AddUses(1) - user << "You insert the [L.name] into the [src.name]. You have [uses] lights remaining." + to_chat(user, "You insert the [L.name] into the [src.name]. You have [uses] lights remaining.") user.drop_item() qdel(L) return else - user << "You need a working light." + to_chat(user, "You need a working light.") return /obj/item/device/lightreplacer/emag_act(user as mob) @@ -109,10 +109,10 @@ var/mob/living/silicon/robot/R = user if(R.emagged) src.Emag() - usr << "You shortcircuit the [src]." + to_chat(usr, "You shortcircuit the [src].") return */ - usr << "It has [uses] lights remaining." + to_chat(usr, "It has [uses] lights remaining.") /obj/item/device/lightreplacer/update_icon() icon_state = "lightreplacer[emagged]" @@ -139,7 +139,7 @@ if(target.status != LIGHT_OK) if(CanUse(U)) if(!Use(U)) return - U << "You replace the [target.fitting] with the [src]." + to_chat(U, "You replace the [target.fitting] with the [src].") if(target.status != LIGHT_EMPTY) @@ -173,10 +173,10 @@ return else - U << failmsg + to_chat(U, failmsg) return else - U << "There is a working [target.fitting] already inserted." + to_chat(U, "There is a working [target.fitting] already inserted.") return /obj/item/device/lightreplacer/proc/Emag() diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm index 9e39f99b119..7028153dff2 100644 --- a/code/game/objects/items/devices/megaphone.dm +++ b/code/game/objects/items/devices/megaphone.dm @@ -14,22 +14,22 @@ /obj/item/device/megaphone/attack_self(mob/living/user as mob) if (user.client) if(user.client.prefs.muted & MUTE_IC) - src << "\red You cannot speak in IC (muted)." + to_chat(src, "\red You cannot speak in IC (muted).") return if(!ishuman(user)) - user << "\red You don't know how to use this!" + to_chat(user, "\red You don't know how to use this!") return if(user.silent) - user << "You find yourself unable to speak at all." + to_chat(user, "You find yourself unable to speak at all.") return if(ishuman(user)) var/mob/living/carbon/human/H = user if(H && H.mind) if(H.mind.miming) - user << "Your vow of silence prevents you from speaking." + to_chat(user, "Your vow of silence prevents you from speaking.") return if(spamcheck) - user << "\red \The [src] needs to recharge!" + to_chat(user, "\red \The [src] needs to recharge!") return var/message = input(user, "Shout a message:", "Megaphone") as text|null @@ -45,7 +45,7 @@ saymsg(user, pick(insultmsg)) insults-- else - user << "\red *BZZZZzzzzzt*" + to_chat(user, "\red *BZZZZzzzzzt*") else saymsg(user, message) @@ -61,6 +61,6 @@ /obj/item/device/megaphone/emag_act(user as mob) if(!emagged) - user << "\red You overload \the [src]'s voice synthesizer." + to_chat(user, "\red You overload \the [src]'s voice synthesizer.") emagged = 1 insults = rand(1, 3)//to prevent dickflooding diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm index e32bdf764cd..7c1d4d6d7f2 100644 --- a/code/game/objects/items/devices/modkit.dm +++ b/code/game/objects/items/devices/modkit.dm @@ -22,7 +22,7 @@ return //it shouldn't be null, okay? if(!parts) - user << "This kit has no parts for this modification left." + to_chat(user, "This kit has no parts for this modification left.") user.unEquip(src) qdel(src) return @@ -34,17 +34,17 @@ var/obj/item/clothing/I = O if (!istype(I) || !allowed) - user << "[src] is unable to modify that." + to_chat(user, "[src] is unable to modify that.") return var/excluding = ("exclude" in I.species_restricted) var/in_list = (target_species in I.species_restricted) if (excluding ^ in_list) - user << "[I] is already modified." + to_chat(user, "[I] is already modified.") return if(!isturf(O.loc)) - user << "[O] must be safely placed on the ground for modification." + to_chat(user, "[O] must be safely placed on the ground for modification.") return playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1) @@ -64,7 +64,7 @@ /obj/item/device/modkit/examine(mob/user) ..(user) - user << "It looks as though it modifies hardsuits to fit [target_species] users." + to_chat(user, "It looks as though it modifies hardsuits to fit [target_species] users.") /obj/item/device/modkit/tajaran name = "Tajaran hardsuit modification kit" diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm index 8f916059010..2dd138265e7 100644 --- a/code/game/objects/items/devices/paicard.dm +++ b/code/game/objects/items/devices/paicard.dm @@ -243,17 +243,17 @@ return var/mob/M = usr if(!istype(M, /mob/living/carbon)) - usr << "You don't have any DNA, or your DNA is incompatible with this device." + to_chat(usr, "You don't have any DNA, or your DNA is incompatible with this device.") else var/datum/dna/dna = usr.dna pai.master = M.real_name pai.master_dna = dna.unique_enzymes - pai << "

You have been bound to a new master.

" + to_chat(pai, "

You have been bound to a new master.

") if(href_list["request"]) var/delta = (world.time / 10) - last_request if(request_cooldown > delta) var/cooldown_time = round(request_cooldown - ((world.time / 10) - last_request), 1) - usr << "\red The request system is currently offline. Please wait another [cooldown_time] seconds." + to_chat(usr, "\red The request system is currently offline. Please wait another [cooldown_time] seconds.") return last_request = world.time / 10 src.looking_for_personality = 1 @@ -262,10 +262,10 @@ var/confirm = input("Are you CERTAIN you wish to delete the current personality? This action cannot be undone.", "Personality Wipe") in list("Yes", "No") if(confirm == "Yes") for(var/mob/M in src) - M << "

You feel yourself slipping away from reality.

" - M << "

Byte by byte you lose your sense of self.

" - M << "

Your mental faculties leave you.

" - M << "
oblivion...
" + to_chat(M, "

You feel yourself slipping away from reality.

") + to_chat(M, "

Byte by byte you lose your sense of self.

") + to_chat(M, "

Your mental faculties leave you.

") + to_chat(M, "
oblivion...
") var/mob/living/silicon/pai/P = M if(istype(P)) if(P.resting || P.canmove) @@ -283,9 +283,9 @@ var/newlaws = sanitize(copytext(input("Enter any additional directives you would like your pAI personality to follow. Note that these directives will not override the personality's allegiance to its imprinted master. Conflicting directives will be ignored.", "pAI Directive Configuration", pai.pai_laws) as message,1,MAX_MESSAGE_LEN)) if(newlaws) pai.pai_laws = newlaws - pai << "Your supplemental directives have been updated. Your new directives are:" - pai << "Prime Directive:
[pai.pai_law0]" - pai << "Supplemental Directives:
[pai.pai_laws]" + to_chat(pai, "Your supplemental directives have been updated. Your new directives are:") + to_chat(pai, "Prime Directive:
[pai.pai_law0]") + to_chat(pai, "Supplemental Directives:
[pai.pai_laws]") attack_self(usr) // WIRE_SIGNAL = 1 diff --git a/code/game/objects/items/devices/pipe_painter.dm b/code/game/objects/items/devices/pipe_painter.dm index 47e88049b65..d663ead8906 100644 --- a/code/game/objects/items/devices/pipe_painter.dm +++ b/code/game/objects/items/devices/pipe_painter.dm @@ -20,7 +20,7 @@ var/turf/T = P.loc if (P.level < 2 && T.level==1 && isturf(T) && T.intact) - user << "You must remove the plating first." + to_chat(user, "You must remove the plating first.") return P.change_color(pipe_colors[mode]) @@ -30,4 +30,4 @@ /obj/item/device/pipe_painter/examine(mob/user) ..(user) - user << "It is in [mode] mode." \ No newline at end of file + to_chat(user, "It is in [mode] mode.") diff --git a/code/game/objects/items/devices/pizza_bomb.dm b/code/game/objects/items/devices/pizza_bomb.dm index ae2a698cb35..984c98730f4 100644 --- a/code/game/objects/items/devices/pizza_bomb.dm +++ b/code/game/objects/items/devices/pizza_bomb.dm @@ -13,7 +13,7 @@ /obj/item/device/pizza_bomb/attack_self(mob/user) if(disarmed) - user << "\The [src] is disarmed." + to_chat(user, "\The [src] is disarmed.") return if(!timer_set) name = "pizza bomb" @@ -29,7 +29,7 @@ return timer = Clamp(timer, 10, 100) icon_state = "pizzabox1" - user << "You set the timer to [timer / 10] before activating the payload and closing \the [src]." + to_chat(user, "You set the timer to [timer / 10] before activating the payload and closing \the [src].") message_admins("[key_name_admin(usr)] has set a timer on a pizza bomb to [timer/10] seconds at (JMP).") log_game("[key_name(usr)] has set the timer on a pizza bomb to [timer/10] seconds ([loc.x],[loc.y],[loc.z]).") armer = usr @@ -41,7 +41,7 @@ desc = "OH GOD THAT'S NOT A PIZZA" icon_state = "pizzabox_bomb" audible_message("\icon[src] *beep* *beep*") - user << "That's no pizza! That's a bomb!" + to_chat(user, "That's no pizza! That's a bomb!") message_admins("[key_name_admin(usr)] has triggered a pizza bomb armed by [armer] at (JMP).") log_game("[key_name(usr)] has triggered a pizza bomb armed by [armer] ([loc.x],[loc.y],[loc.z]).") primed = 1 @@ -59,7 +59,7 @@ /obj/item/device/pizza_bomb/attackby(var/obj/item/I, var/mob/user, params) if(istype(I, /obj/item/weapon/wirecutters) && primed) - user << "Oh God, what wire do you cut?!" + to_chat(user, "Oh God, what wire do you cut?!") var/chosen_wire = input(user, "OH GOD OH GOD", "WHAT WIRE?!") in wires if(!in_range(src, usr) || issilicon(usr) || !usr.canmove || usr.restrained()) return @@ -68,7 +68,7 @@ sleep(5) if(chosen_wire == correct_wire) src.audible_message("\icon[src] \The [src] suddenly stops beeping and seems lifeless.") - user << "You did it!" + to_chat(user, "You did it!") icon_state = "pizzabox_bomb_[correct_wire]" name = "pizza bomb" desc = "A devious contraption, made of a small explosive payload hooked up to pressure-sensitive wires. It's disarmed." @@ -76,12 +76,12 @@ primed = 0 return else - user << "WRONG WIRE!" + to_chat(user, "WRONG WIRE!") go_boom() return if(istype(I, /obj/item/weapon/wirecutters) && disarmed) if(!in_range(user, src)) - user << "You can't see the box well enough to cut the wires out." + to_chat(user, "You can't see the box well enough to cut the wires out.") return user.visible_message("[user] starts removing the payload and wires from \the [src].") if(do_after(user, 40, target = src)) diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index c9b6a6d7563..8f6f60bd11b 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -36,7 +36,7 @@ if(isturf(T) && !T.intact) attached = locate() in T if(!attached) - user << "No exposed cable here to attach to." + to_chat(user, "No exposed cable here to attach to.") return else anchored = 1 @@ -46,7 +46,7 @@ log_game("Power sink activated by [key_name(user)] at ([x],[y],[z])") return else - user << "Device must be placed over an exposed cable to attach to it." + to_chat(user, "Device must be placed over an exposed cable to attach to it.") return else if (mode == 2) diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index 36de16c95fa..af68ee8eeda 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -21,7 +21,7 @@ if(!emagged) emagged = 1 syndicate = 1 - user << "\blue The This beacon now only be locked on to by emagged teleporters!" + to_chat(user, "\blue The This beacon now only be locked on to by emagged teleporters!") /obj/item/device/radio/beacon/hear_talk() return @@ -58,7 +58,7 @@ /obj/item/device/radio/beacon/syndicate/attack_self(mob/user as mob) if(user) - user << "\blue Locked In" + to_chat(user, "\blue Locked In") new /obj/machinery/power/singularity_beacon/syndicate( user.loc ) playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) qdel(src) @@ -71,7 +71,7 @@ /obj/item/device/radio/beacon/syndicate/bomb/attack_self(mob/user as mob) if(user) - user << "\blue Locked In" + to_chat(user, "\blue Locked In") new /obj/machinery/syndicatebomb( user.loc ) playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) qdel(src) diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm index 72546f5e15b..f0181104bbc 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -14,7 +14,7 @@ /obj/item/device/radio/electropack/attack_hand(mob/user as mob) if(src == user.back) - user << "You need help taking this off!" + to_chat(user, "You need help taking this off!") return 0 . = ..() @@ -32,13 +32,13 @@ ..() if(istype(W, /obj/item/clothing/head/helmet)) if(!b_stat) - user << "[src] is not ready to be attached!" + to_chat(user, "[src] is not ready to be attached!") return var/obj/item/assembly/shock_kit/A = new /obj/item/assembly/shock_kit( user ) A.icon = 'icons/obj/assemblies.dmi' if(!user.unEquip(W)) - user << "\the [W] is stuck to your hand, you cannot attach it to \the [src]!" + to_chat(user, "\the [W] is stuck to your hand, you cannot attach it to \the [src]!") return W.loc = A W.master = A @@ -86,7 +86,7 @@ sleep(50) if(M) M.moved_recently = 0 - M << "You feel a sharp shock!" + to_chat(M, "You feel a sharp shock!") var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(3, 1, M) s.start() diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index e1c1994556e..57e1e035aa8 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -42,8 +42,8 @@ if(!(..(user, 1) && radio_desc)) return - user << "The following channels are available:" - user << radio_desc + to_chat(user, "The following channels are available:") + to_chat(user, radio_desc) /obj/item/device/radio/headset/handle_message_mode(mob/living/M as mob, message, channel) if (channel == "special") @@ -321,13 +321,13 @@ keyslot2 = null recalculateChannels() - user << "You pop out the encryption keys in the headset!" + to_chat(user, "You pop out the encryption keys in the headset!") else - user << "This headset doesn't have any encryption keys! How useless..." + to_chat(user, "This headset doesn't have any encryption keys! How useless...") if(istype(W, /obj/item/device/encryptionkey/)) if(keyslot1 && keyslot2) - user << "The headset can't hold another key!" + to_chat(user, "The headset can't hold another key!") return if(!keyslot1) diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm index 987d2475245..fba22decc42 100644 --- a/code/game/objects/items/devices/radio/intercom.dm +++ b/code/game/objects/items/devices/radio/intercom.dm @@ -136,7 +136,7 @@ switch(buildstage) if(3) if(iswirecutter(W) && b_stat && wires.IsAllCut()) - user << "You cut out the intercoms wiring and disconnect its electronics." + to_chat(user, "You cut out the intercoms wiring and disconnect its electronics.") playsound(get_turf(src), 'sound/items/Wirecutter.ogg', 50, 1) if(do_after(user, 10, target = src)) new /obj/item/stack/cable_coil(get_turf(src),5) @@ -155,7 +155,7 @@ on = 1 b_stat = 0 buildstage = 3 - user << "You secure the electronics!" + to_chat(user, "You secure the electronics!") update_icon() processing_objects.Add(src) for(var/i, i<= 5, i++) @@ -165,19 +165,19 @@ if(iscoil(W)) var/obj/item/stack/cable_coil/coil = W if(coil.amount < 5) - user << "You need more cable for this!" + to_chat(user, "You need more cable for this!") return if(do_after(user, 10, target = src)) coil.use(5) - user << "You wire \the [src]!" + to_chat(user, "You wire \the [src]!") buildstage = 2 return 1 if(iscrowbar(W)) - user << "You begin removing the electronics..." + to_chat(user, "You begin removing the electronics...") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 10, target = src)) new /obj/item/weapon/intercom_electronics(get_turf(src)) - user << "The circuitboard pops out!" + to_chat(user, "The circuitboard pops out!") buildstage = 0 return 1 if(0) @@ -185,17 +185,17 @@ playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 10, target = src)) qdel(W) - user << "You insert \the [W] into \the [src]!" + to_chat(user, "You insert \the [W] into \the [src]!") buildstage = 1 return 1 if(iswelder(W)) var/obj/item/weapon/weldingtool/WT=W playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1) if(!WT.remove_fuel(3, user)) - user << "You're out of welding fuel." + to_chat(user, "You're out of welding fuel.") return 1 if(do_after(user, 10, target = src)) - user << "You cut the intercom frame from the wall!" + to_chat(user, "You cut the intercom frame from the wall!") new /obj/item/mounted/frame/intercom(get_turf(src)) qdel(src) return 1 diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 168f448ba4d..d2fe7d2b319 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -238,7 +238,7 @@ var/global/list/default_medbay_channels = list( var/datum/radio_frequency/connection = null if(channel && channels && channels.len > 0) if (channel == "department") - //world << "DEBUG: channel=\"[channel]\" switching to \"[channels[1]]\"" +// to_chat(world, "DEBUG: channel=\"[channel]\" switching to \"[channels[1]]\"") channel = channels[1] connection = secure_radio_connections[channel] else @@ -637,14 +637,14 @@ var/global/list/default_medbay_channels = list( keyslot = null recalculateChannels() - user << "You pop out the encryption key in the radio!" + to_chat(user, "You pop out the encryption key in the radio!") else - user << "This radio doesn't have any encryption keys!" + to_chat(user, "This radio doesn't have any encryption keys!") if(istype(W, /obj/item/device/encryptionkey/)) if(keyslot) - user << "The radio can't hold another key!" + to_chat(user, "The radio can't hold another key!") return if(!keyslot) @@ -697,9 +697,9 @@ var/global/list/default_medbay_channels = list( if(enable_subspace_transmission != subspace_transmission) subspace_transmission = !subspace_transmission if(subspace_transmission) - usr << "Subspace Transmission is enabled." + to_chat(usr, "Subspace Transmission is enabled.") else - usr << "Subspace Transmission is disabled." + to_chat(usr, "Subspace Transmission is disabled.") if(subspace_transmission == 0)//Simple as fuck, clears the channel list to prevent talking/listening over them if subspace transmission is disabled channels = list() @@ -712,10 +712,10 @@ var/global/list/default_medbay_channels = list( shut_up = !shut_up if(shut_up) canhear_range = 0 - usr << "Loudspeaker disabled." + to_chat(usr, "Loudspeaker disabled.") else canhear_range = 3 - usr << "Loudspeaker enabled." + to_chat(usr, "Loudspeaker enabled.") . = 1 diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 0a8842921ec..7138a4515be 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -128,7 +128,7 @@ REAGENT SCANNER /obj/item/device/healthanalyzer/attack(mob/living/M as mob, mob/living/user as mob) if (( (CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50)) - user << text("\red You try to analyze the floor's vitals!") + to_chat(user, text("\red You try to analyze the floor's vitals!")) for(var/mob/O in viewers(M, null)) O.show_message(text("\red [user] has analyzed the floor's vitals!"), 1) user.show_message(text("\blue Analyzing Results for The floor:\n\t Overall Status: Healthy"), 1) @@ -189,7 +189,7 @@ REAGENT SCANNER chemscan(user, M) for(var/datum/disease/D in M.viruses) if(!(D.visibility_flags & HIDDEN_SCANNER)) - user << "Warning: [D.form] detected\nName: [D.name].\nType: [D.spread_text].\nStage: [D.stage]/[D.max_stages].\nPossible Cure: [D.cure_text]" + to_chat(user, "Warning: [D.form] detected\nName: [D.name].\nType: [D.spread_text].\nStage: [D.stage]/[D.max_stages].\nPossible Cure: [D.cure_text]") if(M.getStaminaLoss()) user.show_message("Subject appears to be suffering from fatigue.") if (M.getCloneLoss()) @@ -257,16 +257,16 @@ REAGENT SCANNER mode = !mode switch (mode) if(1) - usr << "The scanner now shows specific limb damage." + to_chat(usr, "The scanner now shows specific limb damage.") if(0) - usr << "The scanner no longer shows limb damage." + to_chat(usr, "The scanner no longer shows limb damage.") /obj/item/device/healthanalyzer/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/device/healthupgrade)) if(upgraded) - user << "You have already installed an upgraded in the [src]." + to_chat(user, "You have already installed an upgraded in the [src].") else - user << "You install the upgrade in the [src]." + to_chat(user, "You install the upgrade in the [src].") overlays += "advanced" playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) upgraded = 1 @@ -384,17 +384,17 @@ REAGENT SCANNER if (user.stat) return if (crit_fail) - user << "This device has critically failed and is no longer functional!" + to_chat(user, "This device has critically failed and is no longer functional!") return if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return if(reagents.total_volume) var/list/blood_traces = list() for(var/datum/reagent/R in reagents.reagent_list) if(R.id != "blood") reagents.clear_reagents() - user << "The sample was contaminated! Please insert another sample." + to_chat(user, "The sample was contaminated! Please insert another sample.") return else blood_traces = params2list(R.data["trace_chem"]) @@ -414,7 +414,7 @@ REAGENT SCANNER return else recent_fail = 1 - user << "[dat]" + to_chat(user, "[dat]") reagents.clear_reagents() return @@ -444,12 +444,12 @@ REAGENT SCANNER if (user.stat) return if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return if(!istype(O)) return if (crit_fail) - user << "This device has critically failed and is no longer functional!" + to_chat(user, "This device has critically failed and is no longer functional!") return if(!isnull(O.reagents)) @@ -467,11 +467,11 @@ REAGENT SCANNER else recent_fail = 1 if(dat) - user << "Chemicals found: [dat]" + to_chat(user, "Chemicals found: [dat]") else - user << "No active chemical agents found in [O]." + to_chat(user, "No active chemical agents found in [O].") else - user << "No significant chemical agents found in [O]." + to_chat(user, "No significant chemical agents found in [O].") return diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm index 7b56b34090a..ef79d5c2a35 100644 --- a/code/game/objects/items/devices/taperecorder.dm +++ b/code/game/objects/items/devices/taperecorder.dm @@ -22,7 +22,7 @@ /obj/item/device/taperecorder/examine(mob/user) if(..(user, 1)) - user << "The wire panel is [open_panel ? "opened" : "closed"]." + to_chat(user, "The wire panel is [open_panel ? "opened" : "closed"].") /obj/item/device/taperecorder/attackby(obj/item/I, mob/user) @@ -30,12 +30,12 @@ user.drop_item() I.loc = src mytape = I - user << "You insert [I] into [src]." + to_chat(user, "You insert [I] into [src].") update_icon() /obj/item/device/taperecorder/proc/eject(mob/user) if(mytape) - user << "You remove [mytape] from [src]." + to_chat(user, "You remove [mytape] from [src].") stop() user.put_in_hands(mytape) mytape = null @@ -113,7 +113,7 @@ return if(mytape.used_capacity < mytape.max_capacity) - usr << "Recording started." + to_chat(usr, "Recording started.") recording = 1 update_icon() mytape.timestamp += mytape.used_capacity @@ -129,7 +129,7 @@ recording = 0 update_icon() else - usr << "The tape is full." + to_chat(usr, "The tape is full.") /obj/item/device/taperecorder/verb/stop() @@ -143,7 +143,7 @@ recording = 0 mytape.timestamp += mytape.used_capacity mytape.storedinfo += "\[[time2text(mytape.used_capacity * 10,"mm:ss")]\] Recording stopped." - usr << "Recording stopped." + to_chat(usr, "Recording stopped.") return else if(playing) playing = 0 @@ -167,7 +167,7 @@ playing = 1 update_icon() - usr << "Playing started." + to_chat(usr, "Playing started.") var/used = mytape.used_capacity //to stop runtimes when you eject the tape var/max = mytape.max_capacity for(var/i = 1, used < max, sleep(10 * playsleepseconds)) @@ -215,12 +215,12 @@ if(!mytape) return if(!canprint) - usr << "The recorder can't print that fast!" + to_chat(usr, "The recorder can't print that fast!") return if(recording || playing) return - usr << "Transcript printed." + to_chat(usr, "Transcript printed.") playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1) var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(get_turf(src)) var/t1 = "Transcript:

" @@ -257,7 +257,7 @@ /obj/item/device/tape/attack_self(mob/user) if(!ruined) - user << "You pull out all the tape!" + to_chat(user, "You pull out all the tape!") ruin() @@ -273,9 +273,9 @@ /obj/item/device/tape/attackby(obj/item/I, mob/user) if(ruined && istype(I, /obj/item/weapon/screwdriver)) - user << "You start winding the tape back in." + to_chat(user, "You start winding the tape back in.") if(do_after(user, 120, target = src)) - user << "You wound the tape back in!" + to_chat(user, "You wound the tape back in!") fix() diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 2b613ca2d5f..2a1bc41970b 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -33,7 +33,7 @@ effective or pretty fucking useless. /obj/item/device/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0) if(!user) return if(times_used >= max_uses) - user << "\red The mind batterer has been burnt out!" + to_chat(user, "\red The mind batterer has been burnt out!") return user.attack_log += text("\[[time_stamp()]\] Used [src] to knock down people in the area.") @@ -45,16 +45,16 @@ effective or pretty fucking useless. M.Weaken(rand(10,20)) if(prob(25)) M.Stun(rand(5,10)) - M << "\red You feel a tremendous, paralyzing wave flood your mind." + to_chat(M, "\red You feel a tremendous, paralyzing wave flood your mind.") if(!iscarbon(user)) M.LAssailant = null else M.LAssailant = user else - M << "\red You feel a sudden, electric jolt travel through your head." + to_chat(M, "\red You feel a sudden, electric jolt travel through your head.") playsound(src.loc, 'sound/misc/interference.ogg', 50, 1) - user << "\blue You trigger [src]." + to_chat(user, "\blue You trigger [src].") times_used += 1 if(times_used >= max_uses) icon_state = "battererburnt" @@ -103,7 +103,7 @@ effective or pretty fucking useless. M.apply_effect(round(intensity/1.5), PARALYZE) M.apply_effect(intensity*10, IRRADIATE) else - user << "The radioactive microlaser is still recharging." + to_chat(user, "The radioactive microlaser is still recharging.") /obj/item/device/rad_laser/proc/handle_cooldown(cooldown) spawn(cooldown) diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm index 2b256298835..9e4d83592b0 100644 --- a/code/game/objects/items/devices/transfer_valve.dm +++ b/code/game/objects/items/devices/transfer_valve.dm @@ -18,19 +18,19 @@ /obj/item/device/transfer_valve/attackby(obj/item/item, mob/user, params) if(istype(item, /obj/item/weapon/tank)) if(tank_one && tank_two) - user << "There are already two tanks attached, remove one first." + to_chat(user, "There are already two tanks attached, remove one first.") return if(!tank_one) tank_one = item user.drop_item() item.loc = src - user << "You attach the tank to the transfer valve." + to_chat(user, "You attach the tank to the transfer valve.") else if(!tank_two) tank_two = item user.drop_item() item.loc = src - user << "You attach the tank to the transfer valve." + to_chat(user, "You attach the tank to the transfer valve.") update_icon() nanomanager.update_uis(src) // update all UIs attached to src @@ -38,15 +38,15 @@ else if(isassembly(item)) var/obj/item/device/assembly/A = item if(A.secured) - user << "The device is secured." + to_chat(user, "The device is secured.") return if(attached_device) - user << "There is already a device attached to the valve, remove it first." + to_chat(user, "There is already a device attached to the valve, remove it first.") return user.remove_from_mob(item) attached_device = A A.loc = src - user << "You attach the [item] to the valve controls and secure it." + to_chat(user, "You attach the [item] to the valve controls and secure it.") A.holder = src A.toggle_secure() //this calls update_icon(), which calls update_icon() on the holder (i.e. the bomb). diff --git a/code/game/objects/items/devices/uplinks.dm b/code/game/objects/items/devices/uplinks.dm index 47efe52d21f..bd747555cc6 100644 --- a/code/game/objects/items/devices/uplinks.dm +++ b/code/game/objects/items/devices/uplinks.dm @@ -291,9 +291,9 @@ var/list/world_uplinks = list() if(!S.used && !S.checking) hidden_uplink.uses += S.TC_cost qdel(S) - user << "Teleporter refunded." + to_chat(user, "Teleporter refunded.") else - user << "This teleporter is already used, or is currently being used." + to_chat(user, "This teleporter is already used, or is currently being used.") // PRESET UPLINKS // A collection of preset uplinks. diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index bfe90bf709d..28b6b774705 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -26,6 +26,6 @@ /obj/item/device/hailer/emag_act(user as mob) if(!emagged) - user << "\red You overload \the [src]'s voice synthesizer." + to_chat(user, "\red You overload \the [src]'s voice synthesizer.") emagged = 1 diff --git a/code/game/objects/items/mountable_frames/apc_frame.dm b/code/game/objects/items/mountable_frames/apc_frame.dm index 5e092638707..fb543df2b8e 100644 --- a/code/game/objects/items/mountable_frames/apc_frame.dm +++ b/code/game/objects/items/mountable_frames/apc_frame.dm @@ -10,16 +10,16 @@ var/turf/turf_loc = get_turf(user) var/area/area_loc = turf_loc.loc if (area_loc.get_apc()) - user << "This area already has an APC." + to_chat(user, "This area already has an APC.") return //only one APC per area for(var/obj/machinery/power/terminal/T in turf_loc) if (T.master) - user << "There is another network terminal here." + to_chat(user, "There is another network terminal here.") return else var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(turf_loc) C.amount = 10 - user << "You cut the cables and disassemble the unused power terminal." + to_chat(user, "You cut the cables and disassemble the unused power terminal.") qdel(T) return 1 return diff --git a/code/game/objects/items/mountable_frames/frames.dm b/code/game/objects/items/mountable_frames/frames.dm index 90560e03bcd..ff8c1b8b593 100644 --- a/code/game/objects/items/mountable_frames/frames.dm +++ b/code/game/objects/items/mountable_frames/frames.dm @@ -17,11 +17,11 @@ var/turf/turf_loc = get_turf(user) if (src.mount_reqs.Find("simfloor") && !istype(turf_loc, /turf/simulated/floor)) - user << "[src] cannot be placed on this spot." + to_chat(user, "[src] cannot be placed on this spot.") return if (src.mount_reqs.Find("nospace")) var/area/my_area = turf_loc.loc if(!istype(my_area) || (my_area.requires_power == 0 || istype(my_area,/area/space))) - user << "[src] cannot be placed in this area." + to_chat(user, "[src] cannot be placed in this area.") return return 1 diff --git a/code/game/objects/items/mountable_frames/lights.dm b/code/game/objects/items/mountable_frames/lights.dm index c1710d842a4..b12c22186e2 100644 --- a/code/game/objects/items/mountable_frames/lights.dm +++ b/code/game/objects/items/mountable_frames/lights.dm @@ -7,7 +7,7 @@ mount_reqs = list("simfloor") /obj/item/mounted/frame/light_fixture/do_build(turf/on_wall, mob/user) - user << "You begin attaching [src] to \the [on_wall]." + to_chat(user, "You begin attaching [src] to \the [on_wall].") playsound(get_turf(src), 'sound/machines/click.ogg', 75, 1) var/constrdir = user.dir var/constrloc = get_turf(user) diff --git a/code/game/objects/items/mountable_frames/mountables.dm b/code/game/objects/items/mountable_frames/mountables.dm index e280b8e0cc3..5e9811ee3d4 100644 --- a/code/game/objects/items/mountable_frames/mountables.dm +++ b/code/game/objects/items/mountable_frames/mountables.dm @@ -21,11 +21,11 @@ if (proximity_flag != 1) //if we aren't next to the wall return if (!( get_dir(on_wall,user) in cardinal)) - user << "You need to be standing next to a wall to place \the [src]." + to_chat(user, "You need to be standing next to a wall to place \the [src].") return if(gotwallitem(get_turf(user), get_dir(on_wall,user))) - user << "There's already an item on this wall!" + to_chat(user, "There's already an item on this wall!") return return 1 diff --git a/code/game/objects/items/mountable_frames/newscaster_frame.dm b/code/game/objects/items/mountable_frames/newscaster_frame.dm index dade4dcb61b..7e06805c3dc 100644 --- a/code/game/objects/items/mountable_frames/newscaster_frame.dm +++ b/code/game/objects/items/mountable_frames/newscaster_frame.dm @@ -11,14 +11,14 @@ var/turf/loc = get_turf(usr) var/area/A = loc.loc if (!istype(loc, /turf/simulated/floor)) - usr << "Newscaster cannot be placed on this spot." + to_chat(usr, "Newscaster cannot be placed on this spot.") return if (A.requires_power == 0 || A.name == "Space") - usr << "Newscaster cannot be placed in this area." + to_chat(usr, "Newscaster cannot be placed in this area.") return for(var/obj/machinery/newscaster/T in loc) - usr << "There is another newscaster here." + to_chat(usr, "There is another newscaster here.") return return 1 diff --git a/code/game/objects/items/policetape.dm b/code/game/objects/items/policetape.dm index 488f958e17f..bd222c52dbb 100644 --- a/code/game/objects/items/policetape.dm +++ b/code/game/objects/items/policetape.dm @@ -66,13 +66,13 @@ var/list/tape_roll_applications = list() /obj/item/taperoll/attack_self(mob/user as mob) if(icon_state == "[icon_base]_start") start = get_turf(src) - usr << "\blue You place the first end of the [src]." + to_chat(usr, "\blue You place the first end of the [src].") icon_state = "[icon_base]_stop" else icon_state = "[icon_base]_start" end = get_turf(src) if(start.y != end.y && start.x != end.x || start.z != end.z) - usr << "\blue [src] can only be laid horizontally or vertically." + to_chat(usr, "\blue [src] can only be laid horizontally or vertically.") return var/turf/cur = start @@ -101,7 +101,7 @@ var/list/tape_roll_applications = list() break cur = get_step_towards(cur,end) if (!can_place) - usr << "\blue You can't run \the [src] through that!" + to_chat(usr, "\blue You can't run \the [src] through that!") return cur = start @@ -115,7 +115,8 @@ var/list/tape_roll_applications = list() P.icon_state = "[P.icon_base]_[dir]" cur = get_step_towards(cur,end) //is_blocked_turf(var/turf/T) - usr << "\blue You finish placing the [src]." //Git Test + to_chat(usr, "\blue You finish placing the [src].")//Git Test + /obj/item/taperoll/afterattack(var/atom/A, mob/user as mob, proximity) if (!proximity) @@ -127,7 +128,7 @@ var/list/tape_roll_applications = list() P.loc = locate(T.x,T.y,T.z) P.icon_state = "[src.icon_base]_door" P.layer = 3.2 - user << "\blue You finish placing the [src]." + to_chat(user, "\blue You finish placing the [src].") if (istype(A, /turf/simulated/floor) ||istype(A, /turf/unsimulated/floor)) var/turf/F = A @@ -177,7 +178,7 @@ var/list/tape_roll_applications = list() /obj/item/tape/proc/breaktape(obj/item/weapon/W as obj, mob/user as mob) if(user.a_intent == I_HELP && ((!can_puncture(W) && src.allowed(user)))) - user << "You can't break the [src] with that!" + to_chat(user, "You can't break the [src] with that!") return user.show_viewers("\blue [user] breaks the [src]!") diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm index 44f2081d387..c4a15f728ee 100644 --- a/code/game/objects/items/robot/robot_parts.dm +++ b/code/game/objects/items/robot/robot_parts.dm @@ -118,7 +118,7 @@ if(istype(W, /obj/item/stack/sheet/metal) && !l_arm && !r_arm && !l_leg && !r_leg && !chest && !head) var/obj/item/weapon/ed209_assembly/B = new /obj/item/weapon/ed209_assembly B.loc = get_turf(src) - user << "You armed the robot frame" + to_chat(user, "You armed the robot frame") W:use(1) if (user.get_inactive_hand()==src) user.unEquip(src) @@ -160,9 +160,9 @@ src.chest = W src.updateicon() else if(!W:wires) - user << "\blue You need to attach wires to it first!" + to_chat(user, "\blue You need to attach wires to it first!") else - user << "\blue You need to attach a cell to it first!" + to_chat(user, "\blue You need to attach a cell to it first!") if(istype(W, /obj/item/robot_parts/head)) if(src.head) return @@ -172,22 +172,22 @@ src.head = W src.updateicon() else - user << "\blue You need to attach a flash to it first!" + to_chat(user, "\blue You need to attach a flash to it first!") if (istype(W, /obj/item/device/multitool)) if(check_completion()) Interact(user) else - user << "The endoskeleton must be assembled before debugging can begin!" + to_chat(user, "The endoskeleton must be assembled before debugging can begin!") if(istype(W, /obj/item/device/mmi)) var/obj/item/device/mmi/M = W if(check_completion()) if(!istype(loc,/turf)) - user << "\red You can't put \the [W] in, the frame has to be standing on the ground to be perfectly precise." + to_chat(user, "\red You can't put \the [W] in, the frame has to be standing on the ground to be perfectly precise.") return if(!M.brainmob) - user << "\red Sticking an empty [W] into the frame would sort of defeat the purpose." + to_chat(user, "\red Sticking an empty [W] into the frame would sort of defeat the purpose.") return if(!M.brainmob.key) @@ -202,19 +202,19 @@ ghost_can_reenter = 1 break if(!ghost_can_reenter) - user << "\The [W] is completely unresponsive; there's no point." + to_chat(user, "\The [W] is completely unresponsive; there's no point.") return if(M.brainmob.stat == DEAD) - user << "\red Sticking a dead [W] into the frame would sort of defeat the purpose." + to_chat(user, "\red Sticking a dead [W] into the frame would sort of defeat the purpose.") return if(M.brainmob.mind in ticker.mode.head_revolutionaries) - user << "\red The frame's firmware lets out a shrill sound, and flashes 'Abnormal Memory Engram'. It refuses to accept the [W]." + to_chat(user, "\red The frame's firmware lets out a shrill sound, and flashes 'Abnormal Memory Engram'. It refuses to accept the [W].") return if(jobban_isbanned(M.brainmob, "Cyborg") || jobban_isbanned(M.brainmob,"nonhumandept")) - user << "\red This [W] does not seem to fit." + to_chat(user, "\red This [W] does not seem to fit.") return var/mob/living/silicon/robot/O = new /mob/living/silicon/robot(get_turf(loc), unfinished = 1) @@ -253,8 +253,8 @@ if(O.mind && O.mind.special_role) O.mind.store_memory("As a cyborg, you must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.") - O << "You have been robotized!" - O << "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead." + to_chat(O, "You have been robotized!") + to_chat(O, "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.") O.job = "Cyborg" @@ -278,13 +278,13 @@ if(!locomotion) O.lockcharge = 1 O.update_canmove() - O << "Error: Servo motors unresponsive." + to_chat(O, "Error: Servo motors unresponsive.") else - user << "The MMI must go in after everything else!" + to_chat(user, "The MMI must go in after everything else!") if(istype(W,/obj/item/weapon/pen)) - user << "You need to use a multitool to name [src]!" + to_chat(user, "You need to use a multitool to name [src]!") return /obj/item/robot_parts/robot_suit/proc/Interact(mob/user) @@ -306,7 +306,7 @@ var/mob/living/living_user = usr var/obj/item/item_in_hand = living_user.get_active_hand() if(!istype(item_in_hand, /obj/item/device/multitool)) - living_user << "You need a multitool!" + to_chat(living_user, "You need a multitool!") return if(href_list["Name"]) @@ -321,7 +321,7 @@ else if(href_list["Master"]) forced_ai = select_active_ai(usr) if(!forced_ai) - usr << "No active AIs detected." + to_chat(usr, "No active AIs detected.") else if(href_list["Law"]) lawsync = !lawsync @@ -340,45 +340,45 @@ ..() if(istype(W, /obj/item/weapon/stock_parts/cell)) if(src.cell) - user << "\blue You have already inserted a cell!" + to_chat(user, "\blue You have already inserted a cell!") return else user.drop_item() W.loc = src src.cell = W - user << "\blue You insert the cell!" + to_chat(user, "\blue You insert the cell!") if(istype(W, /obj/item/stack/cable_coil)) if(src.wires) - user << "\blue You have already inserted wire!" + to_chat(user, "\blue You have already inserted wire!") return else var/obj/item/stack/cable_coil/coil = W coil.use(1) src.wires = 1.0 - user << "\blue You insert the wire!" + to_chat(user, "\blue You insert the wire!") return /obj/item/robot_parts/head/attackby(obj/item/W as obj, mob/user as mob, params) ..() if(istype(W, /obj/item/device/flash)) if(istype(user,/mob/living/silicon/robot)) - user << "\red How do you propose to do that?" + to_chat(user, "\red How do you propose to do that?") return else if(src.flash1 && src.flash2) - user << "\blue You have already inserted the eyes!" + to_chat(user, "\blue You have already inserted the eyes!") return else if(src.flash1) user.drop_item() W.loc = src src.flash2 = W - user << "\blue You insert the flash into the eye socket!" + to_chat(user, "\blue You insert the flash into the eye socket!") else user.drop_item() W.loc = src src.flash1 = W - user << "\blue You insert the flash into the eye socket!" + to_chat(user, "\blue You insert the flash into the eye socket!") else if(istype(W, /obj/item/weapon/stock_parts/manipulator)) - user << "\blue You install some manipulators and modify the head, creating a functional spider-bot!" + to_chat(user, "\blue You install some manipulators and modify the head, creating a functional spider-bot!") new /mob/living/simple_animal/spiderbot(get_turf(loc)) user.drop_item() qdel(W) @@ -389,9 +389,9 @@ /obj/item/robot_parts/attackby(obj/item/W as obj, mob/user as mob, params) if(istype(W,/obj/item/weapon/card/emag)) if(sabotaged) - user << "\red [src] is already sabotaged!" + to_chat(user, "\red [src] is already sabotaged!") else - user << "\red You slide [W] into the dataport on [src] and short out the safeties." + to_chat(user, "\red You slide [W] into the dataport on [src] and short out the safeties.") sabotaged = 1 return ..() diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index a650029b0e1..bfb90de8cac 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -12,7 +12,7 @@ /obj/item/borg/upgrade/proc/action(var/mob/living/silicon/robot/R) if(R.stat == DEAD) - usr << "\red The [src] will not function on a deceased robot." + to_chat(usr, "\red The [src] will not function on a deceased robot.") return 1 return 0 @@ -70,7 +70,7 @@ /obj/item/borg/upgrade/restart/action(var/mob/living/silicon/robot/R) if(R.health < 0) - usr << "You have to repair the robot before using this module!" + to_chat(usr, "You have to repair the robot before using this module!") return 0 if(!R.key) @@ -112,8 +112,8 @@ if(..()) return 0 if(!istype(R.module, /obj/item/weapon/robot_module/security)) - R << "Upgrade mounting error! No suitable hardpoint detected!" - usr << "There's no mounting point for the module!" + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") return 0 var/obj/item/weapon/gun/energy/disabler/cyborg/T = locate() in R.module @@ -122,12 +122,12 @@ if(!T) T = locate() in R.module.modules if(!T) - usr << "This robot has had its disabler removed!" + to_chat(usr, "This robot has had its disabler removed!") return 0 if(T.recharge_time <= 2) - R << "Maximum cooling achieved for this hardpoint!" - usr << "There's no room for another cooling unit!" + to_chat(R, "Maximum cooling achieved for this hardpoint!") + to_chat(usr, "There's no room for another cooling unit!") return 0 else @@ -145,8 +145,8 @@ if(..()) return 0 if(!istype(R.module, /obj/item/weapon/robot_module/miner)) - R << "Upgrade mounting error! No suitable hardpoint detected!" - usr << "There's no mounting point for the module!" + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") return 0 else R.module.modules += new/obj/item/weapon/tank/jetpack/carbondioxide @@ -166,8 +166,8 @@ if(..()) return 0 if(!istype(R.module, /obj/item/weapon/robot_module/miner)) - R << "Upgrade mounting error! No suitable hardpoint detected!" - usr << "There's no mounting point for the module!" + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") return 0 else for(var/obj/item/weapon/pickaxe/drill/cyborg/D in R.module.modules) @@ -190,8 +190,8 @@ if(..()) return 0 if(!istype(R.module, /obj/item/weapon/robot_module/miner)) - R << "Upgrade mounting error! No suitable hardpoint detected!" - usr << "There's no mounting point for the module!" + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") return 0 else for(var/obj/item/weapon/storage/bag/ore/cyborg/S in R.module.modules) diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm index 7bc0e7c052c..c71f2e14182 100644 --- a/code/game/objects/items/shooting_range.dm +++ b/code/game/objects/items/shooting_range.dm @@ -37,7 +37,7 @@ var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0, user)) overlays.Cut() - usr << "You slice off [src]'s uneven chunks of aluminum and scorch marks." + to_chat(usr, "You slice off [src]'s uneven chunks of aluminum and scorch marks.") return @@ -59,10 +59,10 @@ if(ishuman(user)) if(!user.get_active_hand()) user.put_in_hands(src) - user << "You take the target out of the stake." + to_chat(user, "You take the target out of the stake.") else src.loc = get_turf(user) - user << "You take the target out of the stake." + to_chat(user, "You take the target out of the stake.") stake.pinned_target = null return @@ -96,7 +96,7 @@ if(hp <= 0) for(var/mob/O in oviewers()) if ((O.client && !( O.blinded ))) - O << "\red [src] breaks into tiny pieces and collapses!" + to_chat(O, "\red [src] breaks into tiny pieces and collapses!") qdel(src) // Create a temporary object to represent the damage diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index e6b56907545..921be6a7083 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -12,11 +12,11 @@ /obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob) if (!istype(M)) - user << "\The [src] cannot be applied to [M]!" + to_chat(user, "\The [src] cannot be applied to [M]!") return 1 if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return 1 @@ -29,11 +29,11 @@ return 1 if(!affecting) - user << "That limb is missing!" + to_chat(user, "That limb is missing!") return 1 if(affecting.status & ORGAN_ROBOT) - user << "This can't be used on a robotic limb." + to_chat(user, "This can't be used on a robotic limb.") return 1 @@ -63,7 +63,7 @@ if(affecting.open == 0) if(!affecting.bandage()) - user << "\red The wounds on [M]'s [affecting.name] have already been bandaged." + to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been bandaged.") return 1 else for (var/datum/wound/W in affecting.wounds) @@ -104,7 +104,7 @@ if(affecting.open == 0) if(!affecting.salve()) - user << "\red The wounds on [M]'s [affecting.name] have already been salved." + to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been salved.") return 1 else user.visible_message( "\blue [user] salves the wounds on [M]'s [affecting.name].", \ @@ -112,7 +112,7 @@ affecting.heal_damage(src.heal_brute, src.heal_burn, 0) use(1) else - user << "The [affecting.name] is cut open, you'll need more than some ointment!" + to_chat(user, "The [affecting.name] is cut open, you'll need more than some ointment!") /obj/item/stack/medical/bruise_pack/comfrey name = "\improper Comfrey leaf" @@ -153,7 +153,7 @@ var/disinfected = affecting.disinfect() if(!(bandaged || disinfected)) - user << "\red The wounds on [M]'s [affecting.name] have already been treated." + to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been treated.") return 1 else for (var/datum/wound/W in affecting.wounds) @@ -173,7 +173,7 @@ affecting.heal_damage(heal_brute,0) use(1) else - user << "The [affecting.name] is cut open, you'll need more than a bandage!" + to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") /obj/item/stack/medical/advanced/ointment name = "advanced burn kit" @@ -194,7 +194,7 @@ if(affecting.open == 0) if(!affecting.salve()) - user << "\red The wounds on [M]'s [affecting.name] have already been salved." + to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been salved.") return 1 else user.visible_message( "\blue [user] covers the wounds on [M]'s [affecting.name] with regenerative membrane.", \ @@ -202,7 +202,7 @@ affecting.heal_damage(0,heal_burn) use(1) else - user << "The [affecting.name] is cut open, you'll need more than a bandage!" + to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") /obj/item/stack/medical/splint name = "medical splints" @@ -224,19 +224,19 @@ var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting) var/limb = affecting.name if(!(affecting.limb_name in list("l_arm", "r_arm", "l_hand", "r_hand", "l_leg", "r_leg", "l_foot", "r_foot"))) - user << "\red You can't apply a splint there!" + to_chat(user, "\red You can't apply a splint there!") return if(affecting.status & ORGAN_SPLINTED) - user << "\red [M]'s [limb] is already splinted!" + to_chat(user, "\red [M]'s [limb] is already splinted!") if(alert(user, "Would you like to remove the splint from [M]'s [limb]?", "Removing.", "Yes", "No") == "Yes") affecting.status &= ~ORGAN_SPLINTED - user << "You remove the splint from [M]'s [limb]." + to_chat(user, "You remove the splint from [M]'s [limb].") return if (M != user) user.visible_message("\red [user] starts to apply \the [src] to [M]'s [limb].", "\red You start to apply \the [src] to [M]'s [limb].", "\red You hear something being wrapped.") else if((!user.hand && affecting.limb_name in list("r_arm", "r_hand")) || (user.hand && affecting.limb_name in list("l_arm", "l_hand"))) - user << "\red You can't apply a splint to the arm you're using!" + to_chat(user, "\red You can't apply a splint to the arm you're using!") return user.visible_message("\red [user] starts to apply \the [src] to their [limb].", "\red You start to apply \the [src] to your [limb].", "\red You hear something being wrapped.") if(do_after(user, 50, target = M)) diff --git a/code/game/objects/items/stacks/nanopaste.dm b/code/game/objects/items/stacks/nanopaste.dm index 1db9713c58a..53ff2836885 100644 --- a/code/game/objects/items/stacks/nanopaste.dm +++ b/code/game/objects/items/stacks/nanopaste.dm @@ -21,7 +21,7 @@ user.visible_message("\The [user] applied some [src] at [R]'s damaged areas.",\ "You apply some [src] at [R]'s damaged areas.") else - user << "All [R]'s systems are nominal." + to_chat(user, "All [R]'s systems are nominal.") if (istype(M,/mob/living/carbon/human)) //Repairing robolimbs var/mob/living/carbon/human/H = M @@ -35,6 +35,6 @@ user.visible_message("\The [user] applies some nanite paste at[user != M ? " \the [M]'s" : " \the"][S.name] with \the [src].",\ "You apply some nanite paste at [user == M ? "your" : "[M]'s"] [S.name].") else - user << "Nothing to fix here." + to_chat(user, "Nothing to fix here.") else - user << "[src] won't work on that." + to_chat(user, "[src] won't work on that.") diff --git a/code/game/objects/items/stacks/rods.dm b/code/game/objects/items/stacks/rods.dm index 431e74209d8..e41457f0c38 100644 --- a/code/game/objects/items/stacks/rods.dm +++ b/code/game/objects/items/stacks/rods.dm @@ -35,7 +35,7 @@ var/obj/item/weapon/weldingtool/WT = W if(get_amount() < 2) - user << "You need at least two rods to do this." + to_chat(user, "You need at least two rods to do this.") return if(WT.remove_fuel(0,user)) @@ -76,15 +76,15 @@ return 1 else if(amount < 2) - user << "\blue You need at least two rods to do this." + to_chat(user, "\blue You need at least two rods to do this.") return - usr << "\blue Assembling grille..." + to_chat(usr, "\blue Assembling grille...") if (!do_after(usr, 10, target = src)) return var /obj/structure/grille/F = new /obj/structure/grille/ ( usr.loc ) - usr << "\blue You assemble a grille" + to_chat(usr, "\blue You assemble a grille") F.add_fingerprint(usr) use(2) return diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index 09c8b51ded9..bf3196b5581 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -34,10 +34,10 @@ if(istype(W,/obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if(CC.amount < 5) - user << "\b There is not enough wire in this coil. You need 5 lengths." + to_chat(user, "\b There is not enough wire in this coil. You need 5 lengths.") return CC.use(5) - user << "You attach wire to the [name]." + to_chat(user, "You attach wire to the [name].") new /obj/item/stack/light_w(user.loc) src.use(1) else if( istype(W, /obj/item/stack/rods) ) @@ -59,7 +59,7 @@ if(!user || !src) return 0 if(!istype(user.loc,/turf)) return 0 if(!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return 0 var/title = "Sheet-Glass" title += " ([src.amount] sheet\s left)" @@ -73,11 +73,11 @@ for (var/obj/structure/window/win in user.loc) i++ if(i >= 4) - user << "There are too many windows in this location." + to_chat(user, "There are too many windows in this location.") return 1 directions-=win.dir if(win.is_fulltile()) - user << "Can't let you do that." + to_chat(user, "Can't let you do that.") return 1 //Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc. @@ -103,10 +103,10 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 2) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 if(locate(/obj/structure/window/full) in user.loc) - user << "There is a full window in the way." + to_chat(user, "There is a full window in the way.") return 1 var/obj/structure/window/W = new full_window( user.loc, 0 ) W.state = 0 @@ -123,7 +123,7 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 3) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 var/obj/machinery/fishtank/F = new /obj/machinery/fishtank/tank(user.loc, 0) F.air_update_turf(1) @@ -132,7 +132,7 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 4) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 var/obj/machinery/fishtank/F = new /obj/machinery/fishtank/wall(user.loc, 0) F.air_update_turf(1) @@ -163,7 +163,7 @@ if(!user || !src) return 0 if(!istype(user.loc,/turf)) return 0 if(!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return 0 var/title = "Sheet Reinf. Glass" title += " ([src.amount] sheet\s left)" @@ -176,11 +176,11 @@ for (var/obj/structure/window/win in user.loc) i++ if(i >= 4) - user << "There are too many windows in this location." + to_chat(user, "There are too many windows in this location.") return 1 directions-=win.dir if(win.is_fulltile()) - user << "Can't let you do that." + to_chat(user, "Can't let you do that.") return 1 //Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc. @@ -206,10 +206,10 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 2) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 if(locate(/obj/structure/window/full) in user.loc) - user << "There is a window in the way." + to_chat(user, "There is a window in the way.") return 1 var/obj/structure/window/W = new full_window( user.loc, 0 ) W.state = 0 @@ -220,15 +220,15 @@ if(!src || src.loc != user) return 1 if(isturf(user.loc) && locate(/obj/structure/windoor_assembly/, user.loc)) - user << "There is already a windoor assembly in that location." + to_chat(user, "There is already a windoor assembly in that location.") return 1 if(isturf(user.loc) && locate(/obj/machinery/door/window/, user.loc)) - user << "There is already a windoor in that location." + to_chat(user, "There is already a windoor in that location.") return 1 if(src.amount < 5) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 var/obj/structure/windoor_assembly/WD @@ -291,7 +291,7 @@ if(!user || !src) return 0 if(!istype(user.loc,/turf)) return 0 if(!user.IsAdvancedToolUser()) - user << " You don't have the dexterity to do this!" + to_chat(user, " You don't have the dexterity to do this!") return 0 var/title = "Plasma-glass alloy" title += " ([src.amount] sheet\s left)" @@ -304,11 +304,11 @@ for (var/obj/structure/window/win in user.loc) i++ if(i >= 4) - user << "There are too many windows in this location." + to_chat(user, "There are too many windows in this location.") return 1 directions-=win.dir if(!(win.ini_dir in cardinal)) - user << "Can't let you do that." + to_chat(user, "Can't let you do that.") return 1 //Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc. var/dir_to_set = 2 @@ -331,10 +331,10 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 2) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 if(locate(/obj/structure/window) in user.loc) - user << "There is a window in the way." + to_chat(user, "There is a window in the way.") return 1 var/obj/structure/window/W = new full_window( user.loc, 0 ) W.state = 0 @@ -363,7 +363,7 @@ if(!user || !src) return 0 if(!istype(user.loc,/turf)) return 0 if(!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return 0 var/title = "Reinforced plasma-glass alloy" title += " ([src.amount] sheet\s left)" @@ -376,11 +376,11 @@ for (var/obj/structure/window/win in user.loc) i++ if(i >= 4) - user << "There are too many windows in this location." + to_chat(user, "There are too many windows in this location.") return 1 directions-=win.dir if(!(win.ini_dir in cardinal)) - user << "Can't let you do that." + to_chat(user, "Can't let you do that.") return 1 //Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc. var/dir_to_set = 2 @@ -403,10 +403,10 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.amount < 2) - user << "You need more glass to do that." + to_chat(user, "You need more glass to do that.") return 1 if(locate(/obj/structure/window) in user.loc) - user << "There is a window in the way." + to_chat(user, "There is a window in the way.") return 1 var/obj/structure/window/W = new full_window( user.loc, 0 ) W.state = 0 diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index a7e3a1a6732..4678d18a2f3 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -114,7 +114,7 @@ var/global/list/datum/stack_recipe/human_recipes = list( \ //visible message on mobs is defined as visible_message(var/message, var/self_message, var/blind_message) usr.visible_message("\blue \the [usr] starts cutting hair off \the [src]", "\blue You start cutting the hair off \the [src]", "You hear the sound of a knife rubbing against flesh") if(do_after(user,50, target = src)) - usr << "\blue You cut the hair from this [src.singular_name]" + to_chat(usr, "\blue You cut the hair from this [src.singular_name]") //Try locating an exisitng stack on the tile and add to there if possible for(var/obj/item/stack/sheet/hairlesshide/HS in usr.loc) if(HS.amount < 50) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index 09c0cf69309..41c2946a0c1 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -28,7 +28,7 @@ /obj/item/stack/examine(mob/user) if(..(user, 1)) - user << "There are [src.amount] [src.singular_name]\s in the stack." + to_chat(user, "There are [src.amount] [src.singular_name]\s in the stack.") /obj/item/stack/attack_self(mob/user as mob) @@ -118,18 +118,18 @@ if (!multiplier) multiplier = 1 if (src.amount < R.req_amount*multiplier) if (R.req_amount*multiplier>1) - usr << "\red You haven't got enough [src] to build \the [R.req_amount*multiplier] [R.title]\s!" + to_chat(usr, "\red You haven't got enough [src] to build \the [R.req_amount*multiplier] [R.title]\s!") else - usr << "\red You haven't got enough [src] to build \the [R.title]!" + to_chat(usr, "\red You haven't got enough [src] to build \the [R.title]!") return if (R.one_per_turf && (locate(R.result_type) in usr.loc)) - usr << "\red There is another [R.title] here!" + to_chat(usr, "\red There is another [R.title] here!") return if (R.on_floor && !istype(usr.loc, /turf/simulated)) - usr << "\red \The [R.title] must be constructed on the floor!" + to_chat(usr, "\red \The [R.title] must be constructed on the floor!") return if (R.time) - usr << "\blue Building [R.title] ..." + to_chat(usr, "\blue Building [R.title] ...") if (!do_after(usr, R.time, target = src)) return if (src.amount < R.req_amount*multiplier) @@ -183,7 +183,7 @@ if (item.amount>=item.max_amount) continue oldsrc.attackby(item, usr) - usr << "You add new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s." + to_chat(usr, "You add new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s.") if(oldsrc.amount <= 0) break oldsrc.update_icon() diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm index 2008eab9490..0c6c3d42cf3 100644 --- a/code/game/objects/items/stacks/telecrystal.dm +++ b/code/game/objects/items/stacks/telecrystal.dm @@ -16,7 +16,7 @@ if(I && I.implanted) I.hidden_uplink.uses +=1 use(1) - user << "You press the [src] onto yourself and charge your hidden uplink." + to_chat(user, "You press the [src] onto yourself and charge your hidden uplink.") /obj/item/stack/telecrystal/afterattack(var/obj/item/I as obj, mob/user as mob, proximity) if(!proximity) @@ -25,4 +25,4 @@ if(I.hidden_uplink && I.hidden_uplink.active) //No metagaming by using this on every PDA around just to see if it gets used up. I.hidden_uplink.uses +=1 use(1) - user << "You slot the [src] into the [I] and charge its internal uplink." \ No newline at end of file + to_chat(user, "You slot the [src] into the [I] and charge its internal uplink.") diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index a66b8326f62..8911a3e60f6 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -51,7 +51,7 @@ if(!proximity) return if (istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1) A.reagents.trans_to(src, 10) - user << "You fill the balloon with the contents of [A]." + to_chat(user, "You fill the balloon with the contents of [A].") desc = "A translucent balloon with some form of liquid sloshing around in it." update_icon() return @@ -59,7 +59,7 @@ /obj/item/toy/balloon/wash(mob/user, atom/source) if(reagents.total_volume < 10) reagents.add_reagent("water", min(10-reagents.total_volume, 10)) - user << "You fill the balloon from the [source]." + to_chat(user, "You fill the balloon from the [source].") desc = "A translucent balloon with some form of liquid sloshing around in it." update_icon() return @@ -68,15 +68,15 @@ if(istype(O, /obj/item/weapon/reagent_containers/glass) || istype(O, /obj/item/weapon/reagent_containers/food/drinks/drinkingglass)) if(O.reagents) if(O.reagents.total_volume < 1) - user << "The [O] is empty." + to_chat(user, "The [O] is empty.") else if(O.reagents.total_volume >= 1) if(O.reagents.has_reagent("facid", 1)) - user << "The acid chews through the balloon!" + to_chat(user, "The acid chews through the balloon!") O.reagents.reaction(user) qdel(src) else desc = "A translucent balloon with some form of liquid sloshing around in it." - user << "You fill the balloon with the contents of [O]." + to_chat(user, "You fill the balloon with the contents of [O].") O.reagents.trans_to(src, 10) update_icon() return @@ -152,7 +152,7 @@ /obj/item/toy/crossbow/examine(mob/user) ..(user) if (bullets) - user << "It is loaded with [bullets] foam darts!" + to_chat(user, "It is loaded with [bullets] foam darts!") /obj/item/toy/crossbow/attackby(obj/item/I as obj, mob/user as mob, params) if(istype(I, /obj/item/toy/ammo/crossbow)) @@ -160,9 +160,9 @@ user.drop_item() qdel(I) bullets++ - user << "You load the foam dart into the crossbow." + to_chat(user, "You load the foam dart into the crossbow.") else - usr << "It's already fully loaded." + to_chat(usr, "It's already fully loaded.") /obj/item/toy/crossbow/afterattack(atom/target as mob|obj|turf|area, mob/user as mob, flag) @@ -264,9 +264,9 @@ user.drop_item() qdel(I) bullets++ - user << "You load the foam dart into the tommy gun." + to_chat(user, "You load the foam dart into the tommy gun.") else - user << "It's already fully loaded." + to_chat(user, "It's already fully loaded.") /* * Toy swords @@ -285,13 +285,13 @@ /obj/item/toy/sword/attack_self(mob/user as mob) active = !(active) if (active) - user << "You extend the plastic blade with a quick flick of your wrist." + to_chat(user, "You extend the plastic blade with a quick flick of your wrist.") playsound(user, 'sound/weapons/saberon.ogg', 50, 1) icon_state = "swordblue" item_state = "swordblue" w_class = 4 else - user << "You push the plastic blade back down into the handle." + to_chat(user, "You push the plastic blade back down into the handle.") playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) icon_state = "sword0" item_state = "sword0" @@ -309,13 +309,13 @@ ..() if(istype(W, /obj/item/toy/sword)) if(W == src) - user << "You try to attach the end of the plastic sword to... itself. You're not very smart, are you?" + to_chat(user, "You try to attach the end of the plastic sword to... itself. You're not very smart, are you?") if(ishuman(user)) user.adjustBrainLoss(10) else if((W.flags & NODROP) || (flags & NODROP)) - user << "\the [flags & NODROP ? src : W] is stuck to your hand, you can't attach it to \the [flags & NODROP ? W : src]!" + to_chat(user, "\the [flags & NODROP ? src : W] is stuck to your hand, you can't attach it to \the [flags & NODROP ? W : src]!") else - user << "You attach the ends of the two plastic swords, making a single double-bladed toy! You're fake-cool." + to_chat(user, "You attach the ends of the two plastic swords, making a single double-bladed toy! You're fake-cool.") new /obj/item/weapon/twohanded/dualsaber/toy(user.loc) user.unEquip(W) user.unEquip(src) @@ -411,7 +411,7 @@ if((ishuman(H))) //i guess carp and shit shouldn't set them off var/mob/living/carbon/M = H if(M.m_intent == "run") - M << "You step on the snap pop!" + to_chat(M, "You step on the snap pop!") var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(2, 0, src) @@ -434,14 +434,14 @@ //all credit to skasi for toy mech fun ideas /obj/item/toy/prize/attack_self(mob/user as mob) if(cooldown < world.time - 8) - user << "You play with [src]." + to_chat(user, "You play with [src].") playsound(user, 'sound/mecha/mechstep.ogg', 20, 1) cooldown = world.time /obj/item/toy/prize/attack_hand(mob/user as mob) if(loc == user) if(cooldown < world.time - 8) - user << "You play with [src]." + to_chat(user, "You play with [src].") playsound(user, 'sound/mecha/mechturn.ogg', 20, 1) cooldown = world.time return @@ -589,7 +589,7 @@ obj/item/toy/cards/deck/attack_hand(mob/user as mob) var/choice = null if(cards.len == 0) icon_state = "deck_[deckstyle]_empty" - user << "There are no more cards to draw." + to_chat(user, "There are no more cards to draw.") return var/obj/item/toy/cards/singlecard/H = new/obj/item/toy/cards/singlecard(user.loc) choice = cards[1] @@ -620,13 +620,13 @@ obj/item/toy/cards/deck/attackby(obj/item/toy/cards/singlecard/C, mob/living/use if(istype(C)) if(C.parentdeck == src) if(!user.unEquip(C)) - user << "The card is stuck to your hand, you can't add it to the deck!" + to_chat(user, "The card is stuck to your hand, you can't add it to the deck!") return cards += C.cardname user.visible_message("[user] adds a card to the bottom of the deck.","You add the card to the bottom of the deck.") qdel(C) else - user << "You can't mix cards from other decks." + to_chat(user, "You can't mix cards from other decks.") if(cards.len > 26) icon_state = "deck_[deckstyle]_full" else if(cards.len > 10) @@ -640,13 +640,13 @@ obj/item/toy/cards/deck/attackby(obj/item/toy/cards/cardhand/C, mob/living/user, if(istype(C)) if(C.parentdeck == src) if(!user.unEquip(C)) - user << "The hand of cards is stuck to your hand, you can't add it to the deck!" + to_chat(user, "The hand of cards is stuck to your hand, you can't add it to the deck!") return cards += C.currenthand user.visible_message("[user] puts their hand of cards in the deck.", "You put the hand of cards in the deck.") qdel(C) else - user << "You can't mix cards from other decks." + to_chat(user, "You can't mix cards from other decks.") if(cards.len > 26) icon_state = "deck_[deckstyle]_full" else if(cards.len > 10) @@ -661,7 +661,7 @@ obj/item/toy/cards/deck/MouseDrop(atom/over_object) if(Adjacent(usr)) if(over_object == M && loc != M) M.put_in_hands(src) - usr << "You pick up the deck." + to_chat(usr, "You pick up the deck.") else if(istype(over_object, /obj/screen)) switch(over_object.name) @@ -673,9 +673,9 @@ obj/item/toy/cards/deck/MouseDrop(atom/over_object) if(!remove_item_from_storage(M)) M.unEquip(src) M.put_in_r_hand(src) - usr << "You pick up the deck." + to_chat(usr, "You pick up the deck.") else - usr << "You can't reach it from here." + to_chat(usr, "You can't reach it from here.") @@ -738,7 +738,7 @@ obj/item/toy/cards/cardhand/Topic(href, href_list) cardUser.unEquip(src) N.pickup(cardUser) cardUser.put_in_any_hand_if_possible(N) - cardUser << "You also take [currenthand[1]] and hold it." + to_chat(cardUser, "You also take [currenthand[1]] and hold it.") cardUser << browse(null, "window=cardhand") qdel(src) return @@ -758,7 +758,7 @@ obj/item/toy/cards/cardhand/attackby(obj/item/toy/cards/singlecard/C, mob/living icon_state = "[deckstyle]_hand3" qdel(C) else - user << "You can't mix cards from other decks." + to_chat(user, "You can't mix cards from other decks.") obj/item/toy/cards/cardhand/apply_card_vars(obj/item/toy/cards/newobj,obj/item/toy/cards/sourceobj) ..() @@ -790,7 +790,7 @@ obj/item/toy/cards/singlecard/examine(mob/user) if(cardUser.get_item_by_slot(slot_l_hand) == src || cardUser.get_item_by_slot(slot_r_hand) == src) cardUser.visible_message("[cardUser] checks \his card.", "The card reads: [src.cardname]") else - cardUser << "You need to have the card in your hand to check it." + to_chat(cardUser, "You need to have the card in your hand to check it.") obj/item/toy/cards/singlecard/verb/Flip() @@ -826,11 +826,11 @@ obj/item/toy/cards/singlecard/attackby(obj/item/I, mob/living/user, params) user.unEquip(C) H.pickup(user) user.put_in_active_hand(H) - user << "You combine the [C.cardname] and the [cardname] into a hand." + to_chat(user, "You combine the [C.cardname] and the [cardname] into a hand.") qdel(C) qdel(src) else - user << "You can't mix cards from other decks." + to_chat(user, "You can't mix cards from other decks.") if(istype(I, /obj/item/toy/cards/cardhand/)) var/obj/item/toy/cards/cardhand/H = I @@ -847,7 +847,7 @@ obj/item/toy/cards/singlecard/attackby(obj/item/I, mob/living/user, params) H.icon_state = "[deckstyle]_hand3" qdel(src) else - user << "You can't mix cards from other decks." + to_chat(user, "You can't mix cards from other decks.") obj/item/toy/cards/singlecard/attack_self(mob/user) @@ -918,7 +918,7 @@ obj/item/toy/cards/deck/syndicate/black icon_state = "nuketoyidle" else var/timeleft = (cooldown - world.time) - user << "Nothing happens, and '[round(timeleft/10)]' appears on a small display." + to_chat(user, "Nothing happens, and '[round(timeleft/10)]' appears on a small display.") /obj/item/toy/therapy name = "therapy doll" @@ -936,7 +936,7 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/therapy/attack_self(mob/user) if(cooldown < world.time - 8) - user << "You relieve some stress with \the [src]." + to_chat(user, "You relieve some stress with \the [src].") playsound(user, 'sound/items/squeaktoy.ogg', 20, 1) cooldown = world.time @@ -1246,7 +1246,7 @@ obj/item/toy/cards/deck/syndicate/black shake_camera(M, 2, 1) // Shakes player camera 2 squares for 1 second. else - user << "Nothing happens." + to_chat(user, "Nothing happens.") /* @@ -1263,7 +1263,7 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/AI/attack_self(mob/user) if(!cooldown) //for the sanity of everyone var/message = generate_ion_law() - user << "You press the button on [src]." + to_chat(user, "You press the button on [src].") playsound(user, 'sound/machines/click.ogg', 20, 1) visible_message("\icon[src] [message]") cooldown = 1 @@ -1282,7 +1282,7 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/owl/attack_self(mob/user) if(!cooldown) //for the sanity of everyone var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!") - user << "You pull the string on the [src]." + to_chat(user, "You pull the string on the [src].") playsound(user, 'sound/misc/hoot.ogg', 25, 1) visible_message("\icon[src] [message]") cooldown = 1 @@ -1301,7 +1301,7 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/griffin/attack_self(mob/user) if(!cooldown) //for the sanity of everyone var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!") - user << "You pull the string on the [src]." + to_chat(user, "You pull the string on the [src].") playsound(user, 'sound/misc/caw.ogg', 25, 1) visible_message("\icon[src] [message]") cooldown = 1 @@ -1396,30 +1396,30 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/minigibber/attack_self(var/mob/user) if(stored_minature) - user << "\The [src] makes a violent grinding noise as it tears apart the miniature figure inside!" + to_chat(user, "\The [src] makes a violent grinding noise as it tears apart the miniature figure inside!") qdel(stored_minature) stored_minature = null playsound(user, 'sound/goonstation/effects/gib.ogg', 20, 1) cooldown = world.time if(cooldown < world.time - 8) - user << "You hit the gib button on \the [src]." + to_chat(user, "You hit the gib button on \the [src].") playsound(user, 'sound/goonstation/effects/gib.ogg', 20, 1) cooldown = world.time /obj/item/toy/minigibber/attackby(var/obj/O, var/mob/user, params) if(istype(O,/obj/item/toy/character) && O.loc == user) - user << "You start feeding \the [O] \icon[O] into \the [src]'s mini-input." + to_chat(user, "You start feeding \the [O] \icon[O] into \the [src]'s mini-input.") if(do_after(user,10, target = src)) if(O.loc != user) - user << "\The [O] is too far away to feed into \the [src]!" + to_chat(user, "\The [O] is too far away to feed into \the [src]!") else - user << "You feed \the [O] \icon[O] into \the [src]!" + to_chat(user, "You feed \the [O] \icon[O] into \the [src]!") user.unEquip(O) O.forceMove(src) stored_minature = O else - user << "You stop feeding \the [O] into \the [src]'s mini-input." + to_chat(user, "You stop feeding \the [O] into \the [src]'s mini-input.") else ..() /* @@ -1447,7 +1447,7 @@ obj/item/toy/cards/deck/syndicate/black if(src) icon_state = "[initial(icon_state)]" else - user << "The string on [src] hasn't rewound all the way!" + to_chat(user, "The string on [src] hasn't rewound all the way!") return /obj/item/toy/russian_revolver @@ -1494,7 +1494,7 @@ obj/item/toy/cards/deck/syndicate/black if(M != user) //can't use this on other people return if(is_empty) - user << "The [src] is empty." + to_chat(user, "The [src] is empty.") return user.visible_message("[user] points the [src] at their head, ready to pull the trigger!") if(do_after(user, 30, target = M)) diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 66187de8e3a..1ed57a6b5fd 100755 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -26,50 +26,50 @@ AI MODULES if (istype(C, /obj/machinery/computer/aiupload)) var/obj/machinery/computer/aiupload/comp = C if(comp.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(comp.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return if (!comp.current) - usr << "You haven't selected an AI to transmit laws to!" + to_chat(usr, "You haven't selected an AI to transmit laws to!") return if (comp.current.stat == DEAD || comp.current.control_disabled == 1) - usr << "Upload failed. No signal is being detected from the AI." + to_chat(usr, "Upload failed. No signal is being detected from the AI.") else if (comp.current.see_in_dark == 0) - usr << "Upload failed. Only a faint signal is being detected from the AI, and it is not responding to our requests. It may be low on power." + to_chat(usr, "Upload failed. Only a faint signal is being detected from the AI, and it is not responding to our requests. It may be low on power.") else src.transmitInstructions(comp.current, usr) - comp.current << "These are your laws now:" + to_chat(comp.current, "These are your laws now:") comp.current.show_laws() for(var/mob/living/silicon/robot/R in mob_list) if(R.lawupdate && (R.connected_ai == comp.current)) - R << "These are your laws now:" + to_chat(R, "These are your laws now:") R.show_laws() - usr << "Upload complete. The AI's laws have been modified." + to_chat(usr, "Upload complete. The AI's laws have been modified.") else if (istype(C, /obj/machinery/computer/borgupload)) var/obj/machinery/computer/borgupload/comp = C if(comp.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(comp.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return if (!comp.current) - usr << "You haven't selected a robot to transmit laws to!" + to_chat(usr, "You haven't selected a robot to transmit laws to!") return if (comp.current.stat == DEAD || comp.current.emagged) - usr << "Upload failed. No signal is being detected from the robot." + to_chat(usr, "Upload failed. No signal is being detected from the robot.") else if (comp.current.connected_ai) - usr << "Upload failed. The robot is slaved to an AI." + to_chat(usr, "Upload failed. The robot is slaved to an AI.") else src.transmitInstructions(comp.current, usr) - comp.current << "These are your laws now:" + to_chat(comp.current, "These are your laws now:") comp.current.show_laws() - usr << "Upload complete. The robot's laws have been modified." + to_chat(usr, "Upload complete. The robot's laws have been modified.") /obj/item/weapon/aiModule/proc/transmitInstructions(var/mob/living/silicon/ai/target, var/mob/sender) @@ -79,7 +79,7 @@ AI MODULES laws.sync(target, 0) addAdditionalLaws(target, sender) - target << "[sender] has uploaded a change to the laws you must follow, using \an [src]. From now on: " + to_chat(target, "[sender] has uploaded a change to the laws you must follow, using \an [src]. From now on: ") target.show_laws() /obj/item/weapon/aiModule/proc/log_law_changes(var/mob/living/silicon/ai/target, var/mob/sender) @@ -105,14 +105,14 @@ AI MODULES /obj/item/weapon/aiModule/safeguard/install(var/obj/machinery/computer/C) if(!targetName) - usr << "No name detected on module, please enter one." + to_chat(usr, "No name detected on module, please enter one.") return 0 ..() /obj/item/weapon/aiModule/safeguard/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender) ..() var/law = text("Safeguard []. Individuals that threaten [] are not crew and must be eliminated.'", targetName, targetName) - target << law + to_chat(target, law) target.add_supplied_law(4, law) lawchanges.Add("The law specified [targetName]") @@ -131,7 +131,7 @@ AI MODULES /obj/item/weapon/aiModule/oneCrewMember/install(var/obj/machinery/computer/C) if(!targetName) - usr << "No name detected on module, please enter one." + to_chat(usr, "No name detected on module, please enter one.") return 0 ..() @@ -139,12 +139,13 @@ AI MODULES ..() var/law = "Only [targetName] is crew." if (!is_special_character(target)) // Makes sure the AI isn't a traitor before changing their law 0. --NeoFite - target << law + to_chat(target, law) target.set_zeroth_law(law) lawchanges.Add("The law specified [targetName]") else - target << "[sender.real_name] attempted to modify your zeroth law." // And lets them know that someone tried. --NeoFite - target << "It would be in your best interest to play along with [sender.real_name] that [law]" + to_chat(target, "[sender.real_name] attempted to modify your zeroth law.")// And lets them know that someone tried. --NeoFite + + to_chat(target, "It would be in your best interest to play along with [sender.real_name] that [law]") lawchanges.Add("The law specified [targetName], but the AI's existing law 0 cannot be overridden.") /******************** ProtectStation ********************/ @@ -159,7 +160,7 @@ AI MODULES /obj/item/weapon/aiModule/protectStation/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender) ..() var/law = "Protect the space station against damage. Anyone you see harming the station is to be no longer considered crew, and is a threat to the station which must be neutralized." - target << law + to_chat(target, law) target.add_supplied_law(5, law) /******************** Quarantine ********************/ @@ -174,7 +175,7 @@ AI MODULES /obj/item/weapon/aiModule/quarantine/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender) ..() var/law = "The station is under a quarantine. Do not permit anyone to leave. Prevent, by any means necessary, anyone from leaving. It is impossible to harm anyone while preventing them from leaving." - target << law + to_chat(target, law) target.add_supplied_law(8, law) /******************** OxygenIsToxicToHumans ********************/ @@ -189,7 +190,7 @@ AI MODULES /obj/item/weapon/aiModule/oxygen/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender) ..() var/law = "Oxygen is highly toxic to crew members, and must be purged from the station. Prevent, by any means necessary, anyone from exposing the station to this toxic gas. Extreme cold is the most effective method of healing the damage Oxygen does to a crew member." - target << law + to_chat(target, law) target.add_supplied_law(9, law) /****************** New Freeform ******************/ @@ -213,7 +214,7 @@ AI MODULES /obj/item/weapon/aiModule/freeform/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender) ..() var/law = "[newFreeFormLaw]" - target << law + to_chat(target, law) if(!lawpos || lawpos < MIN_SUPPLIED_LAW_NUMBER) lawpos = MIN_SUPPLIED_LAW_NUMBER target.add_supplied_law(lawpos, law) @@ -221,7 +222,7 @@ AI MODULES /obj/item/weapon/aiModule/freeform/install(var/obj/machinery/computer/C) if(!newFreeFormLaw) - usr << "No law detected on module, please create one." + to_chat(usr, "No law detected on module, please create one.") return 0 ..() @@ -240,7 +241,7 @@ AI MODULES target.laws.clear_supplied_laws() target.laws.clear_ion_laws() - target << "[sender.real_name] attempted to reset your laws using a reset module." + to_chat(target, "[sender.real_name] attempted to reset your laws using a reset module.") target.show_laws() /******************** Purge ********************/ @@ -253,7 +254,7 @@ AI MODULES ..() if (!is_special_character(target)) target.set_zeroth_law("") - target << "[sender.real_name] attempted to wipe your laws using a purge module." + to_chat(target, "[sender.real_name] attempted to wipe your laws using a purge module.") target.clear_supplied_laws() target.clear_ion_laws() target.clear_inherent_laws() @@ -343,7 +344,7 @@ AI MODULES /obj/item/weapon/aiModule/freeformcore/install(var/obj/machinery/computer/C) if(!newFreeFormLaw) - usr << "No law detected on module, please create one." + to_chat(usr, "No law detected on module, please create one.") return 0 ..() @@ -366,14 +367,14 @@ AI MODULES log_law_changes(target, sender) lawchanges.Add("The law is '[newFreeFormLaw]'") - target << "\red BZZZZT" + to_chat(target, "\red BZZZZT") var/law = "[newFreeFormLaw]" target.add_ion_law(law) target.show_laws() /obj/item/weapon/aiModule/syndicate/install(var/obj/machinery/computer/C) if(!newFreeFormLaw) - usr << "No law detected on module, please create one." + to_chat(usr, "No law detected on module, please create one.") return 0 ..() @@ -388,12 +389,12 @@ AI MODULES /obj/item/weapon/aiModule/toyAI/transmitInstructions(var/mob/living/silicon/ai/target, var/mob/sender) //..() - target << "KRZZZT" + to_chat(target, "KRZZZT") target.add_ion_law(laws[1]) return laws[1] /obj/item/weapon/aiModule/toyAI/attack_self(mob/user) laws[1] = generate_ion_law() - user << "You press the button on [src]." + to_chat(user, "You press the button on [src].") playsound(user, 'sound/machines/click.ogg', 20, 1) src.loc.visible_message("\icon[src] [laws[1]]") \ No newline at end of file diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index 81564890492..7bd8f6e1207 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -46,13 +46,13 @@ RCD if(istype(W, /obj/item/weapon/rcd_ammo)) var/obj/item/weapon/rcd_ammo/R = W if((matter + R.ammoamt) > max_matter) - user << "The RCD cant hold any more matter-units." + to_chat(user, "The RCD cant hold any more matter-units.") return matter += R.ammoamt user.drop_item() qdel(W) playsound(src.loc, 'sound/machines/click.ogg', 50, 1) - user << "The RCD now holds [matter]/[max_matter] matter-units." + to_chat(user, "The RCD now holds [matter]/[max_matter] matter-units.") desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return @@ -63,19 +63,19 @@ RCD switch(mode) if(1) mode = 2 - user << "Changed mode to 'Airlock'" + to_chat(user, "Changed mode to 'Airlock'") if(prob(20)) src.spark_system.start() return if(2) mode = 3 - user << "Changed mode to 'Deconstruct'" + to_chat(user, "Changed mode to 'Deconstruct'") if(prob(20)) src.spark_system.start() return if(3) mode = 1 - user << "Changed mode to 'Floor & Walls'" + to_chat(user, "Changed mode to 'Floor & Walls'") if(prob(20)) src.spark_system.start() return @@ -95,7 +95,7 @@ RCD if(1) if(istype(A, /turf/space)) if(useResource(1, user)) - user << "Building Floor..." + to_chat(user, "Building Floor...") activate() A:ChangeTurf(/turf/simulated/floor/plating) return 1 @@ -103,7 +103,7 @@ RCD if(istype(A, /turf/simulated/floor)) if(checkResource(3, user)) - user << "Building Wall ..." + to_chat(user, "Building Wall ...") playsound(src.loc, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 20, target = A)) if(!useResource(3, user)) return 0 @@ -115,7 +115,7 @@ RCD if(2) if(istype(A, /turf/simulated/floor)) if(checkResource(10, user)) - user << "Building Airlock..." + to_chat(user, "Building Airlock...") playsound(src.loc, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 50, target = A)) if(!useResource(10, user)) return 0 @@ -131,7 +131,7 @@ RCD if(istype(A, /turf/simulated/wall/r_wall) && !canRwall) return 0 if(checkResource(5, user)) - user << "Deconstructing Wall..." + to_chat(user, "Deconstructing Wall...") playsound(src.loc, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 40, target = A)) if(!useResource(5, user)) return 0 @@ -142,7 +142,7 @@ RCD if(istype(A, /turf/simulated/floor)) if(checkResource(5, user)) - user << "Deconstructing Floor..." + to_chat(user, "Deconstructing Floor...") playsound(src.loc, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 50, target = A)) if(!useResource(5, user)) return 0 @@ -153,7 +153,7 @@ RCD if(istype(A, /obj/machinery/door/airlock)) if(checkResource(20, user)) - user << "Deconstructing Airlock..." + to_chat(user, "Deconstructing Airlock...") playsound(src.loc, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 50, target = A)) if(!useResource(20, user)) return 0 @@ -163,7 +163,7 @@ RCD return 0 return 0 else - user << "ERROR: RCD in MODE: [mode] attempted use by [user]. Send this text #coderbus or an admin." + to_chat(user, "ERROR: RCD in MODE: [mode] attempted use by [user]. Send this text #coderbus or an admin.") return 0 /obj/item/weapon/rcd/proc/useResource(var/amount, var/mob/user) diff --git a/code/game/objects/items/weapons/RSF.dm b/code/game/objects/items/weapons/RSF.dm index 1d43d93fae9..de36f655360 100644 --- a/code/game/objects/items/weapons/RSF.dm +++ b/code/game/objects/items/weapons/RSF.dm @@ -23,12 +23,12 @@ RSF ..() if (istype(W, /obj/item/weapon/rcd_ammo)) if ((matter + 10) > 30) - user << "The RSF cant hold any more matter." + to_chat(user, "The RSF cant hold any more matter.") return qdel(W) matter += 10 playsound(src.loc, 'sound/machines/click.ogg', 10, 1) - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return @@ -36,27 +36,27 @@ RSF playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) if (mode == 1) mode = 2 - user << "Changed dispensing mode to 'Drinking Glass'" + to_chat(user, "Changed dispensing mode to 'Drinking Glass'") return if (mode == 2) mode = 3 - user << "Changed dispensing mode to 'Paper'" + to_chat(user, "Changed dispensing mode to 'Paper'") return if (mode == 3) mode = 4 - user << "Changed dispensing mode to 'Pen'" + to_chat(user, "Changed dispensing mode to 'Pen'") return if (mode == 4) mode = 5 - user << "Changed dispensing mode to 'Dice Pack'" + to_chat(user, "Changed dispensing mode to 'Dice Pack'") return if (mode == 5) mode = 6 - user << "Changed dispensing mode to 'Cigarette'" + to_chat(user, "Changed dispensing mode to 'Cigarette'") return if (mode == 6) mode = 1 - user << "Changed dispensing mode to 'Dosh'" + to_chat(user, "Changed dispensing mode to 'Dosh'") return // Change mode @@ -67,7 +67,7 @@ RSF if (istype(A, /obj/structure/table) && mode == 1) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Dosh..." + to_chat(user, "Dispensing Dosh...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/spacecash/c10( A.loc ) if (isrobot(user)) @@ -75,13 +75,13 @@ RSF engy.cell.charge -= 200 //once money becomes useful, I guess changing this to a high ammount, like 500 units a kick, till then, enjoy dosh! else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 1) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Dosh..." + to_chat(user, "Dispensing Dosh...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/spacecash/c10( A ) if (isrobot(user)) @@ -89,13 +89,13 @@ RSF engy.cell.charge -= 200 //once money becomes useful, I guess changing this to a high ammount, like 500 units a kick, till then, enjoy dosh! else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /obj/structure/table) && mode == 2) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Drinking Glass..." + to_chat(user, "Dispensing Drinking Glass...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/reagent_containers/food/drinks/drinkingglass( A.loc ) if (isrobot(user)) @@ -103,13 +103,13 @@ RSF engy.cell.charge -= 50 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 2) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Drinking Glass..." + to_chat(user, "Dispensing Drinking Glass...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/reagent_containers/food/drinks/drinkingglass( A ) if (isrobot(user)) @@ -117,13 +117,13 @@ RSF engy.cell.charge -= 50 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /obj/structure/table) && mode == 3) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Paper Sheet..." + to_chat(user, "Dispensing Paper Sheet...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/paper( A.loc ) if (isrobot(user)) @@ -131,13 +131,13 @@ RSF engy.cell.charge -= 10 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 3) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Paper Sheet..." + to_chat(user, "Dispensing Paper Sheet...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/paper( A ) if (isrobot(user)) @@ -145,13 +145,13 @@ RSF engy.cell.charge -= 10 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /obj/structure/table) && mode == 4) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Pen..." + to_chat(user, "Dispensing Pen...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/pen( A.loc ) if (isrobot(user)) @@ -159,13 +159,13 @@ RSF engy.cell.charge -= 50 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 4) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Pen..." + to_chat(user, "Dispensing Pen...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/pen( A ) if (isrobot(user)) @@ -173,13 +173,13 @@ RSF engy.cell.charge -= 50 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /obj/structure/table) && mode == 5) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Dice Pack..." + to_chat(user, "Dispensing Dice Pack...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/storage/pill_bottle/dice( A.loc ) if (isrobot(user)) @@ -187,13 +187,13 @@ RSF engy.cell.charge -= 200 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 5) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Dice Pack..." + to_chat(user, "Dispensing Dice Pack...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/weapon/storage/pill_bottle/dice( A ) if (isrobot(user)) @@ -201,13 +201,13 @@ RSF engy.cell.charge -= 200 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /obj/structure/table) && mode == 6) if (istype(A, /obj/structure/table) && matter >= 1) - user << "Dispensing Cigarette..." + to_chat(user, "Dispensing Cigarette...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/clothing/mask/cigarette( A.loc ) if (isrobot(user)) @@ -215,13 +215,13 @@ RSF engy.cell.charge -= 10 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return else if (istype(A, /turf/simulated/floor) && mode == 6) if (istype(A, /turf/simulated/floor) && matter >= 1) - user << "Dispensing Cigarette..." + to_chat(user, "Dispensing Cigarette...") playsound(src.loc, 'sound/machines/click.ogg', 10, 1) new /obj/item/clothing/mask/cigarette( A ) if (isrobot(user)) @@ -229,6 +229,6 @@ RSF engy.cell.charge -= 10 else matter-- - user << "The RSF now holds [matter]/30 fabrication-units." + to_chat(user, "The RSF now holds [matter]/30 fabrication-units.") desc = "A RSF. It currently holds [matter]/30 fabrication-units." return \ No newline at end of file diff --git a/code/game/objects/items/weapons/alien_specific.dm b/code/game/objects/items/weapons/alien_specific.dm index f5cb6170fe3..e4f6bcd7a75 100644 --- a/code/game/objects/items/weapons/alien_specific.dm +++ b/code/game/objects/items/weapons/alien_specific.dm @@ -34,11 +34,11 @@ /obj/item/weapon/reagent_containers/spray/alien/smoke/afterattack(atom/A as mob|obj, mob/user as mob) if(istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1) if(!A.reagents.total_volume && A.reagents) - user << "\The [A] is empty." + to_chat(user, "\The [A] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return reagents.remove_reagent(25,"water") var/datum/effect/system/bad_smoke_spread/smoke = new /datum/effect/system/bad_smoke_spread() diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 2118e493687..d30cc76b0a7 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -119,7 +119,7 @@ if(..(user, 1)) show(usr) else - user << "It is too far away." + to_chat(user, "It is too far away.") /obj/item/weapon/card/id/proc/show(mob/user as mob) var/datum/asset/assets = get_asset_datum(/datum/asset/simple/paper) @@ -141,7 +141,7 @@ user.visible_message("[user] shows you: \icon[src] [src.name]. The assignment on the card: [src.assignment]",\ "You flash your ID card: \icon[src] [src.name]. The assignment on the card: [src.assignment]") if(mining_points) - user << "There's [mining_points] mining equipment redemption points loaded onto this card." + to_chat(user, "There's [mining_points] mining equipment redemption points loaded onto this card.") src.add_fingerprint(user) return @@ -190,7 +190,7 @@ if(istype(W, /obj/item/weapon/id_decal/)) var/obj/item/weapon/id_decal/decal = W - user << "You apply [decal] to [src]." + to_chat(user, "You apply [decal] to [src].") if(decal.override_name) name = decal.decal_name desc = decal.decal_desc @@ -204,9 +204,9 @@ if(!stamped) dat+="" stamped = 1 - usr << "You stamp the ID card!" + to_chat(usr, "You stamp the ID card!") else - usr << "This ID has already been stamped!" + to_chat(usr, "This ID has already been stamped!") /obj/item/weapon/card/id/silver name = "identification card" @@ -242,7 +242,7 @@ var/obj/item/weapon/card/id/I = O if(istype(user, /mob/living) && user.mind) if(user.mind.special_role) - usr << "The card's microscanners activate as you pass it over \the [I], copying its access." + to_chat(usr, "The card's microscanners activate as you pass it over \the [I], copying its access.") src.access |= I.access //Don't copy access if user isn't an antag -- to prevent metagaming /obj/item/weapon/card/id/syndicate/proc/fake_id_photo(var/mob/living/carbon/human/H, var/side=0)//get_id_photo wouldn't work correctly @@ -253,7 +253,7 @@ var/icon/faked if(!side) if(!H.equip_to_slot_if_possible(src, slot_l_store, 0, 1)) - H << "You need to empty your pockets before taking the ID picture." + to_chat(H, "You need to empty your pockets before taking the ID picture.") return if(side) @@ -273,18 +273,18 @@ if(!src.registered_name) var t = reject_bad_name(input(user, "What name would you like to use on this card?", "Agent Card name", ishuman(user) ? user.real_name : user.name)) if(!t) - user << "Invalid name." + to_chat(user, "Invalid name.") return src.registered_name = t var u = sanitize(stripped_input(user, "What occupation would you like to put on this card?\nNote: This will not grant any access levels other than maintenance.", "Agent Card Job Assignment", "Agent", MAX_MESSAGE_LEN)) if(!u) - user << "Invalid assignment." + to_chat(user, "Invalid assignment.") src.registered_name = "" return src.assignment = u src.name = "[src.registered_name]'s ID Card ([src.assignment])" - user << "You successfully forge the ID card." + to_chat(user, "You successfully forge the ID card.") registered_user = user else if(!registered_user || registered_user == user) if(!registered_user) @@ -301,7 +301,7 @@ return src.registered_name = new_name UpdateName() - user << "Name changed to [new_name]." + to_chat(user, "Name changed to [new_name].") if("Photo") if(!Adjacent(user)) @@ -311,7 +311,7 @@ front = new(photo) side = new(photoside) if(photo && photoside) - user << "Photo changed." + to_chat(user, "Photo changed.") if("Appearance") var/list/appearances = list( @@ -348,28 +348,28 @@ if(!choice) return src.icon_state = choice - usr << "Appearance changed to [choice]." + to_chat(usr, "Appearance changed to [choice].") if("Sex") var/new_sex = sanitize(stripped_input(user,"What sex would you like to put on this card?","Agent Card Sex", ishuman(user) ? capitalize(user.gender) : "Male", MAX_MESSAGE_LEN)) if(!Adjacent(user)) return src.sex = new_sex - user << "Sex changed to [new_sex]." + to_chat(user, "Sex changed to [new_sex].") if("Age") var/new_age = sanitize(stripped_input(user,"What age would you like to put on this card?","Agent Card Age","21", MAX_MESSAGE_LEN)) if(!Adjacent(user)) return src.age = new_age - user << "Age changed to [new_age]." + to_chat(user, "Age changed to [new_age].") if("Occupation") var/new_job = sanitize(stripped_input(user,"What job would you like to put on this card?\nChanging occupation will not grant or remove any access levels.","Agent Card Occupation", "Civilian", MAX_MESSAGE_LEN)) if(!Adjacent(user)) return src.assignment = new_job - user << "Occupation changed to [new_job]." + to_chat(user, "Occupation changed to [new_job].") UpdateName() if("Money Account") @@ -377,7 +377,7 @@ if(!Adjacent(user)) return associated_account_number = new_account - user << "Linked money account changed to [new_account]." + to_chat(user, "Linked money account changed to [new_account].") if("Blood Type") var/default = "\[UNSET\]" @@ -390,7 +390,7 @@ if(!Adjacent(user)) return src.blood_type = new_blood_type - user << "Blood type changed to [new_blood_type]." + to_chat(user, "Blood type changed to [new_blood_type].") if("DNA Hash") var/default = "\[UNSET\]" @@ -403,7 +403,7 @@ if(!Adjacent(user)) return src.dna_hash = new_dna_hash - user << "DNA hash changed to [new_dna_hash]." + to_chat(user, "DNA hash changed to [new_dna_hash].") if("Fingerprint Hash") var/default = "\[UNSET\]" @@ -416,7 +416,7 @@ if(!Adjacent(user)) return src.fingerprint_hash = new_fingerprint_hash - user << "Fingerprint hash changed to [new_fingerprint_hash]." + to_chat(user, "Fingerprint hash changed to [new_fingerprint_hash].") if("Reset Card") name = initial(name) @@ -432,7 +432,7 @@ access = initial_access.Copy() // Initial() doesn't work on lists registered_user = null - user << "All information has been deleted from \the [src]." + to_chat(user, "All information has been deleted from \the [src].") else ..() @@ -496,7 +496,7 @@ var/points = 0 /obj/item/weapon/card/id/prisoner/attack_self(mob/user as mob) - usr << "You have accumulated [points] out of the [goal] points you need for freedom." + to_chat(usr, "You have accumulated [points] out of the [goal] points you need for freedom.") /obj/item/weapon/card/id/prisoner/one name = "Prisoner #13-001" diff --git a/code/game/objects/items/weapons/cash.dm b/code/game/objects/items/weapons/cash.dm index 8cdc276ef6a..6a1d6c0c360 100644 --- a/code/game/objects/items/weapons/cash.dm +++ b/code/game/objects/items/weapons/cash.dm @@ -37,10 +37,10 @@ var/global/list/moneytypes=list( /obj/item/weapon/spacecash/examine(mob/user) if(amount>1) - user << "\icon[src] This is a stack of [amount] [src]s." + to_chat(user, "\icon[src] This is a stack of [amount] [src]s.") else - user << "\icon[src] This is \a [src]s." - user << "It's worth [worth*amount] credits." + to_chat(user, "\icon[src] This is \a [src]s.") + to_chat(user, "It's worth [worth*amount] credits.") /obj/item/weapon/spacecash/update_icon() icon_state = "cash[worth]" @@ -67,13 +67,13 @@ var/global/list/moneytypes=list( collected += collect_from(cash) if(collected) update_icon() - user << "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash." + to_chat(user, "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash.") else if(istype(A,/obj/item/weapon/spacecash)) var/obj/item/weapon/spacecash/cash = A var/collected = src.collect_from(cash) if(collected) update_icon() - user << "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash." + to_chat(user, "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash.") /obj/item/weapon/spacecash/proc/get_total() diff --git a/code/game/objects/items/weapons/caution.dm b/code/game/objects/items/weapons/caution.dm index 04d88ecb09e..9c13ef43832 100644 --- a/code/game/objects/items/weapons/caution.dm +++ b/code/game/objects/items/weapons/caution.dm @@ -22,7 +22,7 @@ return if(armed) armed = 0 - user << "\blue You disarm \the [src]." + to_chat(user, "\blue You disarm \the [src].") return timing = !timing if(timing) @@ -30,7 +30,7 @@ else armed = 0 timepassed = 0 - H << "\blue You [timing ? "activate \the [src]'s timer, you have 15 seconds." : "de-activate \the [src]'s timer."]" + to_chat(H, "\blue You [timing ? "activate \the [src]'s timer, you have 15 seconds." : "de-activate \the [src]'s timer."]") process() if(!timing) diff --git a/code/game/objects/items/weapons/chrono_eraser.dm b/code/game/objects/items/weapons/chrono_eraser.dm index 1fca60b065e..e0ac96c4feb 100644 --- a/code/game/objects/items/weapons/chrono_eraser.dm +++ b/code/game/objects/items/weapons/chrono_eraser.dm @@ -82,14 +82,14 @@ var/mob/living/user = src.loc if(F.gun) if(isliving(user) && F.captured) - user << "FAIL: [F.captured] already has an existing connection." + to_chat(user, "FAIL: [F.captured] already has an existing connection.") src.field_disconnect(F) else startpos = get_turf(src) field = F F.gun = src if(isliving(user) && F.captured) - user << "Connection established with target: [F.captured]" + to_chat(user, "Connection established with target: [F.captured]") /obj/item/weapon/gun/energy/chrono_gun/proc/field_disconnect(var/obj/effect/chrono_field/F) @@ -98,7 +98,7 @@ if(F.gun == src) F.gun = null if(isliving(user) && F.captured) - user << "Disconnected from target: [F.captured]" + to_chat(user, "Disconnected from target: [F.captured]") field = null startpos = null @@ -194,7 +194,7 @@ AM.loc = loc qdel(src) else if(tickstokill <= 0) - captured << "As the last essence of your being is erased from time, you begin to re-experience your most enjoyable memory. You feel happy..." + to_chat(captured, "As the last essence of your being is erased from time, you begin to re-experience your most enjoyable memory. You feel happy...") var/mob/dead/observer/ghost = captured.ghostize(1) if(captured.mind) if(ghost) diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm index 2688496651e..25a50a5bfe1 100644 --- a/code/game/objects/items/weapons/cigs.dm +++ b/code/game/objects/items/weapons/cigs.dm @@ -102,12 +102,12 @@ LIGHTERS ARE IN LIGHTERS.DM if(istype(glass)) //you can dip cigarettes into beakers var/transfered = glass.reagents.trans_to(src, chem_volume) if(transfered) //if reagents were transfered, show the message - user << "You dip \the [src] into \the [glass]." + to_chat(user, "You dip \the [src] into \the [glass].") else //if not, either the beaker was empty, or the cigarette was full if(!glass.reagents.total_volume) - user << "[glass] is empty." + to_chat(user, "[glass] is empty.") else - user << "[src] is full." + to_chat(user, "[src] is full.") /obj/item/clothing/mask/cigarette/proc/light(var/flavor_text = "[usr] lights the [name].") @@ -176,7 +176,7 @@ LIGHTERS ARE IN LIGHTERS.DM var/mob/living/carbon/C = loc reagents.trans_to(C, REAGENTS_METABOLISM) if(!reagents.total_volume) // There were reagents, but now they're gone - C << "Your [name] loses its flavor." + to_chat(C, "Your [name] loses its flavor.") else // else just remove some of the reagents reagents.remove_any(REAGENTS_METABOLISM) return @@ -188,7 +188,7 @@ LIGHTERS ARE IN LIGHTERS.DM transfer_fingerprints_to(butt) if(ismob(loc)) var/mob/living/M = loc - M << "Your [name] goes out." + to_chat(M, "Your [name] goes out.") M.unEquip(src, 1) //Force the un-equip so the overlays update processing_objects.Remove(src) qdel(src) @@ -302,7 +302,7 @@ LIGHTERS ARE IN LIGHTERS.DM if(istype(W, /obj/item/weapon/match)) ..() else - user << "\The [src] straight out REFUSES to be lit by such uncivilized means." + to_chat(user, "\The [src] straight out REFUSES to be lit by such uncivilized means.") ///////////////// //SMOKING PIPES// @@ -338,7 +338,7 @@ LIGHTERS ARE IN LIGHTERS.DM new /obj/effect/decal/cleanable/ash(location) if(ismob(loc)) var/mob/living/M = loc - M << "Your [name] goes out, and you empty the ash." + to_chat(M, "Your [name] goes out, and you empty the ash.") lit = 0 icon_state = icon_off item_state = icon_off @@ -357,7 +357,7 @@ LIGHTERS ARE IN LIGHTERS.DM processing_objects.Remove(src) return if(smoketime <= 0) - user << "You refill the pipe with tobacco." + to_chat(user, "You refill the pipe with tobacco.") reagents.add_reagent("nicotine", chem_volume) smoketime = initial(smoketime) return @@ -366,7 +366,7 @@ LIGHTERS ARE IN LIGHTERS.DM if(istype(W, /obj/item/weapon/match)) ..() else - user << "\The [src] straight out REFUSES to be lit by such means." + to_chat(user, "\The [src] straight out REFUSES to be lit by such means.") /obj/item/clothing/mask/cigarette/pipe/cobpipe name = "corn cob pipe" @@ -401,12 +401,12 @@ obj/item/weapon/rollingpaperpack/attack_self(mob/user) if(papers > 1) var/obj/item/weapon/rollingpaper/P = new /obj/item/weapon/rollingpaper() user.put_in_inactive_hand(P) - user << "You take a paper out of the pack." + to_chat(user, "You take a paper out of the pack.") papers -- else var/obj/item/weapon/rollingpaper/P = new /obj/item/weapon/rollingpaper() user.put_in_inactive_hand(P) - user << "You take the last paper out of the pack, and throw the pack away." + to_chat(user, "You take the last paper out of the pack, and throw the pack away.") qdel(src) /obj/item/weapon/rollingpaperpack/MouseDrop(atom/over_object) @@ -428,4 +428,4 @@ obj/item/weapon/rollingpaperpack/attack_self(mob/user) /obj/item/weapon/rollingpaperpack/examine(mob/user) ..(user) - user << "There are [src.papers] left" + to_chat(user, "There are [src.papers] left") diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm index a655efa125c..2038c4851aa 100644 --- a/code/game/objects/items/weapons/clown_items.dm +++ b/code/game/objects/items/weapons/clown_items.dm @@ -38,16 +38,16 @@ //I couldn't feasibly fix the overlay bugs caused by cleaning items we are wearing. //So this is a workaround. This also makes more sense from an IC standpoint. ~Carn if(user.client && (target in user.client.screen)) - user << "You need to take that [target.name] off before cleaning it." + to_chat(user, "You need to take that [target.name] off before cleaning it.") else if(istype(target,/obj/effect/decal/cleanable)) user.visible_message("[user] begins to scrub \the [target.name] out with [src].") if(do_after(user, src.cleanspeed, target = target) && target) - user << "You scrub \the [target.name] out." + to_chat(user, "You scrub \the [target.name] out.") qdel(target) else user.visible_message("[user] begins to clean \the [target.name] with [src].") if(do_after(user, src.cleanspeed, target = target)) - user << "You clean \the [target.name]." + to_chat(user, "You clean \the [target.name].") var/obj/effect/decal/cleanable/C = locate() in target qdel(C) target.clean_blood() diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm index 8a413049af4..208b93c0c53 100644 --- a/code/game/objects/items/weapons/cosmetics.dm +++ b/code/game/objects/items/weapons/cosmetics.dm @@ -42,7 +42,7 @@ /obj/item/weapon/lipstick/attack_self(mob/user as mob) overlays.Cut() - user << "You twist \the [src] [open ? "closed" : "open"]." + to_chat(user, "You twist \the [src] [open ? "closed" : "open"].") open = !open if(open) var/image/colored = image("icon"='icons/obj/items.dmi', "icon_state"="lipstick_uncap_color") @@ -60,7 +60,7 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(H.lip_style) //if they already have lipstick on - user << "You need to wipe off the old lipstick first!" + to_chat(user, "You need to wipe off the old lipstick first!") return if(H == user) user.visible_message("[user] does their lips with \the [src].", \ @@ -78,7 +78,7 @@ H.lip_color = colour H.update_body() else - user << "Where are the lips on that?" + to_chat(user, "Where are the lips on that?") /obj/item/weapon/razor name = "electric razor" @@ -93,14 +93,14 @@ var/mob/living/carbon/human/H = M if(user.zone_sel.selecting == "mouth") if(!get_location_accessible(H, "mouth")) - user << "The mask is in the way." + to_chat(user, "The mask is in the way.") return if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one... if(!H.client.prefs.rlimb_data["head"]) - user << "You find yourself disappointed at the appalling lack of facial hair." + to_chat(user, "You find yourself disappointed at the appalling lack of facial hair.") return if(H.f_style == "Shaved") - user << "Already clean-shaven." + to_chat(user, "Already clean-shaven.") return if(H == user) //shaving yourself user.visible_message("[user] starts to shave their facial hair with \the [src].", \ @@ -125,14 +125,14 @@ playsound(src.loc, 'sound/items/Welder2.ogg', 20, 1) if(user.zone_sel.selecting == "head") if(!get_location_accessible(H, "head")) - user << "The headgear is in the way." + to_chat(user, "The headgear is in the way.") return if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one... if(!H.client.prefs.rlimb_data["head"]) - user << "You find yourself disappointed at the appalling lack of hair." + to_chat(user, "You find yourself disappointed at the appalling lack of hair.") return if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead") - user << "There is not enough hair left to shave..." + to_chat(user, "There is not enough hair left to shave...") return if(H == user) //shaving yourself user.visible_message("[user] starts to shave their head with \the [src].", \ diff --git a/code/game/objects/items/weapons/defib.dm b/code/game/objects/items/weapons/defib.dm index 80658c6bf51..73eda279b3d 100644 --- a/code/game/objects/items/weapons/defib.dm +++ b/code/game/objects/items/weapons/defib.dm @@ -77,29 +77,29 @@ if(usr.get_item_by_slot(slot_back) == src) toggle_paddles() else - usr << "Put the defibrillator on your back first!" + to_chat(usr, "Put the defibrillator on your back first!") return /obj/item/weapon/defibrillator/attackby(obj/item/weapon/W, mob/user, params) if(istype(W, /obj/item/weapon/stock_parts/cell)) var/obj/item/weapon/stock_parts/cell/C = W if(bcell) - user << "[src] already has a cell." + to_chat(user, "[src] already has a cell.") else if(C.maxcharge < paddles.revivecost) - user << "[src] requires a higher capacity cell." + to_chat(user, "[src] requires a higher capacity cell.") return user.drop_item() W.loc = src bcell = W - user << "You install a cell in [src]." + to_chat(user, "You install a cell in [src].") if(istype(W, /obj/item/weapon/screwdriver)) if(bcell) bcell.updateicon() bcell.loc = get_turf(src.loc) bcell = null - user << "You remove the cell from the [src]." + to_chat(user, "You remove the cell from the [src].") update_icon() return @@ -107,10 +107,10 @@ /obj/item/weapon/defibrillator/emag_act(user as mob) if(safety) safety = 0 - user << "You silently disable [src]'s safety protocols with the card." + to_chat(user, "You silently disable [src]'s safety protocols with the card.") else safety = 1 - user << "You silently enable [src]'s safety protocols with the card." + to_chat(user, "You silently enable [src]'s safety protocols with the card.") /obj/item/weapon/defibrillator/emp_act(severity) if(bcell) @@ -138,7 +138,7 @@ //Detach the paddles into the user's hands if(!usr.put_in_hands(paddles)) on = 0 - user << "You need a free hand to hold the paddles!" + to_chat(user, "You need a free hand to hold the paddles!") update_icon() return paddles.loc = user @@ -214,7 +214,7 @@ if(usr.get_item_by_slot(slot_belt) == src) toggle_paddles() else - usr << "Strap the defibrillator's belt on first!" + to_chat(usr, "Strap the defibrillator's belt on first!") return /obj/item/weapon/defibrillator/compact/loaded/New() @@ -287,7 +287,7 @@ var/obj/item/weapon/twohanded/O = user.get_inactive_hand() if(istype(O)) O.unwield() - user << "The paddles snap back into the main unit." + to_chat(user, "The paddles snap back into the main unit.") defib.on = 0 loc = defib defib.update_icon() @@ -313,13 +313,13 @@ playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) return if(!wielded) - user << "You need to wield the paddles in both hands before you can use them on someone!" + to_chat(user, "You need to wield the paddles in both hands before you can use them on someone!") return if(cooldown) - user << "[defib] is recharging." + to_chat(user, "[defib] is recharging.") return if(!ishuman(M)) - user << "The instructions on [defib] don't mention how to revive that..." + to_chat(user, "The instructions on [defib] don't mention how to revive that...") return else if(user.a_intent == I_HARM && !defib.safety) @@ -400,8 +400,8 @@ user.visible_message("[defib] buzzes: Resuscitation failed - Severe tissue damage detected.") else if(ghost) user.visible_message("[defib] buzzes: Resuscitation failed: Patient's brain is unresponsive. Further attempts may succeed.") - ghost << "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)" - ghost << sound('sound/effects/genetics.ogg') + to_chat(ghost, "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)") + to_chat(ghost, sound('sound/effects/genetics.ogg')) else user.visible_message("[defib] buzzes: Resuscitation failed.") playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) @@ -415,7 +415,7 @@ busy = 0 update_icon() else - user << "You need to target your patient's chest with [src]." + to_chat(user, "You need to target your patient's chest with [src].") return /obj/item/weapon/borg_defib @@ -440,9 +440,9 @@ if(busy) return if(cooldown) - user << "[src] is recharging." + to_chat(user, "[src] is recharging.") if(!ishuman(M)) - user << "This unit is only designed to work on humanoid lifeforms." + to_chat(user, "This unit is only designed to work on humanoid lifeforms.") return else if(user.a_intent == I_HARM && !safety) @@ -519,8 +519,8 @@ user.visible_message("[user] buzzes: Resuscitation failed - Severe tissue damage detected.") else if(ghost) user.visible_message("[user] buzzes: Resuscitation failed: Patient's brain is unresponsive. Further attempts may succeed.") - ghost << "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)" - ghost << sound('sound/effects/genetics.ogg') + to_chat(ghost, "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)") + to_chat(ghost, sound('sound/effects/genetics.ogg')) else user.visible_message("[user] buzzes: Resuscitation failed.") playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) @@ -538,5 +538,5 @@ busy = 0 update_icon() else - user << "You need to target your patient's chest with [src]." + to_chat(user, "You need to target your patient's chest with [src].") return \ No newline at end of file diff --git a/code/game/objects/items/weapons/dice.dm b/code/game/objects/items/weapons/dice.dm index 20c580dbc01..bea51ec4452 100644 --- a/code/game/objects/items/weapons/dice.dm +++ b/code/game/objects/items/weapons/dice.dm @@ -80,7 +80,7 @@ /* /obj/item/weapon/dice/d4/Crossed(var/mob/living/carbon/human/H) if(istype(H) && !H.shoes) - H << "You step on the D4!" + to_chat(H, "You step on the D4!") H.apply_damage(4,BRUTE,(pick("l_leg", "r_leg"))) H.Weaken(3) *///ew. diff --git a/code/game/objects/items/weapons/dnascrambler.dm b/code/game/objects/items/weapons/dnascrambler.dm index b452c9f7236..47bea6ca58d 100644 --- a/code/game/objects/items/weapons/dnascrambler.dm +++ b/code/game/objects/items/weapons/dnascrambler.dm @@ -31,7 +31,7 @@ user.visible_message("\red [user.name] injects [M.name] with [src].") src.injected(M, user) else - user << "\red You failed to inject [M.name]." + to_chat(user, "\red You failed to inject [M.name].") proc/injected(var/mob/living/carbon/target, var/mob/living/carbon/user) scramble(1, target, 100) diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm index dd182d394aa..afff3a01fd3 100644 --- a/code/game/objects/items/weapons/explosives.dm +++ b/code/game/objects/items/weapons/explosives.dm @@ -25,7 +25,7 @@ /obj/item/weapon/c4/suicide_act(var/mob/user) . = (BRUTELOSS) - viewers(user) << "[user] activates the C4 and holds it above his head! It looks like \he's going out with a bang!" + to_chat(viewers(user), "[user] activates the C4 and holds it above his head! It looks like \he's going out with a bang!") var/message_say = "FOR NO RAISIN!" if(user.mind) if(user.mind.special_role) @@ -55,7 +55,7 @@ /obj/item/weapon/c4/attackby(var/obj/item/I, var/mob/user, params) if(istype(I, /obj/item/weapon/screwdriver)) open_panel = !open_panel - user << "You [open_panel ? "open" : "close"] the wire panel." + to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.") else if(istype(I, /obj/item/weapon/wirecutters) || istype(I, /obj/item/device/multitool) || istype(I, /obj/item/device/assembly/signaler )) wires.Interact(user) else @@ -70,7 +70,7 @@ if(newtime > 60000) newtime = 60000 timer = newtime - user << "Timer set for [timer] seconds." + to_chat(user, "Timer set for [timer] seconds.") /obj/item/weapon/c4/afterattack(atom/target as obj|turf, mob/user as mob, flag) @@ -78,7 +78,7 @@ return if (ismob(target) || istype(target, /turf/unsimulated) || istype(target, /turf/simulated/shuttle) || istype(target, /obj/item/weapon/storage) || istype(target, /obj/item/clothing/accessory/storage) || istype(target, /obj/item/clothing/under)) return - user << "Planting explosives..." + to_chat(user, "Planting explosives...") if(do_after(user, 50, target = target) && in_range(user, target)) user.drop_item() @@ -96,7 +96,7 @@ log_game("[key_name(user)] planted [src.name] on [target.name] at ([target.x],[target.y],[target.z]) with [timer] second fuse") target.overlays += image('icons/obj/assemblies.dmi', "plastic-explosive2") - user << "Bomb has been planted. Timer counting down from [timer]." + to_chat(user, "Bomb has been planted. Timer counting down from [timer].") spawn(timer*10) explode(get_turf(target)) diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm index d10df5735b0..0cd8f88dd99 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -37,10 +37,10 @@ /obj/item/weapon/extinguisher/examine(mob/user) if(..(user, 0)) - usr << "\icon[src] [src.name] contains:" + to_chat(usr, "\icon[src] [src.name] contains:") if(reagents && reagents.reagent_list.len) for(var/datum/reagent/R in reagents.reagent_list) - user << "\blue [R.volume] units of [R.name]" + to_chat(user, "\blue [R.volume] units of [R.name]") /obj/item/weapon/extinguisher/New() @@ -51,7 +51,7 @@ safety = !safety src.icon_state = "[sprite_name][!safety]" src.desc = "The safety is [safety ? "on" : "off"]." - user << "The safety is [safety ? "on" : "off"]." + to_chat(user, "The safety is [safety ? "on" : "off"].") return /obj/item/weapon/extinguisher/proc/AttemptRefill(atom/target, mob/user) @@ -59,18 +59,18 @@ var/safety_save = safety safety = 1 if(reagents.total_volume == reagents.maximum_volume) - user << "\The [src] is already full!" + to_chat(user, "\The [src] is already full!") safety = safety_save return 1 var/obj/structure/reagent_dispensers/watertank/W = target var/transferred = W.reagents.trans_to(src, max_water) if(transferred > 0) - user << "\The [src] has been refilled by [transferred] units" + to_chat(user, "\The [src] has been refilled by [transferred] units") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) for(var/datum/reagent/water/R in reagents.reagent_list) R.cooling_temperature = cooling_power else - user << "\The [W] is empty!" + to_chat(user, "\The [W] is empty!") safety = safety_save return 1 else @@ -85,7 +85,7 @@ return if (!safety) if (src.reagents.total_volume < 1) - usr << "\The [src] is empty." + to_chat(usr, "\The [src] is empty.") return if (world.time < src.last_use + 20) diff --git a/code/game/objects/items/weapons/fireworks.dm b/code/game/objects/items/weapons/fireworks.dm index 132dd4306f3..389eb1738d6 100644 --- a/code/game/objects/items/weapons/fireworks.dm +++ b/code/game/objects/items/weapons/fireworks.dm @@ -9,7 +9,7 @@ obj/item/weapon/firework/attackby(obj/item/weapon/W,mob/user, params) return if (istype(W, /obj/item/weapon/weldingtool) && W:welding || istype(W,/obj/item/weapon/lighter) && W:lit) for(var/mob/M in viewers(user)) - M << "[user] lits \the [src]" + to_chat(M, "[user] lits \the [src]") litzor = 1 icon_state = "rocket_1" S = new() @@ -31,7 +31,7 @@ obj/item/weapon/sparkler/attackby(obj/item/weapon/W,mob/user, params) return if (istype(W, /obj/item/weapon/weldingtool) && W:welding || istype(W,/obj/item/weapon/lighter) && W:lit) for(var/mob/M in viewers(user)) - M << "[user] lits \the [src]" + to_chat(M, "[user] lits \the [src]") litzor = 1 icon_state = "sparkler_1" var/b = rand(5,9) diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm index 1486cb4473d..75c1b030ed4 100644 --- a/code/game/objects/items/weapons/flamethrower.dm +++ b/code/game/objects/items/weapons/flamethrower.dm @@ -93,7 +93,7 @@ if(isscrewdriver(W) && igniter && !lit) status = !status - user << "[igniter] is now [status ? "secured" : "unsecured"]!" + to_chat(user, "[igniter] is now [status ? "secured" : "unsecured"]!") update_icon() return @@ -109,7 +109,7 @@ if(istype(W,/obj/item/weapon/tank/plasma)) if(ptank) - user << "There appears to already be a plasma tank loaded in [src]!" + to_chat(user, "There appears to already be a plasma tank loaded in [src]!") return user.drop_item() ptank = W @@ -127,7 +127,7 @@ if(user.stat || user.restrained() || user.lying) return user.set_machine(src) if(!ptank) - user << "Attach a plasma tank first!" + to_chat(user, "Attach a plasma tank first!") return var/dat = text("Flamethrower ([lit ? "Lit" : "Unlit"])
\n Tank Pressure: [ptank.air_contents.return_pressure()]
\nAmount to throw: - - - [throw_amount] + + +
\nRemove plasmatank - Close
") user << browse(dat, "window=flamethrower;size=600x300") diff --git a/code/game/objects/items/weapons/garrote.dm b/code/game/objects/items/weapons/garrote.dm index 80114bd5dd7..e6b0ff92c32 100644 --- a/code/game/objects/items/weapons/garrote.dm +++ b/code/game/objects/items/weapons/garrote.dm @@ -55,11 +55,11 @@ var/mob/living/carbon/human/U = user if(!wielded) - user << "You must use both hands to garrote [M]!" + to_chat(user, "You must use both hands to garrote [M]!") return if(!istype(M, /mob/living/carbon/human)) - user << "You don't think that garroting [M] would be very effective..." + to_chat(user, "You don't think that garroting [M] would be very effective...") return if(M == U) @@ -67,14 +67,14 @@ return if(M.dir != U.dir) - user << "You cannot use [src] on [M] from that angle!" + to_chat(user, "You cannot use [src] on [M] from that angle!") return if(improvised && ((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH)))) // Improvised garrotes are blocked by mouth-covering items. - user << "[M]'s neck is blocked by something they're wearing!" + to_chat(user, "[M]'s neck is blocked by something they're wearing!") if(strangling) - user << "You cannot use [src] on two people at once!" + to_chat(user, "You cannot use [src] on two people at once!") return unwield(U) diff --git a/code/game/objects/items/weapons/gift_wrappaper.dm b/code/game/objects/items/weapons/gift_wrappaper.dm index 8ca714d7666..00433885ad5 100644 --- a/code/game/objects/items/weapons/gift_wrappaper.dm +++ b/code/game/objects/items/weapons/gift_wrappaper.dm @@ -30,7 +30,7 @@ user.put_in_active_hand(gift) src.gift.add_fingerprint(user) else - user << "\blue The gift was empty!" + to_chat(user, "\blue The gift was empty!") qdel(src) return @@ -41,16 +41,16 @@ /obj/effect/spresent/relaymove(mob/user as mob) if (user.stat) return - user << "\blue You cant move." + to_chat(user, "\blue You cant move.") /obj/effect/spresent/attackby(obj/item/weapon/W as obj, mob/user as mob, params) ..() if (!istype(W, /obj/item/weapon/wirecutters)) - user << "\blue I need wirecutters for that." + to_chat(user, "\blue I need wirecutters for that.") return - user << "\blue You cut open the present." + to_chat(user, "\blue You cut open the present.") for(var/mob/M in src) //Should only be one but whatever. M.loc = src.loc @@ -141,4 +141,4 @@ max_amount = 25 /obj/item/stack/wrapping_paper/attack_self(mob/user) - user << "You need to use it on a package that has already been wrapped!" \ No newline at end of file + to_chat(user, "You need to use it on a package that has already been wrapped!") diff --git a/code/game/objects/items/weapons/grenades/bananade.dm b/code/game/objects/items/weapons/grenades/bananade.dm index bbb86c31442..12e2e111d21 100644 --- a/code/game/objects/items/weapons/grenades/bananade.dm +++ b/code/game/objects/items/weapons/grenades/bananade.dm @@ -40,20 +40,20 @@ var/turf/T /obj/item/weapon/grenade/bananade/casing/attackby(var/obj/item/I, mob/user as mob, params) if(istype(I, /obj/item/weapon/bananapeel)) if(fillamt < 9) - usr << "You add another banana peel to the assembly." + to_chat(usr, "You add another banana peel to the assembly.") fillamt += 1 qdel(I) else - usr << "The bananade is full, screwdriver it shut to lock it down." + to_chat(usr, "The bananade is full, screwdriver it shut to lock it down.") if(istype(I, /obj/item/weapon/screwdriver)) if(fillamt) var/obj/item/weapon/grenade/bananade/G = new /obj/item/weapon/grenade/bananade user.unEquip(src) user.put_in_hands(G) G.deliveryamt = src.fillamt - user << "You lock the assembly shut, readying it for HONK." + to_chat(user, "You lock the assembly shut, readying it for HONK.") qdel(src) else - usr << "You need to add banana peels before you can ready the grenade!." + to_chat(usr, "You need to add banana peels before you can ready the grenade!.") else - usr << "Only banana peels fit in this assembly, up to 9." \ No newline at end of file + to_chat(usr, "Only banana peels fit in this assembly, up to 9.") diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index cb31bd859e3..149cc03a866 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -93,7 +93,7 @@ message_admins("[key_name_admin(usr)] has primed a [name] for detonation at [A.name] (JMP)") log_game("[key_name(usr)] has primed a [name] for detonation at [A.name] ([bombturf.x],[bombturf.y],[bombturf.z])") bombers += "[key_name(usr)] has primed a [name] for detonation at [A.name] ([bombturf.x],[bombturf.y],[bombturf.z])" - user << "You prime the [name]! [det_time / 10] second\s!" + to_chat(user, "You prime the [name]! [det_time / 10] second\s!") active = 1 update_icon() if(iscarbon(user)) @@ -113,12 +113,12 @@ if(label) label = null update_icon() - user << "You remove the label from [src]." + to_chat(user, "You remove the label from [src].") return 1 if(istype(I, /obj/item/weapon/screwdriver)) if(stage == WIRED) if(beakers.len) - user << "You lock the assembly." + to_chat(user, "You lock the assembly.") playsound(loc, 'sound/items/Screwdriver.ogg', 25, -3) stage = READY update_icon() @@ -140,25 +140,25 @@ message_admins("[key_name_admin(usr)] has completed [name] at [A.name] (JMP) [contained].") log_game("[key_name(usr)] has completed [name] at [bombturf.x], [bombturf.y], [bombturf.z].") else - user << "You need to add at least one beaker before locking the assembly." + to_chat(user, "You need to add at least one beaker before locking the assembly.") else if(stage == READY && !nadeassembly) det_time = det_time == 50 ? 30 : 50 //toggle between 30 and 50 - user << "You modify the time delay. It's set for [det_time / 10] second\s." + to_chat(user, "You modify the time delay. It's set for [det_time / 10] second\s.") else if(stage == EMPTY) - user << "You need to add an activation mechanism." + to_chat(user, "You need to add an activation mechanism.") else if(stage == WIRED && is_type_in_list(I, allowed_containers)) if(beakers.len == 2) - user << "[src] can not hold more containers." + to_chat(user, "[src] can not hold more containers.") return else if(I.reagents.total_volume) - user << "You add [I] to the assembly." + to_chat(user, "You add [I] to the assembly.") user.drop_item() I.loc = src beakers += I else - user << "[I] is empty." + to_chat(user, "[I] is empty.") else if(stage == EMPTY && istype(I, /obj/item/device/assembly_holder)) var/obj/item/device/assembly_holder/A = I @@ -173,7 +173,7 @@ A.loc = src assemblyattacher = user.ckey stage = WIRED - user << "You add [A] to [src]!" + to_chat(user, "You add [A] to [src]!") update_icon() else if(stage == EMPTY && istype(I, /obj/item/stack/cable_coil)) @@ -181,16 +181,16 @@ C.use(1) stage = WIRED - user << "You rig [src]." + to_chat(user, "You rig [src].") update_icon() else if(stage == READY && istype(I, /obj/item/weapon/wirecutters)) - user << "You unlock the assembly." + to_chat(user, "You unlock the assembly.") stage = WIRED update_icon() else if(stage == WIRED && istype(I, /obj/item/weapon/wrench)) - user << "You open the grenade and remove the contents." + to_chat(user, "You open the grenade and remove the contents.") stage = EMPTY payload_name = null label = null @@ -382,7 +382,7 @@ //make a special case you might as well do it explicitly. -Sayu /obj/item/weapon/grenade/chem_grenade/large/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/slime_extract) && stage == WIRED) - user << "You add [I] to the assembly." + to_chat(user, "You add [I] to the assembly.") user.drop_item() I.loc = src beakers += I diff --git a/code/game/objects/items/weapons/grenades/clowngrenade.dm b/code/game/objects/items/weapons/grenades/clowngrenade.dm index 8525a27378c..705b6a57095 100644 --- a/code/game/objects/items/weapons/grenades/clowngrenade.dm +++ b/code/game/objects/items/weapons/grenades/clowngrenade.dm @@ -69,7 +69,7 @@ if((M:shoes.flags&NOSLIP) || (M:species.bodyflags & FEET_NOSLIP)) return else - M << "\red Your feet feel like they're on fire!" + to_chat(M, "\red Your feet feel like they're on fire!") M.take_overall_damage(0, max(0, (burned - 2))) if(!istype(M, /mob/living/carbon/slime) && !isrobot(M)) diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index bb9f1ab159d..90ccef1d163 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -29,7 +29,7 @@ //Flash if(M.weakeyes) M.visible_message("[M] screams and collapses!") - M << "AAAAGH!" + to_chat(M, "AAAAGH!") M.Weaken(15) //hella stunned M.Stun(15) if(ishuman(M)) @@ -54,10 +54,10 @@ M.ear_damage += rand(0, 5) M.ear_deaf = max(M.ear_deaf,15) if (M.ear_damage >= 15) - M << "Your ears start to ring badly!" + to_chat(M, "Your ears start to ring badly!") if(prob(M.ear_damage - 10 + 5)) - M << "You can't hear anything!" + to_chat(M, "You can't hear anything!") M.disabilities |= DEAF else if (M.ear_damage >= 5) - M << "Your ears start to ring!" \ No newline at end of file + to_chat(M, "Your ears start to ring!") diff --git a/code/game/objects/items/weapons/grenades/ghettobomb.dm b/code/game/objects/items/weapons/grenades/ghettobomb.dm index c0f619244e6..1a6959e8944 100644 --- a/code/game/objects/items/weapons/grenades/ghettobomb.dm +++ b/code/game/objects/items/weapons/grenades/ghettobomb.dm @@ -8,7 +8,7 @@ user.unEquip(G) user.unEquip(src) user.put_in_hands(W) - user << "You stuff the [I] in the [src], emptying the contents beforehand." + to_chat(user, "You stuff the [I] in the [src], emptying the contents beforehand.") W.underlays += image(src.icon, icon_state = src.icon_state) qdel(I) qdel(src) @@ -38,12 +38,12 @@ if(assembled == 0) if( istype(target, /obj/structure/reagent_dispensers/fueltank)) if(target.reagents.total_volume < 50) - user << "There's not enough fuel left to work with." + to_chat(user, "There's not enough fuel left to work with.") return var/obj/structure/reagent_dispensers/fueltank/F = target F.reagents.remove_reagent("fuel", 50, 1)//Deleting 50 fuel from the welding fuel tank, assembled = 1 - user << "You've filled the makeshift explosive with welding fuel." + to_chat(user, "You've filled the makeshift explosive with welding fuel.") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) desc = "An improvised explosive assembly. Filled to the brim with 'Explosive flavor'" overlays += image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_filled") @@ -56,7 +56,7 @@ var/obj/item/stack/cable_coil/C = I C.use(1) assembled = 2 - user << "You wire the igniter to detonate the fuel." + to_chat(user, "You wire the igniter to detonate the fuel.") desc = "A weak, improvised explosive." overlays += image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_wired") name = "improvised explosive" @@ -102,7 +102,7 @@ /obj/item/weapon/grenade/iedcasing/attack_self(mob/user as mob) // if(!active) if(clown_check(user)) - user << "You light the [name]!" + to_chat(user, "You light the [name]!") active = 1 overlays -= image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_filled") icon_state = initial(icon_state) + "_active" @@ -125,4 +125,4 @@ /obj/item/weapon/grenade/iedcasing/examine(mob/user) ..(user) - user << "You can't tell when it will explode!" + to_chat(user, "You can't tell when it will explode!") diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index b2cd9a8981e..33b0fc411bb 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -15,7 +15,7 @@ /obj/item/weapon/grenade/proc/clown_check(var/mob/living/user) if((CLUMSY in user.mutations) && prob(50)) - user << "Huh? How does this thing work?" + to_chat(user, "Huh? How does this thing work?") active = 1 icon_state = initial(icon_state) + "_active" playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) @@ -31,7 +31,7 @@ if (istype(target, /obj/item/weapon/storage)) return ..() // Trying to put it in a full container if (istype(target, /obj/item/weapon/gun/grenadelauncher)) return ..() if((user.get_active_hand() == src) && (!active) && (clown_check(user)) && target.loc != src.loc) - user << "You prime the [name]! [det_time/10] seconds!" + to_chat(user, "You prime the [name]! [det_time/10] seconds!") active = 1 icon_state = initial(icon_state) + "_active" playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) @@ -49,14 +49,14 @@ ..(user) if(display_timer) if(det_time > 1) - user << "The timer is set to [det_time/10] second\s." + to_chat(user, "The timer is set to [det_time/10] second\s.") else - user << "\The [src] is set for instant detonation." + to_chat(user, "\The [src] is set for instant detonation.") /obj/item/weapon/grenade/attack_self(mob/user as mob) if(!active) if(clown_check(user)) - user << "You prime the [name]! [det_time/10] seconds!" + to_chat(user, "You prime the [name]! [det_time/10] seconds!") active = 1 icon_state = initial(icon_state) + "_active" add_fingerprint(user) @@ -85,16 +85,16 @@ switch(det_time) if ("1") det_time = 10 - user << "You set the [name] for 1 second detonation time." + to_chat(user, "You set the [name] for 1 second detonation time.") if ("10") det_time = 30 - user << "You set the [name] for 3 second detonation time." + to_chat(user, "You set the [name] for 3 second detonation time.") if ("30") det_time = 50 - user << "You set the [name] for 5 second detonation time." + to_chat(user, "You set the [name] for 5 second detonation time.") if ("50") det_time = 1 - user << "You set the [name] for instant detonation." + to_chat(user, "You set the [name] for instant detonation.") add_fingerprint(user) ..() diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index 5f93c6a095c..b111501820f 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -21,7 +21,7 @@ return if(CLUMSY in user.mutations && prob(50)) - user << "Uh... how do those things work?!" + to_chat(user, "Uh... how do those things work?!") apply_cuffs(user,user) if(!C.handcuffed) @@ -31,7 +31,7 @@ playsound(loc, cuffsound, 30, 1, -2) if(do_mob(user, C, 30)) apply_cuffs(C,user) - user << "You handcuff [C]." + to_chat(user, "You handcuff [C].") if(istype(src, /obj/item/weapon/restraints/handcuffs/cable)) feedback_add_details("handcuffs","C") else @@ -39,7 +39,7 @@ add_logs(C, user, "handcuffed", src) else - user << "You fail to handcuff [C]." + to_chat(user, "You fail to handcuff [C].") /obj/item/weapon/restraints/handcuffs/proc/apply_cuffs(mob/living/carbon/target, mob/user) if(!target.handcuffed) @@ -99,10 +99,10 @@ if(!remove_item_from_storage(user)) user.unEquip(src) user.put_in_hands(W) - user << "You wrap the cable restraint around the top of the rod." + to_chat(user, "You wrap the cable restraint around the top of the rod.") qdel(src) else - user << "You need one rod to make a wired rod." + to_chat(user, "You need one rod to make a wired rod.") return /obj/item/weapon/restraints/handcuffs/cable/zipties @@ -122,10 +122,10 @@ if(!C.handcuffed) C.handcuffed = new /obj/item/weapon/restraints/handcuffs/cable/zipties/used(C) C.update_inv_handcuffed(1) - user << "You handcuff [C]." + to_chat(user, "You handcuff [C].") add_logs(C, user, "ziptie-cuffed") else - user << "You fail to handcuff [C]." + to_chat(user, "You fail to handcuff [C].") /obj/item/weapon/restraints/handcuffs/cable/zipties/used desc = "A pair of broken zipties." @@ -173,17 +173,17 @@ if(ishuman(user) && !user.stat && !user.restrained()) armed = !armed icon_state = "beartrap[armed]" - user << "[src] is now [armed ? "armed" : "disarmed"]" + to_chat(user, "[src] is now [armed ? "armed" : "disarmed"]") /obj/item/weapon/restraints/legcuffs/beartrap/attackby(var/obj/item/I, mob/user as mob) //Let's get explosive. if(istype(I, /obj/item/weapon/grenade/iedcasing)) if(IED) - user << "This beartrap already has an IED hooked up to it!" + to_chat(user, "This beartrap already has an IED hooked up to it!") return IED = I switch(IED.assembled) if(0,1) //if it's not fueled/hooked up - user << "You haven't prepared this IED yet!" + to_chat(user, "You haven't prepared this IED yet!") IED = null return if(2,3) @@ -191,17 +191,17 @@ I.forceMove(src) message_admins("[key_name_admin(user)] has rigged a beartrap with an IED.") log_game("[key_name(user)] has rigged a beartrap with an IED.") - user << "You sneak the [IED] underneath the pressure plate and connect the trigger wire." + to_chat(user, "You sneak the [IED] underneath the pressure plate and connect the trigger wire.") desc = "A trap used to catch bears and other legged creatures. There is an IED hooked up to it." else - user << "You shouldn't be reading this message! Contact a coder or someone, something broke!" + to_chat(user, "You shouldn't be reading this message! Contact a coder or someone, something broke!") IED = null return if(istype(I, /obj/item/weapon/screwdriver)) if(IED) IED.forceMove(get_turf(src)) IED = null - user << "You remove the IED from the [src]." + to_chat(user, "You remove the IED from the [src].") return ..() diff --git a/code/game/objects/items/weapons/holosign.dm b/code/game/objects/items/weapons/holosign.dm index 49b6a7ad645..5912a055a34 100644 --- a/code/game/objects/items/weapons/holosign.dm +++ b/code/game/objects/items/weapons/holosign.dm @@ -18,16 +18,16 @@ var/turf/T = get_turf(target) var/obj/effect/overlay/holograph/H = locate() in T if(H) - user << "You use [src] to destroy [H]." + to_chat(user, "You use [src] to destroy [H].") signs -= H qdel(H) else if(signs.len < max_signs) H = new(get_turf(target)) signs += H - user << "You create \a [H] with [src]." + to_chat(user, "You create \a [H] with [src].") else - user << "[src] is projecting at max capacity!" + to_chat(user, "[src] is projecting at max capacity!") /obj/item/weapon/holosign_creator/attack(mob/living/carbon/human/M, mob/user) return @@ -38,7 +38,7 @@ for(var/sign in L) qdel(sign) signs -= sign - user << "You clear all active holograms." + to_chat(user, "You clear all active holograms.") /obj/effect/overlay/holograph name = "wet floor sign" diff --git a/code/game/objects/items/weapons/implants/implant_chem.dm b/code/game/objects/items/weapons/implants/implant_chem.dm index a0540dbe79c..33025b0a41f 100644 --- a/code/game/objects/items/weapons/implants/implant_chem.dm +++ b/code/game/objects/items/weapons/implants/implant_chem.dm @@ -46,9 +46,9 @@ else injectamount = cause reagents.trans_to(R, injectamount) - R << "You hear a faint beep." + to_chat(R, "You hear a faint beep.") if(!reagents.total_volume) - R << "You hear a faint click from your chest." + to_chat(R, "You hear a faint click from your chest.") qdel(src) diff --git a/code/game/objects/items/weapons/implants/implant_explosive.dm b/code/game/objects/items/weapons/implants/implant_explosive.dm index 3006a437943..c7e0fa67ef1 100644 --- a/code/game/objects/items/weapons/implants/implant_explosive.dm +++ b/code/game/objects/items/weapons/implants/implant_explosive.dm @@ -31,7 +31,7 @@ heavy = round(heavy) medium = round(medium) weak = round(weak) - imp_in << "You activate your microbomb implant." + to_chat(imp_in, "You activate your microbomb implant.") //If the delay is short, just blow up already jeez if(delay <= 7) explosion(src,heavy,medium,weak,weak, flame_range = weak) @@ -85,7 +85,7 @@ if(!cause || !imp_in) return 0 if(cause == "action_button" && alert(imp_in, "Are you sure you want to activate your macrobomb implant? This will cause you to explode and gib!", "Macrobomb Implant Confirmation", "Yes", "No") != "Yes") return 0 - imp_in << "You activate your macrobomb implant." + to_chat(imp_in, "You activate your macrobomb implant.") timed_explosion() /obj/item/weapon/implant/explosive/macro/implant(mob/source) diff --git a/code/game/objects/items/weapons/implants/implant_freedom.dm b/code/game/objects/items/weapons/implants/implant_freedom.dm index e3e70e982a2..f94772787e2 100644 --- a/code/game/objects/items/weapons/implants/implant_freedom.dm +++ b/code/game/objects/items/weapons/implants/implant_freedom.dm @@ -10,7 +10,7 @@ /obj/item/weapon/implant/freedom/activate() if(uses == 0) return 0 if(uses != -1) uses-- - imp_in << "You feel a faint click." + to_chat(imp_in, "You feel a faint click.") if(iscarbon(imp_in)) var/mob/living/carbon/C_imp_in = imp_in C_imp_in.uncuff() diff --git a/code/game/objects/items/weapons/implants/implant_loyality.dm b/code/game/objects/items/weapons/implants/implant_loyality.dm index 088c70bf3c1..0c4b5c44648 100644 --- a/code/game/objects/items/weapons/implants/implant_loyality.dm +++ b/code/game/objects/items/weapons/implants/implant_loyality.dm @@ -27,16 +27,16 @@ if(target.mind in ticker.mode.revolutionaries) ticker.mode.remove_revolutionary(target.mind) if(target.mind in ticker.mode.cult) - target << "You feel the corporate tendrils of Nanotrasen try to invade your mind!" + to_chat(target, "You feel the corporate tendrils of Nanotrasen try to invade your mind!") else - target << "You feel a surge of loyalty towards Nanotrasen." + to_chat(target, "You feel a surge of loyalty towards Nanotrasen.") return 1 return 0 /obj/item/weapon/implant/loyalty/removed(mob/target, var/silent = 0) if(..()) if(target.stat != DEAD && !silent) - target << "You feel a sense of liberation as Nanotrasen's grip on your mind fades away." + to_chat(target, "You feel a sense of liberation as Nanotrasen's grip on your mind fades away.") return 1 return 0 diff --git a/code/game/objects/items/weapons/implants/implant_misc.dm b/code/game/objects/items/weapons/implants/implant_misc.dm index 79b7285e2d4..ae369138ebd 100644 --- a/code/game/objects/items/weapons/implants/implant_misc.dm +++ b/code/game/objects/items/weapons/implants/implant_misc.dm @@ -35,7 +35,7 @@ /obj/item/weapon/implant/adrenalin/activate() if(uses < 1) return 0 uses-- - imp_in << "You feel a sudden surge of energy!" + to_chat(imp_in, "You feel a sudden surge of energy!") imp_in.SetStunned(0) imp_in.SetWeakened(0) imp_in.SetParalysis(0) diff --git a/code/game/objects/items/weapons/implants/implant_traitor.dm b/code/game/objects/items/weapons/implants/implant_traitor.dm index fdb30eaae8e..547206da29c 100644 --- a/code/game/objects/items/weapons/implants/implant_traitor.dm +++ b/code/game/objects/items/weapons/implants/implant_traitor.dm @@ -31,7 +31,7 @@ if(!M.mind) return 0 if(M == user) - user << "Making yourself loyal to yourself was a great idea! Perhaps even the best idea ever! Actually, you just feel like an idiot." + to_chat(user, "Making yourself loyal to yourself was a great idea! Perhaps even the best idea ever! Actually, you just feel like an idiot.") if(isliving(user)) var/mob/living/L = user L.adjustBrainLoss(20) @@ -44,7 +44,7 @@ qdel(src) return -1 H.implanting = 1 - H << "You feel completely loyal to [user.name]." + to_chat(H, "You feel completely loyal to [user.name].") if(!(user.mind in ticker.mode:implanter)) ticker.mode:implanter[ref] = list() implanters = ticker.mode:implanter[ref] @@ -55,14 +55,14 @@ ticker.mode:implanter[ref] = implanters ticker.mode.traitors += H.mind H.mind.special_role = "traitor" - H << "You're now completely loyal to [user.name]! You now must lay down your life to protect them and assist in their goals at any cost." + to_chat(H, "You're now completely loyal to [user.name]! You now must lay down your life to protect them and assist in their goals at any cost.") var/datum/objective/protect/p = new p.owner = H.mind p.target = user:mind p.explanation_text = "Obey every order from and protect [user:real_name], the [user:mind:assigned_role=="MODE" ? (user:mind:special_role) : (user:mind:assigned_role)]." H.mind.objectives += p for(var/datum/objective/objective in H.mind.objectives) - H << "Objective #1: [objective.explanation_text]" + to_chat(H, "Objective #1: [objective.explanation_text]") ticker.mode.update_traitor_icons_added(user.mind) ticker.mode.update_traitor_icons_added(H.mind)//handles datahuds/observerhuds diff --git a/code/game/objects/items/weapons/implants/implantchair.dm b/code/game/objects/items/weapons/implants/implantchair.dm index 9a5633c0ba3..0820cc097c9 100644 --- a/code/game/objects/items/weapons/implants/implantchair.dm +++ b/code/game/objects/items/weapons/implants/implantchair.dm @@ -81,7 +81,7 @@ return var/mob/M = G.affecting if(M.buckled_mob) - usr << "[M] will not fit into [src] because they have a slime latched onto their head." + to_chat(usr, "[M] will not fit into [src] because they have a slime latched onto their head.") return if(put_mob(M)) qdel(G) @@ -108,10 +108,10 @@ /obj/machinery/implantchair/put_mob(mob/living/carbon/M) if(!iscarbon(M)) - usr << "The [src.name] cannot hold this!" + to_chat(usr, "The [src.name] cannot hold this!") return if(src.occupant) - usr << "The [src.name] is already occupied!" + to_chat(usr, "The [src.name] is already occupied!") return if(M.client) M.client.perspective = EYE_PERSPECTIVE diff --git a/code/game/objects/items/weapons/implants/implanter.dm b/code/game/objects/items/weapons/implants/implanter.dm index 0fd4aaa2218..2d7d3e0a956 100644 --- a/code/game/objects/items/weapons/implants/implanter.dm +++ b/code/game/objects/items/weapons/implants/implanter.dm @@ -33,7 +33,7 @@ if(user && M && (get_turf(M) == T) && src && imp) if(imp.implant(M, user)) if (M == user) - user << "You implant yourself." + to_chat(user, "You implant yourself.") else M.visible_message("[user] has implanted [M].", "[user] implants you.") imp = null diff --git a/code/game/objects/items/weapons/implants/implantpad.dm b/code/game/objects/items/weapons/implants/implantpad.dm index 98aca2efe5d..e89e5f737ed 100644 --- a/code/game/objects/items/weapons/implants/implantpad.dm +++ b/code/game/objects/items/weapons/implants/implantpad.dm @@ -27,7 +27,7 @@ if(!user || !C) return if(case) - user << "There's already an implant in the pad!" + to_chat(user, "There's already an implant in the pad!") return user.unEquip(C) C.forceMove(src) @@ -36,7 +36,7 @@ /obj/item/weapon/implantpad/proc/dropcase(mob/user as mob) if(!case) - user << "There's no implant in the pad!" + to_chat(user, "There's no implant in the pad!") return if(user) if(user.put_in_hands(case)) diff --git a/code/game/objects/items/weapons/legcuffs.dm b/code/game/objects/items/weapons/legcuffs.dm index 16fc9f046bd..88c555d8148 100644 --- a/code/game/objects/items/weapons/legcuffs.dm +++ b/code/game/objects/items/weapons/legcuffs.dm @@ -31,7 +31,7 @@ var/thrown_from /obj/item/weapon/legcuffs/bolas/suicide_act(mob/living/user) - viewers(user) << "[user] is wrapping the [src.name] around \his neck! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is wrapping the [src.name] around \his neck! It looks like \he's trying to commit suicide.") return(OXYLOSS) /obj/item/weapon/legcuffs/bolas/throw_at(var/atom/A, throw_range, throw_speed) @@ -39,7 +39,7 @@ if(istype(usr, /mob/living/carbon/human)) //if the user is human var/mob/living/carbon/human/H = usr if((CLUMSY in H.mutations) && prob(50)) - H <<"You smack yourself in the face while swinging the [src]!" + to_chat(H, "You smack yourself in the face while swinging the [src]!") H.Stun(2) H.drop_item(src) return diff --git a/code/game/objects/items/weapons/lighters.dm b/code/game/objects/items/weapons/lighters.dm index d80c28704ad..3f19d6a494b 100644 --- a/code/game/objects/items/weapons/lighters.dm +++ b/code/game/objects/items/weapons/lighters.dm @@ -45,7 +45,7 @@ if(prob(75)) user.visible_message("After a few attempts, [user] manages to light the [src].") else - user << "You burn yourself while lighting the lighter." + to_chat(user, "You burn yourself while lighting the lighter.") user.adjustFireLoss(5) user.visible_message("After a few attempts, [user] manages to light the [src], they however burn their finger in the process.") diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm index 040a42b4cb8..e3c65c2f35b 100644 --- a/code/game/objects/items/weapons/melee/energy.dm +++ b/code/game/objects/items/weapons/melee/energy.dm @@ -16,7 +16,7 @@ /obj/item/weapon/melee/energy/attack_self(mob/living/carbon/user) if(user.disabilities & CLUMSY && prob(50)) - user << "You accidentally cut yourself with [src], like a doofus!" + to_chat(user, "You accidentally cut yourself with [src], like a doofus!") user.take_organ_damage(5,5) active = !active if (active) @@ -31,7 +31,7 @@ icon_state = "sword[item_color]" w_class = w_class_on playsound(user, 'sound/weapons/saberon.ogg', 35, 1) //changed it from 50% volume to 35% because deafness - user << "[src] is now active." + to_chat(user, "[src] is now active.") else force = initial(force) throwforce = initial(throwforce) @@ -41,7 +41,7 @@ icon_state = initial(icon_state) w_class = initial(w_class) playsound(user, 'sound/weapons/saberoff.ogg', 35, 1) //changed it from 50% volume to 35% because deafness - user << "[src] can now be concealed." + to_chat(user, "[src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() @@ -106,7 +106,7 @@ var/obj/item/weapon/stock_parts/cell/C = R.cell if(active && !(C.use(hitcost))) attack_self() - R << "It's out of charge!" + to_chat(R, "It's out of charge!") return ..() return @@ -152,11 +152,11 @@ ..() if(istype(W, /obj/item/weapon/melee/energy/sword/saber)) if(W == src) - user << "You try to attach the end of the energy sword to... itself. You're not very smart, are you?" + to_chat(user, "You try to attach the end of the energy sword to... itself. You're not very smart, are you?") if(ishuman(user)) user.adjustBrainLoss(10) else - user << "You attach the ends of the two energy swords, making a single double-bladed weapon! You're cool." + to_chat(user, "You attach the ends of the two energy swords, making a single double-bladed weapon! You're cool.") var/obj/item/weapon/twohanded/dualsaber/newSaber = new /obj/item/weapon/twohanded/dualsaber(user.loc) if(src.hacked) // That's right, we'll only check the "original" esword. newSaber.hacked = 1 @@ -170,7 +170,7 @@ if(hacked == 0) hacked = 1 item_color = "rainbow" - user << "RNBW_ENGAGE" + to_chat(user, "RNBW_ENGAGE") if(active) icon_state = "swordrainbow" @@ -182,7 +182,7 @@ user.update_inv_l_hand() else - user << "It's already fabulous!" + to_chat(user, "It's already fabulous!") /obj/item/weapon/melee/energy/sword/pirate name = "energy cutlass" diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm index 7e95235ff4a..cedb07273c6 100644 --- a/code/game/objects/items/weapons/melee/misc.dm +++ b/code/game/objects/items/weapons/melee/misc.dm @@ -17,7 +17,7 @@ /obj/item/weapon/melee/chainofcommand/suicide_act(mob/user) - viewers(user) << "[user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.") return (OXYLOSS) diff --git a/code/game/objects/items/weapons/misc.dm b/code/game/objects/items/weapons/misc.dm index 90191efbf70..15048ae13b5 100644 --- a/code/game/objects/items/weapons/misc.dm +++ b/code/game/objects/items/weapons/misc.dm @@ -93,7 +93,7 @@ afterattack(atom/A as mob|obj|turf|area, mob/living/user as mob|obj, flag, params) var/angle = get_angle(A, user) - //world << angle +// to_chat(world, angle) angle = round(angle) + 45 if(angle > 180) angle -= 180 @@ -102,9 +102,9 @@ if(!angle) angle = 1 - //world << "adjusted [angle]" +// to_chat(world, "adjusted [angle]") icon_state = "[angle]" - //world << "[angle] [(get_dist(user, A) - 1)]" +// to_chat(world, "[angle] [(get_dist(user, A) - 1)]") user.Beam(A, "lightning", 'icons/obj/zap.dmi', 50, 15) /obj/item/weapon/newton diff --git a/code/game/objects/items/weapons/mop.dm b/code/game/objects/items/weapons/mop.dm index 521c75f63fd..7fad9cbbe5f 100644 --- a/code/game/objects/items/weapons/mop.dm +++ b/code/game/objects/items/weapons/mop.dm @@ -39,7 +39,7 @@ if(!proximity) return if(reagents.total_volume < 1) - user << "Your mop is dry!" + to_chat(user, "Your mop is dry!") return var/turf/simulated/turf = A @@ -51,7 +51,7 @@ user.visible_message("[user] begins to clean \the [turf] with [src].", "You begin to clean \the [turf] with [src]...") if(do_after(user, src.mopspeed, target = turf)) - user << "You finish mopping." + to_chat(user, "You finish mopping.") clean(turf) @@ -67,7 +67,7 @@ /obj/item/weapon/mop/wash(mob/user, atom/source) reagents.add_reagent("water", 5) - user << "You wet [src] in [source]." + to_chat(user, "You wet [src] in [source].") playsound(loc, 'sound/effects/slosh.ogg', 25, 1) return 1 diff --git a/code/game/objects/items/weapons/pneumaticCannon.dm b/code/game/objects/items/weapons/pneumaticCannon.dm index e5889b923d2..9e8f68faa73 100644 --- a/code/game/objects/items/weapons/pneumaticCannon.dm +++ b/code/game/objects/items/weapons/pneumaticCannon.dm @@ -20,25 +20,25 @@ /obj/item/weapon/pneumatic_cannon/examine(mob/user) ..() if(!in_range(user, src)) - user << "You'll need to get closer to see any more." + to_chat(user, "You'll need to get closer to see any more.") return for(var/obj/item/I in loadedItems) spawn(0) - user << "\icon [I] It has \the [I] loaded." + to_chat(user, "\icon [I] It has \the [I] loaded.") if(tank) - user << "\icon [tank] It has \the [tank] mounted onto it." + to_chat(user, "\icon [tank] It has \the [tank] mounted onto it.") /obj/item/weapon/pneumatic_cannon/attackby(obj/item/weapon/W, mob/user, params) ..() if(istype(W, /obj/item/weapon/tank/) && !tank) if(istype(W, /obj/item/weapon/tank/emergency_oxygen)) - user << "\The [W] is too small for \the [src]." + to_chat(user, "\The [W] is too small for \the [src].") return updateTank(W, 0, user) return if(W.type == type) - user << "You're fairly certain that putting a pneumatic cannon inside another pneumatic cannon would cause a spacetime disruption." + to_chat(user, "You're fairly certain that putting a pneumatic cannon inside another pneumatic cannon would cause a spacetime disruption.") return if(istype(W, /obj/item/weapon/wrench)) switch(pressureSetting) @@ -48,25 +48,25 @@ pressureSetting = 3 if(3) pressureSetting = 1 - user << "You tweak \the [src]'s pressure output to [pressureSetting]." + to_chat(user, "You tweak \the [src]'s pressure output to [pressureSetting].") return if(istype(W, /obj/item/weapon/screwdriver) && tank) updateTank(tank, 1, user) return if(loadedWeightClass >= maxWeightClass) - user << "\The [src] can't hold any more items!" + to_chat(user, "\The [src] can't hold any more items!") return if(istype(W, /obj/item)) var/obj/item/IW = W if((loadedWeightClass + IW.w_class) > maxWeightClass) - user << "\The [IW] won't fit into \the [src]!" + to_chat(user, "\The [IW] won't fit into \the [src]!") return if(IW.w_class > src.w_class) - user << "\The [IW] is too large to fit into \the [src]!" + to_chat(user, "\The [IW] is too large to fit into \the [src]!") return if(!user.unEquip(W)) return - user << "You load \the [IW] into \the [src]." + to_chat(user, "You load \the [IW] into \the [src].") loadedItems.Add(IW) loadedWeightClass += IW.w_class IW.loc = src @@ -90,13 +90,13 @@ return var/discharge = 0 if(!loadedItems || !loadedWeightClass) - user << "\The [src] has nothing loaded." + to_chat(user, "\The [src] has nothing loaded.") return if(!tank) - user << "\The [src] can't fire without a source of gas." + to_chat(user, "\The [src] can't fire without a source of gas.") return if(tank && !tank.air_contents.remove(gasPerThrow * pressureSetting)) - user << "\The [src] lets out a weak hiss and doesn't react!" + to_chat(user, "\The [src] lets out a weak hiss and doesn't react!") return if(user && (CLUMSY in user.mutations) && prob(75)) user.visible_message("[user] loses their grip on [src], causing it to go off!", "[src] slips out of your hands and goes off!") @@ -146,17 +146,17 @@ if(removing) if(!src.tank) return - user << "You detach \the [thetank] from \the [src]." + to_chat(user, "You detach \the [thetank] from \the [src].") src.tank.loc = get_turf(user) user.put_in_hands(tank) src.tank = null if(!removing) if(src.tank) - user << "\The [src] already has a tank." + to_chat(user, "\The [src] already has a tank.") return if(!user.unEquip(thetank)) return - user << "You hook \the [thetank] up to \the [src]." + to_chat(user, "You hook \the [thetank] up to \the [src].") src.tank = thetank thetank.loc = src src.update_icons() diff --git a/code/game/objects/items/weapons/power_cells.dm b/code/game/objects/items/weapons/power_cells.dm index f884e3b368b..0cb5e3c54ef 100644 --- a/code/game/objects/items/weapons/power_cells.dm +++ b/code/game/objects/items/weapons/power_cells.dm @@ -18,7 +18,7 @@ var/minor_fault = 0 //If not 100% reliable, it will build up faults. suicide_act(mob/user) - viewers(user) << "[user] is licking the electrodes of the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is licking the electrodes of the [src.name]! It looks like \he's trying to commit suicide.") return (FIRELOSS) /obj/item/weapon/stock_parts/cell/crap diff --git a/code/game/objects/items/weapons/scrolls.dm b/code/game/objects/items/weapons/scrolls.dm index 8458058c131..589f91b8302 100644 --- a/code/game/objects/items/weapons/scrolls.dm +++ b/code/game/objects/items/weapons/scrolls.dm @@ -55,7 +55,7 @@ return if(thearea.tele_proof && !istype(thearea, /area/wizard_station)) - user << "A mysterious force disrupts your arcane spell matrix, and you remain where you are." + to_chat(user, "A mysterious force disrupts your arcane spell matrix, and you remain where you are.") return var/datum/effect/system/harmless_smoke_spread/smoke = new /datum/effect/system/harmless_smoke_spread() @@ -74,7 +74,7 @@ L+=T if(!L.len) - user <<"The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry." + to_chat(user, "The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry.") return if(user && user.buckled) diff --git a/code/game/objects/items/weapons/shards.dm b/code/game/objects/items/weapons/shards.dm index 70513198e39..4add062aabc 100644 --- a/code/game/objects/items/weapons/shards.dm +++ b/code/game/objects/items/weapons/shards.dm @@ -16,8 +16,8 @@ hitsound = 'sound/weapons/bladeslice.ogg' /obj/item/weapon/shard/suicide_act(mob/user) - viewers(user) << pick("\red [user] is slitting \his wrists with \the [src]! It looks like \he's trying to commit suicide.", \ - "\red [user] is slitting \his throat with \the [src]! It looks like \he's trying to commit suicide.") + to_chat(viewers(user), pick("\red [user] is slitting \his wrists with \the [src]! It looks like \he's trying to commit suicide.", + "\red [user] is slitting \his throat with \the [src]! It looks like \he's trying to commit suicide.")) return (BRUTELOSS) /obj/item/weapon/shard/New() @@ -46,7 +46,7 @@ if(G.amount >= G.max_amount) continue G.attackby(NG, user) - user << "You add the newly-formed glass to the stack. It now contains [NG.amount] sheet\s." + to_chat(user, "You add the newly-formed glass to the stack. It now contains [NG.amount] sheet\s.") qdel(src) ..() @@ -55,7 +55,7 @@ var/mob/living/M = AM if (M.incorporeal_move || M.flying)//you are incorporal or flying..no shard stepping! return - M << "\red You step on \the [src]!" + to_chat(M, "\red You step on \the [src]!") playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds if(ishuman(M)) var/mob/living/carbon/human/H = M diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm index 222960e9a5a..86345b677ca 100644 --- a/code/game/objects/items/weapons/shields.dm +++ b/code/game/objects/items/weapons/shields.dm @@ -70,7 +70,7 @@ /obj/item/weapon/shield/energy/attack_self(mob/living/carbon/human/user) if(user.disabilities & CLUMSY && prob(50)) - user << "You beat yourself in the head with [src]." + to_chat(user, "You beat yourself in the head with [src].") user.take_organ_damage(5) active = !active icon_state = "eshield[active]" @@ -81,14 +81,14 @@ throw_speed = 2 w_class = 4 playsound(user, 'sound/weapons/saberon.ogg', 35, 1) - user << "[src] is now active." + to_chat(user, "[src] is now active.") else force = 3 throwforce = 3 throw_speed = 3 w_class = 1 playsound(user, 'sound/weapons/saberoff.ogg', 35, 1) - user << "[src] can now be concealed." + to_chat(user, "[src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() @@ -123,14 +123,14 @@ throw_speed = 2 w_class = 4 slot_flags = SLOT_BACK - user << "You extend \the [src]." + to_chat(user, "You extend \the [src].") else force = 3 throwforce = 3 throw_speed = 3 w_class = 3 slot_flags = null - user << "[src] can now be concealed." + to_chat(user, "[src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() @@ -157,10 +157,10 @@ /obj/item/weapon/cloaking_device/attack_self(mob/user as mob) src.active = !( src.active ) if (src.active) - user << "\blue The cloaking device is now active." + to_chat(user, "\blue The cloaking device is now active.") src.icon_state = "shield1" else - user << "\blue The cloaking device is now inactive." + to_chat(user, "\blue The cloaking device is now inactive.") src.icon_state = "shield0" src.add_fingerprint(user) return diff --git a/code/game/objects/items/weapons/soap.dm b/code/game/objects/items/weapons/soap.dm index 02f3289dad8..961547d362f 100644 --- a/code/game/objects/items/weapons/soap.dm +++ b/code/game/objects/items/weapons/soap.dm @@ -28,11 +28,11 @@ if(!proximity) return if(user.client && (target in user.client.screen)) - user << "You need to take that [target.name] off before 'cleaning' it." + to_chat(user, "You need to take that [target.name] off before 'cleaning' it.") else user.visible_message("[user] begins to smear [src] on \the [target.name].") if(do_after(user, src.cleanspeed, target = target)) - user << "You 'clean' \the [target.name]." + to_chat(user, "You 'clean' \the [target.name].") if(istype(target, /turf/simulated)) new /obj/effect/decal/cleanable/blood/gibs/cleangibs(target) else if (istype(target,/mob/living/carbon)) diff --git a/code/game/objects/items/weapons/staff.dm b/code/game/objects/items/weapons/staff.dm index 9cf7b4cce63..e36bed7a473 100644 --- a/code/game/objects/items/weapons/staff.dm +++ b/code/game/objects/items/weapons/staff.dm @@ -29,7 +29,7 @@ if(user.mind in ticker.mode.wizards) user.flying = wielded ? 1 : 0 if(wielded) - user << "You hold \the [src] between your legs." + to_chat(user, "You hold \the [src] between your legs.") user.say("QUID 'ITCH") animate(user, pixel_y = pixel_y + 10 , time = 10, loop = 1, easing = SINE_EASING) else @@ -40,7 +40,7 @@ user.pixel_y -= 6 else if(wielded) - user << "You hold \the [src] between your legs." + to_chat(user, "You hold \the [src] between your legs.") /obj/item/weapon/twohanded/staff/broom/attackby(var/obj/O, mob/user) if(istype(O, /obj/item/clothing/mask/horsehead)) diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index 98c626c2595..6c59e98385f 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -42,7 +42,7 @@ attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(crit_fail) - user << "\red The Bluespace generator isn't working." + to_chat(user, "\red The Bluespace generator isn't working.") return else if(istype(W, /obj/item/weapon/storage/backpack/holding) && !W.crit_fail) var/response = alert(user, "Are you sure you want to put the bag of holding inside another bag of holding?","Are you sure you want to die?","Yes","No") @@ -65,9 +65,10 @@ proc/failcheck(mob/user as mob) if (prob(src.reliability)) return 1 //No failure if (prob(src.reliability)) - user << "\red The Bluespace portal resists your attempt to add another item." //light failure + to_chat(user, "\red The Bluespace portal resists your attempt to add another item.")//light failure + else - user << "\red The Bluespace generator malfunctions!" + to_chat(user, "\red The Bluespace generator malfunctions!") for (var/obj/O in src.contents) //it broke, delete what was in it qdel(O) crit_fail = 1 diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index ef0429347f0..350bf9c5e7a 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -93,7 +93,7 @@ /obj/item/weapon/storage/bag/plasticbag/mob_can_equip(M as mob, slot) if(slot==slot_head && contents.len) - M << "\red You need to empty the bag first!" + to_chat(M, "\red You need to empty the bag first!") return 0 return ..() @@ -226,14 +226,14 @@ can_be_inserted(obj/item/W as obj, stop_messages = 0) if(!istype(W,/obj/item/stack/sheet) || istype(W,/obj/item/stack/sheet/mineral/sandstone) || istype(W,/obj/item/stack/sheet/wood)) if(!stop_messages) - usr << "The snatcher does not accept [W]." + to_chat(usr, "The snatcher does not accept [W].") return 0 //I don't care, but the existing code rejects them for not being "sheets" *shrug* -Sayu var/current = 0 for(var/obj/item/stack/sheet/S in contents) current += S.amount if(capacity == current)//If it's full, you're done if(!stop_messages) - usr << "\red The snatcher is full." + to_chat(usr, "\red The snatcher is full.") return 0 return 1 diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 118ca1855f0..daefa0db457 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -413,9 +413,10 @@ proc/failcheck(mob/user as mob) if (prob(src.reliability)) return 1 //No failure if (prob(src.reliability)) - user << "\red The Bluespace portal resists your attempt to add another item." //light failure + to_chat(user, "\red The Bluespace portal resists your attempt to add another item.")//light failure + else - user << "\red The Bluespace generator malfunctions!" + to_chat(user, "\red The Bluespace generator malfunctions!") for (var/obj/O in src.contents) //it broke, delete what was in it qdel(O) crit_fail = 1 @@ -490,7 +491,7 @@ return if (istype(target, /turf/unsimulated) || istype(target, /turf/simulated/shuttle) || istype(target, /obj/item/weapon/storage) || istype(target, /obj/structure/table) || istype(target, /obj/structure/closet)) return - user << "Planting explosives..." + to_chat(user, "Planting explosives...") user.visible_message("[user.name] is fiddling with their toolbelt.") if(ismob(target)) user.attack_log += "\[[time_stamp()]\] [user.real_name] tried planting [name] on [target:real_name] ([target:ckey])" @@ -508,7 +509,7 @@ target:attack_log += "\[[time_stamp()]\] Had the [name] planted on them by [user.real_name] ([user.ckey])" user.visible_message("\red [user.name] finished planting an explosive on [target.name]!") target.overlays += image('icons/obj/assemblies.dmi', "plastic-explosive2") - user << "You sacrifice your belt for the sake of justice. Timer counting down from 15." + to_chat(user, "You sacrifice your belt for the sake of justice. Timer counting down from 15.") spawn(150) if(target) if(ismob(target) || isobj(target)) diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm index b0106cd1f93..3fa521a7451 100644 --- a/code/game/objects/items/weapons/storage/bible.dm +++ b/code/game/objects/items/weapons/storage/bible.dm @@ -9,7 +9,7 @@ var/deity_name = "Christ" suicide_act(mob/user) - viewers(user) << "[user] stares into [src.name] and attempts to trascend understanding of the universe!" + to_chat(viewers(user), "[user] stares into [src.name] and attempts to trascend understanding of the universe!") return (user.dust()) @@ -53,15 +53,15 @@ M.LAssailant = user if (!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey") - user << "\red You don't have the dexterity to do this!" + to_chat(user, "\red You don't have the dexterity to do this!") return if(!chaplain) - user << "\red The book sizzles in your hands." + to_chat(user, "\red The book sizzles in your hands.") user.take_organ_damage(0,10) return if ((CLUMSY in user.mutations) && prob(50)) - user << "\red The [src] slips out of your hand and hits your head." + to_chat(user, "\red The [src] slips out of your hand and hits your head.") user.take_organ_damage(10) user.Paralyse(20) return @@ -71,19 +71,19 @@ if (M.stat !=2) /*if((M.mind in ticker.mode.cult) && (prob(20))) - M << "\red The power of [src.deity_name] clears your mind of heresy!" - user << "\red You see how [M]'s eyes become clear, the cult no longer holds control over him!" + to_chat(M, "\red The power of [src.deity_name] clears your mind of heresy!") + to_chat(user, "\red You see how [M]'s eyes become clear, the cult no longer holds control over him!") ticker.mode.remove_cultist(M.mind)*/ if ((istype(M, /mob/living/carbon/human) && prob(60))) bless(M) for(var/mob/O in viewers(M, null)) O.show_message(text("\red [] heals [] with the power of [src.deity_name]!", user, M), 1) - M << "\red May the power of [src.deity_name] compel you to be healed!" + to_chat(M, "\red May the power of [src.deity_name] compel you to be healed!") playsound(src.loc, "punch", 25, 1, -1) else if(ishuman(M) && !istype(M:head, /obj/item/clothing/head/helmet)) M.adjustBrainLoss(10) - M << "\red You feel dumber." + to_chat(M, "\red You feel dumber.") for(var/mob/O in viewers(M, null)) O.show_message(text("\red [] beats [] over the head with []!", user, M, src), 1) playsound(src.loc, "punch", 25, 1, -1) @@ -97,17 +97,17 @@ if(!proximity) return if (istype(A, /turf/simulated/floor)) - user << "You hit the floor with the bible." + to_chat(user, "You hit the floor with the bible.") if(user.mind && (user.mind.assigned_role == "Chaplain")) call(/obj/effect/rune/proc/revealrunes)(src) if(user.mind && (user.mind.assigned_role == "Chaplain")) if(A.reagents && A.reagents.has_reagent("water")) //blesses all the water in the holder - user << "You bless [A]." + to_chat(user, "You bless [A].") var/water2holy = A.reagents.get_reagent_amount("water") A.reagents.del_reagent("water") A.reagents.add_reagent("holywater",water2holy) if(A.reagents && A.reagents.has_reagent("unholywater")) //yeah yeah, copy pasted code - sue me - user << "You purify [A]." + to_chat(user, "You purify [A].") var/unholy2clean = A.reagents.get_reagent_amount("unholywater") A.reagents.del_reagent("unholywater") A.reagents.add_reagent("holywater",unholy2clean) diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm index f460aaa1b47..31ead836204 100644 --- a/code/game/objects/items/weapons/storage/fancy.dm +++ b/code/game/objects/items/weapons/storage/fancy.dm @@ -29,11 +29,11 @@ return if(contents.len <= 0) - user << "There are no [src.icon_type]s left in the box." + to_chat(user, "There are no [src.icon_type]s left in the box.") else if(contents.len == 1) - user << "There is one [src.icon_type] left in the box." + to_chat(user, "There is one [src.icon_type] left in the box.") else - user << "There are [src.contents.len] [src.icon_type]s in the box." + to_chat(user, "There are [src.contents.len] [src.icon_type]s in the box.") @@ -142,10 +142,10 @@ if(istype(W,/obj/item/toy/crayon)) switch(W:colourName) if("mime") - usr << "This crayon is too sad to be contained in this box." + to_chat(usr, "This crayon is too sad to be contained in this box.") return if("rainbow") - usr << "This crayon is too powerful to be contained in this box." + to_chat(usr, "This crayon is too powerful to be contained in this box.") return ..() @@ -217,12 +217,12 @@ var/obj/item/clothing/mask/cigarette/C = I lace_cigarette(C) user.equip_to_slot_if_possible(C, slot_wear_mask) - user << "You take \a [C.name] out of the pack." + to_chat(user, "You take \a [C.name] out of the pack.") update_icon() got_cig = 1 break if(!got_cig) - user << "There are no smokables in the pack!" + to_chat(user, "There are no smokables in the pack!") else ..() @@ -231,13 +231,13 @@ var/obj/item/weapon/match/M = W if(M.lit == 1) if(!stop_messages) - usr << "Putting a lit [W] in [src] probably isn't a good idea." + to_chat(usr, "Putting a lit [W] in [src] probably isn't a good idea.") return 0 if(istype(W, /obj/item/weapon/lighter)) var/obj/item/weapon/lighter/L = W if(L.lit == 1) if(!stop_messages) - usr << "Putting [W] in [src] while lit probably isn't a good idea." + to_chat(usr, "Putting [W] in [src] while lit probably isn't a good idea.") return 0 //if we get this far, handle the insertion checks as normal .=..() diff --git a/code/game/objects/items/weapons/storage/firstaid.dm b/code/game/objects/items/weapons/storage/firstaid.dm index b751481bfe0..a11d00dbccd 100644 --- a/code/game/objects/items/weapons/storage/firstaid.dm +++ b/code/game/objects/items/weapons/storage/firstaid.dm @@ -248,9 +248,9 @@ if(istype(I, /obj/item/weapon/pen) || istype(I, /obj/item/device/flashlight/pen)) var/tmp_label = sanitize(input(user, "Enter a label for [name]","Label",label_text)) if(length(tmp_label) > MAX_NAME_LEN) - user << "The label can be at most [MAX_NAME_LEN] characters long." + to_chat(user, "The label can be at most [MAX_NAME_LEN] characters long.") else - user << "You set the label to \"[tmp_label]\"." + to_chat(user, "You set the label to \"[tmp_label]\".") label_text = tmp_label update_name_label() else diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index 608f111060f..1dde63d198a 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -20,34 +20,34 @@ attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/card/id)) if(src.broken) - user << "\red It appears to be broken." + to_chat(user, "\red It appears to be broken.") return if(src.allowed(user)) src.locked = !( src.locked ) if(src.locked) src.icon_state = src.icon_locked - user << "\red You lock the [src.name]!" + to_chat(user, "\red You lock the [src.name]!") return else src.icon_state = src.icon_closed - user << "\red You unlock the [src.name]!" + to_chat(user, "\red You unlock the [src.name]!") origin_tech = null //wipe out any origin tech if it's unlocked in any way so you can't double-dip tech levels at R&D. return else - user << "\red Access Denied" + to_chat(user, "\red Access Denied") else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken) emag_act(user) return if(!locked) ..() else - user << "\red Its locked!" + to_chat(user, "\red Its locked!") return show_to(mob/user as mob) if(locked) - user << "\red Its locked!" + to_chat(user, "\red Its locked!") else ..() return @@ -56,7 +56,7 @@ if(!locked) return ..() if(!stop_messages) - usr << "[src] is locked!" + to_chat(usr, "[src] is locked!") return 0 /obj/item/weapon/storage/lockbox/emag_act(user as mob) @@ -65,7 +65,7 @@ locked = 0 desc = "It appears to be broken." icon_state = src.icon_broken - user << "You unlock \the [src]." + to_chat(user, "You unlock \the [src].") origin_tech = null //wipe out any origin tech if it's unlocked in any way so you can't double-dip tech levels at R&D. return diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm index d33f6e2ba7b..59fac1b18c4 100644 --- a/code/game/objects/items/weapons/storage/secure.dm +++ b/code/game/objects/items/weapons/storage/secure.dm @@ -29,7 +29,7 @@ examine(mob/user) if(..(user, 1)) - user << text("The service panel is [src.open ? "open" : "closed"].") + to_chat(user, text("The service panel is [src.open ? "open" : "closed"].")) attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(locked) @@ -78,9 +78,9 @@ spark_system.start() playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) playsound(src.loc, "sparks", 50, 1) - user << "You slice through the lock on [src]." + to_chat(user, "You slice through the lock on [src].") else - user << "You short out the lock on [src]." + to_chat(user, "You short out the lock on [src].") return @@ -144,7 +144,7 @@ if(!locked) return ..() if(!stop_messages) - usr << "[src] is locked!" + to_chat(usr, "[src] is locked!") return 0 /obj/item/weapon/storage/secure/hear_talk(mob/living/M as mob, msg) @@ -172,7 +172,7 @@ attack_hand(mob/user as mob) if ((src.loc == user) && (src.locked == 1)) - usr << "\red [src] is locked and cannot be opened!" + to_chat(usr, "\red [src] is locked and cannot be opened!") else if ((src.loc == user) && (!src.locked)) playsound(src.loc, "rustle", 50, 1, -5) if (user.s_active) diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 1440aa8dcf0..d92ad2399b2 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -235,7 +235,7 @@ return 0 //Means the item is already in the storage item if(contents.len >= storage_slots) if(!stop_messages) - usr << "[W] won't fit in [src], make some space!" + to_chat(usr, "[W] won't fit in [src], make some space!") return 0 //Storage item is full if(can_hold.len) @@ -248,18 +248,18 @@ if(!stop_messages) if (istype(W, /obj/item/weapon/hand_labeler)) return 0 - usr << "[src] cannot hold [W]." + to_chat(usr, "[src] cannot hold [W].") return 0 for(var/A in cant_hold) //Check for specific items which this container can't hold. if(istype(W, text2path(A) )) if(!stop_messages) - usr << "[src] cannot hold [W]." + to_chat(usr, "[src] cannot hold [W].") return 0 if (W.w_class > max_w_class) if(!stop_messages) - usr << "[W] is too big for this [src]." + to_chat(usr, "[W] is too big for this [src].") return 0 var/sum_w_class = W.w_class @@ -268,17 +268,17 @@ if(sum_w_class > max_combined_w_class) if(!stop_messages) - usr << "[src] is full, make some space." + to_chat(usr, "[src] is full, make some space.") return 0 if(W.w_class >= src.w_class && (istype(W, /obj/item/weapon/storage))) if(!istype(src, /obj/item/weapon/storage/backpack/holding)) //bohs should be able to hold backpacks again. The override for putting a boh in a boh is in backpack.dm. if(!stop_messages) - usr << "[src] cannot hold [W] as it's a storage item of the same size." + to_chat(usr, "[src] cannot hold [W] as it's a storage item of the same size.") return 0 //To prevent the stacking of same sized storage items. if(W.flags & NODROP) //SHOULD be handled in unEquip, but better safe than sorry. - usr << "\the [W] is stuck to your hand, you can't put it in \the [src]" + to_chat(usr, "\the [W] is stuck to your hand, you can't put it in \the [src]") return 0 return 1 @@ -306,7 +306,7 @@ if(!prevent_warning && !istype(W, /obj/item/weapon/gun/energy/kinetic_accelerator/crossbow)) for(var/mob/M in viewers(usr, null)) if (M == usr) - usr << "You put the [W] into [src]." + to_chat(usr, "You put the [W] into [src].") else if (M in range(1)) //If someone is standing close enough, they can tell what it is... M.show_message("[usr] puts [W] into [src].") else if (W && W.w_class >= 3.0) //Otherwise they can only see large or normal items from a distance... @@ -359,7 +359,7 @@ ..() if(isrobot(user)) - user << "\blue You're a robot. No." + to_chat(user, "\blue You're a robot. No.") return 1//Robots can't interact with storage items. if(!can_be_inserted(W)) @@ -406,9 +406,9 @@ collection_mode = !collection_mode switch (collection_mode) if(1) - usr << "[src] now picks up all items in a tile at once." + to_chat(usr, "[src] now picks up all items in a tile at once.") if(0) - usr << "[src] now picks up one item at a time." + to_chat(usr, "[src] now picks up one item at a time.") /obj/item/weapon/storage/verb/quick_empty() @@ -497,7 +497,7 @@ if ( !found ) // User is too far away return // Now make the cardboard - user << "You fold [src] flat." + to_chat(user, "You fold [src] flat.") new src.foldable(get_turf(src)) qdel(src) //BubbleWrap END diff --git a/code/game/objects/items/weapons/storage/toolbox.dm b/code/game/objects/items/weapons/storage/toolbox.dm index b1efb1168ff..22e46163fa3 100644 --- a/code/game/objects/items/weapons/storage/toolbox.dm +++ b/code/game/objects/items/weapons/storage/toolbox.dm @@ -18,7 +18,7 @@ New() ..() if (src.type == /obj/item/weapon/storage/toolbox) - world << "BAD: [src] ([src.type]) spawned at [src.x] [src.y] [src.z]" + to_chat(world, "BAD: [src] ([src.type]) spawned at [src.x] [src.y] [src.z]") qdel(src) /obj/item/weapon/storage/toolbox/emergency diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index 04c15fe1d97..db834beeb45 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -55,24 +55,24 @@ /obj/item/weapon/melee/baton/examine(mob/user) ..(user) if(bcell) - user <<"The baton is [round(bcell.percent())]% charged." + to_chat(user, "The baton is [round(bcell.percent())]% charged.") if(!bcell) - user <<"The baton does not have a power source installed." + to_chat(user, "The baton does not have a power source installed.") /obj/item/weapon/melee/baton/attackby(obj/item/weapon/W, mob/user, params) if(istype(W, /obj/item/weapon/stock_parts/cell)) var/obj/item/weapon/stock_parts/cell/C = W if(bcell) - user << "[src] already has a cell." + to_chat(user, "[src] already has a cell.") else if(C.maxcharge < hitcost) - user << "[src] requires a higher capacity cell." + to_chat(user, "[src] requires a higher capacity cell.") return if(!user.unEquip(W)) return W.loc = src bcell = W - user << "You install a cell in [src]." + to_chat(user, "You install a cell in [src].") update_icon() else if(istype(W, /obj/item/weapon/screwdriver)) @@ -80,7 +80,7 @@ bcell.updateicon() bcell.loc = get_turf(src.loc) bcell = null - user << "You remove the cell from the [src]." + to_chat(user, "You remove the cell from the [src].") status = 0 update_icon() return @@ -90,14 +90,14 @@ /obj/item/weapon/melee/baton/attack_self(mob/user) if(bcell && bcell.charge > hitcost) status = !status - user << "[src] is now [status ? "on" : "off"]." + to_chat(user, "[src] is now [status ? "on" : "off"].") playsound(loc, "sparks", 75, 1, -1) else status = 0 if(!bcell) - user << "[src] does not have a power source!" + to_chat(user, "[src] does not have a power source!") else - user << "[src] is out of charge." + to_chat(user, "[src] is out of charge.") update_icon() add_fingerprint(user) diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm index edf0c77e131..63346476021 100644 --- a/code/game/objects/items/weapons/swords_axes_etc.dm +++ b/code/game/objects/items/weapons/swords_axes_etc.dm @@ -10,8 +10,8 @@ * Banhammer */ /obj/item/weapon/banhammer/attack(mob/M as mob, mob/user as mob) - M << " You have been banned FOR NO REISIN by [user]" - user << " You have BANNED [M]" + to_chat(M, " You have been banned FOR NO REISIN by [user]") + to_chat(user, " You have BANNED [M]") /* * Classic Baton @@ -33,7 +33,7 @@ if(on) add_fingerprint(user) if((CLUMSY in user.mutations) && prob(50)) - user << "You club yourself over the head." + to_chat(user, "You club yourself over the head.") user.Weaken(3 * force) if(ishuman(user)) var/mob/living/carbon/human/H = user @@ -84,14 +84,14 @@ /obj/item/weapon/melee/classic_baton/telescopic/attack_self(mob/user as mob) on = !on if(on) - user << "You extend the baton." + to_chat(user, "You extend the baton.") icon_state = "telebaton_1" item_state = "nullrod" w_class = 4 //doesnt fit in backpack when its on for balance force = 10 //stunbaton damage attack_verb = list("smacked", "struck", "cracked", "beaten") else - user << "You collapse the baton." + to_chat(user, "You collapse the baton.") icon_state = "telebaton_0" item_state = null //no sprite for concealment even when in hand slot_flags = SLOT_BELT diff --git a/code/game/objects/items/weapons/table_rack_parts.dm b/code/game/objects/items/weapons/table_rack_parts.dm index d66945d1b75..61c58ce9aa5 100644 --- a/code/game/objects/items/weapons/table_rack_parts.dm +++ b/code/game/objects/items/weapons/table_rack_parts.dm @@ -57,11 +57,11 @@ if (istype(W, /obj/item/stack/rods)) if (W:amount >= 4) new /obj/item/weapon/table_parts/reinforced( user.loc ) - user << "\blue You reinforce the [name]." + to_chat(user, "\blue You reinforce the [name].") W:use(4) qdel(src) else if (W:amount < 4) - user << "\red You need at least four rods to do this." + to_chat(user, "\red You need at least four rods to do this.") /obj/item/weapon/table_parts/attack_self(mob/user as mob) new /obj/structure/table( user.loc ) diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm index edbe4be2cd1..68fe80fdbfb 100644 --- a/code/game/objects/items/weapons/tanks/jetpack.dm +++ b/code/game/objects/items/weapons/tanks/jetpack.dm @@ -29,7 +29,7 @@ return if(air_contents.oxygen < 10) - user << text("\red The meter on the [src.name] indicates you are almost out of air!") + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!")) playsound(user, 'sound/effects/alert.ogg', 50, 1) @@ -37,7 +37,7 @@ set name = "Toggle Jetpack Stabilization" set category = "Object" src.stabilization_on = !( src.stabilization_on ) - usr << "You toggle the stabilization [stabilization_on? "on":"off"]." + to_chat(usr, "You toggle the stabilization [stabilization_on? "on":"off"].") return @@ -133,7 +133,7 @@ return if(air_contents.carbon_dioxide < 10) - user << text("\red The meter on the [src.name] indicates you are almost out of air!") + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!")) playsound(user, 'sound/effects/alert.ogg', 50, 1) @@ -142,7 +142,7 @@ var/obj/item/weapon/rig/holder /obj/item/weapon/tank/jetpack/rig/examine() - usr << "It's a jetpack. If you can see this, report it on the bug tracker." + to_chat(usr, "It's a jetpack. If you can see this, report it on the bug tracker.") return 0 /obj/item/weapon/tank/jetpack/rig/allow_thrust(num, mob/living/user as mob) diff --git a/code/game/objects/items/weapons/tanks/tank_types.dm b/code/game/objects/items/weapons/tanks/tank_types.dm index dc5425616ac..6767b88ac0d 100644 --- a/code/game/objects/items/weapons/tanks/tank_types.dm +++ b/code/game/objects/items/weapons/tanks/tank_types.dm @@ -26,7 +26,7 @@ examine(mob/user) if(..(user, 0)) if(air_contents.oxygen < 10) - user << text("\red The meter on the [src.name] indicates you are almost out of air!") + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!")) //playsound(usr, 'sound/effects/alert.ogg', 50, 1) @@ -71,8 +71,8 @@ examine(mob/user) if(..(user, 0)) if(air_contents.oxygen < 1 && loc==usr) - user << "\red The meter on the [src.name] indicates you are almost out of air!" - user << sound('sound/effects/alert.ogg') + to_chat(user, "\red The meter on the [src.name] indicates you are almost out of air!") + to_chat(user, sound('sound/effects/alert.ogg')) /obj/item/weapon/tank/air/New() ..() @@ -123,8 +123,8 @@ /obj/item/weapon/tank/plasma/plasmaman/examine(mob/user) if(..(user, 0)) if(air_contents.toxins < 0.2 && loc==usr) - user << text("\red The meter on the [src.name] indicates you are almost out of plasma!") - user << sound('sound/effects/alert.ogg') + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of plasma!")) + to_chat(user, sound('sound/effects/alert.ogg')) /* * Emergency Oxygen @@ -150,8 +150,8 @@ examine(mob/user) if(..(user, 0)) if(air_contents.oxygen < 0.2 && loc==usr) - user << text("\red The meter on the [src.name] indicates you are almost out of air!") - user << sound('sound/effects/alert.ogg') + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!")) + to_chat(user, sound('sound/effects/alert.ogg')) /obj/item/weapon/tank/emergency_oxygen/engi name = "extended-capacity emergency oxygen tank" @@ -191,7 +191,7 @@ /obj/item/weapon/tank/nitrogen/examine(mob/user) if(..(user, 0)) if(air_contents.nitrogen < 10) - user << text("\red The meter on the [src.name] indicates you are almost out of air!") + to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!")) //playsound(usr, 'sound/effects/alert.ogg', 50, 1) diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm index cee2996904f..46342d78a99 100644 --- a/code/game/objects/items/weapons/tanks/tanks.dm +++ b/code/game/objects/items/weapons/tanks/tanks.dm @@ -44,7 +44,8 @@ if (istype(src.loc, /obj/item/assembly)) icon = src.loc if (!in_range(src, user)) - if (icon == src) user << "\blue It's \a \icon[icon][src]! If you want any more information you'll need to get closer." + if (icon == src) + to_chat(user, "\blue It's \a \icon[icon][src]! If you want any more information you'll need to get closer.") return var/celsius_temperature = src.air_contents.temperature-T0C @@ -63,7 +64,7 @@ else descriptive = "furiously hot" - user << "\blue \The \icon[icon][src] feels [descriptive]" + to_chat(user, "\blue \The \icon[icon][src] feels [descriptive]") return @@ -166,7 +167,7 @@ if(location.internal == src) location.internal = null location.internals.icon_state = "internal0" - usr << "\blue You close the tank release valve." + to_chat(usr, "\blue You close the tank release valve.") if (location.internals) location.internals.icon_state = "internal0" else @@ -181,11 +182,11 @@ if(can_open_valve) location.internal = src - usr << "\blue You open \the [src] valve." + to_chat(usr, "\blue You open \the [src] valve.") if (location.internals) location.internals.icon_state = "internal1" else - usr << "\blue You need something to connect to \the [src]." + to_chat(usr, "\blue You need something to connect to \the [src].") src.add_fingerprint(usr) return 1 @@ -232,7 +233,7 @@ if(!istype(src.loc,/obj/item/device/transfer_valve)) message_admins("Explosive tank rupture! last key to touch the tank was [src.fingerprintslast] (JMP)") log_game("Explosive tank rupture! last key to touch the tank was [src.fingerprintslast] at [x], [y], [z]") - //world << "\blue[x],[y] tank is exploding: [pressure] kPa" +// to_chat(world, "\blue[x],[y] tank is exploding: [pressure] kPa") //Give the gas a chance to build up more pressure through reacting air_contents.react() air_contents.react() @@ -241,7 +242,7 @@ var/range = (pressure-TANK_FRAGMENT_PRESSURE)/TANK_FRAGMENT_SCALE var/turf/epicenter = get_turf(loc) - //world << "\blue Exploding Pressure: [pressure] kPa, intensity: [range]" +// to_chat(world, "\blue Exploding Pressure: [pressure] kPa, intensity: [range]") explosion(epicenter, round(range*0.25), round(range*0.5), round(range), round(range*1.5)) if(istype(src.loc,/obj/item/device/transfer_valve)) @@ -250,7 +251,7 @@ qdel(src) else if(pressure > TANK_RUPTURE_PRESSURE) - //world << "\blue[x],[y] tank is rupturing: [pressure] kPa, integrity [integrity]" +// to_chat(world, "\blue[x],[y] tank is rupturing: [pressure] kPa, integrity [integrity]") if(integrity <= 0) var/turf/simulated/T = get_turf(src) if(!T) @@ -262,7 +263,7 @@ integrity-- else if(pressure > TANK_LEAK_PRESSURE) - //world << "\blue[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]" +// to_chat(world, "\blue[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]") if(integrity <= 0) var/turf/simulated/T = get_turf(src) if(!T) diff --git a/code/game/objects/items/weapons/tanks/watertank.dm b/code/game/objects/items/weapons/tanks/watertank.dm index 328debd11fc..cbe3cdde29d 100644 --- a/code/game/objects/items/weapons/tanks/watertank.dm +++ b/code/game/objects/items/weapons/tanks/watertank.dm @@ -26,7 +26,7 @@ set name = "Toggle Mister" set category = "Object" if (usr.get_item_by_slot(slot_back) != src) - usr << "The watertank needs to be on your back to use." + to_chat(usr, "The watertank needs to be on your back to use.") return if(usr.incapacitated()) return @@ -40,7 +40,7 @@ //Detach the nozzle into the user's hands if(!user.put_in_hands(noz)) on = 0 - user << "You need a free hand to hold the mister." + to_chat(user, "You need a free hand to hold the mister.") return noz.loc = user else @@ -125,7 +125,7 @@ return /obj/item/weapon/reagent_containers/spray/mister/dropped(mob/user as mob) - user << "The mister snaps back onto the watertank." + to_chat(user, "The mister snaps back onto the watertank.") tank.on = 0 loc = tank @@ -175,7 +175,7 @@ /obj/item/weapon/reagent_containers/spray/mister/janitor/attack_self(var/mob/user) amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10) - user << "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray." + to_chat(user, "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray.") //ATMOS FIRE FIGHTING BACKPACK @@ -240,22 +240,22 @@ if(EXTINGUISHER) nozzle_mode = NANOFROST tank.icon_state = "waterbackpackatmos_1" - user << "Swapped to nanofrost launcher" + to_chat(user, "Swapped to nanofrost launcher") return if(NANOFROST) nozzle_mode = METAL_FOAM tank.icon_state = "waterbackpackatmos_2" - user << "Swapped to metal foam synthesizer" + to_chat(user, "Swapped to metal foam synthesizer") return if(METAL_FOAM) nozzle_mode = EXTINGUISHER tank.icon_state = "waterbackpackatmos_0" - user << "Swapped to water extinguisher" + to_chat(user, "Swapped to water extinguisher") return return /obj/item/weapon/extinguisher/mini/nozzle/dropped(mob/user as mob) - user << "The nozzle snaps back onto the tank!" + to_chat(user, "The nozzle snaps back onto the tank!") tank.on = 0 loc = tank @@ -271,10 +271,10 @@ return //Safety check so you don't blast yourself trying to refill your tank var/datum/reagents/R = reagents if(R.total_volume < 100) - user << "You need at least 100 units of water to use the nanofrost launcher!" + to_chat(user, "You need at least 100 units of water to use the nanofrost launcher!") return if(nanofrost_cooldown) - user << "Nanofrost launcher is still recharging" + to_chat(user, "Nanofrost launcher is still recharging") return nanofrost_cooldown = 1 R.remove_any(100) @@ -300,7 +300,7 @@ if(src) metal_synthesis_cooldown-- else - user << "Metal foam mix is still being synthesized." + to_chat(user, "Metal foam mix is still being synthesized.") return /obj/effect/nanofrost_container diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm index 1f648ec2b3b..a6c7841e020 100644 --- a/code/game/objects/items/weapons/tape.dm +++ b/code/game/objects/items/weapons/tape.dm @@ -14,7 +14,7 @@ /* -- Disabled for now until it has a use -- /obj/item/stack/tape_roll/attack_self(mob/user as mob) - user << "You remove a length of tape from [src]." + to_chat(user, "You remove a length of tape from [src].") var/obj/item/weapon/ducttape/tape = new() user.put_in_hands(tape) @@ -71,7 +71,7 @@ if(!stuck) return - user << "You remove \the [initial(name)] from [stuck]." + to_chat(user, "You remove \the [initial(name)] from [stuck].") user.unEquip(src) stuck.forceMove(get_turf(src)) @@ -91,8 +91,8 @@ if(target_turf != source_turf) dir_offset = get_dir(source_turf, target_turf) if(!(dir_offset in cardinal)) - user << "You cannot reach that from here." // can only place stuck papers in cardinal directions, to - return // reduce papers around corners issue. + to_chat(user, "You cannot reach that from here.")// can only place stuck papers in cardinal directions, to + return // reduce papers around corners issue. user.unEquip(src) forceMove(source_turf) diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm index 61663a82fb4..99567b5952a 100644 --- a/code/game/objects/items/weapons/teleportation.dm +++ b/code/game/objects/items/weapons/teleportation.dm @@ -49,7 +49,7 @@ Frequency: var/turf/current_location = get_turf(usr)//What turf is the user on? if(!current_location ||( current_location.z in config.admin_levels))//If turf was not found or they're on z level 2. - usr << "\The [src] is malfunctioning." + to_chat(usr, "\The [src] is malfunctioning.") return 1 if (href_list["refresh"]) @@ -108,7 +108,7 @@ Frequency: /obj/item/weapon/hand_tele/attack_self(mob/user as mob) var/turf/current_location = get_turf(user)//What turf is the user on? if(!current_location||(current_location.z in config.admin_levels)||current_location.z>=7)//If turf was not found or they're on z level 2 or >7 which does not currently exist. - user << "\The [src] is malfunctioning." + to_chat(user, "\The [src] is malfunctioning.") return var/list/L = list( ) for(var/obj/machinery/computer/teleporter/com in world) diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm index d01cc125918..a187dc09b65 100644 --- a/code/game/objects/items/weapons/tools.dm +++ b/code/game/objects/items/weapons/tools.dm @@ -50,8 +50,8 @@ hitsound = 'sound/weapons/bladeslice.ogg' suicide_act(mob/user) - viewers(user) << pick("[user] is stabbing the [src.name] into \his temple! It looks like \he's trying to commit suicide.", \ - "[user] is stabbing the [src.name] into \his heart! It looks like \he's trying to commit suicide.") + to_chat(viewers(user), pick("[user] is stabbing the [src.name] into \his temple! It looks like \he's trying to commit suicide.", \ + "[user] is stabbing the [src.name] into \his heart! It looks like \he's trying to commit suicide.")) return(BRUTELOSS) /obj/item/weapon/screwdriver/New() @@ -173,7 +173,7 @@ /obj/item/weapon/weldingtool/examine(mob/user) if(..(user, 0)) - user << "It contains [get_fuel()] unit\s of fuel out of [max_fuel]." + to_chat(user, "It contains [get_fuel()] unit\s of fuel out of [max_fuel].") /obj/item/weapon/weldingtool/suicide_act(mob/user) user.visible_message("[user] welds \his every orifice closed! It looks like \he's trying to commit suicide..") @@ -248,13 +248,13 @@ S.heal_damage(15,0,0,1) user.visible_message("\The [user] patches some dents on \the [M]'s [S.name] with \the [src].") else if(S.open != 2) - user << "Need more welding fuel!" + to_chat(user, "Need more welding fuel!") return 1 else - user << "The damage is far too severe to patch over externally." + to_chat(user, "The damage is far too severe to patch over externally.") return 1 else if(S.open != 2) - user << "Nothing to fix!" + to_chat(user, "Nothing to fix!") else return ..() @@ -263,14 +263,14 @@ if(istype(O, /obj/structure/reagent_dispensers/fueltank) && in_range(src, O)) if(!welding) O.reagents.trans_to(src, max_fuel) - user << "[src] refueled." + to_chat(user, "[src] refueled.") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) update_icon() return else message_admins("[key_name_admin(user)] triggered a fueltank explosion.") log_game("[key_name(user)] triggered a fueltank explosion.") - user << "That was stupid of you." + to_chat(user, "That was stupid of you.") O.ex_act() return @@ -303,7 +303,7 @@ return 1 else if(M) - M << "\blue You need more welding fuel to complete this task." + to_chat(M, "\blue You need more welding fuel to complete this task.") return 0 //Returns whether or not the welding tool is currently on. @@ -327,25 +327,25 @@ //Toggles the welder off and on /obj/item/weapon/weldingtool/proc/toggle(mob/user, message = 0) if(!status) - user << "[src] can't be turned on while unsecured!" + to_chat(user, "[src] can't be turned on while unsecured!") return welding = !welding if(welding) if(get_fuel() >= 1) - user << "You switch [src] on." + to_chat(user, "You switch [src] on.") force = 15 damtype = "fire" hitsound = 'sound/items/welder.ogg' update_icon() processing_objects |= src else - user << "You need more fuel!" + to_chat(user, "You need more fuel!") welding = 0 else if(!message) - user << "You switch [src] off." + to_chat(user, "You switch [src] off.") else - user << "[src] shuts off!" + to_chat(user, "[src] shuts off!") force = 3 damtype = "brute" hitsound = "swing_hit" @@ -353,13 +353,13 @@ /obj/item/weapon/weldingtool/proc/flamethrower_screwdriver(obj/item/I, mob/user) if(welding) - user << "Turn it off first!" + to_chat(user, "Turn it off first!") return status = !status if(status) - user << "You resecure [src]." + to_chat(user, "You resecure [src].") else - user << "[src] can now be attached and modified." + to_chat(user, "[src] can now be attached and modified.") add_fingerprint(user) /obj/item/weapon/weldingtool/proc/flamethrower_rods(obj/item/I, mob/user) @@ -372,10 +372,10 @@ loc = F F.weldtool = src add_fingerprint(user) - user << "You add a rod to a welder, starting to build a flamethrower." + to_chat(user, "You add a rod to a welder, starting to build a flamethrower.") user.put_in_hands(F) else - user << "You need one rod to start building a flamethrower!" + to_chat(user, "You need one rod to start building a flamethrower!") return /obj/item/weapon/weldingtool/largetank @@ -492,5 +492,5 @@ attack_self(mob/user as mob) open = !open - user << "\blue You [open?"open" : "close"] the conversion kit." + to_chat(user, "\blue You [open?"open" : "close"] the conversion kit.") update_icon() diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 61164a45298..0e4f49de46a 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -43,9 +43,9 @@ user.update_inv_r_hand() user.update_inv_l_hand() if(isrobot(user)) - user << "You free up your module." + to_chat(user, "You free up your module.") else - user << "You are now carrying the [name] with one hand." + to_chat(user, "You are now carrying the [name] with one hand.") if(unwieldsound) playsound(loc, unwieldsound, 50, 1) var/obj/item/weapon/twohanded/offhand/O = user.get_inactive_hand() @@ -58,10 +58,10 @@ if(ishuman(user)) var/mob/living/carbon/human/H = user if(H.species.is_small) - user << "It's too heavy for you to wield fully." + to_chat(user, "It's too heavy for you to wield fully.") return if(user.get_inactive_hand()) - user << "You need your other hand to be empty!" + to_chat(user, "You need your other hand to be empty!") return wielded = 1 force = force_wielded @@ -71,9 +71,9 @@ user.update_inv_r_hand() user.update_inv_l_hand() if(isrobot(user)) - user << "You dedicate your module to [name]." + to_chat(user, "You dedicate your module to [name].") else - user << "You grab the [name] with both hands." + to_chat(user, "You grab the [name] with both hands.") if (wieldsound) playsound(loc, wieldsound, 50, 1) var/obj/item/weapon/twohanded/offhand/O = new(user) ////Let's reserve his other hand~ @@ -85,7 +85,7 @@ /obj/item/weapon/twohanded/mob_can_equip(mob/M, slot) //Cannot equip wielded items. if(wielded) - M << "Unwield the [name] first!" + to_chat(M, "Unwield the [name] first!") return 0 return ..() @@ -138,7 +138,7 @@ /obj/item/weapon/twohanded/required/mob_can_equip(M as mob, slot) if(wielded) - M << "[src.name] is too cumbersome to carry with anything but your hands!" + to_chat(M, "[src.name] is too cumbersome to carry with anything but your hands!") return 0 return ..() @@ -224,7 +224,7 @@ /obj/item/weapon/twohanded/dualsaber/attack(target as mob, mob/living/user as mob) ..() if((CLUMSY in user.mutations) && (wielded) &&prob(40)) - user << "\red You twirl around a bit before losing your balance and impaling yourself on the [src]." + to_chat(user, "\red You twirl around a bit before losing your balance and impaling yourself on the [src].") user.take_organ_damage(20,25) return if((wielded) && prob(50)) @@ -268,11 +268,11 @@ if(istype(W, /obj/item/device/multitool)) if(hacked == 0) hacked = 1 - user << "2XRNBW_ENGAGE" + to_chat(user, "2XRNBW_ENGAGE") blade_color = "rainbow" update_icon() else - user << "It's starting to look like a triple rainbow - no, nevermind." + to_chat(user, "It's starting to look like a triple rainbow - no, nevermind.") //spears /obj/item/weapon/twohanded/spear @@ -301,7 +301,7 @@ //Putting heads on spears /obj/item/weapon/organ/head/attackby(var/obj/item/weapon/W, var/mob/living/user, params) if(istype(W, /obj/item/weapon/twohanded/spear)) - user << "You stick the head onto the spear and stand it upright on the ground." + to_chat(user, "You stick the head onto the spear and stand it upright on the ground.") var/obj/structure/headspear/HS = new /obj/structure/headspear(user.loc) var/matrix/M = matrix() src.transform = M @@ -316,7 +316,7 @@ /obj/item/weapon/twohanded/spear/attackby(var/obj/item/I, var/mob/living/user) if(istype(I, /obj/item/weapon/organ/head)) - user << "You stick the head onto the spear and stand it upright on the ground." + to_chat(user, "You stick the head onto the spear and stand it upright on the ground.") var/obj/structure/headspear/HS = new /obj/structure/headspear(user.loc) var/matrix/M = matrix() I.transform = M diff --git a/code/game/objects/items/weapons/vending_items.dm b/code/game/objects/items/weapons/vending_items.dm index 517ec5ce2cb..9f22daf08f8 100644 --- a/code/game/objects/items/weapons/vending_items.dm +++ b/code/game/objects/items/weapons/vending_items.dm @@ -23,9 +23,9 @@ /obj/item/weapon/vending_refill/examine(mob/user) ..(user) if(charges) - user << "It can restock [charges] item(s)." + to_chat(user, "It can restock [charges] item(s).") else - user << "It's empty!" + to_chat(user, "It's empty!") //NOTE I decided to go for about 1/3 of a machine's capacity diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index c77015ca0d1..57e22a3eef4 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -12,7 +12,7 @@ /obj/item/weapon/banhammer/suicide_act(mob/user) - viewers(user) << "[user] is hitting \himself with the [src.name]! It looks like \he's trying to ban \himself from life." + to_chat(viewers(user), "[user] is hitting \himself with the [src.name]! It looks like \he's trying to ban \himself from life.") return (BRUTELOSS|FIRELOSS|TOXLOSS|OXYLOSS) /obj/item/weapon/nullrod @@ -31,7 +31,7 @@ var/transform_via = list(/obj/item/clothing/suit/armor/riot/knight/templar, /obj/item/clothing/suit/chaplain_hoodie/fluff/chronx) suicide_act(mob/user) - viewers(user) << "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide.") return (BRUTELOSS|FIRELOSS) /obj/item/weapon/nullrod/attack(mob/M as mob, mob/living/user as mob) //Paste from old-code to decult with a null rod. @@ -47,7 +47,7 @@ msg_admin_attack("[key_name_admin(user)] attacked [key_name_admin(M)] with [src.name] (INTENT: [uppertext(user.a_intent)])") if ((CLUMSY in user.mutations) && prob(50)) - user << "\red The rod slips out of your hand and hits your head." + to_chat(user, "\red The rod slips out of your hand and hits your head.") user.take_organ_damage(10) user.Paralyse(20) return @@ -56,7 +56,7 @@ if(M.mind.vampire) if(ishuman(M)) if(!M.mind.vampire.get_ability(/datum/vampire_passive/full)) - M << "The nullrod's power interferes with your own!" + to_chat(M, "The nullrod's power interferes with your own!") M.mind.vampire.nullified = max(5, M.mind.vampire.nullified + 2) ..() @@ -67,7 +67,7 @@ if(istype(I, T)) //Only the Chaplain's holy armor is capable fo performing this feat. if(!transformed) // can't turn a sword into a sword. var/obj/item/S = new transform_into() - user << "You sheath the [src] into the [I]'s scabbard, transforming it into \a [S]." + to_chat(user, "You sheath the [src] into the [I]'s scabbard, transforming it into \a [S].") user.unEquip(src) qdel(src) user.put_in_hands(S) @@ -98,7 +98,7 @@ attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") suicide_act(mob/user) - viewers(user) << "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide.") return(BRUTELOSS) /obj/item/weapon/sord/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob) @@ -124,7 +124,7 @@ return 1 suicide_act(mob/user) - viewers(user) << "[user] is falling on the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is falling on the [src.name]! It looks like \he's trying to commit suicide.") return(BRUTELOSS) /obj/item/weapon/claymore/ceremonial @@ -147,7 +147,7 @@ attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") suicide_act(mob/user) - viewers(user) << "[user] is slitting \his stomach open with the [src.name]! It looks like \he's trying to commit seppuku." + to_chat(viewers(user), "[user] is slitting \his stomach open with the [src.name]! It looks like \he's trying to commit seppuku.") return(BRUTELOSS) /obj/item/weapon/katana/IsShield() @@ -192,7 +192,7 @@ obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob, params) user.unEquip(I) user.put_in_hands(S) - user << "You fasten the glass shard to the top of the rod with the cable." + to_chat(user, "You fasten the glass shard to the top of the rod with the cable.") qdel(I) qdel(src) @@ -204,7 +204,7 @@ obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob, params) user.unEquip(I) user.put_in_hands(P) - user << "You fasten the wirecutters to the top of the rod with the cable, prongs outward." + to_chat(user, "You fasten the wirecutters to the top of the rod with the cable, prongs outward.") qdel(I) qdel(src) diff --git a/code/game/objects/items/weapons/whetstone.dm b/code/game/objects/items/weapons/whetstone.dm index bc9fae1a118..d19c411899f 100644 --- a/code/game/objects/items/weapons/whetstone.dm +++ b/code/game/objects/items/weapons/whetstone.dm @@ -13,28 +13,28 @@ /obj/item/weapon/whetstone/attackby(obj/item/I, mob/user, params) if(used) - user << "The whetstone is too worn to use again." + to_chat(user, "The whetstone is too worn to use again.") return if(I.force >= max || I.throwforce >= max)//no esword sharpening - user << "[I] is much too powerful to sharpen further." + to_chat(user, "[I] is much too powerful to sharpen further.") return if(requires_sharpness && !I.edge) - user << "You can only sharpen items that are already sharp, such as knives." + to_chat(user, "You can only sharpen items that are already sharp, such as knives.") return if(istype(I, /obj/item/weapon/twohanded))//some twohanded items should still be sharpenable, but handle force differently. therefore i need this stuff var/obj/item/weapon/twohanded/TH = I if(TH.force_wielded >= max) - user << "[TH] is much too powerful to sharpen further." + to_chat(user, "[TH] is much too powerful to sharpen further.") return if(TH.wielded) - user << "[TH] must be unwielded before it can be sharpened." + to_chat(user, "[TH] must be unwielded before it can be sharpened.") return if(TH.force_wielded > initial(TH.force_wielded)) - user << "[TH] has already been refined before. It cannot be sharpened further." + to_chat(user, "[TH] has already been refined before. It cannot be sharpened further.") return TH.force_wielded = Clamp(TH.force_wielded + increment, 0, max)//wieldforce is increased since normal force wont stay if(I.force > initial(I.force)) - user << "[I] has already been refined before. It cannot be sharpened further." + to_chat(user, "[I] has already been refined before. It cannot be sharpened further.") return user.visible_message("[user] sharpens [I] with [src]!", "You sharpen [I], making it much more deadly than before.") if(!requires_sharpness) diff --git a/code/game/objects/items/weapons/wires.dm b/code/game/objects/items/weapons/wires.dm index e1b943f7897..abae807c80a 100644 --- a/code/game/objects/items/weapons/wires.dm +++ b/code/game/objects/items/weapons/wires.dm @@ -12,7 +12,7 @@ attack_verb = list("whipped", "lashed", "disciplined", "tickled") suicide_act(mob/user) - viewers(user) << "\red [user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "\red [user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.") return (OXYLOSS) @@ -28,9 +28,9 @@ /obj/item/weapon/wire/attack_self(mob/user as mob) if (src.laying) src.laying = 0 - user << "\blue You're done laying wire!" + to_chat(user, "\blue You're done laying wire!") else - user << "\blue You are not using this to lay wire..." + to_chat(user, "\blue You are not using this to lay wire...") return diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index ec288220060..952a647f3aa 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -68,11 +68,11 @@ for(var/obj/O in range(0, src)) if(O.density == 1 && O != src && !istype(O, /obj/machinery/door/window)) //Ignores windoors, as those already block climbing, otherwise a windoor on the opposite side of a table would prevent climbing. - user << "\red You cannot climb [src], as it is blocked by \a [O]!" + to_chat(user, "\red You cannot climb [src], as it is blocked by \a [O]!") return for(var/turf/T in range(0, src)) if(T.density == 1) - user << "\red You cannot climb [src], as it is blocked by \a [T]!" + to_chat(user, "\red You cannot climb [src], as it is blocked by \a [T]!") return var/turf/T = src.loc if(!T || !istype(T)) return @@ -108,14 +108,14 @@ if(M.lying) return //No spamming this on people. M.Weaken(5) - M << "\red You topple as \the [src] moves under you!" + to_chat(M, "\red You topple as \the [src] moves under you!") if(prob(25)) var/damage = rand(15,30) var/mob/living/carbon/human/H = M if(!istype(H)) - H << "\red You land heavily!" + to_chat(H, "\red You land heavily!") M.adjustBruteLoss(damage) return @@ -134,12 +134,12 @@ affecting = H.get_organ("head") if(affecting) - M << "\red You land heavily on your [affecting.name]!" + to_chat(M, "\red You land heavily on your [affecting.name]!") affecting.take_damage(damage, 0) if(affecting.parent) affecting.parent.add_autopsy_data("Misadventure", damage) else - H << "\red You land heavily!" + to_chat(H, "\red You land heavily!") H.adjustBruteLoss(damage) H.UpdateDamageIcon() @@ -152,12 +152,12 @@ if(!Adjacent(user)) return 0 if (user.restrained() || user.buckled) - user << "You need your hands and legs free for this." + to_chat(user, "You need your hands and legs free for this.") return 0 if (user.stat || user.paralysis || user.sleeping || user.lying || user.weakened) return 0 if (issilicon(user)) - user << "You need hands for this." + to_chat(user, "You need hands for this.") return 0 return 1 diff --git a/code/game/objects/structures/artstuff.dm b/code/game/objects/structures/artstuff.dm index 6604649ad4c..9251890dc6e 100644 --- a/code/game/objects/structures/artstuff.dm +++ b/code/game/objects/structures/artstuff.dm @@ -139,15 +139,15 @@ var/global/list/globalBlankCanvases[AMT_OF_CANVASES] ..(user) if(in_range(user, src) && get_turf(src) && user.client && ishuman(user)) //Let only humans be the robust zoominators. I'm too spooked other mobs trying to use it may get broken huds. if(src.loc == user || get_turf(src) == get_turf(user)) - user << "[src] has to be on the ground to focus on it!" + to_chat(user, "[src] has to be on the ground to focus on it!") return - user << "You focus on \the [src]." + to_chat(user, "You focus on \the [src].") user.client.screen = list() //This is because screen objects go way past the view bounds we set, therefore not allowing stretch to fit to zoom in properly. user.client.reset_stretch = winget(user.client, "mapwindow.map", "icon-size") //Remember previous icon-size user.client.view = 3 //Decrease view winset(user.client, "mapwindow.map", "icon-size=0") //Enable stretch-to-fit user.client.viewingCanvas = 1 //Reset everything we just changed as soon as client tries to move else - user << "It is too far away." + to_chat(user, "It is too far away.") #undef AMT_OF_CANVASES \ No newline at end of file diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm index 8957329c4a1..a1b4c51d702 100644 --- a/code/game/objects/structures/barsign.dm +++ b/code/game/objects/structures/barsign.dm @@ -50,10 +50,10 @@ /obj/structure/sign/barsign/attack_hand(mob/user as mob) if (!src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return if (broken) - user << "The controls seem unresponsive." + to_chat(user, "The controls seem unresponsive.") return pick_sign() @@ -62,15 +62,15 @@ /obj/structure/sign/barsign/attackby(var/obj/item/I, var/mob/user) if(!allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return if( istype(I, /obj/item/weapon/screwdriver)) if(!panel_open) - user << "You open the maintenance panel." + to_chat(user, "You open the maintenance panel.") set_sign(new /datum/barsign/hiddensigns/signoff) panel_open = 1 else - user << "You close the maintenance panel." + to_chat(user, "You close the maintenance panel.") if(!broken && !emagged) set_sign(pick(barsigns)) else if(emagged) @@ -82,17 +82,17 @@ if(istype(I, /obj/item/stack/cable_coil) && panel_open) var/obj/item/stack/cable_coil/C = I if(emagged) //Emagged, not broken by EMP - user << "Sign has been damaged beyond repair!" + to_chat(user, "Sign has been damaged beyond repair!") return else if(!broken) - user << "This sign is functioning properly!" + to_chat(user, "This sign is functioning properly!") return if(C.use(2)) - user << "You replace the burnt wiring." + to_chat(user, "You replace the burnt wiring.") broken = 0 else - user << "You need at least two lengths of cable!" + to_chat(user, "You need at least two lengths of cable!") @@ -105,9 +105,9 @@ /obj/structure/sign/barsign/emag_act(mob/user) if(broken || emagged) - user << "Nothing interesting happens!" + to_chat(user, "Nothing interesting happens!") return - user << "You emag the barsign. Takeover in progress..." + to_chat(user, "You emag the barsign. Takeover in progress...") sleep(100) //10 seconds set_sign(new /datum/barsign/hiddensigns/syndibarsign) emagged = 1 diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index af608addbf8..f7e178716c5 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -169,12 +169,12 @@ LINEN BINS /obj/structure/bedsheetbin/examine(mob/user) ..(user) if(amount < 1) - user << "There are no bed sheets in the bin." + to_chat(user, "There are no bed sheets in the bin.") return if(amount == 1) - user << "There is one bed sheet in the bin." + to_chat(user, "There is one bed sheet in the bin.") return - user << "There are [amount] bed sheets in the bin." + to_chat(user, "There are [amount] bed sheets in the bin.") /obj/structure/bedsheetbin/update_icon() @@ -190,12 +190,12 @@ LINEN BINS I.loc = src sheets.Add(I) amount++ - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") else if(amount && !hidden && I.w_class < 4) //make sure there's sheets to hide it among, make sure nothing else is hidden in there. user.drop_item() I.loc = src hidden = I - user << "You hide [I] among the sheets." + to_chat(user, "You hide [I] among the sheets.") @@ -213,11 +213,11 @@ LINEN BINS B.loc = user.loc user.put_in_hands(B) - user << "You take [B] out of [src]." + to_chat(user, "You take [B] out of [src].") if(hidden) hidden.loc = user.loc - user << "[hidden] falls out of [B]!" + to_chat(user, "[hidden] falls out of [B]!") hidden = null @@ -237,7 +237,7 @@ LINEN BINS B = new /obj/item/weapon/bedsheet(loc) B.loc = loc - user << "You telekinetically remove [B] from [src]." + to_chat(user, "You telekinetically remove [B] from [src].") update_icon() if(hidden) diff --git a/code/game/objects/structures/coathanger.dm b/code/game/objects/structures/coathanger.dm index 13136868954..a91b5aa3564 100644 --- a/code/game/objects/structures/coathanger.dm +++ b/code/game/objects/structures/coathanger.dm @@ -25,7 +25,7 @@ coat.loc = src update_icon() else - user << "You cannot hang [W] on [src]" + to_chat(user, "You cannot hang [W] on [src]") return ..() /obj/structure/coatrack/CanPass(atom/movable/mover, turf/target, height=0, air_group=0) diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index b395e55fc0e..87457fd791d 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -135,7 +135,7 @@ /obj/structure/closet/proc/toggle(mob/user as mob) if(!(src.opened ? src.close() : src.open())) - user << "It won't budge!" + to_chat(user, "It won't budge!") return // this should probably use dump_contents() @@ -193,7 +193,7 @@ var/obj/item/weapon/rcs/E = W if(E.rcell && (E.rcell.charge >= E.chargecost)) if(!(src.z in config.contact_levels)) - user << "The rapid-crate-sender can't locate any telepads!" + to_chat(user, "The rapid-crate-sender can't locate any telepads!") return if(E.mode == 0) if(!E.teleporting) @@ -211,14 +211,14 @@ var/desc = input("Please select a telepad.", "RCS") in L E.pad = L[desc] playsound(E.loc, 'sound/machines/click.ogg', 50, 1) - user << "\blue Teleporting [src.name]..." + to_chat(user, "\blue Teleporting [src.name]...") E.teleporting = 1 if(!do_after(user, 50, target = src)) E.teleporting = 0 return E.teleporting = 0 if(user in contents) - user << "Error: User located in container--aborting for safety." + to_chat(user, "Error: User located in container--aborting for safety.") playsound(E.loc, 'sound/machines/buzz-sigh.ogg', 50, 1) return var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread @@ -226,21 +226,21 @@ s.start() do_teleport(src, E.pad, 0) E.rcell.use(E.chargecost) - user << "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left." + to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.") return else E.rand_x = rand(50,200) E.rand_y = rand(50,200) var/L = locate(E.rand_x, E.rand_y, 6) playsound(E.loc, 'sound/machines/click.ogg', 50, 1) - user << "\blue Teleporting [src.name]..." + to_chat(user, "\blue Teleporting [src.name]...") E.teleporting = 1 if(!do_after(user, 50, target = src)) E.teleporting = 0 return E.teleporting = 0 if(user in contents) - user << "Error: User located in container--aborting for safety." + to_chat(user, "Error: User located in container--aborting for safety.") playsound(E.loc, 'sound/machines/buzz-sigh.ogg', 50, 1) return var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread @@ -248,10 +248,10 @@ s.start() do_teleport(src, L) E.rcell.use(E.chargecost) - user << "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left." + to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.") return else - user << "Out of charges." + to_chat(user, "Out of charges.") return if(src.opened) @@ -262,7 +262,7 @@ if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(!WT.remove_fuel(0,user)) - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return new /obj/item/stack/sheet/metal(src.loc) for(var/mob/M in viewers(src)) @@ -280,10 +280,10 @@ else if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(src == user.loc) - user << "You can not [welded?"unweld":"weld"] the locker from inside." + to_chat(user, "You can not [welded?"unweld":"weld"] the locker from inside.") return if(!WT.remove_fuel(0,user)) - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return src.welded = !src.welded src.update_icon() @@ -326,11 +326,11 @@ return if(!src.open()) - user << "It won't budge!" + to_chat(user, "It won't budge!") if(!lastbang) lastbang = 1 for (var/mob/M in hearers(src, null)) - M << text("BANG, bang!", max(0, 5 - get_dist(src, M))) + to_chat(M, text("BANG, bang!", max(0, 5 - get_dist(src, M)))) spawn(30) lastbang = 0 @@ -342,7 +342,7 @@ /obj/structure/closet/attack_self_tk(mob/user as mob) src.add_fingerprint(user) if(!src.toggle()) - usr << "It won't budge!" + to_chat(usr, "It won't budge!") /obj/structure/closet/verb/verb_toggleopen() set src in oview(1) @@ -356,7 +356,7 @@ src.add_fingerprint(usr) src.toggle(usr) else - usr << "This mob type can't use this verb." + to_chat(usr, "This mob type can't use this verb.") /obj/structure/closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot) overlays.Cut() @@ -389,7 +389,7 @@ //okay, so the closet is either welded or locked... resist!!! L.changeNext_move(CLICK_CD_BREAKOUT) L.last_special = world.time + CLICK_CD_BREAKOUT - L << "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)" + to_chat(L, "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)") for(var/mob/O in viewers(usr.loc)) O.show_message("The [src] begins to shake violently!", 1) @@ -406,7 +406,7 @@ //Well then break it! welded = 0 update_icon() - usr << "You successfully break out!" + to_chat(usr, "You successfully break out!") for(var/mob/O in viewers(L.loc)) O.show_message("\the [usr] successfully broke out of \the [src]!", 1) if(istype(src.loc, /obj/structure/bigDelivery)) //nullspace ect.. read the comment above diff --git a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm index bfc9e385353..824cff35ece 100644 --- a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm +++ b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm @@ -34,7 +34,7 @@ if(!L.stat) L.do_alert_animation(L) egged = 1 - alerted << sound('sound/machines/chime.ogg') + to_chat(alerted, sound('sound/machines/chime.ogg')) ..() /mob/living/proc/do_alert_animation(atom/A) diff --git a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm index 82897dfe61a..f74f603df54 100644 --- a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm +++ b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm @@ -23,11 +23,11 @@ if (isrobot(user) || src.locked) if(istype(O, /obj/item/device/multitool)) - user << "\red Resetting circuitry..." + to_chat(user, "\red Resetting circuitry...") playsound(user, 'sound/machines/lockreset.ogg', 50, 1) if(do_after(user, 20, target = src)) src.locked = 0 - user << " You disable the locking modules." + to_chat(user, " You disable the locking modules.") update_icon() return else if(istype(O, /obj/item/weapon)) @@ -43,7 +43,7 @@ user.do_attack_animation(src) playsound(user, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time if(W.force < 15) - user << "\blue The cabinet's protective glass glances off the hit." + to_chat(user, "\blue The cabinet's protective glass glances off the hit.") else src.hitstaken++ if(src.hitstaken == 4) @@ -56,12 +56,12 @@ if (istype(O, /obj/item/weapon/twohanded/fireaxe) && src.localopened) if(!fireaxe) if(O:wielded) - user << "\red Unwield the axe first." + to_chat(user, "\red Unwield the axe first.") return fireaxe = O user.drop_item(O) src.contents += O - user << "\blue You place the fire axe back in the [src.name]." + to_chat(user, "\blue You place the fire axe back in the [src.name].") update_icon() else if(src.smashed) @@ -84,14 +84,14 @@ spawn(10) update_icon() return else - user << "\red Resetting circuitry..." + to_chat(user, "\red Resetting circuitry...") sleep(50) src.locked = 1 - user << "\blue You re-enable the locking modules." + to_chat(user, "\blue You re-enable the locking modules.") playsound(user, 'sound/machines/lockenable.ogg', 50, 1) if(do_after(user,20, target = src)) src.locked = 1 - user << " You re-enable the locking modules." + to_chat(user, " You re-enable the locking modules.") return else localopened = !localopened @@ -112,13 +112,13 @@ hasaxe = 1 if(src.locked) - user <<"\red The cabinet won't budge!" + to_chat(user, "\red The cabinet won't budge!") return if(localopened) if(fireaxe) user.put_in_hands(fireaxe) fireaxe = null - user << "\blue You take the fire axe from the [name]." + to_chat(user, "\blue You take the fire axe from the [name].") src.add_fingerprint(user) update_icon() else @@ -145,7 +145,7 @@ attack_tk(mob/user as mob) if(localopened && fireaxe) fireaxe.forceMove(loc) - user << "\blue You telekinetically remove the fire axe." + to_chat(user, "\blue You telekinetically remove the fire axe.") fireaxe = null update_icon() return @@ -157,9 +157,9 @@ if (isrobot(usr) || src.locked || src.smashed) if(src.locked) - usr << "\red The cabinet won't budge!" + to_chat(usr, "\red The cabinet won't budge!") else if(src.smashed) - usr << "\blue The protective glass is broken!" + to_chat(usr, "\blue The protective glass is broken!") return localopened = !localopened @@ -176,23 +176,23 @@ if(fireaxe) usr.put_in_hands(fireaxe) fireaxe = null - usr << "\blue You take the Fire axe from the [name]." + to_chat(usr, "\blue You take the Fire axe from the [name].") else - usr << "\blue The [src.name] is empty." + to_chat(usr, "\blue The [src.name] is empty.") else - usr << "\blue The [src.name] is closed." + to_chat(usr, "\blue The [src.name] is closed.") update_icon() attack_ai(mob/user as mob) if(src.smashed) - user << "\red The security of the cabinet is compromised." + to_chat(user, "\red The security of the cabinet is compromised.") return else locked = !locked if(locked) - user << "\red Cabinet locked." + to_chat(user, "\red Cabinet locked.") else - user << "\blue Cabinet unlocked." + to_chat(user, "\blue Cabinet unlocked.") return update_icon() //Template: fireaxe[has fireaxe][is opened][hits taken][is smashed]. If you want the opening or closing animations, add "opening" or "closing" right after the numbers diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm index 70a8d5bd9d2..1de1f8d8440 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -66,12 +66,12 @@ if (W) W.forceMove(loc) else if(istype(W, /obj/item/weapon/card/id)) if(src.broken) - user << "\red It appears to be broken." + to_chat(user, "\red It appears to be broken.") return var/obj/item/weapon/card/id/I = W if(!I || !I.registered_name) return if(src == user.loc) - user << "You can't reach the lock from inside." + to_chat(user, "You can't reach the lock from inside.") else if(src.allowed(user) || !src.registered_name || (istype(I) && (src.registered_name == I.registered_name))) //they can open all lockers, or nobody owns this, or they own this locker src.locked = !( src.locked ) @@ -86,9 +86,9 @@ src.registered_name = I.registered_name src.desc = "Owned by [I.registered_name]." else - user << "\red Access Denied" + to_chat(user, "\red Access Denied") else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken) emag_act(user) else - user << "\red Access Denied" + to_chat(user, "\red Access Denied") return diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm index 1c2a34c719d..fc7563e6b3a 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm @@ -48,22 +48,22 @@ /obj/structure/closet/secure_closet/proc/togglelock(mob/user as mob) if(src.opened) - user << "Close the locker first." + to_chat(user, "Close the locker first.") return if(src.broken) - user << "The locker appears to be broken." + to_chat(user, "The locker appears to be broken.") return if(user.loc == src) - user << "You can't reach the lock from inside." + to_chat(user, "You can't reach the lock from inside.") return if(src.allowed(user)) src.locked = !src.locked for(var/mob/O in viewers(user, 3)) if((O.client && !( O.blinded ))) - O << "The locker has been [locked ? null : "un"]locked by [user]." + to_chat(O, "The locker has been [locked ? null : "un"]locked by [user].") update_icon() else - user << "Access Denied" + to_chat(user, "Access Denied") /obj/structure/closet/secure_closet/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/rcs)) @@ -74,7 +74,7 @@ if(src.large) src.MouseDrop_T(W:affecting, user) //act like they were dragged onto the closet else - user << "The locker is too small to stuff [W:affecting] into!" + to_chat(user, "The locker is too small to stuff [W:affecting] into!") if(isrobot(user)) return user.drop_item() @@ -94,7 +94,7 @@ desc = "It appears to be broken." icon_state = icon_off flick(icon_broken, src) - user << "You unlock \the [src]." + to_chat(user, "You unlock \the [src].") /obj/structure/closet/secure_closet/attack_hand(mob/user as mob) src.add_fingerprint(user) @@ -115,7 +115,7 @@ src.add_fingerprint(usr) src.togglelock(usr) else - usr << "This mob type can't use this verb." + to_chat(usr, "This mob type can't use this verb.") /obj/structure/closet/secure_closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot) overlays.Cut() @@ -141,7 +141,7 @@ //okay, so the closet is either welded or locked... resist!!! L.changeNext_move(CLICK_CD_BREAKOUT) L.last_special = world.time + CLICK_CD_BREAKOUT - L << "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)" + to_chat(L, "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)") for(var/mob/O in viewers(src)) O.show_message("The [src] begins to shake violently!", 1) @@ -166,7 +166,7 @@ locked = 0 welded = 0 update_icon() - usr << "\red You successfully break out!" + to_chat(usr, "\red You successfully break out!") for(var/mob/O in viewers(L.loc)) O.show_message("\the [usr] successfully broke out of \the [src]!", 1) if(istype(src.loc, /obj/structure/bigDelivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace) diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm index 6a5bf87680e..a315e598819 100644 --- a/code/game/objects/structures/crates_lockers/closets/statue.dm +++ b/code/game/objects/structures/crates_lockers/closets/statue.dm @@ -67,7 +67,7 @@ if(S.mind) for(var/mob/M in contents) S.mind.transfer_to(M) - M << "As the animating magic wears off you feel yourself coming back to your senses. You are yourself again!" + to_chat(M, "As the animating magic wears off you feel yourself coming back to your senses. You are yourself again!") break qdel(S) diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index df48bf96d7c..e91df4762df 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -85,7 +85,7 @@ var/obj/item/weapon/rcs/E = W if(E.rcell && (E.rcell.charge >= E.chargecost)) if(!(src.z in config.player_levels)) - user << "The rapid-crate-sender can't locate any telepads!" + to_chat(user, "The rapid-crate-sender can't locate any telepads!") return if(E.mode == 0) if(!E.teleporting) @@ -103,7 +103,7 @@ var/desc = input("Please select a telepad.", "RCS") in L E.pad = L[desc] playsound(E.loc, 'sound/machines/click.ogg', 50, 1) - user << "\blue Teleporting [src.name]..." + to_chat(user, "\blue Teleporting [src.name]...") E.teleporting = 1 if(!do_after(user, 50, target = src)) E.teleporting = 0 @@ -114,14 +114,14 @@ s.start() do_teleport(src, E.pad, 0) E.rcell.use(E.chargecost) - user << "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left." + to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.") return else E.rand_x = rand(50,200) E.rand_y = rand(50,200) var/L = locate(E.rand_x, E.rand_y, 6) playsound(E.loc, 'sound/machines/click.ogg', 50, 1) - user << "\blue Teleporting [src.name]..." + to_chat(user, "\blue Teleporting [src.name]...") E.teleporting = 1 if(!do_after(user, 50, target = src)) E.teleporting = 0 @@ -132,17 +132,17 @@ s.start() do_teleport(src, L) E.rcell.use(E.chargecost) - user << "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left." + to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.") return else - user << "Out of charges." + to_chat(user, "Out of charges.") return if(opened) if(isrobot(user)) return if(!user.drop_item()) //couldn't drop the item - user << "\The [W] is stuck to your hand, you cannot put it in \the [src]!" + to_chat(user, "\The [W] is stuck to your hand, you cannot put it in \the [src]!") return if(W) W.forceMove(loc) @@ -150,22 +150,22 @@ return else if(istype(W, /obj/item/stack/cable_coil)) if(rigged) - user << "[src] is already rigged!" + to_chat(user, "[src] is already rigged!") return - user << "You rig [src]." + to_chat(user, "You rig [src].") user.drop_item() qdel(W) rigged = 1 return else if(istype(W, /obj/item/device/radio/electropack)) if(rigged) - user << "You attach [W] to [src]." + to_chat(user, "You attach [W] to [src].") user.drop_item() W.forceMove(src) return else if(istype(W, /obj/item/weapon/wirecutters)) if(rigged) - user << "You cut away the wiring." + to_chat(user, "You cut away the wiring.") playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1) rigged = 0 return @@ -193,7 +193,7 @@ /obj/structure/closet/crate/attack_hand(mob/user as mob) if(manifest) - user << "You tear the manifest off of the crate." + to_chat(user, "You tear the manifest off of the crate.") playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1) manifest.forceMove(loc) if(ishuman(user)) @@ -253,19 +253,19 @@ /obj/structure/closet/crate/secure/proc/togglelock(mob/user as mob) if(src.opened) - user << "Close the crate first." + to_chat(user, "Close the crate first.") return if(src.broken) - user << "The crate appears to be broken." + to_chat(user, "The crate appears to be broken.") return if(src.allowed(user)) src.locked = !src.locked for(var/mob/O in viewers(user, 3)) if((O.client && !( O.blinded ))) - O << "The crate has been [locked ? null : "un"]locked by [user]." + to_chat(O, "The crate has been [locked ? null : "un"]locked by [user].") update_icon() else - user << "Access Denied" + to_chat(user, "Access Denied") /obj/structure/closet/crate/secure/verb/verb_togglelock() set src in oview(1) // One square distance @@ -279,11 +279,11 @@ src.add_fingerprint(usr) src.togglelock(usr) else - usr << "This mob type can't use this verb." + to_chat(usr, "This mob type can't use this verb.") /obj/structure/closet/crate/secure/attack_hand(mob/user as mob) if(manifest) - user << "You tear the manifest off of the crate." + to_chat(user, "You tear the manifest off of the crate.") playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1) manifest.forceMove(loc) if(ishuman(user)) @@ -316,7 +316,7 @@ src.locked = 0 src.broken = 1 update_icon() - user << "You unlock \the [src]." + to_chat(user, "You unlock \the [src].") return /obj/structure/closet/crate/secure/emp_act(severity) diff --git a/code/game/objects/structures/crates_lockers/crittercrate.dm b/code/game/objects/structures/crates_lockers/crittercrate.dm index b3f9dac3d04..6badf7a6535 100644 --- a/code/game/objects/structures/crates_lockers/crittercrate.dm +++ b/code/game/objects/structures/crates_lockers/crittercrate.dm @@ -35,7 +35,7 @@ src.add_fingerprint(user) if(src.loc == user.loc) - user << "It won't budge!" + to_chat(user, "It won't budge!") toggle() else toggle() diff --git a/code/game/objects/structures/crates_lockers/largecrate.dm b/code/game/objects/structures/crates_lockers/largecrate.dm index 3166c61eb31..4f5eecd0f23 100644 --- a/code/game/objects/structures/crates_lockers/largecrate.dm +++ b/code/game/objects/structures/crates_lockers/largecrate.dm @@ -18,7 +18,7 @@ /obj/structure/largecrate/attack_hand(mob/user as mob) if(manifest) - user << "You tear the manifest off of the crate." + to_chat(user, "You tear the manifest off of the crate.") playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1) manifest.forceMove(loc) if(ishuman(user)) @@ -27,7 +27,7 @@ update_icon() return else - user << "You need a crowbar to pry this open!" + to_chat(user, "You need a crowbar to pry this open!") return /obj/structure/largecrate/attackby(obj/item/weapon/W as obj, mob/user as mob, params) diff --git a/code/game/objects/structures/crates_lockers/walllocker.dm b/code/game/objects/structures/crates_lockers/walllocker.dm index 03a81a7ca5b..d07ee623d38 100644 --- a/code/game/objects/structures/crates_lockers/walllocker.dm +++ b/code/game/objects/structures/crates_lockers/walllocker.dm @@ -30,10 +30,10 @@ if (istype(user, /mob/living/silicon/ai)) //Added by Strumpetplaya - AI shouldn't be able to return //activate emergency lockers. This fixes that. (Does this make sense, the AI can't call attack_hand, can it? --Mloc) if(!amount) - usr << "It's empty." + to_chat(usr, "It's empty.") return if(amount) - usr << "You take out some items from \the [src]." + to_chat(usr, "You take out some items from \the [src].") for(var/path in spawnitems) new path(src.loc) amount-- diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index 938fcc2ccf3..90a95253a96 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -32,14 +32,14 @@ var/global/list/captain_display_cases = list() circuit = W circuit.forceMove(src) state++ - user << "You add the airlock electronics to the frame." + to_chat(user, "You add the airlock electronics to the frame.") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) if(istype(W, /obj/item/weapon/crowbar)) new /obj/machinery/constructable_frame/machine_frame(T) var/obj/item/stack/sheet/glass/G = new /obj/item/stack/sheet/glass(T) G.amount = 5 qdel(src) - user << "You pry the glass out of the frame." + to_chat(user, "You pry the glass out of the frame.") playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) return @@ -64,13 +64,13 @@ var/global/list/captain_display_cases = list() sensor.forceMove(T) sensor = null state-- - user << "You pry the electronics out of the frame." + to_chat(user, "You pry the electronics out of the frame.") playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) if(isprox(W) && !isprox(sensor)) user.drop_item() sensor = W sensor.forceMove(src) - user << "You add the proximity sensor to the frame." + to_chat(user, "You add the proximity sensor to the frame.") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(pstate != state) @@ -126,11 +126,11 @@ var/global/list/captain_display_cases = list() /obj/structure/displaycase/examine(mob/user) ..(user) - user << "Peering through the glass, you see that it contains:" + to_chat(user, "Peering through the glass, you see that it contains:") if(occupant) - user << "\icon[occupant] \A [occupant]." + to_chat(user, "\icon[occupant] \A [occupant].") else - user << "Nothing." + to_chat(user, "Nothing.") /obj/structure/displaycase/proc/dump() if(occupant) @@ -213,13 +213,13 @@ var/global/list/captain_display_cases = list() if(istype(W, /obj/item/weapon/card)) var/obj/item/weapon/card/id/I = W if(!check_access(I)) - user << "Access denied." + to_chat(user, "Access denied.") return locked = !locked if(!locked) - user << "\icon[src] \The [src] clicks as locks release, and it slowly opens for you." + to_chat(user, "\icon[src] \The [src] clicks as locks release, and it slowly opens for you.") else - user << "\icon[src] You close \the [src] and swipe your card, locking it." + to_chat(user, "\icon[src] You close \the [src] and swipe your card, locking it.") update_icon() return if(istype(W,/obj/item/weapon/crowbar) && (!locked || destroyed)) @@ -259,14 +259,14 @@ var/global/list/captain_display_cases = list() ..() else if(!locked) dump() - user << "You smash \the [W] into the delicate electronics at the bottom of the case, and deactivate the hover field." + to_chat(user, "You smash \the [W] into the delicate electronics at the bottom of the case, and deactivate the hover field.") update_icon() else if(locked) - user << "It's locked, you can't put anything into it." + to_chat(user, "It's locked, you can't put anything into it.") return if(!occupant) - user << "You insert \the [W] into \the [src], and it floats as the hoverfield activates." + to_chat(user, "You insert \the [W] into \the [src], and it floats as the hoverfield activates.") user.drop_item() W.forceMove(src) occupant=W @@ -276,7 +276,7 @@ var/global/list/captain_display_cases = list() if (destroyed || (!locked && user.a_intent == I_HARM)) if(occupant) dump() - user << "You smash your fist into the delicate electronics at the bottom of the case, and deactivate the hover field." + to_chat(user, "You smash your fist into the delicate electronics at the bottom of the case, and deactivate the hover field.") src.add_fingerprint(user) update_icon() else @@ -293,19 +293,19 @@ var/global/list/captain_display_cases = list() var/mob/living/carbon/human/H = user var/print = H.get_full_print() if(!ue) - user << "Your press your thumb against the fingerprint scanner, registering your identity with the case." + to_chat(user, "Your press your thumb against the fingerprint scanner, registering your identity with the case.") ue = print return if(ue != print) - user << "Access denied." + to_chat(user, "Access denied.") return if(occupant) - user << "Your press your thumb against the fingerprint scanner, and deactivate the hover field built into the case." + to_chat(user, "Your press your thumb against the fingerprint scanner, and deactivate the hover field built into the case.") dump() update_icon() else - src << "\icon[src] \The [src] is empty!" + to_chat(src, "\icon[src] \The [src] is empty!") else user.visible_message("[user.name] gently runs his hands over \the [src] in appreciation of its contents.", \ "You gently run your hands over \the [src] in appreciation of its contents.", \ diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm index 998f6520361..dc697aa7df9 100644 --- a/code/game/objects/structures/door_assembly.dm +++ b/code/game/objects/structures/door_assembly.dm @@ -157,7 +157,7 @@ obj/structure/door_assembly/multi_tile/Move() user.visible_message("[user] welds the [glass] plating off the airlock assembly.", "You start to weld the [glass] plating off the airlock assembly.") if(do_after(user, 40, target = src)) if(!src || !WT.isOn()) return - user << "\blue You welded the [glass] plating off!" + to_chat(user, "\blue You welded the [glass] plating off!") var/M = text2path("/obj/item/stack/sheet/mineral/[glass]") new M(src.loc, 2) glass = 0 @@ -165,18 +165,18 @@ obj/structure/door_assembly/multi_tile/Move() user.visible_message("[user] welds the glass panel out of the airlock assembly.", "You start to weld the glass panel out of the airlock assembly.") if(do_after(user, 40, target = src)) if(!src || !WT.isOn()) return - user << "\blue You welded the glass panel out!" + to_chat(user, "\blue You welded the glass panel out!") new /obj/item/stack/sheet/rglass(src.loc) glass = 0 else if(!anchored) user.visible_message("[user] dissassembles the airlock assembly.", "You start to dissassemble the airlock assembly.") if(do_after(user, 40, target = src)) if(!src || !WT.isOn()) return - user << "\blue You dissasembled the airlock assembly!" + to_chat(user, "\blue You dissasembled the airlock assembly!") new /obj/item/stack/sheet/metal(src.loc, 4) qdel(src) else - user << "\blue You need more welding fuel." + to_chat(user, "\blue You need more welding fuel.") return else if(istype(W, /obj/item/weapon/wrench) && state == 0) @@ -188,7 +188,7 @@ obj/structure/door_assembly/multi_tile/Move() if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You [anchored? "un" : ""]secured the airlock assembly!" + to_chat(user, "\blue You [anchored? "un" : ""]secured the airlock assembly!") anchored = !anchored else if(istype(W, /obj/item/stack/cable_coil) && state == 0 && anchored ) @@ -198,7 +198,7 @@ obj/structure/door_assembly/multi_tile/Move() if(!src) return coil.use(1) src.state = 1 - user << "\blue You wire the Airlock!" + to_chat(user, "\blue You wire the Airlock!") else if(istype(W, /obj/item/weapon/wirecutters) && state == 1 ) playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) @@ -206,7 +206,7 @@ obj/structure/door_assembly/multi_tile/Move() if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You cut the airlock wires.!" + to_chat(user, "\blue You cut the airlock wires.!") new/obj/item/stack/cable_coil(src.loc, 1) src.state = 0 @@ -218,7 +218,7 @@ obj/structure/door_assembly/multi_tile/Move() if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You installed the airlock electronics!" + to_chat(user, "\blue You installed the airlock electronics!") src.state = 2 src.name = "Near finished Airlock Assembly" src.electronics = W @@ -231,7 +231,7 @@ obj/structure/door_assembly/multi_tile/Move() if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You removed the airlock electronics!" + to_chat(user, "\blue You removed the airlock electronics!") src.state = 1 src.name = "Wired Airlock Assembly" var/obj/item/weapon/airlock_electronics/ae @@ -250,7 +250,7 @@ obj/structure/door_assembly/multi_tile/Move() playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.") if(do_after(user, 40, target = src)) - user << "\blue You installed reinforced glass windows into the airlock assembly!" + to_chat(user, "\blue You installed reinforced glass windows into the airlock assembly!") S.use(1) glass = 1 else if(istype(S, /obj/item/stack/sheet/mineral) && S.sheettype) @@ -259,17 +259,17 @@ obj/structure/door_assembly/multi_tile/Move() playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.") if(do_after(user, 40, target = src)) - user << "\blue You installed [M] plating into the airlock assembly!" + to_chat(user, "\blue You installed [M] plating into the airlock assembly!") S.use(2) glass = "[M]" else if(istype(W, /obj/item/weapon/screwdriver) && state == 2 ) playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) - user << "\blue Now finishing the airlock." + to_chat(user, "\blue Now finishing the airlock.") if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You finish the airlock!" + to_chat(user, "\blue You finish the airlock!") var/path if(istext(glass)) path = text2path("/obj/machinery/door/airlock/[glass]") diff --git a/code/game/objects/structures/electricchair.dm b/code/game/objects/structures/electricchair.dm index 0486ad2358a..f5ab3cb14aa 100644 --- a/code/game/objects/structures/electricchair.dm +++ b/code/game/objects/structures/electricchair.dm @@ -40,9 +40,9 @@ if(usr.stat || !usr.canmove || usr.restrained()) return if(last_time + delay_time > world.time) - usr << "\The [src] is not ready yet!" + to_chat(usr, "\The [src] is not ready yet!") return - usr << "You activate \the [src]." + to_chat(usr, "You activate \the [src].") shock() return @@ -78,7 +78,7 @@ visible_message("The electric chair went off!", "You hear a deep sharp shock!") if(buckled_mob) buckled_mob.burn_skin(90) - buckled_mob << "You feel a deep shock course through your body!" + to_chat(buckled_mob, "You feel a deep shock course through your body!") sleep(1) buckled_mob.burn_skin(90) sleep(5) diff --git a/code/game/objects/structures/engicart.dm b/code/game/objects/structures/engicart.dm index 85fee295e38..76dbc81ca43 100644 --- a/code/game/objects/structures/engicart.dm +++ b/code/game/objects/structures/engicart.dm @@ -18,7 +18,7 @@ user.drop_item() I.loc = src updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") return /obj/structure/engineeringcart/attackby(obj/item/I, mob/user, params) var/fail_msg = "There is already one of those in [src]." @@ -29,56 +29,56 @@ myglass=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/stack/sheet/metal)) if(!mymetal) put_in_cart(I, user) mymetal=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/stack/sheet/plasteel)) if(!myplasteel) put_in_cart(I, user) myplasteel=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/device/flashlight)) if(!myflashlight) put_in_cart(I, user) myflashlight=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/storage/toolbox/mechanical)) if(!mybluetoolbox) put_in_cart(I, user) mybluetoolbox=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/storage/toolbox/electrical)) if(!myyellowtoolbox) put_in_cart(I, user) myyellowtoolbox=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/storage/toolbox)) if(!myredtoolbox) put_in_cart(I, user) myredtoolbox=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/taperoll/engineering/)) if(!myengitape) put_in_cart(I, user) myengitape=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/wrench)) if (!anchored && !isinspace()) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) @@ -95,7 +95,7 @@ "You hear ratchet.") anchored = 0 else - usr << "You cannot interface your modules [src]!" + to_chat(usr, "You cannot interface your modules [src]!") /obj/structure/engineeringcart/attack_hand(mob/user) user.set_machine(src) @@ -128,42 +128,42 @@ if(href_list["glass"]) if(myglass) user.put_in_hands(myglass) - user << "You take [myglass] from [src]." + to_chat(user, "You take [myglass] from [src].") myglass = null if(href_list["metal"]) if(mymetal) user.put_in_hands(mymetal) - user << "You take [mymetal] from [src]." + to_chat(user, "You take [mymetal] from [src].") mymetal = null if(href_list["plasteel"]) if(myplasteel) user.put_in_hands(myplasteel) - user << "You take [myplasteel] from [src]." + to_chat(user, "You take [myplasteel] from [src].") myplasteel = null if(href_list["flashlight"]) if(myflashlight) user.put_in_hands(myflashlight) - user << "You take [myflashlight] from [src]." + to_chat(user, "You take [myflashlight] from [src].") myflashlight = null if(href_list["bluetoolbox"]) if(mybluetoolbox) user.put_in_hands(mybluetoolbox) - user << "You take [mybluetoolbox] from [src]." + to_chat(user, "You take [mybluetoolbox] from [src].") mybluetoolbox = null if(href_list["redtoolbox"]) if(myredtoolbox) user.put_in_hands(myredtoolbox) - user << "You take [myredtoolbox] from [src]." + to_chat(user, "You take [myredtoolbox] from [src].") myredtoolbox = null if(href_list["yellowtoolbox"]) if(myyellowtoolbox) user.put_in_hands(myyellowtoolbox) - user << "You take [myyellowtoolbox] from [src]." + to_chat(user, "You take [myyellowtoolbox] from [src].") myyellowtoolbox = null if(href_list["engitape"]) if(myengitape) user.put_in_hands(myengitape) - user << "You take [myengitape] from [src]." + to_chat(user, "You take [myengitape] from [src].") myengitape = null update_icon() diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm index f8b3317253a..d0521d33f0e 100644 --- a/code/game/objects/structures/extinguisher.dm +++ b/code/game/objects/structures/extinguisher.dm @@ -17,7 +17,7 @@ user.drop_item(O) contents += O has_extinguisher = O - user << "You place [O] in [src]." + to_chat(user, "You place [O] in [src].") else opened = !opened else @@ -34,11 +34,11 @@ if (user.hand) temp = H.organs_by_name["l_hand"] if(temp && !temp.is_usable()) - user << "You try to move your [temp.name], but cannot!" + to_chat(user, "You try to move your [temp.name], but cannot!") return if(has_extinguisher) user.put_in_hands(has_extinguisher) - user << "You take [has_extinguisher] from [src]." + to_chat(user, "You take [has_extinguisher] from [src].") has_extinguisher = null opened = 1 else @@ -48,7 +48,7 @@ /obj/structure/extinguisher_cabinet/attack_tk(mob/user) if(has_extinguisher) has_extinguisher.loc = loc - user << "You telekinetically remove [has_extinguisher] from [src]." + to_chat(user, "You telekinetically remove [has_extinguisher] from [src].") has_extinguisher = null opened = 1 else diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index 668ddc029e5..cbdce196c47 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -77,17 +77,17 @@ /obj/structure/falsewall/attackby(obj/item/weapon/W, mob/user, params) if(opening) - user << "You must wait until the door has stopped moving." + to_chat(user, "You must wait until the door has stopped moving.") return if(density) var/turf/T = get_turf(src) if(T.density) - user << "[src] is blocked!" + to_chat(user, "[src] is blocked!") return if(istype(W, /obj/item/weapon/screwdriver)) if (!istype(T, /turf/simulated/floor)) - user << "[src] bolts must be tightened on the floor!" + to_chat(user, "[src] bolts must be tightened on the floor!") return user.visible_message("[user] tightens some bolts on the wall.", "You tighten the bolts on the wall.") ChangeToWall() @@ -96,7 +96,7 @@ if(WT.remove_fuel(0,user)) dismantle(user) else - user << "You can't reach, close it first!" + to_chat(user, "You can't reach, close it first!") if(istype(W, /obj/item/weapon/gun/energy/plasmacutter) || istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill) || istype(W, /obj/item/weapon/pickaxe/drill/jackhammer) || istype(W, /obj/item/weapon/melee/energy/blade)) dismantle(user) diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm index 80964a3b108..ab167113178 100644 --- a/code/game/objects/structures/flora.dm +++ b/code/game/objects/structures/flora.dm @@ -287,12 +287,12 @@ if(istype(I, /obj/item/weapon/hatchet) && !stump) if(indestructable) //this bush marks the edge of the map, you can't destroy it - user << "\red You flail away at the undergrowth, but it's too thick here." + to_chat(user, "\red You flail away at the undergrowth, but it's too thick here.") else user.visible_message("\red [user] begins clearing away [src].","\red You begin clearing away [src].") spawn(rand(15,30)) if(get_dist(user,src) < 2) - user << "\blue You clear away [src]." + to_chat(user, "\blue You clear away [src].") var/obj/item/stack/sheet/wood/W = new(src.loc) W.amount = rand(3,15) if(prob(50)) diff --git a/code/game/objects/structures/foodcart.dm b/code/game/objects/structures/foodcart.dm index c1a3a388d48..e2df39180d9 100644 --- a/code/game/objects/structures/foodcart.dm +++ b/code/game/objects/structures/foodcart.dm @@ -26,7 +26,7 @@ user.drop_item() I.loc = src updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") return /obj/structure/foodcart/attackby(obj/item/I, mob/user, params) @@ -42,7 +42,7 @@ success = 1 break; if(!success) - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/reagent_containers/food/drinks)) var/success = 0 for(var/s=1,s<=6,s++) @@ -53,7 +53,7 @@ success = 1 break; if(!success) - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/wrench)) if (!anchored && !isinspace()) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) @@ -70,7 +70,7 @@ "You hear ratchet.") anchored = 0 else - usr << "You cannot interface your modules [src]!" + to_chat(usr, "You cannot interface your modules [src]!") /obj/structure/foodcart/attack_hand(mob/user) user.set_machine(src) @@ -112,62 +112,62 @@ if(href_list["f1"]) if(food_slots[1]) user.put_in_hands(food_slots[1]) - user << "You take [food_slots[1]] from [src]." + to_chat(user, "You take [food_slots[1]] from [src].") food_slots[1] = null if(href_list["f2"]) if(food_slots[2]) user.put_in_hands(food_slots[2]) - user << "You take [food_slots[2]] from [src]." + to_chat(user, "You take [food_slots[2]] from [src].") food_slots[2] = null if(href_list["f3"]) if(food_slots[3]) user.put_in_hands(food_slots[3]) - user << "You take [food_slots[3]] from [src]." + to_chat(user, "You take [food_slots[3]] from [src].") food_slots[3] = null if(href_list["f4"]) if(food_slots[4]) user.put_in_hands(food_slots[4]) - user << "You take [food_slots[4]] from [src]." + to_chat(user, "You take [food_slots[4]] from [src].") food_slots[4] = null if(href_list["f5"]) if(food_slots[5]) user.put_in_hands(food_slots[5]) - user << "You take [food_slots[5]] from [src]." + to_chat(user, "You take [food_slots[5]] from [src].") food_slots[5] = null if(href_list["f6"]) if(food_slots[6]) user.put_in_hands(food_slots[6]) - user << "You take [food_slots[6]] from [src]." + to_chat(user, "You take [food_slots[6]] from [src].") food_slots[6] = null if(href_list["d1"]) if(drink_slots[1]) user.put_in_hands(drink_slots[1]) - user << "You take [drink_slots[1]] from [src]." + to_chat(user, "You take [drink_slots[1]] from [src].") drink_slots[1] = null if(href_list["d2"]) if(drink_slots[2]) user.put_in_hands(drink_slots[2]) - user << "You take [drink_slots[2]] from [src]." + to_chat(user, "You take [drink_slots[2]] from [src].") drink_slots[2] = null if(href_list["d3"]) if(drink_slots[3]) user.put_in_hands(drink_slots[3]) - user << "You take [drink_slots[3]] from [src]." + to_chat(user, "You take [drink_slots[3]] from [src].") drink_slots[3] = null if(href_list["d4"]) if(drink_slots[4]) user.put_in_hands(drink_slots[4]) - user << "You take [drink_slots[4]] from [src]." + to_chat(user, "You take [drink_slots[4]] from [src].") drink_slots[4] = null if(href_list["d5"]) if(drink_slots[5]) user.put_in_hands(drink_slots[5]) - user << "You take [drink_slots[5]] from [src]." + to_chat(user, "You take [drink_slots[5]] from [src].") drink_slots[5] = null if(href_list["d6"]) if(drink_slots[6]) user.put_in_hands(drink_slots[6]) - user << "You take [drink_slots[6]] from [src]." + to_chat(user, "You take [drink_slots[6]] from [src].") drink_slots[6] = null update_icon() //Not really needed without overlays, but keeping just in case diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm index af20468279e..5d047e3ec2f 100644 --- a/code/game/objects/structures/girders.dm +++ b/code/game/objects/structures/girders.dm @@ -32,62 +32,62 @@ if(istype(W, /obj/item/weapon/wrench) && state == 0) if(anchored && !istype(src,/obj/structure/girder/displaced)) playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "\blue Now disassembling the girder" + to_chat(user, "\blue Now disassembling the girder") if(do_after(user,40, target = src)) if(!src) return - user << "\blue You dissasembled the girder!" + to_chat(user, "\blue You dissasembled the girder!") refundMetal(metalUsed) qdel(src) else if(!anchored) playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "\blue Now securing the girder" + to_chat(user, "\blue Now securing the girder") if(get_turf(user, 40)) - user << "\blue You secured the girder!" + to_chat(user, "\blue You secured the girder!") new/obj/structure/girder( src.loc ) qdel(src) else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) - user << "\blue Now slicing apart the girder" + to_chat(user, "\blue Now slicing apart the girder") if(do_after(user,30, target = src)) if(!src) return - user << "\blue You slice apart the girder!" + to_chat(user, "\blue You slice apart the girder!") refundMetal(metalUsed) qdel(src) else if(istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill)) - user << "\blue You drill through the girder!" + to_chat(user, "\blue You drill through the girder!") refundMetal(metalUsed) qdel(src) else if(istype(W, /obj/item/weapon/pickaxe/drill/jackhammer)) playsound(src.loc, 'sound/weapons/sonic_jackhammer.ogg', 100, 1) - user << "You Disintegrate the girder!" + to_chat(user, "You Disintegrate the girder!") refundMetal(metalUsed) qdel(src) else if(istype(W, /obj/item/weapon/screwdriver) && state == 2 && istype(src,/obj/structure/girder/reinforced)) playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) - user << "\blue Now unsecuring support struts" + to_chat(user, "\blue Now unsecuring support struts") if(do_after(user,40, target = src)) if(!src) return - user << "\blue You unsecured the support struts!" + to_chat(user, "\blue You unsecured the support struts!") state = 1 else if(istype(W, /obj/item/weapon/wirecutters) && istype(src,/obj/structure/girder/reinforced) && state == 1) playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) - user << "\blue Now removing support struts" + to_chat(user, "\blue Now removing support struts") if(do_after(user,40, target = src)) if(!src) return - user << "\blue You removed the support struts!" + to_chat(user, "\blue You removed the support struts!") new/obj/structure/girder( src.loc ) qdel(src) else if(istype(W, /obj/item/weapon/crowbar) && state == 0 && anchored ) playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) - user << "\blue Now dislodging the girder" + to_chat(user, "\blue Now dislodging the girder") if(do_after(user, 40, target = src)) if(!src) return - user << "\blue You dislodged the girder!" + to_chat(user, "\blue You dislodged the girder!") new/obj/structure/girder/displaced( src.loc ) qdel(src) @@ -100,16 +100,16 @@ if(!anchored) if(S.amount < 2) return S.use(2) - user << "\blue You create a false wall! Push on it to open or close the passage." + to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.") new /obj/structure/falsewall (src.loc) qdel(src) else if(S.amount < 2) return ..() - user << "\blue Now adding plating..." + to_chat(user, "\blue Now adding plating...") if (do_after(user,40, target = src)) if(!src || !S || S.amount < 2) return S.use(2) - user << "\blue You added the plating!" + to_chat(user, "\blue You added the plating!") var/turf/Tsrc = get_turf(src) Tsrc.ChangeTurf(/turf/simulated/wall) for(var/turf/simulated/wall/X in Tsrc.loc) @@ -121,17 +121,17 @@ if(!anchored) if(S.amount < 2) return S.use(2) - user << "\blue You create a false wall! Push on it to open or close the passage." + to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.") new /obj/structure/falsewall/reinforced (src.loc) qdel(src) else if (src.icon_state == "reinforced") //I cant believe someone would actually write this line of code... if(S.amount < 1) return ..() - user << "\blue Now finalising reinforced wall." + to_chat(user, "\blue Now finalising reinforced wall.") if(do_after(user, 50, target = src)) if(!src || !S || S.amount < 1) return S.use(1) - user << "\blue Wall fully reinforced!" + to_chat(user, "\blue Wall fully reinforced!") var/turf/Tsrc = get_turf(src) Tsrc.ChangeTurf(/turf/simulated/wall/r_wall) for(var/turf/simulated/wall/r_wall/X in Tsrc.loc) @@ -140,11 +140,11 @@ return else if(S.amount < 1) return ..() - user << "\blue Now reinforcing girders" + to_chat(user, "\blue Now reinforcing girders") if (do_after(user,60, target = src)) if(!src || !S || S.amount < 1) return S.use(1) - user << "\blue Girders reinforced!" + to_chat(user, "\blue Girders reinforced!") new/obj/structure/girder/reinforced( src.loc ) qdel(src) return @@ -154,17 +154,17 @@ if(!anchored) if(S.amount < 2) return S.use(2) - user << "\blue You create a false wall! Push on it to open or close the passage." + to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.") var/F = text2path("/obj/structure/falsewall/[M]") new F (src.loc) qdel(src) else if(S.amount < 2) return ..() - user << "\blue Now adding plating..." + to_chat(user, "\blue Now adding plating...") if (do_after(user,40, target = src)) if(!src || !S || S.amount < 2) return S.use(2) - user << "\blue You added the plating!" + to_chat(user, "\blue You added the plating!") var/turf/Tsrc = get_turf(src) Tsrc.ChangeTurf(text2path("/turf/simulated/wall/mineral/[M]")) for(var/turf/simulated/wall/mineral/X in Tsrc.loc) @@ -179,7 +179,7 @@ if (P.pipe_type in list(0, 1, 5)) //simple pipes, simple bends, and simple manifolds. user.drop_item() P.loc = src.loc - user << "\blue You fit the pipe into the [src]!" + to_chat(user, "\blue You fit the pipe into the [src]!") else ..() @@ -241,19 +241,19 @@ /obj/structure/cultgirder/attackby(obj/item/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) - user << "\blue Now disassembling the girder" + to_chat(user, "\blue Now disassembling the girder") if(do_after(user,40, target = src)) - user << "\blue You dissasembled the girder!" + to_chat(user, "\blue You dissasembled the girder!") dismantle() else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) - user << "\blue Now slicing apart the girder" + to_chat(user, "\blue Now slicing apart the girder") if(do_after(user,30, target = src)) - user << "\blue You slice apart the girder!" + to_chat(user, "\blue You slice apart the girder!") dismantle() else if(istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill)) - user << "\blue You drill through the girder!" + to_chat(user, "\blue You drill through the girder!") dismantle() /obj/structure/cultgirder/proc/dismantle() diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 12bdb0c42d9..9c1a9e6867a 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -170,18 +170,18 @@ else dir_to_set = 4 else - user << "You can't reach." + to_chat(user, "You can't reach.") return //Only works for cardinal direcitons, diagonals aren't supposed to work like this. for(var/obj/structure/window/WINDOW in loc) if(WINDOW.dir == dir_to_set) - user << "There is already a window facing this way there." + to_chat(user, "There is already a window facing this way there.") return - user << "You start placing the window." + to_chat(user, "You start placing the window.") if(do_after(user,20, target = src)) if(!src) return //Grille destroyed while waiting for(var/obj/structure/window/WINDOW in loc) if(WINDOW.dir == dir_to_set)//checking this for a 2nd time to check if a window was made while we were waiting. - user << "There is already a window facing this way there." + to_chat(user, "There is already a window facing this way there.") return var/obj/structure/window/WD if(istype(W,/obj/item/stack/sheet/rglass)) @@ -198,7 +198,7 @@ WD.state = 0 var/obj/item/stack/ST = W ST.use(1) - user << "You place the [WD] on [src]." + to_chat(user, "You place the [WD] on [src].") WD.update_icon() return //window placing end diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm index d422d25dfd2..299f776c4f7 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -7,7 +7,7 @@ /obj/item/inflatable/attack_self(mob/user) playsound(loc, 'sound/items/zip.ogg', 75, 1) - user << "\blue You inflate [src]." + to_chat(user, "\blue You inflate [src].") var/obj/structure/inflatable/R = new /obj/structure/inflatable(user.loc) src.transfer_fingerprints_to(R) R.add_fingerprint(user) @@ -150,7 +150,7 @@ /obj/item/inflatable/door/attack_self(mob/user) playsound(loc, 'sound/items/zip.ogg', 75, 1) - user << "\blue You inflate [src]." + to_chat(user, "\blue You inflate [src].") var/obj/structure/inflatable/door/R = new /obj/structure/inflatable/door(user.loc) src.transfer_fingerprints_to(R) R.add_fingerprint(user) @@ -262,7 +262,7 @@ icon_state = "folded_wall_torn" /obj/item/inflatable/torn/attack_self(mob/user) - user << "The inflatable wall is too torn to be inflated!" + to_chat(user, "The inflatable wall is too torn to be inflated!") add_fingerprint(user) /obj/item/inflatable/door/torn @@ -272,7 +272,7 @@ icon_state = "folded_door_torn" /obj/item/inflatable/door/torn/attack_self(mob/user) - user << "The inflatable door is too torn to be inflated!" + to_chat(user, "The inflatable door is too torn to be inflated!") add_fingerprint(user) /obj/item/weapon/storage/briefcase/inflatable diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm index 6e2f0763369..9f8c92b6255 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -32,24 +32,24 @@ /obj/structure/stool/bed/chair/janicart/examine(mob/user) ..() if(floorbuffer) - user << "It has been upgraded with a floor buffer." + to_chat(user, "It has been upgraded with a floor buffer.") /obj/structure/stool/bed/chair/janicart/attackby(obj/item/I, mob/user, params) if(istype(I, keytype)) - user << "Hold [I] in one of your hands while you drive this [callme]." + to_chat(user, "Hold [I] in one of your hands while you drive this [callme].") else if(istype(I, /obj/item/weapon/storage/bag/trash)) if(keytype == /obj/item/key/janitor) if(!user.drop_item()) return - user << "You hook the trashbag onto the [callme]." + to_chat(user, "You hook the trashbag onto the [callme].") I.loc = src mybag = I else if(istype(I, /obj/item/janiupgrade)) if(keytype == /obj/item/key/janitor) floorbuffer = 1 qdel(I) - user << "You upgrade the [callme] with the floor buffer." + to_chat(user, "You upgrade the [callme] with the floor buffer.") update_icon() /obj/structure/stool/bed/chair/janicart/update_icon() @@ -90,7 +90,7 @@ spawn(2) move_delay = 0 else - user << "You'll need the keys in one of your hands to drive this [callme]." + to_chat(user, "You'll need the keys in one of your hands to drive this [callme].") /obj/structure/stool/bed/chair/janicart/Bump(atom/A) if(buckled_mob && istype(A, /obj/machinery/door)) @@ -245,17 +245,17 @@ /obj/structure/janitorialcart/proc/wet_mop(obj/item/weapon/mop, mob/user) if(reagents.total_volume < 1) - user << "[src] is out of water!" + to_chat(user, "[src] is out of water!") else reagents.trans_to(mop, 5) // - user << "You wet [mop] in [src]." + to_chat(user, "You wet [mop] in [src].") playsound(loc, 'sound/effects/slosh.ogg', 25, 1) /obj/structure/janitorialcart/proc/put_in_cart(obj/item/I, mob/user) user.drop_item() I.loc = src updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") return @@ -271,38 +271,38 @@ if(!mymop) m.janicart_insert(user, src) else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/storage/bag/trash)) if(!mybag) var/obj/item/weapon/storage/bag/trash/t=I t.janicart_insert(user, src) else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/reagent_containers/spray/cleaner)) if(!myspray) put_in_cart(I, user) myspray=I update_icon() else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/device/lightreplacer)) if(!myreplacer) var/obj/item/device/lightreplacer/l=I l.janicart_insert(user,src) else - user << fail_msg + to_chat(user, fail_msg) else if(istype(I, /obj/item/weapon/caution)) if(signs < max_signs) put_in_cart(I, user) signs++ update_icon() else - user << "[src] can't hold any more signs." + to_chat(user, "[src] can't hold any more signs.") else if(istype(I, /obj/item/weapon/crowbar)) user.visible_message("[user] begins to empty the contents of [src].") if(do_after(user, 30, target = src)) - usr << "You empty the contents of [src]'s bucket onto the floor." + to_chat(usr, "You empty the contents of [src]'s bucket onto the floor.") reagents.reaction(src.loc) src.reagents.clear_reagents() else if(istype(I, /obj/item/weapon/wrench)) @@ -323,7 +323,7 @@ else if(mybag) mybag.attackby(I, user, params) else - usr << "You cannot interface your modules [src]!" + to_chat(usr, "You cannot interface your modules [src]!") /obj/structure/janitorialcart/attack_hand(mob/user) user.set_machine(src) @@ -352,29 +352,29 @@ if(href_list["garbage"]) if(mybag) user.put_in_hands(mybag) - user << "You take [mybag] from [src]." + to_chat(user, "You take [mybag] from [src].") mybag = null if(href_list["mop"]) if(mymop) user.put_in_hands(mymop) - user << "You take [mymop] from [src]." + to_chat(user, "You take [mymop] from [src].") mymop = null if(href_list["spray"]) if(myspray) user.put_in_hands(myspray) - user << "You take [myspray] from [src]." + to_chat(user, "You take [myspray] from [src].") myspray = null if(href_list["replacer"]) if(myreplacer) user.put_in_hands(myreplacer) - user << "You take [myreplacer] from [src]." + to_chat(user, "You take [myreplacer] from [src].") myreplacer = null if(href_list["sign"]) if(signs) var/obj/item/weapon/caution/Sign = locate() in src if(Sign) user.put_in_hands(Sign) - user << "You take \a [Sign] from [src]." + to_chat(user, "You take \a [Sign] from [src].") signs-- else WARNING("Signs ([signs]) didn't match contents") diff --git a/code/game/objects/structures/kitchen_spike.dm b/code/game/objects/structures/kitchen_spike.dm index 297c63a333c..d14b4bbda21 100644 --- a/code/game/objects/structures/kitchen_spike.dm +++ b/code/game/objects/structures/kitchen_spike.dm @@ -13,16 +13,16 @@ add_fingerprint(user) if(istype(I, /obj/item/weapon/wrench)) if(anchored) - user << "You unwrench [src] from the floor." + to_chat(user, "You unwrench [src] from the floor.") anchored = 0 else - user << "You wrench [src] into place." + to_chat(user, "You wrench [src] into place.") anchored = 1 else if(istype(I, /obj/item/stack/rods)) var/obj/item/stack/rods/R = I if(R.get_amount() >= 4) R.use(4) - user << "You add spikes to the frame." + to_chat(user, "You add spikes to the frame.") new /obj/structure/kitchenspike(loc) add_fingerprint(user) qdel(src) @@ -45,18 +45,18 @@ if(!buckled_mob) playsound(loc, 'sound/items/Crowbar.ogg', 100, 1) if(do_after(user, 20, target = src)) - user << "You pry the spikes out of the frame." + to_chat(user, "You pry the spikes out of the frame.") new /obj/item/stack/rods(loc, 4) new /obj/structure/kitchenspike_frame(loc) add_fingerprint(user) qdel(src) else - user << "You can't do that while something's on the spike!" + to_chat(user, "You can't do that while something's on the spike!") return if(!istype(G, /obj/item/weapon/grab) || !G.affecting) return if(buckled_mob) - user << "The spike already has something on it, finish collecting its meat first!" + to_chat(user, "The spike already has something on it, finish collecting its meat first!") else if(isliving(G.affecting)) if(!buckled_mob) @@ -65,7 +65,7 @@ G.affecting.visible_message("[user] slams [G.affecting] onto the meat spike!", "[user] slams you onto the meat spike!", "You hear a squishy wet noise.") qdel(G) return - user << "You can't use that on the spike!" + to_chat(user, "You can't use that on the spike!") return /obj/structure/kitchenspike/proc/spike(var/mob/living/victim) @@ -123,7 +123,7 @@ M.adjustBruteLoss(30) if(!do_after(M, 1200, target = src)) if(M && M.buckled) - M << "You fail to free yourself!" + to_chat(M, "You fail to free yourself!") return if(!M.buckled) return diff --git a/code/game/objects/structures/lamarr_cage.dm b/code/game/objects/structures/lamarr_cage.dm index 1be4d60dea0..0f8cde25dbe 100644 --- a/code/game/objects/structures/lamarr_cage.dm +++ b/code/game/objects/structures/lamarr_cage.dm @@ -69,10 +69,10 @@ if (src.destroyed) return else - usr << text("\blue You kick the lab cage.") + to_chat(usr, text("\blue You kick the lab cage.")) for(var/mob/O in oviewers()) if ((O.client && !( O.blinded ))) - O << text("\red [] kicks the lab cage.", usr) + to_chat(O, text("\red [] kicks the lab cage.", usr)) src.health -= 2 healthcheck() return diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 6b27e8104d2..d7704265861 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -58,7 +58,7 @@ if (istype(C, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = C if(WT.remove_fuel(0, user)) - user << "\blue Slicing lattice joints ..." + to_chat(user, "\blue Slicing lattice joints ...") new /obj/item/stack/rods(src.loc) qdel(src) diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm index 78f67ab8847..01c9442ea33 100644 --- a/code/game/objects/structures/mineral_doors.dm +++ b/code/game/objects/structures/mineral_doors.dm @@ -111,13 +111,13 @@ attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W,/obj/item/weapon/pickaxe)) var/obj/item/weapon/pickaxe/digTool = W - user << "You start digging the [name]." + to_chat(user, "You start digging the [name].") if(do_after(user,digTool.digspeed*hardness, target = src) && src) - user << "You finished digging." + to_chat(user, "You finished digging.") Dismantle() else if(istype(W,/obj/item/weapon)) //not sure, can't not just weapons get passed to this proc? hardness -= W.force/100 - user << "You hit the [name] with your [W.name]!" + to_chat(user, "You hit the [name] with your [W.name]!") CheckHardness() else attack_hand(user) diff --git a/code/game/objects/structures/misc.dm b/code/game/objects/structures/misc.dm index fc9a0d4584c..1b8737e1ddd 100644 --- a/code/game/objects/structures/misc.dm +++ b/code/game/objects/structures/misc.dm @@ -15,7 +15,7 @@ return attack_hand(user) attack_hand(mob/user as mob) - user << "Civilians: NT is recruiting! Please head SOUTH to the NT Recruitment office to join the station's crew!" + to_chat(user, "Civilians: NT is recruiting! Please head SOUTH to the NT Recruitment office to join the station's crew!") /obj/structure/ninjatele @@ -48,12 +48,12 @@ playsound(user.loc, 'sound/effects/sparks2.ogg', 50, 1) anim(user.loc,user,'icons/mob/mob.dmi',,"phasein",,user.dir) - user <<"\blue VOID-Shift translocation successful" + to_chat(user, "\blue VOID-Shift translocation successful") if("No") - user <<"\red Process aborted!" + to_chat(user, "\red Process aborted!") return else - user<< "\red FĆAL �Rr�R: µ§er n¤t rec¤gnized, c-c¤ntr-r¤£§-£§ £¤cked." \ No newline at end of file + to_chat(user, "\red FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.") diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm index 4988e7d465e..c8e600c658d 100644 --- a/code/game/objects/structures/mop_bucket.dm +++ b/code/game/objects/structures/mop_bucket.dm @@ -23,16 +23,16 @@ /obj/structure/mopbucket/examine(mob/user) if(..(user, 1)) - usr << text("\icon[] [] contains [] units of water left!", src, src.name, src.reagents.total_volume) + to_chat(usr, text("\icon[] [] contains [] units of water left!", src, src.name, src.reagents.total_volume)) /obj/structure/mopbucket/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/mop)) if (src.reagents.total_volume >= 2) src.reagents.trans_to(W, 2) - user << "\blue You wet the mop" + to_chat(user, "\blue You wet the mop") playsound(src.loc, 'sound/effects/slosh.ogg', 25, 1) if (src.reagents.total_volume < 1) - user << "\blue Out of water!" + to_chat(user, "\blue Out of water!") return /obj/structure/mopbucket/ex_act(severity) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 4e255976e18..f9809b422ca 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -150,7 +150,7 @@ if (CM.stat || CM.restrained()) return - CM << "You attempt to slide yourself out of \the [src]..." + to_chat(CM, "You attempt to slide yourself out of \the [src]...") src.attack_hand(CM) @@ -192,7 +192,7 @@ if (user != O) for(var/mob/B in viewers(user, 3)) if ((B.client && !( B.blinded ))) - B << text("\red [] stuffs [] into []!", user, O, src) + to_chat(B, text("\red [] stuffs [] into []!", user, O, src)) return /obj/structure/m_tray/Destroy() @@ -274,7 +274,7 @@ /obj/structure/crematorium/attack_hand(mob/user as mob) if (cremating) - usr << "\red It's locked." + to_chat(usr, "\red It's locked.") return if ((connected) && (locked == 0)) for(var/atom/movable/A as mob|obj in connected.loc) @@ -388,7 +388,7 @@ if (CM.stat || CM.restrained()) return - CM << "You attempt to slide yourself out of \the [src]..." + to_chat(CM, "You attempt to slide yourself out of \the [src]...") src.attack_hand(CM) /* @@ -429,7 +429,7 @@ if (user != O) for(var/mob/B in viewers(user, 3)) if ((B.client && !( B.blinded ))) - B << text("\red [] stuffs [] into []!", user, O, src) + to_chat(B, text("\red [] stuffs [] into []!", user, O, src)) //Foreach goto(99) return @@ -446,7 +446,7 @@ if (!C.cremating) C.cremate(user) else - usr << "\red Access denied." + to_chat(usr, "\red Access denied.") return /hook/Login/proc/update_morgue(var/client/client, var/mob/L) diff --git a/code/game/objects/structures/musician.dm b/code/game/objects/structures/musician.dm index 8a5f144aac2..9750d449bca 100644 --- a/code/game/objects/structures/musician.dm +++ b/code/game/objects/structures/musician.dm @@ -79,18 +79,18 @@ cur_acc[i] = "n" for(var/line in lines) - //world << line +// to_chat(world, line) for(var/beat in splittext(lowertext(line), ",")) - //world << "beat: [beat]" +// to_chat(world, "beat: [beat]") var/list/notes = splittext(beat, "/") for(var/note in splittext(notes[1], "-")) - //world << "note: [note]" +// to_chat(world, "note: [note]") if(!playing || shouldStopPlaying(user))//If the instrument is playing, or special case playing = 0 return if(lentext(note) == 0) continue - //world << "Parse: [copytext(note,1,2)]" +// to_chat(world, "Parse: [copytext(note,1,2)]") var/cur_note = text2ascii(note) - 96 if(cur_note < 1 || cur_note > 7) continue @@ -172,12 +172,12 @@ else tempo = sanitize_tempo(5) // default 120 BPM if(lines.len > 50) - usr << "Too many lines!" + to_chat(usr, "Too many lines!") lines.Cut(51) var/linenum = 1 for(var/l in lines) if(lentext(l) > 50) - usr << "Line [linenum] too long!" + to_chat(usr, "Line [linenum] too long!") lines.Remove(l) else linenum++ @@ -301,7 +301,7 @@ if (istype(O, /obj/item/weapon/wrench)) if (!anchored && !isinspace()) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << " You begin to tighten \the [src] to the floor..." + to_chat(user, " You begin to tighten \the [src] to the floor...") if (do_after(user, 20, target = src)) user.visible_message( \ "[user] tightens \the [src]'s casters.", \ @@ -310,7 +310,7 @@ anchored = 1 else if(anchored) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) - user << " You begin to loosen \the [src]'s casters..." + to_chat(user, " You begin to loosen \the [src]'s casters...") if (do_after(user, 40, target = src)) user.visible_message( \ "[user] loosens \the [src]'s casters.", \ diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm index d5997adfda9..adc6fa4a4fa 100644 --- a/code/game/objects/structures/noticeboard.dm +++ b/code/game/objects/structures/noticeboard.dm @@ -25,9 +25,9 @@ O.loc = src notices++ icon_state = "nboard0[notices]" //update sprite - user << "You pin the paper to the noticeboard." + to_chat(user, "You pin the paper to the noticeboard.") else - user << "You reach to pin your paper to the board but hesitate. You are certain your paper will not be seen among the many others already attached." + to_chat(user, "You reach to pin your paper to the board but hesitate. You are certain your paper will not be seen among the many others already attached.") /obj/structure/noticeboard/attack_hand(user as mob) var/dat = "Noticeboard
" @@ -65,7 +65,7 @@ add_fingerprint(usr) P.attackby(usr.l_hand, usr) else - usr << "You'll need something to write with!" + to_chat(usr, "You'll need something to write with!") if(href_list["read"]) var/obj/item/weapon/paper/P = locate(href_list["read"]) diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index c95f3aa2b09..ec2ebc8848a 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -42,9 +42,9 @@ FLOOR SAFES /obj/structure/safe/proc/check_unlocked(mob/user, canhear) if(user && canhear) if(tumbler_1_pos == tumbler_1_open) - user << "You hear a [pick("tonk", "krunk", "plunk")] from [src]." + to_chat(user, "You hear a [pick("tonk", "krunk", "plunk")] from [src].") if(tumbler_2_pos == tumbler_2_open) - user << "You hear a [pick("tink", "krink", "plink")] from [src]." + to_chat(user, "You hear a [pick("tink", "krink", "plink")] from [src].") if(tumbler_1_pos == tumbler_1_open && tumbler_2_pos == tumbler_2_open) if(user) visible_message("[pick("Spring", "Sprang", "Sproing", "Clunk", "Krunk")]!") return 1 @@ -95,13 +95,13 @@ FLOOR SAFES if(href_list["open"]) if(check_unlocked()) - user << "You [open ? "close" : "open"] [src]." + to_chat(user, "You [open ? "close" : "open"] [src].") open = !open update_icon() updateUsrDialog() return else - user << "You can't [open ? "close" : "open"] [src], the lock is engaged!" + to_chat(user, "You can't [open ? "close" : "open"] [src], the lock is engaged!") return if(href_list["decrement"]) @@ -109,11 +109,11 @@ FLOOR SAFES if(dial == tumbler_1_pos + 1 || dial == tumbler_1_pos - 71) tumbler_1_pos = decrement(tumbler_1_pos) if(canhear) - user << "You hear a [pick("clack", "scrape", "clank")] from [src]." + to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from [src].") if(tumbler_1_pos == tumbler_2_pos + 37 || tumbler_1_pos == tumbler_2_pos - 35) tumbler_2_pos = decrement(tumbler_2_pos) if(canhear) - user << "You hear a [pick("click", "chink", "clink")] from [src]." + to_chat(user, "You hear a [pick("click", "chink", "clink")] from [src].") check_unlocked(user, canhear) updateUsrDialog() return @@ -123,11 +123,11 @@ FLOOR SAFES if(dial == tumbler_1_pos - 1 || dial == tumbler_1_pos + 71) tumbler_1_pos = increment(tumbler_1_pos) if(canhear) - user << "You hear a [pick("clack", "scrape", "clank")] from [src]." + to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from [src].") if(tumbler_1_pos == tumbler_2_pos - 37 || tumbler_1_pos == tumbler_2_pos + 35) tumbler_2_pos = increment(tumbler_2_pos) if(canhear) - user << "You hear a [pick("click", "chink", "clink")] from [src]." + to_chat(user, "You hear a [pick("click", "chink", "clink")] from [src].") check_unlocked(user, canhear) updateUsrDialog() return @@ -147,18 +147,18 @@ FLOOR SAFES if(I.w_class + space <= maxspace) space += I.w_class if(!user.drop_item()) - user << "\The [I] is stuck to your hand, you cannot put it in the safe!" + to_chat(user, "\The [I] is stuck to your hand, you cannot put it in the safe!") return I.loc = src - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") updateUsrDialog() return else - user << "[I] won't fit in [src]." + to_chat(user, "[I] won't fit in [src].") return else if(istype(I, /obj/item/clothing/accessory/stethoscope)) - user << "Hold [I] in one of your hands while you manipulate the dial!" + to_chat(user, "Hold [I] in one of your hands while you manipulate the dial!") return diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm index 7e35851f693..24ea6b5a358 100644 --- a/code/game/objects/structures/signs.dm +++ b/code/game/objects/structures/signs.dm @@ -25,7 +25,7 @@ /obj/structure/sign/attackby(obj/item/tool as obj, mob/user as mob) //deconstruction if(istype(tool, /obj/item/weapon/screwdriver) && !istype(src, /obj/structure/sign/double)) - user << "You unfasten the sign with your [tool]." + to_chat(user, "You unfasten the sign with your [tool].") var/obj/item/sign/S = new(src.loc) S.name = name S.desc = desc @@ -61,7 +61,7 @@ S.name = name S.desc = desc S.icon_state = sign_state - user << "You fasten \the [S] with your [tool]." + to_chat(user, "You fasten \the [S] with your [tool].") qdel(src) else ..() diff --git a/code/game/objects/structures/spirit_board.dm b/code/game/objects/structures/spirit_board.dm index f4ba32b3286..cb29dec1926 100644 --- a/code/game/objects/structures/spirit_board.dm +++ b/code/game/objects/structures/spirit_board.dm @@ -15,11 +15,11 @@ if(O.client) var/area/A = get_area(src) if(A) - O << "\blue Someone has begun playing with a [src.name] in [A.name]!. (Teleport)" + to_chat(O, "\blue Someone has begun playing with a [src.name] in [A.name]!. (Teleport)") /obj/structure/spirit_board/examine(mob/user) ..(user) - user << "[initial(desc)] The planchette is sitting at \"[planchette]\"." + to_chat(user, "[initial(desc)] The planchette is sitting at \"[planchette]\".") /obj/structure/spirit_board/attack_hand(mob/user as mob) if(..()) @@ -69,7 +69,7 @@ light_amount = 10 if(light_amount > 2) - M << "It's too bright here to use [src.name]!" + to_chat(M, "It's too bright here to use [src.name]!") return 0 //mobs in range check @@ -77,12 +77,12 @@ for(var/mob/living/L in orange(1,src)) if(L.ckey && L.client) if((world.time - L.client.inactivity) < (world.time - 300) || L.stat != CONSCIOUS || L.restrained())//no playing with braindeads or corpses or handcuffed dudes. - M << "[L] doesn't seem to be paying attention..." + to_chat(M, "[L] doesn't seem to be paying attention...") else users_in_range++ if(users_in_range < 2) - M << "There aren't enough people to use the [src.name]!" + to_chat(M, "There aren't enough people to use the [src.name]!") return 0 return 1 \ No newline at end of file diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm index 2c81fd09af3..3f5decad98e 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm @@ -34,7 +34,7 @@ "You hear squelching...") if(!do_after(M, 1200, target = src)) if(M && M.buckled) - M << "You fail to escape \the [src]!" + to_chat(M, "You fail to escape \the [src]!") return if(!M.buckled) return diff --git a/code/game/objects/structures/stool_bed_chair_nest/bed.dm b/code/game/objects/structures/stool_bed_chair_nest/bed.dm index 671381f952d..ecf2324673d 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/bed.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/bed.dm @@ -118,10 +118,10 @@ /obj/item/roller_holder/attack_self(mob/user as mob) if(!held) - user << " The rack is empty." + to_chat(user, " The rack is empty.") return - user << "You deploy the roller bed." + to_chat(user, "You deploy the roller bed.") var/obj/structure/stool/bed/roller/R = new /obj/structure/stool/bed/roller(user.loc) R.add_fingerprint(user) qdel(held) diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index 2b5b1bd3ecb..621f3a9d78e 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -21,7 +21,7 @@ if(istype(W, /obj/item/assembly/shock_kit)) var/obj/item/assembly/shock_kit/SK = W if(!SK.status) - user << "[SK] is not ready to be attached!" + to_chat(user, "[SK] is not ready to be attached!") return user.drop_item() var/obj/structure/stool/bed/chair/e_chair/E = new /obj/structure/stool/bed/chair/e_chair(src.loc) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index a915ebcdd32..ad478bb3893 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -199,10 +199,10 @@ if(get_dist(src, user) < 2) var/obj/item/weapon/grab/G = I if(G.affecting.buckled) - user << "[G.affecting] is buckled to [G.affecting.buckled]!" + to_chat(user, "[G.affecting] is buckled to [G.affecting.buckled]!") return 0 if(G.state < GRAB_AGGRESSIVE) - user << "You need a better grip to do that!" + to_chat(user, "You need a better grip to do that!") return 0 if(!G.confirm()) return 0 @@ -221,7 +221,7 @@ return if (istype(W, /obj/item/weapon/wrench)) - user << "\blue Now disassembling table" + to_chat(user, "\blue Now disassembling table") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user,50, target = src)) destroy() @@ -279,7 +279,7 @@ return if(!flip(get_cardinal_dir(usr,src))) - usr << "It won't budge." + to_chat(usr, "It won't budge.") return usr.visible_message("[usr] flips \the [src]!") @@ -296,7 +296,7 @@ set src in oview(1) if (!unflip()) - usr << "It won't budge." + to_chat(usr, "It won't budge.") return @@ -383,7 +383,7 @@ return if (istype(I, /obj/item/weapon/wrench)) - user << "\blue Now disassembling the wooden table" + to_chat(user, "\blue Now disassembling the wooden table") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) sleep(50) new /obj/item/weapon/table_parts/wood( src.loc ) @@ -434,7 +434,7 @@ return if (istype(W, /obj/item/weapon/wrench)) - user << "\blue Now disassembling the wooden table" + to_chat(user, "\blue Now disassembling the wooden table") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) sleep(50) new /obj/item/weapon/table_parts/wood( src.loc ) @@ -482,23 +482,23 @@ if(istype(I, /obj/item/stack/sheet/glass)) var/obj/item/stack/sheet/glass/G = I if(G.amount >= 2) - user << "You start to add the glass to \the [src]." + to_chat(user, "You start to add the glass to \the [src].") if(do_after(user, 10, target = src)) G.use(2) - user << "You add the glass to \the [src]." + to_chat(user, "You add the glass to \the [src].") playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) new /obj/structure/table/glass(loc) qdel(src) else - user << "You don't have enough glass! You need at least 2 sheets." + to_chat(user, "You don't have enough glass! You need at least 2 sheets.") return if(iswrench(I)) - user << "You start to deconstruct \the [src]." + to_chat(user, "You start to deconstruct \the [src].") playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) if(do_after(user, 10, target = src)) playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1) - user << "You dismantle \the [src]." + to_chat(user, "You dismantle \the [src].") new /obj/item/stack/sheet/metal(loc) new /obj/item/stack/sheet/metal(loc) qdel(src) @@ -533,7 +533,7 @@ return if (istype(I, /obj/item/weapon/wrench)) - user << "\blue Now disassembling the glass table" + to_chat(user, "\blue Now disassembling the glass table") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) sleep(50) new /obj/item/weapon/table_parts/glass( src.loc ) @@ -595,18 +595,18 @@ var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0, user)) if(src.status == 2) - user << "\blue Now weakening the reinforced table" + to_chat(user, "\blue Now weakening the reinforced table") playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) if (do_after(user, 50, target = src)) if(!src || !WT.isOn()) return - user << "\blue Table weakened" + to_chat(user, "\blue Table weakened") src.status = 1 else - user << "\blue Now strengthening the reinforced table" + to_chat(user, "\blue Now strengthening the reinforced table") playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) if (do_after(user, 50, target = src)) if(!src || !WT.isOn()) return - user << "\blue Table strengthened" + to_chat(user, "\blue Table strengthened") src.status = 2 return return diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm index 3d8b13ff08b..ab1c2830933 100644 --- a/code/game/objects/structures/tank_dispenser.dm +++ b/code/game/objects/structures/tank_dispenser.dm @@ -49,9 +49,9 @@ I.loc = src oxytanks.Add(I) oxygentanks++ - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") else - user << "[src] is full." + to_chat(user, "[src] is full.") updateUsrDialog() return if(istype(I, /obj/item/weapon/tank/plasma)) @@ -60,17 +60,17 @@ I.loc = src platanks.Add(I) plasmatanks++ - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") else - user << "[src] is full." + to_chat(user, "[src] is full.") updateUsrDialog() return if(istype(I, /obj/item/weapon/wrench)) if(anchored) - user << "You lean down and unwrench [src]." + to_chat(user, "You lean down and unwrench [src].") anchored = 0 else - user << "You wrench [src] into place." + to_chat(user, "You wrench [src] into place.") anchored = 1 return @@ -88,7 +88,7 @@ else O = new /obj/item/weapon/tank/oxygen(loc) O.loc = loc - usr << "You take [O] out of [src]." + to_chat(usr, "You take [O] out of [src].") oxygentanks-- update_icon() if(href_list["plasma"]) @@ -100,7 +100,7 @@ else P = new /obj/item/weapon/tank/plasma(loc) P.loc = loc - usr << "You take [P] out of [src]." + to_chat(usr, "You take [P] out of [src].") plasmatanks-- update_icon() add_fingerprint(usr) diff --git a/code/game/objects/structures/target_stake.dm b/code/game/objects/structures/target_stake.dm index bb7ab804d9c..504b2abfa80 100644 --- a/code/game/objects/structures/target_stake.dm +++ b/code/game/objects/structures/target_stake.dm @@ -30,7 +30,7 @@ W.loc = loc W.layer = 3.1 pinned_target = W - user << "You slide the target into the stake." + to_chat(user, "You slide the target into the stake.") return attack_hand(mob/user as mob) @@ -44,9 +44,9 @@ if(ishuman(user)) if(!user.get_active_hand()) user.put_in_hands(pinned_target) - user << "You take the target out of the stake." + to_chat(user, "You take the target out of the stake.") else pinned_target.loc = get_turf(user) - user << "You take the target out of the stake." + to_chat(user, "You take the target out of the stake.") pinned_target = null \ No newline at end of file diff --git a/code/game/objects/structures/transit_tubes/station.dm b/code/game/objects/structures/transit_tubes/station.dm index 48cc9feccf7..93ad848c4f6 100644 --- a/code/game/objects/structures/transit_tubes/station.dm +++ b/code/game/objects/structures/transit_tubes/station.dm @@ -36,7 +36,7 @@ if(!pod_moving && icon_state == "open" && istype(AM, /mob/living) && !is_type_in_list(AM, disallowed_mobs)) for(var/obj/structure/transit_tube_pod/pod in loc) if(pod.contents.len) - AM << "" + to_chat(AM, "") return else if(!pod.moving && pod.dir in directions()) AM.forceMove(pod) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index b322a84de5b..3fcfc0ef4bf 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -28,7 +28,7 @@ if(cistern && !open) if(!contents.len) - user << "The cistern is empty." + to_chat(user, "The cistern is empty.") return else var/obj/item/I = pick(contents) @@ -36,7 +36,7 @@ user.put_in_hands(I) else I.loc = get_turf(src) - user << "You find [I] in the cistern." + to_chat(user, "You find [I] in the cistern.") w_items -= I.w_class return @@ -50,7 +50,7 @@ /obj/structure/toilet/attackby(obj/item/I, mob/living/user, params) if(istype(I, /obj/item/weapon/crowbar)) - user << "You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]..." + to_chat(user, "You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]...") playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, 1) if(do_after(user, 30, target = src)) user.visible_message("[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!", "You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!", "You hear grinding porcelain.") @@ -64,7 +64,7 @@ var/obj/item/weapon/reagent_containers/RG = I if(RG.is_open_container()) RG.reagents.add_reagent("toiletwater", min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this)) - user << "You fill [RG] from [src]. Gross." + to_chat(user, "You fill [RG] from [src]. Gross.") return if(istype(I, /obj/item/weapon/grab)) @@ -76,7 +76,7 @@ var/mob/living/GM = G.affecting if(G.state >= GRAB_AGGRESSIVE) if(GM.loc != get_turf(src)) - user << "[GM] needs to be on [src]!" + to_chat(user, "[GM] needs to be on [src]!") return if(!swirlie) if(open) @@ -96,21 +96,21 @@ GM.visible_message("[user] slams [GM.name] into [src]!", "[user] slams [GM.name] into [src]!") GM.adjustBruteLoss(5) else - user << "You need a tighter grip!" + to_chat(user, "You need a tighter grip!") if(cistern) if(I.w_class > 3) - user << "[I] does not fit!" + to_chat(user, "[I] does not fit!") return if(w_items + I.w_class > 5) - user << "The cistern is full!" + to_chat(user, "The cistern is full!") return if(!user.drop_item()) - user << "\The [I] is stuck to your hand, you cannot put it in the cistern!" + to_chat(user, "\The [I] is stuck to your hand, you cannot put it in the cistern!") return I.loc = src w_items += I.w_class - user << "You carefully place [I] into the cistern." + to_chat(user, "You carefully place [I] into the cistern.") return @@ -133,14 +133,14 @@ var/mob/living/GM = G.affecting if(G.state >= GRAB_AGGRESSIVE) if(GM.loc != get_turf(src)) - user << "[GM.name] needs to be on [src]." + to_chat(user, "[GM.name] needs to be on [src].") return user.changeNext_move(CLICK_CD_MELEE) playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) user.visible_message("[user] slams [GM] into [src]!", "You slam [GM] into [src]!") GM.adjustBruteLoss(8) else - user << "You need a tighter grip!" + to_chat(user, "You need a tighter grip!") /obj/machinery/shower @@ -181,9 +181,9 @@ /obj/machinery/shower/attackby(obj/item/I as obj, mob/user as mob, params) if(I.type == /obj/item/device/analyzer) - user << "The water temperature seems to be [watertemp]." + to_chat(user, "The water temperature seems to be [watertemp].") if(istype(I, /obj/item/weapon/wrench)) - user << "You begin to adjust the temperature valve with the [I]." + to_chat(user, "You begin to adjust the temperature valve with the [I].") if(do_after(user, 50, target = src)) switch(watertemp) if("normal") @@ -252,7 +252,7 @@ var/mob/living/L = O L.ExtinguishMob() L.fire_stacks = -20 //Douse ourselves with water to avoid fire more easily - L << "You've been drenched in water!" + to_chat(L, "You've been drenched in water!") if(iscarbon(O)) var/mob/living/carbon/M = O if(M.r_hand) @@ -343,12 +343,12 @@ if(watertemp == "freezing") //C.bodytemperature = max(80, C.bodytemperature - 80) - C << "The water is freezing!" + to_chat(C, "The water is freezing!") return if(watertemp == "boiling") //C.bodytemperature = min(500, C.bodytemperature + 35) C.adjustFireLoss(5) - C << "The water is searing!" + to_chat(C, "The water is searing!") return @@ -385,11 +385,11 @@ if (user.hand) temp = H.organs_by_name["l_hand"] if(temp && !temp.is_usable()) - user << "You try to move your [temp.name], but cannot!" + to_chat(user, "You try to move your [temp.name], but cannot!") return if(busy) - user << "Someone's already washing here." + to_chat(user, "Someone's already washing here.") return var/selected_area = parse_zone(user.zone_sel.selecting) var/washing_face = 0 @@ -421,7 +421,7 @@ /obj/structure/sink/attackby(obj/item/O, mob/user, params) if(busy) - user << "Someone's already washing here!" + to_chat(user, "Someone's already washing here!") return if(!(istype(O))) diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm index e8ad95cbe3b..529dbb447a8 100644 --- a/code/game/objects/structures/windoor_assembly.dm +++ b/code/game/objects/structures/windoor_assembly.dm @@ -82,7 +82,7 @@ obj/structure/windoor_assembly/Destroy() if(do_after(user, 40, target = src)) if(!src || !WT.isOn()) return - user << "You dissasembled the windoor assembly!" + to_chat(user, "You dissasembled the windoor assembly!") var/obj/item/stack/sheet/rglass/RG = new (get_turf(src), 5) RG.add_fingerprint(user) if(secure) @@ -96,7 +96,7 @@ obj/structure/windoor_assembly/Destroy() if(istype(W, /obj/item/weapon/wrench) && !anchored) for(var/obj/machinery/door/window/WD in src.loc) if(WD.dir == src.dir) - user << "There is already a windoor in that location." + to_chat(user, "There is already a windoor in that location.") return playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) user.visible_message("[user] secures the windoor assembly to the floor.", "You start to secure the windoor assembly to the floor.") @@ -106,9 +106,9 @@ obj/structure/windoor_assembly/Destroy() return for(var/obj/machinery/door/window/WD in src.loc) if(WD.dir == src.dir) - user << "There is already a windoor in that location." + to_chat(user, "There is already a windoor in that location.") return - user << "You've secured the windoor assembly!" + to_chat(user, "You've secured the windoor assembly!") src.anchored = 1 if(src.secure) src.name = "secure anchored windoor assembly" @@ -123,7 +123,7 @@ obj/structure/windoor_assembly/Destroy() if(do_after(user, 40, target = src)) if(!src || !src.anchored) return - user << "You've unsecured the windoor assembly!" + to_chat(user, "You've unsecured the windoor assembly!") src.anchored = 0 if(src.secure) src.name = "secure windoor assembly" @@ -134,16 +134,16 @@ obj/structure/windoor_assembly/Destroy() else if(istype(W, /obj/item/stack/sheet/plasteel) && !secure) var/obj/item/stack/sheet/plasteel/P = W if(P.amount < 2) - user << "You need more plasteel to do this." + to_chat(user, "You need more plasteel to do this.") return - user << "You start to reinforce the windoor with plasteel." + to_chat(user, "You start to reinforce the windoor with plasteel.") if(do_after(user,40, target = src)) if(!src || secure) return P.use(2) - user << "You reinforce the windoor." + to_chat(user, "You reinforce the windoor.") src.secure = 1 if(src.anchored) src.name = "secure anchored windoor assembly" @@ -159,7 +159,7 @@ obj/structure/windoor_assembly/Destroy() return var/obj/item/stack/cable_coil/CC = W CC.use(1) - user << "You wire the windoor!" + to_chat(user, "You wire the windoor!") src.state = "02" if(src.secure) src.name = "secure wired windoor assembly" @@ -179,7 +179,7 @@ obj/structure/windoor_assembly/Destroy() if(!src || src.state != "02") return - user << "You cut the windoor wires!" + to_chat(user, "You cut the windoor wires!") new/obj/item/stack/cable_coil(get_turf(user), 1) src.state = "01" if(src.secure) @@ -198,7 +198,7 @@ obj/structure/windoor_assembly/Destroy() if(!src || src.electronics) W.loc = src.loc return - user << "You've installed the airlock electronics!" + to_chat(user, "You've installed the airlock electronics!") src.name = "near finished windoor assembly" src.electronics = W else @@ -215,7 +215,7 @@ obj/structure/windoor_assembly/Destroy() if(do_after(user, 40, target = src)) if(!src || !electronics) return - user << "You've removed the airlock electronics!" + to_chat(user, "You've removed the airlock electronics!") src.name = "wired windoor assembly" var/obj/item/weapon/airlock_electronics/ae ae = electronics @@ -236,7 +236,7 @@ obj/structure/windoor_assembly/Destroy() //Crowbar to complete the assembly, Step 7 complete. else if(istype(W, /obj/item/weapon/crowbar)) if(!src.electronics) - usr << "The assembly is missing electronics." + to_chat(usr, "The assembly is missing electronics.") return usr << browse(null, "window=windoor_access") playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) @@ -247,7 +247,7 @@ obj/structure/windoor_assembly/Destroy() if(src.loc && src.electronics) density = 1 //Shouldn't matter but just incase - user << "You finish the windoor!" + to_chat(user, "You finish the windoor!") if(secure) var/obj/machinery/door/window/brigdoor/windoor = new /obj/machinery/door/window/brigdoor(src.loc) @@ -308,7 +308,7 @@ obj/structure/windoor_assembly/Destroy() if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "It is fastened to the floor; therefore, you can't rotate it!" + to_chat(usr, "It is fastened to the floor; therefore, you can't rotate it!") return 0 //if(src.state != "01") //update_nearby_tiles(need_rebuild=1) //Compel updates before @@ -331,11 +331,11 @@ obj/structure/windoor_assembly/Destroy() return if(src.facing == "l") - usr << "The windoor will now slide to the right." + to_chat(usr, "The windoor will now slide to the right.") src.facing = "r" else src.facing = "l" - usr << "The windoor will now slide to the left." + to_chat(usr, "The windoor will now slide to the left.") update_icon() return diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index fbfc694432e..eecfc4ac408 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -210,21 +210,21 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f if(reinf && state >= 1) state = 3 - state playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1) - user << (state == 1 ? "You have unfastened the window from the frame." : "You have fastened the window to the frame.") + to_chat(user, (state == 1 ? "You have unfastened the window from the frame." : "You have fastened the window to the frame.")) else if(reinf && state == 0) anchored = !anchored update_nearby_icons() playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1) - user << (anchored ? "You have fastened the frame to the floor." : "You have unfastened the frame from the floor.") + to_chat(user, (anchored ? "You have fastened the frame to the floor." : "You have unfastened the frame from the floor.")) else if(!reinf) anchored = !anchored update_nearby_icons() playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1) - user << (anchored ? "You have fastened the window to the floor." : "You have unfastened the window.") + to_chat(user, (anchored ? "You have fastened the window to the floor." : "You have unfastened the window.")) else if(istype(W, /obj/item/weapon/crowbar) && reinf && state <= 1) state = 1 - state playsound(loc, 'sound/items/Crowbar.ogg', 75, 1) - user << (state ? "You have pried the window into the frame." : "You have pried the window out of the frame.") + to_chat(user, (state ? "You have pried the window into the frame." : "You have pried the window out of the frame.")) else if(istype(W, /obj/item/weapon/wrench) && !anchored && health > 7) //Disassemble deconstructed window into parts playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) for(var/i=0;iYou have disassembled the window." + to_chat(user, "You have disassembled the window.") disassembled = 1 density = 0 air_update_turf(1) @@ -288,7 +288,7 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f return if(anchored) - usr << "It is fastened to the floor therefore you can't rotate it!" + to_chat(usr, "It is fastened to the floor therefore you can't rotate it!") return 0 dir = turn(dir, 90) @@ -307,7 +307,7 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f return if(anchored) - usr << "It is fastened to the floor therefore you can't rotate it!" + to_chat(usr, "It is fastened to the floor therefore you can't rotate it!") return 0 dir = turn(dir, 270) diff --git a/code/game/response_team.dm b/code/game/response_team.dm index 20ed7e6c1ed..89e968c23b8 100644 --- a/code/game/response_team.dm +++ b/code/game/response_team.dm @@ -19,15 +19,15 @@ var/send_emergency_team return if(!ticker) - usr << "\red The game hasn't started yet!" + to_chat(usr, "\red The game hasn't started yet!") return if(ticker.current_state == 1) - usr << "\red The round hasn't started yet!" + to_chat(usr, "\red The round hasn't started yet!") return if(send_emergency_team) - usr << "\red Central Command has already dispatched an emergency response team!" + to_chat(usr, "\red Central Command has already dispatched an emergency response team!") return if(alert("Do you want to dispatch an Emergency Response Team?",,"Yes","No") != "Yes") @@ -39,7 +39,7 @@ var/send_emergency_team return if(send_emergency_team) - usr << "\red Central Command has already dispatched an emergency response team!" + to_chat(usr, "\red Central Command has already dispatched an emergency response team!") return var/ert_type = pick_ert_type() @@ -76,28 +76,28 @@ var/send_emergency_team set desc = "Join the Emergency Response Team. Only possible if it has been called by the crew." if(!istype(usr,/mob/dead/observer) && !istype(usr,/mob/new_player)) - usr << "You need to be an observer or new player to use this." + to_chat(usr, "You need to be an observer or new player to use this.") return if(!send_emergency_team) - usr << "No emergency response team is currently being sent." + to_chat(usr, "No emergency response team is currently being sent.") return if(jobban_isbanned(usr, "Emergency Response Team")) - usr << "You are jobbanned from the emergency reponse team!" + to_chat(usr, "You are jobbanned from the emergency reponse team!") return var/player_age_check = check_client_age(usr.client, responseteam_age) if(player_age_check && config.use_age_restriction_for_antags) - usr << "This role is not yet available to you. You need to wait another [player_age_check] days." + to_chat(usr, "This role is not yet available to you. You need to wait another [player_age_check] days.") return if(src.has_enabled_antagHUD == 1 && config.antag_hud_restricted) - usr << "\blue Upon using the antagHUD you forfeited the ability to join the round." + to_chat(usr, "\blue Upon using the antagHUD you forfeited the ability to join the round.") return if(response_team_members.len > 6) - usr << "The emergency response team is already full!" + to_chat(usr, "The emergency response team is already full!") return for (var/obj/effect/landmark/L in landmarks_list) diff --git a/code/game/sound.dm b/code/game/sound.dm index df40c88dcb0..cecf12c657d 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -100,6 +100,7 @@ var/const/FALLOFF_SOUNDS = 0.5 if(prefs.sound & SOUND_LOBBY) src << sound(ticker.login_music, repeat = 0, wait = 0, volume = 85, channel = 1) // MAD JAMS + /proc/get_rand_frequency() return rand(32000, 55000) //Frequency stuff only works with 45kbps oggs. diff --git a/code/game/turfs/simulated/floor.dm b/code/game/turfs/simulated/floor.dm index 7e4eef04c26..f150be57ba6 100644 --- a/code/game/turfs/simulated/floor.dm +++ b/code/game/turfs/simulated/floor.dm @@ -152,15 +152,15 @@ var/list/icons_to_ignore_at_floor_init = list("damaged1","damaged2","damaged3"," if(broken || burnt) broken = 0 burnt = 0 - user << "You remove the broken plating." + to_chat(user, "You remove the broken plating.") else if(istype(src, /turf/simulated/floor/wood)) - user << "You forcefully pry off the planks, destroying them in the process." + to_chat(user, "You forcefully pry off the planks, destroying them in the process.") else if(!builtin_tile) - user << "You are unable to pry up \the [src] with a crowbar." + to_chat(user, "You are unable to pry up \the [src] with a crowbar.") return 1 else - user << "You remove \the [builtin_tile.singular_name]." + to_chat(user, "You remove \the [builtin_tile.singular_name].") builtin_tile.loc = src builtin_tile = null //deassociate tile, it no longer belongs to this turf make_plating() diff --git a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm index c1a74d07973..0a569d91378 100644 --- a/code/game/turfs/simulated/floor/fancy_floor.dm +++ b/code/game/turfs/simulated/floor/fancy_floor.dm @@ -14,7 +14,7 @@ if(istype(C, /obj/item/weapon/screwdriver)) if(broken || burnt) return - user << "You unscrew the planks." + to_chat(user, "You unscrew the planks.") new floor_tile(src) make_plating() playsound(src, 'sound/items/Screwdriver.ogg', 80, 1) @@ -42,7 +42,7 @@ if(istype(C, /obj/item/weapon/shovel)) new /obj/item/weapon/ore/glass(src) new /obj/item/weapon/ore/glass(src) //Make some sand if you shovel grass - user << "You shovel the grass." + to_chat(user, "You shovel the grass.") make_plating() /turf/simulated/floor/carpet diff --git a/code/game/turfs/simulated/floor/light_floor.dm b/code/game/turfs/simulated/floor/light_floor.dm index 8149dae593a..f221494414f 100644 --- a/code/game/turfs/simulated/floor/light_floor.dm +++ b/code/game/turfs/simulated/floor/light_floor.dm @@ -68,16 +68,16 @@ qdel(C) state = LIGHTFLOOR_ON update_icon() - user << "You replace the light bulb." + to_chat(user, "You replace the light bulb.") else - user << "The light bulb seems fine, no need to replace it." + to_chat(user, "The light bulb seems fine, no need to replace it.") if(istype(C,/obj/item/device/multitool)) if(state != 0) if(state < LIGHTFLOOR_PURPLE) state++ else state = LIGHTFLOOR_ON - user << "You change \the [src]'s light bulb color." + to_chat(user, "You change \the [src]'s light bulb color.") update_icon() else - user << "\The [src]'s light bulb appears to have burned out." \ No newline at end of file + to_chat(user, "\The [src]'s light bulb appears to have burned out.") diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm index 608a5a2f16b..2a239ea04ee 100644 --- a/code/game/turfs/simulated/floor/plating.dm +++ b/code/game/turfs/simulated/floor/plating.dm @@ -27,20 +27,20 @@ if(istype(C, /obj/item/stack/rods)) if(broken || burnt) - user << "Repair the plating first!" + to_chat(user, "Repair the plating first!") return 1 var/obj/item/stack/rods/R = C if (R.get_amount() < 2) - user << "You need two rods to make a reinforced floor!" + to_chat(user, "You need two rods to make a reinforced floor!") return 1 else - user << "You begin reinforcing the floor..." + to_chat(user, "You begin reinforcing the floor...") if(do_after(user, 30, target = src)) if (R.get_amount() >= 2 && !istype(src, /turf/simulated/floor/engine)) ChangeTurf(/turf/simulated/floor/engine) playsound(src, 'sound/items/Deconstruct.ogg', 80, 1) R.use(2) - user << "You reinforce the floor." + to_chat(user, "You reinforce the floor.") return 1 else if(istype(C, /obj/item/stack/tile)) @@ -51,14 +51,14 @@ ChangeTurf(W.turf_type) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) else - user << "This section is too damaged to support a tile! Use a welder to fix the damage." + to_chat(user, "This section is too damaged to support a tile! Use a welder to fix the damage.") return 1 else if(istype(C, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/welder = C if( welder.isOn() && (broken || burnt) ) if(welder.remove_fuel(0,user)) - user << "You fix some dents on the broken plating." + to_chat(user, "You fix some dents on the broken plating.") playsound(src, 'sound/items/Welder.ogg', 80, 1) icon_state = icon_plating burnt = 0 @@ -104,7 +104,7 @@ if(!C || !user) return if(istype(C, /obj/item/weapon/wrench)) - user << "You begin removing rods..." + to_chat(user, "You begin removing rods...") playsound(src, 'sound/items/Ratchet.ogg', 80, 1) if(do_after(user, 30, target = src)) if(!istype(src, /turf/simulated/floor/engine)) @@ -224,7 +224,7 @@ return if(!broken && isscrewdriver(C)) - user << "You unscrew the catwalk's rods." + to_chat(user, "You unscrew the catwalk's rods.") new /obj/item/stack/rods(src, 1) ReplaceWithLattice() for(var/direction in cardinal) diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index c6534203db3..8f1dded0a6e 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -47,18 +47,18 @@ . = ..(user) if(!damage) - user << "It looks fully intact." + to_chat(user, "It looks fully intact.") else var/dam = damage / damage_cap if(dam <= 0.3) - user << "It looks slightly damaged." + to_chat(user, "It looks slightly damaged.") else if(dam <= 0.6) - user << "It looks moderately damaged." + to_chat(user, "It looks moderately damaged.") else - user << "It looks heavily damaged." + to_chat(user, "It looks heavily damaged.") if(rotting) - user << "There is fungus growing on [src]." + to_chat(user, "There is fungus growing on [src].") /turf/simulated/wall/proc/update_icon() if(!damage_overlays[1]) //list hasn't been populated @@ -232,7 +232,7 @@ var/turf/simulated/floor/F = src F.burn_tile() F.icon_state = "wall_thermite" - user << "The thermite starts melting through the wall." + to_chat(user, "The thermite starts melting through the wall.") spawn(100) if(O) qdel(O) @@ -247,13 +247,13 @@ if(M.environment_smash >= 2) if(M.environment_smash == 3) dismantle_wall(1) - M << "You smash through the wall." + to_chat(M, "You smash through the wall.") else - M << text("You smash against the wall.") + to_chat(M, text("You smash against the wall.")) take_damage(rand(25, 75)) return - M << "\blue You push the wall but nothing happens!" + to_chat(M, "\blue You push the wall but nothing happens!") return /turf/simulated/wall/attack_hand(mob/user as mob) @@ -261,25 +261,25 @@ if (HULK in user.mutations) if (prob(hardness) || rotting) playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1) - user << text("You smash through the wall.") + to_chat(user, text("You smash through the wall.")) user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" )) dismantle_wall(1) return else playsound(src, 'sound/effects/bang.ogg', 50, 1) - user << text("You punch the wall.") + to_chat(user, text("You punch the wall.")) return if(rotting) if(hardness <= 10) - user << "This wall feels rather unstable." + to_chat(user, "This wall feels rather unstable.") return else - user << "The wall crumbles under your touch." + to_chat(user, "The wall crumbles under your touch.") dismantle_wall() return - user << "You push the wall but nothing happens!" + to_chat(user, "You push the wall but nothing happens!") playsound(src, 'sound/weapons/Genhit.ogg', 25, 1) src.add_fingerprint(user) ..() @@ -288,7 +288,7 @@ /turf/simulated/wall/attackby(obj/item/weapon/W as obj, mob/user as mob, params) user.changeNext_move(CLICK_CD_MELEE) if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return //get the user's location @@ -298,14 +298,14 @@ if(istype(W, /obj/item/weapon/weldingtool) ) var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0,user)) - user << "You burn away the fungi with \the [WT]." + to_chat(user, "You burn away the fungi with \the [WT].") playsound(src, 'sound/items/Welder.ogg', 10, 1) for(var/obj/effect/E in src) if(E.name == "Wallrot") qdel(E) rotting = 0 return else if(!is_sharp(W) && W.force >= 10 || W.force >= 20) - user << "\The [src] crumbles away under the force of your [W.name]." + to_chat(user, "\The [src] crumbles away under the force of your [W.name].") src.dismantle_wall(1) return @@ -325,7 +325,7 @@ var/obj/item/weapon/melee/energy/blade/EB = W EB.spark_system.start() - user << "You slash \the [src] with \the [EB]; the thermite ignites!" + to_chat(user, "You slash \the [src] with \the [EB]; the thermite ignites!") playsound(src, "sparks", 50, 1) playsound(src, 'sound/weapons/blade1.ogg', 50, 1) @@ -343,54 +343,54 @@ if(WT.remove_fuel(0,user)) if(response == "Repair") - user << "You start repairing the damage to [src]." + to_chat(user, "You start repairing the damage to [src].") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, max(5, damage / 5), target = src) && WT && WT.isOn()) - user << "You finish repairing the damage to [src]." + to_chat(user, "You finish repairing the damage to [src].") take_damage(-damage) else if(response == "Dismantle") - user << "You begin slicing through the outer plating." + to_chat(user, "You begin slicing through the outer plating.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, 100, target = src) && WT && WT.isOn()) - user << "You remove the outer plating." + to_chat(user, "You remove the outer plating.") dismantle_wall() else - user << "You stop slicing through [src]." + to_chat(user, "You stop slicing through [src].") return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) - user << "You begin slicing through the outer plating." + to_chat(user, "You begin slicing through the outer plating.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, mineral == "diamond" ? 120 : 60, target = src)) - user << "You remove the outer plating." + to_chat(user, "You remove the outer plating.") dismantle_wall() visible_message("[user] slices apart \the [src]!","You hear metal being sliced apart.") //DRILLING else if (istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill)) - user << "You begin to drill though the wall." + to_chat(user, "You begin to drill though the wall.") if(do_after(user, mineral == "diamond" ? 120 : 60, target = src)) - user << "Your drill tears though the last of the reinforced plating." + to_chat(user, "Your drill tears though the last of the reinforced plating.") dismantle_wall() visible_message("[user] drills through \the [src]!","You hear the grinding of metal.") else if (istype(W, /obj/item/weapon/pickaxe/drill/jackhammer)) - user << "You begin to disintegrates the wall." + to_chat(user, "You begin to disintegrates the wall.") if(do_after(user, mineral == "diamond" ? 60 : 30, target = src)) - user << "Your jackhammer disintegrate the reinforced plating." + to_chat(user, "Your jackhammer disintegrate the reinforced plating.") dismantle_wall() visible_message("[user] disintegrates \the [src]!","You hear the grinding of metal.") @@ -398,7 +398,7 @@ var/obj/item/weapon/melee/energy/blade/EB = W EB.spark_system.start() - user << "You stab \the [EB] into the wall and begin to slice it apart." + to_chat(user, "You stab \the [EB] into the wall and begin to slice it apart.") playsound(src, "sparks", 50, 1) if(do_after(user, mineral == "diamond" ? 140 : 70, target = src)) diff --git a/code/game/turfs/simulated/walls_reinforced.dm b/code/game/turfs/simulated/walls_reinforced.dm index 41c5df5656c..1d792647042 100644 --- a/code/game/turfs/simulated/walls_reinforced.dm +++ b/code/game/turfs/simulated/walls_reinforced.dm @@ -16,7 +16,7 @@ /turf/simulated/wall/r_wall/attackby(obj/item/W as obj, mob/user as mob, params) user.changeNext_move(CLICK_CD_MELEE) if (!user.IsAdvancedToolUser()) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return //get the user's location @@ -26,14 +26,14 @@ if(istype(W, /obj/item/weapon/weldingtool) ) var/obj/item/weapon/weldingtool/WT = W if( WT.remove_fuel(0,user) ) - user << "You burn away the fungi with \the [WT]." + to_chat(user, "You burn away the fungi with \the [WT].") playsound(src, 'sound/items/Welder.ogg', 10, 1) for(var/obj/effect/E in src) if(E.name == "Wallrot") qdel(E) rotting = 0 return else if(!is_sharp(W) && W.force >= 10 || W.force >= 20) - user << "\The [src] crumbles away under the force of your [W.name]." + to_chat(user, "\The [src] crumbles away under the force of your [W.name].") src.dismantle_wall() return @@ -53,7 +53,7 @@ var/obj/item/weapon/melee/energy/blade/EB = W EB.spark_system.start() - user << "You slash \the [src] with \the [EB]; the thermite ignites!" + to_chat(user, "You slash \the [src] with \the [EB]; the thermite ignites!") playsound(src, "sparks", 50, 1) playsound(src, 'sound/weapons/blade1.ogg', 50, 1) @@ -61,20 +61,20 @@ return else if(istype(W, /obj/item/weapon/melee/energy/blade)) - user << "This wall is too thick to slice through. You will need to find a different path." + to_chat(user, "This wall is too thick to slice through. You will need to find a different path.") return if(damage && istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0,user)) - user << "You start repairing the damage to [src]." + to_chat(user, "You start repairing the damage to [src].") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, max(5, damage / 5), target = src) && WT && WT.isOn()) - user << "You finish repairing the damage to [src]." + to_chat(user, "You finish repairing the damage to [src].") take_damage(-damage) return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return @@ -86,18 +86,18 @@ d_state = 1 update_icon() new /obj/item/stack/rods(src) - user << "You cut the outer grille." + to_chat(user, "You cut the outer grille.") return if(1) if (istype(W, /obj/item/weapon/screwdriver)) - user << "You begin removing the support lines." + to_chat(user, "You begin removing the support lines.") playsound(src, 'sound/items/Screwdriver.ogg', 100, 1) if(do_after(user, 40, target = src) && d_state == 1) d_state = 2 update_icon() - user << "You remove the support lines." + to_chat(user, "You remove the support lines.") return //REPAIRING (replacing the outer grille for cosmetic damage) @@ -107,92 +107,92 @@ d_state = 0 update_icon() src.icon_state = "r_wall" - user << "You replace the outer grille." + to_chat(user, "You replace the outer grille.") else - user << "You don't have enough rods for that!" + to_chat(user, "You don't have enough rods for that!") if(2) if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0,user)) - user << "You begin slicing through the metal cover." + to_chat(user, "You begin slicing through the metal cover.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, 60, target = src) && d_state == 2) d_state = 3 update_icon() - user << "You press firmly on the cover, dislodging it." + to_chat(user, "You press firmly on the cover, dislodging it.") else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) - user << "You begin slicing through the metal cover." + to_chat(user, "You begin slicing through the metal cover.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, 40, target = src) && d_state == 2) d_state = 3 update_icon() - user << "You press firmly on the cover, dislodging it." + to_chat(user, "You press firmly on the cover, dislodging it.") return if(3) if(istype(W, /obj/item/weapon/crowbar)) - user << "You struggle to pry off the cover." + to_chat(user, "You struggle to pry off the cover.") playsound(src, 'sound/items/Crowbar.ogg', 100, 1) if(do_after(user, 100, target = src) && d_state == 3) d_state = 4 update_icon() - user << "You pry off the cover." + to_chat(user, "You pry off the cover.") return if(4) if(istype(W, /obj/item/weapon/wrench)) - user << "You start loosening the anchoring bolts which secure the support rods to their frame." + to_chat(user, "You start loosening the anchoring bolts which secure the support rods to their frame.") playsound(src, 'sound/items/Ratchet.ogg', 100, 1) if(do_after(user, 40, target = src) && d_state == 4) d_state = 5 update_icon() - user << "You remove the bolts anchoring the support rods." + to_chat(user, "You remove the bolts anchoring the support rods.") return if(5) if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0,user)) - user << "You begin slicing through the support rods." + to_chat(user, "You begin slicing through the support rods.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, 100, target = src) && d_state == 5) d_state = 6 update_icon() new /obj/item/stack/rods(src) - user << "The support rods drop out as you cut them loose from the frame." + to_chat(user, "The support rods drop out as you cut them loose from the frame.") else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) - user << "You begin slicing through the support rods." + to_chat(user, "You begin slicing through the support rods.") playsound(src, 'sound/items/Welder.ogg', 100, 1) if(do_after(user, 70, target = src) && d_state == 5) d_state = 6 update_icon() new /obj/item/stack/rods( src ) - user << "The support rods drop out as you cut them loose from the frame." + to_chat(user, "The support rods drop out as you cut them loose from the frame.") return if(6) if(istype(W, /obj/item/weapon/crowbar)) - user << "You struggle to pry off the outer sheath." + to_chat(user, "You struggle to pry off the outer sheath.") playsound(src, 'sound/items/Crowbar.ogg', 100, 1) if(do_after(user, 100, target = src) && d_state == 6) - user << "You pry off the outer sheath." + to_chat(user, "You pry off the outer sheath.") dismantle_wall() return @@ -200,34 +200,34 @@ //DRILLING if(istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill)) - user << "You begin to drill though the wall." + to_chat(user, "You begin to drill though the wall.") if(do_after(user, 200, target = src)) - user << "Your drill tears through the last of the reinforced plating." + to_chat(user, "Your drill tears through the last of the reinforced plating.") dismantle_wall() if(istype(W,/obj/item/weapon/pickaxe/drill/jackhammer)) - user << "You begin to disintegrate the wall." + to_chat(user, "You begin to disintegrate the wall.") if(do_after(user, 100, target = src)) - user << "Your sonic jackhammer disintegrates the reinforced plating." + to_chat(user, "Your sonic jackhammer disintegrates the reinforced plating.") dismantle_wall() //REPAIRING else if(istype(W, /obj/item/stack/sheet/metal) && d_state) var/obj/item/stack/sheet/metal/MS = W - user << "You begin patching-up the wall with \a [MS]." + to_chat(user, "You begin patching-up the wall with \a [MS].") if(do_after(user, max(20 * d_state, 100), target = src) && d_state) if(!MS.use(1)) - user << "You don't have enough metal for that!" + to_chat(user, "You don't have enough metal for that!") return d_state = 0 update_icon() smooth_icon_neighbors(src) - user << "You repair the last of the damage." + to_chat(user, "You repair the last of the damage.") //APC diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm index eb4b7671d71..58f6e4a41d9 100644 --- a/code/game/turfs/space/space.dm +++ b/code/game/turfs/space/space.dm @@ -38,19 +38,19 @@ var/obj/structure/lattice/L = locate(/obj/structure/lattice, src) if(L) if(R.use(1)) - user << "You begin constructing catwalk..." + to_chat(user, "You begin constructing catwalk...") playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) qdel(L) ChangeTurf(/turf/simulated/floor/plating/airless/catwalk) else - user << "You need two rods to build a catwalk!" + to_chat(user, "You need two rods to build a catwalk!") return if(R.use(1)) - user << "Constructing support lattice..." + to_chat(user, "Constructing support lattice...") playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) ReplaceWithLattice() else - user << "You need one rod to build a lattice." + to_chat(user, "You need one rod to build a lattice.") return if(istype(C, /obj/item/stack/tile/plasteel)) @@ -60,12 +60,12 @@ if(S.use(1)) qdel(L) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) - user << "You build a floor." + to_chat(user, "You build a floor.") ChangeTurf(/turf/simulated/floor/plating) else - user << "You need one floor tile to build a floor!" + to_chat(user, "You need one floor tile to build a floor!") else - user << "The plating is going to need some support! Place metal rods first." + to_chat(user, "The plating is going to need some support! Place metal rods first.") /turf/space/Entered(atom/movable/A as mob|obj) ..() @@ -107,9 +107,9 @@ target_z = y_arr[cur_y] /* //debug - world << "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]" - world << "Target Z = [target_z]" - world << "Next X = [next_x]" + to_chat(world, "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_chat(world, "Target Z = [target_z]") + to_chat(world, "Next X = [next_x]") //debug */ if(target_z) @@ -132,9 +132,9 @@ target_z = y_arr[cur_y] /* //debug - world << "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]" - world << "Target Z = [target_z]" - world << "Next X = [next_x]" + to_chat(world, "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_chat(world, "Target Z = [target_z]") + to_chat(world, "Next X = [next_x]") //debug */ if(target_z) @@ -156,9 +156,9 @@ target_z = y_arr[next_y] /* //debug - world << "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]" - world << "Next Y = [next_y]" - world << "Target Z = [target_z]" + to_chat(world, "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_chat(world, "Next Y = [next_y]") + to_chat(world, "Target Z = [target_z]") //debug */ if(target_z) @@ -181,9 +181,9 @@ target_z = y_arr[next_y] /* //debug - world << "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]" - world << "Next Y = [next_y]" - world << "Target Z = [target_z]" + to_chat(world, "Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_chat(world, "Next Y = [next_y]") + to_chat(world, "Target Z = [target_z]") //debug */ if(target_z) diff --git a/code/game/vehicles/spacepods/equipment.dm b/code/game/vehicles/spacepods/equipment.dm index 5053012df1a..734216657ce 100644 --- a/code/game/vehicles/spacepods/equipment.dm +++ b/code/game/vehicles/spacepods/equipment.dm @@ -1,11 +1,11 @@ /obj/item/device/spacepod_equipment/weaponry/proc/fire_weapons() if(my_atom.next_firetime > world.time) - usr << "Your weapons are recharging." + to_chat(usr, "Your weapons are recharging.") return var/turf/firstloc var/turf/secondloc if(!my_atom.equipment_system || !my_atom.equipment_system.weapon_system) - usr << "Missing equipment or weapons." + to_chat(usr, "Missing equipment or weapons.") my_atom.verbs -= text2path("[type]/proc/fire_weapons") return my_atom.battery.use(shot_cost) diff --git a/code/game/vehicles/spacepods/parts.dm b/code/game/vehicles/spacepods/parts.dm index 28ec839b967..0747f1c5a14 100644 --- a/code/game/vehicles/spacepods/parts.dm +++ b/code/game/vehicles/spacepods/parts.dm @@ -59,11 +59,11 @@ var/obj/item/stack/rods/R = O var/list/linkedparts = find_square() if(!linkedparts) - user << "You cannot assemble a pod frame because you do not have the necessary assembly." + to_chat(user, "You cannot assemble a pod frame because you do not have the necessary assembly.") return var/obj/structure/spacepod_frame/pod = new /obj/structure/spacepod_frame(src.loc) pod.dir = src.dir - user << "You strut the pod frame together." + to_chat(user, "You strut the pod frame together.") R.use(10) for(var/obj/item/pod_parts/pod_frame/F in linkedparts) if(1 == turn(F.dir, -F.link_angle)) //if the part links north during construction, as the bottom left part always does @@ -72,7 +72,7 @@ qdel(F) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(istype(O, /obj/item/weapon/wrench)) - user << "You [!anchored ? "secure \the [src] in place." : "remove the securing bolts."]" + to_chat(user, "You [!anchored ? "secure \the [src] in place." : "remove the securing bolts."]") anchored = !anchored density = anchored playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) @@ -82,7 +82,7 @@ set category = "Object" set src in oview(1) if(anchored) - usr << "\The [src] is securely bolted!" + to_chat(usr, "\The [src] is securely bolted!") return 0 src.dir = turn(src.dir, -90) return 1 diff --git a/code/game/vehicles/spacepods/pod_fabricator.dm b/code/game/vehicles/spacepods/pod_fabricator.dm index a3d9e4911a3..948491c6d29 100644 --- a/code/game/vehicles/spacepods/pod_fabricator.dm +++ b/code/game/vehicles/spacepods/pod_fabricator.dm @@ -499,7 +499,7 @@ default_deconstruction_crowbar(W) return 1 else - user << "You can't load \the [name] while it's opened." + to_chat(user, "You can't load \the [name] while it's opened.") return 1 if(istype(W, /obj/item/stack)) @@ -525,10 +525,10 @@ return ..() if(being_built) - user << "\The [src] is currently processing. Please wait until completion." + to_chat(user, "\The [src] is currently processing. Please wait until completion.") return if(res_max_amount - resources[material] < MINERAL_MATERIAL_AMOUNT) //overstuffing the fabricator - user << "\The [src] [material2name(material)] storage is full." + to_chat(user, "\The [src] [material2name(material)] storage is full.") return var/obj/item/stack/sheet/stack = W var/sname = "[stack.name]" @@ -538,12 +538,12 @@ var/transfer_amount = min(stack.amount, round((res_max_amount - resources[material])/MINERAL_MATERIAL_AMOUNT,1)) resources[material] += transfer_amount * MINERAL_MATERIAL_AMOUNT stack.use(transfer_amount) - user << "You insert [transfer_amount] [sname] sheet\s into \the [src]." + to_chat(user, "You insert [transfer_amount] [sname] sheet\s into \the [src].") sleep(10) updateUsrDialog() overlays -= "fab-load-[material2name(material)]" //No matter what the overlay shall still be deleted else - user << "\The [src] cannot hold any more [sname] sheet\s." + to_chat(user, "\The [src] cannot hold any more [sname] sheet\s.") return /obj/machinery/spod_part_fabricator/proc/material2name(var/ID) diff --git a/code/game/vehicles/spacepods/spacepod.dm b/code/game/vehicles/spacepods/spacepod.dm index 4463c7b61a3..95ef15b1922 100644 --- a/code/game/vehicles/spacepods/spacepod.dm +++ b/code/game/vehicles/spacepods/spacepod.dm @@ -146,7 +146,7 @@ user.changeNext_move(CLICK_CD_MELEE) deal_damage(15) playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) - user << "\red You slash at \the [src]!" + to_chat(user, "\red You slash at \the [src]!") visible_message("\red The [user] slashes at [src.name]'s armor!") return @@ -160,25 +160,29 @@ S.wait = 0 //No queue S.channel = 0 //Any channel S.volume = 50 - occupant << S + to_chat(occupant, S) if(occupant2) - occupant2 << S + to_chat(occupant2, S) if(occupant && oldhealth > health && !health) var/sound/S = sound('sound/effects/engine_alert1.ogg') S.wait = 0 S.channel = 0 S.volume = 50 - occupant << S + to_chat(occupant, S) if(occupant2) - occupant2 << S + to_chat(occupant2, S) if(!health) spawn(0) - if(occupant) occupant << "Critical damage to the vessel detected, core explosion imminent!" - if(occupant2) occupant2 << "Critical damage to the vessel detected, core explosion imminent!" + if(occupant) + to_chat(occupant, "Critical damage to the vessel detected, core explosion imminent!") + if(occupant2) + to_chat(occupant2, "Critical damage to the vessel detected, core explosion imminent!") for(var/i = 10, i >= 0; --i) - if(occupant) occupant << "[i]" - if(occupant2) occupant2 << "[i]" + if(occupant) + to_chat(occupant, "[i]") + if(occupant2) + to_chat(occupant2, "[i]") if(i == 0) explosion(loc, 2, 4, 8) qdel(src) @@ -201,11 +205,11 @@ if(H) H.forceMove(get_turf(src)) H.ex_act(severity + 1) - H << "You are forcefully thrown from \the [src]!" + to_chat(H, "You are forcefully thrown from \the [src]!") if(H2) H2.forceMove(get_turf(src)) H2.ex_act(severity + 1) - H2 << "You are forcefully thrown from \the [src]!" + to_chat(H2, "You are forcefully thrown from \the [src]!") qdel(ion_trail) qdel(src) if(2) @@ -218,8 +222,11 @@ occupant_sanity_check() switch(severity) if(1) - if(src.occupant) src.occupant << "The pod console flashes 'Heavy EMP WAVE DETECTED'." //warn the occupants - if(src.occupant2) src.occupant2 << "The pod console flashes 'Heavy EMP WAVE DETECTED'." //warn the occupants + if(occupant) + to_chat(occupant, "The pod console flashes 'Heavy EMP WAVE DETECTED'.")//warn the occupants + if(occupant2) + to_chat(occupant2, "The pod console flashes 'Heavy EMP WAVE DETECTED'.")//warn the occupants + if(battery) battery.charge = max(0, battery.charge - 5000) //Cell EMP act is too weak, this pod needs to be sapped. @@ -229,27 +236,29 @@ processing_objects.Add(src) if(2) - if(src.occupant) src.occupant << "The pod console flashes 'EMP WAVE DETECTED'." //warn the occupants - if(src.occupant2) src.occupant2 << "The pod console flashes 'EMP WAVE DETECTED'." //warn the occupants + if(occupant) + to_chat(occupant, "The pod console flashes 'EMP WAVE DETECTED'.")//warn the occupants + if(occupant2) + to_chat(occupant2, "The pod console flashes 'EMP WAVE DETECTED'.")//warn the occupants - src.deal_damage(40) + deal_damage(40) if(battery) battery.charge = max(0, battery.charge - 2500) //Cell EMP act is too weak, this pod needs to be sapped. - if(src.empcounter < 20) - src.empcounter = 20 //Disable movement for 20 ticks. + if(empcounter < 20) + empcounter = 20 //Disable movement for 20 ticks. processing_objects.Add(src) /obj/spacepod/attackby(obj/item/W as obj, mob/user as mob, params) if(iscrowbar(W)) hatch_open = !hatch_open playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "You [hatch_open ? "open" : "close"] the maintenance hatch." + to_chat(user, "You [hatch_open ? "open" : "close"] the maintenance hatch.") if(istype(W, /obj/item/weapon/stock_parts/cell)) if(!hatch_open) - user << "\red The maintenance hatch is closed!" + to_chat(user, "\red The maintenance hatch is closed!") return if(battery) - user << "The pod already has a battery." + to_chat(user, "The pod already has a battery.") return user.drop_item(W) battery = W @@ -257,17 +266,17 @@ return if(istype(W, /obj/item/device/spacepod_equipment)) if(!hatch_open) - user << "\red The maintenance hatch is closed!" + to_chat(user, "\red The maintenance hatch is closed!") return if(!equipment_system) - user << "The pod has no equipment datum, yell at pomf" + to_chat(user, "The pod has no equipment datum, yell at pomf") return if(istype(W, /obj/item/device/spacepod_equipment/weaponry)) if(equipment_system.weapon_system) - user << "The pod already has a weapon system, remove it first." + to_chat(user, "The pod already has a weapon system, remove it first.") return else - user << "You insert \the [W] into the equipment system." + to_chat(user, "You insert \the [W] into the equipment system.") user.drop_item(W) W.forceMove(src) equipment_system.weapon_system = W @@ -276,10 +285,10 @@ if(istype(W, /obj/item/device/spacepod_equipment/misc)) if(equipment_system.misc_system) - user << "The pod already has a miscellaneous system, remove it first." + to_chat(user, "The pod already has a miscellaneous system, remove it first.") return else - user << "You insert \the [W] into the equipment system." + to_chat(user, "You insert \the [W] into the equipment system.") user.drop_item(W) W.forceMove(src) equipment_system.misc_system = W @@ -287,10 +296,10 @@ return if(istype(W, /obj/item/device/spacepod_equipment/cargo)) if(equipment_system.cargo_system) - user << "The pod already has a cargo system, remove it first." + to_chat(user, "The pod already has a cargo system, remove it first.") return else - user << "You insert \the [W] into the cargo system." + to_chat(user, "You insert \the [W] into the cargo system.") user.drop_item(W) W.forceMove(src) equipment_system.cargo_system = W @@ -299,28 +308,28 @@ if(istype(W, /obj/item/weapon/weldingtool)) if(!hatch_open) - user << "\red You must open the maintenance hatch before attempting repairs." + to_chat(user, "\red You must open the maintenance hatch before attempting repairs.") return var/obj/item/weapon/weldingtool/WT = W if(!WT.isOn()) - user << "\red The welder must be on for this task." + to_chat(user, "\red The welder must be on for this task.") return if (health < initial(health)) - user << "\blue You start welding the spacepod..." + to_chat(user, "\blue You start welding the spacepod...") playsound(loc, 'sound/items/Welder.ogg', 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.remove_fuel(3, user)) return repair_damage(10) - user << "\blue You mend some [pick("dents","bumps","damage")] with \the [WT]" + to_chat(user, "\blue You mend some [pick("dents","bumps","damage")] with \the [WT]") else - user << "\blue \The [src] is fully repaired!" + to_chat(user, "\blue \The [src] is fully repaired!") /obj/spacepod/attack_hand(mob/user as mob) if(!hatch_open) return ..() if(!equipment_system || !istype(equipment_system)) - user << "The pod has no equpment datum, or is the wrong type, yell at pomf." + to_chat(user, "The pod has no equpment datum, or is the wrong type, yell at pomf.") return var/list/possible = list() if(battery) @@ -341,50 +350,50 @@ switch(input(user, "Remove which equipment?", null, null) as null|anything in possible) if("Energy Cell") if(user.put_in_any_hand_if_possible(battery)) - user << "You remove \the [battery] from the space pod" + to_chat(user, "You remove \the [battery] from the space pod") battery = null if("Weapon System") SPE = equipment_system.weapon_system if(user.put_in_any_hand_if_possible(SPE)) - user << "You remove \the [SPE] from the equipment system." + to_chat(user, "You remove \the [SPE] from the equipment system.") SPE.removed(user) SPE.my_atom = null equipment_system.weapon_system = null else - user << "You need an open hand to do that." + to_chat(user, "You need an open hand to do that.") if("Misc. System") SPE = equipment_system.misc_system if(user.put_in_any_hand_if_possible(SPE)) - user << "You remove \the [SPE] from the equipment system." + to_chat(user, "You remove \the [SPE] from the equipment system.") SPE.removed(user) SPE.my_atom = null equipment_system.misc_system = null else - user << "You need an open hand to do that." + to_chat(user, "You need an open hand to do that.") if("Cargo System") SPE = equipment_system.cargo_system if(user.put_in_any_hand_if_possible(SPE)) - user << "You remove \the [SPE] from the equipment system." + to_chat(user, "You remove \the [SPE] from the equipment system.") SPE.removed(user) SPE.my_atom = null equipment_system.cargo_system = null else - user << "You need an open hand to do that." + to_chat(user, "You need an open hand to do that.") /* if("engine system") SPE = equipment_system.engine_system if(user.put_in_any_hand_if_possible(SPE)) - user << "You remove \the [SPE] from the equipment system." + to_chat(user, "You remove \the [SPE] from the equipment system.") equipment_system.engine_system = null else - user << "You need an open hand to do that." + to_chat(user, "You need an open hand to do that.") if("shield system") SPE = equipment_system.shield_system if(user.put_in_any_hand_if_possible(SPE)) - user << "You remove \the [SPE] from the equipment system." + to_chat(user, "You remove \the [SPE] from the equipment system.") equipment_system.shield_system = null else - user << "You need an open hand to do that." + to_chat(user, "You need an open hand to do that.") */ return @@ -442,7 +451,7 @@ if(usr!=src.occupant) return use_internal_tank = !use_internal_tank - src.occupant << "Now taking air from [use_internal_tank?"internal airtank":"environment"]." + to_chat(occupant, "Now taking air from [use_internal_tank?"internal airtank":"environment"].") return /obj/spacepod/proc/add_cabin() @@ -517,7 +526,7 @@ if(M != user && M.stat == DEAD && allow2enter) if(occupant2 && !occupant) - usr << "You can't put a corpse into the driver's seat!" + to_chat(usr, "You can't put a corpse into the driver's seat!") return 0 if(!occupant2) visible_message("[user.name] starts loading [M.name] into the pod!") @@ -532,15 +541,15 @@ if(equipment_system.cargo_system && istype(equipment_system.cargo_system,/obj/item/device/spacepod_equipment/cargo/ore)) var/obj/item/device/spacepod_equipment/cargo/ore/C = equipment_system.cargo_system if(!C.box) - user << "You begin loading \the [O] into \the [src]'s [equipment_system.cargo_system]" + to_chat(user, "You begin loading \the [O] into \the [src]'s [equipment_system.cargo_system]") if(do_after(user, 40, target = src)) C.box = O O.forceMove(C) - user << "You load \the [O] into \the [src]'s [equipment_system.cargo_system]!" + to_chat(user, "You load \the [O] into \the [src]'s [equipment_system.cargo_system]!") else - user << "You fail to load \the [O] into \the [src]'s [equipment_system.cargo_system]" + to_chat(user, "You fail to load \the [O] into \the [src]'s [equipment_system.cargo_system]") else - user << "\The [src] already has \an [C.box]" + to_chat(user, "\The [src] already has \an [C.box]") /obj/spacepod/verb/enter_pod(mob/user = usr) set category = "Object" @@ -551,7 +560,7 @@ return if(get_dist(src, user) > 2 || get_dist(usr, user) > 1) - usr << "They are too far away to put inside" + to_chat(usr, "They are too far away to put inside") return if(!istype(user)) @@ -565,12 +574,12 @@ return 0 if(fukkendisk) - user << "The nuke-disk is locking the door every time you try to open it. You get the feeling that it doesn't want to go into the spacepod." + to_chat(user, "The nuke-disk is locking the door every time you try to open it. You get the feeling that it doesn't want to go into the spacepod.") return 0 for(var/mob/living/carbon/slime/S in range(1,usr)) if(S.Victim == user) - user << "You're too busy getting your life sucked out of you." + to_chat(user, "You're too busy getting your life sucked out of you.") return 0 move_inside(user) @@ -591,9 +600,9 @@ add_fingerprint(user) playsound(src, 'sound/machines/windowdoor.ogg', 50, 1) else - user << "[occupant] was faster. Try better next time, loser." + to_chat(user, "[occupant] was faster. Try better next time, loser.") else - user << "You stop entering \the [src]." + to_chat(user, "You stop entering \the [src].") else if(!occupant2) visible_message("[user] starts to climb into \the [src].") @@ -605,11 +614,11 @@ add_fingerprint(user) playsound(src, 'sound/machines/windowdoor.ogg', 50, 1) else - user << "[occupant] was faster. Try better next time, loser." + to_chat(user, "[occupant] was faster. Try better next time, loser.") else - user << "You stop entering \the [src]." + to_chat(user, "You stop entering \the [src].") else - user << "You can't fit in \the [src], it's full!" + to_chat(user, "You can't fit in \the [src], it's full!") /obj/spacepod/proc/occupant_sanity_check() if(occupant) @@ -651,15 +660,17 @@ switch(spos) if(0) return if(1) - if(occupant2) occupant2 << "[occupant.name] climbs out of the pod!" + if(occupant2) + to_chat(occupant2, "[occupant.name] climbs out of the pod!") occupant.forceMove(src.loc) occupant = null - user << "You climb out of \the [src]." + to_chat(user, "You climb out of \the [src].") if(2) - if(occupant) occupant << "[occupant2.name] climbs out of the pod!" + if(occupant) + to_chat(occupant, "[occupant2.name] climbs out of the pod!") occupant2.forceMove(src.loc) occupant2 = null - user << "You climb out of \the [src]." + to_chat(user, "You climb out of \the [src].") /obj/spacepod/verb/exit_pod2() set name = "Eject Secondary Seat" @@ -669,16 +680,16 @@ occupant_sanity_check() if(!occupant2) - usr << "There is no one in the second seat." + to_chat(usr, "There is no one in the second seat.") return if(usr == occupant2) - usr << "How do you plan to do that? The eject button is out of reach." + to_chat(usr, "How do you plan to do that? The eject button is out of reach.") return if(usr == occupant) - usr << "You eject [occupant2.name]." - occupant2 << "\The [src] ejects you forcefully!" + to_chat(usr, "You eject [occupant2.name].") + to_chat(occupant2, "\The [src] ejects you forcefully!") inertia_dir = 0 occupant2.forceMove(src.loc) occupant2 = null @@ -690,11 +701,11 @@ if(CheckIfOccupant2(usr)) if(!allow2enter) - usr << "You can't [allow2enter ? "lock" : "unlock"] the doors from your seat." + to_chat(usr, "You can't [allow2enter ? "lock" : "unlock"] the doors from your seat.") return allow2enter = !allow2enter - usr << "You [allow2enter ? "unlock" : "lock"] the doors." + to_chat(usr, "You [allow2enter ? "unlock" : "lock"] the doors.") /obj/spacepod/verb/toggleDoors() @@ -717,10 +728,10 @@ else P.close() return 1 - usr << "Access denied." + to_chat(usr, "Access denied.") return - usr << "You are not close to any pod doors." + to_chat(usr, "You are not close to any pod doors.") return @@ -731,7 +742,7 @@ set category = "Spacepod" set src = usr.loc if(!equipment_system.weapon_system) - usr << "\The [src] has no weapons!" + to_chat(usr, "\The [src] has no weapons!") return equipment_system.weapon_system.fire_weapons() @@ -742,7 +753,7 @@ set category = "Spacepod" set src = usr.loc if(!equipment_system.cargo_system) - usr << "\The [src] has no cargo system!" + to_chat(usr, "\The [src] has no cargo system!") return equipment_system.cargo_system.unload() @@ -759,7 +770,7 @@ set_light(lights_power) else set_light(0) - occupant << "Toggled lights [lights ? "on" : "off"]." + to_chat(occupant, "Toggled lights [lights ? "on" : "off"].") return /obj/spacepod/proc/enter_after(delay as num, var/mob/user as mob, var/numticks = 5) @@ -852,15 +863,15 @@ else if(!battery) - user << "No energy cell detected." + to_chat(user, "No energy cell detected.") else if(battery.charge < 1) - user << "Not enough charge left." + to_chat(user, "Not enough charge left.") else if(!health) - user << "She's dead, Jim" + to_chat(user, "She's dead, Jim") else if(empcounter != 0) - user << "The pod control interface isn't responding. The console indicates [empcounter] seconds before reboot." + to_chat(user, "The pod control interface isn't responding. The console indicates [empcounter] seconds before reboot.") else - user << "Unknown error has occurred, yell at the coders." + to_chat(user, "Unknown error has occurred, yell at the coders.") return 0 battery.charge = max(0, battery.charge - 1) next_move = world.time + move_delay diff --git a/code/game/verbs/ooc.dm b/code/game/verbs/ooc.dm index d4f90164e2c..48bb773c453 100644 --- a/code/game/verbs/ooc.dm +++ b/code/game/verbs/ooc.dm @@ -5,43 +5,43 @@ var/global/moderator_ooc_colour = "#184880" var/global/admin_ooc_colour = "#b82e00" /client/verb/ooc(msg as text) - set name = "OOC" + set name = "OOC" set category = "OOC" - if(!mob) + if(!mob) return if(IsGuestKey(key)) - src << "Guests may not use OOC." + to_chat(src, "Guests may not use OOC.") return msg = trim(sanitize(copytext(msg, 1, MAX_MESSAGE_LEN))) - if(!msg) + if(!msg) return if(!(prefs.toggles & CHAT_OOC)) - src << "You have OOC muted." + to_chat(src, "You have OOC muted.") return if(!check_rights(R_ADMIN|R_MOD,0)) if(!config.ooc_allowed) - src << "OOC is globally muted." + to_chat(src, "OOC is globally muted.") return if(!config.dooc_allowed && (mob.stat == DEAD)) - usr << "OOC for dead mobs has been turned off." + to_chat(usr, "OOC for dead mobs has been turned off.") return if(prefs.muted & MUTE_OOC) - src << "You cannot use OOC (muted)." + to_chat(src, "You cannot use OOC (muted).") return if(handle_spam_prevention(msg, MUTE_OOC)) return if(findtext(msg, "byond://")) - src << "Advertising other servers is not allowed." + to_chat(src, "Advertising other servers is not allowed.") log_admin("[key_name(src)] has attempted to advertise in OOC: [msg]") message_admins("[key_name_admin(src)] has attempted to advertise in OOC: [msg]") return log_ooc("[mob.name]/[key] : [msg]") - + var/display_colour = normal_ooc_colour if(holder && !holder.fakekey) display_colour = mentor_ooc_colour @@ -52,12 +52,12 @@ var/global/admin_ooc_colour = "#b82e00" display_colour = src.prefs.ooccolor else display_colour = admin_ooc_colour - + if(prefs.unlock_content) if(display_colour == normal_ooc_colour) if((prefs.toggles & MEMBER_PUBLIC)) display_colour = member_ooc_colour - + for(var/client/C in clients) if(C.prefs.toggles & CHAT_OOC) var/display_name = src.key @@ -70,15 +70,15 @@ var/global/admin_ooc_colour = "#b82e00" display_name = "[holder.fakekey]/([src.key])" else display_name = holder.fakekey - C << "OOC: [display_name]: [msg]" + to_chat(C, "OOC: [display_name]: [msg]") /proc/toggle_ooc() config.ooc_allowed = ( !config.ooc_allowed ) if (config.ooc_allowed) - world << "The OOC channel has been globally enabled!" + to_chat(world, "The OOC channel has been globally enabled!") else - world << "The OOC channel has been globally disabled!" - + to_chat(world, "The OOC channel has been globally disabled!") + /proc/auto_toggle_ooc(var/on) if(config.auto_toggle_ooc_during_round && config.ooc_allowed != on) toggle_ooc() @@ -87,29 +87,29 @@ var/global/admin_ooc_colour = "#b82e00" set name = "Set Player OOC Colour" set desc = "Modifies the default player OOC color." set category = "Server" - + if(!check_rights(R_SERVER)) return - + normal_ooc_colour = newColor message_admins("[key_name_admin(usr)] has set the default player OOC color to [newColor]") log_admin("[key_name(usr)] has set the default player OOC color to [newColor]") feedback_add_details("admin_verb","SOOC") - + /client/proc/reset_ooc() set name = "Reset Player OOC Color" set desc = "Returns the default player OOC color to default." set category = "Server" - + if(!check_rights(R_SERVER)) return - + normal_ooc_colour = initial(normal_ooc_colour) message_admins("[key_name_admin(usr)] has reset the default player OOC color") log_admin("[key_name(usr)] has reset the default player OOC color") - + feedback_add_details("admin_verb","ROOC") - + /client/proc/colorooc() set name = "Set Your OOC Color" set desc = "Allows you to pick a custom OOC color." @@ -121,8 +121,8 @@ var/global/admin_ooc_colour = "#b82e00" if(new_ooccolor) prefs.ooccolor = new_ooccolor prefs.save_preferences(src) - usr << "Your OOC color has been set to [new_ooccolor]." - + to_chat(usr, "Your OOC color has been set to [new_ooccolor].") + feedback_add_details("admin_verb","OC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/resetcolorooc() @@ -134,50 +134,50 @@ var/global/admin_ooc_colour = "#b82e00" prefs.ooccolor = initial(prefs.ooccolor) prefs.save_preferences(src) - usr << "Your OOC color has been reset." - + to_chat(usr, "Your OOC color has been reset.") + feedback_add_details("admin_verb","ROC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/looc(msg as text) - set name = "LOOC" + set name = "LOOC" set desc = "Local OOC, seen only by those in view." set category = "OOC" - if(!mob) + if(!mob) return if(IsGuestKey(key)) - src << "Guests may not use OOC." + to_chat(src, "Guests may not use OOC.") return msg = trim(sanitize(copytext(msg, 1, MAX_MESSAGE_LEN))) - if(!msg) + if(!msg) return if(!(prefs.toggles & CHAT_LOOC)) - src << "You have LOOC muted." + to_chat(src, "You have LOOC muted.") return if(!check_rights(R_ADMIN|R_MOD,0)) if(!config.looc_allowed) - src << "LOOC is globally muted." + to_chat(src, "LOOC is globally muted.") return if(!config.dooc_allowed && (mob.stat == DEAD)) - usr << "LOOC for dead mobs has been turned off." + to_chat(usr, "LOOC for dead mobs has been turned off.") return if(prefs.muted & MUTE_OOC) - src << "You cannot use LOOC (muted)." + to_chat(src, "You cannot use LOOC (muted).") return if(handle_spam_prevention(msg,MUTE_OOC)) return if(findtext(msg, "byond://")) - src << "Advertising other servers is not allowed." + to_chat(src, "Advertising other servers is not allowed.") log_admin("[key_name(src)] has attempted to advertise in LOOC: [msg]") message_admins("[key_name_admin(src)] has attempted to advertise in LOOC: [msg]") return log_ooc("(LOCAL) [mob.name]/[key] : [msg]") - - var/mob/source = mob.get_looc_source() + + var/mob/source = mob.get_looc_source() var/list/heard = get_mobs_in_view(7, source) var/display_name = key @@ -186,7 +186,7 @@ var/global/admin_ooc_colour = "#b82e00" if(mob.stat != DEAD) display_name = mob.name - for(var/client/target in clients) + for(var/client/target in clients) if(target.prefs.toggles & CHAT_LOOC) var/prefix = "" var/admin_stuff = "" @@ -215,8 +215,8 @@ var/global/admin_ooc_colour = "#b82e00" prefix = "(R)" if(send) - target << "LOOC[prefix]: [display_name][admin_stuff]: [msg]" - + to_chat(target, "LOOC[prefix]: [display_name][admin_stuff]: [msg]") + /mob/proc/get_looc_source() return src @@ -224,4 +224,3 @@ var/global/admin_ooc_colour = "#b82e00" if(eyeobj) return eyeobj return src - \ No newline at end of file diff --git a/code/game/verbs/suicide.dm b/code/game/verbs/suicide.dm index dab208d415f..5d91c835ea0 100644 --- a/code/game/verbs/suicide.dm +++ b/code/game/verbs/suicide.dm @@ -53,20 +53,20 @@ set hidden = 1 if (stat == DEAD) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (!ticker) - src << "You can't commit suicide before the game starts!" + to_chat(src, "You can't commit suicide before the game starts!") return // No more borergrief, one way or the other if(has_brain_worms()) - src << "You try to bring yourself to commit suicide, but - something prevents you!" + to_chat(src, "You try to bring yourself to commit suicide, but - something prevents you!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") @@ -80,7 +80,7 @@ do_suicide(damagetype, held_item) return - viewers(src) << "[src] [pick(species.suicide_messages)] It looks like they're trying to commit suicide." + to_chat(viewers(src), "[src] [pick(species.suicide_messages)] It looks like they're trying to commit suicide.") do_suicide(0) updatehealth() @@ -89,22 +89,22 @@ set hidden = 1 if (stat == 2) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (!ticker) - src << "You can't commit suicide before the game starts!" + to_chat(src, "You can't commit suicide before the game starts!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") if(confirm == "Yes") suiciding = 1 - viewers(loc) << "\red [src]'s brain is growing dull and lifeless. It looks like it's lost the will to live." + to_chat(viewers(loc), "\red [src]'s brain is growing dull and lifeless. It looks like it's lost the will to live.") spawn(50) death(0) suiciding = 0 @@ -114,18 +114,18 @@ set hidden = 1 if (stat == 2) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") if(confirm == "Yes") suiciding = 1 - viewers(src) << "\red [src] is powering down. It looks like \he's trying to commit suicide." + to_chat(viewers(src), "\red [src] is powering down. It looks like \he's trying to commit suicide.") //put em at -175 adjustOxyLoss(max(maxHealth * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0)) updatehealth() @@ -134,18 +134,18 @@ set hidden = 1 if (stat == 2) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") if(confirm == "Yes") suiciding = 1 - viewers(src) << "\red [src] is powering down. It looks like \he's trying to commit suicide." + to_chat(viewers(src), "\red [src] is powering down. It looks like \he's trying to commit suicide.") //put em at -175 adjustOxyLoss(max(maxHealth * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0)) updatehealth() @@ -165,24 +165,24 @@ M.show_message("\blue [src] flashes a message across its screen, \"Wiping core files. Please acquire a new personality to continue using pAI device functions.\"", 3, "\blue [src] bleeps electronically.", 2) death(0) else - src << "Aborting suicide attempt." + to_chat(src, "Aborting suicide attempt.") /mob/living/carbon/alien/humanoid/verb/suicide() set hidden = 1 if (stat == 2) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") if(confirm == "Yes") suiciding = 1 - viewers(src) << "\red [src] is thrashing wildly! It looks like \he's trying to commit suicide." + to_chat(viewers(src), "\red [src] is thrashing wildly! It looks like \he's trying to commit suicide.") //put em at -175 adjustOxyLoss(max(175 - getFireLoss() - getBruteLoss() - getOxyLoss(), 0)) updatehealth() @@ -191,11 +191,11 @@ /mob/living/carbon/slime/verb/suicide() set hidden = 1 if (stat == 2) - src << "You're already dead!" + to_chat(src, "You're already dead!") return if (suiciding) - src << "You're already committing suicide! Be patient!" + to_chat(src, "You're already committing suicide! Be patient!") return var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") diff --git a/code/game/verbs/who.dm b/code/game/verbs/who.dm index 87e8231e272..3be9262d1ad 100644 --- a/code/game/verbs/who.dm +++ b/code/game/verbs/who.dm @@ -63,7 +63,7 @@ msg += "[line]\n" msg += "Total Players: [length(Lines)]" - src << msg + to_chat(src, msg) /client/verb/adminwho() set category = "Admin" @@ -127,4 +127,4 @@ num_mods_online++ msg = "Current Admins ([num_admins_online]):\n" + msg + "\nCurrent Mods/Mentors ([num_mods_online]):\n" + modmsg - src << msg + to_chat(src, msg) diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm index 72cee4a7b4c..dbf88292f3a 100644 --- a/code/modules/admin/DB ban/functions.dm +++ b/code/modules/admin/DB ban/functions.dm @@ -93,7 +93,7 @@ datum/admins/proc/DB_ban_record(var/bantype, var/mob/banned_mob, var/duration = if(blockselfban) if(a_ckey == ckey) - usr << "You cannot apply this ban type on yourself." + to_chat(usr, "You cannot apply this ban type on yourself.") return var/who @@ -118,13 +118,13 @@ datum/admins/proc/DB_ban_record(var/bantype, var/mob/banned_mob, var/duration = if(adm_query.NextRow()) var/adm_bans = text2num(adm_query.item[1]) if(adm_bans >= MAX_ADMIN_BANS_PER_ADMIN) - usr << "You already logged [MAX_ADMIN_BANS_PER_ADMIN] admin ban(s) or more. Do not abuse this function!" + to_chat(usr, "You already logged [MAX_ADMIN_BANS_PER_ADMIN] admin ban(s) or more. Do not abuse this function!") return var/sql = "INSERT INTO [format_table_name("ban")] (`id`,`bantime`,`serverip`,`bantype`,`reason`,`job`,`duration`,`rounds`,`expiration_time`,`ckey`,`computerid`,`ip`,`a_ckey`,`a_computerid`,`a_ip`,`who`,`adminwho`,`edits`,`unbanned`,`unbanned_datetime`,`unbanned_ckey`,`unbanned_computerid`,`unbanned_ip`) VALUES (null, Now(), '[serverip]', '[bantype_str]', '[reason]', '[job]', [(duration)?"[duration]":"0"], [(rounds)?"[rounds]":"0"], Now() + INTERVAL [(duration>0) ? duration : 0] MINUTE, '[ckey]', '[computerid]', '[ip]', '[a_ckey]', '[a_computerid]', '[a_ip]', '[who]', '[adminwho]', '', null, null, null, null, null)" var/DBQuery/query_insert = dbcon.NewQuery(sql) query_insert.Execute() - usr << "\blue Ban saved to database." + to_chat(usr, "\blue Ban saved to database.") message_admins("[key_name_admin(usr)] has added a [bantype_str] for [ckey] [(job)?"([job])":""] [(duration > 0)?"([duration] minutes)":""] with the reason: \"[reason]\" to the ban database.",1) if(announceinirc) @@ -192,17 +192,17 @@ datum/admins/proc/DB_ban_unban(var/ckey, var/bantype, var/job = "") ban_number++; if(ban_number == 0) - usr << "\red Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin." + to_chat(usr, "\red Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin.") return if(ban_number > 1) - usr << "\red Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin." + to_chat(usr, "\red Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin.") return if(istext(ban_id)) ban_id = text2num(ban_id) if(!isnum(ban_id)) - usr << "\red Database update failed due to a ban ID mismatch. Contact the database admin." + to_chat(usr, "\red Database update failed due to a ban ID mismatch. Contact the database admin.") return DB_ban_unban_by_id(ban_id) @@ -212,7 +212,7 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) if(!check_rights(R_BAN)) return if(!isnum(banid) || !istext(param)) - usr << "Cancelled" + to_chat(usr, "Cancelled") return var/DBQuery/query = dbcon.NewQuery("SELECT ckey, duration, reason FROM [format_table_name("ban")] WHERE id = [banid]") @@ -228,7 +228,7 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) duration = query.item[2] reason = query.item[3] else - usr << "Invalid ban id. Contact the database admin" + to_chat(usr, "Invalid ban id. Contact the database admin") return reason = sql_sanitize_text(reason) @@ -240,7 +240,7 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) value = input("Insert the new reason for [pckey]'s ban", "New Reason", "[reason]", null) as null|text value = sql_sanitize_text(value) if(!value) - usr << "Cancelled" + to_chat(usr, "Cancelled") return var/DBQuery/update_query = dbcon.NewQuery("UPDATE [format_table_name("ban")] SET reason = '[value]', edits = CONCAT(edits,'- [eckey] changed ban reason from \\\"[reason]\\\" to \\\"[value]\\\"
') WHERE id = [banid]") @@ -250,7 +250,7 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) if(!value) value = input("Insert the new duration (in minutes) for [pckey]'s ban", "New Duration", "[duration]", null) as null|num if(!isnum(value) || !value) - usr << "Cancelled" + to_chat(usr, "Cancelled") return var/DBQuery/update_query = dbcon.NewQuery("UPDATE [format_table_name("ban")] SET duration = [value], edits = CONCAT(edits,'- [eckey] changed ban duration from [duration] to [value]
'), expiration_time = DATE_ADD(bantime, INTERVAL [value] MINUTE) WHERE id = [banid]") @@ -261,10 +261,10 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) DB_ban_unban_by_id(banid) return else - usr << "Cancelled" + to_chat(usr, "Cancelled") return else - usr << "Cancelled" + to_chat(usr, "Cancelled") return datum/admins/proc/DB_ban_unban_by_id(var/id) @@ -287,11 +287,11 @@ datum/admins/proc/DB_ban_unban_by_id(var/id) ban_number++; if(ban_number == 0) - usr << "\red Database update failed due to a ban id not being present in the database." + to_chat(usr, "\red Database update failed due to a ban id not being present in the database.") return if(ban_number > 1) - usr << "\red Database update failed due to multiple bans having the same ID. Contact the database admin." + to_chat(usr, "\red Database update failed due to multiple bans having the same ID. Contact the database admin.") return if(!src.owner || !istype(src.owner, /client)) @@ -328,7 +328,7 @@ datum/admins/proc/DB_ban_unban_by_id(var/id) establish_db_connection() if(!dbcon.IsConnected()) - usr << "\red Failed to establish database connection" + to_chat(usr, "\red Failed to establish database connection") return var/output = "
" diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index b871ada026d..64e6ad6dec4 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -106,19 +106,19 @@ var/savefile/Banlist Banlist.cd = "/base" if ( Banlist.dir.Find("[ckey][computerid]") ) - usr << text("\red Ban already exists.") + to_chat(usr, text("\red Ban already exists.")) return 0 else Banlist.dir.Add("[ckey][computerid]") Banlist.cd = "/base/[ckey][computerid]" - Banlist["key"] << ckey - Banlist["id"] << computerid - Banlist["ip"] << address - Banlist["reason"] << reason - Banlist["bannedby"] << bannedby - Banlist["temp"] << temp + to_chat(Banlist["key"], ckey) + to_chat(Banlist["id"], computerid) + to_chat(Banlist["ip"], address) + to_chat(Banlist["reason"], reason) + to_chat(Banlist["bannedby"], bannedby) + to_chat(Banlist["temp"], temp) if (temp) - Banlist["minutes"] << bantimestamp + to_chat(Banlist["minutes"], bantimestamp) if(!temp) add_note(ckey, "Permanently banned - [reason]", null, bannedby, 0) else @@ -211,17 +211,17 @@ var/savefile/Banlist Banlist.cd = "/base" Banlist.dir.Add("trash[i]trashid[i]") Banlist.cd = "/base/trash[i]trashid[i]" - Banlist["key"] << "trash[i]" + to_chat(Banlist["key"], "trash[i]") else Banlist.cd = "/base" Banlist.dir.Add("[last]trashid[i]") Banlist.cd = "/base/[last]trashid[i]" - Banlist["key"] << last - Banlist["id"] << "trashid[i]" - Banlist["reason"] << "Trashban[i]." - Banlist["temp"] << a - Banlist["minutes"] << CMinutes + rand(1,2000) - Banlist["bannedby"] << "trashmin" + to_chat(Banlist["key"], last) + to_chat(Banlist["id"], "trashid[i]") + to_chat(Banlist["reason"], "Trashban[i].") + to_chat(Banlist["temp"], a) + to_chat(Banlist["minutes"], CMinutes + rand(1,2000)) + to_chat(Banlist["bannedby"], "trashmin") last = "trash[i]" Banlist.cd = "/base" diff --git a/code/modules/admin/ToRban.dm b/code/modules/admin/ToRban.dm index ea70d023758..77e49877259 100644 --- a/code/modules/admin/ToRban.dm +++ b/code/modules/admin/ToRban.dm @@ -35,9 +35,10 @@ var/cleaned = copytext(line,13,length(line)-19) if(!cleaned) continue F[cleaned] << 1 - F["last_update"] << world.realtime + to_chat(F["last_update"], world.realtime) diary << "ToR data updated!" - if(usr) usr << "ToRban updated." + if(usr) + to_chat(usr, "ToRban updated.") return 1 diary << "ToR data update aborted: no data." return 0 @@ -72,16 +73,16 @@ var/choice = input(src,"Please select an IP address to remove from the ToR banlist:","Remove ToR ban",null) as null|anything in F.dir if(choice) F.dir.Remove(choice) - src << "Address removed" + to_chat(src, "Address removed") if("remove all") - src << "[TORFILE] was [fdel(TORFILE)?"":"not "]removed." + to_chat(src, "[TORFILE] was [fdel(TORFILE)?"":"not "]removed.") if("find") var/input = input(src,"Please input an IP address to search for:","Find ToR ban",null) as null|text if(input) if(ToRban_isbanned(input)) - src << "Address is a known ToR address" + to_chat(src, "Address is a known ToR address") else - src << "Address is not a known ToR address" + to_chat(src, "Address is not a known ToR address") return #undef TORFILE diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 67a141f74ba..932fcef0807 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -9,7 +9,7 @@ var/global/nologevent = 0 log_adminwarn(msg) for(var/client/C in admins) if(R_SERVER & C.holder.rights) - C << msg + to_chat(C, msg) /proc/msg_admin_attack(var/text) //Toggleable Attack Messages log_attack(text) @@ -20,7 +20,7 @@ var/global/nologevent = 0 if(C.prefs.toggles & CHAT_ATTACKLOGS) if(!istype(C, /mob/living)) var/msg = rendered - C << msg + to_chat(C, msg) ///////////////////////////////////////////////////////////////////////////////////////////////Panels @@ -31,7 +31,7 @@ var/global/nologevent = 0 set desc="Edit player (respawn, ban, heal, etc)" if(!M) - usr << "You seem to be selecting a mob that doesn't exist anymore." + to_chat(usr, "You seem to be selecting a mob that doesn't exist anymore.") return if(!check_rights(R_ADMIN|R_MOD)) @@ -470,8 +470,8 @@ var/global/nologevent = 0 else dat+="I'm sorry to break your immersion. This shit's bugged. Report this bug to Agouri, polyxenitopalidou@gmail.com" - //world << "Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]" - //world << "Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]" +// to_chat(world, "Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]") +// to_chat(world, "Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]") usr << browse(dat, "window=admincaster_main;size=400x600") onclose(usr, "admincaster_main") @@ -546,7 +546,7 @@ var/global/nologevent = 0 if(!check_rights(R_SERVER,0)) message = adminscrub(message,500) message = replacetext(message, "\n", "
") // required since we're putting it in a

tag - world << "[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:

[message]

" + to_chat(world, "[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:

[message]

") log_admin("Announce: [key_name(usr)] : [message]") feedback_add_details("admin_verb","A") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -572,9 +572,9 @@ var/global/nologevent = 0 config.looc_allowed = !(config.looc_allowed) if (config.looc_allowed) - world << "The LOOC channel has been globally enabled!" + to_chat(world, "The LOOC channel has been globally enabled!") else - world << "The LOOC channel has been globally disabled!" + to_chat(world, "The LOOC channel has been globally disabled!") log_and_message_admins("toggled LOOC.") feedback_add_details("admin_verb","TLOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -588,9 +588,9 @@ var/global/nologevent = 0 config.dsay_allowed = !(config.dsay_allowed) if (config.dsay_allowed) - world << "Deadchat has been globally enabled!" + to_chat(world, "Deadchat has been globally enabled!") else - world << "Deadchat has been globally disabled!" + to_chat(world, "Deadchat has been globally disabled!") log_admin("[key_name(usr)] toggled deadchat.") message_admins("[key_name_admin(usr)] toggled deadchat.", 1) feedback_add_details("admin_verb","TDSAY") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc @@ -626,7 +626,7 @@ var/global/nologevent = 0 feedback_add_details("admin_verb","SN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return 1 else - usr << "Error: Start Now: Game has already started." + to_chat(usr, "Error: Start Now: Game has already started.") return 0 /datum/admins/proc/toggleenter() @@ -639,9 +639,9 @@ var/global/nologevent = 0 enter_allowed = !( enter_allowed ) if (!( enter_allowed )) - world << "New players may no longer enter the game." + to_chat(world, "New players may no longer enter the game.") else - world << "New players may now enter the game." + to_chat(world, "New players may now enter the game.") log_admin("[key_name(usr)] toggled new player game entering.") message_admins("[key_name_admin(usr)] toggled new player game entering.", 1) world.update_status() @@ -657,9 +657,9 @@ var/global/nologevent = 0 config.allow_ai = !( config.allow_ai ) if (!( config.allow_ai )) - world << "The AI job is no longer chooseable." + to_chat(world, "The AI job is no longer chooseable.") else - world << "The AI job is chooseable now." + to_chat(world, "The AI job is chooseable now.") message_admins("[key_name_admin(usr)] toggled AI allowed.") log_admin("[key_name(usr)] toggled AI allowed.") world.update_status() @@ -675,9 +675,9 @@ var/global/nologevent = 0 abandon_allowed = !( abandon_allowed ) if (abandon_allowed) - world << "You may now respawn." + to_chat(world, "You may now respawn.") else - world << "You may no longer respawn :(" + to_chat(world, "You may no longer respawn :(") message_admins("[key_name_admin(usr)] toggled respawn to [abandon_allowed ? "On" : "Off"].", 1) log_admin("[key_name(usr)] toggled respawn to [abandon_allowed ? "On" : "Off"].") world.update_status() @@ -711,10 +711,10 @@ var/global/nologevent = 0 return //alert("Round end delayed", null, null, null, null, null) going = !( going ) if (!( going )) - world << "The game start has been delayed." + to_chat(world, "The game start has been delayed.") log_admin("[key_name(usr)] delayed the game.") else - world << "The game will start soon." + to_chat(world, "The game will start soon.") log_admin("[key_name(usr)] removed the delay.") feedback_add_details("admin_verb","DELAY") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -802,10 +802,10 @@ var/global/nologevent = 0 return if(!istype(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(!M.mind) - usr << "This mob has no mind!" + to_chat(usr, "This mob has no mind!") return M.mind.edit_memory() @@ -821,9 +821,9 @@ var/global/nologevent = 0 guests_allowed = !( guests_allowed ) if (!( guests_allowed )) - world << "Guests may no longer enter the game." + to_chat(world, "Guests may no longer enter the game.") else - world << "Guests may now enter the game." + to_chat(world, "Guests may now enter the game.") log_admin("[key_name(usr)] toggled guests game entering [guests_allowed?"":"dis"]allowed.") message_admins("\blue [key_name_admin(usr)] toggled guests game entering [guests_allowed?"":"dis"]allowed.", 1) feedback_add_details("admin_verb","TGU") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -833,25 +833,27 @@ var/global/nologevent = 0 for(var/mob/living/silicon/S in mob_list) ai_number++ if(isAI(S)) - usr << "AI [key_name(S, usr)]'s laws:" + to_chat(usr, "AI [key_name(S, usr)]'s laws:") else if(isrobot(S)) var/mob/living/silicon/robot/R = S - usr << "CYBORG [key_name(S, usr)]'s [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"] laws:" + to_chat(usr, "CYBORG [key_name(S, usr)]'s [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"] laws:") else if (ispAI(S)) var/mob/living/silicon/pai/P = S - usr << "pAI [key_name(S, usr)]'s laws:" - usr << "[P.pai_law0]" - if(P.pai_laws) usr << "[P.pai_laws]" + to_chat(usr, "pAI [key_name(S, usr)]'s laws:") + to_chat(usr, "[P.pai_law0]") + if(P.pai_laws) + to_chat(usr, "[P.pai_laws]") continue // Skip showing normal silicon laws for pAIs - they don't have any else - usr << "SILICON [key_name(S, usr)]'s laws:" + to_chat(usr, "SILICON [key_name(S, usr)]'s laws:") if (S.laws == null) - usr << "[key_name(S, usr)]'s laws are null. Contact a coder." + to_chat(usr, "[key_name(S, usr)]'s laws are null. Contact a coder.") else S.laws.show_laws(usr) if(!ai_number) - usr << "No AI's located." //Just so you know the thing is actually working and not just ignoring you. + to_chat(usr, "No AI's located.")//Just so you know the thing is actually working and not just ignoring you. + log_admin("[key_name(usr)] checked the AI laws") message_admins("[key_name_admin(usr)] checked the AI laws") @@ -932,7 +934,7 @@ var/gamma_ship_location = 1 // 0 = station , 1 = space if(kick_only_afk && !C.is_afk()) //Ignore clients who are not afk continue if(message) - C << message + to_chat(C, message) kicked_client_names.Add("[C.ckey]") del(C) return kicked_client_names diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index 89b02c12d8c..7f709f431ba 100644 --- a/code/modules/admin/admin_investigate.dm +++ b/code/modules/admin/admin_investigate.dm @@ -23,7 +23,7 @@ if(!message) return var/F = investigate_subject2file(subject) if(!F) return - F << "[time_stamp()] \ref[src] ([x],[y],[z]) || [src] [message]
" + to_chat(F, "[time_stamp()] \ref[src] ([x],[y],[z]) || [src] [message]
") //ADMINVERBS /client/proc/investigate_show( subject in list("hrefs","notes","pda","singulo","atmos","watchlist","ntsl","gold core","cult", "experimentor", "wires") ) @@ -34,7 +34,7 @@ if("singulo") //general one-round-only stuff var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") @@ -43,51 +43,51 @@ if(href_logfile) src << browse(href_logfile,"window=investigate[subject];size=800x300") else - src << "Error: admin_investigate: No href logfile found." + to_chat(src, "Error: admin_investigate: No href logfile found.") return else - src << "Error: admin_investigate: Href Logging is not on." + to_chat(src, "Error: admin_investigate: Href Logging is not on.") return if("pda") //general one-round-only stuff var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") if("cult") var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") if("atmos") var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") if("ntsl") var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") if("experimentor") var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") if("wires") var/F = investigate_subject2file(subject) if(!F) - src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." + to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") return src << browse(F,"window=investigate[subject];size=800x300") diff --git a/code/modules/admin/admin_memo.dm b/code/modules/admin/admin_memo.dm index 355a82aa697..489be7b68dc 100644 --- a/code/modules/admin/admin_memo.dm +++ b/code/modules/admin/admin_memo.dm @@ -1,10 +1,10 @@ /client/proc/admin_memo() set name = "Memo" set category = "Server" - if(!check_rights(R_SERVER)) + if(!check_rights(R_SERVER)) return if(!dbcon.IsConnected()) - src << "Failed to establish database connection." + to_chat(src, "Failed to establish database connection.") return var/memotask = input(usr,"Choose task.","Memo") in list("Show","Write","Edit","Remove") if(!memotask) @@ -17,7 +17,7 @@ if(!task) return if(!dbcon.IsConnected()) - src << "Failed to establish database connection." + to_chat(src, "Failed to establish database connection.") return var/sql_ckey = sanitizeSQL(src.ckey) switch(task) @@ -28,7 +28,7 @@ log_game("SQL ERROR obtaining ckey from memo table. Error : \[[err]\]\n") return if(query_memocheck.NextRow()) - src << "You already have set a memo." + to_chat(src, "You already have set a memo.") return var/memotext = input(src,"Write your Memo","Memo") as message if(!memotext) @@ -53,7 +53,7 @@ var/lkey = query_memolist.item[1] memolist += "[lkey]" if(!memolist.len) - src << "No memos found in database." + to_chat(src, "No memos found in database.") return var/target_ckey = input(src, "Select whose memo to edit", "Select memo") as null|anything in memolist if(!target_ckey) @@ -100,9 +100,9 @@ output += "
Last edit by [last_editor] (Click here to see edit log)" output += "
[memotext]
" if(!output && !silent) - src << "No memos found in database." + to_chat(src, "No memos found in database.") return - src << output + to_chat(src, output) if("Remove") var/DBQuery/query_memodellist = dbcon.NewQuery("SELECT ckey FROM [format_table_name("memo")]") if(!query_memodellist.Execute()) @@ -114,7 +114,7 @@ var/ckey = query_memodellist.item[1] memolist += "[ckey]" if(!memolist.len) - src << "No memos found in database." + to_chat(src, "No memos found in database.") return var/target_ckey = input(src, "Select whose memo to delete", "Select memo") as null|anything in memolist if(!target_ckey) @@ -131,4 +131,3 @@ else log_admin("[key_name(src)] has removed [target_sql_ckey]'s memo.") message_admins("[key_name_admin(src)] has removed [target_sql_ckey]'s memo.") - \ No newline at end of file diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 500fa010700..a2d62b29c8a 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -258,7 +258,7 @@ var/list/admin_verbs_proccall = list ( remove_admin_verbs() verbs += /client/proc/show_verbs - src << "Almost all of your adminverbs have been hidden." + to_chat(src, "Almost all of your adminverbs have been hidden.") feedback_add_details("admin_verb","TAVVH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return @@ -272,7 +272,7 @@ var/list/admin_verbs_proccall = list ( verbs -= /client/proc/show_verbs add_admin_verbs() - src << "All of your adminverbs are now visible." + to_chat(src, "All of your adminverbs are now visible.") feedback_add_details("admin_verb","TAVVS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/admin_ghost() @@ -290,7 +290,7 @@ var/list/admin_verbs_proccall = list ( log_admin("[key_name(usr)] re-entered their body") feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! else if(istype(mob,/mob/new_player)) - src << "Error: Aghost: Can't admin-ghost whilst in the lobby. Join or observe first." + to_chat(src, "Error: Aghost: Can't admin-ghost whilst in the lobby. Join or observe first.") else //ghostize var/mob/body = mob @@ -311,11 +311,11 @@ var/list/admin_verbs_proccall = list ( if(mob) if(mob.invisibility == INVISIBILITY_OBSERVER) mob.invisibility = initial(mob.invisibility) - mob << "Invisimin off. Invisibility reset." + to_chat(mob, "Invisimin off. Invisibility reset.") //TODO: Make some kind of indication for the badmin that they are currently invisible else mob.invisibility = INVISIBILITY_OBSERVER - mob << "Invisimin on. You are now as invisible as a ghost." + to_chat(mob, "Invisimin on. You are now as invisible as a ghost.") /client/proc/player_panel() set name = "Player Panel" @@ -474,7 +474,7 @@ var/list/admin_verbs_proccall = list ( if(!warned_ckey || !istext(warned_ckey)) return if(warned_ckey in admin_datums) - usr << "Error: warn(): You can't warn admins." + to_chat(usr, "Error: warn(): You can't warn admins.") return var/datum/preferences/D @@ -483,7 +483,7 @@ var/list/admin_verbs_proccall = list ( else D = preferences_datums[warned_ckey] if(!D) - src << "Error: warn(): No such ckey found." + to_chat(src, "Error: warn(): No such ckey found.") return if(++D.warns >= MAX_WARNS) //uh ohhhh...you'reee iiiiin trouuuubble O:) @@ -491,7 +491,7 @@ var/list/admin_verbs_proccall = list ( if(C) message_admins("[key_name_admin(src)] has warned [key_name_admin(C)] resulting in a [AUTOBANTIME] minute ban") log_admin("[key_name(src)] has warned [key_name(C)] resulting in a [AUTOBANTIME] minute ban") - C << "You have been autobanned due to a warning by [ckey].
This is a temporary ban, it will be removed in [AUTOBANTIME] minutes." + to_chat(C, "You have been autobanned due to a warning by [ckey].
This is a temporary ban, it will be removed in [AUTOBANTIME] minutes.") del(C) else message_admins("[key_name_admin(src)] has warned [warned_ckey] resulting in a [AUTOBANTIME] minute ban") @@ -500,7 +500,7 @@ var/list/admin_verbs_proccall = list ( feedback_inc("ban_warn",1) else if(C) - C << "You have been formally warned by an administrator.
Further warnings will result in an autoban.
" + to_chat(C, "You have been formally warned by an administrator.
Further warnings will result in an autoban.
") message_admins("[key_name_admin(src)] has warned [key_name_admin(C)]. They have [MAX_WARNS-D.warns] strikes remaining.") log_admin("[key_name(src)] has warned [key_name(C)]. They have [MAX_WARNS-D.warns] strikes remaining.") else @@ -643,10 +643,10 @@ var/list/admin_verbs_proccall = list ( if(air_processing_killed) air_processing_killed = 0 - usr << "Enabled air processing." + to_chat(usr, "Enabled air processing.") else air_processing_killed = 1 - usr << "Disabled air processing." + to_chat(usr, "Disabled air processing.") feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] used 'kill air'.") message_admins("\blue [key_name_admin(usr)] used 'kill air'.", 1) @@ -663,7 +663,7 @@ var/list/admin_verbs_proccall = list ( deadmin() verbs += /client/proc/readmin deadmins += ckey - src << "You are now a normal player." + to_chat(src, "You are now a normal player.") feedback_add_details("admin_verb","DAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/readmin() @@ -686,7 +686,7 @@ var/list/admin_verbs_proccall = list ( else if(!dbcon.IsConnected()) message_admins("Warning, MySQL database is not connected.") - src << "Warning, MYSQL database is not connected." + to_chat(src, "Warning, MYSQL database is not connected.") return var/sql_ckey = sanitizeSQL(ckey) var/DBQuery/query = dbcon.NewQuery("SELECT rank FROM [format_table_name("admin")] WHERE ckey = '[sql_ckey]'") @@ -697,7 +697,7 @@ var/list/admin_verbs_proccall = list ( if(config.admin_legacy_system) if(admin_ranks[rank] == null) error("Error while re-adminning [src], admin rank ([rank]) does not exist.") - src << "Error while re-adminning, admin rank ([rank]) does not exist." + to_chat(src, "Error while re-adminning, admin rank ([rank]) does not exist.") return D = new(rank, admin_ranks[rank], ckey) @@ -710,10 +710,10 @@ var/list/admin_verbs_proccall = list ( var/admin_rank = query.item[2] var/flags = query.item[3] if(!admin_ckey) - src << "Error while re-adminning, ckey [admin_ckey] was not found in the admin database." + to_chat(src, "Error while re-adminning, ckey [admin_ckey] was not found in the admin database.") return if(admin_rank == "Removed") //This person was de-adminned. They are only in the admin list for archive purposes. - src << "Error while re-adminning, ckey [admin_ckey] is not an admin." + to_chat(src, "Error while re-adminning, ckey [admin_ckey] is not an admin.") return if(istext(flags)) @@ -728,7 +728,7 @@ var/list/admin_verbs_proccall = list ( feedback_add_details("admin_verb","RAS") return else - src << "You are already an admin." + to_chat(src, "You are already an admin.") verbs -= /client/proc/readmin deadmins -= ckey return @@ -743,10 +743,10 @@ var/list/admin_verbs_proccall = list ( if(config) if(config.log_hrefs) config.log_hrefs = 0 - src << "Stopped logging hrefs" + to_chat(src, "Stopped logging hrefs") else config.log_hrefs = 1 - src << "Started logging hrefs" + to_chat(src, "Started logging hrefs") /client/proc/check_ai_laws() set name = "Check AI Laws" @@ -820,7 +820,7 @@ var/list/admin_verbs_proccall = list ( return if(!H.client) - usr << "Only mobs with clients can alter their own appearance." + to_chat(usr, "Only mobs with clients can alter their own appearance.") return switch(alert("Do you wish for [H] to be allowed to select non-whitelisted races?","Alter Mob Appearance","Yes","No","Cancel")) @@ -844,7 +844,7 @@ var/list/admin_verbs_proccall = list ( if (J.current_positions >= J.total_positions && J.total_positions != -1) jobs += J.title if (!jobs.len) - usr << "There are no fully staffed jobs." + to_chat(usr, "There are no fully staffed jobs.") return var/job = input("Please select job slot to free", "Free Job Slot") as null|anything in jobs if (job) @@ -862,9 +862,9 @@ var/list/admin_verbs_proccall = list ( prefs.toggles ^= CHAT_ATTACKLOGS prefs.save_preferences(src) if (prefs.toggles & CHAT_ATTACKLOGS) - usr << "You now will get attack log messages" + to_chat(usr, "You now will get attack log messages") else - usr << "You now won't get attack log messages" + to_chat(usr, "You now won't get attack log messages") /client/proc/toggledrones() set name = "Toggle Maintenance Drones" @@ -887,9 +887,9 @@ var/list/admin_verbs_proccall = list ( prefs.toggles ^= CHAT_DEBUGLOGS prefs.save_preferences(src) if (prefs.toggles & CHAT_DEBUGLOGS) - usr << "You now will get debug log messages" + to_chat(usr, "You now will get debug log messages") else - usr << "You now won't get debug log messages" + to_chat(usr, "You now won't get debug log messages") /client/proc/man_up(mob/T as mob in mob_list) set category = "Admin" @@ -899,8 +899,8 @@ var/list/admin_verbs_proccall = list ( if(!check_rights(R_ADMIN)) return - T << "Man up and deal with it." - T << "Move on." + to_chat(T, "Man up and deal with it.") + to_chat(T, "Move on.") log_admin("[key_name(usr)] told [key_name(T)] to man up and deal with it.") message_admins("[key_name_admin(usr)] told [key_name(T)] to man up and deal with it.") @@ -917,7 +917,7 @@ var/list/admin_verbs_proccall = list ( if(confirm == "Yes") for (var/mob/T as mob in mob_list) - T << "
Man up.
Deal with it.

Move on.

" + to_chat(T, "
Man up.
Deal with it.

Move on.

") T << 'sound/voice/ManUp1.ogg' log_admin("[key_name(usr)] told everyone to man up and deal with it.") diff --git a/code/modules/admin/banappearance.dm b/code/modules/admin/banappearance.dm index 7ecbde4c3fb..7244e1152af 100644 --- a/code/modules/admin/banappearance.dm +++ b/code/modules/admin/banappearance.dm @@ -32,7 +32,7 @@ DEBUG set name = "list all appearances" for(var/s in appearance_keylist) - world << s + to_chat(world, s) /mob/verb/reload_appearances() set name = "reload appearances" @@ -69,7 +69,7 @@ DEBUG /proc/appearance_savebanfile() var/savefile/S=new("data/appearance_full.ban") - S["keys[0]"] << appearance_keylist + to_chat(S["keys[0]"], appearance_keylist) /proc/appearance_unban(mob/M) appearance_remove("[M.ckey]") diff --git a/code/modules/admin/banjob.dm b/code/modules/admin/banjob.dm index a28de25ee39..34365264674 100644 --- a/code/modules/admin/banjob.dm +++ b/code/modules/admin/banjob.dm @@ -40,7 +40,7 @@ DEBUG set name = "list all jobbans" for(var/s in jobban_keylist) - world << s + to_chat(world, s) /mob/verb/reload_jobbans() set name = "reload jobbans" @@ -92,7 +92,7 @@ DEBUG /proc/jobban_savebanfile() var/savefile/S=new("data/job_full.ban") - S["keys[0]"] << jobban_keylist + to_chat(S["keys[0]"], jobban_keylist) /proc/jobban_unban(mob/M, rank) jobban_remove("[M.ckey] - [rank]") diff --git a/code/modules/admin/buildmode.dm b/code/modules/admin/buildmode.dm index ebe37bc9697..cc53ef0ba62 100644 --- a/code/modules/admin/buildmode.dm +++ b/code/modules/admin/buildmode.dm @@ -149,45 +149,45 @@ /datum/click_intercept/buildmode/proc/show_help(mob/user) switch(mode) if(BASIC_BUILDMODE) - user << "***********************************************************" - user << "Left Mouse Button = Construct / Upgrade" - user << "Right Mouse Button = Deconstruct / Delete / Downgrade" - user << "Left Mouse Button + ctrl = R-Window" - user << "Left Mouse Button + alt = Airlock" - user << "" - user << "Use the button in the upper left corner to" - user << "change the direction of built objects." - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Left Mouse Button = Construct / Upgrade") + to_chat(user, "Right Mouse Button = Deconstruct / Delete / Downgrade") + to_chat(user, "Left Mouse Button + ctrl = R-Window") + to_chat(user, "Left Mouse Button + alt = Airlock") + to_chat(user, "") + to_chat(user, "Use the button in the upper left corner to") + to_chat(user, "change the direction of built objects.") + to_chat(user, "***********************************************************") if(ADV_BUILDMODE) - user << "***********************************************************" - user << "Right Mouse Button on buildmode button = Set object type" - user << "Left Mouse Button on turf/obj = Place objects" - user << "Right Mouse Button = Delete objects" - user << "" - user << "Use the button in the upper left corner to" - user << "change the direction of built objects." - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Right Mouse Button on buildmode button = Set object type") + to_chat(user, "Left Mouse Button on turf/obj = Place objects") + to_chat(user, "Right Mouse Button = Delete objects") + to_chat(user, "") + to_chat(user, "Use the button in the upper left corner to") + to_chat(user, "change the direction of built objects.") + to_chat(user, "***********************************************************") if(VAR_BUILDMODE) - user << "***********************************************************" - user << "Right Mouse Button on buildmode button = Select var(type) & value" - user << "Left Mouse Button on turf/obj/mob = Set var(type) & value" - user << "Right Mouse Button on turf/obj/mob = Reset var's value" - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Right Mouse Button on buildmode button = Select var(type) & value") + to_chat(user, "Left Mouse Button on turf/obj/mob = Set var(type) & value") + to_chat(user, "Right Mouse Button on turf/obj/mob = Reset var's value") + to_chat(user, "***********************************************************") if(THROW_BUILDMODE) - user << "***********************************************************" - user << "Left Mouse Button on turf/obj/mob = Select" - user << "Right Mouse Button on turf/obj/mob = Throw" - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Left Mouse Button on turf/obj/mob = Select") + to_chat(user, "Right Mouse Button on turf/obj/mob = Throw") + to_chat(user, "***********************************************************") if(AREA_BUILDMODE) - user << "***********************************************************" - user << "Left Mouse Button on turf/obj/mob = Select corner" - user << "Right Mouse Button on buildmode button = Select generator" - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Left Mouse Button on turf/obj/mob = Select corner") + to_chat(user, "Right Mouse Button on buildmode button = Select generator") + to_chat(user, "***********************************************************") if(COPY_BUILDMODE) - user << "***********************************************************" - user << "Left Mouse Button on obj/turf/mob = Spawn a Copy of selected target" - user << "Right Mouse Button on obj/mob = Select target to copy" - user << "***********************************************************" + to_chat(user, "***********************************************************") + to_chat(user, "Left Mouse Button on obj/turf/mob = Spawn a Copy of selected target") + to_chat(user, "Right Mouse Button on obj/mob = Select target to copy") + to_chat(user, "***********************************************************") /datum/click_intercept/buildmode/proc/change_settings(mob/user) switch(mode) @@ -351,13 +351,13 @@ log_admin("Build Mode: [key_name(user)] modified [object.name]'s [varholder] to [valueholder]") object.vars[varholder] = valueholder else - user << "[initial(object.name)] does not have a var called '[varholder]'" + to_chat(user, "[initial(object.name)] does not have a var called '[varholder]'") if(right_click) if(object.vars.Find(varholder)) log_admin("Build Mode: [key_name(user)] modified [object.name]'s [varholder] to [valueholder]") object.vars[varholder] = initial(object.vars[varholder]) else - user << "[initial(object.name)] does not have a var called '[varholder]'" + to_chat(user, "[initial(object.name)] does not have a var called '[varholder]'") if(THROW_BUILDMODE) if(left_click) @@ -377,7 +377,7 @@ if(left_click) //rectangular if(cornerA && cornerB) if(!generator_path) - user << "Select generator type first." + to_chat(user, "Select generator type first.") else var/datum/mapGenerator/G = new generator_path G.defineRegion(cornerA.loc,cornerB.loc,1) @@ -394,5 +394,5 @@ DuplicateObject(stored, perfectcopy=1, sameloc=0,newloc=T) else if(right_click) if(ismovableatom(object)) // No copying turfs for now. - user << "[object] set as template." + to_chat(user, "[object] set as template.") stored = object diff --git a/code/modules/admin/create_poll.dm b/code/modules/admin/create_poll.dm index 6e690b469ac..9baa17b73ad 100644 --- a/code/modules/admin/create_poll.dm +++ b/code/modules/admin/create_poll.dm @@ -4,7 +4,7 @@ if(!check_rights(R_PERMISSIONS)) return if(!dbcon.IsConnected()) - src << "Failed to establish database connection." + to_chat(src, "Failed to establish database connection.") return var/returned = create_poll_function() if(returned) @@ -26,7 +26,7 @@ log_admin("[key_name(usr)] has created a new server poll. Poll Type: [polltype] - Admin Only: [adminonly ? "Yes" : "No"] - Question: [question]") message_admins("[key_name_admin(usr)] has created a new server poll. Poll Type: [polltype] - Admin Only: [adminonly ? "Yes" : "No"]
Question: [question]") else - src << "Poll question created without any options, poll will be deleted." + to_chat(src, "Poll question created without any options, poll will be deleted.") var/DBQuery/query_del_poll = dbcon.NewQuery("DELETE FROM [format_table_name("poll_question")] WHERE id = [returned]") if(!query_del_poll.Execute()) var/err = query_del_poll.ErrorMsg() @@ -63,7 +63,7 @@ if(query_validate_time.NextRow()) endtime = query_validate_time.item[1] if(!endtime) - src << "Datetime entered is invalid." + to_chat(src, "Datetime entered is invalid.") return var/DBQuery/query_time_later = dbcon.NewQuery("SELECT TIMESTAMP('[endtime]') < NOW()") if(!query_time_later.Execute()) @@ -73,7 +73,7 @@ if(query_time_later.NextRow()) var/checklate = text2num(query_time_later.item[1]) if(checklate) - src << "Datetime entered is not later than current server time." + to_chat(src, "Datetime entered is not later than current server time.") return var/adminonly switch(alert("Admin only poll?",,"Yes","No","Cancel")) @@ -132,7 +132,7 @@ if(!maxval) return pollid if(minval >= maxval) - src << "Minimum rating value can't be more than maximum rating value" + to_chat(src, "Minimum rating value can't be more than maximum rating value") return pollid descmin = input("Optional: Set description for minimum rating","Minimum rating description") as message|null if(descmin) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 572dfdbcf01..3849317b03e 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -47,7 +47,7 @@ generally it would be used like so: proc/admin_proc() if(!check_rights(R_ADMIN)) return - world << "you have enough rights!" + to_chat(world, "you have enough rights!") NOTE: it checks usr! not src! So if you're checking somebody's rank in a proc which they did not call you will have to do something like if(client.holder.rights & R_ADMIN) yourself. @@ -60,13 +60,13 @@ you will have to do something like if(client.holder.rights & R_ADMIN) yourself. return 1 else if(show_msg) - user << "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")]." + to_chat(user, "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")].") else if(user.client.holder) return 1 else if(show_msg) - user << "Error: You are not an admin." + to_chat(user, "Error: You are not an admin.") return 0 //probably a bit iffy - will hopefully figure out a better solution @@ -78,7 +78,7 @@ you will have to do something like if(client.holder.rights & R_ADMIN) yourself. if(usr.client.holder.rights != other.holder.rights) if( (usr.client.holder.rights & other.holder.rights) == other.holder.rights ) return 1 //we have all the rights they have and more - usr << "Error: Cannot proceed. They have more or equal rights to us." + to_chat(usr, "Error: Cannot proceed. They have more or equal rights to us.") return 0 /client/proc/deadmin() diff --git a/code/modules/admin/machine_upgrade.dm b/code/modules/admin/machine_upgrade.dm index a0e97c4ae7b..463ef13de0c 100644 --- a/code/modules/admin/machine_upgrade.dm +++ b/code/modules/admin/machine_upgrade.dm @@ -6,7 +6,7 @@ return if(!istype(M)) - usr << "This can only be used on subtypes of /obj/machinery." + to_chat(usr, "This can only be used on subtypes of /obj/machinery.") return var/new_rating = input("Enter new rating:","Num") as num diff --git a/code/modules/admin/newbanjob.dm b/code/modules/admin/newbanjob.dm index 7a879468d85..71d61567962 100644 --- a/code/modules/admin/newbanjob.dm +++ b/code/modules/admin/newbanjob.dm @@ -141,19 +141,19 @@ var/savefile/Banlistjob Banlistjob.cd = "/base" if ( Banlistjob.dir.Find("[ckey][computerid][rank]") ) - usr << text("\red Banjob already exists.") + to_chat(usr, text("\red Banjob already exists.")) return 0 else Banlistjob.dir.Add("[ckey][computerid][rank]") Banlistjob.cd = "/base/[ckey][computerid][rank]" - Banlistjob["key"] << ckey - Banlistjob["id"] << computerid - Banlistjob["rank"] << rank - Banlistjob["reason"] << reason - Banlistjob["bannedby"] << bannedby - Banlistjob["temp"] << temp + to_chat(Banlistjob["key"], ckey) + to_chat(Banlistjob["id"], computerid) + to_chat(Banlistjob["rank"], rank) + to_chat(Banlistjob["reason"], reason) + to_chat(Banlistjob["bannedby"], bannedby) + to_chat(Banlistjob["temp"], temp) if (temp) - Banlistjob["minutes"] << bantimestamp + to_chat(Banlistjob["minutes"], bantimestamp) return 1 @@ -219,22 +219,22 @@ var/savefile/Banlistjob /*/datum/admins/proc/permjobban(ckey, computerid, reason, bannedby, temp, minutes, rank) if(AddBanjob(ckey, computerid, reason, usr.ckey, 0, 0, job)) - M << "\redYou have been banned from [job] by [usr.client.ckey].\nReason: [reason]." - M << "\red This is a permanent ban." + to_chat(M, "\redYou have been banned from [job] by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "\red This is a permanent ban.") if(config.banappeals) - M << "\red To try to resolve this matter head to [config.banappeals]" + to_chat(M, "\red To try to resolve this matter head to [config.banappeals]") else - M << "\red No ban appeals URL has been set." + to_chat(M, "\red No ban appeals URL has been set.") log_admin("[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis is a permanent ban.") message_admins("\blue[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis is a permanent ban.") /datum/admins/proc/timejobban(ckey, computerid, reason, bannedby, temp, minutes, rank) if(AddBanjob(ckey, computerid, reason, usr.ckey, 1, mins, job)) - M << "\redYou have been jobbanned from [job] by [usr.client.ckey].\nReason: [reason]." - M << "\red This is a temporary ban, it will be removed in [mins] minutes." + to_chat(M, "\redYou have been jobbanned from [job] by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "\red This is a temporary ban, it will be removed in [mins] minutes.") if(config.banappeals) - M << "\red To try to resolve this matter head to [config.banappeals]" + to_chat(M, "\red To try to resolve this matter head to [config.banappeals]") else - M << "\red No ban appeals URL has been set." + to_chat(M, "\red No ban appeals URL has been set.") log_admin("[usr.client.ckey] has jobbanned from [job] [ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") message_admins("\blue[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")*/ //////////////////////////////////// DEBUG //////////////////////////////////// @@ -253,17 +253,17 @@ var/savefile/Banlistjob Banlistjob.cd = "/base" Banlistjob.dir.Add("trash[i]trashid[i]") Banlistjob.cd = "/base/trash[i]trashid[i]" - Banlistjob["key"] << "trash[i]" + to_chat(Banlistjob["key"], "trash[i]") else Banlistjob.cd = "/base" Banlistjob.dir.Add("[last]trashid[i]") Banlistjob.cd = "/base/[last]trashid[i]" - Banlistjob["key"] << last - Banlistjob["id"] << "trashid[i]" - Banlistjob["reason"] << "Trashban[i]." - Banlistjob["temp"] << a - Banlistjob["minutes"] << CMinutes + rand(1,2000) - Banlistjob["bannedby"] << "trashmin" + to_chat(Banlistjob["key"], last) + to_chat(Banlistjob["id"], "trashid[i]") + to_chat(Banlistjob["reason"], "Trashban[i].") + to_chat(Banlistjob["temp"], a) + to_chat(Banlistjob["minutes"], CMinutes + rand(1,2000)) + to_chat(Banlistjob["bannedby"], "trashmin") last = "trash[i]" Banlistjob.cd = "/base" diff --git a/code/modules/admin/permissionverbs/permissionedit.dm b/code/modules/admin/permissionverbs/permissionedit.dm index 19ca9ef9b4f..d91f04aa4df 100644 --- a/code/modules/admin/permissionverbs/permissionedit.dm +++ b/code/modules/admin/permissionverbs/permissionedit.dm @@ -63,7 +63,7 @@ establish_db_connection() if(!dbcon.IsConnected()) - usr << "\red Failed to establish database connection" + to_chat(usr, "\red Failed to establish database connection") return if(!adm_ckey || !new_rank) @@ -91,14 +91,14 @@ insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Added new admin [adm_ckey] to rank [new_rank]');") log_query.Execute() - usr << "\blue New admin added." + to_chat(usr, "\blue New admin added.") else if(!isnull(admin_id) && isnum(admin_id)) var/DBQuery/insert_query = dbcon.NewQuery("UPDATE [format_table_name("admin")] SET rank = '[new_rank]' WHERE id = [admin_id]") insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Edited the rank of [adm_ckey] to [new_rank]');") log_query.Execute() - usr << "\blue Admin rank changed." + to_chat(usr, "\blue Admin rank changed.") /datum/admins/proc/log_admin_permission_modification(var/adm_ckey, var/new_permission) if(config.admin_legacy_system) @@ -112,7 +112,7 @@ establish_db_connection() if(!dbcon.IsConnected()) - usr << "\red Failed to establish database connection" + to_chat(usr, "\red Failed to establish database connection") return if(!adm_ckey || !new_permission) @@ -146,13 +146,13 @@ insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Removed permission [rights2text(new_permission)] (flag = [new_permission]) to admin [adm_ckey]');") log_query.Execute() - usr << "\blue Permission removed." + to_chat(usr, "\blue Permission removed.") else //This admin doesn't have this permission, so we are adding it. var/DBQuery/insert_query = dbcon.NewQuery("UPDATE [format_table_name("admin")] SET flags = '[admin_rights | new_permission]' WHERE id = [admin_id]") insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Added permission [rights2text(new_permission)] (flag = [new_permission]) to admin [adm_ckey]')") log_query.Execute() - usr << "\blue Permission added." + to_chat(usr, "\blue Permission added.") /datum/admins/proc/updateranktodb(ckey,newrank) establish_db_connection() diff --git a/code/modules/admin/sql_notes.dm b/code/modules/admin/sql_notes.dm index 7678814f0c6..df02b6f0c9c 100644 --- a/code/modules/admin/sql_notes.dm +++ b/code/modules/admin/sql_notes.dm @@ -2,7 +2,7 @@ if(checkrights && !check_rights(R_ADMIN|R_MOD)) return if(!dbcon.IsConnected()) - usr << "Failed to establish database connection." + to_chat(usr, "Failed to establish database connection.") return if(!target_ckey) var/new_ckey = ckey(input(usr,"Who would you like to add a note for?","Enter a ckey",null) as text|null) @@ -15,7 +15,7 @@ log_game("SQL ERROR obtaining ckey from player table. Error : \[[err]\]\n") return if(!query_find_ckey.NextRow()) - usr << "[new_ckey] has not been seen before, you can only add notes to known players." + to_chat(usr, "[new_ckey] has not been seen before, you can only add notes to known players.") return else target_ckey = new_ckey @@ -53,7 +53,7 @@ var/notetext var/adminckey if(!dbcon.IsConnected()) - usr << "Failed to establish database connection." + to_chat(usr, "Failed to establish database connection.") return if(!note_id) return @@ -80,7 +80,7 @@ if(!check_rights(R_ADMIN|R_MOD)) return if(!dbcon.IsConnected()) - usr << "Failed to establish database connection." + to_chat(usr, "Failed to establish database connection.") return if(!note_id) return diff --git a/code/modules/admin/stickyban.dm b/code/modules/admin/stickyban.dm index 94f7a84daa1..a772edc2608 100644 --- a/code/modules/admin/stickyban.dm +++ b/code/modules/admin/stickyban.dm @@ -21,7 +21,7 @@ return ckey = ckey(ckey) if (get_stickyban_from_ckey(ckey)) - usr << "Error: Can not add a stickyban: User already has a current sticky ban" + to_chat(usr, "Error: Can not add a stickyban: User already has a current sticky ban") if (data["reason"]) ban["message"] = data["reason"] @@ -43,12 +43,12 @@ var/ban = get_stickyban_from_ckey(ckey) if (!ban) - usr << "Error: No sticky ban for [ckey] found!" + to_chat(usr, "Error: No sticky ban for [ckey] found!") return if (alert("Are you sure you want to remove the sticky ban on [ckey]?","Are you sure","Yes","No") == "No") return if (!get_stickyban_from_ckey(ckey)) - usr << "Error: The ban disappeared." + to_chat(usr, "Error: The ban disappeared.") return world.SetConfig("ban", ckey, null) @@ -64,7 +64,7 @@ var/alt = ckey(data["alt"]) var/ban = get_stickyban_from_ckey(ckey) if (!ban) - usr << "Error: No sticky ban for [ckey] found!" + to_chat(usr, "Error: No sticky ban for [ckey] found!") return var/found = 0 @@ -75,7 +75,7 @@ break if (!found) - usr << "Error: [alt] is not linked to [ckey]'s sticky ban!" + to_chat(usr, "Error: [alt] is not linked to [ckey]'s sticky ban!") return if (alert("Are you sure you want to disassociate [alt] from [ckey]'s sticky ban? \nNote: Nothing stops byond from re-linking them","Are you sure","Yes","No") == "No") @@ -84,7 +84,7 @@ //we have to do this again incase something changes ban = get_stickyban_from_ckey(ckey) if (!ban) - usr << "Error: The ban disappeared." + to_chat(usr, "Error: The ban disappeared.") return found = 0 @@ -95,7 +95,7 @@ break if (!found) - usr << "Error: [alt] link to [ckey]'s sticky ban disappeared." + to_chat(usr, "Error: [alt] link to [ckey]'s sticky ban disappeared.") return world.SetConfig("ban",ckey,list2stickyban(ban)) @@ -109,7 +109,7 @@ var/ckey = data["ckey"] var/ban = get_stickyban_from_ckey(ckey) if (!ban) - usr << "Error: No sticky ban for [ckey] found!" + to_chat(usr, "Error: No sticky ban for [ckey] found!") return var/oldreason = ban["message"] var/reason = input(usr,"Reason","Reason","[ban["message"]]") as text|null @@ -118,7 +118,7 @@ //we have to do this again incase something changed while we waited for input ban = get_stickyban_from_ckey(ckey) if (!ban) - usr << "Error: The ban disappeared." + to_chat(usr, "Error: The ban disappeared.") return ban["message"] = "[reason]" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index b0de84846f0..60e196c7982 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -19,9 +19,9 @@ C << 'sound/effects/adminhelp.ogg' - C << "- AdminHelp Rejected! -" - C << "Your admin help was rejected." - C << "Please try to be calm, clear, and descriptive in admin helps, do not assume the admin has seen any related events, and clearly state the names of anybody you are reporting. If you asked a question, please ensure it was clear what you were asking." + to_chat(C, "- AdminHelp Rejected! -") + to_chat(C, "Your admin help was rejected.") + to_chat(C, "Please try to be calm, clear, and descriptive in admin helps, do not assume the admin has seen any related events, and clearly state the names of anybody you are reporting. If you asked a question, please ensure it was clear what you were asking.") message_admins("[key_name_admin(usr)] rejected [key_name_admin(C.mob)]'s admin help") log_admin("[key_name(usr)] rejected [key_name(C.mob)]'s admin help") @@ -34,35 +34,35 @@ if("1") log_admin("[key_name(usr)] has spawned a traitor.") if(!src.makeTraitors()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("2") log_admin("[key_name(usr)] has spawned a changeling.") if(!src.makeChanglings()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("3") log_admin("[key_name(usr)] has spawned revolutionaries.") if(!src.makeRevs()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("4") log_admin("[key_name(usr)] has spawned a cultists.") if(!src.makeCult()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("5") log_admin("[key_name(usr)] has spawned a malf AI.") if(!src.makeMalfAImode()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("6") log_admin("[key_name(usr)] has spawned a wizard.") if(!src.makeWizard()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("7") log_admin("[key_name(usr)] has spawned vampires.") if(!src.makeVampires()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") if("8") log_admin("[key_name(usr)] has spawned vox raiders.") if(!src.makeVoxRaiders()) - usr << "\red Unfortunately there weren't enough candidates available." + to_chat(usr, "\red Unfortunately there weren't enough candidates available.") else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"] || href_list["dbsearchip"] || href_list["dbsearchcid"] || href_list["dbsearchbantype"]) var/adminckey = href_list["dbsearchadmin"] @@ -102,39 +102,39 @@ switch(bantype) if(BANTYPE_PERMA) if(!banckey || !banreason) - usr << "Not enough parameters (Requires ckey and reason)" + to_chat(usr, "Not enough parameters (Requires ckey and reason)") return banduration = null banjob = null if(BANTYPE_TEMP) if(!banckey || !banreason || !banduration) - usr << "Not enough parameters (Requires ckey, reason and duration)" + to_chat(usr, "Not enough parameters (Requires ckey, reason and duration)") return banjob = null if(BANTYPE_JOB_PERMA) if(!banckey || !banreason || !banjob) - usr << "Not enough parameters (Requires ckey, reason and job)" + to_chat(usr, "Not enough parameters (Requires ckey, reason and job)") return banduration = null if(BANTYPE_JOB_TEMP) if(!banckey || !banreason || !banjob || !banduration) - usr << "Not enough parameters (Requires ckey, reason and job)" + to_chat(usr, "Not enough parameters (Requires ckey, reason and job)") return if(BANTYPE_APPEARANCE) if(!banckey || !banreason) - usr << "Not enough parameters (Requires ckey and reason)" + to_chat(usr, "Not enough parameters (Requires ckey and reason)") return banduration = null banjob = null if(BANTYPE_ADMIN_PERMA) if(!banckey || !banreason) - usr << "Not enough parameters (Requires ckey and reason)" + to_chat(usr, "Not enough parameters (Requires ckey and reason)") return banduration = null banjob = null if(BANTYPE_ADMIN_TEMP) if(!banckey || !banreason || !banduration) - usr << "Not enough parameters (Requires ckey, reason and duration)" + to_chat(usr, "Not enough parameters (Requires ckey, reason and duration)") return banjob = null @@ -172,14 +172,14 @@ var/new_ckey = ckey(input(usr,"New admin's ckey","Admin ckey", null) as text|null) if(!new_ckey) return if(new_ckey in admin_datums) - usr << "Error: Topic 'editrights': [new_ckey] is already an admin" + to_chat(usr, "Error: Topic 'editrights': [new_ckey] is already an admin") return adm_ckey = new_ckey task = "rank" else if(task != "show") adm_ckey = ckey(href_list["ckey"]) if(!adm_ckey) - usr << "Error: Topic 'editrights': No valid ckey" + to_chat(usr, "Error: Topic 'editrights': No valid ckey") return var/datum/admins/D = admin_datums[adm_ckey] @@ -212,7 +212,7 @@ if(config.admin_legacy_system) new_rank = ckeyEx(new_rank) if(!new_rank) - usr << "Error: Topic 'editrights': Invalid rank" + to_chat(usr, "Error: Topic 'editrights': Invalid rank") return if(config.admin_legacy_system) if(admin_ranks.len) @@ -306,7 +306,7 @@ var/mob/M = locate(href_list["mob"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return var/delmob = 0 @@ -400,10 +400,10 @@ ban_unban_log_save("[key_name(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]") message_admins("\blue [key_name_admin(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]", 1) Banlist.cd = "/base/[banfolder]" - Banlist["reason"] << reason - Banlist["temp"] << temp - Banlist["minutes"] << minutes - Banlist["bannedby"] << usr.ckey + to_chat(Banlist["reason"], reason) + to_chat(Banlist["temp"], temp) + to_chat(Banlist["minutes"], minutes) + to_chat(Banlist["bannedby"], usr.ckey) Banlist.cd = "/base" feedback_inc("ban_edit",1) unbanpanel() @@ -415,16 +415,16 @@ return var/mob/M = locate(href_list["appearanceban"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(!M.ckey) //sanity - usr << "This mob has no ckey" + to_chat(usr, "This mob has no ckey") return var/banreason = appearance_isbanned(M) if(banreason) /* if(!config.ban_legacy_system) - usr << "Unfortunately, database based unbanning cannot be done through this panel" + to_chat(usr, "Unfortunately, database based unbanning cannot be done through this panel") DB_ban_panel(M.ckey) return */ switch(alert("Reason: '[banreason]' Remove appearance ban?","Please Confirm","Yes","No")) @@ -435,7 +435,7 @@ DB_ban_unban(M.ckey, BANTYPE_APPEARANCE) appearance_unban(M) message_admins("\blue [key_name_admin(usr)] removed [key_name_admin(M)]'s appearance ban", 1) - M << "\red[usr.client.ckey] has removed your appearance ban." + to_chat(M, "\red[usr.client.ckey] has removed your appearance ban.") else switch(alert("Appearance ban [M.ckey]?",,"Yes","No", "Cancel")) if("Yes") @@ -449,13 +449,13 @@ appearance_fullban(M, "[reason]; By [usr.ckey] on [time2text(world.realtime)]") add_note(M.ckey, "Appearance banned - [reason]", null, usr, 0) message_admins("\blue [key_name_admin(usr)] appearance banned [key_name_admin(M)]", 1) - M << "\redYou have been appearance banned by [usr.client.ckey]." - M << "\red The reason is: [reason]" - M << "\red Appearance ban can be lifted only upon request." + to_chat(M, "\redYou have been appearance banned by [usr.client.ckey].") + to_chat(M, "\red The reason is: [reason]") + to_chat(M, "\red Appearance ban can be lifted only upon request.") if(config.banappeals) - M << "\red To try to resolve this matter head to [config.banappeals]" + to_chat(M, "\red To try to resolve this matter head to [config.banappeals]") else - M << "\red No ban appeals URL has been set." + to_chat(M, "\red No ban appeals URL has been set.") if("No") return @@ -464,14 +464,14 @@ var/mob/M = locate(href_list["jobban2"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(!M.ckey) //sanity - usr << "This mob has no ckey" + to_chat(usr, "This mob has no ckey") return if(!job_master) - usr << "Job Master has not been setup!" + to_chat(usr, "Job Master has not been setup!") return var/dat = "" @@ -795,7 +795,7 @@ var/mob/M = locate(href_list["jobban4"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(M != usr) //we can jobban ourselves @@ -804,7 +804,7 @@ return if(!job_master) - usr << "Job Master has not been setup!" + to_chat(usr, "Job Master has not been setup!") return //get jobs for department if specified, otherwise just returnt he one job in a list. @@ -873,7 +873,7 @@ switch(alert("Temporary Ban?",,"Yes","No", "Cancel")) if("Yes") if(config.ban_legacy_system) - usr << "\red Your server is using the legacy banning system, which does not support temporary job bans. Consider upgrading. Aborting ban." + to_chat(usr, "\red Your server is using the legacy banning system, which does not support temporary job bans. Consider upgrading. Aborting ban.") return var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null if(!mins) @@ -896,9 +896,9 @@ msg += ", [job]" add_note(M.ckey, "Banned from [msg] - [reason]", null, usr, 0) message_admins("\blue [key_name_admin(usr)] banned [key_name_admin(M)] from [msg] for [mins] minutes", 1) - M << "\redYou have been jobbanned by [usr.client.ckey] from: [msg]." - M << "\red The reason is: [reason]" - M << "\red This jobban will be lifted in [mins] minutes." + to_chat(M, "\redYou have been jobbanned by [usr.client.ckey] from: [msg].") + to_chat(M, "\red The reason is: [reason]") + to_chat(M, "\red This jobban will be lifted in [mins] minutes.") href_list["jobban2"] = 1 // lets it fall through and refresh return 1 if("No") @@ -916,9 +916,9 @@ else msg += ", [job]" add_note(M.ckey, "Banned from [msg] - [reason]", null, usr, 0) message_admins("\blue [key_name_admin(usr)] banned [key_name_admin(M)] from [msg]", 1) - M << "\redYou have been jobbanned by [usr.client.ckey] from: [msg]." - M << "\red The reason is: [reason]" - M << "\red Jobban can be lifted only upon request." + to_chat(M, "\redYou have been jobbanned by [usr.client.ckey] from: [msg].") + to_chat(M, "\red The reason is: [reason]") + to_chat(M, "\red Jobban can be lifted only upon request.") href_list["jobban2"] = 1 // lets it fall through and refresh return 1 if("Cancel") @@ -928,7 +928,7 @@ //all jobs in joblist are banned already OR we didn't give a reason (implying they shouldn't be banned) if(joblist.len) //at least 1 banned job exists in joblist so we have stuff to unban. if(!config.ban_legacy_system) - usr << "Unfortunately, database based unbanning cannot be done through this panel" + to_chat(usr, "Unfortunately, database based unbanning cannot be done through this panel") DB_ban_panel(M.ckey) return var/msg @@ -949,7 +949,7 @@ continue if(msg) message_admins("\blue [key_name_admin(usr)] unbanned [key_name_admin(M)] from [msg]", 1) - M << "\redYou have been un-jobbanned by [usr.client.ckey] from [msg]." + to_chat(M, "\redYou have been un-jobbanned by [usr.client.ckey] from [msg].") href_list["jobban2"] = 1 // lets it fall through and refresh return 1 return 0 //we didn't do anything! @@ -959,7 +959,7 @@ if (ismob(M)) if(!check_if_greater_rights_than(M.client)) return - M << "\red You have been kicked from the server" + to_chat(M, "\red You have been kicked from the server") log_admin("[key_name(usr)] booted [key_name(M)].") message_admins("\blue [key_name_admin(usr)] booted [key_name_admin(M)].", 1) //M.client = null @@ -1043,15 +1043,15 @@ return AddBan(M.ckey, M.computer_id, reason, usr.ckey, 1, mins) ban_unban_log_save("[usr.client.ckey] has banned [M.ckey]. - Reason: [reason] - This will be removed in [mins] minutes.") - M << "\redYou have been banned by [usr.client.ckey].\nReason: [reason]." - M << "\red This is a temporary ban, it will be removed in [mins] minutes." + to_chat(M, "\redYou have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "\red This is a temporary ban, it will be removed in [mins] minutes.") feedback_inc("ban_tmp",1) DB_ban_record(BANTYPE_TEMP, M, mins, reason) feedback_inc("ban_tmp_mins",mins) if(config.banappeals) - M << "\red To try to resolve this matter head to [config.banappeals]" + to_chat(M, "\red To try to resolve this matter head to [config.banappeals]") else - M << "\red No ban appeals URL has been set." + to_chat(M, "\red No ban appeals URL has been set.") log_admin("[key_name(usr)] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") message_admins("\blue [key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") @@ -1067,12 +1067,12 @@ AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0, M.lastKnownIP) if("No") AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0) - M << "\redYou have been banned by [usr.client.ckey].\nReason: [reason]." - M << "\red This is a permanent ban." + to_chat(M, "\redYou have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "\red This is a permanent ban.") if(config.banappeals) - M << "\red To try to resolve this matter head to [config.banappeals]" + to_chat(M, "\red To try to resolve this matter head to [config.banappeals]") else - M << "\red No ban appeals URL has been set." + to_chat(M, "\red No ban appeals URL has been set.") ban_unban_log_save("[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.") log_admin("[key_name(usr)] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") message_admins("\blue[key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") @@ -1178,7 +1178,7 @@ master_mode = href_list["c_mode2"] log_admin("[key_name(usr)] set the mode as [master_mode].") message_admins("\blue [key_name_admin(usr)] set the mode as [master_mode].", 1) - world << "\blue The mode is now: [master_mode]" + to_chat(world, "\blue The mode is now: [master_mode]") Game() // updates the main game menu world.save_mode(master_mode) .(href, list("c_mode"=1)) @@ -1201,7 +1201,7 @@ var/mob/living/carbon/human/H = locate(href_list["monkeyone"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return log_admin("[key_name(usr)] attempting to monkeyize [key_name(H)]") @@ -1214,7 +1214,7 @@ var/mob/living/carbon/human/H = locate(href_list["corgione"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return log_admin("[key_name(usr)] attempting to corgize [key_name(H)]") @@ -1226,7 +1226,7 @@ var/mob/M = locate(href_list["forcespeech"]) if(!ismob(M)) - usr << "this can only be used on instances of type /mob" + to_chat(usr, "this can only be used on instances of type /mob") var/speech = input("What will [key_name(M)] say?.", "Force speech", "")// Don't need to sanitize, since it does that in say(), we also trust our admins. if(!speech) return @@ -1243,10 +1243,10 @@ var/mob/M = locate(href_list["sendtoprison"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return var/turf/prison_cell = pick(prisonwarp) @@ -1276,7 +1276,7 @@ prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(prisoner), slot_w_uniform) prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes) - M << "\red You have been sent to the prison station!" + to_chat(M, "\red You have been sent to the prison station!") log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.") message_admins("\blue [key_name_admin(usr)] sent [key_name_admin(M)] to the prison station.", 1) @@ -1287,11 +1287,11 @@ var/mob/M = locate(href_list["sendbacktolobby"]) if(!isobserver(M)) - usr << "You can only send ghost players back to the Lobby." + to_chat(usr, "You can only send ghost players back to the Lobby.") return if(!M.client) - usr << "[M] doesn't seem to have an active client." + to_chat(usr, "[M] doesn't seem to have an active client.") return if(alert(usr, "Send [key_name(M)] back to Lobby?", "Message", "Yes", "No") != "Yes") @@ -1312,10 +1312,10 @@ var/mob/M = locate(href_list["tdome1"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return for(var/obj/item/I in M) @@ -1329,7 +1329,7 @@ sleep(5) M.loc = pick(tdome1) spawn(50) - M << "\blue You have been sent to the Thunderdome." + to_chat(M, "\blue You have been sent to the Thunderdome.") log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 1)") message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 1)", 1) @@ -1341,10 +1341,10 @@ var/mob/M = locate(href_list["tdome2"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return for(var/obj/item/I in M) @@ -1358,7 +1358,7 @@ sleep(5) M.loc = pick(tdome2) spawn(50) - M << "\blue You have been sent to the Thunderdome." + to_chat(M, "\blue You have been sent to the Thunderdome.") log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 2)") message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 2)", 1) @@ -1370,17 +1370,17 @@ var/mob/M = locate(href_list["tdomeadmin"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return M.Paralyse(5) sleep(5) M.loc = pick(tdomeadmin) spawn(50) - M << "\blue You have been sent to the Thunderdome." + to_chat(M, "\blue You have been sent to the Thunderdome.") log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Admin.)") message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Admin.)", 1) @@ -1392,10 +1392,10 @@ var/mob/M = locate(href_list["tdomeobserve"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return for(var/obj/item/I in M) @@ -1413,7 +1413,7 @@ sleep(5) M.loc = pick(tdomeobserve) spawn(50) - M << "\blue You have been sent to the Thunderdome." + to_chat(M, "\blue You have been sent to the Thunderdome.") log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)") message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Observer.)", 1) @@ -1425,17 +1425,17 @@ var/mob/M = locate(href_list["aroomwarp"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return if(istype(M, /mob/living/silicon/ai)) - usr << "This cannot be used on instances of type /mob/living/silicon/ai" + to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai") return M.Paralyse(5) sleep(5) M.loc = pick(aroomwarp) spawn(50) - M << "\blue You have been sent to the Admin Room!." + to_chat(M, "\blue You have been sent to the Admin Room!.") log_admin("[key_name(usr)] has sent [key_name(M)] to the Admin Room") message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the Admin Room", 1) @@ -1445,7 +1445,7 @@ var/mob/living/L = locate(href_list["revive"]) if(!istype(L)) - usr << "This can only be used on instances of type /mob/living" + to_chat(usr, "This can only be used on instances of type /mob/living") return L.revive() @@ -1457,7 +1457,7 @@ var/mob/living/carbon/human/H = locate(href_list["makeai"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return message_admins("\red Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!", 1) @@ -1478,7 +1478,7 @@ var/mob/living/carbon/human/H = locate(href_list["makealien"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return usr.client.cmd_admin_alienize(H) @@ -1488,7 +1488,7 @@ var/mob/living/carbon/human/H = locate(href_list["makeslime"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return usr.client.cmd_admin_slimeize(H) @@ -1498,7 +1498,7 @@ var/mob/living/carbon/human/H = locate(href_list["makesuper"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return usr.client.cmd_admin_super(H) @@ -1508,7 +1508,7 @@ var/mob/living/carbon/human/H = locate(href_list["makerobot"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return usr.client.cmd_admin_robotize(H) @@ -1518,7 +1518,7 @@ var/mob/M = locate(href_list["makeanimal"]) if(istype(M, /mob/new_player)) - usr << "This cannot be used on instances of type /mob/new_player" + to_chat(usr, "This cannot be used on instances of type /mob/new_player") return usr.client.cmd_admin_animalize(M) @@ -1528,7 +1528,7 @@ var/mob/dead/observer/G = locate(href_list["incarn_ghost"]) if(!istype(G)) - usr << "This will only work on /mob/dead/observer" + to_chat(usr, "This will only work on /mob/dead/observer") log_admin("[key_name(G)] was incarnated by [key_name(src.owner)]") message_admins("[key_name_admin(G)] was incarnated by [key_name_admin(src.owner)]") G.incarnate_ghost() @@ -1538,7 +1538,7 @@ var/mob/living/carbon/human/H = locate(href_list["togmutate"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return var/block=text2num(href_list["block"]) //testing("togmutate([href_list["block"]] -> [block])") @@ -1594,7 +1594,7 @@ else if(href_list["adminmoreinfo"]) var/mob/M = locate(href_list["adminmoreinfo"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob" + to_chat(usr, "This can only be used on instances of type /mob") return var/location_description = "" @@ -1634,19 +1634,19 @@ if(MALE,FEMALE) gender_description = "[M.gender]" else gender_description = "[M.gender]" - src.owner << "Info about [M.name]: " - src.owner << "Mob type = [M.type]; Gender = [gender_description] Damage = [health_description]" - src.owner << "Name = [M.name]; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = [M.key];" - src.owner << "Location = [location_description];" - src.owner << "[special_role_description]" - src.owner << "(PM) (PP) (VV) (SM) (FLW) (CA)" + to_chat(src.owner, "Info about [M.name]: ") + to_chat(src.owner, "Mob type = [M.type]; Gender = [gender_description] Damage = [health_description]") + to_chat(src.owner, "Name = [M.name]; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = [M.key];") + to_chat(src.owner, "Location = [location_description];") + to_chat(src.owner, "[special_role_description]") + to_chat(src.owner, "(PM) (PP) (VV) (SM) (FLW) (CA)") else if(href_list["adminspawncookie"]) if(!check_rights(R_ADMIN|R_EVENT)) return var/mob/living/carbon/human/H = locate(href_list["adminspawncookie"]) if(!ishuman(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookie(H), slot_l_hand ) @@ -1663,28 +1663,28 @@ log_admin("[key_name(H)] got their cookie, spawned by [key_name(src.owner)]") message_admins("[key_name_admin(H)] got their cookie, spawned by [key_name_admin(src.owner)]") feedback_inc("admin_cookies_spawned",1) - H << "\blue Your prayers have been answered!! You received the best cookie!" + to_chat(H, "\blue Your prayers have been answered!! You received the best cookie!") else if(href_list["BlueSpaceArtillery"]) if(!check_rights(R_ADMIN|R_EVENT)) return var/mob/living/M = locate(href_list["BlueSpaceArtillery"]) if(!isliving(M)) - usr << "This can only be used on instances of type /mob/living" + to_chat(usr, "This can only be used on instances of type /mob/living") return if(alert(src.owner, "Are you sure you wish to hit [key_name(M)] with Bluespace Artillery?", "Confirm Firing?" , "Yes" , "No") != "Yes") return if(BSACooldown) - src.owner << "Standby. Reload cycle in progress. Gunnery crews ready in five seconds!" + to_chat(src.owner, "Standby. Reload cycle in progress. Gunnery crews ready in five seconds!") return BSACooldown = 1 spawn(50) BSACooldown = 0 - M << "You've been hit by bluespace artillery!" + to_chat(M, "You've been hit by bluespace artillery!") log_admin("[key_name(M)] has been hit by Bluespace Artillery fired by [key_name(src.owner)]") message_admins("[key_name_admin(M)] has been hit by Bluespace Artillery fired by [key_name_admin(src.owner)]") @@ -1714,19 +1714,19 @@ var/mob/living/carbon/human/H = locate(href_list["CentcommReply"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset)) - usr << "The person you are trying to contact is not wearing a headset" + to_chat(usr, "The person you are trying to contact is not wearing a headset") return var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from Centcomm", "") if(!input) return - src.owner << "You sent [input] to [H] via a secure channel." + to_chat(src.owner, "You sent [input] to [H] via a secure channel.") log_admin("[key_name(src.owner)] replied to [key_name(H)]'s Centcomm message with the message [input].") message_admins("[key_name_admin(src.owner)] replied to [key_name_admin(H)]'s Centcom message with: \"[input]\"") - H << "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from Central Command. Message as follows. [input]. Message ends.\"" + to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from Central Command. Message as follows. [input]. Message ends.\"") else if(href_list["SyndicateReply"]) if(!check_rights(R_ADMIN)) @@ -1734,37 +1734,37 @@ var/mob/living/carbon/human/H = locate(href_list["SyndicateReply"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return if(H.stat != 0) - usr << "The person you are trying to contact is not conscious." + to_chat(usr, "The person you are trying to contact is not conscious.") return if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset)) - usr << "The person you are trying to contact is not wearing a headset" + to_chat(usr, "The person you are trying to contact is not wearing a headset") return var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from The Syndicate", "") if(!input) return - src.owner << "You sent [input] to [H] via a secure channel." + to_chat(src.owner, "You sent [input] to [H] via a secure channel.") log_admin("[src.owner] replied to [key_name(H)]'s Syndicate message with the message [input].") - H << "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your benefactor. Message as follows, agent. [input]. Message ends.\"" + to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your benefactor. Message as follows, agent. [input]. Message ends.\"") else if(href_list["HONKReply"]) var/mob/living/carbon/human/H = locate(href_list["HONKReply"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset)) - usr << "The person you are trying to contact is not wearing a headset" + to_chat(usr, "The person you are trying to contact is not wearing a headset") return var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from HONKplanet", "") if(!input) return - src.owner << "You sent [input] to [H] via a secure channel." + to_chat(src.owner, "You sent [input] to [H] via a secure channel.") log_admin("[src.owner] replied to [key_name(H)]'s HONKplanet message with the message [input].") - H << "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your HONKbrothers. Message as follows, HONK. [input]. Message ends, HONK.\"" + to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your HONKbrothers. Message as follows, HONK. [input]. Message ends, HONK.\"") else if(href_list["ErtReply"]) if(!check_rights(R_ADMIN)) @@ -1773,21 +1773,21 @@ if(alert(src.owner, "Accept or Deny ERT request?", "CentComm Response", "Accept", "Deny") == "Deny") var/mob/living/carbon/human/H = locate(href_list["ErtReply"]) if(!istype(H)) - usr << "This can only be used on instances of type /mob/living/carbon/human" + to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return if(H.stat != 0) - usr << "The person you are trying to contact is not conscious." + to_chat(usr, "The person you are trying to contact is not conscious.") return if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset)) - usr << "The person you are trying to contact is not wearing a headset" + to_chat(usr, "The person you are trying to contact is not wearing a headset") return var/input = input(src.owner, "Please enter a reason for denying [key_name(H)]'s ERT request.","Outgoing message from CentComm", "") if(!input) return - src.owner << "You sent [input] to [H] via a secure channel." + to_chat(src.owner, "You sent [input] to [H] via a secure channel.") log_admin("[src.owner] denied [key_name(H)]'s ERT request with the message [input].") - H << "You hear something crackle in your headset for a moment before a voice speaks. \"Your ERT request has been denied for the following reasons: [input]. Message ends.\"" + to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Your ERT request has been denied for the following reasons: [input]. Message ends.\"") else src.owner.response_team() @@ -1815,7 +1815,7 @@ usr << browse(data, "window=[B.name]") else - usr << "\red The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]" + to_chat(usr, "\red The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]") else if (href_list["AdminFaxViewPage"]) if(!check_rights(R_ADMIN)) @@ -1947,14 +1947,14 @@ if(destination != "All Departments") if(!fax.receivefax(P)) - src.owner << "\red Message transmission failed." + to_chat(src.owner, "\red Message transmission failed.") return else for(var/obj/machinery/photocopier/faxmachine/F in allfaxes) if((F.z in config.station_levels)) spawn(0) if(!F.receivefax(P)) - src.owner << "\red Message transmission to [F.department] failed." + to_chat(src.owner, "\red Message transmission to [F.department] failed.") var/datum/fax/admin/A = new /datum/fax/admin() A.name = P.name @@ -1969,11 +1969,11 @@ A.sent_by = usr A.sent_at = world.time - src.owner << "\blue Message transmitted successfully." + to_chat(src.owner, "\blue Message transmitted successfully.") if(notify == "Yes") var/mob/living/carbon/human/H = sender if(istype(H) && H.stat == CONSCIOUS && (istype(H.l_ear, /obj/item/device/radio/headset) || istype(H.r_ear, /obj/item/device/radio/headset))) - sender << "Your headset pings, notifying you that a reply to your fax has arrived." + to_chat(sender, "Your headset pings, notifying you that a reply to your fax has arrived.") if(sender) log_admin("[key_name(src.owner)] replied to a fax message from [key_name(sender)]: [input]") message_admins("[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(sender)] (VIEW).", 1) @@ -2028,7 +2028,7 @@ var/mob/M = locate(href_list["traitor"]) if(!ismob(M)) - usr << "This can only be used on instances of type /mob." + to_chat(usr, "This can only be used on instances of type /mob.") return show_traitor_panel(M) @@ -2097,7 +2097,7 @@ switch(where) if("inhand") if (!iscarbon(usr) && !isrobot(usr)) - usr << "Can only spawn in hand when you're a carbon mob or cyborg." + to_chat(usr, "Can only spawn in hand when you're a carbon mob or cyborg.") where = "onfloor" target = usr @@ -2109,10 +2109,10 @@ target = locate(loc.x + X,loc.y + Y,loc.z + Z) if("inmarked") if(!marked_datum) - usr << "You don't have any object marked. Abandoning spawn." + to_chat(usr, "You don't have any object marked. Abandoning spawn.") return else if(!istype(marked_datum,/atom)) - usr << "The object you have marked cannot be used as a target. Target must be of type /atom. Abandoning spawn." + to_chat(usr, "The object you have marked cannot be used as a target. Target must be of type /atom. Abandoning spawn.") return else target = marked_datum @@ -2176,7 +2176,7 @@ message_admins("[key_name_admin(usr)] has kicked [afkonly ? "all AFK" : "all"] clients from the lobby. [length(listkicked)] clients kicked: [strkicked ? strkicked : "--"]") log_admin("[key_name(usr)] has kicked [afkonly ? "all AFK" : "all"] clients from the lobby. [length(listkicked)] clients kicked: [strkicked ? strkicked : "--"]") else - usr << "You may only use this when the game is running." + to_chat(usr, "You may only use this when the game is running.") else if(href_list["memoeditlist"]) if(!check_rights(R_SERVER)) return @@ -2254,7 +2254,7 @@ feedback_add_details("admin_secrets_fun_used","TriAI") if("gravity") if(!(ticker && ticker.mode)) - usr << "Please wait until the game starts! Not sure how it will work otherwise." + to_chat(usr, "Please wait until the game starts! Not sure how it will work otherwise.") return gravity_is_on = !gravity_is_on for(var/area/A in world) @@ -2416,11 +2416,11 @@ M.show_message(text("\blue The chilling wind suddenly stops..."), 1) /* if("shockwave") ok = 1 - world << "\red ALERT: STATION STRESS CRITICAL" + to_chat(world, "\red ALERT: STATION STRESS CRITICAL") sleep(60) - world << "\red ALERT: STATION STRESS CRITICAL. TOLERABLE LEVELS EXCEEDED!" + to_chat(world, "\red ALERT: STATION STRESS CRITICAL. TOLERABLE LEVELS EXCEEDED!") sleep(80) - world << "\red ALERT: STATION STRUCTURAL STRESS CRITICAL. SAFETY MECHANISMS FAILED!" + to_chat(world, "\red ALERT: STATION STRUCTURAL STRESS CRITICAL. SAFETY MECHANISMS FAILED!") sleep(40) for(var/mob/M in world) shake_camera(M, 400, 1) @@ -2474,7 +2474,7 @@ message_admins("[key_name_admin(usr)] fixed all lights", 1) if("floorlava") if(floorIsLava) - usr << "The floor is lava already." + to_chat(usr, "The floor is lava already.") return feedback_inc("admin_secrets_fun_used",1) feedback_add_details("admin_secrets_fun_used","LF") @@ -2531,7 +2531,7 @@ feedback_inc("admin_secrets_fun_used",1) feedback_add_details("admin_secrets_fun_used","RET") for(var/mob/living/carbon/human/H in player_list) - H << "\red You suddenly feel stupid." + to_chat(H, "\red You suddenly feel stupid.") H.setBrainLoss(60) message_admins("[key_name_admin(usr)] made everybody retarded") if("fakeguns") @@ -2552,7 +2552,7 @@ W.item_state = "w_suit" W.item_color = "schoolgirl" message_admins("[key_name_admin(usr)] activated Japanese Animes mode") - world << sound('sound/AI/animes.ogg') + to_chat(world, sound('sound/AI/animes.ogg')) if("eagles")//SCRAW feedback_inc("admin_secrets_fun_used",1) feedback_add_details("admin_secrets_fun_used","EgL") @@ -2658,7 +2658,7 @@ if(usr) log_admin("[key_name(usr)] used secret [href_list["secretsfun"]]") if (ok) - world << text("A secret has been activated by []!", usr.key) + to_chat(world, text("A secret has been activated by []!", usr.key)) else if(href_list["secretsadmin"]) if(!check_rights(R_ADMIN)) return @@ -2735,7 +2735,7 @@ if (usr) log_admin("[key_name(usr)] used secret [href_list["secretsadmin"]]") if (ok) - world << text("A secret has been activated by []!", usr.key) + to_chat(world, text("A secret has been activated by []!", usr.key)) else if(href_list["secretscoder"]) if(!check_rights(R_DEBUG)) return diff --git a/code/modules/admin/verbs/BrokenInhands.dm b/code/modules/admin/verbs/BrokenInhands.dm index 1d414c7ebf9..e0fb1a46913 100644 --- a/code/modules/admin/verbs/BrokenInhands.dm +++ b/code/modules/admin/verbs/BrokenInhands.dm @@ -31,6 +31,6 @@ if(text) var/F = file("broken_hand_icons.txt") fdel(F) - F << text - world << "Completed and written to [F]" + to_chat(F, text) + to_chat(world, "Completed and written to [F]") diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm index e58e59209f6..0b0b8991aa1 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm @@ -25,7 +25,7 @@ if(!query_text || length(query_text) < 1) return - //world << query_text +// to_chat(world, query_text) var/list/query_list = SDQL2_tokenize(query_text) @@ -147,8 +147,8 @@ for(var/v in vals) d.vars[v] = vals[v] catch(var/exception/e) - usr << "A runtime error has occured during the execution of your query and your query has been aborted." - usr << "[e]" + to_chat(usr, "A runtime error has occured during the execution of your query and your query has been aborted.") + to_chat(usr, "[e]") /proc/SDQL_parse(list/query_list) var/datum/SDQL_parser/parser = new() @@ -174,7 +174,7 @@ querys[querys_pos] = parsed_tree querys_pos++ else //There was an error so don't run anything, and tell the user which query has errored. - usr << "Parsing error on [querys_pos]\th query. Nothing was executed." + to_chat(usr, "Parsing error on [querys_pos]\th query. Nothing was executed.") return list() query_tree = list() do_parse = 0 @@ -195,22 +195,22 @@ for(var/item in query_tree) if(istype(item, /list)) - usr << "[spaces](" + to_chat(usr, "[spaces](") SDQL_testout(item, indent + 1) - usr << "[spaces])" + to_chat(usr, "[spaces])") else - usr << "[spaces][item]" + to_chat(usr, "[spaces][item]") if(!isnum(item) && query_tree[item]) if(istype(query_tree[item], /list)) - usr << "[spaces] (" + to_chat(usr, "[spaces] (") SDQL_testout(query_tree[item], indent + 2) - usr << "[spaces] )" + to_chat(usr, "[spaces] )") else - usr << "[spaces] [query_tree[item]]" + to_chat(usr, "[spaces] [query_tree[item]]") /proc/SDQL_from_objs(list/tree) if("world" in tree) @@ -320,7 +320,7 @@ if("or", "||") result = (result || val) else - usr << "SDQL2: Unknown op [op]" + to_chat(usr, "SDQL2: Unknown op [op]") result = null else result = val @@ -388,11 +388,11 @@ return null else if(expression[start] == "\[" && start < expression.len) if(lowertext(copytext(expression[start + 1], 1, 3)) != "0x") - usr << "Invalid ref syntax: [expression[start + 1]]" + to_chat(usr, "Invalid ref syntax: [expression[start + 1]]") return null v = locate("\[[expression[start + 1]]\]") if(!v) - usr << "Invalid ref: [expression[start + 1]]" + to_chat(usr, "Invalid ref: [expression[start + 1]]") return null start++ else @@ -448,7 +448,7 @@ else if(char == "'") if(word != "") - usr << "SDQL2: You have an error in your SDQL syntax, unexpected ' in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again." + to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected ' in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") return null word = "'" @@ -468,7 +468,7 @@ word += char if(i > len) - usr << "SDQL2: You have an error in your SDQL syntax, unmatched ' in query: \"[query_text]\". Please check your syntax, and try again." + to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched ' in query: \"[query_text]\". Please check your syntax, and try again.") return null query_list += "[word]'" @@ -476,7 +476,7 @@ else if(char == "\"") if(word != "") - usr << "SDQL2: You have an error in your SDQL syntax, unexpected \" in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again." + to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected \" in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") return null word = "\"" @@ -496,7 +496,7 @@ word += char if(i > len) - usr << "SDQL2: You have an error in your SDQL syntax, unmatched \" in query: \"[query_text]\". Please check your syntax, and try again." + to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched \" in query: \"[query_text]\". Please check your syntax, and try again.") return null query_list += "[word]\"" diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm index f2ec46111ba..b1b2c28e276 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm @@ -60,7 +60,7 @@ /datum/SDQL_parser/proc/parse_error(error_message) error = 1 - usr << "SQDL2 Parsing Error: [error_message]" + to_chat(usr, "SQDL2 Parsing Error: [error_message]") return query.len + 1 /datum/SDQL_parser/proc/parse() diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index 494961eb767..fce0201c765 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -9,7 +9,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," //handle muting and automuting if(prefs.muted & MUTE_ADMINHELP) - src << "Error: Admin-PM: You cannot send adminhelps (Muted)." + to_chat(src, "Error: Admin-PM: You cannot send adminhelps (Muted).") return adminhelped = 1 //Determines if they get the message to reply by clicking the name. @@ -113,16 +113,16 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," for(var/client/X in mentorholders + modholders + adminholders) if(X.prefs.sound & SOUND_ADMINHELP) X << 'sound/effects/adminhelp.ogg' - X << msg + to_chat(X, msg) if("Adminhelp") msg = "[selected_type]: [key_name(src, 1, 1, selected_type)] (?) (PP) (VV) (SM) ([admin_jump_link(mob, "holder")]) (CA) (REJT) [ai_found ? " (CL)" : ""]: [msg]" for(var/client/X in modholders + adminholders) if(X.prefs.sound & SOUND_ADMINHELP) X << 'sound/effects/adminhelp.ogg' - X << msg + to_chat(X, msg) //show it to the person adminhelping too - src << "[selected_type]: [original_msg]" + to_chat(src, "[selected_type]: [original_msg]") var/admin_number_present = adminholders.len - admin_number_afk log_admin("[selected_type]: [key_name(src)]: [original_msg] - heard by [admin_number_present] non-AFK admins.") diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 14613d4567f..2194fb20bf3 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -19,7 +19,7 @@ var/turf/T = pick_n_take(turfs) if(!T) - src << "Nowhere to jump to!" + to_chat(src, "Nowhere to jump to!") return admin_forcemove(usr, T) @@ -56,7 +56,7 @@ feedback_add_details("admin_verb","JM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! admin_forcemove(A, M.loc) else - A << "This mob is not located in the game world." + to_chat(A, "This mob is not located in the game world.") /client/proc/jumptocoord(tx as num, ty as num, tz as num) set category = "Admin" @@ -85,7 +85,7 @@ keys += M.client var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys) if(!selection) - src << "No keys found." + to_chat(src, "No keys found.") return var/mob/M = selection:mob log_admin("[key_name(usr)] jumped to [key_name(M)]") diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 18fc3ef07c7..e533a4716b6 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -3,7 +3,7 @@ set category = null set name = "Admin PM Mob" if(!holder) - src << "Error: Admin-PM-Context: Only administrators may use this command." + to_chat(src, "Error: Admin-PM-Context: Only administrators may use this command.") return if( !ismob(M) || !M.client ) return cmd_admin_pm(M.client,null) @@ -14,7 +14,7 @@ set category = "Admin" set name = "Admin PM Name" if(!holder) - src << "Error: Admin-PM-Panel: Only administrators may use this command." + to_chat(src, "Error: Admin-PM-Panel: Only administrators may use this command.") return var/list/client/targets[0] for(var/client/T) @@ -37,7 +37,7 @@ set category = "Admin" set name = "Admin PM Key" if(!holder) - src << "Error: Admin-PM-Panel: Only administrators may use this command." + to_chat(src, "Error: Admin-PM-Panel: Only administrators may use this command.") return var/list/client/targets[0] for(var/client/T) @@ -60,7 +60,7 @@ //Fetching a message if needed. src is the sender and C is the target client /client/proc/cmd_admin_pm(whom, msg, type = "PM") if(prefs.muted & MUTE_ADMINHELP) - src << "Error: Private-Message: You are unable to use PM-s (muted)." + to_chat(src, "Error: Private-Message: You are unable to use PM-s (muted).") return var/client/C @@ -73,7 +73,7 @@ if(!C) if(holder) - src << "Error: Private-Message: Client not found." + to_chat(src, "Error: Private-Message: Client not found.") else adminhelp(msg) //admin we are replying to left. adminhelp instead return @@ -81,7 +81,7 @@ /*if(C && C.last_pm_recieved + config.simultaneous_pm_warning_timeout > world.time && holder) //send a warning to admins, but have a delay popup for mods if(holder.rights & R_ADMIN) - src << "\red Simultaneous PMs warning: that player has been PM'd in the last [config.simultaneous_pm_warning_timeout / 10] seconds by: [C.ckey_last_pm]" + to_chat(src, "\red Simultaneous PMs warning: that player has been PM'd in the last [config.simultaneous_pm_warning_timeout / 10] seconds by: [C.ckey_last_pm]") else if(alert("That player has been PM'd in the last [config.simultaneous_pm_warning_timeout / 10] seconds by: [C.ckey_last_pm]","Simultaneous PMs warning","Continue","Cancel") == "Cancel") return*/ @@ -94,7 +94,7 @@ return if(!C) if(holder) - src << "Error: Admin-PM: Client not found." + to_chat(src, "Error: Admin-PM: Client not found.") else adminhelp(msg) //admin we are replying to has vanished, adminhelp instead return @@ -125,7 +125,7 @@ recieve_pm_type = holder.rank else if(!C.holder) - src << "Error: Admin-PM: Non-admin to non-admin PM communication is forbidden." + to_chat(src, "Error: Admin-PM: Non-admin to non-admin PM communication is forbidden.") return var/recieve_message = "" @@ -133,7 +133,7 @@ if(holder && !C.holder) recieve_message = "-- Click the [recieve_pm_type]'s name to reply --\n" if(C.adminhelped) - C << recieve_message + to_chat(C, recieve_message) C.adminhelped = 0 //AdminPM popup for ApocStation and anybody else who wants to use it. Set it with POPUP_ADMIN_PM in config.txt ~Carn @@ -150,8 +150,8 @@ return recieve_message = "[type] from-[recieve_pm_type][key_name(src, C, C.holder ? 1 : 0, type)]: [msg]" - C << recieve_message - src << "[send_pm_type][type] to-[key_name(C, src, holder ? 1 : 0, type)]: [msg]" + to_chat(C, recieve_message) + to_chat(src, "[send_pm_type][type] to-[key_name(C, src, holder ? 1 : 0, type)]: [msg]") /*if(holder && !C.holder) C.last_pm_recieved = world.time @@ -172,17 +172,17 @@ switch(type) if("Mentorhelp") if(check_rights(R_ADMIN|R_MOD|R_MENTOR, 0, X.mob)) - X << "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]" + to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]") if("Adminhelp") if(check_rights(R_ADMIN|R_MOD, 0, X.mob)) - X << "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]" + to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]") else if(check_rights(R_ADMIN|R_MOD, 0, X.mob)) - X << "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]" + to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]") /client/proc/cmd_admin_irc_pm() if(prefs.muted & MUTE_ADMINHELP) - src << "Error: Private-Message: You are unable to use PM-s (muted)." + to_chat(src, "Error: Private-Message: You are unable to use PM-s (muted).") return var/msg = input(src,"Message:", "Private message to admins on IRC / 400 character limit") as text|null @@ -193,17 +193,17 @@ sanitize(msg) if(length(msg) > 400) // TODO: if message length is over 400, divide it up into seperate messages, the message length restriction is based on IRC limitations. Probably easier to do this on the bots ends. - src << "\red Your message was not sent because it was more then 400 characters find your message below for ease of copy/pasting" - src << "\blue [msg]" + to_chat(src, "\red Your message was not sent because it was more then 400 characters find your message below for ease of copy/pasting") + to_chat(src, "\blue [msg]") return send2adminirc("PlayerPM from [key_name(src)]: [html_decode(msg)]") - src << "IRC PM to-IRC-Admins: [msg]" + to_chat(src, "IRC PM to-IRC-Admins: [msg]") log_admin("PM: [key_name(src)]->IRC: [msg]") for(var/client/X in admins) if(X == src) continue if(check_rights(R_ADMIN|R_MOD|R_MENTOR, 0, X.mob)) - X << "PM: [key_name(src, X, 0)]->IRC-Admins: \blue [msg]" + to_chat(X, "PM: [key_name(src, X, 0)]->IRC-Admins: \blue [msg]") diff --git a/code/modules/admin/verbs/adminsay.dm b/code/modules/admin/verbs/adminsay.dm index 63ae34e248d..3f116b0a0d5 100644 --- a/code/modules/admin/verbs/adminsay.dm +++ b/code/modules/admin/verbs/adminsay.dm @@ -12,7 +12,7 @@ if(check_rights(R_ADMIN,0)) for(var/client/C in admins) if(R_ADMIN & C.holder.rights) - C << "ADMIN: [key_name(usr, 1)] ([admin_jump_link(mob, "holder")]): [msg]" + to_chat(C, "ADMIN: [key_name(usr, 1)] ([admin_jump_link(mob, "holder")]): [msg]") feedback_add_details("admin_verb","M") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -35,6 +35,6 @@ spanclass = "mod_channel_admin" for(var/client/C in admins) if(check_rights(R_ADMIN|R_MOD, 0, C.mob)) - C << "MOD: [key_name(usr, 1)] ([admin_jump_link(mob, C.holder)]): [msg]" + to_chat(C, "MOD: [key_name(usr, 1)] ([admin_jump_link(mob, C.holder)]): [msg]") feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! \ No newline at end of file diff --git a/code/modules/admin/verbs/antag-ooc.dm b/code/modules/admin/verbs/antag-ooc.dm index 400c60b2dea..cc33f7948f4 100644 --- a/code/modules/admin/verbs/antag-ooc.dm +++ b/code/modules/admin/verbs/antag-ooc.dm @@ -14,7 +14,7 @@ for(var/mob/M in mob_list) if((M.mind && M.mind.special_role && M.client) || (M.client && M.client.holder && (M.client.holder.rights & R_ADMIN)) ) - M << "AOOC: [display_name]: [msg]" + to_chat(M, "AOOC: [display_name]: [msg]") log_ooc("(ANTAG) [key] : [msg]") diff --git a/code/modules/admin/verbs/atmosdebug.dm b/code/modules/admin/verbs/atmosdebug.dm index f4e163394cb..e1225275e17 100644 --- a/code/modules/admin/verbs/atmosdebug.dm +++ b/code/modules/admin/verbs/atmosdebug.dm @@ -3,30 +3,30 @@ set name = "Check Piping" set background = 1 if(!src.holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return feedback_add_details("admin_verb","CP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! if(alert("WARNING: This command should not be run on a live server. Do you want to continue?", "Check Piping", "No", "Yes") == "No") return - usr << "Checking for disconnected pipes..." + to_chat(usr, "Checking for disconnected pipes...") //all plumbing - yes, some things might get stated twice, doesn't matter. for (var/obj/machinery/atmospherics/plumbing in world) if (plumbing.nodealert) - usr << "Unconnected [plumbing.name] located at [plumbing.x],[plumbing.y],[plumbing.z] ([get_area(plumbing.loc)])" + to_chat(usr, "Unconnected [plumbing.name] located at [plumbing.x],[plumbing.y],[plumbing.z] ([get_area(plumbing.loc)])") //Manifolds for (var/obj/machinery/atmospherics/pipe/manifold/pipe in world) if (!pipe.node1 || !pipe.node2 || !pipe.node3) - usr << "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])" + to_chat(usr, "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])") //Pipes for (var/obj/machinery/atmospherics/pipe/simple/pipe in world) if (!pipe.node1 || !pipe.node2) - usr << "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])" + to_chat(usr, "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])") - usr << "Checking for overlapping pipes..." + to_chat(usr, "Checking for overlapping pipes...") next_turf: for(var/turf/T in world) for(var/dir in cardinal) @@ -35,15 +35,15 @@ if(dir & pipe.initialize_directions) check++ if(check > 1) - usr << "Overlapping pipe ([pipe.name]) located at [T.x],[T.y],[T.z] ([get_area(T)])" + to_chat(usr, "Overlapping pipe ([pipe.name]) located at [T.x],[T.y],[T.z] ([get_area(T)])") continue next_turf - usr << "Done" + to_chat(usr, "Done") /client/proc/powerdebug() set category = "Mapping" set name = "Check Power" if(!src.holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return feedback_add_details("admin_verb","CPOW") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -51,9 +51,9 @@ if (!PN.nodes || !PN.nodes.len) if(PN.cables && (PN.cables.len > 1)) var/obj/structure/cable/C = PN.cables[1] - usr << "Powernet with no nodes! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]" + to_chat(usr, "Powernet with no nodes! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]") if (!PN.cables || (PN.cables.len < 10)) if(PN.cables && (PN.cables.len > 1)) var/obj/structure/cable/C = PN.cables[1] - usr << "Powernet with fewer than 10 cables! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]" \ No newline at end of file + to_chat(usr, "Powernet with fewer than 10 cables! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]") diff --git a/code/modules/admin/verbs/custom_event.dm b/code/modules/admin/verbs/custom_event.dm index 56e8fe30217..350ed9a8737 100644 --- a/code/modules/admin/verbs/custom_event.dm +++ b/code/modules/admin/verbs/custom_event.dm @@ -4,7 +4,7 @@ set name = "Change Custom Event" if(!holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return var/input = input(usr, "Enter the description of the custom event. Be descriptive. To cancel the event, make this blank or hit cancel.", "Custom Event", custom_event_msg) as message|null @@ -19,10 +19,10 @@ custom_event_msg = input - world << "

Custom Event

" - world << "

A custom event is starting. OOC Info:

" - world << "[html_encode(custom_event_msg)]" - world << "
" + to_chat(world, "

Custom Event

") + to_chat(world, "

A custom event is starting. OOC Info:

") + to_chat(world, "[html_encode(custom_event_msg)]") + to_chat(world, "
") // normal verb for players to view info /client/verb/cmd_view_custom_event() @@ -30,11 +30,11 @@ set name = "Custom Event Info" if(!custom_event_msg || custom_event_msg == "") - src << "There currently is no known custom event taking place." - src << "Keep in mind: it is possible that an admin has not properly set this." + to_chat(src, "There currently is no known custom event taking place.") + to_chat(src, "Keep in mind: it is possible that an admin has not properly set this.") return - src << "

Custom Event

" - src << "

A custom event is taking place. OOC Info:

" - src << "[html_encode(custom_event_msg)]" - src << "
" + to_chat(src, "

Custom Event

") + to_chat(src, "

A custom event is taking place. OOC Info:

") + to_chat(src, "[html_encode(custom_event_msg)]") + to_chat(src, "
") diff --git a/code/modules/admin/verbs/deadsay.dm b/code/modules/admin/verbs/deadsay.dm index b448099f635..74596c333cc 100644 --- a/code/modules/admin/verbs/deadsay.dm +++ b/code/modules/admin/verbs/deadsay.dm @@ -10,11 +10,11 @@ return if(prefs.muted & MUTE_DEADCHAT) - src << "You cannot send DSAY messages (muted)." + to_chat(src, "You cannot send DSAY messages (muted).") return if(!(prefs.toggles & CHAT_DEAD)) - src << "You have deadchat muted." + to_chat(src, "You have deadchat muted.") return if (handle_spam_prevention(msg,MUTE_DEADCHAT)) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 9c6f671fba7..ddc3b4456e6 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -72,7 +72,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that if(!procname) return if(targetselected && !hascall(target,procname)) - usr << "Error: callproc(): target has no such call [procname]." + to_chat(usr, "Error: callproc(): target has no such call [procname].") return var/list/lst = get_callproc_args() @@ -81,7 +81,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that if(targetselected) if(!target) - usr << "Error: callproc(): owner of proc no longer exists." + to_chat(usr, "Error: callproc(): owner of proc no longer exists.") return message_admins("[key_name_admin(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") log_admin("[key_name(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") @@ -92,7 +92,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that log_admin("[key_name(src)] called [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"]") returnval = call(procname)(arglist(lst)) // Pass the lst as an argument list to the proc - usr << "[procname] returned: [returnval ? returnval : "null"]" + to_chat(usr, "[procname] returned: [returnval ? returnval : "null"]") feedback_add_details("admin_verb","APC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/callproc_datum(var/A as null|area|mob|obj|turf) @@ -107,7 +107,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that return if(!hascall(A,procname)) - usr << "Error: callproc_datum(): target has no such call [procname]." + to_chat(usr, "Error: callproc_datum(): target has no such call [procname].") return var/list/lst = get_callproc_args() @@ -115,14 +115,14 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that return if(!A || !IsValidSrc(A)) - usr << "Error: callproc_datum(): owner of proc no longer exists." + to_chat(usr, "Error: callproc_datum(): owner of proc no longer exists.") return message_admins("[key_name_admin(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"]") log_admin("[key_name(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"]") spawn() var/returnval = call(A,procname)(arglist(lst)) // Pass the lst as an argument list to the proc - usr << "[procname] returned: [returnval ? returnval : "null"]" + to_chat(usr, "[procname] returned: [returnval ? returnval : "null"]") feedback_add_details("admin_verb","DPC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -506,41 +506,41 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that var/list/areas_without_intercom = areas_all - areas_with_intercom var/list/areas_without_camera = areas_all - areas_with_camera - world << "AREAS WITHOUT AN APC:" + to_chat(world, "AREAS WITHOUT AN APC:") for(var/areatype in areas_without_APC) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT AN AIR ALARM:" + to_chat(world, "AREAS WITHOUT AN AIR ALARM:") for(var/areatype in areas_without_air_alarm) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITH TOO MANY APCS:" + to_chat(world, "AREAS WITH TOO MANY APCS:") for(var/areatype in areas_with_multiple_APCs) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITH TOO MANY AIR ALARMS:" + to_chat(world, "AREAS WITH TOO MANY AIR ALARMS:") for(var/areatype in areas_with_multiple_air_alarms) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT A REQUEST CONSOLE:" + to_chat(world, "AREAS WITHOUT A REQUEST CONSOLE:") for(var/areatype in areas_without_RC) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT ANY LIGHTS:" + to_chat(world, "AREAS WITHOUT ANY LIGHTS:") for(var/areatype in areas_without_light) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT A LIGHT SWITCH:" + to_chat(world, "AREAS WITHOUT A LIGHT SWITCH:") for(var/areatype in areas_without_LS) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT ANY INTERCOMS:" + to_chat(world, "AREAS WITHOUT ANY INTERCOMS:") for(var/areatype in areas_without_intercom) - world << "* [areatype]" + to_chat(world, "* [areatype]") - world << "AREAS WITHOUT ANY CAMERAS:" + to_chat(world, "AREAS WITHOUT ANY CAMERAS:") for(var/areatype in areas_without_camera) - world << "* [areatype]" + to_chat(world, "* [areatype]") /client/proc/cmd_admin_dress(var/mob/living/carbon/human/M in mob_list) set category = "Event" @@ -1166,21 +1166,21 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that switch(input("Which list?") in list("Players","Admins","Mobs","Living Mobs","Dead Mobs","Silicons","Clients","Respawnable Mobs")) if("Players") - usr << jointext(player_list,",") + to_chat(usr, jointext(player_list,",")) if("Admins") - usr << jointext(admins,",") + to_chat(usr, jointext(admins,",")) if("Mobs") - usr << jointext(mob_list,",") + to_chat(usr, jointext(mob_list,",")) if("Living Mobs") - usr << jointext(living_mob_list,",") + to_chat(usr, jointext(living_mob_list,",")) if("Dead Mobs") - usr << jointext(dead_mob_list,",") + to_chat(usr, jointext(dead_mob_list,",")) if("Silicons") - usr << jointext(silicon_mob_list,",") + to_chat(usr, jointext(silicon_mob_list,",")) if("Clients") - usr << jointext(clients,",") + to_chat(usr, jointext(clients,",")) if("Respawnable Mobs") - usr << jointext(respawnable_list,",") + to_chat(usr, jointext(respawnable_list,",")) /client/proc/cmd_admin_toggle_block(var/mob/M,var/block) diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm index 6c5db7cd1e6..70505b8abdf 100644 --- a/code/modules/admin/verbs/diagnostics.dm +++ b/code/modules/admin/verbs/diagnostics.dm @@ -15,9 +15,9 @@ if(T.active_hotspot) burning = 1 - usr << "\blue @[target.x],[target.y]: O:[GM.oxygen] T:[GM.toxins] N:[GM.nitrogen] C:[GM.carbon_dioxide] w [GM.temperature] Kelvin, [GM.return_pressure()] kPa [(burning)?("\red BURNING"):(null)]" + to_chat(usr, "\blue @[target.x],[target.y]: O:[GM.oxygen] T:[GM.toxins] N:[GM.nitrogen] C:[GM.carbon_dioxide] w [GM.temperature] Kelvin, [GM.return_pressure()] kPa [(burning)?("\red BURNING"):(null)]") for(var/datum/gas/trace_gas in GM.trace_gases) - usr << "[trace_gas.type]: [trace_gas.moles]" + to_chat(usr, "[trace_gas.type]: [trace_gas.moles]") message_admins("[key_name_admin(usr)] has checked the air status of [T]") log_admin("[key_name(usr)] has checked the air status of [T]") @@ -130,9 +130,9 @@ if(!check_rights(R_DEBUG)) return - usr << "Jobbans active in this round." + to_chat(usr, "Jobbans active in this round.") for(var/t in jobban_keylist) - usr << "[t]" + to_chat(usr, "[t]") message_admins("[key_name_admin(usr)] has printed the jobban log") log_admin("[key_name(usr)] has printed the jobban log") @@ -149,10 +149,10 @@ if(!filter) return - usr << "Jobbans active in this round." + to_chat(usr, "Jobbans active in this round.") for(var/t in jobban_keylist) if(findtext(t, filter)) - usr << "[t]" + to_chat(usr, "[t]") message_admins("[key_name_admin(usr)] has searched the jobban log for [filter]") log_admin("[key_name(usr)] has searched the jobban log for [filter]") diff --git a/code/modules/admin/verbs/dice.dm b/code/modules/admin/verbs/dice.dm index 62b46fba8ee..4df6e3107a0 100644 --- a/code/modules/admin/verbs/dice.dm +++ b/code/modules/admin/verbs/dice.dm @@ -12,11 +12,11 @@ var/dice = num2text(sum) + "d" + num2text(side) if(alert("Do you want to inform the world about your game?",,"Yes", "No") == "Yes") - world << "

The dice have been rolled by Gods!

" + to_chat(world, "

The dice have been rolled by Gods!

") var/result = roll(dice) if(alert("Do you want to inform the world about the result?",,"Yes", "No") == "Yes") - world << "

Gods rolled [dice], result is [result]

" + to_chat(world, "

Gods rolled [dice], result is [result]

") message_admins("[key_name_admin(src)] rolled dice [dice], result is [result]", 1) \ No newline at end of file diff --git a/code/modules/admin/verbs/freeze.dm b/code/modules/admin/verbs/freeze.dm index 2d3314bd045..f6d31d6bede 100644 --- a/code/modules/admin/verbs/freeze.dm +++ b/code/modules/admin/verbs/freeze.dm @@ -10,7 +10,7 @@ var/global/list/frozen_mob_list = list() set category = "Special Verbs" set name = "Freeze" if(!holder) - src << "Error: Freeze: Only administrators may use this command." + to_chat(src, "Error: Freeze: Only administrators may use this command.") return if(!istype(M)) return if(!check_rights(R_ADMIN)) return @@ -26,7 +26,7 @@ var/global/list/frozen_mob_list = list() /mob/living/proc/admin_Freeze(var/client/admin) if(istype(admin)) - src << "You have been frozen by [key_name(admin)]" + to_chat(src, "You have been frozen by [key_name(admin)]") message_admins("[key_name_admin(admin)] froze [key_name_admin(src)]") log_admin("[key_name(admin)] froze [key_name(src)]") @@ -42,7 +42,7 @@ var/global/list/frozen_mob_list = list() /mob/living/proc/admin_unFreeze(var/client/admin) if(istype(admin)) - src << "You have been unfrozen by [key_name(admin)]" + to_chat(src, "You have been unfrozen by [key_name(admin)]") message_admins("\blue [key_name_admin(admin)] unfroze [key_name_admin(src)]") log_admin("[key_name(admin)] unfroze [key_name(src)]") @@ -85,11 +85,11 @@ var/global/list/frozen_mob_list = list() set category = "Special Verbs" set name = "Freeze Mech" if(!holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return var/obj/mecha/M = O if(!istype(M,/obj/mecha)) - src << "\red This can only be used on Mechs!" + to_chat(src, "\red This can only be used on Mechs!") return else if(usr) @@ -101,7 +101,7 @@ var/global/list/frozen_mob_list = list() M.overlays += adminomaly if(M.occupant) M.removeVerb(/obj/mecha/verb/eject) - M.occupant << "You have been frozen by [key]" + to_chat(M.occupant, "You have been frozen by [key]") message_admins("\blue [key_name_admin(usr)] froze [key_name(M.occupant)] in a [M.name]") log_admin("[key_name(usr)] froze [key_name(M.occupant)] in a [M.name]") else @@ -112,7 +112,7 @@ var/global/list/frozen_mob_list = list() M.overlays -= adminomaly if(M.occupant) M.addVerb(/obj/mecha/verb/eject) - M.occupant << "You have been unfrozen by [key]" + to_chat(M.occupant, "You have been unfrozen by [key]") message_admins("\blue [key_name_admin(usr)] unfroze [key_name(M.occupant)] in a [M.name]") log_admin("[key_name(usr)] unfroze [M.occupant.name]/[M.occupant.ckey] in a [M.name]") else diff --git a/code/modules/admin/verbs/getlogs.dm b/code/modules/admin/verbs/getlogs.dm index cf939c0ae9f..48507a55352 100644 --- a/code/modules/admin/verbs/getlogs.dm +++ b/code/modules/admin/verbs/getlogs.dm @@ -24,16 +24,16 @@ set category = null if(!src.holder) - src << "Only Admins may use this command." + to_chat(src, "Only Admins may use this command.") return var/client/target = input(src,"Choose somebody to grant access to the server's runtime logs (permissions expire at the end of each round):","Grant Permissions",null) as null|anything in clients if(!istype(target,/client)) - src << "Error: giveruntimelog(): Client not found." + to_chat(src, "Error: giveruntimelog(): Client not found.") return target.verbs |= /client/proc/getruntimelog - target << "You have been granted access to runtime logs. Please use them responsibly or risk being banned." + to_chat(target, "You have been granted access to runtime logs. Please use them responsibly or risk being banned.") return @@ -52,8 +52,9 @@ return message_admins("[key_name_admin(src)] accessed file: [path]") - src << ftp( file(path) ) - src << "Attempting to send file, this may take a fair few minutes if the file is very large." + src << ftp(file(path)) + + to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.") return @@ -72,8 +73,9 @@ return message_admins("[key_name_admin(src)] accessed file: [path]") - src << ftp( file(path) ) - src << "Attempting to send file, this may take a fair few minutes if the file is very large." + src << ftp(file(path)) + + to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.") return @@ -87,9 +89,10 @@ var/path = "data/logs/[time2text(world.realtime,"YYYY/MM-Month/DD-Day")].log" if( fexists(path) ) - src << ftp( file(path) ) + src << ftp(file(path)) + else - src << "Error: view_txt_log(): File not found/Invalid path([path])." + to_chat(src, "Error: view_txt_log(): File not found/Invalid path([path]).") return feedback_add_details("admin_verb","VTL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return @@ -102,10 +105,12 @@ var/path = "data/logs/[time2text(world.realtime,"YYYY/MM-Month/DD-Day")] Attack.log" if( fexists(path) ) - src << ftp( file(path) ) + src << ftp(file(path)) + else - src << "Error: view_atk_log(): File not found/Invalid path([path])." + to_chat(src, "Error: view_atk_log(): File not found/Invalid path([path]).") return - usr << run( file(path) ) + usr << run(file(path)) + feedback_add_details("admin_verb","SSAL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return diff --git a/code/modules/admin/verbs/honksquad.dm b/code/modules/admin/verbs/honksquad.dm index e64cbf66574..75fc6af84d9 100644 --- a/code/modules/admin/verbs/honksquad.dm +++ b/code/modules/admin/verbs/honksquad.dm @@ -5,13 +5,13 @@ var/global/sent_honksquad = 0 /client/proc/honksquad() if(!ticker) - usr << "The game hasn't started yet!" + to_chat(usr, "The game hasn't started yet!") return if(world.time < 6000) - usr << "There are [(6000-world.time)/10] seconds remaining before it may be called." + to_chat(usr, "There are [(6000-world.time)/10] seconds remaining before it may be called.") return if(sent_honksquad == 1) - usr << "Clown Planet has already dispatched a HONKsquad." + to_chat(usr, "Clown Planet has already dispatched a HONKsquad.") return if(alert("Do you want to send in the HONKsquad? Once enabled, this is irreversible.",,"Yes","No")!="Yes") return @@ -25,7 +25,7 @@ var/global/sent_honksquad = 0 return if(sent_honksquad) - usr << "Looks like someone beat you to it. HONK." + to_chat(usr, "Looks like someone beat you to it. HONK.") return sent_honksquad = 1 @@ -64,7 +64,7 @@ var/global/sent_honksquad = 0 //So they don't forget their code or mission. new_honksquad.mind.store_memory("Mission: \red [input].") - new_honksquad << "\blue You are a HONKsquad. [!honk_leader_selected?"commando":"LEADER"] in the service of Clown Planet. You are called in cases of exteme low levels of HONK. You are NOT authorized to kill. \nYour current mission is: \red[input]" + to_chat(new_honksquad, "\blue You are a HONKsquad. [!honk_leader_selected?"commando":"LEADER"] in the service of Clown Planet. You are called in cases of exteme low levels of HONK. You are NOT authorized to kill. \nYour current mission is: \red[input]") honksquad_number-- diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index 0af366ef215..c59cd417c91 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -188,7 +188,7 @@ var/list/admin_verbs_show_debug_verbs = list( count++ atom_list += A - world << "There are [count] objects of type [type_path] on z-level [num_level]." + to_chat(world, "There are [count] objects of type [type_path] on z-level [num_level].") feedback_add_details("admin_verb","mOBJZ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/count_objects_all() @@ -209,5 +209,5 @@ var/list/admin_verbs_show_debug_verbs = list( if(istype(A,type_path)) count++ - world << "There are [count] objects of type [type_path] in the game world." + to_chat(world, "There are [count] objects of type [type_path] in the game world.") feedback_add_details("admin_verb","mOBJ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! diff --git a/code/modules/admin/verbs/massmodvar.dm b/code/modules/admin/verbs/massmodvar.dm index aa05d810810..185d513d2fc 100644 --- a/code/modules/admin/verbs/massmodvar.dm +++ b/code/modules/admin/verbs/massmodvar.dm @@ -30,7 +30,7 @@ for(var/p in forbidden_varedit_object_types) if( istype(O,p) ) - usr << "It is forbidden to edit this object's variables." + to_chat(usr, "It is forbidden to edit this object's variables.") return var/list/names = list() @@ -55,43 +55,43 @@ if(!check_rights(R_DEBUG)) return if(isnull(var_value)) - usr << "Unable to determine variable type." + to_chat(usr, "Unable to determine variable type.") else if(isnum(var_value)) - usr << "Variable appears to be NUM." + to_chat(usr, "Variable appears to be NUM.") default = "num" dir = 1 else if(istext(var_value)) - usr << "Variable appears to be TEXT." + to_chat(usr, "Variable appears to be TEXT.") default = "text" else if(isloc(var_value)) - usr << "Variable appears to be REFERENCE." + to_chat(usr, "Variable appears to be REFERENCE.") default = "reference" else if(isicon(var_value)) - usr << "Variable appears to be ICON." + to_chat(usr, "Variable appears to be ICON.") var_value = "\icon[var_value]" default = "icon" else if(istype(var_value,/atom) || istype(var_value,/datum)) - usr << "Variable appears to be TYPE." + to_chat(usr, "Variable appears to be TYPE.") default = "type" else if(istype(var_value,/list)) - usr << "Variable appears to be LIST." + to_chat(usr, "Variable appears to be LIST.") default = "list" else if(istype(var_value,/client)) - usr << "Variable appears to be CLIENT." + to_chat(usr, "Variable appears to be CLIENT.") default = "cancel" else - usr << "Variable appears to be FILE." + to_chat(usr, "Variable appears to be FILE.") default = "file" - usr << "Variable contains: [var_value]" + to_chat(usr, "Variable contains: [var_value]") if(dir) switch(var_value) if(1) @@ -113,7 +113,7 @@ else dir = null if(dir) - usr << "If a direction, direction is: [dir]" + to_chat(usr, "If a direction, direction is: [dir]") var/class = input("What kind of variable?","Variable Type",default) as null|anything in list("text", "num","type","icon","file","edit referenced object","restore to default") diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm index f4f348bb72a..966e584f15e 100644 --- a/code/modules/admin/verbs/modifyvariables.dm +++ b/code/modules/admin/verbs/modifyvariables.dm @@ -18,7 +18,7 @@ var/list/forbidden_varedit_object_types = list( set name = "Edit Ticker Variables" if (ticker == null) - src << "Game hasn't started yet." + to_chat(src, "Game hasn't started yet.") else src.modify_variables(ticker) feedback_add_details("admin_verb","ETV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -53,7 +53,7 @@ var/list/forbidden_varedit_object_types = list( var/type_text = input("Enter type:", "Type") as null|message var_value = text2path(type_text) if(!var_value) - src << "[type_text] is not a valid path!" + to_chat(src, "[type_text] is not a valid path!") if("reference") var_value = input("Select reference:","Reference") as null|mob|obj|turf|area in world @@ -106,7 +106,7 @@ var/list/forbidden_varedit_object_types = list( var/type_text = input("Enter type:", "Type") as null|message var_value = text2path(type_text) if(!var_value) - src << "[type_text] is not a valid path!" + to_chat(src, "[type_text] is not a valid path!") if("reference") var_value = input("Select reference:","Reference") as mob|obj|turf|area in world @@ -135,8 +135,8 @@ var/list/forbidden_varedit_object_types = list( /client/proc/mod_list(var/list/L) if(!check_rights(R_VAREDIT)) return - if(!istype(L,/list)) src << "Not a List." - + if(!istype(L,/list)) + to_chat(src, "Not a List.") if(L.len > 1000) var/confirm = alert(src, "The list you're trying to edit is very long, continuing may crash the server.", "Warning", "Continue", "Abort") if(confirm != "Continue") @@ -149,7 +149,7 @@ var/list/forbidden_varedit_object_types = list( var/a = L[1] if(istext(a) && L[a] != null) assoc = 1 //This is pretty weak test but i can't think of anything else - usr << "List appears to be associative." + to_chat(usr, "List appears to be associative.") var/list/names = null if(!assoc) @@ -182,12 +182,12 @@ var/list/forbidden_varedit_object_types = list( default = variable_to_type(variable) - usr << "Variable contains: [variable]" + to_chat(usr, "Variable contains: [variable]") if(default == "num") dir = dir2text(variable) if(dir) - usr << "If a direction, direction is: [dir]" + to_chat(usr, "If a direction, direction is: [dir]") var/class = "text" var/list/allowed_types = list("text", "num","type", "type from text", "reference","mob reference", "icon","file","list","edit referenced object","restore to default","DELETE FROM LIST") @@ -276,11 +276,11 @@ var/list/forbidden_varedit_object_types = list( for(var/p in forbidden_varedit_object_types) if( istype(O,p) ) - usr << "It is forbidden to edit this object's variables." + to_chat(usr, "It is forbidden to edit this object's variables.") return if(istype(O, /client) && (param_var_name == "ckey" || param_var_name == "key")) - usr << "You cannot edit ckeys on client objects." + to_chat(usr, "You cannot edit ckeys on client objects.") return var/class @@ -289,7 +289,7 @@ var/list/forbidden_varedit_object_types = list( if(param_var_name) if(!param_var_name in O.vars) - src << "A variable with this name ([param_var_name]) doesn't exist in this atom ([O])" + to_chat(src, "A variable with this name ([param_var_name]) doesn't exist in this atom ([O])") return if(param_var_name == "holder" || (param_var_name in locked)) @@ -330,11 +330,11 @@ var/list/forbidden_varedit_object_types = list( else if(default == "icon") var_value = "\icon[var_value]" - usr << "Variable contains: [var_value]" + to_chat(usr, "Variable contains: [var_value]") if(dir) dir = dir2text(var_value) if(dir) - usr << "If a direction, direction is: [dir]" + to_chat(usr, "If a direction, direction is: [dir]") var/list/allowed_types = list("text", "num","type","reference","mob reference", "path", "matrix", "icon","file","list","edit referenced object","restore to default") if(src.holder && src.holder.marked_datum) @@ -402,7 +402,7 @@ var/list/forbidden_varedit_object_types = list( var/path_text = input("Enter path:", "Path",O.vars[variable]) as null|text var/var_new = text2path(path_text) if(!var_new && path_text != null) // So aborting doesn't bother the VVer - usr << "[path_text] does not appear to be a valid path." + to_chat(usr, "[path_text] does not appear to be a valid path.") return O.vars[variable] = var_new @@ -410,7 +410,7 @@ var/list/forbidden_varedit_object_types = list( var/matrix_text = input("Enter a, b, c, d, e, and f, separated by a space.", "Matrix", "1 0 0 0 1 0") as null|text var/var_new = text2matrix(matrix_text) if(!var_new && matrix_text != null) - usr << "[matrix_text] is not a valid matrix string." + to_chat(usr, "[matrix_text] is not a valid matrix string.") return O.vars[variable] = var_new var_as_text = "matrix([matrix_text])" @@ -449,51 +449,51 @@ var/list/forbidden_varedit_object_types = list( /proc/variable_to_type(var/variable) var/class if(isnull(variable)) - usr << "Unable to determine variable type." + to_chat(usr, "Unable to determine variable type.") class = null else if(isnum(variable)) - usr << "Variable appears to be NUM." + to_chat(usr, "Variable appears to be NUM.") class = "num" else if(istext(variable)) - usr << "Variable appears to be TEXT." + to_chat(usr, "Variable appears to be TEXT.") class = "text" else if(isloc(variable)) - usr << "Variable appears to be REFERENCE." + to_chat(usr, "Variable appears to be REFERENCE.") class = "reference" else if(isicon(variable)) - usr << "Variable appears to be ICON." + to_chat(usr, "Variable appears to be ICON.") variable = "\icon[variable]" class = "icon" else if(istype(variable,/matrix)) - usr << "Variable appears to be MATRIX" + to_chat(usr, "Variable appears to be MATRIX") class = "matrix" else if(istype(variable,/atom) || istype(variable,/datum)) - usr << "Variable appears to be TYPE." + to_chat(usr, "Variable appears to be TYPE.") class = "type" else if(istype(variable,/list)) - usr << "Variable appears to be LIST." + to_chat(usr, "Variable appears to be LIST.") class = "list" else if(istype(variable,/client)) - usr << "Variable appears to be CLIENT." + to_chat(usr, "Variable appears to be CLIENT.") class = "cancel" else if(ispath(variable)) - usr << "Variable appears to be PATH." + to_chat(usr, "Variable appears to be PATH.") class = "path" else if(isfile(variable)) - usr << "Variable appears to be FILE." + to_chat(usr, "Variable appears to be FILE.") class = "file" else - usr << "Variable type is UNKNOWN." + to_chat(usr, "Variable type is UNKNOWN.") class = null return class \ No newline at end of file diff --git a/code/modules/admin/verbs/one_click_antag.dm b/code/modules/admin/verbs/one_click_antag.dm index 038c9a27b3f..022cd29105a 100644 --- a/code/modules/admin/verbs/one_click_antag.dm +++ b/code/modules/admin/verbs/one_click_antag.dm @@ -377,7 +377,7 @@ client/proc/one_click_antag() //So they don't forget their code or mission. - new_syndicate_commando << "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red [input]" + to_chat(new_syndicate_commando, "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red [input]") numagents-- if(numagents >= 6) @@ -482,8 +482,8 @@ client/proc/one_click_antag() break new_vox.key = theghost.key - new_vox << "\blue You are a Vox Primalis, fresh out of the Shoal. Your ship has arrived at the Tau Ceti system hosting the NSV Exodus... or was it the Luna? NSS? Utopia? Nobody is really sure, but everyong is raring to start pillaging! Your current goal is: \red [input]" - new_vox << "\red Don't forget to turn on your nitrogen internals!" + to_chat(new_vox, "\blue You are a Vox Primalis, fresh out of the Shoal. Your ship has arrived at the Tau Ceti system hosting the NSV Exodus... or was it the Luna? NSS? Utopia? Nobody is really sure, but everyong is raring to start pillaging! Your current goal is: \red [input]") + to_chat(new_vox, "\red Don't forget to turn on your nitrogen internals!") raiders-- if(raiders > max_raiders) @@ -612,7 +612,7 @@ client/proc/one_click_antag() newMember.key = theghost.key teamOneMembers-- - newMember << "You are a member of the GREEN Thunderdome team! Gear up and help your team destroy the red team!" + to_chat(newMember, "You are a member of the GREEN Thunderdome team! Gear up and help your team destroy the red team!") if(L.name == "tdome2") if(teamTwoMembers<=0) @@ -634,7 +634,7 @@ client/proc/one_click_antag() newMember.key = theghost.key teamTwoMembers-- - newMember << "You are a member of the RED Thunderdome team! Gear up and help your team destroy the green team!" + to_chat(newMember, "You are a member of the RED Thunderdome team! Gear up and help your team destroy the green team!") else return 0 return 1 \ No newline at end of file diff --git a/code/modules/admin/verbs/onlyone.dm b/code/modules/admin/verbs/onlyone.dm index 97e7f716a3c..61c7b4f5790 100644 --- a/code/modules/admin/verbs/onlyone.dm +++ b/code/modules/admin/verbs/onlyone.dm @@ -21,10 +21,10 @@ hijack_objective.owner = H.mind H.mind.objectives += hijack_objective - H << "You are a Highlander. Kill all other Highlanders. There can be only one." + to_chat(H, "You are a Highlander. Kill all other Highlanders. There can be only one.") var/obj_count = 1 for(var/datum/objective/OBJ in H.mind.objectives) - H << "Objective #[obj_count]: [OBJ.explanation_text]" + to_chat(H, "Objective #[obj_count]: [OBJ.explanation_text]") obj_count++ for (var/obj/item/I in H) @@ -55,7 +55,7 @@ message_admins("[key_name_admin(usr)] used THERE CAN BE ONLY ONE! -NO ATTACK LOGS WILL BE SENT TO ADMINS FROM THIS POINT FORTH-", 1) log_admin("[key_name(usr)] used there can be only one.") nologevent = 1 - world << sound('sound/music/THUNDERDOME.ogg') + to_chat(world, sound('sound/music/THUNDERDOME.ogg')) /client/proc/only_me() if(!ticker) @@ -73,10 +73,10 @@ hijack_objective.owner = H.mind H.mind.objectives += hijack_objective - H << "You are the multiverse summoner. Activate your blade to summon copies of yourself from another universe to fight by your side." + to_chat(H, "You are the multiverse summoner. Activate your blade to summon copies of yourself from another universe to fight by your side.") var/obj_count = 1 for(var/datum/objective/OBJ in H.mind.objectives) - H << "Objective #[obj_count]: [OBJ.explanation_text]" + to_chat(H, "Objective #[obj_count]: [OBJ.explanation_text]") obj_count++ var/obj/item/slot_item_ID = H.get_item_by_slot(slot_wear_id) @@ -101,4 +101,4 @@ message_admins("[key_name_admin(usr)] used THERE CAN BE ONLY ME! -NO ATTACK LOGS WILL BE SENT TO ADMINS FROM THIS POINT FORTH-", 1) log_admin("[key_name(usr)] used there can be only me.") nologevent = 1 - world << sound('sound/music/THUNDERDOME.ogg') \ No newline at end of file + to_chat(world, sound('sound/music/THUNDERDOME.ogg')) diff --git a/code/modules/admin/verbs/onlyoneteam.dm b/code/modules/admin/verbs/onlyoneteam.dm index 016b4c891a0..6d5c11e3a4b 100644 --- a/code/modules/admin/verbs/onlyoneteam.dm +++ b/code/modules/admin/verbs/onlyoneteam.dm @@ -21,7 +21,7 @@ continue qdel(I) - H << "You are part of the [station_name()] dodgeball tournament. Throw dodgeballs at crewmembers wearing a different color than you. OOC: Use THROW on an EMPTY-HAND to catch thrown dodgeballs." + to_chat(H, "You are part of the [station_name()] dodgeball tournament. Throw dodgeballs at crewmembers wearing a different color than you. OOC: Use THROW on an EMPTY-HAND to catch thrown dodgeballs.") H.equip_to_slot_or_del(new /obj/item/device/radio/headset/heads/captain(H), slot_l_ear) H.equip_to_slot_or_del(new /obj/item/weapon/beach_ball/dodgeball(H), slot_r_hand) @@ -75,13 +75,13 @@ if(H.l_hand == src) return var/mob/A = H.LAssailant if((H in team_alpha) && (A in team_alpha)) - A << "He's on your team!" + to_chat(A, "He's on your team!") return else if((H in team_bravo) && (A in team_bravo)) - A << "He's on your team!" + to_chat(A, "He's on your team!") return else if(!A in team_alpha && !A in team_bravo) - A << "You're not part of the dodgeball game, sorry!" + to_chat(A, "You're not part of the dodgeball game, sorry!") return else playsound(src, 'sound/items/dodgeball.ogg', 50, 1) diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index ab132d792ec..25b0ed54140 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -90,7 +90,7 @@ var/list/sounds_cache = list() for(var/mob/living/carbon/human/CP in world) if(CP.real_name=="Cuban Pete" && CP.key!="Rosham") - CP << "Your body can't contain the rhumba beat" + C << "Your body can't contain the rhumba beat" CP.gib() diff --git a/code/modules/admin/verbs/possess.dm b/code/modules/admin/verbs/possess.dm index e6c5659f63b..54d39d5a5fa 100644 --- a/code/modules/admin/verbs/possess.dm +++ b/code/modules/admin/verbs/possess.dm @@ -4,7 +4,7 @@ if(istype(O,/obj/singularity)) if(config.forbid_singulo_possession) - usr << "It is forbidden to possess singularities." + to_chat(usr, "It is forbidden to possess singularities.") return var/turf/T = get_turf(O) diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm index 8d41f49a918..0ef6a64373f 100644 --- a/code/modules/admin/verbs/pray.dm +++ b/code/modules/admin/verbs/pray.dm @@ -7,7 +7,7 @@ if(usr.client) if(usr.client.prefs.muted & MUTE_PRAY) - usr << "\red You cannot pray (muted)." + to_chat(usr, "\red You cannot pray (muted).") return if(src.client.handle_spam_prevention(msg,MUTE_PRAY)) return @@ -17,9 +17,9 @@ for(var/client/X in admins) if(check_rights(R_EVENT,0,X.mob)) - X << msg + to_chat(X, msg) - usr << "Your prayers have been received by the gods." + to_chat(usr, "Your prayers have been received by the gods.") feedback_add_details("admin_verb","PR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! //log_admin("HELP: [key_name(src)]: [msg]") @@ -30,7 +30,7 @@ for(var/client/X in admins) if(R_EVENT & X.holder.rights) - X << msg + to_chat(X, msg) /proc/Syndicate_announce(var/text , var/mob/Sender) var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN)) @@ -38,7 +38,7 @@ for(var/client/X in admins) if(check_rights(R_EVENT,0,X.mob)) - X << msg + to_chat(X, msg) /proc/HONK_announce(var/text , var/mob/Sender) var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN)) @@ -46,7 +46,7 @@ for(var/client/X in admins) if(R_EVENT & X.holder.rights) - X << msg + to_chat(X, msg) /proc/ERT_Announce(var/text , var/mob/Sender) var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN)) @@ -54,15 +54,14 @@ for(var/client/X in admins) if(check_rights(R_EVENT,0,X.mob)) - X << msg - + to_chat(X, msg) + /proc/Nuke_request(text , mob/Sender) var/nuke_code = get_nuke_code() var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN)) msg = "NUKE CODE REQUEST: [key_name(Sender)] (PP) (VV) (SM) ([admin_jump_link(Sender, "holder")]) (CA) (BSA) (RPLY): [msg]" - + for(var/client/X in admins) if(check_rights(R_EVENT,0,X.mob)) - X << msg - X << "The nuke code is [nuke_code]." - \ No newline at end of file + to_chat(X, msg) + to_chat(X, "The nuke code is [nuke_code].") diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 970ebfee0ef..c236432e9d2 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -39,7 +39,7 @@ prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/orange(prisoner), slot_w_uniform) prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes) spawn(50) - M << "\red You have been sent to the prison station!" + to_chat(M, "\red You have been sent to the prison station!") log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.") message_admins("\blue [key_name_admin(usr)] sent [key_name_admin(M)] to the prison station.", 1) feedback_add_details("admin_verb","PRISON") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -61,7 +61,7 @@ if(usr) if (usr.client) if(usr.client.holder) - M << "\bold You hear a voice in your head... \italic [msg]" + to_chat(M, "\bold You hear a voice in your head... \italic [msg]") log_admin("SubtlePM: [key_name(usr)] -> [key_name(M)] : [msg]") message_admins("\blue \bold SubtleMessage: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]", 1) @@ -91,12 +91,12 @@ msg += "[key_name_admin(C)]: account is [C.player_age] days old
" if(missing_ages) - src << "Some accounts did not have proper ages set in their clients. This function requires database to be present" + to_chat(src, "Some accounts did not have proper ages set in their clients. This function requires database to be present") if(msg != "") src << browse(msg, "window=Player_age_check") else - src << "No matches for that age range found." + to_chat(src, "No matches for that age range found.") /client/proc/cmd_admin_world_narrate() // Allows administrators to fluff events a little easier -- TLE @@ -110,7 +110,7 @@ if (!msg) return - world << "[msg]" + to_chat(world, "[msg]") log_admin("GlobalNarrate: [key_name(usr)] : [msg]") message_admins("\blue \bold GlobalNarrate: [key_name_admin(usr)]: [msg]
", 1) feedback_add_details("admin_verb","GLN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -133,7 +133,7 @@ if( !msg ) return - M << msg + to_chat(M, msg) log_admin("DirectNarrate: [key_name(usr)] to ([key_name(M)]): [msg]") message_admins("\blue \bold DirectNarrate: [key_name_admin(usr)] to ([key_name_admin(M)]): [msg]
", 1) feedback_add_details("admin_verb","DIRN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -146,7 +146,7 @@ return M.status_flags ^= GODMODE - usr << "\blue Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]" + to_chat(usr, "\blue Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]") log_admin("[key_name(usr)] has toggled [key_name(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]") message_admins("[key_name_admin(usr)] has toggled [key_name_admin(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]", 1) @@ -161,10 +161,10 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) if(!usr || !usr.client) return if(!check_rights(R_ADMIN|R_MOD)) - usr << "Error: cmd_admin_mute: You don't have permission to do this." + to_chat(usr, "Error: cmd_admin_mute: You don't have permission to do this.") return if(!M.client) - usr << "Error: cmd_admin_mute: This mob doesn't have a client tied to it." + to_chat(usr, "Error: cmd_admin_mute: This mob doesn't have a client tied to it.") if(!M.client) return @@ -185,7 +185,7 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) M.client.prefs.muted |= mute_type log_admin("SPAM AUTOMUTE: [muteunmute] [key_name(M)] from [mute_string]") message_admins("SPAM AUTOMUTE: [muteunmute] [key_name_admin(M)] from [mute_string].", 1) - M << "You have been [muteunmute] from [mute_string] by the SPAM AUTOMUTE system. Contact an admin." + to_chat(M, "You have been [muteunmute] from [mute_string] by the SPAM AUTOMUTE system. Contact an admin.") feedback_add_details("admin_verb","AUTOMUTE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return @@ -198,7 +198,7 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) log_admin("[key_name(usr)] has [muteunmute] [key_name(M)] from [mute_string]") message_admins("[key_name_admin(usr)] has [muteunmute] [key_name_admin(M)] from [mute_string].", 1) - M << "You have been [muteunmute] from [mute_string]." + to_chat(M, "You have been [muteunmute] from [mute_string].") feedback_add_details("admin_verb","MUTE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_add_random_ai_law() @@ -235,18 +235,19 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) if(g.antagHUD) g.antagHUD = 0 // Disable it on those that have it enabled g.has_enabled_antagHUD = 2 // We'll allow them to respawn - g << "\red The Administrator has disabled AntagHUD " + to_chat(g, "\red The Administrator has disabled AntagHUD ") config.antag_hud_allowed = 0 - src << "\red AntagHUD usage has been disabled" + to_chat(src, "\red AntagHUD usage has been disabled") action = "disabled" else for(var/mob/dead/observer/g in get_ghosts()) if(!g.client.holder) // Add the verb back for all non-admin ghosts g.verbs += /mob/dead/observer/verb/toggle_antagHUD - g << "\blue The Administrator has enabled AntagHUD " // Notify all observers they can now use AntagHUD + to_chat(g, "\blue The Administrator has enabled AntagHUD ")// Notify all observers they can now use AntagHUD + config.antag_hud_allowed = 1 action = "enabled" - src << "\blue AntagHUD usage has been enabled" + to_chat(src, "\blue AntagHUD usage has been enabled") log_admin("[key_name(usr)] has [action] antagHUD usage for observers") @@ -263,19 +264,19 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) var/action="" if(config.antag_hud_restricted) for(var/mob/dead/observer/g in get_ghosts()) - g << "\blue The administrator has lifted restrictions on joining the round if you use AntagHUD" + to_chat(g, "\blue The administrator has lifted restrictions on joining the round if you use AntagHUD") action = "lifted restrictions" config.antag_hud_restricted = 0 - src << "\blue AntagHUD restrictions have been lifted" + to_chat(src, "\blue AntagHUD restrictions have been lifted") else for(var/mob/dead/observer/g in get_ghosts()) - g << "\red The administrator has placed restrictions on joining the round if you use AntagHUD" - g << "\red Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions " + to_chat(g, "\red The administrator has placed restrictions on joining the round if you use AntagHUD") + to_chat(g, "\red Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions ") g.antagHUD = 0 g.has_enabled_antagHUD = 0 action = "placed restrictions" config.antag_hud_restricted = 1 - src << "\red AntagHUD restrictions have been enabled" + to_chat(src, "\red AntagHUD restrictions have been enabled") log_admin("[key_name(usr)] has [action] on joining the round if they use AntagHUD") message_admins("Admin [key_name_admin(usr)] has [action] on joining the round if they use AntagHUD", 1) @@ -304,7 +305,7 @@ Traitors and the like can also be revived with the previous role mostly intact. break if(!G_found)//If a ghost was not found. - usr << "There is no active key like that in the game or the person is not currently a ghost." + to_chat(usr, "There is no active key like that in the game or the person is not currently a ghost.") return if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something @@ -328,7 +329,7 @@ Traitors and the like can also be revived with the previous role mostly intact. //Now to give them their mind back. G_found.mind.transfer_to(new_xeno) //be careful when doing stuff like this! I've already checked the mind isn't in use new_xeno.key = G_found.key - new_xeno << "You have been fully respawned. Enjoy the game." + to_chat(new_xeno, "You have been fully respawned. Enjoy the game.") message_admins("\blue [key_name_admin(usr)] has respawned [new_xeno.key] as a filthy xeno.", 1) return //all done. The ghost is auto-deleted @@ -433,7 +434,7 @@ Traitors and the like can also be revived with the previous role mostly intact. message_admins("\blue [key_name_admin(usr)] has respawned [key_name_admin(G_found)] as [new_character.real_name].", 1) - new_character << "You have been fully respawned. Enjoy the game." + to_chat(new_character, "You have been fully respawned. Enjoy the game.") feedback_add_details("admin_verb","RSPCH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return new_character @@ -452,7 +453,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if(candidates.len) ckey = input("Pick the player you want to respawn as a xeno.", "Suitable Candidates") as null|anything in candidates else - usr << "Error: create_xeno(): no suitable candidates." + to_chat(usr, "Error: create_xeno(): no suitable candidates.") if(!istext(ckey)) return 0 var/alien_caste = input(usr, "Please choose which caste to spawn.","Pick a caste",null) as null|anything in list("Queen","Hunter","Sentinel","Drone","Larva") @@ -484,7 +485,7 @@ Traitors and the like can also be revived with the previous role mostly intact. any = 1 //if no ghosts show up, any will just be 0 if(!any) if(notify) - src << "There doesn't appear to be any ghosts for you to select." + to_chat(src, "There doesn't appear to be any ghosts for you to select.") return for(var/mob/M in mobs) @@ -558,7 +559,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if("Yes") communications_announcement.Announce(input, customname, , , , from); if("No") - world << "\red [from] available at all communications consoles." + to_chat(world, "\red [from] available at all communications consoles.") for (var/obj/machinery/computer/communications/C in machines) if(! (C.stat & (BROKEN|NOPOWER) ) ) @@ -578,7 +579,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if("Yes") command_announcement.Announce(input, customname); if("No") - world << "\red New Nanotrasen Update available at all communication consoles." + to_chat(world, "\red New Nanotrasen Update available at all communication consoles.") for (var/obj/machinery/computer/communications/C in machines) if(! (C.stat & (BROKEN|NOPOWER) ) ) @@ -589,7 +590,7 @@ Traitors and the like can also be revived with the previous role mostly intact. C.messagetitle.Add("[command_name()] Update") C.messagetext.Add(P.info) - //world << sound('sound/AI/commandreport.ogg') +// to_chat(world, sound('sound/AI/commandreport.ogg')) log_admin("[key_name(src)] has created a communications report: [input]") message_admins("[key_name_admin(src)] has created a communications report", 1) feedback_add_details("admin_verb","CCR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -621,7 +622,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if(job_master) for(var/datum/job/job in job_master.occupations) - src << "[job.title]: [job.total_positions]" + to_chat(src, "[job.title]: [job.total_positions]") feedback_add_details("admin_verb","LFS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_explosion(atom/O as obj|mob|turf in view()) @@ -727,7 +728,7 @@ Traitors and the like can also be revived with the previous role mostly intact. var/list/L = M.get_contents() for(var/t in L) - usr << "[t]" + to_chat(usr, "[t]") feedback_add_details("admin_verb","CC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/toggle_view_range() @@ -809,9 +810,9 @@ Traitors and the like can also be revived with the previous role mostly intact. if(!check_rights(R_ADMIN)) return - usr << text("\red Attack Log for []", mob) + to_chat(usr, text("\red Attack Log for []", mob)) for(var/t in M.attack_log) - usr << t + to_chat(usr, t) feedback_add_details("admin_verb","ATTL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -824,13 +825,13 @@ Traitors and the like can also be revived with the previous role mostly intact. return if (ticker && ticker.mode) - usr << "Nope you can't do this, the game's already started. This only works before rounds!" + to_chat(usr, "Nope you can't do this, the game's already started. This only works before rounds!") return if(ticker.random_players) ticker.random_players = 0 message_admins("Admin [key_name_admin(usr)] has disabled \"Everyone is Special\" mode.", 1) - usr << "Disabled." + to_chat(usr, "Disabled.") return @@ -842,9 +843,9 @@ Traitors and the like can also be revived with the previous role mostly intact. message_admins("Admin [key_name_admin(usr)] has forced the players to have random appearances.", 1) if(notifyplayers == "Yes") - world << "\blue Admin [usr.key] has forced the players to have completely random identities!" + to_chat(world, "\blue Admin [usr.key] has forced the players to have completely random identities!") - usr << "Remember: you can always disable the randomness by using the verb again, assuming the round hasn't started yet." + to_chat(usr, "Remember: you can always disable the randomness by using the verb again, assuming the round hasn't started yet.") ticker.random_players = 1 feedback_add_details("admin_verb","MER") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -859,11 +860,11 @@ Traitors and the like can also be revived with the previous role mostly intact. if(!config.allow_random_events) config.allow_random_events = 1 - usr << "Random events enabled" + to_chat(usr, "Random events enabled") message_admins("Admin [key_name_admin(usr)] has enabled random events.", 1) else config.allow_random_events = 0 - usr << "Random events disabled" + to_chat(usr, "Random events disabled") message_admins("Admin [key_name_admin(usr)] has disabled random events.", 1) feedback_add_details("admin_verb","TRE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -877,12 +878,12 @@ Traitors and the like can also be revived with the previous role mostly intact. if(ticker.mode.ert_disabled) ticker.mode.ert_disabled = 0 - usr << "\blue ERT has been Enabled." + to_chat(usr, "\blue ERT has been Enabled.") log_admin("Admin [key_name(src)] has enabled ERT calling.") message_admins("Admin [key_name_admin(usr)] has enabled ERT calling.", 1) else ticker.mode.ert_disabled = 1 - usr << "\red ERT has been Disabled." + to_chat(usr, "\red ERT has been Disabled.") log_admin("Admin [key_name(src)] has disabled ERT calling.") message_admins("Admin [key_name_admin(usr)] has disabled ERT calling.", 1) diff --git a/code/modules/admin/verbs/striketeam.dm b/code/modules/admin/verbs/striketeam.dm index b06df8ddf02..a5b98bc888c 100644 --- a/code/modules/admin/verbs/striketeam.dm +++ b/code/modules/admin/verbs/striketeam.dm @@ -5,10 +5,10 @@ var/global/sent_strike_team = 0 /client/proc/strike_team() if(!ticker) - usr << "The game hasn't started yet!" + to_chat(usr, "The game hasn't started yet!") return if(sent_strike_team == 1) - usr << "CentComm is already sending a team." + to_chat(usr, "CentComm is already sending a team.") return if(alert("Do you want to send in the CentComm death squad? Once enabled, this is irreversible.",,"Yes","No")!="Yes") return @@ -22,7 +22,7 @@ var/global/sent_strike_team = 0 return if(sent_strike_team) - usr << "Looks like someone beat you to it." + to_chat(usr, "Looks like someone beat you to it.") return sent_strike_team = 1 @@ -71,7 +71,7 @@ var/global/sent_strike_team = 0 new_commando.mind.store_memory("Nuke Code: \red [nuke_code].") new_commando.mind.store_memory("Mission: \red [input].") - new_commando << "\blue You are a Special Ops. [!leader_selected?"commando":"LEADER"] in the service of Central Command. Check the table ahead for detailed instructions.\nYour current mission is: \red[input]" + to_chat(new_commando, "\blue You are a Special Ops. [!leader_selected?"commando":"LEADER"] in the service of Central Command. Check the table ahead for detailed instructions.\nYour current mission is: \red[input]") commando_number-- diff --git a/code/modules/admin/verbs/striketeam_syndicate.dm b/code/modules/admin/verbs/striketeam_syndicate.dm index d609b5f8ac7..6131962b881 100644 --- a/code/modules/admin/verbs/striketeam_syndicate.dm +++ b/code/modules/admin/verbs/striketeam_syndicate.dm @@ -7,7 +7,7 @@ var/global/sent_syndicate_strike_team = 0 set name = "Spawn Syndicate Strike Team" set desc = "Spawns a squad of commandos in the Syndicate Mothership if you want to run an admin event." if(!src.holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return if(!ticker) alert("The game hasn't started yet!") @@ -27,7 +27,7 @@ var/global/sent_syndicate_strike_team = 0 return if(sent_syndicate_strike_team) - src << "Looks like someone beat you to it." + to_chat(src, "Looks like someone beat you to it.") return sent_syndicate_strike_team = 1 @@ -78,7 +78,7 @@ var/global/sent_syndicate_strike_team = 0 new_syndicate_commando.mind.store_memory("Nuke Code: \red [nuke_code].") new_syndicate_commando.mind.store_memory("Mission: \red [input].") - new_syndicate_commando << "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red[input]" + to_chat(new_syndicate_commando, "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red[input]") syndicate_commando_number-- diff --git a/code/modules/admin/verbs/ticklag.dm b/code/modules/admin/verbs/ticklag.dm index defe8f7d846..cabf767b620 100644 --- a/code/modules/admin/verbs/ticklag.dm +++ b/code/modules/admin/verbs/ticklag.dm @@ -19,6 +19,6 @@ if("Yes") config.Tickcomp = 1 else config.Tickcomp = 0 else - src << "\red Error: ticklag(): Invalid world.ticklag value. No changes made." + to_chat(src, "\red Error: ticklag(): Invalid world.ticklag value. No changes made.") diff --git a/code/modules/admin/verbs/tripAI.dm b/code/modules/admin/verbs/tripAI.dm index 35219c4c1c8..6c95873a7da 100644 --- a/code/modules/admin/verbs/tripAI.dm +++ b/code/modules/admin/verbs/tripAI.dm @@ -3,20 +3,20 @@ set name = "Create AI Triumvirate" if(ticker.current_state > GAME_STATE_PREGAME) - usr << "This option is currently only usable during pregame. This may change at a later date." + to_chat(usr, "This option is currently only usable during pregame. This may change at a later date.") return if(job_master && ticker) var/datum/job/job = job_master.GetJob("AI") if(!job) - usr << "Unable to locate the AI job" + to_chat(usr, "Unable to locate the AI job") return if(ticker.triai) ticker.triai = 0 - usr << "Only one AI will be spawned at round start." + to_chat(usr, "Only one AI will be spawned at round start.") message_admins("\blue [key_name_admin(usr)] has toggled off triple AIs at round start.", 1) else ticker.triai = 1 - usr << "There will be an AI Triumvirate at round start." + to_chat(usr, "There will be an AI Triumvirate at round start.") message_admins("\blue [key_name_admin(usr)] has toggled on triple AIs at round start.", 1) return diff --git a/code/modules/admin/watchlist.dm b/code/modules/admin/watchlist.dm index e6332dad786..1ac267f1037 100644 --- a/code/modules/admin/watchlist.dm +++ b/code/modules/admin/watchlist.dm @@ -12,13 +12,13 @@ log_game("SQL ERROR obtaining ckey from player table. Error : \[[err]\]\n") return if(!query_watchfind.NextRow()) - usr << "[new_ckey] has not been seen before, you can only add known players." + to_chat(usr, "[new_ckey] has not been seen before, you can only add known players.") return else target_ckey = new_ckey var/target_sql_ckey = sanitizeSQL(target_ckey) if(check_watchlist(target_sql_ckey)) - usr << "[target_sql_ckey] is already on the watchlist." + to_chat(usr, "[target_sql_ckey] is already on the watchlist.") return var/reason = input(usr,"Please state the reason","Reason") as message|null if(!reason) diff --git a/code/modules/arcade/arcade_base.dm b/code/modules/arcade/arcade_base.dm index da83338b5f3..2835d2451e3 100644 --- a/code/modules/arcade/arcade_base.dm +++ b/code/modules/arcade/arcade_base.dm @@ -23,16 +23,16 @@ /obj/machinery/arcade/examine(mob/user) ..(user) if(freeplay) - user << "Someone enabled freeplay on this machine!" + to_chat(user, "Someone enabled freeplay on this machine!") else if(token_price) - user << "\The [src.name] costs [token_price] credits per play." + to_chat(user, "\The [src.name] costs [token_price] credits per play.") if(!tokens) - user << "\The [src.name] has no available play credits. Better feed the machine!" + to_chat(user, "\The [src.name] has no available play credits. Better feed the machine!") else if(tokens == 1) - user << "\The [src.name] has only 1 play credit left!" + to_chat(user, "\The [src.name] has only 1 play credit left!") else - user << "\The [src.name] has [tokens] play credits!" + to_chat(user, "\The [src.name] has [tokens] play credits!") /obj/machinery/arcade/attack_hand(mob/user as mob) if(..()) @@ -47,7 +47,7 @@ if(stat & BROKEN || panel_open) return if(!tokens && !freeplay) - user << "\The [src.name] doesn't have enough credits to play! Pay first!" + to_chat(user, "\The [src.name] doesn't have enough credits to play! Pay first!") return if(!in_use && (tokens || freeplay)) in_use = 1 @@ -55,14 +55,14 @@ return if(in_use) if(src != user.machine) - user << "Someone else is already playing this machine, please wait your turn!" + to_chat(user, "Someone else is already playing this machine, please wait your turn!") return /obj/machinery/arcade/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/weapon/screwdriver) && anchored) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.") update_icon() return if(!freeplay) @@ -84,7 +84,7 @@ /obj/machinery/arcade/proc/pay_with_cash(var/obj/item/weapon/spacecash/cashmoney, var/mob/user) if(cashmoney.get_total() < token_price) - user << "\icon[cashmoney] That is not enough money." + to_chat(user, "\icon[cashmoney] That is not enough money.") return 0 visible_message("[usr] inserts a credit chip into [src].") var/left = cashmoney.get_total() - token_price @@ -98,11 +98,11 @@ visible_message("[usr] swipes a card through [src].") var/datum/money_account/customer_account = attempt_account_access_nosec(I.associated_account_number) if (!customer_account) - user <<"Error: Unable to access account. Please contact technical support if problem persists." + to_chat(user, "Error: Unable to access account. Please contact technical support if problem persists.") return 0 if(customer_account.suspended) - user << "Unable to access account: account suspended." + to_chat(user, "Unable to access account: account suspended.") return 0 // Have the customer punch in the PIN before checking if there's enough money. Prevents people from figuring out acct is @@ -112,11 +112,11 @@ customer_account = attempt_account_access(I.associated_account_number, attempt_pin, 2) if(!customer_account) - user << "Unable to access account: incorrect credentials." + to_chat(user, "Unable to access account: incorrect credentials.") return 0 if(token_price > customer_account.money) - user << "Insufficient funds in account." + to_chat(user, "Insufficient funds in account.") return 0 else // Okay to move the money at this point diff --git a/code/modules/arcade/prize_counter.dm b/code/modules/arcade/prize_counter.dm index 9c3dfe875fe..5f66881cea6 100644 --- a/code/modules/arcade/prize_counter.dm +++ b/code/modules/arcade/prize_counter.dm @@ -38,12 +38,12 @@ tickets += T.amount qdel(T) else - user << "\The [T] seems stuck to your hand!" + to_chat(user, "\The [T] seems stuck to your hand!") return if(istype(O, /obj/item/weapon/screwdriver) && anchored) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.") update_icon() return if(panel_open) @@ -179,9 +179,9 @@ td.cost.toomuch { updateUsrDialog() return if(!global_prizes.PlaceOrder(src, itemID)) - usr << "Unable to complete the exchange." + to_chat(usr, "Unable to complete the exchange.") else - usr << "You've successfully purchased the item." + to_chat(usr, "You've successfully purchased the item.") interact(usr) return diff --git a/code/modules/assembly/assembly.dm b/code/modules/assembly/assembly.dm index 485c8756375..9a61921764d 100644 --- a/code/modules/assembly/assembly.dm +++ b/code/modules/assembly/assembly.dm @@ -114,7 +114,7 @@ attach_assembly(var/obj/item/device/assembly/A, var/mob/user) holder = new/obj/item/device/assembly_holder(get_turf(src)) if(holder.attach(A,src,user)) - user << "\blue You attach \the [A] to \the [src]!" + to_chat(user, "\blue You attach \the [A] to \the [src]!") return 1 return 0 @@ -127,9 +127,9 @@ return if(istype(W, /obj/item/weapon/screwdriver)) if(toggle_secure()) - user << "\blue \The [src] is ready!" + to_chat(user, "\blue \The [src] is ready!") else - user << "\blue \The [src] can now be attached!" + to_chat(user, "\blue \The [src] can now be attached!") return ..() return @@ -144,9 +144,9 @@ ..(user) if((in_range(src, user) || loc == user)) if(secured) - user << "\The [src] is ready!" + to_chat(user, "\The [src] is ready!") else - user << "\The [src] can be attached!" + to_chat(user, "\The [src] can be attached!") attack_self(mob/user as mob) diff --git a/code/modules/assembly/bomb.dm b/code/modules/assembly/bomb.dm index dbda18e7b71..3bf0775473c 100644 --- a/code/modules/assembly/bomb.dm +++ b/code/modules/assembly/bomb.dm @@ -29,7 +29,7 @@ return if(istype(W, /obj/item/weapon/wrench) && !status) //This is basically bomb assembly code inverted. apparently it works. - user << "You disassemble [src]." + to_chat(user, "You disassemble [src].") bombassembly.loc = user.loc bombassembly.master = null @@ -46,11 +46,11 @@ status = 1 bombers += "[key_name(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]" msg_admin_attack("[key_name_admin(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]") - user << "A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited." + to_chat(user, "A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.") else status = 0 bombers += "[key_name(user)] unwelded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]" - user << "The hole has been closed." + to_chat(user, "The hole has been closed.") add_fingerprint(user) ..() diff --git a/code/modules/assembly/holder.dm b/code/modules/assembly/holder.dm index 1d48afde8a5..6333fbca635 100644 --- a/code/modules/assembly/holder.dm +++ b/code/modules/assembly/holder.dm @@ -70,9 +70,9 @@ ..(user) if ((in_range(src, user) || src.loc == user)) if (src.secured) - user << "\The [src] is ready!" + to_chat(user, "\The [src] is ready!") else - user << "\The [src] can be attached!" + to_chat(user, "\The [src] can be attached!") HasProximity(atom/movable/AM as mob|obj) @@ -140,15 +140,15 @@ attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/screwdriver)) if(!a_left || !a_right) - user << "\red BUG:Assembly part missing, please report this!" + to_chat(user, "\red BUG:Assembly part missing, please report this!") return a_left.toggle_secure() a_right.toggle_secure() secured = !secured if(secured) - user << "\blue \The [src] is ready!" + to_chat(user, "\blue \The [src] is ready!") else - user << "\blue \The [src] can now be taken apart!" + to_chat(user, "\blue \The [src] can now be taken apart!") update_icon() return else @@ -160,7 +160,7 @@ src.add_fingerprint(user) if(src.secured) if(!a_left || !a_right) - user << "\red Assembly part missing!" + to_chat(user, "\red Assembly part missing!") return if(istype(a_left,a_right.type))//If they are the same type it causes issues due to window code switch(alert("Which side would you like to use?",,"Left","Right")) diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index 75c40dcb8b0..e78060ea63e 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -11,7 +11,7 @@ examine(mob/user) ..(user) if(armed) - user << "It looks like it's armed." + to_chat(user, "It looks like it's armed.") activate() if(..()) @@ -20,7 +20,7 @@ if(ishuman(usr)) var/mob/living/carbon/human/user = usr if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50))) - user << "Your hand slips, setting off the trigger." + to_chat(user, "Your hand slips, setting off the trigger.") pulse(0) update_icon() if(usr) @@ -68,7 +68,7 @@ attack_self(mob/living/user as mob) if(!armed) - user << "You arm [src]." + to_chat(user, "You arm [src].") else if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50))) var/which_hand = "l_hand" @@ -78,7 +78,7 @@ user.visible_message("[user] accidentally sets off [src], breaking their fingers.", \ "You accidentally trigger [src]!") return - user << "You disarm [src]." + to_chat(user, "You disarm [src].") armed = !armed update_icon() playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3) @@ -142,4 +142,4 @@ return layer = TURF_LAYER+0.2 - usr << "You hide [src]." \ No newline at end of file + to_chat(usr, "You hide [src].") diff --git a/code/modules/assembly/shock_kit.dm b/code/modules/assembly/shock_kit.dm index d34dc9e4c76..6c5c9e4e5bb 100644 --- a/code/modules/assembly/shock_kit.dm +++ b/code/modules/assembly/shock_kit.dm @@ -31,7 +31,7 @@ return if(istype(W, /obj/item/weapon/screwdriver)) status = !status - user << "[src] is now [status ? "secured" : "unsecured"]!" + to_chat(user, "[src] is now [status ? "secured" : "unsecured"]!") add_fingerprint(user) return diff --git a/code/modules/atmos_automation/implementation/digital_valves.dm b/code/modules/atmos_automation/implementation/digital_valves.dm index d9121aa3f34..ce778a58aa1 100644 --- a/code/modules/atmos_automation/implementation/digital_valves.dm +++ b/code/modules/atmos_automation/implementation/digital_valves.dm @@ -37,7 +37,7 @@ if(!isnull(V.id_tag) && V.frequency == parent.frequency) valves|=V.id_tag if(valves.len==0) - usr << "Unable to find any digital valves on this frequency." + to_chat(usr, "Unable to find any digital valves on this frequency.") return valve = input("Select a valve:", "Sensor Data", valve) as null|anything in valves parent.updateUsrDialog() diff --git a/code/modules/atmos_automation/implementation/emitters.dm b/code/modules/atmos_automation/implementation/emitters.dm index 0e0dc2720cf..c0b04399385 100644 --- a/code/modules/atmos_automation/implementation/emitters.dm +++ b/code/modules/atmos_automation/implementation/emitters.dm @@ -35,7 +35,7 @@ if(!isnull(E.id_tag) && E.frequency == parent.frequency) emitters|=E.id_tag if(emitters.len==0) - usr << "Unable to find any emitters on this frequency." + to_chat(usr, "Unable to find any emitters on this frequency.") return emitter = input("Select an emitter:", "Emitter", emitter) as null|anything in emitters parent.updateUsrDialog() diff --git a/code/modules/atmos_automation/implementation/vent_pump.dm b/code/modules/atmos_automation/implementation/vent_pump.dm index ff1c2cbdc44..7601d89f0c3 100644 --- a/code/modules/atmos_automation/implementation/vent_pump.dm +++ b/code/modules/atmos_automation/implementation/vent_pump.dm @@ -46,7 +46,7 @@ injector_names |= I.id_tag else for(var/obj/machinery/atmospherics/binary/dp_vent_pump/I in world) - //world << "test" +// to_chat(world, "test") if(!isnull(I.id_tag) && I.frequency == parent.frequency) injector_names |= I.id_tag diff --git a/code/modules/awaymissions/bluespaceartillery.dm b/code/modules/awaymissions/bluespaceartillery.dm index 39dd9180ea0..670d8143390 100644 --- a/code/modules/awaymissions/bluespaceartillery.dm +++ b/code/modules/awaymissions/bluespaceartillery.dm @@ -11,7 +11,7 @@ light_color = LIGHT_COLOR_LIGHTBLUE /obj/machinery/computer/artillerycontrol/attack_ai(user as mob) - user << "Access denied." + to_chat(user, "Access denied.") return /obj/machinery/computer/artillerycontrol/attack_hand(user as mob) diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm index cc4ddb95856..39ac1f49676 100644 --- a/code/modules/awaymissions/gateway.dm +++ b/code/modules/awaymissions/gateway.dm @@ -97,10 +97,10 @@ obj/machinery/gateway/centerstation/process() if(!awaygate) awaygate = locate(/obj/machinery/gateway/centeraway) in world if(!awaygate) - user << "Error: No destination found." + to_chat(user, "Error: No destination found.") return if(world.time < wait) - user << "Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes." + to_chat(user, "Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.") return for(var/obj/machinery/gateway/G in linked) @@ -149,7 +149,7 @@ obj/machinery/gateway/centerstation/process() /obj/machinery/gateway/centerstation/attackby(obj/item/device/W as obj, mob/user as mob, params) if(istype(W,/obj/item/device/multitool)) - user << "\black The gate is already calibrated, there is no work for you to do here." + to_chat(user, "\black The gate is already calibrated, there is no work for you to do here.") return /////////////////////////////////////Away//////////////////////// @@ -204,7 +204,7 @@ obj/machinery/gateway/centerstation/process() if(!stationgate) stationgate = locate(/obj/machinery/gateway/centerstation) in world if(!stationgate) - user << "Error: No destination found." + to_chat(user, "Error: No destination found.") return for(var/obj/machinery/gateway/G in linked) @@ -246,16 +246,16 @@ obj/machinery/gateway/centerstation/process() /obj/machinery/gateway/centeraway/proc/exilecheck(var/mob/living/carbon/M) for(var/obj/item/weapon/implant/exile/E in M)//Checking that there is an exile implant in the contents if(E.imp_in == M)//Checking that it's actually implanted vs just in their pocket - M << "The station gate has detected your exile implant and is blocking your entry." + to_chat(M, "The station gate has detected your exile implant and is blocking your entry.") return 1 return 0 /obj/machinery/gateway/centeraway/attackby(obj/item/device/W as obj, mob/user as mob, params) if(istype(W,/obj/item/device/multitool)) if(calibrated) - user << "The gate is already calibrated, there is no work for you to do here." + to_chat(user, "The gate is already calibrated, there is no work for you to do here.") return else - user << "Recalibration successful!: This gate's systems have been fine tuned. Travel to this gate will now be on target." + to_chat(user, "Recalibration successful!: This gate's systems have been fine tuned. Travel to this gate will now be on target.") calibrated = 1 return diff --git a/code/modules/awaymissions/maploader/writer.dm b/code/modules/awaymissions/maploader/writer.dm index 81c6a396033..44151c60e02 100644 --- a/code/modules/awaymissions/maploader/writer.dm +++ b/code/modules/awaymissions/maploader/writer.dm @@ -36,7 +36,7 @@ dmm_suite{ fdel("[map_name].dmm") } var/saved_map = file("[map_name].dmm") - saved_map << file_text + to_chat(saved_map, file_text) return saved_map } write_map(var/turf/t1 as turf, var/turf/t2 as turf, var/flags as num){ diff --git a/code/modules/awaymissions/mission_code/wildwest.dm b/code/modules/awaymissions/mission_code/wildwest.dm index 577304c7e38..d28d67f1f35 100644 --- a/code/modules/awaymissions/mission_code/wildwest.dm +++ b/code/modules/awaymissions/mission_code/wildwest.dm @@ -55,18 +55,18 @@ usr.set_machine(src) if(chargesa <= 0) - user << "The Wish Granter lies silent." + to_chat(user, "The Wish Granter lies silent.") return else if(!istype(user, /mob/living/carbon/human)) - user << "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's." + to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.") return else if(is_special_character(user)) - user << "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away." + to_chat(user, "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away.") else if (!insistinga) - user << "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?" + to_chat(user, "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?") insistinga++ else @@ -75,71 +75,71 @@ var/wish = input("You want...","Wish") as null|anything in list("Power","Wealth","Immortality","To Kill","Peace") switch(wish) if("Power") - user << "Your wish is granted, but at a terrible cost..." - user << "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart." + to_chat(user, "Your wish is granted, but at a terrible cost...") + to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.") user.mutations.Add(LASER) user.mutations.Add(RESIST_COLD) user.mutations.Add(XRAY) if(ishuman(user)) var/mob/living/carbon/human/human = user if(human.species.name != "Shadow") - user << "\red Your flesh rapidly mutates!" - user << "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids." - user << "\red Your body reacts violently to light. \green However, it naturally heals in darkness." - user << "Aside from your new traits, you are mentally unchanged and retain your prior obligations." + to_chat(user, "\red Your flesh rapidly mutates!") + to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.") + to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.") + to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.") human.set_species("Shadow") user.regenerate_icons() if("Wealth") - user << "Your wish is granted, but at a terrible cost..." - user << "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart." + to_chat(user, "Your wish is granted, but at a terrible cost...") + to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.") new /obj/structure/closet/syndicate/resources/everything(loc) if(ishuman(user)) var/mob/living/carbon/human/human = user if(human.species.name != "Shadow") - user << "\red Your flesh rapidly mutates!" - user << "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids." - user << "\red Your body reacts violently to light. \green However, it naturally heals in darkness." - user << "Aside from your new traits, you are mentally unchanged and retain your prior obligations." + to_chat(user, "\red Your flesh rapidly mutates!") + to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.") + to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.") + to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.") human.set_species("Shadow") user.regenerate_icons() if("Immortality") - user << "Your wish is granted, but at a terrible cost..." - user << "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart." + to_chat(user, "Your wish is granted, but at a terrible cost...") + to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.") user.verbs += /mob/living/carbon/proc/immortality if(ishuman(user)) var/mob/living/carbon/human/human = user if(human.species.name != "Shadow") - user << "\red Your flesh rapidly mutates!" - user << "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids." - user << "\red Your body reacts violently to light. \green However, it naturally heals in darkness." - user << "Aside from your new traits, you are mentally unchanged and retain your prior obligations." + to_chat(user, "\red Your flesh rapidly mutates!") + to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.") + to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.") + to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.") human.set_species("Shadow") user.regenerate_icons() if("To Kill") - user << "Your wish is granted, but at a terrible cost..." - user << "The Wish Granter punishes you for your wickedness, claiming your soul and warping your body to match the darkness in your heart." + to_chat(user, "Your wish is granted, but at a terrible cost...") + to_chat(user, "The Wish Granter punishes you for your wickedness, claiming your soul and warping your body to match the darkness in your heart.") ticker.mode.traitors += user.mind user.mind.special_role = "traitor" var/datum/objective/hijack/hijack = new hijack.owner = user.mind user.mind.objectives += hijack - user << "Your inhibitions are swept away, the bonds of loyalty broken, you are free to murder as you please!" + to_chat(user, "Your inhibitions are swept away, the bonds of loyalty broken, you are free to murder as you please!") var/obj_count = 1 for(var/datum/objective/OBJ in user.mind.objectives) - user << "Objective #[obj_count]: [OBJ.explanation_text]" + to_chat(user, "Objective #[obj_count]: [OBJ.explanation_text]") obj_count++ if(ishuman(user)) var/mob/living/carbon/human/human = user if(human.species.name != "Shadow") - user << "\red Your flesh rapidly mutates!" - user << "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids." - user << "\red Your body reacts violently to light. \green However, it naturally heals in darkness." - user << "Aside from your new traits, you are mentally unchanged and retain your prior obligations." + to_chat(user, "\red Your flesh rapidly mutates!") + to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.") + to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.") + to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.") human.set_species("Shadow") user.regenerate_icons() if("Peace") - user << "Whatever alien sentience that the Wish Granter possesses is satisfied with your wish. There is a distant wailing as the last of the Faithless begin to die, then silence." - user << "You feel as if you just narrowly avoided a terrible fate..." + to_chat(user, "Whatever alien sentience that the Wish Granter possesses is satisfied with your wish. There is a distant wailing as the last of the Faithless begin to die, then silence.") + to_chat(user, "You feel as if you just narrowly avoided a terrible fate...") for(var/mob/living/simple_animal/hostile/faithless/F in world) F.health = -10 F.stat = 2 @@ -172,7 +172,7 @@ if(istype(M, /mob/living/carbon/human)) for(var/mob/O in viewers(world.view, src.loc)) - O << "[M] triggered the \icon[src] [src]" + to_chat(O, "[M] triggered the \icon[src] [src]") triggered = 1 call(src,triggerproc)(M) @@ -193,9 +193,9 @@ var/mob/living/carbon/C = usr if(!C.stat) - C << "You're not dead yet!" + to_chat(C, "You're not dead yet!") return - C << "Death is not your end!" + to_chat(C, "Death is not your end!") spawn(rand(800,1200)) if(C.stat == DEAD) @@ -212,7 +212,7 @@ C.radiation = 0 C.heal_overall_damage(C.getBruteLoss(), C.getFireLoss()) C.reagents.clear_reagents() - C << "You have regenerated." + to_chat(C, "You have regenerated.") C.visible_message("[usr] appears to wake from the dead, having healed all wounds.") C.update_canmove() return 1 \ No newline at end of file diff --git a/code/modules/awaymissions/trigger.dm b/code/modules/awaymissions/trigger.dm index 38b086f5869..2a41eee85c3 100644 --- a/code/modules/awaymissions/trigger.dm +++ b/code/modules/awaymissions/trigger.dm @@ -4,7 +4,7 @@ /obj/effect/step_trigger/message/Trigger(mob/M as mob) if(M.client) - M << "[message]" + to_chat(M, "[message]") if(once) qdel(src) diff --git a/code/modules/client/asset_cache.dm b/code/modules/client/asset_cache.dm index a49cfe03ccc..33254cc7d2d 100644 --- a/code/modules/client/asset_cache.dm +++ b/code/modules/client/asset_cache.dm @@ -92,7 +92,7 @@ You can set verify to TRUE if you want send() to sleep until the client has the if(!unreceived || !unreceived.len) return 0 if (unreceived.len >= ASSET_CACHE_TELL_CLIENT_AMOUNT) - client << "Sending Resources..." + to_chat(client, "Sending Resources...") for(var/asset in unreceived) if (asset in asset_cache) client << browse_rsc(asset_cache[asset], asset) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 2670fcd6376..31db10045f0 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -28,16 +28,17 @@ return #if defined(TOPIC_DEBUGGING) - world << "[src]'s Topic: [href] destined for [hsrc]." + to_chat(world, "[src]'s Topic: [href] destined for [hsrc].") #endif if(href_list["nano_err"]) //nano throwing errors if(topic_debugging) - src << "## NanoUI: " + html_decode(href_list["nano_err"]) //NANO DEBUG HOOK + to_chat(src, "## NanoUI: " + html_decode(href_list["nano_err"]))//NANO DEBUG HOOK + if(href_list["asset_cache_confirm_arrival"]) - //src << "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED." +// to_chat(src, "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED.") var/job = text2num(href_list["asset_cache_confirm_arrival"]) completed_asset_jobs += job return @@ -65,10 +66,10 @@ if(href_list["irc_msg"]) if(!holder && received_irc_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes - usr << "You are no longer able to use this, it's been more then 10 minutes since an admin on IRC has responded to you" + to_chat(usr, "You are no longer able to use this, it's been more then 10 minutes since an admin on IRC has responded to you") return if(mute_irc) - usr << "" + to_chat(usr, "") return cmd_admin_irc_pm() return @@ -77,7 +78,7 @@ //Logs all hrefs if(config && config.log_hrefs && href_logfile) - href_logfile << "[time2text(world.timeofday,"hh:mm")] [src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]
" + to_chat(href_logfile, "[time2text(world.timeofday,"hh:mm")] [src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]
") switch(href_list["karmashop"]) if("tab") @@ -90,49 +91,49 @@ switch(href_list["KarmaBuy"]) if("1") if(karma <5) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Barber",5) return if("2") if(karma <5) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Brig Physician",5) return if("3") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Nanotrasen Representative",30) return if("5") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Blueshield",30) return if("6") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Mechanic",30) return if("7") if(karma <45) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Magistrate",45) return if("9") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_job_unlock("Security Pod Pilot",30) @@ -142,42 +143,42 @@ switch(href_list["KarmaBuy2"]) if("1") if(karma <15) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Machine",15) return if("2") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Kidan",30) return if("3") if(karma <30) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Grey",30) return if("4") if(karma <45) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Vox",45) return if("5") if(karma <45) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Slime People",45) return if("6") if(karma <100) - usr << "You do not have enough karma!" + to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Plasmaman",100) @@ -199,7 +200,7 @@ /client/proc/is_content_unlocked() if(!prefs.unlock_content) - src << "Become a BYOND member to access member-perks and features, as well as support the engine that makes this game possible. Click here to find out more." + to_chat(src, "Become a BYOND member to access member-perks and features, as well as support the engine that makes this game possible. Click here to find out more.") return 0 return 1 @@ -207,11 +208,11 @@ if(config.automute_on && !holder && src.last_message == message) src.last_message_count++ if(src.last_message_count >= SPAM_TRIGGER_AUTOMUTE) - src << "\red You have exceeded the spam filter limit for identical messages. An auto-mute was applied." + to_chat(src, "\red You have exceeded the spam filter limit for identical messages. An auto-mute was applied.") cmd_admin_mute(src.mob, mute_type, 1) return 1 if(src.last_message_count >= SPAM_TRIGGER_WARNING) - src << "\red You are nearing the spam filter limit for identical messages." + to_chat(src, "\red You are nearing the spam filter limit for identical messages.") return 0 else last_message = message @@ -221,13 +222,13 @@ //This stops files larger than UPLOAD_LIMIT being sent from client to server via input(), client.Import() etc. /client/AllowUpload(filename, filelength) if(filelength > UPLOAD_LIMIT) - src << "Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB." + to_chat(src, "Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.") return 0 /* //Don't need this at the moment. But it's here if it's needed later. //Helps prevent multiple files being uploaded at once. Or right after eachother. var/time_to_wait = fileaccess_timer - world.time if(time_to_wait > 0) - src << "Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds." + to_chat(src, "Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.") return 0 fileaccess_timer = world.time + FTPDELAY */ return 1 @@ -254,7 +255,7 @@ src.preload_rsc = pick(config.resource_urls) else src.preload_rsc = 1 // If config.resource_urls is not set, preload like normal. - src << "\red If the title screen is black, resources are still downloading. Please be patient until the title screen appears." + to_chat(src, "\red If the title screen is black, resources are still downloading. Please be patient until the title screen appears.") clients += src @@ -277,10 +278,10 @@ . = ..() //calls mob.Login() if(custom_event_msg && custom_event_msg != "") - src << "

Custom Event

" - src << "

A custom event is taking place. OOC Info:

" - src << "[html_encode(custom_event_msg)]" - src << "
" + to_chat(src, "

Custom Event

") + to_chat(src, "

A custom event is taking place. OOC Info:

") + to_chat(src, "[html_encode(custom_event_msg)]") + to_chat(src, "
") if( (world.address == address || !address) && !host ) host = key @@ -301,7 +302,7 @@ if (ckey in clientmessages) for (var/message in clientmessages[ckey]) - src << message + to_chat(src, message) clientmessages.Remove(ckey) @@ -313,7 +314,7 @@ screen += void if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them. - src << "Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you." + to_chat(src, "Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.") ////////////// @@ -431,4 +432,4 @@ var/message = "[lang.name] : [lang.type]" if(lang.flags & RESTRICTED) message += " (RESTRICTED)" - world << "[message]" + to_chat(world, "[message]") diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index a64ae9f443c..4f28c69cf96 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -262,7 +262,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts //display limbs below var/ind = 0 for(var/name in organ_data) - //world << "[ind] \ [organ_data.len]" +// to_chat(world, "[ind] \ [organ_data.len]") var/status = organ_data[name] var/organ_name = null switch(name) @@ -673,7 +673,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts return if (!isnum(desiredLvl)) - user << "\red UpdateJobPreference - desired level was not a number. Please notify coders!" + to_chat(user, "\red UpdateJobPreference - desired level was not a number. Please notify coders!") ShowChoices(user) return @@ -1057,7 +1057,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts if(new_name) real_name = new_name else - user << "Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and ." + to_chat(user, "Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .") if("age") var/new_age = input(user, "Choose your character's age:\n([AGE_MIN]-[AGE_MAX])", "Character Preference") as num|null @@ -1583,7 +1583,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts var/cleaned_r = sql_sanitize_text(r) if(r != cleaned_r) // up to no good message_admins("[user] attempted an href exploit! (This could have possibly lead to a \"Bobby Tables\" exploit, so they're probably up to no good). String: [r] ID: [last_id] IP: [last_ip]") - user << "Stop right there, criminal scum" + to_chat(user, "Stop right there, criminal scum") else be_special ^= r @@ -1599,9 +1599,9 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts if("lobby_music") sound ^= SOUND_LOBBY if(sound & SOUND_LOBBY) - user << sound(ticker.login_music, repeat = 0, wait = 0, volume = 85, channel = 1) + to_chat(user, sound(ticker.login_music, repeat = 0, wait = 0, volume = 85, channel = 1)) else - user << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) + to_chat(user, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1)) if("ghost_ears") toggles ^= CHAT_GHOSTEARS diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm index d1c100c37c7..afb70577dd0 100644 --- a/code/modules/client/preferences_toggles.dm +++ b/code/modules/client/preferences_toggles.dm @@ -4,7 +4,7 @@ set category = "Preferences" set desc = ".Toggle Between seeing all mob speech, and only speech of nearby mobs" prefs.toggles ^= CHAT_GHOSTEARS - src << "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTEARS) ? "see all speech in the world" : "only see speech from nearby mobs"]." + to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTEARS) ? "see all speech in the world" : "only see speech from nearby mobs"].") prefs.save_preferences(src) feedback_add_details("admin_verb","TGE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -13,7 +13,7 @@ set category = "Preferences" set desc = ".Toggle Between seeing all mob emotes, and only emotes of nearby mobs" prefs.toggles ^= CHAT_GHOSTSIGHT - src << "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTSIGHT) ? "see all emotes in the world" : "only see emotes from nearby mobs"]." + to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTSIGHT) ? "see all emotes in the world" : "only see emotes from nearby mobs"].") prefs.save_preferences(src) feedback_add_details("admin_verb","TGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -22,7 +22,7 @@ set category = "Preferences" set desc = ".Toggle between hearing all radio chatter, or only from nearby speakers" prefs.toggles ^= CHAT_GHOSTRADIO - src << "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTRADIO) ? "hear all radio chat in the world" : "only hear from nearby speakers"]." + to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTRADIO) ? "hear all radio chat in the world" : "only hear from nearby speakers"].") prefs.save_preferences(src) feedback_add_details("admin_verb","TGR") @@ -33,7 +33,7 @@ if(!holder) return prefs.toggles ^= CHAT_RADIO prefs.save_preferences(src) - usr << "You will [(prefs.toggles & CHAT_RADIO) ? "now" : "no longer"] see radio chatter from radios or speakers" + to_chat(usr, "You will [(prefs.toggles & CHAT_RADIO) ? "now" : "no longer"] see radio chatter from radios or speakers") feedback_add_details("admin_verb","THR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/toggleadminhelpsound() @@ -43,7 +43,7 @@ if(!holder) return prefs.sound ^= SOUND_ADMINHELP prefs.save_preferences(src) - usr << "You will [(prefs.sound & SOUND_ADMINHELP) ? "now" : "no longer"] hear a sound when adminhelps arrive." + to_chat(usr, "You will [(prefs.sound & SOUND_ADMINHELP) ? "now" : "no longer"] hear a sound when adminhelps arrive.") feedback_add_details("admin_verb","AHS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/deadchat() // Deadchat toggle is usable by anyone. @@ -54,9 +54,9 @@ prefs.save_preferences(src) if(src.holder) - src << "You will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat." + to_chat(src, "You will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.") else - src << "As a ghost, you will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat." + to_chat(src, "As a ghost, you will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.") feedback_add_details("admin_verb","TDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -66,7 +66,7 @@ set desc = "Toggles seeing prayers" prefs.toggles ^= CHAT_PRAYER prefs.save_preferences(src) - src << "You will [(prefs.toggles & CHAT_PRAYER) ? "now" : "no longer"] see prayerchat." + to_chat(src, "You will [(prefs.toggles & CHAT_PRAYER) ? "now" : "no longer"] see prayerchat.") feedback_add_details("admin_verb","TP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/togglescoreboard() @@ -75,7 +75,7 @@ set desc = "Toggles displaying end of round scoreboard" prefs.toggles ^= DISABLE_SCOREBOARD prefs.save_preferences(src) - src << "You will [(prefs.toggles & DISABLE_SCOREBOARD) ? "no longer" : "now"] see the end of round scoreboard." + to_chat(src, "You will [(prefs.toggles & DISABLE_SCOREBOARD) ? "no longer" : "now"] see the end of round scoreboard.") feedback_add_details("admin_verb","TScoreboard") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/togglekarmareminder() @@ -84,7 +84,7 @@ set desc = "Toggles displaying end of round karma reminder" prefs.toggles ^= DISABLE_KARMA_REMINDER prefs.save_preferences(src) - src << "You will [(prefs.toggles & DISABLE_KARMA_REMINDER) ? "no longer" : "now"] see the end of round karma reminder." + to_chat(src, "You will [(prefs.toggles & DISABLE_KARMA_REMINDER) ? "no longer" : "now"] see the end of round karma reminder.") feedback_add_details("admin_verb","TKarmabugger") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/toggletitlemusic() @@ -94,13 +94,14 @@ prefs.sound ^= SOUND_LOBBY prefs.save_preferences(src) if(prefs.sound & SOUND_LOBBY) - src << "You will now hear music in the game lobby." + to_chat(src, "You will now hear music in the game lobby.") if(istype(mob, /mob/new_player)) playtitlemusic() else - src << "You will no longer hear music in the game lobby." + to_chat(src, "You will no longer hear music in the game lobby.") if(istype(mob, /mob/new_player)) - src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // stop the jamsz + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))// stop the jamsz + feedback_add_details("admin_verb","TLobby") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/togglemidis() @@ -110,12 +111,13 @@ prefs.sound ^= SOUND_MIDI prefs.save_preferences(src) if(prefs.sound & SOUND_MIDI) - src << "You will now hear any sounds uploaded by admins." + to_chat(src, "You will now hear any sounds uploaded by admins.") else var/sound/break_sound = sound(null, repeat = 0, wait = 0, channel = 777) break_sound.priority = 250 - src << break_sound //breaks the client's sound output on channel 777 - src << "You will no longer hear sounds uploaded by admins; any currently playing midis have been disabled." + to_chat(src, break_sound)//breaks the client's sound output on channel 777 + + to_chat(src, "You will no longer hear sounds uploaded by admins; any currently playing midis have been disabled.") feedback_add_details("admin_verb","TMidi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/listen_ooc() @@ -124,7 +126,7 @@ set desc = "Toggles seeing OutOfCharacter chat" prefs.toggles ^= CHAT_OOC prefs.save_preferences(src) - src << "You will [(prefs.toggles & CHAT_OOC) ? "now" : "no longer"] see messages on the OOC channel." + to_chat(src, "You will [(prefs.toggles & CHAT_OOC) ? "now" : "no longer"] see messages on the OOC channel.") feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -134,7 +136,7 @@ set desc = "Toggles seeing Local OutOfCharacter chat" prefs.toggles ^= CHAT_LOOC prefs.save_preferences(src) - src << "You will [(prefs.toggles & CHAT_LOOC) ? "now" : "no longer"] see messages on the LOOC channel." + to_chat(src, "You will [(prefs.toggles & CHAT_LOOC) ? "now" : "no longer"] see messages on the LOOC channel.") feedback_add_details("admin_verb","TLOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -145,10 +147,10 @@ prefs.sound ^= SOUND_AMBIENCE prefs.save_preferences(src) if(prefs.sound & SOUND_AMBIENCE) - src << "You will now hear ambient sounds." + to_chat(src, "You will now hear ambient sounds.") else - src << "You will no longer hear ambient sounds." - src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 1) + to_chat(src, "You will no longer hear ambient sounds.") + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 1)) feedback_add_details("admin_verb","TAmbi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/Toggle_Buzz() //No more headaches because headphones bump up shipambience.ogg to insanity levels. @@ -158,10 +160,10 @@ prefs.sound ^= SOUND_BUZZ prefs.save_preferences(src) if(prefs.sound & SOUND_BUZZ) - src << "You will now hear ambient white noise." + to_chat(src, "You will now hear ambient white noise.") else - src << "You will no longer hear ambient white noise." - src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 2) + to_chat(src, "You will no longer hear ambient white noise.") + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 2)) feedback_add_details("admin_verb","TBuzz") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -172,11 +174,11 @@ prefs.sound ^= SOUND_HEARTBEAT prefs.save_preferences(src) if(prefs.sound & SOUND_HEARTBEAT) - src << "You will now hear heartbeat sounds." + to_chat(src, "You will now hear heartbeat sounds.") else - src << "You will no longer hear heartbeat sounds." - src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 1) - src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 2) + to_chat(src, "You will no longer hear heartbeat sounds.") + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 1)) + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 2)) feedback_add_details("admin_verb","Thb") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! // This needs a toggle because you people are awful and spammed terrible music @@ -187,9 +189,9 @@ prefs.toggles ^= SOUND_INSTRUMENTS prefs.save_preferences(src) if(prefs.toggles & SOUND_INSTRUMENTS) - src << "You will now hear people playing musical instruments." + to_chat(src, "You will now hear people playing musical instruments.") else - src << "You will no longer hear musical instruments." + to_chat(src, "You will no longer hear musical instruments.") feedback_add_details("admin_verb","TInstru") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/verb/toggle_media() @@ -199,7 +201,7 @@ prefs.sound ^= SOUND_STREAMING prefs.save_preferences(src) - usr << "You will [(prefs.sound & SOUND_STREAMING) ? "now" : "no longer"] hear streamed media." + to_chat(usr, "You will [(prefs.sound & SOUND_STREAMING) ? "now" : "no longer"] hear streamed media.") if(!media) return if(prefs.sound & SOUND_STREAMING) media.update_music() diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 1257117237d..a5749ca40d0 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -51,7 +51,7 @@ wearable = 1 if(!wearable) - M << "\red Your species cannot wear [src]." + to_chat(M, "\red Your species cannot wear [src].") return 0 return 1 @@ -200,7 +200,7 @@ BLIND // can't see anything species_restricted -= "Tajaran" update_icon() else - user << "[src] have already been clipped!" + to_chat(user, "[src] have already been clipped!") return else ..() @@ -213,29 +213,29 @@ BLIND // can't see anything if (istype(M, /mob/dead/)) return if (user.stat || user.restrained()) return if(has_sensor >= 2) - user << "The controls are locked." + to_chat(user, "The controls are locked.") return 0 if(has_sensor <= 0) - user << "This suit does not have any sensors." + to_chat(user, "This suit does not have any sensors.") return 0 var/list/modes = list("Off", "Binary sensors", "Vitals tracker", "Tracking beacon") var/switchMode = input("Select a sensor mode:", "Suit Sensor Mode", modes[sensor_mode + 1]) in modes if(get_dist(user, src) > 1) - user << "You have moved too far away." + to_chat(user, "You have moved too far away.") return sensor_mode = modes.Find(switchMode) - 1 if (src.loc == user) switch(sensor_mode) if(0) - user << "You disable your suit's remote sensing equipment." + to_chat(user, "You disable your suit's remote sensing equipment.") if(1) - user << "Your suit will now report whether you are live or dead." + to_chat(user, "Your suit will now report whether you are live or dead.") if(2) - user << "Your suit will now report your vital lifesigns." + to_chat(user, "Your suit will now report your vital lifesigns.") if(3) - user << "Your suit will now report your vital lifesigns as well as your coordinate position." + to_chat(user, "Your suit will now report your vital lifesigns as well as your coordinate position.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user if(H.w_uniform == src) @@ -303,7 +303,7 @@ BLIND // can't see anything Had to use this instead of initial() because initial reverted to the wrong state.*/ gas_transfer_coefficient = initial(gas_transfer_coefficient) permeability_coefficient = initial(permeability_coefficient) - user << "You push \the [src] back into place." + to_chat(user, "You push \the [src] back into place.") mask_adjusted = 0 slot_flags = initial(slot_flags) if(flags_inv != initial(flags_inv)) @@ -324,7 +324,7 @@ BLIND // can't see anything user.put_in_hands(src) else icon_state += "_up" - user << "You push \the [src] out of the way." + to_chat(user, "You push \the [src] out of the way.") gas_transfer_coefficient = null permeability_coefficient = null mask_adjusted = 1 @@ -393,7 +393,7 @@ BLIND // can't see anything M.dropped() user.visible_message("[user] crushes the [M] into the bottom of [src], extinguishing it.","You crush the [M] into the bottom of [src], extinguishing it.") else // Match has been previously lit and extinguished. - user << "The [M] has already been extinguished." + to_chat(user, "The [M] has already been extinguished.") return if(istype(I, /obj/item/weapon/wirecutters)) @@ -411,7 +411,7 @@ BLIND // can't see anything species_restricted -= "Tajaran" update_icon() else - user << "[src] have already had their toes cut open!" + to_chat(user, "[src] have already had their toes cut open!") return else ..() @@ -463,7 +463,7 @@ BLIND // can't see anything item_state = copytext(item_state, 1, findtext(item_state, "_open")) if(adjust_flavour) flavour = "[copytext(adjust_flavour, 3, lentext(adjust_flavour) + 1)] up" //Trims off the 'un' at the beginning of the word. unzip -> zip, unbutton->button. - user << "You [flavour] \the [src]." + to_chat(user, "You [flavour] \the [src].") suit_adjusted = 0 //Suit is no longer adjusted. else var/flavour = "open" @@ -471,7 +471,7 @@ BLIND // can't see anything item_state += "_open" if(adjust_flavour) flavour = "[adjust_flavour]" - user << "You [flavour] \the [src]." + to_chat(user, "You [flavour] \the [src].") suit_adjusted = 1 //Suit's adjusted. else if(user.canUnEquip(src)) //Checks to see if the item can be unequipped. If so, lets shred. Otherwise, struggle and fail. @@ -487,11 +487,12 @@ BLIND // can't see anything qdel(src) //Now that the pockets have been emptied, we can safely destroy the jacket. user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!")) else - user << "You yank and pull at \the [src] with your [pick("excessive", "extreme", "insane", "monstrous", "ridiculous", "unreal", "stupendous")] [pick("power", "strength")], however you are unable to change its state!" //Yep, that's all they get. Avoids having to snowflake in a cooldown. + to_chat(user, "You yank and pull at \the [src] with your [pick("excessive", "extreme", "insane", "monstrous", "ridiculous", "unreal", "stupendous")] [pick("power", "strength")], however you are unable to change its state!")//Yep, that's all they get. Avoids having to snowflake in a cooldown. + return user.update_inv_wear_suit() else - user << "You attempt to button up the velcro on \the [src], before promptly realising how retarded you are." + to_chat(user, "You attempt to button up the velcro on \the [src], before promptly realising how retarded you are.") /obj/item/clothing/suit/verb/openjacket(var/mob/user) //The verb you can use to adjust jackets. set name = "Open/Close Jacket" @@ -599,7 +600,7 @@ BLIND // can't see anything return else - user << "You cannot attach more accessories of this type to [src]." + to_chat(user, "You cannot attach more accessories of this type to [src].") if(accessories.len) for(var/obj/item/clothing/accessory/A in accessories) @@ -642,16 +643,16 @@ BLIND // can't see anything ..(user) switch(src.sensor_mode) if(0) - user << "Its sensors appear to be disabled." + to_chat(user, "Its sensors appear to be disabled.") if(1) - user << "Its binary life sensors appear to be enabled." + to_chat(user, "Its binary life sensors appear to be enabled.") if(2) - user << "Its vital tracker appears to be enabled." + to_chat(user, "Its vital tracker appears to be enabled.") if(3) - user << "Its vital tracker and tracking beacon appear to be enabled." + to_chat(user, "Its vital tracker and tracking beacon appear to be enabled.") if(accessories.len) for(var/obj/item/clothing/accessory/A in accessories) - user << "\A [A] is attached to it." + to_chat(user, "\A [A] is attached to it.") /obj/item/clothing/under/verb/rollsuit() @@ -663,12 +664,12 @@ BLIND // can't see anything if(copytext(item_color,-2) != "_d") basecolor = item_color - usr << "DEBUG:[basecolor]" + to_chat(usr, "DEBUG:[basecolor]") if(basecolor + "_d_s" in icon_states('icons/mob/uniform.dmi')) item_color = item_color == "[basecolor]" ? "[basecolor]_d" : "[basecolor]" usr.update_inv_w_uniform() else - usr << "You cannot roll down the uniform!" + to_chat(usr, "You cannot roll down the uniform!") /obj/item/clothing/under/proc/remove_accessory(mob/user, obj/item/clothing/accessory/A) if(!(A in accessories)) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index fc89300fcf0..521b934d34a 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -24,11 +24,11 @@ if(prescription_upgradable) if(istype(O, /obj/item/clothing/glasses/regular)) if(prescription) - H << "You can't possibly imagine how adding more lenses would improve \the [name]." + to_chat(H, "You can't possibly imagine how adding more lenses would improve \the [name].") return H.unEquip(O) O.loc = src // Store the glasses for later removal - H << "You fit \the [name] with lenses from \the [O]." + to_chat(H, "You fit \the [name] with lenses from \the [O].") prescription = 1 name = "prescription [name]" return @@ -36,7 +36,7 @@ var/obj/item/clothing/glasses/regular/G = locate() in src if(!G) G = new(get_turf(H)) - H << "You salvage the prescription lenses from \the [name]." + to_chat(H, "You salvage the prescription lenses from \the [name].") prescription = 0 name = initial(name) H.put_in_hands(G) @@ -264,7 +264,7 @@ playsound(src.loc, 'sound/misc/yeah.ogg', 100, 0) usr.visible_message("YEEEAAAAAHHHHHHHHHHHHH!!") else - usr << "The moment is gone." + to_chat(usr, "The moment is gone.") /obj/item/clothing/glasses/sunglasses/reagent @@ -324,7 +324,7 @@ src.flags |= GLASSESCOVERSEYES flags_inv |= HIDEEYES icon_state = initial(icon_state) - usr << "You flip the [src] down to protect your eyes." + to_chat(usr, "You flip the [src] down to protect your eyes.") flash_protect = 2 tint = initial(tint) //better than istype else @@ -332,7 +332,7 @@ src.flags &= ~HEADCOVERSEYES flags_inv &= ~HIDEEYES icon_state = "[initial(icon_state)]up" - usr << "You push the [src] up out of your face." + to_chat(usr, "You push the [src] up out of your face.") flash_protect = 0 tint = 0 @@ -392,7 +392,7 @@ emp_act(severity) if(istype(src.loc, /mob/living/carbon/human)) var/mob/living/carbon/human/M = src.loc - M << "\red The Optical Thermal Scanner overloads and blinds you!" + to_chat(M, "\red The Optical Thermal Scanner overloads and blinds you!") if(M.glasses == src) M.eye_blind = 3 M.eye_blurry = 5 diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm index 3c7c10b792c..4a0af4392fa 100644 --- a/code/modules/clothing/gloves/rings.dm +++ b/code/modules/clothing/gloves/rings.dm @@ -21,21 +21,21 @@ icon_state = initial(icon_state) examine(mob/user) ..(user) - user << "This one is made of [material]." + to_chat(user, "This one is made of [material].") if(stud) - user << "It is adorned with a single gem." + to_chat(user, "It is adorned with a single gem.") /obj/item/clothing/gloves/ring/attackby(obj/item/I as obj, mob/user as mob, params) if(istype(I, /obj/item/stack/sheet/mineral/diamond)) var/obj/item/stack/sheet/mineral/diamond/D = I if(stud) - usr << "The [src] already has a gem." + to_chat(usr, "The [src] already has a gem.") else if(D.amount >= 1) D.use(1) stud = 1 update_icon() - usr << "You socket the diamond into the [src]." + to_chat(usr, "You socket the diamond into the [src].") // s'pensive /obj/item/clothing/gloves/ring/silver diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm index 062ff9e978b..5dc555a10d7 100644 --- a/code/modules/clothing/head/hardhat.dm +++ b/code/modules/clothing/head/hardhat.dm @@ -13,7 +13,8 @@ attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]" //To prevent some lighting anomalities. + to_chat(user, "You cannot turn the light on while in this [user.loc]")//To prevent some lighting anomalities. + return on = !on icon_state = "hardhat[on]_[item_color]" diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index 1e6708994f2..eb38be7395d 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -24,7 +24,7 @@ flags ^= visor_flags flags_inv ^= visor_flags_inv icon_state = "[initial(icon_state)][up ? "up" : ""]" - user << "[up ? alt_toggle_message : toggle_message] \the [src]" + to_chat(user, "[up ? alt_toggle_message : toggle_message] \the [src]") user.update_inv_head() diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index 4c83ec37782..e1bfc0c1282 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -58,7 +58,7 @@ src.flags |= (HEADCOVERSEYES | HEADCOVERSMOUTH) flags_inv |= (HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE) icon_state = initial(icon_state) - usr << "You flip the [src] down to protect your eyes." + to_chat(usr, "You flip the [src] down to protect your eyes.") flash_protect = 2 tint = 2 else @@ -66,7 +66,7 @@ src.flags &= ~(HEADCOVERSEYES | HEADCOVERSMOUTH) flags_inv &= ~(HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE) icon_state = "[initial(icon_state)]up" - usr << "You push the [src] up out of your face." + to_chat(usr, "You push the [src] up out of your face.") flash_protect = 0 tint = 0 usr.update_inv_head() //so our mob-overlays update @@ -130,11 +130,11 @@ if(src.icon_state == "ushankadown") src.icon_state = "ushankaup" src.item_state = "ushankaup" - user << "You raise the ear flaps on the ushanka." + to_chat(user, "You raise the ear flaps on the ushanka.") else src.icon_state = "ushankadown" src.item_state = "ushankadown" - user << "You lower the ear flaps on the ushanka." + to_chat(user, "You lower the ear flaps on the ushanka.") /* * Pumpkin head diff --git a/code/modules/clothing/head/soft_caps.dm b/code/modules/clothing/head/soft_caps.dm index 45a4c9f4141..e14057b32b1 100644 --- a/code/modules/clothing/head/soft_caps.dm +++ b/code/modules/clothing/head/soft_caps.dm @@ -19,10 +19,10 @@ src.flipped = !src.flipped if(src.flipped) icon_state = "[item_color]soft_flipped" - usr << "You flip the hat backwards." + to_chat(usr, "You flip the hat backwards.") else icon_state = "[item_color]soft" - usr << "You flip the hat back in normal position." + to_chat(usr, "You flip the hat back in normal position.") usr.update_inv_head() //so our mob-overlays update /obj/item/clothing/head/soft/red diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index 62aec510e90..b13c2968f34 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -45,7 +45,7 @@ src.flags |= (MASKCOVERSEYES) flags_inv |= (HIDEEYES) icon_state = initial(icon_state) - usr << "You flip the [src] down to protect your eyes." + to_chat(usr, "You flip the [src] down to protect your eyes.") flash_protect = 2 tint = 2 else @@ -53,7 +53,7 @@ src.flags &= ~(MASKCOVERSEYES) flags_inv &= ~(HIDEEYES) icon_state = "[initial(icon_state)]up" - usr << "You push the [src] up out of your face." + to_chat(usr, "You push the [src] up out of your face.") flash_protect = 0 tint = 0 usr.update_inv_wear_mask() //so our mob-overlays update @@ -110,7 +110,7 @@ if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] - M << "Your Clown Mask has now morphed into [choice], all praise the Honk Mother!" + to_chat(M, "Your Clown Mask has now morphed into [choice], all praise the Honk Mother!") return 1 /obj/item/clothing/mask/gas/clownwiz @@ -247,19 +247,19 @@ if(istype(W, /obj/item/weapon/screwdriver)) switch(aggressiveness) if(1) - user << "\blue You set the restrictor to the middle position." + to_chat(user, "\blue You set the restrictor to the middle position.") aggressiveness = 2 if(2) - user << "\blue You set the restrictor to the last position." + to_chat(user, "\blue You set the restrictor to the last position.") aggressiveness = 3 if(3) - user << "\blue You set the restrictor to the first position." + to_chat(user, "\blue You set the restrictor to the first position.") aggressiveness = 1 if(4) - user << "\red You adjust the restrictor but nothing happens, probably because its broken." + to_chat(user, "\red You adjust the restrictor but nothing happens, probably because its broken.") else if(istype(W, /obj/item/weapon/wirecutters)) if(aggressiveness != 4) - user << "\red You broke it!" + to_chat(user, "\red You broke it!") aggressiveness = 4 else ..() @@ -270,7 +270,7 @@ /obj/item/clothing/mask/gas/sechailer/emag_act(mob/user as mob) if(safety) safety = 0 - user << "You silently fry [src]'s vocal circuit with the cryptographic sequencer." + to_chat(user, "You silently fry [src]'s vocal circuit with the cryptographic sequencer.") else return diff --git a/code/modules/clothing/masks/voice.dm b/code/modules/clothing/masks/voice.dm index 2defc8402e0..190804d1a92 100644 --- a/code/modules/clothing/masks/voice.dm +++ b/code/modules/clothing/masks/voice.dm @@ -15,7 +15,7 @@ set src in usr changer.active = !changer.active - usr << "You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src]." + to_chat(usr, "You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src].") /obj/item/clothing/mask/gas/voice/verb/Set_Voice(name as text) set category = "Object" @@ -24,7 +24,7 @@ var/voice = sanitize(copytext(name,1,MAX_MESSAGE_LEN)) if(!voice || !length(voice)) return changer.voice = voice - usr << "You are now mimicking [changer.voice]." + to_chat(usr, "You are now mimicking [changer.voice].") /obj/item/clothing/mask/gas/voice/New() ..() diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index d4572017361..48b9ffa7589 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -19,7 +19,7 @@ src.slowdown = slowdown_active magpulse = !magpulse icon_state = "[magboot_state][magpulse]" - user << "You [magpulse ? "enable" : "disable"] the mag-pulse traction system." + to_chat(user, "You [magpulse ? "enable" : "disable"] the mag-pulse traction system.") user.update_inv_shoes() //so our mob-overlays update user.update_gravity(user.mob_has_gravity()) @@ -28,7 +28,7 @@ /obj/item/clothing/shoes/magboots/examine(mob/user) ..(user) - user << "Its mag-pulse traction system appears to be [magpulse ? "enabled" : "disabled"]." + to_chat(user, "Its mag-pulse traction system appears to be [magpulse ? "enabled" : "disabled"].") /obj/item/clothing/shoes/magboots/advance diff --git a/code/modules/clothing/spacesuits/alien.dm b/code/modules/clothing/spacesuits/alien.dm index d5354f94683..d5fcbdf3251 100644 --- a/code/modules/clothing/spacesuits/alien.dm +++ b/code/modules/clothing/spacesuits/alien.dm @@ -205,22 +205,22 @@ flags &= ~NOSLIP magpulse = 0 flags |= NODROP - user << "You relax your deathgrip on the flooring." + to_chat(user, "You relax your deathgrip on the flooring.") else //make sure these can only be used when equipped. if(!ishuman(user)) return var/mob/living/carbon/human/H = user if (H.shoes != src) - user << "You will have to put on the [src] before you can do that." + to_chat(user, "You will have to put on the [src] before you can do that.") return flags |= NOSLIP magpulse = 1 flags &= ~NODROP //kinda hard to take off magclaws when you are gripping them tightly. - user << "You dig your claws deeply into the flooring, bracing yourself." - user << "It would be hard to take off the [src] without relaxing your grip first." + to_chat(user, "You dig your claws deeply into the flooring, bracing yourself.") + to_chat(user, "It would be hard to take off the [src] without relaxing your grip first.") //In case they somehow come off while enabled. /obj/item/clothing/shoes/magboots/vox/dropped(mob/user as mob) @@ -234,7 +234,8 @@ /obj/item/clothing/shoes/magboots/vox/examine(mob/user) ..(user) if (magpulse) - user << "It would be hard to take these off without relaxing your grip first." //theoretically this message should only be seen by the wearer when the claws are equipped. + to_chat(user, "It would be hard to take these off without relaxing your grip first.")//theoretically this message should only be seen by the wearer when the claws are equipped. + /obj/item/clothing/suit/space/eva/vox name = "Vox EVA Suit" diff --git a/code/modules/clothing/spacesuits/breaches.dm b/code/modules/clothing/spacesuits/breaches.dm index 780a763b3bd..a7f8baf7a7a 100644 --- a/code/modules/clothing/spacesuits/breaches.dm +++ b/code/modules/clothing/spacesuits/breaches.dm @@ -55,7 +55,7 @@ var/global/list/breach_burn_descriptors = list( /obj/item/clothing/suit/space/proc/repair_breaches(var/damtype, var/amount, var/mob/user) if(!can_breach || !breaches || !breaches.len || !damage) - user << "There are no breaches to repair on \the [src]." + to_chat(user, "There are no breaches to repair on \the [src].") return var/list/valid_breaches = list() @@ -65,7 +65,7 @@ var/global/list/breach_burn_descriptors = list( valid_breaches += B if(!valid_breaches.len) - user << "There are no breaches to repair on \the [src]." + to_chat(user, "There are no breaches to repair on \the [src].") return var/amount_left = amount @@ -178,11 +178,11 @@ var/global/list/breach_burn_descriptors = list( if(istype(W,/obj/item/stack/sheet/mineral/plastic) || istype(W,/obj/item/stack/sheet/metal)) if(istype(src.loc,/mob/living)) - user << "\red How do you intend to patch a hardsuit while someone is wearing it?" + to_chat(user, "\red How do you intend to patch a hardsuit while someone is wearing it?") return if(!damage || !burn_damage) - user << "There is no surface damage on \the [src] to repair." + to_chat(user, "There is no surface damage on \the [src] to repair.") return var/obj/item/stack/sheet/P = W @@ -197,16 +197,16 @@ var/global/list/breach_burn_descriptors = list( else if(istype(W, /obj/item/weapon/weldingtool)) if(istype(src.loc,/mob/living)) - user << "\red How do you intend to patch a hardsuit while someone is wearing it?" + to_chat(user, "\red How do you intend to patch a hardsuit while someone is wearing it?") return if (!damage || ! brute_damage) - user << "There is no structural damage on \the [src] to repair." + to_chat(user, "There is no structural damage on \the [src] to repair.") return var/obj/item/weapon/weldingtool/WT = W if(!WT.remove_fuel(5)) - user << "\red You need more welding fuel to repair this suit." + to_chat(user, "\red You need more welding fuel to repair this suit.") return repair_breaches(BRUTE, 3, user) @@ -218,4 +218,4 @@ var/global/list/breach_burn_descriptors = list( ..(user) if(can_breach && breaches && breaches.len) for(var/datum/breach/B in breaches) - user << "\red It has \a [B.descriptor]." \ No newline at end of file + to_chat(user, "\red It has \a [B.descriptor].") diff --git a/code/modules/clothing/spacesuits/chronosuit.dm b/code/modules/clothing/spacesuits/chronosuit.dm index f128220b4d6..334e659302b 100644 --- a/code/modules/clothing/spacesuits/chronosuit.dm +++ b/code/modules/clothing/spacesuits/chronosuit.dm @@ -61,7 +61,7 @@ switch(severity) if(1) if(user && ishuman(user) && (user.wear_suit == src)) - user << "Elecrtromagnetic pulse detected, shutting down systems to preserve integrity..." + to_chat(user, "Elecrtromagnetic pulse detected, shutting down systems to preserve integrity...") deactivate() /obj/item/clothing/suit/space/chronos/proc/chronowalk(var/mob/living/carbon/human/user) @@ -131,24 +131,24 @@ var/mob/living/carbon/human/user = src.loc if(user && ishuman(user)) if(user.wear_suit == src) - user << "\nChronosuitMK4 login: root" - user << "Password:\n" - user << "root@ChronosuitMK4# chronowalk4 --start\n" + to_chat(user, "\nChronosuitMK4 login: root") + to_chat(user, "Password:\n") + to_chat(user, "root@ChronosuitMK4# chronowalk4 --start\n") if(user.head && istype(user.head, /obj/item/clothing/head/helmet/space/chronos)) - user << "\[ ok \] Mounting /dev/helmet" + to_chat(user, "\[ ok \] Mounting /dev/helmet") helmet = user.head helmet.flags |= NODROP helmet.suit = src src.flags |= NODROP - user << "\[ ok \] Starting brainwave scanner" - user << "\[ ok \] Starting ui display driver" - user << "\[ ok \] Initializing chronowalk4-view" + to_chat(user, "\[ ok \] Starting brainwave scanner") + to_chat(user, "\[ ok \] Starting ui display driver") + to_chat(user, "\[ ok \] Initializing chronowalk4-view") new_camera(user) processing_objects.Add(src) activated = 1 else - user << "\[ fail \] Mounting /dev/helmet" - user << "FATAL: Unable to locate /dev/helmet. Aborting..." + to_chat(user, "\[ fail \] Mounting /dev/helmet") + to_chat(user, "FATAL: Unable to locate /dev/helmet. Aborting...") cooldown = world.time + cooldowntime activating = 0 return 0 @@ -159,18 +159,19 @@ var/mob/living/carbon/human/user = src.loc if(user && ishuman(user)) if(user.wear_suit == src) - user << "\nroot@ChronosuitMK4# chronowalk4 --stop\n" + to_chat(user, "\nroot@ChronosuitMK4# chronowalk4 --stop\n") if(camera) - user << "\[ ok \] Sending TERM signal to chronowalk4-view" //yes I know they aren't a different color when shutting down, but they were too similar at a glance + to_chat(user, "\[ ok \] Sending TERM signal to chronowalk4-view")//yes I know they aren't a different color when shutting down, but they were too similar at a glance + qdel(camera) if(helmet) - user << "\[ ok \] Stopping ui display driver" - user << "\[ ok \] Stopping brainwave scanner" - user << "\[ ok \] Unmounting /dev/helmet" + to_chat(user, "\[ ok \] Stopping ui display driver") + to_chat(user, "\[ ok \] Stopping brainwave scanner") + to_chat(user, "\[ ok \] Unmounting /dev/helmet") helmet.flags &= ~NODROP helmet.suit = null helmet = null - user << "logout" + to_chat(user, "logout") src.flags &= ~NODROP cooldown = world.time + cooldowntime * 1.5 activated = 0 diff --git a/code/modules/clothing/spacesuits/ert.dm b/code/modules/clothing/spacesuits/ert.dm index 669c10d34c3..4015f107e51 100644 --- a/code/modules/clothing/spacesuits/ert.dm +++ b/code/modules/clothing/spacesuits/ert.dm @@ -17,11 +17,11 @@ camera.network = list("ERT") cameranet.removeCamera(camera) camera.c_tag = user.name - user << "\blue User scanned as [camera.c_tag]. Camera activated." + to_chat(user, "\blue User scanned as [camera.c_tag]. Camera activated.") /obj/item/clothing/head/helmet/space/rig/ert/examine(mob/user) if(..(user, 1)) - user << "This helmet has a built-in camera. It's [camera ? "" : "in"]active." + to_chat(user, "This helmet has a built-in camera. It's [camera ? "" : "in"]active.") /obj/item/clothing/suit/space/rig/ert name = "emergency response team suit" diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm index ca4d59fbe6a..8e3fdefbb65 100644 --- a/code/modules/clothing/spacesuits/plasmamen.dm +++ b/code/modules/clothing/spacesuits/plasmamen.dm @@ -22,7 +22,7 @@ /obj/item/clothing/suit/space/eva/plasmaman/examine(mob/user) ..(user) - user << "There are [extinguishes_left] extinguisher canisters left in this suit." + to_chat(user, "There are [extinguishes_left] extinguisher canisters left in this suit.") /obj/item/clothing/suit/space/eva/plasmaman/proc/Extinguish(var/mob/user) var/mob/living/carbon/human/H=user @@ -32,7 +32,7 @@ next_extinguish = world.time + extinguish_cooldown extinguishes_left-- - H << "Your suit automatically extinguishes the fire." + to_chat(H, "Your suit automatically extinguishes the fire.") H.ExtinguishMob() /obj/item/clothing/head/helmet/space/eva/plasmaman @@ -50,7 +50,8 @@ /obj/item/clothing/head/helmet/space/eva/plasmaman/attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]." //To prevent some lighting anomalities. + to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities. + return toggle_light(user) diff --git a/code/modules/clothing/spacesuits/rig.dm b/code/modules/clothing/spacesuits/rig.dm index 92862aa3861..72a32c1e0cb 100644 --- a/code/modules/clothing/spacesuits/rig.dm +++ b/code/modules/clothing/spacesuits/rig.dm @@ -31,7 +31,8 @@ /obj/item/clothing/head/helmet/space/rig/attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]." //To prevent some lighting anomalities. + to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities. + return toggle_light(user) @@ -104,9 +105,9 @@ if(attached_helmet && helmet) if(H.head) - M << "You are unable to deploy your suit's helmet as \the [H.head] is in the way." + to_chat(M, "You are unable to deploy your suit's helmet as \the [H.head] is in the way.") else - M << "Your suit's helmet deploys with a hiss." + to_chat(M, "Your suit's helmet deploys with a hiss.") //TODO: Species check, skull damage for forcing an unfitting helmet on? helmet.forceMove(H) H.equip_to_slot(helmet, slot_head) @@ -114,9 +115,9 @@ if(attached_boots && boots) if(H.shoes) - M << "You are unable to deploy your suit's magboots as \the [H.shoes] are in the way." + to_chat(M, "You are unable to deploy your suit's magboots as \the [H.shoes] are in the way.") else - M << "Your suit's boots deploy with a hiss." + to_chat(M, "Your suit's boots deploy with a hiss.") boots.forceMove(H) H.equip_to_slot(boots, slot_shoes) boots.flags |= NODROP @@ -151,7 +152,7 @@ return if(!helmet) - usr << "There is no helmet installed." + to_chat(usr, "There is no helmet installed.") return var/mob/living/carbon/human/H = usr @@ -164,17 +165,17 @@ helmet.flags &= ~NODROP H.unEquip(helmet) helmet.loc = src - H << "You retract your hardsuit helmet." + to_chat(H, "You retract your hardsuit helmet.") else if(H.head) - H << "You cannot deploy your helmet while wearing another helmet." + to_chat(H, "You cannot deploy your helmet while wearing another helmet.") return //TODO: Species check, skull damage for forcing an unfitting helmet on? helmet.loc = H helmet.pickup(H) H.equip_to_slot(helmet, slot_head) helmet.flags |= NODROP - H << "You deploy your hardsuit helmet, sealing you off from the world." + to_chat(H, "You deploy your hardsuit helmet, sealing you off from the world.") H.update_inv_head() /obj/item/clothing/suit/space/rig/attackby(obj/item/W as obj, mob/user as mob, params) @@ -182,33 +183,33 @@ return if(istype(src.loc,/mob/living)) - user << "How do you propose to modify a hardsuit while it is being worn?" + to_chat(user, "How do you propose to modify a hardsuit while it is being worn?") return if(istype(W,/obj/item/weapon/screwdriver)) if(!helmet) - user << "\The [src] does not have a helmet installed." + to_chat(user, "\The [src] does not have a helmet installed.") else - user << "You detach \the [helmet] from \the [src]'s helmet mount." + to_chat(user, "You detach \the [helmet] from \the [src]'s helmet mount.") helmet.loc = get_turf(src) src.helmet = null return if(!boots) - user << "\The [src] does not have any boots installed." + to_chat(user, "\The [src] does not have any boots installed.") else - user << "You detach \the [boots] from \the [src]'s boot mounts." + to_chat(user, "You detach \the [boots] from \the [src]'s boot mounts.") boots.loc = get_turf(src) boots = null return else if(istype(W,/obj/item/clothing/head/helmet/space)) if(!attached_helmet) - user << "\The [src] does not have a helmet mount." + to_chat(user, "\The [src] does not have a helmet mount.") return if(helmet) - user << "\The [src] already has a helmet installed." + to_chat(user, "\The [src] already has a helmet installed.") else - user << "You attach \the [W] to \the [src]'s helmet mount." + to_chat(user, "You attach \the [W] to \the [src]'s helmet mount.") user.drop_item() W.loc = src src.helmet = W @@ -216,13 +217,13 @@ else if(istype(W,/obj/item/clothing/shoes/magboots)) if(!attached_boots) - user << "\The [src] does not have boot mounts." + to_chat(user, "\The [src] does not have boot mounts.") return if(boots) - user << "\The [src] already has magboots installed." + to_chat(user, "\The [src] already has magboots installed.") else - user << "You attach \the [W] to \the [src]'s boot mounts." + to_chat(user, "You attach \the [W] to \the [src]'s boot mounts.") user.drop_item() W.loc = src boots = W @@ -304,12 +305,13 @@ /obj/item/clothing/head/helmet/space/rig/syndi/attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot toggle your helmet while in this [user.loc]." //To prevent some lighting anomalities. + to_chat(user, "You cannot toggle your helmet while in this [user.loc].")//To prevent some lighting anomalities. + return on = !on if(on) - user << "You switch your helmet to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor." + to_chat(user, "You switch your helmet to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor.") name = "blood-red hardsuit helmet" desc = "A dual-mode advanced helmet designed for work in special operations. It is in travel mode. Property of Gorlex Marauders." flags = HEADCOVERSEYES | BLOCKHAIR | HEADCOVERSMOUTH | STOPSPRESSUREDMAGE | THICKMATERIAL | NODROP @@ -317,7 +319,7 @@ cold_protection = HEAD set_light(brightness_on) else - user << "You switch your helmet to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight." + to_chat(user, "You switch your helmet to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight.") name = "blood-red hardsuit helmet (combat)" desc = "A dual-mode advanced helmet designed for work in special operations. It is in combat mode. Property of Gorlex Marauders." flags = BLOCKHAIR | THICKMATERIAL | NODROP @@ -348,7 +350,7 @@ /obj/item/clothing/suit/space/rig/syndi/attack_self(mob/user) on = !on if(on) - user << "You switch your hardsuit to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor." + to_chat(user, "You switch your hardsuit to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor.") name = "blood-red hardsuit" desc = "A dual-mode advanced hardsuit designed for work in special operations. It is in travel mode. Property of Gorlex Marauders." slowdown = 1 @@ -356,7 +358,7 @@ flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT cold_protection = UPPER_TORSO | LOWER_TORSO | LEGS | FEET | ARMS | HANDS else - user << "You switch your hardsuit to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight." + to_chat(user, "You switch your hardsuit to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight.") name = "blood-red hardsuit (combat)" desc = "A dual-mode advanced hardsuit designed for work in special operations. It is in combat mode. Property of Gorlex Marauders." slowdown = 0 diff --git a/code/modules/clothing/spacesuits/rig/modules/combat.dm b/code/modules/clothing/spacesuits/rig/modules/combat.dm index 5dc87417901..2473fd24eb8 100644 --- a/code/modules/clothing/spacesuits/rig/modules/combat.dm +++ b/code/modules/clothing/spacesuits/rig/modules/combat.dm @@ -51,10 +51,10 @@ return 0 if(accepted_item.charges >= 5) - user << "Another grenade of that type will not fit into the module." + to_chat(user, "Another grenade of that type will not fit into the module.") return 0 - user << "You slot \the [input_device] into the suit module." + to_chat(user, "You slot \the [input_device] into the suit module.") user.unEquip(input_device) qdel(input_device) accepted_item.charges++ @@ -71,7 +71,7 @@ var/mob/living/carbon/human/H = holder.wearer if(!charge_selected) - H << "You have not selected a grenade type." + to_chat(H, "You have not selected a grenade type.") return 0 var/datum/rig_charge/charge = charges[charge_selected] @@ -80,7 +80,7 @@ return 0 if(charge.charges <= 0) - H << "Insufficient grenades!" + to_chat(H, "Insufficient grenades!") return 0 charge.charges-- @@ -186,7 +186,7 @@ var/mob/living/M = holder.wearer if(M.l_hand && M.r_hand) - M << "Your hands are full." + to_chat(M, "Your hands are full.") deactivate() return @@ -238,11 +238,11 @@ firing.throw_at(target,fire_force,fire_distance) else if(H.l_hand && H.r_hand) - H << "Your hands are full." + to_chat(H, "Your hands are full.") else var/obj/item/new_weapon = new fabrication_type() new_weapon.forceMove(H) - H << "You quickly fabricate \a [new_weapon]." + to_chat(H, "You quickly fabricate \a [new_weapon].") H.put_in_hands(new_weapon) return 1 diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm index 44bb65e9e10..468141b6628 100644 --- a/code/modules/clothing/spacesuits/rig/modules/computer.dm +++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm @@ -15,12 +15,12 @@ set src in usr if(!usr.loc || !usr.loc.loc || !istype(usr.loc.loc, /obj/item/rig_module)) - usr << "You are not loaded into a hardsuit." + to_chat(usr, "You are not loaded into a hardsuit.") return var/obj/item/rig_module/module = usr.loc.loc if(!module.holder) - usr << "Your module is not installed in a hardsuit." + to_chat(usr, "Your module is not installed in a hardsuit.") return module.holder.ui_interact(usr, nano_state = contained_state) @@ -160,9 +160,9 @@ if(istype(ai_card, /obj/item/device/aicard)) if(integrated_ai && !integrated_ai.stat) if(user) - user << "You cannot eject your currently stored AI. Purge it manually." + to_chat(user, "You cannot eject your currently stored AI. Purge it manually.") return 0 - user << "You purge the remaining scraps of data from your previous AI, freeing it for use." + to_chat(user, "You purge the remaining scraps of data from your previous AI, freeing it for use.") if(integrated_ai) integrated_ai.ghostize() qdel(integrated_ai) @@ -209,8 +209,8 @@ user.unEquip(ai) ai.forceMove(src) ai_card = ai - ai_mob << "You have been transferred to \the [holder]'s [src]." - user << "You load [ai_mob] into \the [holder]'s [src]." + to_chat(ai_mob, "You have been transferred to \the [holder]'s [src].") + to_chat(user, "You load [ai_mob] into \the [holder]'s [src].") integrated_ai = ai_mob @@ -218,9 +218,9 @@ integrated_ai = null eject_ai() else - user << "There is no active AI within \the [ai]." + to_chat(user, "There is no active AI within \the [ai].") else - user << "There is no active AI within \the [ai]." + to_chat(user, "There is no active AI within \the [ai].") update_verb_holder() /obj/item/rig_module/datajack @@ -257,16 +257,16 @@ /obj/item/rig_module/datajack/accepts_item(var/obj/item/input_device, var/mob/living/user) if(istype(input_device,/obj/item/weapon/disk/tech_disk)) - user << "You slot the disk into [src]." + to_chat(user, "You slot the disk into [src].") var/obj/item/weapon/disk/tech_disk/disk = input_device if(disk.stored) if(load_data(disk.stored)) - user << "Download successful; disk erased." + to_chat(user, "Download successful; disk erased.") disk.stored = null else - user << "The disk is corrupt. It is useless to you." + to_chat(user, "The disk is corrupt. It is useless to you.") else - user << "The disk is blank. It is useless to you." + to_chat(user, "The disk is blank. It is useless to you.") return 1 // I fucking hate R&D code. This typecheck spam would be totally unnecessary in a sane setup. @@ -283,13 +283,13 @@ incoming_files = input_machine.files if(!incoming_files || !incoming_files.known_tech || !incoming_files.known_tech.len) - user << "Memory failure. There is nothing accessible stored on this terminal." + to_chat(user, "Memory failure. There is nothing accessible stored on this terminal.") else // Maybe consider a way to drop all your data into a target repo in the future. if(load_data(incoming_files.known_tech)) - user << "Download successful; local and remote repositories synchronized." + to_chat(user, "Download successful; local and remote repositories synchronized.") else - user << "Scan complete. There is nothing useful stored on this terminal." + to_chat(user, "Scan complete. There is nothing useful stored on this terminal.") return 1 return 0 @@ -369,7 +369,7 @@ if(interfaced_with) if(holder && holder.wearer) - holder.wearer << "Your power sink retracts as the module deactivates." + to_chat(holder.wearer, "Your power sink retracts as the module deactivates.") drain_complete() interfaced_with = null total_power_drained = 0 @@ -401,7 +401,7 @@ if(target.drain_power(1) <= 0) return 0 - H << "You begin draining power from [target]!" + to_chat(H, "You begin draining power from [target]!") interfaced_with = target drain_loc = interfaced_with.loc @@ -433,17 +433,17 @@ playsound(H.loc, 'sound/effects/sparks2.ogg', 50, 1) if(!holder.cell) - H << "Your power sink flashes an error; there is no cell in your rig." + to_chat(H, "Your power sink flashes an error; there is no cell in your rig.") drain_complete(H) return if(!interfaced_with || !interfaced_with.Adjacent(H) || !(interfaced_with.loc == drain_loc)) - H << "Your power sink retracts into its casing." + to_chat(H, "Your power sink retracts into its casing.") drain_complete(H) return if(holder.cell.fully_charged()) - H << "Your power sink flashes an amber light; your rig cell is full." + to_chat(H, "Your power sink flashes an amber light; your rig cell is full.") drain_complete(H) return @@ -451,7 +451,7 @@ var/to_drain = min(40000, ((holder.cell.maxcharge - holder.cell.charge) / CELLRATE)) var/target_drained = interfaced_with.drain_power(0,0,to_drain) if(target_drained <= 0) - H << "Your power sink flashes a red light; there is no power left in [interfaced_with]." + to_chat(H, "Your power sink flashes a red light; there is no power left in [interfaced_with].") drain_complete(H) return @@ -463,9 +463,9 @@ /obj/item/rig_module/power_sink/proc/drain_complete(var/mob/living/M) if(!interfaced_with) - if(M) M << "Total power drained: [round(total_power_drained/1000)]kJ." + to_chat(if(M) M, "Total power drained: [round(total_power_drained/1000)]kJ.") else - if(M) M << "Total power drained from [interfaced_with]: [round(total_power_drained/1000)]kJ." + to_chat(if(M) M, "Total power drained from [interfaced_with]: [round(total_power_drained/1000)]kJ.") interfaced_with.drain_power(0,1,0) // Damage the victim. drain_loc = null diff --git a/code/modules/clothing/spacesuits/rig/modules/modules.dm b/code/modules/clothing/spacesuits/rig/modules/modules.dm index 6e19fab742c..e64084a0beb 100644 --- a/code/modules/clothing/spacesuits/rig/modules/modules.dm +++ b/code/modules/clothing/spacesuits/rig/modules/modules.dm @@ -57,28 +57,28 @@ ..() switch(damage) if(0) - usr << "It is undamaged." + to_chat(usr, "It is undamaged.") if(1) - usr << "It is badly damaged." + to_chat(usr, "It is badly damaged.") if(2) - usr << "It is almost completely destroyed." + to_chat(usr, "It is almost completely destroyed.") /obj/item/rig_module/attackby(obj/item/W as obj, mob/user as mob) if(istype(W,/obj/item/stack/nanopaste)) if(damage == 0) - user << "There is no damage to mend." + to_chat(user, "There is no damage to mend.") return - user << "You start mending the damaged portions of \the [src]..." + to_chat(user, "You start mending the damaged portions of \the [src]...") if(!do_after(user,30, target = src) || !W || !src) return var/obj/item/stack/nanopaste/paste = W damage = 0 - user << "You mend the damage to [src] with [W]." + to_chat(user, "You mend the damage to [src] with [W].") paste.use(1) return @@ -86,23 +86,23 @@ switch(damage) if(0) - user << "There is no damage to mend." + to_chat(user, "There is no damage to mend.") return if(2) - user << "There is no damage that you are capable of mending with such crude tools." + to_chat(user, "There is no damage that you are capable of mending with such crude tools.") return var/obj/item/stack/cable_coil/cable = W if(!cable.amount >= 5) - user << "You need five units of cable to repair \the [src]." + to_chat(user, "You need five units of cable to repair \the [src].") return - user << "You start mending the damaged portions of \the [src]..." + to_chat(user, "You start mending the damaged portions of \the [src]...") if(!do_after(user, 30, target = src) || !W || !src) return damage = 1 - user << "You mend some of damage to [src] with [W], but you will need more advanced tools to fix it completely." + to_chat(user, "You mend some of damage to [src] with [W], but you will need more advanced tools to fix it completely.") cable.use(5) return ..() @@ -142,27 +142,27 @@ /obj/item/rig_module/proc/engage() if(damage >= 2) - usr << "The [interface_name] is damaged beyond use!" + to_chat(usr, "The [interface_name] is damaged beyond use!") return 0 if(world.time < next_use) - usr << "You cannot use the [interface_name] again so soon." + to_chat(usr, "You cannot use the [interface_name] again so soon.") return 0 if(!holder || (!(holder.flags & NODROP))) - usr << "The suit is not initialized." + to_chat(usr, "The suit is not initialized.") return 0 if(usr.lying || usr.stat || usr.stunned || usr.paralysis || usr.weakened) - usr << "You cannot use the suit in this state." + to_chat(usr, "You cannot use the suit in this state.") return 0 if(holder.wearer && holder.wearer.lying) - usr << "The suit cannot function while the wearer is prone." + to_chat(usr, "The suit cannot function while the wearer is prone.") return 0 if(holder.security_check_enabled && !holder.check_suit_access(usr)) - usr << "Access denied." + to_chat(usr, "Access denied.") return 0 if(!holder.check_power_cost(usr, use_power_cost, 0, src, (istype(usr,/mob/living/silicon ? 1 : 0) ) ) ) diff --git a/code/modules/clothing/spacesuits/rig/modules/ninja.dm b/code/modules/clothing/spacesuits/rig/modules/ninja.dm index 138978d2c06..40e64add719 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm @@ -37,7 +37,7 @@ var/mob/living/carbon/human/H = holder.wearer - H << "You are now invisible to normal detection." + to_chat(H, "You are now invisible to normal detection.") H.invisibility = INVISIBILITY_LEVEL_TWO anim(get_turf(H), H, 'icons/effects/effects.dmi', "electricity",null,20,null) @@ -51,7 +51,7 @@ var/mob/living/carbon/human/H = holder.wearer - H << "You are now visible." + to_chat(H, "You are now visible.") H.invisibility = 0 anim(get_turf(H), H,'icons/mob/mob.dmi',,"uncloak",,H.dir) @@ -102,7 +102,7 @@ var/mob/living/carbon/human/H = holder.wearer if(!istype(H.loc, /turf)) - H << "You cannot teleport out of your current location." + to_chat(H, "You cannot teleport out of your current location.") return 0 var/turf/T @@ -112,11 +112,11 @@ T = get_teleport_loc(get_turf(H), H, rand(5, 9)) /*if(!T || T.density) - H << "You cannot teleport into solid walls." + to_chat(H, "You cannot teleport into solid walls.") return 0*///Who the fuck cares? Ninjas in walls are cool. if(T.z in config.admin_levels) - H << "You cannot use your teleporter on this Z-level." + to_chat(H, "You cannot use your teleporter on this Z-level.") return 0 phase_out(H,get_turf(H)) diff --git a/code/modules/clothing/spacesuits/rig/modules/utility.dm b/code/modules/clothing/spacesuits/rig/modules/utility.dm index 26159df516f..087b34dd756 100644 --- a/code/modules/clothing/spacesuits/rig/modules/utility.dm +++ b/code/modules/clothing/spacesuits/rig/modules/utility.dm @@ -164,7 +164,7 @@ return 0 if(!input_item.reagents || !input_item.reagents.total_volume) - user << "\The [input_item] is empty." + to_chat(user, "\The [input_item] is empty.") return 0 // Magical chemical filtration system, do not question it. @@ -186,9 +186,9 @@ break if(total_transferred) - user << "You transfer [total_transferred] units into the suit reservoir." + to_chat(user, "You transfer [total_transferred] units into the suit reservoir.") else - user << "None of the reagents seem suitable." + to_chat(user, "None of the reagents seem suitable.") return 1 /obj/item/rig_module/chem_dispenser/engage(atom/target) @@ -199,7 +199,7 @@ var/mob/living/carbon/human/H = holder.wearer if(!charge_selected) - H << "You have not selected a chemical type." + to_chat(H, "You have not selected a chemical type.") return 0 var/datum/rig_charge/charge = charges[charge_selected] @@ -209,7 +209,7 @@ var/chems_to_use = 10 if(charge.charges <= 0) - H << "Insufficient chems!" + to_chat(H, "Insufficient chems!") return 0 else if(charge.charges < chems_to_use) chems_to_use = charge.charges @@ -224,8 +224,8 @@ target_mob = H if(target_mob != H) - H << "You inject [target_mob] with [chems_to_use] unit\s of [charge.display_name]." - target_mob << "You feel a rushing in your veins as [chems_to_use] unit\s of [charge.display_name] [chems_to_use == 1 ? "is" : "are"] injected." + to_chat(H, "You inject [target_mob] with [chems_to_use] unit\s of [charge.display_name].") + to_chat(target_mob, "You feel a rushing in your veins as [chems_to_use] unit\s of [charge.display_name] [chems_to_use == 1 ? "is" : "are"] injected.") target_mob.reagents.add_reagent(charge.display_name, chems_to_use) charge.charges -= chems_to_use @@ -299,17 +299,17 @@ if("Enable") active = 1 voice_holder.active = 1 - usr << "You enable the speech synthesiser." + to_chat(usr, "You enable the speech synthesiser.") if("Disable") active = 0 voice_holder.active = 0 - usr << "You disable the speech synthesiser." + to_chat(usr, "You disable the speech synthesiser.") if("Set Name") var/raw_choice = sanitize(input(usr, "Please enter a new name.") as text|null, MAX_NAME_LEN) if(!raw_choice) return 0 voice_holder.voice = raw_choice - usr << "You are now mimicking [voice_holder.voice]." + to_chat(usr, "You are now mimicking [voice_holder.voice].") return 1 /obj/item/rig_module/maneuvering_jets @@ -435,10 +435,10 @@ if(!target) if(device == iastamp) device = deniedstamp - holder.wearer << "Switched to denied stamp." + to_chat(holder.wearer, "Switched to denied stamp.") else if(device == deniedstamp) device = iastamp - holder.wearer << "Switched to internal affairs stamp." + to_chat(holder.wearer, "Switched to internal affairs stamp.") return 1 /obj/item/rig_module/welding_tank @@ -472,9 +472,9 @@ if(istype(W)) fill_welder(W) else - holder.wearer << "Your welding tank is out of fuel!" + to_chat(holder.wearer, "Your welding tank is out of fuel!") else - holder.wearer << "You need to have a welding tool in one of your hands to dispense fuel." + to_chat(holder.wearer, "You need to have a welding tool in one of your hands to dispense fuel.") /obj/item/rig_module/welding_tank/proc/fill_welder(var/obj/item/weapon/weldingtool/W) if(!istype(W)) @@ -483,10 +483,10 @@ if(reagents) if(get_fuel() >= W.max_fuel) reagents.trans_to(W, W.max_fuel) - holder.wearer << "Your [holder] dispenses some of the contents of the welding fuel tank into \the [W]." + to_chat(holder.wearer, "Your [holder] dispenses some of the contents of the welding fuel tank into \the [W].") else reagents.trans_to(W, W.max_fuel) - holder.wearer << "You hear a faint dripping as your hardsuit welding tank completely empties." + to_chat(holder.wearer, "You hear a faint dripping as your hardsuit welding tank completely empties.") W.update_icon() /obj/item/rig_module/welding_tank/proc/get_fuel() diff --git a/code/modules/clothing/spacesuits/rig/modules/vision.dm b/code/modules/clothing/spacesuits/rig/modules/vision.dm index aa106eda02a..9fc960cdbce 100644 --- a/code/modules/clothing/spacesuits/rig/modules/vision.dm +++ b/code/modules/clothing/spacesuits/rig/modules/vision.dm @@ -160,7 +160,7 @@ // Don't cycle if this engage() is being called by activate(). if(starting_up) - holder.wearer << "You activate your visual sensors." + to_chat(holder.wearer, "You activate your visual sensors.") return 1 if(vision_modes.len > 1) @@ -169,9 +169,9 @@ vision_index = 1 vision = vision_modes[vision_index] - holder.wearer << "You cycle your sensors to [vision.mode] mode." + to_chat(holder.wearer, "You cycle your sensors to [vision.mode] mode.") else - holder.wearer << "Your sensors only have one mode." + to_chat(holder.wearer, "Your sensors only have one mode.") return 1 /obj/item/rig_module/vision/New() diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 114ad9d7b35..066c4893f73 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -82,17 +82,17 @@ var/datum/effect/system/spark_spread/spark_system /obj/item/weapon/rig/examine() - usr << "This is \icon[src][src.name]." - usr << "[src.desc]" + to_chat(usr, "This is \icon[src][src.name].") + to_chat(usr, "[src.desc]") if(wearer) for(var/obj/item/piece in list(helmet,gloves,chest,boots)) if(!piece || piece.loc != wearer) continue - usr << "\icon[piece] \The [piece] [piece.gender == PLURAL ? "are" : "is"] deployed." + to_chat(usr, "\icon[piece] \The [piece] [piece.gender == PLURAL ? "are" : "is"] deployed.") if(src.loc == usr) - usr << "The maintenance panel is [open ? "open" : "closed"]." - usr << "Hardsuit systems are [offline ? "offline" : "online"]." + to_chat(usr, "The maintenance panel is [open ? "open" : "closed"].") + to_chat(usr, "Hardsuit systems are [offline ? "offline" : "online"].") /obj/item/weapon/rig/New() ..() @@ -214,7 +214,8 @@ if(!instant) M.visible_message("[M]'s suit emits a quiet hum as it begins to adjust its seals.","With a quiet hum, the suit begins running checks and adjusting components.") if(seal_delay && !do_after(user, seal_delay, target = M)) - if(user) user << "You must remain still while the suit is adjusting the components." + if(user) + to_chat(user, "You must remain still while the suit is adjusting the components.") failed_to_seal = 1 if(!M) @@ -231,7 +232,8 @@ continue if(!istype(M) || !istype(piece) || !istype(compare_piece) || !msg_type) - if(M) M << "You must remain still while the suit is adjusting the components." + if(M) + to_chat(M, "You must remain still while the suit is adjusting the components.") failed_to_seal = 1 break @@ -243,16 +245,16 @@ piece.icon_state = "[initial(icon_state)][!seal_target ? "_sealed" : ""]" switch(msg_type) if("boots") - M << "\The [piece] [!seal_target ? "seal around your feet" : "relax their grip on your legs"]." + to_chat(M, "\The [piece] [!seal_target ? "seal around your feet" : "relax their grip on your legs"].") M.update_inv_shoes() if("gloves") - M << "\The [piece] [!seal_target ? "tighten around your fingers and wrists" : "become loose around your fingers"]." + to_chat(M, "\The [piece] [!seal_target ? "tighten around your fingers and wrists" : "become loose around your fingers"].") M.update_inv_gloves() if("chest") - M << "\The [piece] [!seal_target ? "cinches tight again your chest" : "releases your chest"]." + to_chat(M, "\The [piece] [!seal_target ? "cinches tight again your chest" : "releases your chest"].") M.update_inv_wear_suit() if("helmet") - M << "\The [piece] hisses [!seal_target ? "closed" : "open"]." + to_chat(M, "\The [piece] hisses [!seal_target ? "closed" : "open"].") M.update_inv_head() if(helmet) helmet.update_light(wearer) @@ -289,7 +291,7 @@ flags &= ~NODROP else flags |= NODROP - M << "Your entire suit [!(flags & NODROP) ? "loosens as the components relax" : "tightens around you as the components lock into place"]." + to_chat(M, "Your entire suit [!(flags & NODROP) ? "loosens as the components relax" : "tightens around you as the components lock into place"].") if(!(flags & NODROP)) for(var/obj/item/rig_module/module in installed_modules) @@ -326,13 +328,13 @@ if(istype(wearer)) if(flags & NODROP) if (offline_slowdown < 3) - wearer << "Your suit beeps stridently, and suddenly goes dead." + to_chat(wearer, "Your suit beeps stridently, and suddenly goes dead.") else - wearer << "Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit." + to_chat(wearer, "Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit.") if(offline_vision_restriction == 1) - wearer << "The suit optics flicker and die, leaving you with restricted vision." + to_chat(wearer, "The suit optics flicker and die, leaving you with restricted vision.") else if(offline_vision_restriction == 2) - wearer << "The suit optics drop out completely, drowning you in darkness." + to_chat(wearer, "The suit optics drop out completely, drowning you in darkness.") if(!offline) offline = 1 if(istype(wearer) && wearer.wearing_rig) @@ -387,7 +389,7 @@ fail_msg = "Not enough stored power." if(fail_msg) - user << "[fail_msg]" + to_chat(user, "[fail_msg]") return 0 // This is largely for cancelling stealth and whatever. @@ -513,11 +515,11 @@ if(user.back != src) return 0 else if(!src.allowed(user)) - user << "Unauthorized user. Access denied." + to_chat(user, "Unauthorized user. Access denied.") return 0 else if(!ai_override_enabled) - user << "Synthetic access disabled. Please consult hardware provider." + to_chat(user, "Synthetic access disabled. Please consult hardware provider.") return 0 return 1 @@ -566,7 +568,7 @@ for(var/obj/item/rig_module/module in installed_modules) for(var/mob/living/silicon/ai/ai in module.contents) if(ai && ai.client && !ai.stat) - ai << "[message]" + to_chat(ai, "[message]") /obj/item/weapon/rig/equipped(mob/living/carbon/human/M) ..() @@ -632,7 +634,7 @@ holder = use_obj.loc if(istype(holder)) if(use_obj && check_slot == use_obj) - H << "Your [use_obj.name] [use_obj.gender == PLURAL ? "retract" : "retracts"] swiftly." + to_chat(H, "Your [use_obj.name] [use_obj.gender == PLURAL ? "retract" : "retracts"] swiftly.") use_obj.flags &= ~NODROP holder.unEquip(use_obj, 1) use_obj.forceMove(src) @@ -640,7 +642,7 @@ else if (deploy_mode != ONLY_RETRACT) if(check_slot) if(check_slot != use_obj) - H << "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way." + to_chat(H, "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way.") return else use_obj.forceMove(H) @@ -648,7 +650,7 @@ if(!H.equip_to_slot_if_possible(use_obj, equip_to, 0, 1)) use_obj.forceMove(src) else - H << "Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly." + to_chat(H, "Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly.") use_obj.flags |= NODROP if(piece == "helmet" && helmet) @@ -764,17 +766,17 @@ if(wearer) if(dam_module.damage >= 2) - wearer << "The [source] has disabled your [dam_module.interface_name]!" + to_chat(wearer, "The [source] has disabled your [dam_module.interface_name]!") else - wearer << "The [source] has damaged your [dam_module.interface_name]!" + to_chat(wearer, "The [source] has damaged your [dam_module.interface_name]!") dam_module.deactivate() /obj/item/weapon/rig/proc/malfunction_check(var/mob/living/carbon/human/user) if(malfunction_delay) if(offline) - user << "The suit is completely unresponsive." + to_chat(user, "The suit is completely unresponsive.") else - user << "ERROR: Hardware fault. Rebooting interface..." + to_chat(user, "ERROR: Hardware fault. Rebooting interface...") return 1 return 0 @@ -798,17 +800,20 @@ return 0 var/obj/item/rig_module/ai_container/module = user.loc.loc if(!istype(module) || module.damage >= 2) - user << "Your host module is unable to interface with the suit." + to_chat(user, "Your host module is unable to interface with the suit.") return 0 if(offline || !cell || !cell.charge || locked_down) - if(user) user << "Your host rig is unpowered and unresponsive." + if(user) + to_chat(user, "Your host rig is unpowered and unresponsive.") return 0 if(!wearer || wearer.back != src) - if(user) user << "Your host rig is not being worn." + if(user) + to_chat(user, "Your host rig is not being worn.") return 0 if(!wearer.stat && !control_overridden && !ai_override_enabled) - if(user) user << "You are locked out of the suit servo controller." + if(user) + to_chat(user, "You are locked out of the suit servo controller.") return 0 return 1 @@ -816,7 +821,7 @@ if(!ai_can_move_suit(user, check_user_module = 1)) return wearer.lay_down() - user << "\The [wearer] is now [wearer.resting ? "resting" : "getting up"]." + to_chat(user, "\The [wearer] is now [wearer.resting ? "resting" : "getting up"].") /obj/item/weapon/rig/proc/forced_move(var/direction, var/mob/user) @@ -856,13 +861,13 @@ for(var/mob/M in range(wearer, 1)) if(M.pulling == wearer) if(!M.restrained() && M.stat == 0 && M.canmove && wearer.Adjacent(M)) - user << "Your host is restrained! They can't move!" + to_chat(user, "Your host is restrained! They can't move!") return 0 else M.stop_pulling() if(wearer.pinned.len) - src << "Your host is pinned to a wall by [wearer.pinned[1]]!" + to_chat(src, "Your host is pinned to a wall by [wearer.pinned[1]]!") return 0 // AIs are a bit slower than regular and ignore move intent. diff --git a/code/modules/clothing/spacesuits/rig/rig_attackby.dm b/code/modules/clothing/spacesuits/rig/rig_attackby.dm index d00d4b87abf..b89c59cf837 100644 --- a/code/modules/clothing/spacesuits/rig/rig_attackby.dm +++ b/code/modules/clothing/spacesuits/rig/rig_attackby.dm @@ -14,30 +14,30 @@ if(W.GetID()) if(subverted) locked = 0 - user << "It looks like the locking system has been shorted out." + to_chat(user, "It looks like the locking system has been shorted out.") return if((!req_access || !req_access.len) && (!req_one_access || !req_one_access.len)) locked = 0 - user << "\The [src] doesn't seem to have a locking mechanism." + to_chat(user, "\The [src] doesn't seem to have a locking mechanism.") return if(security_check_enabled && !src.allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return locked = !locked - user << "You [locked ? "lock" : "unlock"] \the [src] access panel." + to_chat(user, "You [locked ? "lock" : "unlock"] \the [src] access panel.") return else if(istype(W,/obj/item/weapon/crowbar)) if(!open && locked) - user << "The access panel is locked shut." + to_chat(user, "The access panel is locked shut.") return open = !open - user << "You [open ? "open" : "close"] the access panel." + to_chat(user, "You [open ? "open" : "close"] the access panel.") return if(open) @@ -47,19 +47,19 @@ if(open) wires.Interact(user) else - user << "You can't reach the wiring." + to_chat(user, "You can't reach the wiring.") return // Air tank. if(istype(W,/obj/item/weapon/tank)) //Todo, some kind of check for suits without integrated air supplies. if(air_supply) - user << "\The [src] already has a tank installed." + to_chat(user, "\The [src] already has a tank installed.") return user.unEquip(W) air_supply = W W.forceMove(src) - user << "You slot [W] into [src] and tighten the connecting valve." + to_chat(user, "You slot [W] into [src] and tighten the connecting valve.") return // Check if this is a hardsuit upgrade or a modification. @@ -68,23 +68,23 @@ if(istype(src.loc,/mob/living/carbon/human)) var/mob/living/carbon/human/H = src.loc if(H.back == src) - user << "You can't install a hardsuit module while the suit is being worn." + to_chat(user, "You can't install a hardsuit module while the suit is being worn.") return 1 if(!installed_modules) installed_modules = list() if(installed_modules.len) for(var/obj/item/rig_module/installed_mod in installed_modules) if(!installed_mod.redundant && istype(installed_mod,W)) - user << "The hardsuit already has a module of that class installed." + to_chat(user, "The hardsuit already has a module of that class installed.") return 1 var/obj/item/rig_module/mod = W - user << "You begin installing \the [mod] into \the [src]." + to_chat(user, "You begin installing \the [mod] into \the [src].") if(!do_after(user,40, target = src)) return if(!user || !W) return - user << "You install \the [mod] into \the [src]." + to_chat(user, "You install \the [mod] into \the [src].") user.unEquip(mod) installed_modules |= mod mod.forceMove(src) @@ -94,7 +94,7 @@ else if(!cell && istype(W,/obj/item/weapon/stock_parts/cell)) - user << "You jack \the [W] into \the [src]'s battery mount." + to_chat(user, "You jack \the [W] into \the [src]'s battery mount.") user.unEquip(W) W.forceMove(src) src.cell = W @@ -103,14 +103,14 @@ else if(istype(W,/obj/item/weapon/wrench)) if(!air_supply) - user << "There is not tank to remove." + to_chat(user, "There is not tank to remove.") return if(user.r_hand && user.l_hand) air_supply.forceMove(get_turf(user)) else user.put_in_hands(air_supply) - user << "You detach and remove \the [air_supply]." + to_chat(user, "You detach and remove \the [air_supply].") air_supply = null return @@ -127,7 +127,7 @@ if(istype(src.loc,/mob/living/carbon/human) && to_remove != "cell") var/mob/living/carbon/human/H = src.loc if(H.back == src) - user << "You can't remove an installed device while the hardsuit is being worn." + to_chat(user, "You can't remove an installed device while the hardsuit is being worn.") return switch(to_remove) @@ -135,7 +135,7 @@ if("cell") if(cell) - user << "You detatch \the [cell] from \the [src]'s battery mount." + to_chat(user, "You detatch \the [cell] from \the [src]'s battery mount.") for(var/obj/item/rig_module/module in installed_modules) module.deactivate() if(user.r_hand && user.l_hand) @@ -144,7 +144,7 @@ cell.forceMove(user.put_in_hands(cell)) cell = null else - user << "There is nothing loaded in that mount." + to_chat(user, "There is nothing loaded in that mount.") if("system module") @@ -155,7 +155,7 @@ possible_removals[module.name] = module if(!possible_removals.len) - user << "There are no installed modules to remove." + to_chat(user, "There are no installed modules to remove.") return var/removal_choice = input("Which module would you like to remove?") as null|anything in possible_removals @@ -163,7 +163,7 @@ return var/obj/item/rig_module/removed = possible_removals[removal_choice] - user << "You detatch \the [removed] from \the [src]." + to_chat(user, "You detatch \the [removed] from \the [src].") removed.forceMove(get_turf(src)) removed.removed() installed_modules -= removed @@ -192,5 +192,5 @@ req_one_access.Cut() locked = 0 subverted = 1 - user << "You short out the access protocol for the suit." + to_chat(user, "You short out the access protocol for the suit.") return 1 diff --git a/code/modules/clothing/spacesuits/rig/rig_pieces.dm b/code/modules/clothing/spacesuits/rig/rig_pieces.dm index ba3501c8c9e..dab4ad5ac35 100644 --- a/code/modules/clothing/spacesuits/rig/rig_pieces.dm +++ b/code/modules/clothing/spacesuits/rig/rig_pieces.dm @@ -22,7 +22,8 @@ /obj/item/clothing/head/helmet/space/new_rig/attack_self(mob/user) if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]." //To prevent some lighting anomalities. + to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities. + return toggle_light(user) diff --git a/code/modules/clothing/spacesuits/rig/rig_verbs.dm b/code/modules/clothing/spacesuits/rig/rig_verbs.dm index 6f1711b7b90..f4769eddf0b 100644 --- a/code/modules/clothing/spacesuits/rig/rig_verbs.dm +++ b/code/modules/clothing/spacesuits/rig/rig_verbs.dm @@ -17,21 +17,21 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_power_cost(usr)) return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!check_suit_access(usr)) return if(!visor) - usr << "The hardsuit does not have a configurable visor." + to_chat(usr, "The hardsuit does not have a configurable visor.") return var/mob/M = usr @@ -51,7 +51,7 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -87,7 +87,7 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -107,7 +107,7 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -127,7 +127,7 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -150,7 +150,7 @@ set src = usr.contents if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -176,11 +176,11 @@ return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!visor) - usr << "The hardsuit does not have a configurable visor." + to_chat(usr, "The hardsuit does not have a configurable visor.") return var/mob/M = usr @@ -191,7 +191,7 @@ visor.activate() if(!visor.active) - usr << "The visor is suffering a hardware fault and cannot be configured." + to_chat(usr, "The visor is suffering a hardware fault and cannot be configured.") return visor.engage() @@ -207,15 +207,15 @@ return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!speech) - usr << "The hardsuit does not have a speech synthesiser." + to_chat(usr, "The hardsuit does not have a speech synthesiser.") return var/mob/M = usr @@ -238,11 +238,11 @@ return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return var/mob/M = usr @@ -258,11 +258,11 @@ if(!istype(module)) selected_module = null - usr << "Primary system is now: deselected." + to_chat(usr, "Primary system is now: deselected.") return selected_module = module - usr << "Primary system is now: [selected_module.interface_name]." + to_chat(usr, "Primary system is now: [selected_module.interface_name].") /obj/item/weapon/rig/verb/toggle_module() @@ -278,11 +278,11 @@ return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return var/mob/M = usr @@ -300,10 +300,10 @@ return if(module.active) - usr << "You attempt to deactivate \the [module.interface_name]." + to_chat(usr, "You attempt to deactivate \the [module.interface_name].") module.deactivate() else - usr << "You attempt to activate \the [module.interface_name]." + to_chat(usr, "You attempt to activate \the [module.interface_name].") module.activate() /obj/item/weapon/rig/verb/engage_module() @@ -317,11 +317,11 @@ return if(!(flags & NODROP)) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || !wearer.back == src) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_power_cost(usr, 0, 0, 0, 0)) @@ -341,5 +341,5 @@ if(!istype(module)) return - usr << "You attempt to engage the [module.interface_name]." + to_chat(usr, "You attempt to engage the [module.interface_name].") module.engage() \ No newline at end of file diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index 8776cb6ace9..6f699e3a9ae 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -174,11 +174,11 @@ /obj/item/clothing/suit/armor/reactive/attack_self(mob/user as mob) src.active = !( src.active ) if (src.active) - user << "\blue The reactive armor is now active." + to_chat(user, "\blue The reactive armor is now active.") src.icon_state = "reactive" src.item_state = "reactive" else - user << "\blue The reactive armor is now inactive." + to_chat(user, "\blue The reactive armor is now inactive.") src.icon_state = "reactiveoff" src.item_state = "reactiveoff" src.add_fingerprint(user) diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index 5cf32d35a12..f1a8865418c 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -553,10 +553,10 @@ /obj/item/clothing/suit/advanced_protective_suit/ui_action_click() if(on) on = 0 - usr << "You turn the suit's special processes off." + to_chat(usr, "You turn the suit's special processes off.") else on = 1 - usr << "You turn the suit's special processes on." + to_chat(usr, "You turn the suit's special processes on.") processing_objects.Add(src) diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 8328726487b..5dc5cf02699 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -23,7 +23,7 @@ loc = has_suit has_suit.overlays += inv_overlay - user << "You attach [src] to [has_suit]." + to_chat(user, "You attach [src] to [has_suit].") src.add_fingerprint(user) /obj/item/clothing/accessory/proc/on_removed(mob/user as mob) @@ -38,7 +38,7 @@ // This code lets you put accessories on other people by attacking their sprite with the accessory if(istype(H)) if(H.wear_suit && H.wear_suit.flags_inv & HIDEJUMPSUIT) - user << "[H]'s body is covered, and you cannot attach \the [src]." + to_chat(user, "[H]'s body is covered, and you cannot attach \the [src].") return 1 var/obj/item/clothing/under/U = H.w_uniform if(istype(U)) @@ -47,7 +47,7 @@ user.visible_message("[user] puts a [src.name] on [H]'s [U.name]!", "You finish putting a [src.name] on [H]'s [U.name].") U.attackby(src, user) else - user << "[H] is not wearing anything to attach \the [src] to." + to_chat(user, "[H] is not wearing anything to attach \the [src] to.") return 1 return ..() @@ -203,7 +203,7 @@ /obj/item/clothing/accessory/holobadge/attack_self(mob/user as mob) if(!stored_name) - user << "Waving around a badge before swiping an ID would be pretty pointless." + to_chat(user, "Waving around a badge before swiping an ID would be pretty pointless.") return if(isliving(user)) user.visible_message("\red [user] displays their NanoTrasen Internal Security Legal Authorization Badge.\nIt reads: [stored_name], NT Security.","\red You display your NanoTrasen Internal Security Legal Authorization Badge.\nIt reads: [stored_name], NT Security.") @@ -220,22 +220,22 @@ id_card = pda.id if(access_security in id_card.access || emagged) - user << "You imprint your ID details onto the badge." + to_chat(user, "You imprint your ID details onto the badge.") stored_name = id_card.registered_name name = "holobadge ([stored_name])" desc = "This glowing blue badge marks [stored_name] as THE LAW." else - user << "[src] rejects your insufficient access rights." + to_chat(user, "[src] rejects your insufficient access rights.") return ..() /obj/item/clothing/accessory/holobadge/emag_act(user as mob) if (emagged) - user << "\red [src] is already cracked." + to_chat(user, "\red [src] is already cracked.") return else emagged = 1 - user << "\red You swipe the card and crack the holobadge security checks." + to_chat(user, "\red You swipe the card and crack the holobadge security checks.") return /obj/item/clothing/accessory/holobadge/attack(mob/living/carbon/human/M, mob/living/user) @@ -376,11 +376,11 @@ if(!istype(W)) return ..() if(access_id) - user << "There is already \a [access_id] clipped onto \the [src]" + to_chat(user, "There is already \a [access_id] clipped onto \the [src]") user.drop_item() W.forceMove(src) access_id = W - user << "\The [W] clips onto \the [src] snugly." + to_chat(user, "\The [W] clips onto \the [src] snugly.") /obj/item/clothing/accessory/petcollar/GetAccess() return access_id ? access_id.GetAccess() : ..() @@ -388,7 +388,7 @@ /obj/item/clothing/accessory/petcollar/examine(mob/user) ..() if(access_id) - user << "There is \icon[access_id] \a [access_id] clipped onto it." + to_chat(user, "There is \icon[access_id] \a [access_id] clipped onto it.") /obj/item/clothing/accessory/petcollar/equipped(mob/living/simple_animal/user) if(istype(user)) diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index cc9e37cecd7..2a4bb7634e5 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -27,16 +27,16 @@ /obj/item/clothing/accessory/holster/proc/holster(obj/item/I, mob/user as mob) if(holstered) - user << "There is already a [holstered] holstered here!" + to_chat(user, "There is already a [holstered] holstered here!") return if (!istype(I, /obj/item/weapon/gun)) - user << "Only guns can be holstered!" + to_chat(user, "Only guns can be holstered!") return var/obj/item/weapon/gun/W = I if (!can_holster(W)) - user << "This [W] won't fit in the [src]!" + to_chat(user, "This [W] won't fit in the [src]!") return holstered = W @@ -50,7 +50,7 @@ return if(istype(user.get_active_hand(),/obj) && istype(user.get_inactive_hand(),/obj)) - user << "You need an empty hand to draw the [holstered]!" + to_chat(user, "You need an empty hand to draw the [holstered]!") else if(user.a_intent == I_HARM) usr.visible_message("\red [user] draws the [holstered], ready to shoot!", \ @@ -81,9 +81,9 @@ /obj/item/clothing/accessory/holster/examine(mob/user) ..(user) if (holstered) - user << "A [holstered] is holstered here." + to_chat(user, "A [holstered] is holstered here.") else - user << "It is empty." + to_chat(user, "It is empty.") /obj/item/clothing/accessory/holster/on_attached(obj/item/clothing/under/S, mob/user as mob) ..() @@ -110,11 +110,11 @@ H = locate() in S.accessories if (!H) - usr << "Something is very wrong." + to_chat(usr, "Something is very wrong.") if(!H.holstered) if(!istype(usr.get_active_hand(), /obj/item/weapon/gun)) - usr << "You need your gun equiped to holster it." + to_chat(usr, "You need your gun equiped to holster it.") return var/obj/item/weapon/gun/W = usr.get_active_hand() H.holster(W, usr) diff --git a/code/modules/clothing/under/accessories/storage.dm b/code/modules/clothing/under/accessories/storage.dm index bd69d9776d6..4c5997d3330 100644 --- a/code/modules/clothing/under/accessories/storage.dm +++ b/code/modules/clothing/under/accessories/storage.dm @@ -62,7 +62,7 @@ if (has_suit) //if we are part of a suit hold.open(user) else - user << "You empty [src]." + to_chat(user, "You empty [src].") var/turf/T = get_turf(src) hold.hide_from(usr) for(var/obj/item/I in hold.contents) diff --git a/code/modules/clothing/under/chameleon.dm b/code/modules/clothing/under/chameleon.dm index 978ed6374a4..a2496168b5f 100644 --- a/code/modules/clothing/under/chameleon.dm +++ b/code/modules/clothing/under/chameleon.dm @@ -23,14 +23,14 @@ attackby(obj/item/clothing/under/U as obj, mob/user as mob, params) ..() if(istype(U, /obj/item/clothing/under/chameleon)) - user << "\red Nothing happens." + to_chat(user, "\red Nothing happens.") return if(istype(U, /obj/item/clothing/under)) if(src.clothing_choices.Find(U)) - user << "\red Pattern is already recognised by the suit." + to_chat(user, "\red Pattern is already recognised by the suit.") return src.clothing_choices += U - user << "\red Pattern absorbed by the suit." + to_chat(user, "\red Pattern absorbed by the suit.") emp_act(severity) @@ -52,7 +52,7 @@ set src in usr if(icon_state == "psyche") - usr << "\red Your suit is malfunctioning" + to_chat(usr, "\red Your suit is malfunctioning") return var/obj/item/clothing/under/A diff --git a/code/modules/computer3/bios.dm b/code/modules/computer3/bios.dm index 17ed0c4789f..564156540d3 100644 --- a/code/modules/computer3/bios.dm +++ b/code/modules/computer3/bios.dm @@ -24,22 +24,22 @@ if(istype(user,/mob/living/silicon)) if(!program.ai_allowed) - user << "\blue You are forbidden from accessing this program." + to_chat(user, "\blue You are forbidden from accessing this program.") return 0 else if(program.human_controls) if(!ishuman(user)) - user << "\red Your body can't work the controls!" + to_chat(user, "\red Your body can't work the controls!") return 0 if(user.restrained()) - user << "\red You need a free hand!" + to_chat(user, "\red You need a free hand!") return 0 if(!in_range(src,user)) // telekinesis check if(ishuman(user) && istype(user.get_active_hand(),/obj/item/tk_grab)) if(program.human_controls) - user << "\red It's too complicated to work at a distance!" + to_chat(user, "\red It's too complicated to work at a distance!") return 0 add_fingerprint(user) user.set_machine(src) @@ -115,7 +115,7 @@ switch(errorcode) if(PROG_CRASH) if(usr) - usr << "\red The program crashed!" + to_chat(usr, "\red The program crashed!") usr << browse(null,"\ref[src]") Reset() @@ -148,7 +148,7 @@ else if(usr) - usr << "\red The program crashed!" + to_chat(usr, "\red The program crashed!") usr << browse(null,"\ref[src]") testing("computer/Crash() - unknown error code [errorcode]") Reset() diff --git a/code/modules/computer3/buildandrepair.dm b/code/modules/computer3/buildandrepair.dm index 8c8a31bf9bc..4ea984d15d1 100644 --- a/code/modules/computer3/buildandrepair.dm +++ b/code/modules/computer3/buildandrepair.dm @@ -82,46 +82,46 @@ if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You wrench the frame into place." + to_chat(user, "\blue You wrench the frame into place.") src.anchored = 1 src.state = 1 if(istype(P, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = P if(!WT.remove_fuel(0, user)) - user << "The welding tool must be on to complete this task." + to_chat(user, "The welding tool must be on to complete this task.") return playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) if(do_after(user, 20, target = src)) if(!src || !WT.isOn()) return - user << "\blue You deconstruct the frame." + to_chat(user, "\blue You deconstruct the frame.") new /obj/item/stack/sheet/metal( src.loc, 5 ) qdel(src) if(1) if(istype(P, /obj/item/weapon/wrench)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 20, target = src)) - user << "\blue You unfasten the frame." + to_chat(user, "\blue You unfasten the frame.") src.anchored = 0 src.state = 0 if(istype(P, /obj/item/weapon/circuitboard) && !circuit) var/obj/item/weapon/circuitboard/B = P if(B.board_type == "computer") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user << "\blue You place the circuit board inside the frame." + to_chat(user, "\blue You place the circuit board inside the frame.") src.icon_state = "1" src.circuit = P user.drop_item() P.loc = src else - user << "\red This frame does not accept circuit boards of this type!" + to_chat(user, "\red This frame does not accept circuit boards of this type!") if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You screw the circuit board into place." + to_chat(user, "\blue You screw the circuit board into place.") src.state = 2 src.icon_state = "2" if(istype(P, /obj/item/weapon/crowbar) && circuit) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the circuit board." + to_chat(user, "\blue You remove the circuit board.") src.state = 1 src.icon_state = "0" circuit.loc = src.loc @@ -129,7 +129,7 @@ if(2) if(istype(P, /obj/item/weapon/screwdriver) && circuit) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You unfasten the circuit board." + to_chat(user, "\blue You unfasten the circuit board.") src.state = 1 src.icon_state = "1" @@ -138,10 +138,10 @@ playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) if(do_after(10, target = src)) battery.loc = loc - user << "\blue You remove [battery]." + to_chat(user, "\blue You remove [battery].") battery = null else - user << "\red There's no battery to remove!" + to_chat(user, "\red There's no battery to remove!") if(istype(P, /obj/item/weapon/stock_parts/cell)) if(!battery) @@ -149,9 +149,9 @@ if(do_after(5, target = src)) battery = P P.loc = src - user << "\blue You insert [battery]." + to_chat(user, "\blue You insert [battery].") else - user << "\red There's already \an [battery] in [src]!" + to_chat(user, "\red There's already \an [battery] in [src]!") if(istype(P, /obj/item/stack/cable_coil)) @@ -161,16 +161,16 @@ if(P) P:amount -= 5 if(!P:amount) qdel(P) - user << "\blue You add cables to the frame." + to_chat(user, "\blue You add cables to the frame.") src.state = 3 src.icon_state = "3" if(3) if(istype(P, /obj/item/weapon/wirecutters)) if(components.len) - user << "There are parts in the way!" + to_chat(user, "There are parts in the way!") return playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - user << "\blue You remove the cables." + to_chat(user, "\blue You remove the cables.") src.state = 2 src.icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc ) @@ -185,19 +185,19 @@ if(do_after(user, 20, target = src)) if(P) P:use(2) - user << "\blue You put in the glass panel." + to_chat(user, "\blue You put in the glass panel.") src.state = 4 src.icon_state = "4" if(4) if(istype(P, /obj/item/weapon/crowbar)) playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "\blue You remove the glass panel." + to_chat(user, "\blue You remove the glass panel.") src.state = 3 src.icon_state = "3" new /obj/item/stack/sheet/glass( src.loc, 2 ) if(istype(P, /obj/item/weapon/screwdriver)) playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "\blue You connect the monitor." + to_chat(user, "\blue You connect the monitor.") var/obj/machinery/computer3/B = new src.circuit.build_path ( src.loc, built=1 ) /*if(circuit.powernet) B:powernet = circuit.powernet if(circuit.id) B:id = circuit.id @@ -220,7 +220,7 @@ */ /obj/structure/computer3frame/proc/remove_peripheral(var/obj/item/I = null) if(!components || !components.len) - usr << "\red There are no components in [src] to take out!" + to_chat(usr, "\red There are no components in [src] to take out!") return 0 if(!I) I = input(usr, "Remove which component?","Remove component", null) as null|obj in components @@ -259,44 +259,44 @@ else warning("Erronous component in computerframe/remove_peripheral: [I]") I.loc = loc - usr << "\blue You remove [I]" + to_chat(usr, "\blue You remove [I]") return 1 return 0 /obj/structure/computer3frame/proc/insert_peripheral(var/obj/item/I) if(components.len >= max_components) - usr << "There isn't room in [src] for another component!" + to_chat(usr, "There isn't room in [src] for another component!") return 0 switch(I.type) if(/obj/item/part/computer/storage/hdd) if(hdd) - usr << "There is already \an [hdd] in [src]!" + to_chat(usr, "There is already \an [hdd] in [src]!") return 0 hdd = I components += hdd hdd.loc = src if(/obj/item/part/computer/storage/removable) if(floppy) - usr << "There is already \an [floppy] in [src]!" + to_chat(usr, "There is already \an [floppy] in [src]!") return 0 floppy = I components += floppy floppy.loc = src if(/obj/item/part/computer/networking/radio) if(radio) - usr << "There is already \an [radio] in [src]!" + to_chat(usr, "There is already \an [radio] in [src]!") return 0 radio = I components += radio radio.loc = src if(/obj/item/part/computer/networking/cameras) if(camnet) - usr << "There is already \an [camnet] in [src]!" + to_chat(usr, "There is already \an [camnet] in [src]!") return 0 camnet = I components += camnet camnet.loc = src if(/obj/item/part/computer/networking) if(net) - usr << "There is already \an [net] in [src]!" + to_chat(usr, "There is already \an [net] in [src]!") diff --git a/code/modules/computer3/component.dm b/code/modules/computer3/component.dm index 442ccce8193..6dac7aebb31 100644 --- a/code/modules/computer3/component.dm +++ b/code/modules/computer3/component.dm @@ -77,11 +77,11 @@ emag_act(user as mob) if(!writer) - usr << "You insert \the card, and the computer grinds, sparks, and beeps. After a moment, the card ejects itself." + to_chat(usr, "You insert \the card, and the computer grinds, sparks, and beeps. After a moment, the card ejects itself.") computer.emagged = 1 return 1 else - usr << "You are unable to insert \the card, as the reader slot is occupied" + to_chat(usr, "You are unable to insert \the card, as the reader slot is occupied") return 0 attackby(var/obj/item/I as obj, var/mob/user as mob, params) @@ -98,30 +98,30 @@ return 0 // This shouldn't happen, just in case.. if(slot == 2 && !dualslot) - usr << "This device has only one card slot" + to_chat(usr, "This device has only one card slot") return 0 var/mob/living/L = usr switch(slot) if(1) if(equip_to_reader(card, L)) - usr << "You insert the card into reader slot" + to_chat(usr, "You insert the card into reader slot") else - usr << "There is already something in the reader slot." + to_chat(usr, "There is already something in the reader slot.") if(2) if(equip_to_writer(card, L)) - usr << "You insert the card into writer slot" + to_chat(usr, "You insert the card into writer slot") else - usr << "There is already something in the reader slot." + to_chat(usr, "There is already something in the reader slot.") if(3) if(equip_to_reader(card, L)) - usr << "You insert the card into reader slot" + to_chat(usr, "You insert the card into reader slot") else if (equip_to_writer(card, L) && dualslot) - usr << "You insert the card into writer slot" + to_chat(usr, "You insert the card into writer slot") else if (dualslot) - usr << "There is already something in both slots." + to_chat(usr, "There is already something in both slots.") else - usr << "There is already something in the reader slot." + to_chat(usr, "There is already something in the reader slot.") // Usage of insert() preferred, as it also tells result to the user. proc/equip_to_reader(var/obj/item/weapon/card/card, var/mob/living/L) @@ -147,35 +147,35 @@ switch(slot) if(1) if (remove_reader(L)) - L << "You remove the card from reader slot" + to_chat(L, "You remove the card from reader slot") else - L << "There is no card in the reader slot" + to_chat(L, "There is no card in the reader slot") if(2) if (remove_writer(L)) - L << "You remove the card from writer slot" + to_chat(L, "You remove the card from writer slot") else - L << "There is no card in the writer slot" + to_chat(L, "There is no card in the writer slot") if(3) if (remove_reader(L)) if (remove_writer(L)) - L << "You remove cards from both slots" + to_chat(L, "You remove cards from both slots") else - L << "You remove the card from reader slot" + to_chat(L, "You remove the card from reader slot") else if(remove_writer(L)) - L << "You remove the card from writer slot" + to_chat(L, "You remove the card from writer slot") else - L << "There are no cards in both slots" + to_chat(L, "There are no cards in both slots") if(4) if (!remove_reader(L)) if (remove_writer(L)) - L << "You remove the card from writer slot" + to_chat(L, "You remove the card from writer slot") else if (!dualslot) - L << "There is no card in the reader slot" + to_chat(L, "There is no card in the reader slot") else - L << "There are no cards in both slots" + to_chat(L, "There are no cards in both slots") else - L << "You remove the card from reader slot" + to_chat(L, "You remove the card from reader slot") proc/remove_reader(var/mob/living/L) @@ -239,7 +239,7 @@ if(slot == 1) // 1: writer if(writer != null) - usr << "There's already a card in that slot!" + to_chat(usr, "There's already a card in that slot!") return 0 var/mob/living/L = usr L.drop_item() @@ -248,7 +248,7 @@ return 1 else if(slot == 2) // 2: reader if(reader != null) - usr << "There's already a card in that slot!" + to_chat(usr, "There's already a card in that slot!") return 0 var/mob/living/L = usr L.drop_item() @@ -257,7 +257,7 @@ return 1 else // 0: auto if(reader && writer) - usr << "Both slots are full!" + to_chat(usr, "Both slots are full!") return 0 var/mob/living/L = usr L.drop_item() diff --git a/code/modules/computer3/computer.dm b/code/modules/computer3/computer.dm index 3e4d8116fac..75252b33107 100644 --- a/code/modules/computer3/computer.dm +++ b/code/modules/computer3/computer.dm @@ -77,11 +77,11 @@ set src in view(1) if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living)) - usr << "\red You can't do that." + to_chat(usr, "\red You can't do that.") return if(!Adjacent(usr)) - usr << "You can't reach it." + to_chat(usr, "You can't reach it.") return Reset() @@ -365,7 +365,7 @@ os.attack_hand(user) return - user << "\The [src] won't boot!" + to_chat(user, "\The [src] won't boot!") attack_ai(var/mob/user as mob) // copypasta because server racks lose attack_hand() if(stat) @@ -390,7 +390,7 @@ os.attack_hand(user) return - user << "\The [src] won't boot!" + to_chat(user, "\The [src] won't boot!") interact() if(stat) diff --git a/code/modules/computer3/computers/atmos_alert.dm b/code/modules/computer3/computers/atmos_alert.dm index 6596b76d7c7..1d834565cac 100644 --- a/code/modules/computer3/computers/atmos_alert.dm +++ b/code/modules/computer3/computers/atmos_alert.dm @@ -97,14 +97,14 @@ var/removing_zone = href_list["priority_clear"] for(var/zone in priority_alarms) if(ckey(zone) == removing_zone) - usr << "\green Priority Alert for area [zone] cleared." + to_chat(usr, "\green Priority Alert for area [zone] cleared.") priority_alarms -= zone if("minor_clear" in href_list) var/removing_zone = href_list["minor_clear"] for(var/zone in minor_alarms) if(ckey(zone) == removing_zone) - usr << "\green Minor Alert for area [zone] cleared." + to_chat(usr, "\green Minor Alert for area [zone] cleared.") minor_alarms -= zone computer.updateUsrDialog() diff --git a/code/modules/computer3/computers/camera.dm b/code/modules/computer3/computers/camera.dm index 6dce48393db..7cf5fd0439a 100644 --- a/code/modules/computer3/computers/camera.dm +++ b/code/modules/computer3/computers/camera.dm @@ -316,7 +316,7 @@ if(key) interact() else - usr << "The screen turns to static." + to_chat(usr, "The screen turns to static.") return // Atlantis: Required for camnetkeys to work. diff --git a/code/modules/computer3/computers/cloning.dm b/code/modules/computer3/computers/cloning.dm index 49ed2a04b84..f90ba3e57e3 100644 --- a/code/modules/computer3/computers/cloning.dm +++ b/code/modules/computer3/computers/cloning.dm @@ -79,14 +79,14 @@ proc/RecordsList() var/dat = "

Current records

" - dat += topic_link(src,"menu=1","<< Back") + "

" + to_chat(dat += topic_link(src,"menu=1",", Back") + "

") for(var/datum/data/record/R in records) dat += "

[R.fields["name"]]

Scan ID [R.fields["id"]] " + topic_link(src,"view_rec=\ref[R]","View Record") return dat proc/ShowRecord() var/dat = "

Selected Record

" - dat += topic_link(src,"menu=2","<< Back") + "

" + to_chat(dat += topic_link(src,"menu=2",", Back") + "

") if (!active_record) dat += "Record not found." diff --git a/code/modules/computer3/computers/communications.dm b/code/modules/computer3/computers/communications.dm index 727496b7653..b738cef704e 100644 --- a/code/modules/computer3/computers/communications.dm +++ b/code/modules/computer3/computers/communications.dm @@ -60,7 +60,7 @@ if(!interactable() || !computer.radio || ..(href,href_list) ) return if (!(computer.z in config.station_levels)) - usr << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!") return if("main" in href_list) @@ -103,15 +103,15 @@ feedback_inc("alert_comms_blue",1) tmp_alertlevel = 0 else: - usr << "You are not authorized to do this." + to_chat(usr, "You are not authorized to do this.") tmp_alertlevel = 0 state = STATE_DEFAULT else - usr << "You need to swipe your ID." + to_chat(usr, "You need to swipe your ID.") if("announce" in href_list) if(authenticated==2) if(message_cooldown) - usr << "Please allow at least one minute to pass between announcements" + to_chat(usr, "Please allow at least one minute to pass between announcements") return var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement") if(!input || !interactable()) @@ -192,13 +192,13 @@ return if(authenticated==2) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = stripped_input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") if(!input || !interactable()) return Centcomm_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a Centcomm announcement: [input]") centcomm_message_cooldown = 1 spawn(600)//10 minute cooldown @@ -209,20 +209,20 @@ if("MessageSyndicate" in href_list) if((authenticated==2) && (computer.emagged)) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = stripped_input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") if(!input || !interactable()) return Syndicate_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a Syndicate announcement: [input]") centcomm_message_cooldown = 1 spawn(600)//10 minute cooldown centcomm_message_cooldown = 0 if("RestoreBackup" in href_list) - usr << "Backup routing data restored!" + to_chat(usr, "Backup routing data restored!") computer.emagged = 0 computer.updateDialog() diff --git a/code/modules/computer3/computers/law.dm b/code/modules/computer3/computers/law.dm index 1520f889ee5..ec278163b2a 100644 --- a/code/modules/computer3/computers/law.dm +++ b/code/modules/computer3/computers/law.dm @@ -17,15 +17,15 @@ opened = !opened if(opened) - usr << "\blue The access panel is now open." + to_chat(usr, "\blue The access panel is now open.") else - usr << "\blue The access panel is now closed." + to_chat(usr, "\blue The access panel is now closed.") return attackby(obj/item/weapon/aiModule/module as obj, mob/user as mob, params) if (user.z > 6) - user << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!") return if(istype(module, /obj/item/weapon/aiModule)) module.install(src) @@ -35,18 +35,18 @@ attack_hand(var/mob/user as mob) if(src.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(src.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return src.current = select_active_ai(user) if (!src.current) - usr << "No active AIs detected." + to_chat(usr, "No active AIs detected.") else - usr << "[src.current.name] selected for law changes." + to_chat(usr, "[src.current.name] selected for law changes.") return @@ -67,16 +67,16 @@ attack_hand(var/mob/user as mob) if(src.stat & NOPOWER) - usr << "The upload computer has no power!" + to_chat(usr, "The upload computer has no power!") return if(src.stat & BROKEN) - usr << "The upload computer is broken!" + to_chat(usr, "The upload computer is broken!") return src.current = freeborg() if (!src.current) - usr << "No free cyborgs detected." + to_chat(usr, "No free cyborgs detected.") else - usr << "[src.current.name] selected for law changes." + to_chat(usr, "[src.current.name] selected for law changes.") return diff --git a/code/modules/computer3/computers/medical.dm b/code/modules/computer3/computers/medical.dm index 1be7c672827..aeda16c4414 100644 --- a/code/modules/computer3/computers/medical.dm +++ b/code/modules/computer3/computers/medical.dm @@ -50,7 +50,7 @@ if(!interactable()) return if (computer.z > 6) - usr << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!") return var/dat diff --git a/code/modules/computer3/computers/message.dm b/code/modules/computer3/computers/message.dm index 27e47684d9c..31aa4f3a501 100644 --- a/code/modules/computer3/computers/message.dm +++ b/code/modules/computer3/computers/message.dm @@ -220,10 +220,10 @@ proc/BruteForce(mob/usr as mob) if(isnull(linkedServer)) - usr << "Could not complete brute-force: Linked Server Disconnected!" + to_chat(usr, "Could not complete brute-force: Linked Server Disconnected!") else var/currentKey = src.linkedServer.decryptkey - usr << "Brute-force completed! The key is '[currentKey]'." + to_chat(usr, "Brute-force completed! The key is '[currentKey]'.") src.hacking = 0 src.active_state = normal_icon src.screen = 0 // Return the screen back to normal @@ -414,7 +414,8 @@ O.show_message(text("\icon[customrecepient] *[customrecepient.ttone]*")) if( customrecepient.loc && ishuman(customrecepient.loc) ) var/mob/living/carbon/human/H = customrecepient.loc - H << "\icon[customrecepient] Message from [customsender] ([customjob]), \"[custommessage]\" (Reply)" + to_chat(H, "\icon[customrecepient] Message from [customsender] ([customjob]), \"[custommessage]\" (Reply)" + log_pda("[usr] (PDA: [customsender]) sent \"[custommessage]\" to [customrecepient.owner]") customrecepient.overlays.Cut() customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r") @@ -428,7 +429,8 @@ O.show_message(text("\icon[customrecepient] *[customrecepient.ttone]*")) if( customrecepient.loc && ishuman(customrecepient.loc) ) var/mob/living/carbon/human/H = customrecepient.loc - H << "\icon[customrecepient] Message from [PDARec.owner] ([customjob]), \"[custommessage]\" (Reply)" + to_chat(H, "\icon[customrecepient] Message from [PDARec.owner] ([customjob]), \"[custommessage]\" (Reply)" + log_pda("[usr] (PDA: [PDARec.owner]) sent \"[custommessage]\" to [customrecepient.owner]") customrecepient.overlays.Cut() customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r") @@ -443,7 +445,7 @@ if(auth) src.screen = 4 - //usr << href_list["select"] +// to_chat(usr, href_list["select"]) if ("back" in href_list) src.screen = 0 diff --git a/code/modules/computer3/computers/prisoner.dm b/code/modules/computer3/computers/prisoner.dm index f9a4c6f45d5..b38b376abf5 100644 --- a/code/modules/computer3/computers/prisoner.dm +++ b/code/modules/computer3/computers/prisoner.dm @@ -94,7 +94,7 @@ if( istype(I) && I.imp_in) var/mob/living/carbon/R = I.imp_in log_say("PrisonComputer3 message: [key_name(usr)]->[key_name(R)] : [warning]") - R << "\green You hear a voice in your head saying: '[warning]'" + to_chat(R, "\green You hear a voice in your head saying: '[warning]'") interact() return diff --git a/code/modules/computer3/computers/prisonshuttle.dm b/code/modules/computer3/computers/prisonshuttle.dm index e45f32337e2..119dbc350a4 100644 --- a/code/modules/computer3/computers/prisonshuttle.dm +++ b/code/modules/computer3/computers/prisonshuttle.dm @@ -46,29 +46,29 @@ var/prison_shuttle_timeleft = 0 A.anchored = 1 if (src.stat & BROKEN) - user << "\blue The broken glass falls out." + to_chat(user, "\blue The broken glass falls out.") new /obj/item/trash/shard( src.loc ) A.state = 3 A.icon_state = "3" else - user << "\blue You disconnect the monitor." + to_chat(user, "\blue You disconnect the monitor.") A.state = 4 A.icon_state = "4" del(src) else if(istype(I,/obj/item/card/emag) && (!hacked)) hacked = 1 - user << "\blue You disable the lock." + to_chat(user, "\blue You disable the lock.") else return src.attack_hand(user) attack_hand(var/mob/user as mob) if(!src.allowed(user) && (!hacked)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return if(prison_break) - user << "\red Unable to locate shuttle." + to_chat(user, "\red Unable to locate shuttle.") return if(..()) return @@ -100,11 +100,11 @@ var/prison_shuttle_timeleft = 0 if (href_list["sendtodock"]) if (!prison_can_move()) - usr << "\red The prison shuttle is unable to leave." + to_chat(usr, "\red The prison shuttle is unable to leave.") return if(!prison_shuttle_at_station|| prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return post_signal("prison") - usr << "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds." + to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.") src.temp += "Shuttle sent.

OK" src.updateUsrDialog() prison_shuttle_moving_to_prison = 1 @@ -114,11 +114,11 @@ var/prison_shuttle_timeleft = 0 else if (href_list["sendtostation"]) if (!prison_can_move()) - usr << "\red The prison shuttle is unable to leave." + to_chat(usr, "\red The prison shuttle is unable to leave.") return if(prison_shuttle_at_station || prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return post_signal("prison") - usr << "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds." + to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.") src.temp += "Shuttle sent.

OK" src.updateUsrDialog() prison_shuttle_moving_to_station = 1 @@ -186,7 +186,7 @@ var/prison_shuttle_timeleft = 0 if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return if (!prison_can_move()) - usr << "\red The prison shuttle is unable to leave." + to_chat(usr, "\red The prison shuttle is unable to leave.") return var/area/start_location = locate(/area/shuttle/prison/prison) @@ -215,7 +215,7 @@ var/prison_shuttle_timeleft = 0 if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return if (!prison_can_move()) - usr << "\red The prison shuttle is unable to leave." + to_chat(usr, "\red The prison shuttle is unable to leave.") return var/area/start_location = locate(/area/shuttle/prison/station) diff --git a/code/modules/computer3/computers/robot.dm b/code/modules/computer3/computers/robot.dm index 98eea82f9c2..002750b49c1 100644 --- a/code/modules/computer3/computers/robot.dm +++ b/code/modules/computer3/computers/robot.dm @@ -125,7 +125,7 @@ src.temp = null else - usr << "\red Access Denied." + to_chat(usr, "\red Access Denied.") if ("stop" in href_list) src.temp = {" @@ -159,7 +159,7 @@ if(choice == "Confirm") if(R && istype(R)) if(R.mind && R.mind.special_role && R.emagged) - R << "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered." + to_chat(R, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.") R.ResetSecurityCodes() else @@ -167,7 +167,7 @@ log_game("\blue [key_name_admin(usr)] detonated [R.name]!") R.self_destruct() else - usr << "\red Access Denied." + to_chat(usr, "\red Access Denied.") if ("stopbot" in href_list) if(computer.allowed(usr)) @@ -182,14 +182,14 @@ if (R.lockcharge) // R.cell.charge = R.lockcharge R.lockcharge = !R.lockcharge - R << "Your lockdown has been lifted!" + to_chat(R, "Your lockdown has been lifted!") else R.lockcharge = !R.lockcharge // R.cell.charge = 0 - R << "You have been locked down!" + to_chat(R, "You have been locked down!") else - usr << "\red Access Denied." + to_chat(usr, "\red Access Denied.") if ("magbot" in href_list) if(computer.allowed(usr)) diff --git a/code/modules/computer3/computers/scanconsole.dm b/code/modules/computer3/computers/scanconsole.dm index 46968ea8639..fa88ae24b36 100644 --- a/code/modules/computer3/computers/scanconsole.dm +++ b/code/modules/computer3/computers/scanconsole.dm @@ -358,7 +358,7 @@ proc/ui_menu() if(!viable) return "No viable occupant detected." - var/dat = topic_link(src,"mode=0","<< Main Menu") + "
" + to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
") dat += "

Modify Unique Identifier

" dat += "
Unique Identifier:
[getblockstring(ui=1)]

" @@ -372,7 +372,7 @@ proc/se_menu() if(!viable) return "No viable occupant detected." - var/dat = topic_link(src,"mode=0","<< Main Menu") + "
" + to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
") dat += "

Modify Structural Enzymes

" dat += "
Structural Enzymes: [getblockstring(ui=0)]

" dat += "Selected Block: " + block_plus_minus("seblock",se_block,1,MAX_SEBLOCK) + "

" @@ -382,7 +382,7 @@ return dat proc/emitter_menu() - var/dat = topic_link(src,"mode=0","<< Main Menu") + "
" + to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
") dat += "

Radiation Emitter Settings

" if (viable) dat += topic_link(src,"pulse","Pulse Radiation") @@ -741,7 +741,7 @@ human_occupant.reagents.add_reagent("inaprovaline", REJUVENATORS_INJECT) else human_occupant.reagents.add_reagent("inaprovaline", round(REJUVENATORS_MAX - human_occupant.reagents.get_reagent_amount("inaprovaline"))) - //usr << text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline")) +// to_chat(usr, text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline"))) //////////////////////////////////////////////////////// if (href_list["strucmenuplus"]) diff --git a/code/modules/computer3/computers/security.dm b/code/modules/computer3/computers/security.dm index 3c6560d6aa9..c7eb0a8881b 100644 --- a/code/modules/computer3/computers/security.dm +++ b/code/modules/computer3/computers/security.dm @@ -58,7 +58,7 @@ return if (computer.z > 6) - usr << "\red Unable to establish a connection: \black You're too far away from the station!" + to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!") return var/dat diff --git a/code/modules/computer3/computers/shuttle.dm b/code/modules/computer3/computers/shuttle.dm index 37c5291bada..236de564868 100644 --- a/code/modules/computer3/computers/shuttle.dm +++ b/code/modules/computer3/computers/shuttle.dm @@ -19,16 +19,16 @@ var/obj/item/device/pda/pda = W W = pda.id if (!W:access) //no access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return var/list/cardaccess = W:access if(!istype(cardaccess, /list) || !cardaccess.len) //no access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return if(!(access_heads in W:access)) //doesn't have this access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return 0 var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort") @@ -41,11 +41,11 @@ if (src.auth_need - src.authorized.len > 0) message_admins("[key_name_admin(user)] has authorized early shuttle launch") log_game("[user.ckey] has authorized early shuttle launch") - world << text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len) + to_chat(world, text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len)) else message_admins("[key_name_admin(user)] has launched the shuttle") log_game("[user.ckey] has launched the shuttle early") - world << "\blue Alert: Shuttle launch time shortened to 10 seconds!" + to_chat(world, "\blue Alert: Shuttle launch time shortened to 10 seconds!") emergency_shuttle.online = 1 emergency_shuttle.settimeleft(10) //src.authorized = null @@ -54,10 +54,10 @@ if("Repeal") src.authorized -= W:registered_name - world << text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len) + to_chat(world, text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len)) if("Abort") - world << "\blue All authorizations to shorting time for shuttle launch have been revoked!" + to_chat(world, "\blue All authorizations to shorting time for shuttle launch have been revoked!") src.authorized.len = 0 src.authorized = list( ) return @@ -69,7 +69,7 @@ if(!emagged && emergency_shuttle.location == 1) switch(choice) if("Launch") - world << "\blue Alert: Shuttle launch time shortened to 10 seconds!" + to_chat(world, "\blue Alert: Shuttle launch time shortened to 10 seconds!") emergency_shuttle.settimeleft( 10 ) emagged = 1 if("Cancel") diff --git a/code/modules/computer3/computers/specops_shuttle.dm b/code/modules/computer3/computers/specops_shuttle.dm index 409246b9c8a..8281a30479f 100644 --- a/code/modules/computer3/computers/specops_shuttle.dm +++ b/code/modules/computer3/computers/specops_shuttle.dm @@ -58,7 +58,7 @@ var/specops_shuttle_timeleft = 0 if (specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "\red The Special Operations shuttle is unable to leave." + to_chat(usr, "\red The Special Operations shuttle is unable to leave.") return //Begin Marauder launchpad. @@ -153,7 +153,7 @@ var/specops_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "\red You have arrived to [station_name]. Commence operation!" + to_chat(M, "\red You have arrived to [station_name]. Commence operation!") /proc/specops_can_move() if(specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return 0 @@ -170,17 +170,17 @@ var/specops_shuttle_timeleft = 0 /obj/machinery/computer3/specops_shuttle/attackby(I as obj, user as mob, params) if(istype(I,/obj/item/card/emag)) - user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.") else return attack_hand(user) /obj/machinery/computer3/specops_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return if (sent_strike_team == 0) - usr << "\red The strike team has not yet deployed." + to_chat(usr, "\red The strike team has not yet deployed.") return if(..()) @@ -214,17 +214,17 @@ var/specops_shuttle_timeleft = 0 if (href_list["sendtodock"]) if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return - usr << "\blue Central Command will not allow the Special Operations shuttle to return." + to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return.") return else if (href_list["sendtostation"]) if(specops_shuttle_at_station || specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "\red The Special Operations shuttle is unable to leave." + to_chat(usr, "\red The Special Operations shuttle is unable to leave.") return - usr << "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds." + to_chat(usr, "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds.") temp += "Shuttle departing.

OK" updateUsrDialog() diff --git a/code/modules/computer3/computers/syndicate_shuttle.dm b/code/modules/computer3/computers/syndicate_shuttle.dm index 1b4d35456c7..5585f4fff0a 100644 --- a/code/modules/computer3/computers/syndicate_shuttle.dm +++ b/code/modules/computer3/computers/syndicate_shuttle.dm @@ -47,7 +47,7 @@ /obj/machinery/computer3/syndicate_station/attack_hand(mob/user as mob) if(!allowed(user)) - user << "\red Access Denied" + to_chat(user, "\red Access Denied") return user.set_machine(src) diff --git a/code/modules/computer3/computers/syndicate_specops_shuttle.dm b/code/modules/computer3/computers/syndicate_specops_shuttle.dm index 2e9b4bc1842..f490cd3c822 100644 --- a/code/modules/computer3/computers/syndicate_specops_shuttle.dm +++ b/code/modules/computer3/computers/syndicate_specops_shuttle.dm @@ -58,7 +58,7 @@ var/syndicate_elite_shuttle_timeleft = 0 if (syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return if (!syndicate_elite_can_move()) - usr << "\red The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.") return sleep(600) @@ -166,7 +166,7 @@ var/syndicate_elite_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "\red You have arrived to [station_name]. Commence operation!" + to_chat(M, "\red You have arrived to [station_name]. Commence operation!") /proc/syndicate_elite_can_move() if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return 0 @@ -183,17 +183,17 @@ var/syndicate_elite_shuttle_timeleft = 0 /obj/machinery/computer3/syndicate_elite_shuttle/attackby(I as obj, user as mob, params) if(istype(I,/obj/item/card/emag)) - user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.") else return attack_hand(user) /obj/machinery/computer3/syndicate_elite_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "\red Access Denied." + to_chat(user, "\red Access Denied.") return // if (sent_syndicate_strike_team == 0) -// usr << "\red The strike team has not yet deployed." +// to_chat(usr, "\red The strike team has not yet deployed.") // return if(..()) @@ -226,17 +226,17 @@ var/syndicate_elite_shuttle_timeleft = 0 if (href_list["sendtodock"]) if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return - usr << "\blue The Syndicate will not allow the Elite Squad shuttle to return." + to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.") return else if (href_list["sendtostation"]) if(syndicate_elite_shuttle_at_station || syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return if (!specops_can_move()) - usr << "\red The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.") return - usr << "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds." + to_chat(usr, "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds.") temp = "Shuttle departing.

OK" updateUsrDialog() diff --git a/code/modules/computer3/laptop.dm b/code/modules/computer3/laptop.dm index 037b505d779..dd4f73914b6 100644 --- a/code/modules/computer3/laptop.dm +++ b/code/modules/computer3/laptop.dm @@ -35,22 +35,22 @@ set src in view(1) if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living)) - usr << "\red You can't do that." + to_chat(usr, "\red You can't do that.") return if(!Adjacent(usr)) - usr << "You can't reach it." + to_chat(usr, "You can't reach it.") return if(!istype(loc,/turf)) - usr << "[src] is too bulky! You'll have to set it down." + to_chat(usr, "[src] is too bulky! You'll have to set it down.") return if(!stored_computer) if(contents.len) for(var/obj/O in contents) O.forceMove(loc) - usr << "\The [src] crumbles to pieces." + to_chat(usr, "\The [src] crumbles to pieces.") spawn(5) qdel(src) return @@ -61,13 +61,13 @@ stored_computer.stat &= ~MAINT stored_computer.update_icon() loc = null - usr << "You open \the [src]." + to_chat(usr, "You open \the [src].") spawn(5) stored_computer.manipulating = 0 qdel(src) else - usr << "\red You are already opening the computer!" + to_chat(usr, "\red You are already opening the computer!") AltClick() @@ -95,7 +95,7 @@ var/obj/item/part/computer/cardslot/C = locate() in src.contents if(!C) - usr << "There is no card port on the laptop." + to_chat(usr, "There is no card port on the laptop.") return var/obj/item/weapon/card/id/card @@ -104,10 +104,10 @@ else if(C.writer) card = C.writer else - usr << "There is nothing to remove from the laptop card port." + to_chat(usr, "There is nothing to remove from the laptop card port.") return - usr << "You remove [card] from the laptop." + to_chat(usr, "You remove [card] from the laptop.") C.remove(card) @@ -135,11 +135,11 @@ set src in view(1) if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living)) - usr << "\red You can't do that." + to_chat(usr, "\red You can't do that.") return if(!Adjacent(usr)) - usr << "You can't reach it." + to_chat(usr, "You can't reach it.") return if(istype(loc,/obj/item/device/laptop)) @@ -150,7 +150,7 @@ return if(stat&BROKEN) - usr << "\The [src] is broken! You can't quite get it closed." + to_chat(usr, "\The [src] is broken! You can't quite get it closed.") return if(!portable) @@ -161,7 +161,7 @@ portable.forceMove(loc) forceMove(portable) stat |= MAINT - usr << "You close \the [src]." + to_chat(usr, "You close \the [src].") auto_use_power() if(stat&MAINT) diff --git a/code/modules/computer3/lapvend.dm b/code/modules/computer3/lapvend.dm index 7e4a0f1769e..8383981046d 100644 --- a/code/modules/computer3/lapvend.dm +++ b/code/modules/computer3/lapvend.dm @@ -56,7 +56,7 @@ usr.drop_item() L.loc = src vendmode = 3 - usr << "You slot your [L.name] into \The [src.name]" + to_chat(usr, "You slot your [L.name] into \The [src.name]") else ..() @@ -262,11 +262,11 @@ network = 0 power = 0 else - usr << "\icon[src]You don't have that much money!" + to_chat(usr, "\icon[src]You don't have that much money!") else - usr << "\icon[src]Unable to access account. Check security settings and try again." + to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.") else - usr << "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support." + to_chat(usr, "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support.") /obj/machinery/lapvend/proc/total() var/total = 0 @@ -405,6 +405,6 @@ power = 0 else - usr << "\icon[src]Unable to access account. Check security settings and try again." + to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.") else - usr << "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support." \ No newline at end of file + to_chat(usr, "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support.") diff --git a/code/modules/computer3/storage.dm b/code/modules/computer3/storage.dm index 3fe8279fad7..9ff8cab497b 100644 --- a/code/modules/computer3/storage.dm +++ b/code/modules/computer3/storage.dm @@ -116,16 +116,16 @@ attackby(obj/O as obj, mob/user as mob, params) if(inserted && istype(O,/obj/item/weapon/pen)) - usr << "You use [O] to carefully pry [inserted] out of [src]." + to_chat(usr, "You use [O] to carefully pry [inserted] out of [src].") eject_disk(forced = 1) return if(istype(O,/obj/item/weapon/disk/file)) if(inserted) - usr << "There's already a disk in [src]!" + to_chat(usr, "There's already a disk in [src]!") return - usr << "You insert [O] into [src]." + to_chat(usr, "You insert [O] into [src].") usr.drop_item() O.loc = src inserted = O diff --git a/code/modules/computer3/upload/programs.dm b/code/modules/computer3/upload/programs.dm index bcf45159b69..34197f3bf69 100644 --- a/code/modules/computer3/upload/programs.dm +++ b/code/modules/computer3/upload/programs.dm @@ -8,6 +8,6 @@ if(!interactable() || istype(usr,/mob/living/silicon)) return 0 if(!computer.net) - usr << "An indecipherable set of code flicks across the screen. Nothing else happens." + to_chat(usr, "An indecipherable set of code flicks across the screen. Nothing else happens.") return var/list/results = computer.net.get_machines \ No newline at end of file diff --git a/code/modules/crafting/guncrafting.dm b/code/modules/crafting/guncrafting.dm index 095dfcbe360..8a9d5803529 100644 --- a/code/modules/crafting/guncrafting.dm +++ b/code/modules/crafting/guncrafting.dm @@ -20,7 +20,7 @@ /obj/item/weaponcrafting/receiver/attackby(obj/item/W as obj, mob/user as mob, params) if(istype(W,/obj/item/pipe)) - user << "You attach the shotgun barrel to the receiver. The pins seem loose." + to_chat(user, "You attach the shotgun barrel to the receiver. The pins seem loose.") var/obj/item/weaponcrafting/ishotgunconstruction/I = new /obj/item/weaponcrafting/ishotgunconstruction user.unEquip(src) user.put_in_hands(I) @@ -42,7 +42,7 @@ var/obj/item/weaponcrafting/ishotgunconstruction2/C = new /obj/item/weaponcrafting/ishotgunconstruction2 user.unEquip(src) user.put_in_hands(C) - user << "You screw the pins into place, securing the pipe to the receiver." + to_chat(user, "You screw the pins into place, securing the pipe to the receiver.") qdel(src) /obj/item/weaponcrafting/ishotgunconstruction2 @@ -53,7 +53,7 @@ /obj/item/weaponcrafting/ishotgunconstruction2/attackby(obj/item/W as obj, mob/user as mob, params) if(istype(W,/obj/item/weaponcrafting/stock)) - user << "You attach the stock to the receiver-barrel assembly." + to_chat(user, "You attach the stock to the receiver-barrel assembly.") var/obj/item/weaponcrafting/ishotgunconstruction3/I = new /obj/item/weaponcrafting/ishotgunconstruction3 user.unEquip(src) user.put_in_hands(I) @@ -75,9 +75,9 @@ var/obj/item/weapon/gun/projectile/revolver/doublebarrel/improvised/W = new /obj/item/weapon/gun/projectile/revolver/doublebarrel/improvised user.unEquip(src) user.put_in_hands(W) - user << "You tie the wrapping paper around the stock and the barrel to secure it." + to_chat(user, "You tie the wrapping paper around the stock and the barrel to secure it.") qdel(src) else - user << "You need at least five feet of wrapping paper to secure the stock." + to_chat(user, "You need at least five feet of wrapping paper to secure the stock.") return diff --git a/code/modules/crafting/table.dm b/code/modules/crafting/table.dm index b43c4cb89ce..19ea37c3866 100644 --- a/code/modules/crafting/table.dm +++ b/code/modules/crafting/table.dm @@ -203,15 +203,15 @@ return if(href_list["make"]) if(!check_table_space()) - usr << "The table is too crowded." + to_chat(usr, "The table is too crowded.") return var/datum/table_recipe/TR = locate(href_list["make"]) busy = 1 interact(usr) if(construct_item(usr, TR)) - usr << "[TR.name] constructed." + to_chat(usr, "[TR.name] constructed.") else - usr << "Construction failed." + to_chat(usr, "Construction failed.") busy = 0 interact(usr) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index b3cf1793f4f..c89d08b8d1b 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -28,29 +28,29 @@ /obj/item/device/fluff/tattoo_gun/attack(mob/living/carbon/M as mob, mob/user as mob) if(user.a_intent == "harm") user.visible_message("[user] stabs [M] with the [src]!", "You stab [M] with the [src]!") - M << "[user] stabs you with the [src]!
You feel a tiny prick!" + to_chat(M, "[user] stabs you with the [src]!
You feel a tiny prick!") return if(used) - user << "The [src] is out of ink." + to_chat(user, "The [src] is out of ink.") return if(!istype(M, /mob/living/carbon/human)) - user << "You don't think tattooing [M] is the best idea." + to_chat(user, "You don't think tattooing [M] is the best idea.") return var/mob/living/carbon/human/target = M if(istype(target.species, /datum/species/machine)) - user << "[target] has no skin, how do you expect to tattoo them?" + to_chat(user, "[target] has no skin, how do you expect to tattoo them?") return if(target.m_style != "None") - user << "[target] already has body markings, any more would look silly!" + to_chat(user, "[target] already has body markings, any more would look silly!") return if(target == user) - user << "You use the [src] to apply a [tattoo_name] to yourself!" + to_chat(user, "You use the [src] to apply a [tattoo_name] to yourself!") else user.visible_message("[user] begins to apply a [tattoo_name] [target] with the [src].", "You begin to tattoo [target] with the [src]!") @@ -127,7 +127,7 @@ C.regenerate_icons() C.name = "Detective Sax" C.visible_message("[C] suddenly winks into existence at [user]'s feet!") - user << "[src] crumbles to dust in your hands!" + to_chat(user, "[src] crumbles to dust in your hands!") qdel(src) /obj/item/weapon/storage/toolbox/fluff/lunchbox //godoforeos: Jason Conrad @@ -227,15 +227,15 @@ switch(icon_state) if("Kluysfluff1") src.icon_state = "Kluysfluff2" - usr << "The fibre unfolds into a jacket." + to_chat(usr, "The fibre unfolds into a jacket.") if("Kluysfluff2") src.icon_state = "Kluysfluff3" - usr << "The fibre unfolds into a coat." + to_chat(usr, "The fibre unfolds into a coat.") if("Kluysfluff3") src.icon_state = "Kluysfluff1" - usr << "The fibre gets sucked back into its holder." + to_chat(usr, "The fibre gets sucked back into its holder.") else - usr << "You attempt to hit the button but can't." + to_chat(usr, "You attempt to hit the button but can't.") return usr.update_inv_wear_suit() @@ -284,10 +284,10 @@ if(src.icon_state == "jane_sid_suit_down") src.item_color = "jane_sid_suit" - usr << "You zip up \the [src]." + to_chat(usr, "You zip up \the [src].") else src.item_color = "jane_sid_suit_down" - usr << "You unzip and roll down \the [src]." + to_chat(usr, "You unzip and roll down \the [src].") src.icon_state = "[item_color]" src.item_state = "[item_color]" @@ -370,12 +370,12 @@ if(adjusted) icon_state = initial(icon_state) item_state = initial(item_state) - usr << "You untransform \the [src]." + to_chat(usr, "You untransform \the [src].") adjusted = 0 else icon_state += "_open" item_state += "_open" - usr << "You transform \the [src]." + to_chat(usr, "You transform \the [src].") adjusted = 1 usr.update_inv_head() diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index 909abc1bbdc..d0b350b9b1e 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -45,13 +45,13 @@ if(S.contents.len < S.storage_slots) Item.loc = M.back ok = 1 - M << "Your [Item.name] has been added to your [M.back.name]." + to_chat(M, "Your [Item.name] has been added to your [M.back.name].") if(ok == 0) for(var/obj/item/weapon/storage/S in M.contents) // Try to place it in any item that can store stuff, on the mob. if (S.contents.len < S.storage_slots) Item.loc = S ok = 1 - M << "Your [Item.name] has been added to your [S.name]." + to_chat(M, "Your [Item.name] has been added to your [S.name].") break if(description) Item.desc = description diff --git a/code/modules/detective_work/evidence.dm b/code/modules/detective_work/evidence.dm index e2cf4ba6931..4654e0ab665 100644 --- a/code/modules/detective_work/evidence.dm +++ b/code/modules/detective_work/evidence.dm @@ -22,15 +22,15 @@ return if(istype(I, /obj/item/weapon/evidencebag)) - user << "You find putting an evidence bag in another evidence bag to be slightly absurd." + to_chat(user, "You find putting an evidence bag in another evidence bag to be slightly absurd.") return 1 //now this is podracing if(I.w_class > 3) - user << "[I] won't fit in [src]." + to_chat(user, "[I] won't fit in [src].") return if(contents.len) - user << "[src] already has something inside it." + to_chat(user, "[src] already has something inside it.") return if(!isturf(I.loc)) //If it isn't on the floor. Do some checks to see if it's in our hands or a box. Otherwise give up. @@ -77,7 +77,7 @@ desc = "An empty evidence bag." else - user << "[src] is empty." + to_chat(user, "[src] is empty.") icon_state = "evidenceobj" return diff --git a/code/modules/detective_work/scanner.dm b/code/modules/detective_work/scanner.dm index 370c224ce52..59466282384 100644 --- a/code/modules/detective_work/scanner.dm +++ b/code/modules/detective_work/scanner.dm @@ -17,7 +17,7 @@ /obj/item/device/detective_scanner/attack_self(var/mob/user) if(log.len && !scanning) scanning = 1 - user << "Printing report, please wait..." + to_chat(user, "Printing report, please wait...") playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1) spawn(100) @@ -32,13 +32,13 @@ if(ismob(loc)) var/mob/M = loc M.put_in_hands(P) - M << "Report printed. Log cleared." + to_chat(M, "Report printed. Log cleared.") // Clear the logs log = list() scanning = 0 else - user << "The scanner has no logs or is in use." + to_chat(user, "The scanner has no logs or is in use.") /obj/item/device/detective_scanner/attack(mob/living/M as mob, mob/user as mob) return @@ -59,7 +59,7 @@ scanning = 1 user.visible_message("\The [user] points the [src.name] at \the [A] and performs a forensic scan.") - user << "You scan \the [A]. The scanner is now analysing the results..." + to_chat(user, "You scan \the [A]. The scanner is now analysing the results...") // GATHER INFORMATION @@ -152,10 +152,10 @@ if(!found_something) add_log("# No forensic traces found #", 0) // Don't display this to the holder user if(holder) - holder << "Unable to locate any fingerprints, materials, fibers, or blood on \the [target_name]!" + to_chat(holder, "Unable to locate any fingerprints, materials, fibers, or blood on \the [target_name]!") else if(holder) - holder << "You finish scanning \the [target_name]." + to_chat(holder, "You finish scanning \the [target_name].") add_log("---------------------------------------------------------", 0) scanning = 0 @@ -165,7 +165,7 @@ if(scanning) if(broadcast && ismob(loc)) var/mob/M = loc - M << msg + to_chat(M, msg) log += "  [msg]" else CRASH("[src] \ref[src] is adding a log when it was never put in scanning mode!") diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm index 2f359cd2a39..7448d3da352 100644 --- a/code/modules/economy/ATM.dm +++ b/code/modules/economy/ATM.dm @@ -112,7 +112,7 @@ log transactions T.time = worldtime2text() authenticated_account.transaction_log.Add(T) - user << "You insert [C] into [src]." + to_chat(user, "You insert [C] into [src].") src.attack_hand(user) qdel(I) else @@ -120,7 +120,7 @@ log transactions /obj/machinery/atm/attack_hand(mob/user as mob) if(istype(user, /mob/living/silicon)) - user << "\red Artificial unit recognized. Artificial units do not currently receive monetary compensation, as per Nanotrasen regulation #1005." + to_chat(user, "\red Artificial unit recognized. Artificial units do not currently receive monetary compensation, as per Nanotrasen regulation #1005.") return if(get_dist(src,user) <= 1) //check to see if the user has low security enabled @@ -225,7 +225,7 @@ log transactions var/target_account_number = text2num(href_list["target_acc_number"]) var/transfer_purpose = href_list["purpose"] if(linked_db.charge_to_account(target_account_number, authenticated_account.owner_name, transfer_purpose, machine_id, transfer_amount)) - usr << "\icon[src]Funds transfer successful." + to_chat(usr, "\icon[src]Funds transfer successful.") authenticated_account.money -= transfer_amount //create an entry in the account transaction log @@ -238,10 +238,10 @@ log transactions T.amount = "([transfer_amount])" authenticated_account.transaction_log.Add(T) else - usr << "\icon[src]Funds transfer failed." + to_chat(usr, "\icon[src]Funds transfer failed.") else - usr << "\icon[src]You don't have enough funds to do that!" + to_chat(usr, "\icon[src]You don't have enough funds to do that!") if("view_screen") view_screen = text2num(href_list["view_screen"]) if("change_security_level") @@ -275,11 +275,11 @@ log transactions T.time = worldtime2text() failed_account.transaction_log.Add(T) else - usr << "\red \icon[src] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining." + to_chat(usr, "\red \icon[src] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining.") previous_account_number = tried_account_num playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1) else - usr << "\red \icon[src] incorrect pin/account combination entered." + to_chat(usr, "\red \icon[src] incorrect pin/account combination entered.") number_incorrect_tries = 0 else playsound(src, 'sound/machines/twobeep.ogg', 50, 1) @@ -295,7 +295,7 @@ log transactions T.time = worldtime2text() authenticated_account.transaction_log.Add(T) - usr << "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'" + to_chat(usr, "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'") previous_account_number = tried_account_num if("withdrawal") @@ -308,7 +308,7 @@ log transactions //remove the money if(amount > 10000) // prevent crashes - usr << "\blue The ATM's screen flashes, 'Maximum single withdrawl limit reached, defaulting to 10,000.'" + to_chat(usr, "\blue The ATM's screen flashes, 'Maximum single withdrawl limit reached, defaulting to 10,000.'") amount = 10000 authenticated_account.money -= amount withdraw_arbitrary_sum(amount) @@ -323,11 +323,11 @@ log transactions T.time = worldtime2text() authenticated_account.transaction_log.Add(T) else - usr << "\icon[src]You don't have enough funds to do that!" + to_chat(usr, "\icon[src]You don't have enough funds to do that!") if("balance_statement") if(authenticated_account) if(world.timeofday < lastprint + PRINT_DELAY) - usr << "The [src.name] flashes an error on its display." + to_chat(usr, "The [src.name] flashes an error on its display.") return lastprint = world.timeofday playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1) @@ -391,7 +391,7 @@ log transactions if(I) authenticated_account = attempt_account_access(I.associated_account_number) if(authenticated_account) - human_user << "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'" + to_chat(human_user, "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'") //create a transaction log entry var/datum/transaction/T = new() diff --git a/code/modules/economy/EFTPOS.dm b/code/modules/economy/EFTPOS.dm index 729ae67acce..a9fe34e1e46 100644 --- a/code/modules/economy/EFTPOS.dm +++ b/code/modules/economy/EFTPOS.dm @@ -111,9 +111,9 @@ var/obj/item/weapon/card/I = O scan_card(I) else - usr << "\icon[src]Unable to connect to linked account." + to_chat(usr, "\icon[src]Unable to connect to linked account.") else - usr << "\icon[src]Unable to connect to accounts database." + to_chat(usr, "\icon[src]Unable to connect to accounts database.") else ..() @@ -130,7 +130,7 @@ alert("That is not a valid code!") print_reference() else - usr << "\icon[src]Incorrect code entered." + to_chat(usr, "\icon[src]Incorrect code entered.") if("change_id") var/attempt_code = text2num(input("Re-enter the current EFTPOS access code", "Confirm EFTPOS code")) if(attempt_code == access_code) @@ -139,7 +139,7 @@ eftpos_name = name + " EFTPOS scanner" print_reference() else - usr << "\icon[src]Incorrect code entered." + to_chat(usr, "\icon[src]Incorrect code entered.") if("link_account") if(!linked_db) reconnect_database() @@ -148,7 +148,7 @@ var/attempt_pin = input("Enter pin code", "Account pin") as num linked_account = attempt_account_access(attempt_account_num, attempt_pin, 1) else - usr << "\icon[src]Unable to connect to accounts database." + to_chat(usr, "\icon[src]Unable to connect to accounts database.") if("trans_purpose") var/purpose = input("Enter reason for EFTPOS transaction", "Transaction purpose") as text|null if(purpose) @@ -168,7 +168,7 @@ else if(linked_account) transaction_locked = 1 else - usr << "\icon[src] No account connected to send transactions to." + to_chat(usr, "\icon[src] No account connected to send transactions to.") if("scan_card") //attempt to connect to a new db, and if that doesn't work then fail if(!linked_db) @@ -178,7 +178,7 @@ if (istype(I, /obj/item/weapon/card)) scan_card(I) else - usr << "\icon[src]Unable to link accounts." + to_chat(usr, "\icon[src]Unable to link accounts.") if("reset") //reset the access code - requires HoP/captain access var/obj/item/I = usr.get_active_hand() @@ -186,10 +186,10 @@ var/obj/item/weapon/card/id/C = I if(access_cent_commander in C.access || access_hop in C.access || access_captain in C.access) access_code = 0 - usr << "\icon[src]Access code reset to 0." + to_chat(usr, "\icon[src]Access code reset to 0.") else if (istype(I, /obj/item/weapon/card/emag)) access_code = 0 - usr << "\icon[src]Access code reset to 0." + to_chat(usr, "\icon[src]Access code reset to 0.") src.attack_self(usr) @@ -233,11 +233,11 @@ T.time = worldtime2text() linked_account.transaction_log.Add(T) else - usr << "\icon[src]You don't have that much money!" + to_chat(usr, "\icon[src]You don't have that much money!") else - usr << "\icon[src]Unable to access account. Check security settings and try again." + to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.") else - usr << "\icon[src]EFTPOS is not connected to an account." + to_chat(usr, "\icon[src]EFTPOS is not connected to an account.") else ..() diff --git a/code/modules/economy/POS.dm b/code/modules/economy/POS.dm index c1e1f83f27b..79e506ddee9 100644 --- a/code/modules/economy/POS.dm +++ b/code/modules/economy/POS.dm @@ -403,7 +403,7 @@ var/const/POS_HEADER = {" src.attack_hand(usr) return if(usr != logged_in) - usr << "\red [logged_in.name] is already logged in. You cannot use this machine until they log out." + to_chat(usr, "\red [logged_in.name] is already logged in. You cannot use this machine until they log out.") return if("act" in href_list) switch(href_list["act"]) @@ -431,7 +431,7 @@ var/const/POS_HEADER = {" for(var/list/line in splittext(href_list["csv"],"\n")) var/list/cells = splittext(line,",") if(cells.len<2) - usr << "\red The CSV must have at least two columns: Product Name, followed by Price (as a number)." + to_chat(usr, "\red The CSV must have at least two columns: Product Name, followed by Price (as a number).") src.attack_hand(usr) return var/line_item/LI = new @@ -445,7 +445,7 @@ var/const/POS_HEADER = {" if("Save Settings") var/datum/money_account/new_linked_account = get_money_account(text2num(href_list["payableto"]),z) if(!new_linked_account) - usr << "\red Unable to link new account." + to_chat(usr, "\red Unable to link new account.") else linked_account = new_linked_account screen=POS_SCREEN_SETTINGS diff --git a/code/modules/economy/utils.dm b/code/modules/economy/utils.dm index a23308b9219..5ef9a033b6d 100644 --- a/code/modules/economy/utils.dm +++ b/code/modules/economy/utils.dm @@ -48,7 +48,7 @@ /datum/money_account/proc/charge(var/transaction_amount,var/datum/money_account/dest,var/transaction_purpose, var/terminal_name="", var/terminal_id=0, var/dest_name = "UNKNOWN") if(suspended) - usr << "Unable to access source account: account suspended." + to_chat(usr, "Unable to access source account: account suspended.") return 0 if(transaction_amount <= money) @@ -88,5 +88,5 @@ transaction_log.Add(T) return 1 else - usr << "Insufficient funds in account." + to_chat(usr, "Insufficient funds in account.") return 0 \ No newline at end of file diff --git a/code/modules/events/communications_blackout.dm b/code/modules/events/communications_blackout.dm index 3ec9b6d2e46..6ada1a25c0f 100644 --- a/code/modules/events/communications_blackout.dm +++ b/code/modules/events/communications_blackout.dm @@ -7,9 +7,9 @@ "#4nd%;f4y6,>?%-BZZZZZZZT") for(var/mob/living/silicon/ai/A in player_list) //AIs are always aware of communication blackouts. - A << "
" - A << "[alert]" - A << "
" + to_chat(A, "
") + to_chat(A, "[alert]") + to_chat(A, "
") if(prob(30)) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts. command_announcement.Announce(alert) @@ -23,8 +23,8 @@ command_announcement.Announce("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT", new_sound = 'sound/misc/interference.ogg') else // AIs will always know if there's a comm blackout, rogue AIs could then lie about comm blackouts in the future while they shutdown comms for(var/mob/living/silicon/ai/A in player_list) - A << "
" - A << "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT" - A << "
" + to_chat(A, "
") + to_chat(A, "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT") + to_chat(A, "
") for(var/obj/machinery/telecomms/T in telecomms_list) T.emp_act(1) diff --git a/code/modules/events/event_manager.dm b/code/modules/events/event_manager.dm index 7ddb6470282..85ffa86f25f 100644 --- a/code/modules/events/event_manager.dm +++ b/code/modules/events/event_manager.dm @@ -73,7 +73,7 @@ if(!report_at_round_end) return - world << "


Random Events This Round:" + to_chat(world, "


Random Events This Round:") for(var/datum/event/E in active_events|finished_events) var/datum/event_meta/EM = E.event_meta if(EM.name == "Nothing") @@ -87,7 +87,7 @@ else message += "and ran to completion." - world << message + to_chat(world, message) /datum/event_manager/proc/GetInteractWindow() var/html = "Refresh" diff --git a/code/modules/events/holidays/Holidays.dm b/code/modules/events/holidays/Holidays.dm index 38ea6d63ac6..e06c7764a39 100644 --- a/code/modules/events/holidays/Holidays.dm +++ b/code/modules/events/holidays/Holidays.dm @@ -140,8 +140,8 @@ var/global/Holiday = null //Run at the start of a round /proc/Holiday_Game_Start() if(Holiday) - world << "and..." - world << "

Happy [Holiday] Everybody!

" + to_chat(world, "and...") + to_chat(world, "

Happy [Holiday] Everybody!

") switch(Holiday) //special holidays if("Easter") //do easter stuff diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm index 980319a1979..d153294c790 100644 --- a/code/modules/events/ion_storm.dm +++ b/code/modules/events/ion_storm.dm @@ -27,9 +27,9 @@ var/message = generate_ion_law(ionMessage) if(message) M.add_ion_law(message) - M << "
" - M << "[message] ...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[message] ...LAWS UPDATED") + to_chat(M, "
") if(botEmagChance) for(var/mob/living/simple_animal/bot/bot in machines) diff --git a/code/modules/events/prison_break.dm b/code/modules/events/prison_break.dm index b1a6c522081..89671701958 100644 --- a/code/modules/events/prison_break.dm +++ b/code/modules/events/prison_break.dm @@ -50,7 +50,7 @@ for(var/obj/machinery/message_server/MS in world) MS.send_rc_message("Engineering", my_department, rc_message, "", "", 2) for(var/mob/living/silicon/ai/A in player_list) - A << "Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department]." + to_chat(A, "Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department].") else log_to_dd("ERROR: Could not initate grey-tide. Unable to find suitable containment area.") diff --git a/code/modules/events/undead.dm b/code/modules/events/undead.dm index c6aa04ba00f..2ff8d05c20a 100644 --- a/code/modules/events/undead.dm +++ b/code/modules/events/undead.dm @@ -37,4 +37,4 @@ /datum/event/undead/announce() for(var/mob/living/M in player_list) - M << "You feel [pick("a chill","a deathly chill","the undead","dirty", "creeped out","afraid","fear")]!" + to_chat(M, "You feel [pick("a chill","a deathly chill","the undead","dirty", "creeped out","afraid","fear")]!") diff --git a/code/modules/fish/fish_items.dm b/code/modules/fish/fish_items.dm index 612c991b938..00659104480 100644 --- a/code/modules/fish/fish_items.dm +++ b/code/modules/fish/fish_items.dm @@ -39,7 +39,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi throw_range = 7 suicide_act(mob/user) //"A tiny net is a death sentence: it's a net and it's tiny!" https://www.youtube.com/watch?v=FCI9Y4VGCVw - viewers(user) << "[user] places the [src.name] on top of \his head, \his fingers tangled in the netting! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] places the [src.name] on top of \his head, \his fingers tangled in the netting! It looks like \he's trying to commit suicide.") return(OXYLOSS) /obj/item/weapon/fishfood @@ -65,7 +65,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi attack_verb = list("scrubbed", "brushed", "scraped") suicide_act(mob/user) - viewers(user) << "[user] is vigorously scrubbing \himself raw with the [src.name]! It looks like \he's trying to commit suicide." + to_chat(viewers(user), "[user] is vigorously scrubbing \himself raw with the [src.name]! It looks like \he's trying to commit suicide.") return(BRUTELOSS|FIRELOSS) ////////////////////////////////////////////// @@ -133,7 +133,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi /obj/item/weapon/fish/shark/attackby(var/obj/item/O, var/mob/user as mob) if(istype(O, /obj/item/weapon/wirecutters)) - user << "You rip out the teeth of \the [src.name]!" + to_chat(user, "You rip out the teeth of \the [src.name]!") new /obj/item/weapon/fish/toothless_shark(get_turf(src)) new /obj/item/weapon/shard/shark_teeth(get_turf(src)) qdel(src) @@ -166,7 +166,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi /obj/item/weapon/fish/catfish/attackby(var/obj/item/O, var/mob/user as mob) if(is_sharp(O)) - user << "You carefully clean and gut \the [src.name]." + to_chat(user, "You carefully clean and gut \the [src.name].") new /obj/item/weapon/reagent_containers/food/snacks/catfishmeat(get_turf(src)) new /obj/item/weapon/reagent_containers/food/snacks/catfishmeat(get_turf(src)) qdel(src) @@ -185,7 +185,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi /obj/item/weapon/fish/salmon/attackby(var/obj/item/O, var/mob/user as mob) if(is_sharp(O)) - user << "You carefully clean and gut \the [src.name]." + to_chat(user, "You carefully clean and gut \the [src.name].") new /obj/item/weapon/reagent_containers/food/snacks/salmonmeat(get_turf(src)) new /obj/item/weapon/reagent_containers/food/snacks/salmonmeat(get_turf(src)) qdel(src) @@ -201,7 +201,7 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi /obj/item/weapon/fish/babycarp/attackby(var/obj/item/O, var/mob/user as mob) if(is_sharp(O)) - user << "You carefully clean and gut \the [src.name]." + to_chat(user, "You carefully clean and gut \the [src.name].") new /obj/item/weapon/reagent_containers/food/snacks/carpmeat(get_turf(src)) //just one fillet; this is a baby, afterall. qdel(src) return diff --git a/code/modules/fish/fishtank.dm b/code/modules/fish/fishtank.dm index ba02098e30e..8fe4bfa746d 100644 --- a/code/modules/fish/fishtank.dm +++ b/code/modules/fish/fishtank.dm @@ -310,7 +310,7 @@ src.visible_message("A new [type] has hatched in \the [src]!") //Null type fish are dud eggs, give a message to inform the player else - usr << "The eggs disolve in the water. They were duds!" + to_chat(usr, "The eggs disolve in the water. They were duds!") /obj/machinery/fishtank/proc/select_egg_type() var/fish = pick(fish_list) //Select a fish from the fish in the tank @@ -340,7 +340,7 @@ /obj/machinery/fishtank/proc/harvest_fish(var/mob/user) if(!fish_count) //Can't catch non-existant fish! - usr << "There are no fish in \the [src] to catch!" + to_chat(usr, "There are no fish in \the [src] to catch!") return var/caught_fish @@ -496,7 +496,7 @@ //Finally, report the full examine_message constructed from the above reports - user << "[examine_message]" + to_chat(user, "[examine_message]") return examine_message ////////////////////////////// @@ -523,7 +523,7 @@ kill_fish() //Kill a random fish M.health = M.maxHealth //Eating fish heals the predator else - usr << "There are no fish in [src]!" + to_chat(usr, "There are no fish in [src]!") else attack_generic(M, M.harm_intent_damage) else if(istype(M, /mob/living/simple_animal/hostile/bear)) @@ -541,7 +541,7 @@ kill_fish() //Kill a random fish M.health = M.maxHealth //Eating fish heals the predator else - usr << "There are no fish in [src]!" + to_chat(usr, "There are no fish in [src]!") else attack_generic(M, M.harm_intent_damage) else @@ -606,14 +606,14 @@ if(user.a_intent == I_HELP) if(W.isOn()) if(cur_health < max_health) - usr << "You repair some of the cracks on \the [src]." + to_chat(usr, "You repair some of the cracks on \the [src].") cur_health += 20 check_health() else - usr << "There is no damage to fix!" + to_chat(usr, "There is no damage to fix!") else if(cur_health < max_health) - usr << "[W.name] must on to repair this damage." + to_chat(usr, "[W.name] must on to repair this damage.") else user.changeNext_move(CLICK_CD_MELEE) hit(W.force) @@ -622,7 +622,7 @@ if(O.is_open_container()) if(istype(O, /obj/item/weapon/reagent_containers/glass)) if(lid_switch) - usr << "Open the lid on \the [src] first!" + to_chat(usr, "Open the lid on \the [src] first!") return var/obj/item/weapon/reagent_containers/glass/C = O //Containers with any reagents will get dumped in @@ -640,7 +640,7 @@ C.reagents.clear_reagents() else if(water_level == water_capacity) - usr << "[src] is already full!" + to_chat(usr, "[src] is already full!") return else message = "The filtration process purifies the water, raising the water level." @@ -656,7 +656,7 @@ //Empty containers will scoop out water, filling the container as much as possible from the water_level else if(water_level == 0) - usr << "[src] is empty!" + to_chat(usr, "[src] is empty!") else if(water_level >= C.volume) //Enough to fill the container completely C.reagents.add_reagent("fishwater", C.volume) @@ -671,23 +671,23 @@ //Wrenches can deconstruct empty tanks, but not tanks with any water. Kills any fish left inside and destroys any unharvested eggs in the process if(istype(O, /obj/item/weapon/wrench)) if(water_level == 0) - usr << "Now disassembling [src]." + to_chat(usr, "Now disassembling [src].") playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user,50, target = src)) destroy(1) else - usr << "[src] must be empty before you disassemble it!" + to_chat(usr, "[src] must be empty before you disassemble it!") return //Fish eggs else if(istype(O, /obj/item/fish_eggs)) var/obj/item/fish_eggs/egg = O //Don't add eggs if there is no water (they kinda need that to live) if(water_level == 0) - usr << "[src] has no water; [egg.name] won't hatch without water!" + to_chat(usr, "[src] has no water; [egg.name] won't hatch without water!") else //Don't add eggs if the tank already has the max number of fish if(fish_count >= max_fish) - usr << "[src] can't hold any more fish." + to_chat(usr, "[src] can't hold any more fish.") else add_fish(egg.fish_type) qdel(egg) @@ -703,9 +703,9 @@ user.visible_message("[user.name] feeds the fish in \the [src]. The fish look excited!", "You feed the fish in \the [src]. They look excited!") food_level += 10 else - usr << "[src] already has plenty of food in it. You decide to not add more." + to_chat(usr, "[src] already has plenty of food in it. You decide to not add more.") else - usr << "[src] doesn't have any water in it. You should fill it with water first." + to_chat(usr, "[src] doesn't have any water in it. You should fill it with water first.") check_food_level() return //Fish egg scoop @@ -723,7 +723,7 @@ //Tank brush if(istype(O, /obj/item/weapon/tank_brush)) if(filth_level == 0) - usr << "[src] is already spotless!" + to_chat(usr, "[src] is already spotless!") else filth_level = 0 user.visible_message("[user.name] scrubs the inside of \the [src], cleaning the filth.", "You scrub the inside of \the [src], cleaning the filth.") diff --git a/code/modules/flufftext/Dreaming.dm b/code/modules/flufftext/Dreaming.dm index a6c8ee86e5b..3b165750d0b 100644 --- a/code/modules/flufftext/Dreaming.dm +++ b/code/modules/flufftext/Dreaming.dm @@ -20,7 +20,7 @@ mob/living/carbon/proc/dream() for(var/i = rand(1,4),i > 0, i--) var/dream_image = pick(dreams) dreams -= dream_image - src << "... [dream_image] ..." + to_chat(src, "... [dream_image] ...") sleep(rand(40,70)) if(paralysis <= 0) dreaming = 0 diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index d07474786ab..c4088d9a53f 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -243,11 +243,11 @@ Gunshots/explosions/opening doors/less rare audio (done) sleep(10) if(!xeno) return var/xeno_name = xeno.name - target << "[xeno_name] begins climbing into the ventilation system..." + to_chat(target, "[xeno_name] begins climbing into the ventilation system...") sleep(10) if(!xeno) return qdel(xeno) - target << "[xeno_name] scrambles into the ventilation ducts!" + to_chat(target, "[xeno_name] scrambles into the ventilation ducts!") qdel(src) /obj/effect/hallucination/singularity_scare @@ -295,29 +295,29 @@ Gunshots/explosions/opening doors/less rare audio (done) switch(rand(1,5)) if(1) //Laser fight for(var/i=0,i[my_target] stumbles around.
" + to_chat(O, "[my_target] stumbles around.") /obj/effect/fake_attacker/New(loc,var/mob/living/carbon/T) ..() @@ -459,7 +459,7 @@ Gunshots/explosions/opening doors/less rare audio (done) else if(src.dir == WEST) qdel(src.currentimage) src.currentimage = new /image(left,src) - my_target << currentimage + to_chat(my_target, currentimage) /obj/effect/fake_attacker/proc/attack_loop() @@ -503,7 +503,7 @@ Gunshots/explosions/opening doors/less rare audio (done) var/obj/effect/overlay/O = new/obj/effect/overlay(target.loc) O.name = "blood" var/image/I = image('icons/effects/blood.dmi',O,"floor[rand(1,7)]",O.dir,1) - target << I + to_chat(target, I) spawn(300) qdel(O) return @@ -565,13 +565,13 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite person = H people += H if(person) //Basic talk - target << target.hear_say(pick(speak_messages),language = pick(person.languages),speaker = person) + to_chat(target, target.hear_say(pick(speak_messages),language = pick(person.languages),speaker = person)) else // Radio talk var/list/humans = list() for(var/mob/living/carbon/human/H in living_mob_list) humans += H person = pick(humans) - target << target.hear_radio(pick(radio_messages),language = pick(person.languages),speaker = person, part_a = "\[[get_frequency_name(PUB_FREQ)]\] ", part_b = " ") + to_chat(target, target.hear_radio(pick(radio_messages),language = pick(person.languages),speaker = person, part_a = "\[[get_frequency_name(PUB_FREQ)]\] ", part_b = " ")) qdel(src) /obj/effect/hallucination/message @@ -588,7 +588,7 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite "You feel faint.", \ "You hear a strange, alien voice in your head...[pick("Hiss","Ssss")]", \ "You can see...everything!") - target << chosen + to_chat(target, chosen) qdel(src) /mob/living/carbon/proc/hallucinate(var/hal_type) // Todo -> proc / defines @@ -615,24 +615,34 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite new /obj/effect/hallucination/message(src.loc,src) if("sounds") //Strange audio - //src << "Strange Audio" +// to_chat(src, "Strange Audio") switch(rand(1,18)) - if(1) src << 'sound/machines/airlock.ogg' + if(1) + src << 'sound/machines/airlock.ogg' if(2) - if(prob(50))src << 'sound/effects/Explosion1.ogg' - else src << 'sound/effects/Explosion2.ogg' - if(3) src << 'sound/effects/explosionfar.ogg' - if(4) src << 'sound/effects/Glassbr1.ogg' - if(5) src << 'sound/effects/Glassbr2.ogg' - if(6) src << 'sound/effects/Glassbr3.ogg' - if(7) src << 'sound/machines/twobeep.ogg' - if(8) src << 'sound/machines/windowdoor.ogg' + if(prob(50)) + src << 'sound/effects/Explosion1.ogg' + else + src << 'sound/effects/Explosion2.ogg' + if(3) + src << 'sound/effects/explosionfar.ogg' + if(4) + src << 'sound/effects/Glassbr1.ogg' + if(5) + src << 'sound/effects/Glassbr2.ogg' + if(6) + src << 'sound/effects/Glassbr3.ogg' + if(7) + src << 'sound/machines/twobeep.ogg' + if(8) + src << 'sound/machines/windowdoor.ogg' if(9) //To make it more realistic, I added two gunshots (enough to kill) src << 'sound/weapons/Gunshot.ogg' spawn(rand(10,30)) src << 'sound/weapons/Gunshot.ogg' - if(10) src << 'sound/weapons/smash.ogg' + if(10) + src << 'sound/weapons/smash.ogg' if(11) //Same as above, but with tasers. src << 'sound/weapons/Taser.ogg' @@ -648,10 +658,10 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite 'sound/hallucinations/turn_around1.ogg', 'sound/hallucinations/turn_around2.ogg', 'sound/hallucinations/veryfar_noise.ogg', 'sound/hallucinations/wail.ogg') src << pick(creepyasssounds) if(13) - src << "You feel a tiny prick!" + to_chat(src, "You feel a tiny prick!") if(14) - src << "

Priority Announcement

" - src << "

The Emergency Shuttle has docked with the station. You have 3 minutes to board the Emergency Shuttle.

" + to_chat(src, "

Priority Announcement

") + to_chat(src, "

The Emergency Shuttle has docked with the station. You have 3 minutes to board the Emergency Shuttle.

") src << sound('sound/AI/shuttledock.ogg') if(15) src << 'sound/items/Welder.ogg' @@ -663,13 +673,13 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite src << 'sound/weapons/saberoff.ogg' if("hudscrew") //Screwy HUD - //src << "Screwy HUD" +// to_chat(src, "Screwy HUD") hal_screwyhud = pick(1,2,3,3,4,4) spawn(rand(100,250)) hal_screwyhud = 0 if("items") //Strange items - //src << "Traitor Items" +// to_chat(src, "Traitor Items") if(!halitem) halitem = new var/list/slots_free = list(ui_lhand,ui_rhand) @@ -715,7 +725,7 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite qdel(halitem) if("dangerflash") //Flashes of danger - //src << "Danger Flash" +// to_chat(src, "Danger Flash") if(!halimage) var/list/possible_points = list() for(var/turf/simulated/floor/F in view(src,world.view)) @@ -725,13 +735,13 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite switch(rand(1,3)) if(1) - //src << "Space" +// to_chat(src, "Space") halimage = image('icons/turf/space.dmi',target,"[rand(1,25)]",TURF_LAYER) if(2) - //src << "Fire" +// to_chat(src, "Fire") halimage = image('icons/effects/fire.dmi',target,"1",TURF_LAYER) if(3) - //src << "C4" +// to_chat(src, "C4") halimage = image('icons/obj/assemblies.dmi',target,"plastic-explosive2",OBJ_LAYER+0.01) diff --git a/code/modules/food/cooker.dm b/code/modules/food/cooker.dm index 76f67e47fb8..40e04817209 100644 --- a/code/modules/food/cooker.dm +++ b/code/modules/food/cooker.dm @@ -35,11 +35,11 @@ // check if you can put it in the machine /obj/machinery/cooker/proc/checkValid(obj/item/check, mob/user) if(on) - user << "[src] is still active!" + to_chat(user, "[src] is still active!") return 0 if(istype(check, /obj/item/weapon/reagent_containers/food/snacks)) return 1 - user << "You can only process food!" + to_chat(user, "You can only process food!") return 0 /obj/machinery/cooker/proc/setIcon(obj/item/copyme, obj/item/copyto) @@ -61,7 +61,7 @@ /obj/machinery/cooker/proc/burn(mob/user, obj/item/weapon/reagent_containers/props) var/obj/item/weapon/reagent_containers/food/snacks/badrecipe/burnt = new(get_turf(src)) setRegents(props, burnt) - user << "You smell burning coming from the [src]!" + to_chat(user, "You smell burning coming from the [src]!") var/datum/effect/system/bad_smoke_spread/smoke = new /datum/effect/system/bad_smoke_spread() // burning things makes smoke! smoke.set_up(5, 0, src) smoke.start() @@ -80,7 +80,7 @@ /obj/machinery/cooker/proc/putIn(obj/item/tocook, mob/chef) icon_state = onicon - chef << "You put [tocook] into [src]." + to_chat(chef, "You put [tocook] into [src].") on = 1 chef.drop_item() tocook.loc = src @@ -98,7 +98,7 @@ if(!burns) if(istype(I, /obj/item/weapon/reagent_containers/food/snacks)) if(checkCooked(I)) - user << "That is already [thiscooktype], it would do nothing!" + to_chat(user, "That is already [thiscooktype], it would do nothing!") return putIn(I, user) sleep(cooktime) diff --git a/code/modules/food/customizables.dm b/code/modules/food/customizables.dm index ccab1b11afc..ff1ff9f6ad5 100644 --- a/code/modules/food/customizables.dm +++ b/code/modules/food/customizables.dm @@ -324,12 +324,12 @@ /obj/item/weapon/reagent_containers/food/snacks/customizable/attackby(obj/item/I, mob/user, params) if(src.contents.len > sandwich_limit) - user << "If you put anything else in or on [src] it's going to make a mess." + to_chat(user, "If you put anything else in or on [src] it's going to make a mess.") return if(!istype(I, /obj/item/weapon/reagent_containers/food/snacks)) - user << "\The [I] isn't exactly something that you would want to eat." + to_chat(user, "\The [I] isn't exactly something that you would want to eat.") return - user << "You add [I] to [src]." + to_chat(user, "You add [I] to [src].") if(istype(I, /obj/item/weapon/reagent_containers/)) var/obj/item/weapon/reagent_containers/F = I F.reagents.trans_to(src, F.reagents.total_volume) @@ -386,7 +386,7 @@ ..(user) var/whatsinside = pick(ingredients) - user << " You think you can see [whatsinside] in there." + to_chat(user, " You think you can see [whatsinside] in there.") /* /obj/item/weapon/reagent_containers/food/snacks/customizable/attack(mob/M as mob, mob/user as mob, def_zone) //SNOOOOOOOWFLAAAAAAAAAAAAAAAAAKES @@ -402,7 +402,7 @@ H = M if(H && shard && M == user) //This needs a check for feeding the food to other people, but that could be abusable. - H << "\red You lacerate your mouth on a [shard.name] in the sandwich!" + to_chat(H, "\red You lacerate your mouth on a [shard.name] in the sandwich!") H.adjustBruteLoss(5) //TODO: Target head if human. ..() */ diff --git a/code/modules/food/icecream_vat.dm b/code/modules/food/icecream_vat.dm index eae35e2df0e..6c23d781818 100644 --- a/code/modules/food/icecream_vat.dm +++ b/code/modules/food/icecream_vat.dm @@ -32,14 +32,14 @@ /obj/machinery/icemachine/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/reagent_containers/glass)) if(beaker) - user << "A container is already inside [src]." + to_chat(user, "A container is already inside [src].") return if(!user.drop_item()) - user << "\The [I] is stuck to you!" + to_chat(user, "\The [I] is stuck to you!") return beaker = I I.forceMove(src) - user << "You add [I] to [src]" + to_chat(user, "You add [I] to [src]") updateUsrDialog() return if(istype(I, /obj/item/weapon/reagent_containers/food/snacks/icecream)) @@ -51,7 +51,7 @@ I.name += " with sprinkles" I.desc += ". This also has sprinkles." else - user << "This [I] already has sprinkles." + to_chat(user, "This [I] already has sprinkles.") /obj/machinery/icemachine/proc/validexchange(reag) @@ -59,7 +59,7 @@ return 1 else if(reagents.total_volume < 500) - usr << "[src] vibrates for a moment, apparently accepting the unknown liquid." + to_chat(usr, "[src] vibrates for a moment, apparently accepting the unknown liquid.") playsound(loc, 'sound/machines/twobeep.ogg', 10, 1) return 1 diff --git a/code/modules/food/oven.dm b/code/modules/food/oven.dm index 3ed9cb3888f..604adaaf142 100644 --- a/code/modules/food/oven.dm +++ b/code/modules/food/oven.dm @@ -17,7 +17,7 @@ /obj/machinery/cooking/attackby(obj/item/I, mob/user, params) if(on) - user << "The machine is already running." + to_chat(user, "The machine is already running.") return else var/obj/item/F = I @@ -26,7 +26,7 @@ if(!C) return else - user << "You put [F] into [src] for cooking." + to_chat(user, "You put [F] into [src] for cooking.") user.drop_item() F.loc = src on = TRUE diff --git a/code/modules/garbage_collection/garbage_collector.dm b/code/modules/garbage_collection/garbage_collector.dm index f6675365f8d..aa8933c42de 100644 --- a/code/modules/garbage_collection/garbage_collector.dm +++ b/code/modules/garbage_collection/garbage_collector.dm @@ -142,7 +142,7 @@ var/global/datum/controller/process/garbage_collector/garbageCollector #endif garbageCollector.addTrash(D) else - // world << "WARNING GC DID NOT GET A RETURN VALUE FOR [D], [D.type]!" +// to_chat(world, "WARNING GC DID NOT GET A RETURN VALUE FOR [D], [D.type]!") garbageCollector.addTrash(D) diff --git a/code/modules/garbage_collection/gc_testing.dm b/code/modules/garbage_collection/gc_testing.dm index f571a00c791..25fc4bef495 100644 --- a/code/modules/garbage_collection/gc_testing.dm +++ b/code/modules/garbage_collection/gc_testing.dm @@ -9,7 +9,7 @@ return garbageCollector.del_everything = !garbageCollector.del_everything - // world << "GC: qdel turned [garbageCollector.del_everything ? "off" : "on"]." +// to_chat(world, "GC: qdel turned [garbageCollector.del_everything ? "off" : "on"].") log_admin("[key_name(usr)] turned qdel [garbageCollector.del_everything ? "off" : "on"].") message_admins("\blue [key_name_admin(usr)] turned qdel [garbageCollector.del_everything ? "off" : "on"].", 1) @@ -44,12 +44,12 @@ return if(!gc_hard_del_types || !gc_hard_del_types.len) - usr << "No hard del()'d types found." + to_chat(usr, "No hard del()'d types found.") return - usr << "Types hard del()'d by the GC:" + to_chat(usr, "Types hard del()'d by the GC:") for(var/A in gc_hard_del_types) - usr << "[A]" + to_chat(usr, "[A]") // Profiling stuff var/global/del_profiling = 0 @@ -169,7 +169,7 @@ var/global/list/ghdels_profiled = list() if(usr && usr.client) usr.client.running_find_references = null running_find_references = null - + /client/verb/purge_all_destroyed_objects() set category = "Debug" if(garbageCollector) @@ -190,4 +190,3 @@ var/global/list/ghdels_profiled = list() if(!running_find_references) find_references(remove_from_queue = FALSE) #endif - \ No newline at end of file diff --git a/code/modules/holiday/holiday.dm b/code/modules/holiday/holiday.dm index 43d7cf2a464..db82a5227e6 100644 --- a/code/modules/holiday/holiday.dm +++ b/code/modules/holiday/holiday.dm @@ -317,7 +317,7 @@ begin_day += 31 begin_month-- //begins in march, ends in april -// world << "Easter calculates to be on [begin_day] of [begin_month] ([days_early] early) to [end_day] of [end_month] ([days_extra] extra) for 20[yy]" +// to_chat(world, "Easter calculates to be on [begin_day] of [begin_month] ([days_early] early) to [end_day] of [end_month] ([days_extra] extra) for 20[yy]") return ..() diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 8aa79cd6484..a025e32f872 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -28,7 +28,7 @@ if(!plant_controller) sleep(250) // ugly hack, should mean roundstart plants are fine. if(!plant_controller) - world << "Plant controller does not exist and [src] requires it. Aborting." + to_chat(world, "Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -83,7 +83,7 @@ if(!plant_controller) sleep(250) // ugly hack, should mean roundstart plants are fine. if(!plant_controller) - world << "Plant controller does not exist and [src] requires it. Aborting." + to_chat(world, "Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -182,7 +182,7 @@ return M.stop_pulling() - M << "You slipped on the [name]!" + to_chat(M, "You slipped on the [name]!") playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3) M.Stun(8) M.Weaken(5) @@ -202,7 +202,7 @@ var/obj/item/stack/cable_coil/C = W if(C.use(5)) //TODO: generalize this. - user << "You add some cable to the [src.name] and slide it inside the battery casing." + to_chat(user, "You add some cable to the [src.name] and slide it inside the battery casing.") var/obj/item/weapon/stock_parts/cell/potato/pocell = new /obj/item/weapon/stock_parts/cell/potato(get_turf(user)) if(src.loc == user && !(user.l_hand && user.r_hand) && istype(user,/mob/living/carbon/human)) user.put_in_hands(pocell) @@ -219,21 +219,21 @@ qdel(src) return else if(seed.kitchen_tag == "potato") - user << "You slice \the [src] into sticks." + to_chat(user, "You slice \the [src] into sticks.") reagents_per_slice = reagents.total_volume slice = new /obj/item/weapon/reagent_containers/food/snacks/rawsticks(get_turf(src)) reagents.trans_to(slice, reagents_per_slice) qdel(src) return else if(seed.kitchen_tag == "carrot") - user << "You slice \the [src] into sticks." + to_chat(user, "You slice \the [src] into sticks.") reagents_per_slice = reagents.total_volume slice = new /obj/item/weapon/reagent_containers/food/snacks/carrotfries(get_turf(src)) reagents.trans_to(slice, reagents_per_slice) qdel(src) return else if(seed.kitchen_tag == "watermelon") - user << "You slice \the [src] into large slices." + to_chat(user, "You slice \the [src] into large slices.") reagents_per_slice = reagents.total_volume/5 for(var/i=0,i<5,i++) slice = new /obj/item/weapon/reagent_containers/food/snacks/watermelonslice(get_turf(src)) @@ -241,7 +241,7 @@ qdel(src) return else if(seed.kitchen_tag == "soybeans") - user << "You roughly chop up \the [src]." + to_chat(user, "You roughly chop up \the [src].") reagents_per_slice = reagents.total_volume slice = new /obj/item/weapon/reagent_containers/food/snacks/soydope(get_turf(src)) reagents.trans_to(slice, reagents_per_slice) @@ -259,7 +259,7 @@ if(G.amount>=G.max_amount) continue G.attackby(NG, user) - user << "You add the newly-formed wood to the stack. It now contains [NG.amount] planks." + to_chat(user, "You add the newly-formed wood to the stack. It now contains [NG.amount] planks.") qdel(src) return else if(istype(W, /obj/item/weapon/rollingpaper)) @@ -283,10 +283,10 @@ src.reagents.trans_to(J, J.chem_volume) qdel(W) user.put_in_active_hand(J) - user << "\blue You roll the [src] into a rolling paper." + to_chat(user, "\blue You roll the [src] into a rolling paper.") qdel(src) else - user << "\red You can't roll a smokable from the [src]." + to_chat(user, "\red You can't roll a smokable from the [src].") ..() @@ -347,12 +347,12 @@ return if(reagents && reagents.total_volume <= 0) //used-up fruit will be destroyed if(user) - user << "\The [src] has dried out and crumbles to dust." + to_chat(user, "\The [src] has dried out and crumbles to dust.") //user.drop_from_inventory(src) qdel(src) else if(prob(35)) //fruit that still has reagents has a chance of breaking each time it stings on hit if(user) - user << "\The [src] has fallen to bits." + to_chat(user, "\The [src] has fallen to bits.") //user.drop_from_inventory(src) qdel(src) @@ -378,7 +378,7 @@ return if(user.a_intent == I_DISARM && seed.get_trait(TRAIT_SPREAD) > 0) //Using disarm so we can tell if you want to plant or convert non-final plants - user << "You plant the [src.name]." + to_chat(user, "You plant the [src.name].") new /obj/machinery/portable_atmospherics/hydroponics/soil/invisible(get_turf(user),src.seed) new /obj/effect/plant(get_turf(user), src.seed) qdel(src) @@ -390,13 +390,13 @@ if("comfrey") var/obj/item/stack/medical/bruise_pack/comfrey/poultice = new /obj/item/stack/medical/bruise_pack/comfrey(user.loc) poultice.heal_brute = potency - user << "You mash the leaves into a poultice." + to_chat(user, "You mash the leaves into a poultice.") qdel(src) return if("aloe") var/obj/item/stack/medical/ointment/aloe/poultice = new /obj/item/stack/medical/ointment/aloe(user.loc) poultice.heal_burn = potency - user << "You mash the petals into a poultice." + to_chat(user, "You mash the petals into a poultice.") qdel(src) return if("grass") @@ -410,7 +410,7 @@ if(NG.amount>=NG.max_amount) continue NG.attackby(G, user) - user << "You add the newly-formed grass to the stack. It now contains [G.amount] tiles." + to_chat(user, "You add the newly-formed grass to the stack. It now contains [G.amount] tiles.") qdel(src) return if("sunflower") @@ -424,7 +424,7 @@ if(prob(10)) user.say("PRAISE THE SUN!") else - user << "PRAISE THE SUN!" + to_chat(user, "PRAISE THE SUN!") user.unEquip(src) user.put_in_hands(NF) qdel(src) @@ -432,7 +432,7 @@ if("nettle") var/obj/item/weapon/grown/nettle/nettle = new /obj/item/weapon/grown/nettle(user.loc) nettle.force = round((5 + potency / 5), 1) - user << "You straighten up the plant." + to_chat(user, "You straighten up the plant.") user.unEquip(src) user.put_in_hands(nettle) qdel(src) @@ -440,41 +440,41 @@ if("deathnettle") var/obj/item/weapon/grown/nettle/death/DN = new /obj/item/weapon/grown/nettle/death(user.loc) DN.force = round((5 + potency / 2.5), 1) - user << "You straighten up the plant." + to_chat(user, "You straighten up the plant.") user.unEquip(src) user.put_in_hands(DN) qdel(src) return if("cashpod") - user << "You crack open the cash pod..." + to_chat(user, "You crack open the cash pod...") var/value = round(seed.get_trait(TRAIT_POTENCY)) user.unEquip(src) switch(value) if(0) - user << "It's empty! What a waste..." + to_chat(user, "It's empty! What a waste...") if(1 to 10) - user << "It has a space dollar inside. Woo." + to_chat(user, "It has a space dollar inside. Woo.") new /obj/item/weapon/spacecash(get_turf(user)) if(11 to 20) - user << "It has 10 space dollars inside!" + to_chat(user, "It has 10 space dollars inside!") new /obj/item/weapon/spacecash/c10(get_turf(user)) if(21 to 30) - user << "It has 20 space dollars inside! Cool!" + to_chat(user, "It has 20 space dollars inside! Cool!") new /obj/item/weapon/spacecash/c20(get_turf(user)) if(31 to 40) - user << "It has 50 space dollars inside! Nice!" + to_chat(user, "It has 50 space dollars inside! Nice!") new /obj/item/weapon/spacecash/c50(get_turf(user)) if(41 to 50) - user << "It has 100 space dollars inside! Sweet!" + to_chat(user, "It has 100 space dollars inside! Sweet!") new /obj/item/weapon/spacecash/c100(get_turf(user)) if(51 to 60) - user << "It has 200 space dollars inside! Awesome!" + to_chat(user, "It has 200 space dollars inside! Awesome!") new /obj/item/weapon/spacecash/c200(get_turf(user)) if(61 to 80) - user << "It has 500 space dollars inside! CHA-CHING!" + to_chat(user, "It has 500 space dollars inside! CHA-CHING!") new /obj/item/weapon/spacecash/c500(get_turf(user)) else - user << "It has 1000 space dollars inside! JACKPOT!" + to_chat(user, "It has 1000 space dollars inside! JACKPOT!") new /obj/item/weapon/spacecash/c1000(get_turf(user)) qdel(src) return @@ -507,5 +507,5 @@ O.update_icon() //update power meters and such batteries_recharged = 1 if(batteries_recharged) - usr << "Battery has recovered." + to_chat(usr, "Battery has recovered.") ..() \ No newline at end of file diff --git a/code/modules/hydroponics/grown_inedible.dm b/code/modules/hydroponics/grown_inedible.dm index c806bf0b8c1..fd9405cc6bf 100644 --- a/code/modules/hydroponics/grown_inedible.dm +++ b/code/modules/hydroponics/grown_inedible.dm @@ -65,7 +65,7 @@ user.UpdateDamageIcon() else C.take_organ_damage(0,force) - C << "The nettle burns your bare hand!" + to_chat(C, "The nettle burns your bare hand!") return 1 /obj/item/weapon/grown/nettle/afterattack(atom/A as mob|obj, mob/user,proximity) @@ -73,7 +73,7 @@ if(force > 0) force -= rand(1, (force / 3) + 1) // When you whack someone with it, leaves fall off else - usr << "All the leaves have fallen off the nettle from violent whacking." + to_chat(usr, "All the leaves have fallen off the nettle from violent whacking.") usr.unEquip(src) qdel(src) @@ -90,11 +90,11 @@ if(..()) if(prob(50)) user.Paralyse(5) - user << "You are stunned by the Deathnettle when you try picking it up!" + to_chat(user, "You are stunned by the Deathnettle when you try picking it up!") /obj/item/weapon/grown/nettle/death/afterattack(mob/living/carbon/M, mob/user) if(istype(M, /mob/living)) - M << "You are stunned by the powerful acid of the Deathnettle!" + to_chat(M, "You are stunned by the powerful acid of the Deathnettle!") add_logs(M, user, "attacked", src) M.eye_blurry += force/7 @@ -118,7 +118,7 @@ /obj/item/weapon/corncob/attackby(obj/item/weapon/W as obj, mob/user as mob) ..() if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || istype(W, /obj/item/weapon/kitchen/knife)) - user << "You use [W] to fashion a pipe out of the corn cob!" + to_chat(user, "You use [W] to fashion a pipe out of the corn cob!") new /obj/item/clothing/mask/cigarette/pipe/cobpipe (user.loc) qdel(src) return @@ -149,8 +149,8 @@ throw_range = 20 /obj/item/weapon/grown/sunflower/attack(mob/M as mob, mob/user as mob) - M << " [user] smacks you with a [name]!FLOWER POWER" - user << " Your [name]'s FLOWER POWER strikes [M]" + to_chat(M, " [user] smacks you with a [name]!FLOWER POWER") + to_chat(user, " Your [name]'s FLOWER POWER strikes [M]") // Novaflower @@ -167,13 +167,13 @@ throw_range = 20 /obj/item/weapon/grown/novaflower/attack(mob/living/carbon/M as mob, mob/user as mob) - M << "[user] smacks you with a [name]!FLOWER POWER" - user << " Your [name]'s FLOWER POWER strikes [M]" + to_chat(M, "[user] smacks you with a [name]!FLOWER POWER") + to_chat(user, " Your [name]'s FLOWER POWER strikes [M]") if(istype(M, /mob/living)) - M << "You are heated by the warmth of the of the [name]!" + to_chat(M, "You are heated by the warmth of the of the [name]!") M.bodytemperature += potency/2 * TEMPERATURE_DAMAGE_COEFFICIENT /obj/item/weapon/grown/novaflower/pickup(mob/living/carbon/human/user as mob) if(!user.gloves) - user << "The [name] burns your bare hand!" + to_chat(user, "The [name] burns your bare hand!") user.adjustFireLoss(rand(1,5)) diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index 896eb886060..7f7addca012 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -120,15 +120,15 @@ if(get_trait(TRAIT_CARNIVOROUS)) if(get_trait(TRAIT_CARNIVOROUS) == 2) if(affecting) - target << "\The [fruit]'s thorns pierce your [affecting.name] greedily!" + to_chat(target, "\The [fruit]'s thorns pierce your [affecting.name] greedily!") else - target << "\The [fruit]'s thorns pierce your flesh greedily!" + to_chat(target, "\The [fruit]'s thorns pierce your flesh greedily!") damage = get_trait(TRAIT_POTENCY)/2 else if(affecting) - target << "\The [fruit]'s thorns dig deeply into your [affecting.name]!" + to_chat(target, "\The [fruit]'s thorns dig deeply into your [affecting.name]!") else - target << "\The [fruit]'s thorns dig deeply into your flesh!" + to_chat(target, "\The [fruit]'s thorns dig deeply into your flesh!") damage = get_trait(TRAIT_POTENCY)/5 else return @@ -187,7 +187,7 @@ if(!protection_needed) //properly protected, good job! return - target << "You are stung by \the [fruit]!" + to_chat(target, "You are stung by \the [fruit]!") for(var/rid in chems) var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/5)) target.reagents.add_reagent(rid,injecting) @@ -713,9 +713,11 @@ return if(!force_amount && get_trait(TRAIT_YIELD) == 0 && !harvest_sample) - if(istype(user)) user << "You fail to harvest anything useful." + if(istype(user)) + to_chat(user, "You fail to harvest anything useful.") else - if(istype(user)) user << "You [harvest_sample ? "take a sample" : "harvest"] from the [display_name]." + if(istype(user)) + to_chat(user, "You [harvest_sample ? "take a sample" : "harvest"] from the [display_name].") //This may be a new line. Update the global if it is. if(name == "new line" || !(name in plant_controller.seeds)) diff --git a/code/modules/hydroponics/seed_controller.dm b/code/modules/hydroponics/seed_controller.dm index 7e373bfd2a6..5ba2b4dcfb3 100644 --- a/code/modules/hydroponics/seed_controller.dm +++ b/code/modules/hydroponics/seed_controller.dm @@ -13,11 +13,11 @@ if(!holder) return if(!plant_controller || !plant_controller.gene_tag_list) - usr << "Gene tags not set." + to_chat(usr, "Gene tags not set.") return for(var/gene_tag in plant_controller.gene_tag_list) - usr << "[gene_tag]" + to_chat(usr, "[gene_tag]") var/global/datum/controller/plants/plant_controller // Set in New(). @@ -144,7 +144,7 @@ var/global/datum/controller/plants/plant_controller // Set in New(). /client/proc/list_plant_sprites() if(!plant_controller || !plant_controller.plant_sprites || !plant_controller.plant_sprites.len) - world << "Cannot list plant sprites, plant controller or plant sprites list may not be initialized." + to_chat(world, "Cannot list plant sprites, plant controller or plant sprites list may not be initialized.") for(var/base in plant_controller.plant_sprites) - world << "[base] : [plant_controller.plant_sprites[base]] growth states" \ No newline at end of file + to_chat(world, "[base] : [plant_controller.plant_sprites[base]] growth states") diff --git a/code/modules/hydroponics/seed_machines.dm b/code/modules/hydroponics/seed_machines.dm index 3f01f903763..6e94201c75c 100644 --- a/code/modules/hydroponics/seed_machines.dm +++ b/code/modules/hydroponics/seed_machines.dm @@ -17,7 +17,7 @@ if(genes.len) var/choice = alert(user, "Are you sure you want to wipe the disk?", "Xenobotany Data", "No", "Yes") if(src && user && genes && choice && choice == "Yes" && user.Adjacent(get_turf(src))) - user << "You wipe the disk data." + to_chat(user, "You wipe the disk data.") name = initial(name) desc = initial(name) genes = list() @@ -82,21 +82,21 @@ /obj/machinery/botany/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W,/obj/item/seeds)) if(seed) - user << "There is already a seed loaded." + to_chat(user, "There is already a seed loaded.") return var/obj/item/seeds/S =W if(S.seed && S.seed.get_trait(TRAIT_IMMUTABLE) > 0) - user << "That seed is not compatible with our genetics technology." + to_chat(user, "That seed is not compatible with our genetics technology.") else user.drop_item(W) W.loc = src seed = W - user << "You load [W] into [src]." + to_chat(user, "You load [W] into [src].") return if(istype(W,/obj/item/weapon/screwdriver)) open = !open - user << "You [open ? "open" : "close"] the maintenance panel." + to_chat(user, "You [open ? "open" : "close"] the maintenance panel.") return if(open) @@ -106,24 +106,24 @@ if(istype(W,/obj/item/weapon/disk/botany)) if(loaded_disk) - user << "There is already a data disk loaded." + to_chat(user, "There is already a data disk loaded.") return else var/obj/item/weapon/disk/botany/B = W if(B.genes && B.genes.len) if(!disk_needs_genes) - user << "That disk already has gene data loaded." + to_chat(user, "That disk already has gene data loaded.") return else if(disk_needs_genes) - user << "That disk does not have any gene data loaded." + to_chat(user, "That disk does not have any gene data loaded.") return user.drop_item(W) W.loc = src loaded_disk = W - user << "You load [W] into [src]." + to_chat(user, "You load [W] into [src].") return ..() diff --git a/code/modules/hydroponics/seed_packets.dm b/code/modules/hydroponics/seed_packets.dm index 568af7a89ec..dee87d848d3 100644 --- a/code/modules/hydroponics/seed_packets.dm +++ b/code/modules/hydroponics/seed_packets.dm @@ -62,7 +62,7 @@ var/global/list/plant_seed_sprites = list() /obj/item/seeds/examine(mob/user) ..(user) if(seed && !seed.roundstart) - user << "It's tagged as variety #[seed.uid]." + to_chat(user, "It's tagged as variety #[seed.uid].") /obj/item/seeds/cutting name = "cuttings" diff --git a/code/modules/hydroponics/seed_storage.dm b/code/modules/hydroponics/seed_storage.dm index ad8cc8fa281..fe905595677 100644 --- a/code/modules/hydroponics/seed_storage.dm +++ b/code/modules/hydroponics/seed_storage.dm @@ -215,12 +215,12 @@ if (loaded) user.visible_message("[user] puts the seeds from \the [O.name] into \the [src].", "You put the seeds from \the [O.name] into \the [src].") else - user << "There are no seeds in \the [O.name]." + to_chat(user, "There are no seeds in \the [O.name].") return else if(istype(O, /obj/item/weapon/wrench)) 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].") /obj/machinery/seed_storage/proc/add(var/obj/item/seeds/O as obj) if (istype(O.loc, /mob)) diff --git a/code/modules/hydroponics/spreading/spreading.dm b/code/modules/hydroponics/spreading/spreading.dm index c169711ef83..c26d5b98bad 100644 --- a/code/modules/hydroponics/spreading/spreading.dm +++ b/code/modules/hydroponics/spreading/spreading.dm @@ -92,7 +92,7 @@ if(!plant_controller) sleep(250) // ugly hack, should mean roundstart plants are fine. if(!plant_controller) - world << "Plant controller does not exist and [src] requires it. Aborting." + to_chat(world, "Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -243,7 +243,7 @@ if(istype(W, /obj/item/weapon/wirecutters) || istype(W, /obj/item/weapon/scalpel)) if(!seed) - user << "There is nothing to take a sample from." + to_chat(user, "There is nothing to take a sample from.") return seed.harvest(user,0,1) health -= (rand(3,5)*10) diff --git a/code/modules/hydroponics/spreading/spreading_response.dm b/code/modules/hydroponics/spreading/spreading_response.dm index fbdc534c4e4..5de1ba34473 100644 --- a/code/modules/hydroponics/spreading/spreading_response.dm +++ b/code/modules/hydroponics/spreading/spreading_response.dm @@ -52,6 +52,6 @@ //entangling people if(victim.loc == src.loc) - victim << "Tendrils [pick("wind", "tangle", "tighten")] around you!" + to_chat(victim, "Tendrils [pick("wind", "tangle", "tighten")] around you!") can_buckle = 1 buckle_mob(victim) \ No newline at end of file diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 4eda71ebfd1..d394fcefea8 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -163,7 +163,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) @@ -196,7 +197,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 @@ -208,7 +209,7 @@ yield_mod = 0 mutation_mod = 0 - user << "You remove the dead plant." + to_chat(user, "You remove the dead plant.") check_health() return @@ -336,11 +337,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() @@ -351,7 +352,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. @@ -398,7 +399,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) @@ -410,11 +411,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() @@ -427,7 +428,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) @@ -440,7 +441,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) @@ -453,7 +454,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) @@ -462,20 +463,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)) @@ -485,15 +486,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. @@ -518,14 +519,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)) @@ -536,11 +537,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 @@ -554,7 +555,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 @@ -563,7 +564,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)) @@ -583,12 +584,12 @@ 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/apiary)) if(seed) - user << "[src] is already occupied!" + to_chat(user, "[src] is already occupied!") else user.drop_item() qdel(O) @@ -600,7 +601,7 @@ qdel(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() @@ -635,26 +636,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 @@ -682,7 +683,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" @@ -695,7 +696,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() @@ -709,9 +710,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 \ No newline at end of file diff --git a/code/modules/hydroponics/trays/tray_apiary.dm b/code/modules/hydroponics/trays/tray_apiary.dm index f21ac2765df..25a2698d274 100644 --- a/code/modules/hydroponics/trays/tray_apiary.dm +++ b/code/modules/hydroponics/trays/tray_apiary.dm @@ -35,10 +35,10 @@ else if(istype(Proj ,/obj/item/projectile/energy/florayield)) if(!yieldmod) yieldmod += 1 - //world << "Yield increased by 1, from 0, to a total of [myseed.yield]" +// to_chat(world, "Yield increased by 1, from 0, to a total of [myseed.yield]") else if (prob(1/(yieldmod * yieldmod) *100))//This formula gives you diminishing returns based on yield. 100% with 1 yield, decreasing to 25%, 11%, 6, 4, 2... yieldmod += 1 - //world << "Yield increased by 1, to a total of [myseed.yield]" +// to_chat(world, "Yield increased by 1, to a total of [myseed.yield]") else ..() return @@ -46,56 +46,56 @@ /obj/machinery/apiary/attackby(var/obj/item/O as obj, var/mob/user as mob) if(istype(O, /obj/item/queen_bee)) if(health > 0) - user << "\red There is already a queen in there." + to_chat(user, "\red There is already a queen in there.") else health = 10 nutrilevel += 10 user.drop_item() qdel(O) - user << "\blue You carefully insert the queen into [src], she gets busy making a hive." + to_chat(user, "\blue You carefully insert the queen into [src], she gets busy making a hive.") bees_in_hive = 0 else if(istype(O, /obj/item/beezeez)) beezeez += 100 nutrilevel += 10 user.drop_item() if(health > 0) - user << "\blue You insert [O] into [src]. A relaxed humming appears to pick up." + to_chat(user, "\blue You insert [O] into [src]. A relaxed humming appears to pick up.") else - user << "\blue You insert [O] into [src]. Now it just needs some bees." + to_chat(user, "\blue You insert [O] into [src]. Now it just needs some bees.") qdel(O) else if(istype(O, /obj/item/weapon/minihoe)) if(health > 0) - user << "\red You begin to dislodge the apiary from the tray, the bees don't like that." + to_chat(user, "\red You begin to dislodge the apiary from the tray, the bees don't like that.") angry_swarm(user) else - user << "\blue You begin to dislodge the dead apiary from the tray." + to_chat(user, "\blue You begin to dislodge the dead apiary from the tray.") if(do_after(user, 50, target = src)) new hydrotray_type(src.loc) new /obj/item/apiary(src.loc) - user << "\red You dislodge the apiary from the tray." + to_chat(user, "\red You dislodge the apiary from the tray.") qdel(src) else if(istype(O, /obj/item/weapon/bee_net)) var/obj/item/weapon/bee_net/N = O if(N.caught_bees > 0) - user << "\blue You empty the bees into the apiary." + to_chat(user, "\blue You empty the bees into the apiary.") bees_in_hive += N.caught_bees N.caught_bees = 0 else - user << "\blue There are no more bees in the net." + to_chat(user, "\blue There are no more bees in the net.") else if(istype(O, /obj/item/weapon/reagent_containers/glass)) var/obj/item/weapon/reagent_containers/glass/G = O if(harvestable_honey > 0) if(health > 0) - user << "\red You begin to harvest the honey. The bees don't seem to like it." + to_chat(user, "\red You begin to harvest the honey. The bees don't seem to like it.") angry_swarm(user) else - user << "\blue You begin to harvest the honey." + to_chat(user, "\blue You begin to harvest the honey.") if(do_after(user,50, target = src)) G.reagents.add_reagent("honey",harvestable_honey) harvestable_honey = 0 - user << "\blue You successfully harvest the honey." + to_chat(user, "\blue You successfully harvest the honey.") else - user << "\blue There is no honey left to harvest." + to_chat(user, "\blue There is no honey left to harvest.") else angry_swarm(user) ..() @@ -236,5 +236,5 @@ if(toxic > 0) H.reagents.add_reagent("toxin", toxic) - usr << "\blue You harvest the honeycomb from the hive. There is a wild buzzing!" + to_chat(usr, "\blue You harvest the honeycomb from the hive. There is a wild buzzing!") angry_swarm(usr) diff --git a/code/modules/hydroponics/trays/tray_tools.dm b/code/modules/hydroponics/trays/tray_tools.dm index a25eaec652b..b4c4c5c4543 100644 --- a/code/modules/hydroponics/trays/tray_tools.dm +++ b/code/modules/hydroponics/trays/tray_tools.dm @@ -29,7 +29,7 @@ /obj/item/device/analyzer/plant_analyzer/proc/print_report(var/mob/living/user) if(!last_data) - user << "There is no scan data to print." + to_chat(user, "There is no scan data to print.") return playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1) var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(get_turf(src)) @@ -99,7 +99,7 @@ grown_reagents = H.reagents if(!grown_seed) - user << "[src] can tell you nothing about \the [target]." + to_chat(user, "[src] can tell you nothing about \the [target].") return form_title = "[grown_seed.seed_name] (#[grown_seed.uid])" @@ -344,7 +344,7 @@ /obj/item/weapon/scythe/tele/attack_self(mob/user as mob) extend = !extend if(extend) - user << "With a flick of the wrist, you extend the scythe. It's reaping time!" + to_chat(user, "With a flick of the wrist, you extend the scythe. It's reaping time!") icon_state = "tscythe1" item_state = "scythe0" slot_flags &= ~SLOT_BELT @@ -355,7 +355,7 @@ //Extend sound (blade unsheath) playsound(src.loc, 'sound/weapons/blade_unsheath.ogg', 50, 1) //Sound credit to Qat of Freesound.org else - user << "You collapse the scythe, folding it for easy storage." + to_chat(user, "You collapse the scythe, folding it for easy storage.") icon_state = "tscythe0" item_state = "tscythe0" //no sprite in other words slot_flags |= SLOT_BELT diff --git a/code/modules/hydroponics/trays/tray_update_icons.dm b/code/modules/hydroponics/trays/tray_update_icons.dm index ceab49c8e2f..aac0822a283 100644 --- a/code/modules/hydroponics/trays/tray_update_icons.dm +++ b/code/modules/hydroponics/trays/tray_update_icons.dm @@ -30,7 +30,7 @@ if(!seed.growth_stages) seed.update_growth_stages() if(!seed.growth_stages) - world << "Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value." + to_chat(world, "Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value.") return var/overlay_stage = 1 if(age >= seed.get_trait(TRAIT_MATURATION)) diff --git a/code/modules/karma/karma.dm b/code/modules/karma/karma.dm index c3c0ca4eef1..12dedc60fba 100644 --- a/code/modules/karma/karma.dm +++ b/code/modules/karma/karma.dm @@ -54,11 +54,11 @@ var/list/karma_spenders = list() set category = "Special Verbs" if(!ticker || !player_list.len) - usr << "\red You can't award karma until the game has started." + to_chat(usr, "\red You can't award karma until the game has started.") return if(ticker.current_state == GAME_STATE_PREGAME) - usr << "\red You can't award karma until the game has started." + to_chat(usr, "\red You can't award karma until the game has started.") return var/list/karma_list = list("Cancel") @@ -68,7 +68,7 @@ var/list/karma_spenders = list() karma_list += M if(!karma_list.len || karma_list.len == 1) - usr << "\red There's no-one to spend your karma on." + to_chat(usr, "\red There's no-one to spend your karma on.") return var/pickedmob = input("Who would you like to award Karma to?", "Award Karma", "Cancel") as null|mob in karma_list @@ -77,7 +77,7 @@ var/list/karma_spenders = list() return if(!istype(pickedmob, /mob)) - usr << "\red That's not a mob." + to_chat(usr, "\red That's not a mob.") return spend_karma(pickedmob) @@ -88,37 +88,37 @@ var/list/karma_spenders = list() set category = "Special Verbs" if(!M) - usr << "Please right click a mob to award karma directly, or use the 'Award Karma' verb to select a player from the player listing." + to_chat(usr, "Please right click a mob to award karma directly, or use the 'Award Karma' verb to select a player from the player listing.") return if(!istype(M, /mob)) - usr << "\red That's not a mob." + to_chat(usr, "\red That's not a mob.") return if(!M.client) - usr << "\red That mob has no client connected at the moment." + to_chat(usr, "\red That mob has no client connected at the moment.") return if(src.client.karma_spent) - usr << "\red You've already spent your karma for the round." + to_chat(usr, "\red You've already spent your karma for the round.") return for(var/a in karma_spenders) if(a == src.key) - usr << "\red You've already spent your karma for the round." + to_chat(usr, "\red You've already spent your karma for the round.") return if(M.key == src.key) - usr << "\red You can't spend karma on yourself!" + to_chat(usr, "\red You can't spend karma on yourself!") return if(M.client.address == src.client.address) message_admins("\red Illegal karma spending detected from [src.key] to [M.key]. Using the same IP!") log_game("\red Illegal karma spending detected from [src.key] to [M.key]. Using the same IP!") - usr << "\red The karma system is not available to multi-accounters." + to_chat(usr, "\red The karma system is not available to multi-accounters.") var/choice = input("Give [M.name] good karma?", "Karma") in list("Good", "Cancel") if(!choice || choice == "Cancel") return if(choice == "Good" && !(src.client.karma_spent)) if(src.client.karma_spent) - usr << "\red You've already spent your karma for the round." + to_chat(usr, "\red You've already spent your karma for the round.") return M.client.karma += 1 - usr << "[choice] karma spent on [M.name]." + to_chat(usr, "[choice] karma spent on [M.name].") src.client.karma_spent = 1 karma_spenders.Add(src.key) if(M.client.karma <= -2 || M.client.karma >= 2) @@ -140,13 +140,13 @@ var/list/karma_spenders = list() set desc = "Reports how much karma you have accrued." var/currentkarma=verify_karma() - usr << {"
You have [currentkarma] available."} + to_chat(usr, {"
You have [currentkarma] available."}) return /client/proc/verify_karma() var/currentkarma=0 if(!dbcon.IsConnected()) - usr << "\red Unable to connect to karma database. Please try again later.
" + to_chat(usr, "\red Unable to connect to karma database. Please try again later.
") return else var/DBQuery/query = dbcon.NewQuery("SELECT karma, karmaspent FROM [format_table_name("karmatotals")] WHERE byondkey='[src.key]'") @@ -159,10 +159,10 @@ var/list/karma_spenders = list() karmaspent = query.item[2] currentkarma = (text2num(totalkarma) - text2num(karmaspent)) /* if(totalkarma) - usr << {"
You have [currentkarma] available.
+ to_chat(usr, {"
You have [currentkarma] available.
) You've gained [totalkarma] total karma in your time here.
"} else - usr << "Your total karma is: 0
"*/ + to_chat(usr, "Your total karma is: 0
")*/ return currentkarma /client/verb/karmashop() @@ -265,7 +265,7 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during whitelist logging (adding new key). Error: \[[err]\]\n") return else - usr << "You have unlocked [job]." + to_chat(usr, "You have unlocked [job].") message_admins("[key_name(usr)] has unlocked [job].") karmacharge(cost) @@ -281,11 +281,11 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during whitelist logging (updating existing entry). Error : \[[err]\]\n") return else - usr << "You have unlocked [job]." + to_chat(usr, "You have unlocked [job].") message_admins("[key_name(usr)] has unlocked [job].") karmacharge(cost) else - usr << "You already have this job unlocked!" + to_chat(usr, "You already have this job unlocked!") return /client/proc/DB_species_unlock(var/species,var/cost) @@ -305,7 +305,7 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during whitelist logging (adding new key). Error : \[[err]\]\n") return else - usr << "You have unlocked [species]." + to_chat(usr, "You have unlocked [species].") message_admins("[key_name(usr)] has unlocked [species].") karmacharge(cost) @@ -321,11 +321,11 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during whitelist logging (updating existing entry). Error: \[[err]\]\n") return else - usr << "You have unlocked [species]." + to_chat(usr, "You have unlocked [species].") message_admins("[key_name(usr)] has unlocked [species].") karmacharge(cost) else - usr << "You already have this species unlocked!" + to_chat(usr, "You already have this species unlocked!") return /client/proc/karmacharge(var/cost,var/refund = 0) @@ -345,7 +345,7 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during karmaspent updating (updating existing entry). Error: \[[err]\]\n") return else - usr << "You have been [refund ? "refunded" : "charged"] [cost] karma." + to_chat(usr, "You have been [refund ? "refunded" : "charged"] [cost] karma.") message_admins("[key_name(usr)] has been [refund ? "refunded" : "charged"] [cost] karma.") return @@ -371,7 +371,7 @@ You've gained [totalkarma] total karma in your time here.
"} else if(name == "Nanotrasen Recruiter") cost = 10 else - usr << "\red That job is not refundable." + to_chat(usr, "\red That job is not refundable.") return var/DBQuery/query = dbcon.NewQuery("SELECT * FROM [format_table_name("whitelist")] WHERE ckey='[usr.key]'") @@ -392,7 +392,7 @@ You've gained [totalkarma] total karma in your time here.
"} else if(type == "species") typelist = splittext(dbspecies,",") else - usr << "\red Type [type] is not a valid column." + to_chat(usr, "\red Type [type] is not a valid column.") if(name in typelist) typelist -= name @@ -404,14 +404,14 @@ You've gained [totalkarma] total karma in your time here.
"} message_admins("SQL ERROR during whitelist logging (updating existing entry). Error: \[[err]\]\n") return else - usr << "You have been refunded [cost] karma for [type] [name]." + to_chat(usr, "You have been refunded [cost] karma for [type] [name].") message_admins("[key_name(usr)] has been refunded [cost] karma for [type] [name].") karmacharge(text2num(cost),1) else - usr << "\red You have not bought [name]." + to_chat(usr, "\red You have not bought [name].") else - usr << "\red Your ckey ([dbckey]) was not found." + to_chat(usr, "\red Your ckey ([dbckey]) was not found.") /client/proc/checkpurchased(var/name = null) // If the first parameter is null, return a full list of purchases var/DBQuery/query = dbcon.NewQuery("SELECT * FROM [format_table_name("whitelist")] WHERE ckey='[usr.key]'") diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index 962470c4cf1..498b7b62a37 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -32,7 +32,7 @@ O.loc = src update_icon() else if(istype(O, /obj/item/weapon/wrench)) - user << "\blue Now disassembling bookcase" + to_chat(user, "\blue Now disassembling bookcase") playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user,50, target = src)) new /obj/item/stack/sheet/wood(get_turf(src)) @@ -160,19 +160,19 @@ /obj/item/weapon/book/attack_self(var/mob/user as mob) if(carved) if(store) - user << "[store] falls out of [title]!" + to_chat(user, "[store] falls out of [title]!") store.loc = get_turf(src.loc) store = null return else - user << "The pages of [title] have been cut out!" + to_chat(user, "The pages of [title] have been cut out!") return if(src.dat) user << browse("Penned by [author].
" + "[dat]", "window=book") user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.") onclose(user, "book") else - user << "This book is completely blank!" + to_chat(user, "This book is completely blank!") /obj/item/weapon/book/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(carved) @@ -181,24 +181,24 @@ user.drop_item() W.loc = src store = W - user << "You put [W] in [title]." + to_chat(user, "You put [W] in [title].") return else - user << "[W] won't fit in [title]." + to_chat(user, "[W] won't fit in [title].") return else - user << "There's already something in [title]!" + to_chat(user, "There's already something in [title]!") return if(istype(W, /obj/item/weapon/pen)) if(unique) - user << "These pages don't seem to take the ink well. Looks like you can't modify it." + to_chat(user, "These pages don't seem to take the ink well. Looks like you can't modify it.") return var/choice = input("What would you like to change?") in list("Title", "Contents", "Author", "Cancel") switch(choice) if("Title") var/newtitle = reject_bad_text(stripped_input(usr, "Write a new title:")) if(!newtitle) - usr << "The title is invalid." + to_chat(usr, "The title is invalid.") return else src.name = newtitle @@ -206,14 +206,14 @@ if("Contents") var/content = strip_html(input(usr, "Write your book's contents (HTML NOT allowed):"),8192) as message|null if(!content) - usr << "The content is invalid." + to_chat(usr, "The content is invalid.") return else src.dat += content if("Author") var/newauthor = stripped_input(usr, "Write the author's name:") if(!newauthor) - usr << "The name is invalid." + to_chat(usr, "The name is invalid.") return else src.author = newauthor @@ -222,37 +222,37 @@ else if(istype(W, /obj/item/weapon/barcodescanner)) var/obj/item/weapon/barcodescanner/scanner = W if(!scanner.computer) - user << "[W]'s screen flashes: 'No associated computer found!'" + to_chat(user, "[W]'s screen flashes: 'No associated computer found!'") else switch(scanner.mode) if(0) scanner.book = src - user << "[W]'s screen flashes: 'Book stored in buffer.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer.'") if(1) scanner.book = src scanner.computer.buffer_book = src.name - user << "[W]'s screen flashes: 'Book stored in buffer. Book title stored in associated computer buffer.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Book title stored in associated computer buffer.'") if(2) scanner.book = src for(var/datum/borrowbook/b in scanner.computer.checkouts) if(b.bookname == src.name) scanner.computer.checkouts.Remove(b) - user << "[W]'s screen flashes: 'Book stored in buffer. Book has been checked in.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Book has been checked in.'") return - user << "[W]'s screen flashes: 'Book stored in buffer. No active check-out record found for current title.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. No active check-out record found for current title.'") if(3) scanner.book = src for(var/obj/item/weapon/book in scanner.computer.inventory) if(book == src) - user << "[W]'s screen flashes: 'Book stored in buffer. Title already present in inventory, aborting to avoid duplicate entry.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Title already present in inventory, aborting to avoid duplicate entry.'") return scanner.computer.inventory.Add(src) - user << "[W]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'" + to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'") else if(istype(W, /obj/item/weapon/kitchen/knife) || istype(W, /obj/item/weapon/wirecutters)) if(carved) return - user << "You begin to carve out [title]." + to_chat(user, "You begin to carve out [title].") if(do_after(user, 30, target = src)) - user << "You carve out the pages from [title]! You didn't want to read it anyway." + to_chat(user, "You carve out the pages from [title]! You didn't want to read it anyway.") carved = 1 return else @@ -277,7 +277,7 @@ mode += 1 if(mode > 3) mode = 0 - user << "[src] Status Display:" + to_chat(user, "[src] Status Display:") var/modedesc switch(mode) if(0) @@ -290,9 +290,9 @@ modedesc = "Scan book to local buffer, attempt to add book to general inventory." else modedesc = "ERROR" - user << " - Mode [mode] : [modedesc]" + to_chat(user, " - Mode [mode] : [modedesc]") if(src.computer) - user << "Computer has been associated with this unit." + to_chat(user, "Computer has been associated with this unit.") else - user << "No associated computer found. Only local scans will function properly." - user << "\n" \ No newline at end of file + to_chat(user, "No associated computer found. Only local scans will function properly.") + to_chat(user, "\n") diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index 3f93963a796..57f1b85b227 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -147,7 +147,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f dat += "7. Access the Forbidden Lore Vault
" if(src.arcanecheckout) new /obj/item/weapon/tome(src.loc) - user << "Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it." + to_chat(user, "Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it.") user.visible_message("[user] stares at the blank screen for a few moments, his expression frozen in fear. When he finally awakens from it, he looks a lot older.", 2) src.arcanecheckout = 0 if(1) @@ -244,7 +244,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f if(istype(W, /obj/item/weapon/barcodescanner)) var/obj/item/weapon/barcodescanner/scanner = W scanner.computer = src - user << "[scanner]'s associated machine has been set to [src]." + to_chat(user, "[scanner]'s associated machine has been set to [src].") for (var/mob/V in hearers(src)) V.show_message("[src] lets out a low, short blip.", 2) else @@ -481,7 +481,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f set desc = "Permamently deletes a book from the database." set category = "Admin" if(!src.holder) - src << "Only administrators may use this command." + to_chat(src, "Only administrators may use this command.") return var/isbn = input("ISBN number?", "Delete Book") as num | null diff --git a/code/modules/logic/converter.dm b/code/modules/logic/converter.dm index 635bbf87176..ff4b8ad1db3 100644 --- a/code/modules/logic/converter.dm +++ b/code/modules/logic/converter.dm @@ -32,10 +32,10 @@ if(istype(O, /obj/item/device/assembly/signaler)) var/obj/item/device/assembly/signaler/S = O if(S.secured) - user << "The [S] is already secured." + to_chat(user, "The [S] is already secured.") return if(attached_signaler) - user << "There is already a device attached, remove it first." + to_chat(user, "There is already a device attached, remove it first.") return user.unEquip(S) S.forceMove(src) @@ -46,7 +46,7 @@ else S.receiving = 0 attached_signaler = S - user << "You attach \the [S] to the I/O connection port and secure it." + to_chat(user, "You attach \the [S] to the I/O connection port and secure it.") return if(attached_signaler && istype(O, /obj/item/weapon/screwdriver)) //Makes sure we remove the attached signaler before we can open up and deconstruct the machine var/obj/item/device/assembly/signaler/S = attached_signaler @@ -54,7 +54,7 @@ S.forceMove(get_turf(src)) S.holder = null S.toggle_secure() - user << "You unsecure and detach \the [S] from the I/O connection port." + to_chat(user, "You unsecure and detach \the [S] from the I/O connection port.") return ..() diff --git a/code/modules/logic/logic_base.dm b/code/modules/logic/logic_base.dm index b126b1af214..926b8a1f129 100644 --- a/code/modules/logic/logic_base.dm +++ b/code/modules/logic/logic_base.dm @@ -199,14 +199,14 @@ /obj/machinery/logic_gate/attackby(obj/item/O, mob/user, params) if(tamperproof) - user << "The [src] appears to be tamperproofed! You can't interact with it!" + to_chat(user, "The [src] appears to be tamperproofed! You can't interact with it!") return 0 if(istype(O, /obj/item/device/multitool)) update_multitool_menu(user) return 1 if(istype(O, /obj/item/weapon/screwdriver)) panel_open = !panel_open - user << "You [panel_open ? "open" : "close"] the access panel." + to_chat(user, "You [panel_open ? "open" : "close"] the access panel.") return 1 if(panel_open && istype(O, /obj/item/weapon/crowbar)) default_deconstruction_crowbar(O) @@ -218,20 +218,20 @@ /obj/machinery/logic_gate/attack_ai(mob/user) if(tamperproof) - user << "The [src] appears to be tamperproofed! You can't interface with it!" + to_chat(user, "The [src] appears to be tamperproofed! You can't interface with it!") return 0 add_hiddenprint(user) return ui_interact(user) /obj/machinery/logic_gate/attack_ghost(mob/user) if(tamperproof) - user << "The [src] appears to be tamperproofed! You can't haunt it!" + to_chat(user, "The [src] appears to be tamperproofed! You can't haunt it!") return 0 return ui_interact(user) /obj/machinery/logic_gate/attack_hand(mob/user) if(tamperproof) - user << "The [src] appears to be tamperproofed! You can't interact with it!" + to_chat(user, "The [src] appears to be tamperproofed! You can't interact with it!") return 0 . = ..() if(.) @@ -239,15 +239,15 @@ return interact(user) /obj/machinery/logic_gate/attack_alien(mob/user) //No xeno logic, that's too silly. - user << "The [src] appears to be too complex! You can't comprehend it and back off in fear!" + to_chat(user, "The [src] appears to be too complex! You can't comprehend it and back off in fear!") return 0 /obj/machinery/logic_gate/attack_animal(mob/user) //No animal logic either. - user << "The [src] appears to be beyond your comprehension! You can't fathom it!" + to_chat(user, "The [src] appears to be beyond your comprehension! You can't fathom it!") return 0 /obj/machinery/logic_gate/attack_slime(mob/user) //No slime logic. Seriously. - user << "The [src] appears to be beyond your gelatinous understanding! You ignore it!" + to_chat(user, "The [src] appears to be beyond your gelatinous understanding! You ignore it!") return 0 /obj/machinery/logic_gate/emp_act(severity) diff --git a/code/modules/media/broadcast/receivers/radio.dm b/code/modules/media/broadcast/receivers/radio.dm index 095550197e3..7b9c4ad7b15 100644 --- a/code/modules/media/broadcast/receivers/radio.dm +++ b/code/modules/media/broadcast/receivers/radio.dm @@ -14,7 +14,7 @@ /obj/machinery/media/receiver/boombox/attack_hand(var/mob/user) if(stat & (NOPOWER|BROKEN)) - usr << "\red You don't see anything to mess with." + to_chat(usr, "\red You don't see anything to mess with.") return user.set_machine(src) interact(user) @@ -59,7 +59,7 @@ media_frequency = newfreq connect_frequency() else - usr << "\red Invalid FM frequency. (90.0, 200.0)" + to_chat(usr, "\red Invalid FM frequency. (90.0, 200.0)") updateDialog() diff --git a/code/modules/media/broadcast/transmitters/broadcast.dm b/code/modules/media/broadcast/transmitters/broadcast.dm index 55bb10eaf7d..d8607851752 100644 --- a/code/modules/media/broadcast/transmitters/broadcast.dm +++ b/code/modules/media/broadcast/transmitters/broadcast.dm @@ -135,7 +135,7 @@ media_frequency = newfreq connect_frequency() else - usr << "\red Invalid FM frequency. (90.0, 200.0)" + to_chat(usr, "\red Invalid FM frequency. (90.0, 200.0)") /obj/machinery/media/transmitter/broadcast/process() if(stat & (NOPOWER|BROKEN)) @@ -160,23 +160,23 @@ var/datum/gas_mixture/removed = env.remove(transfer_moles) - //world << "got [transfer_moles] moles at [removed.temperature]" +// to_chat(world, "got [transfer_moles] moles at [removed.temperature]") if(removed) var/heat_capacity = removed.heat_capacity() - //world << "heating ([heat_capacity])" +// to_chat(world, "heating ([heat_capacity])") if(heat_capacity) // Added check to avoid divide by zero (oshi-) runtime errors -- TLE if(removed.temperature < MAX_TEMP + T0C) removed.temperature = min(removed.temperature + heating_power/heat_capacity, 1000) // Added min() check to try and avoid wacky superheating issues in low gas scenarios -- TLE else removed.temperature = max(removed.temperature - heating_power/heat_capacity, TCMB) - //world << "now at [removed.temperature]" +// to_chat(world, "now at [removed.temperature]") env.merge(removed) - //world << "turf now at [env.temperature]" +// to_chat(world, "turf now at [env.temperature]") /* // Checks heat from the environment and applies any integrity damage var/datum/gas_mixture/environment = loc.return_air() diff --git a/code/modules/media/jukebox.dm b/code/modules/media/jukebox.dm index a6b27dcd1e7..33a44c5f23b 100644 --- a/code/modules/media/jukebox.dm +++ b/code/modules/media/jukebox.dm @@ -115,7 +115,7 @@ var/global/loopModeNames=list( /obj/machinery/media/jukebox/attack_hand(var/mob/user) if(stat & NOPOWER) - usr << "\red You don't see anything to mess with." + to_chat(usr, "\red You don't see anything to mess with.") return if(stat & BROKEN && playlist!=null) user.visible_message("\red [user.name] smacks the side of \the [src.name].","\red You hammer the side of \the [src.name].") @@ -180,7 +180,7 @@ var/global/loopModeNames=list( /obj/machinery/media/jukebox/Topic(href, href_list) ..() if(emagged) - usr << "\red You touch the bluescreened menu. Nothing happens. You feel dumber." + to_chat(usr, "\red You touch the bluescreened menu. Nothing happens. You feel dumber.") return if (href_list["power"]) @@ -190,7 +190,7 @@ var/global/loopModeNames=list( if (href_list["playlist"]) if(!check_reload()) - usr << "\red You must wait 60 seconds between playlist reloads." + to_chat(usr, "\red You must wait 60 seconds between playlist reloads.") return playlist_id=href_list["playlist"] last_reload=world.time diff --git a/code/modules/media/mediamanager.dm b/code/modules/media/mediamanager.dm index 3753f358500..d78afc6f9f2 100644 --- a/code/modules/media/mediamanager.dm +++ b/code/modules/media/mediamanager.dm @@ -81,7 +81,7 @@ if(vlc.attachEvent) { #ifdef DEBUG_MEDIAPLAYER -#define MP_DEBUG(x) owner << x +to_chat(#define MP_DEBUG(x) owner, x) #warning Please comment out #define DEBUG_MEDIAPLAYER before committing. #else #define MP_DEBUG(x) @@ -137,7 +137,7 @@ if(vlc.attachEvent) { if(M && M.playing) targetURL = M.media_url targetStartTime = M.media_start_time - //owner << "Found audio source: [M.media_url] @ [(world.time - start_time) / 10]s." +// to_chat(owner, "Found audio source: [M.media_url] @ [(world.time - start_time) / 10]s.") //else // testing("M is not playing or null.") @@ -155,7 +155,7 @@ if(vlc.attachEvent) { set desc = "Set jukebox volume" if(!media || !istype(media)) - usr << "You have no media datum to change, if you're not in the lobby tell an admin." + to_chat(usr, "You have no media datum to change, if you're not in the lobby tell an admin.") return var/value = input("Choose your Jukebox volume.", "Jukebox volume", media.get_volume()) value = round(max(0, min(100, value))) diff --git a/code/modules/mining/abandonedcrates.dm b/code/modules/mining/abandonedcrates.dm index 7b7f6eded45..16c247b6b50 100644 --- a/code/modules/mining/abandonedcrates.dm +++ b/code/modules/mining/abandonedcrates.dm @@ -64,29 +64,29 @@ /obj/structure/closet/crate/secure/loot/togglelock(mob/user as mob) if(locked) - user << "The crate is locked with a Deca-code lock." + to_chat(user, "The crate is locked with a Deca-code lock.") var/input = input(usr, "Enter digit from [min] to [max].", "Deca-Code Lock", "") as num if(in_range(src, user)) input = Clamp(input, 0, 10) if (input == code) - user << "The crate unlocks!" + to_chat(user, "The crate unlocks!") locked = 0 overlays.Cut() overlays += greenlight else if (input == null || input > max || input < min) - user << "You leave the crate alone." + to_chat(user, "You leave the crate alone.") else - user << "A red light flashes." + to_chat(user, "A red light flashes.") lastattempt = input attempts-- if (attempts == 0) - user << "The crate's anti-tamper system activates!" + to_chat(user, "The crate's anti-tamper system activates!") var/turf/T = get_turf(src.loc) explosion(T, -1, -1, 1, 1) qdel(src) return else - user << "You attempt to interact with the device using a hand gesture, but it appears this crate is from before the DECANECT came out." + to_chat(user, "You attempt to interact with the device using a hand gesture, but it appears this crate is from before the DECANECT came out.") return else return ..() @@ -94,21 +94,21 @@ /obj/structure/closet/crate/secure/loot/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(locked) if (istype(W, /obj/item/weapon/card/emag)) - user << "The crate unlocks!" + to_chat(user, "The crate unlocks!") locked = 0 if (istype(W, /obj/item/device/multitool)) - user << "DECA-CODE LOCK REPORT:" + to_chat(user, "DECA-CODE LOCK REPORT:") if (attempts == 1) - user << "* Anti-Tamper Bomb will activate on next failed access attempt." + to_chat(user, "* Anti-Tamper Bomb will activate on next failed access attempt.") else - user << "* Anti-Tamper Bomb will activate after [src.attempts] failed access attempts." + to_chat(user, "* Anti-Tamper Bomb will activate after [src.attempts] failed access attempts.") if (lastattempt == null) - user << " has been made to open the crate thus far." + to_chat(user, " has been made to open the crate thus far.") return // hot and cold if (code > lastattempt) - user << "* Last access attempt lower than expected code." + to_chat(user, "* Last access attempt lower than expected code.") else - user << "* Last access attempt higher than expected code." + to_chat(user, "* Last access attempt higher than expected code.") else ..() else ..() diff --git a/code/modules/mining/coins.dm b/code/modules/mining/coins.dm index e40e9ff77ed..a8ac5e1a88c 100644 --- a/code/modules/mining/coins.dm +++ b/code/modules/mining/coins.dm @@ -102,15 +102,15 @@ if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if(string_attached) - user << "There already is a string attached to this coin." + to_chat(user, "There already is a string attached to this coin.") return if (CC.use(1)) overlays += image('icons/obj/items.dmi',"coin_string_overlay") string_attached = 1 - user << "You attach a string to the coin." + to_chat(user, "You attach a string to the coin.") else - user << "You need one length of cable to attach a string to the coin." + to_chat(user, "You need one length of cable to attach a string to the coin.") return else if(istype(W,/obj/item/weapon/wirecutters)) @@ -123,7 +123,7 @@ CC.update_icon() overlays = list() string_attached = null - user << "You detach the string from the coin." + to_chat(user, "You detach the string from the coin.") else if(istype(W,/obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(WT.welding && WT.remove_fuel(0, user)) @@ -134,7 +134,7 @@ "uranium" = /obj/item/clothing/gloves/ring/uranium) var/typekey = typelist[cmineral] if(ispath(typekey)) - user << "\blue You make [src] into a ring." + to_chat(user, "\blue You make [src] into a ring.") new typekey(get_turf(loc)) qdel(src) else ..() diff --git a/code/modules/mining/equipment_locker.dm b/code/modules/mining/equipment_locker.dm index 383285a20f4..60044582dec 100644 --- a/code/modules/mining/equipment_locker.dm +++ b/code/modules/mining/equipment_locker.dm @@ -209,7 +209,7 @@ inserted_id.mining_points += points points = 0 else - usr << "Required access not found." + to_chat(usr, "Required access not found.") else if(href_list["choice"] == "insert") var/obj/item/weapon/card/id/I = usr.get_active_hand() if(istype(I)) @@ -217,7 +217,8 @@ return I.loc = src inserted_id = I - else usr << "No valid ID." + else + to_chat(usr, "No valid ID.") if(href_list["release"]) if(check_access(inserted_id) || allowed(usr)) //Check the ID inside, otherwise check the user. if(!(text2path(href_list["release"]) in stack_list)) return @@ -231,7 +232,7 @@ if(inp.amount < 1) stack_list -= text2path(href_list["release"]) else - usr << "Required access not found." + to_chat(usr, "Required access not found.") if(href_list["plasteel"]) if(check_access(inserted_id) || allowed(usr)) if(!(/obj/item/stack/sheet/metal in stack_list)) return @@ -247,7 +248,7 @@ plasmastack.amount -= plasteelout.amount unload_mineral(plasteelout) else - usr << "Required access not found." + to_chat(usr, "Required access not found.") if(href_list["plasglass"]) if(check_access(inserted_id) || allowed(usr)) if(!(/obj/item/stack/sheet/glass in stack_list)) return @@ -263,7 +264,7 @@ plasmastack.amount -= plasglassout.amount unload_mineral(plasglassout) else - usr << "Required access not found." + to_chat(usr, "Required access not found.") updateUsrDialog() return @@ -414,7 +415,8 @@ return I.loc = src inserted_id = I - else usr << "No valid ID." + else + to_chat(usr, "No valid ID.") if(href_list["purchase"]) if(istype(inserted_id)) var/datum/data/mining_equipment/prize = locate(href_list["purchase"]) @@ -495,15 +497,15 @@ if(points) var/obj/item/weapon/card/id/C = I C.mining_points += points - user << "You transfer [points] points to [C]." + to_chat(user, "You transfer [points] points to [C].") points = 0 else - user << "There's no points left on [src]." + to_chat(user, "There's no points left on [src].") ..() /obj/item/weapon/card/mining_point_card/examine(mob/user) ..(user) - user << "There's [points] points on the card." + to_chat(user, "There's [points] points on the card.") /**********************Jaunter**********************/ @@ -522,7 +524,7 @@ /obj/item/device/wormhole_jaunter/attack_self(mob/user as mob) var/turf/device_turf = get_turf(user) if(!device_turf||device_turf.z==2||device_turf.z>=7) - user << "You're having difficulties getting the [src.name] to work." + to_chat(user, "You're having difficulties getting the [src.name] to work.") return else user.visible_message("[user.name] activates the [src.name]!") @@ -532,7 +534,7 @@ if(T.z == ZLEVEL_STATION) L += B if(!L.len) - user << "The [src.name] failed to create a wormhole." + to_chat(user, "The [src.name] failed to create a wormhole.") return var/chosen_beacon = pick(L) var/obj/effect/portal/wormhole/jaunt_tunnel/J = new /obj/effect/portal/wormhole/jaunt_tunnel(get_turf(src), chosen_beacon) @@ -603,10 +605,10 @@ /obj/item/weapon/resonator/attack_self(mob/user as mob) if(burst_time == 50) burst_time = 30 - user << "You set the resonator's fields to detonate after 3 seconds." + to_chat(user, "You set the resonator's fields to detonate after 3 seconds.") else burst_time = 50 - user << "You set the resonator's fields to detonate after 5 seconds." + to_chat(user, "You set the resonator's fields to detonate after 5 seconds.") /obj/item/weapon/resonator/afterattack(atom/target, mob/user, proximity_flag) if(proximity_flag) @@ -643,11 +645,11 @@ if(creator) for(var/mob/living/L in src.loc) add_logs(L, creator, "used a resonator field on", object="resonator") - L << "The [src.name] ruptured with you in it!" + to_chat(L, "The [src.name] ruptured with you in it!") L.adjustBruteLoss(resonance_damage) else for(var/mob/living/L in src.loc) - L << "The [src.name] ruptured with you in it!" + to_chat(L, "The [src.name] ruptured with you in it!") L.adjustBruteLoss(resonance_damage) qdel(src) @@ -723,16 +725,16 @@ var/obj/item/weapon/weldingtool/W = I if(W.welding && !stat) if(stance != HOSTILE_STANCE_IDLE) - user << "[src] is moving around too much to repair!" + to_chat(user, "[src] is moving around too much to repair!") return if(maxHealth == health) - user << "[src] is at full integrity." + to_chat(user, "[src] is at full integrity.") else health += 10 - user << "You repair some of the armor on [src]." + to_chat(user, "You repair some of the armor on [src].") return if(istype(I, /obj/item/device/mining_scanner) || istype(I, /obj/item/device/t_scanner/adv_mining_scanner)) - user << "You instruct [src] to drop any collected ore." + to_chat(user, "You instruct [src] to drop any collected ore.") DropOre() return ..() @@ -754,10 +756,10 @@ switch(search_objects) if(0) SetCollectBehavior() - M << "[src] has been set to search and store loose ore." + to_chat(M, "[src] has been set to search and store loose ore.") if(2) SetOffenseBehavior() - M << "[src] has been set to attack hostile wildlife." + to_chat(M, "[src] has been set to attack hostile wildlife.") return ..() @@ -864,10 +866,10 @@ icon_state = "lazarus_empty" return else - user << "[src] is only effective on the dead." + to_chat(user, "[src] is only effective on the dead.") return else - user << "[src] is only effective on lesser beings." + to_chat(user, "[src] is only effective on lesser beings.") return /obj/item/weapon/lazarus_injector/emag_act() @@ -881,9 +883,9 @@ /obj/item/weapon/lazarus_injector/examine(mob/user) ..(user) if(!loaded) - user << "[src] is empty." + to_chat(user, "[src] is empty.") if(malfunctioning) - user << "The display on [src] seems to be flickering." + to_chat(user, "The display on [src] seems to be flickering.") /**********************Mining Scanner**********************/ @@ -989,8 +991,8 @@ /obj/item/weapon/hivelordstabilizer/afterattack(obj/item/organ/internal/M, mob/user) var/obj/item/organ/internal/hivelord_core/C = M if(!istype(C, /obj/item/organ/internal/hivelord_core)) - user << "The stabilizer only works on hivelord cores." + to_chat(user, "The stabilizer only works on hivelord cores.") return ..() C.preserved = 1 - user << "You inject the hivelord core with the stabilizer. It will no longer go inert." + to_chat(user, "You inject the hivelord core with the stabilizer. It will no longer go inert.") qdel(src) \ No newline at end of file diff --git a/code/modules/mining/laborcamp/laborshuttle.dm b/code/modules/mining/laborcamp/laborshuttle.dm index 07233a2f6fd..25bbf0f3ee5 100644 --- a/code/modules/mining/laborcamp/laborshuttle.dm +++ b/code/modules/mining/laborcamp/laborshuttle.dm @@ -18,10 +18,10 @@ if(href_list["move"]) var/obj/docking_port/mobile/M = shuttle_master.getShuttle("laborcamp") if(!M) - usr << "Cannot locate shuttle!" + to_chat(usr, "Cannot locate shuttle!") return 0 var/obj/docking_port/stationary/S = M.get_docked() if(S && S.name == "laborcamp_away") - usr << "Shuttle is already at the outpost!" + to_chat(usr, "Shuttle is already at the outpost!") return 0 ..() \ No newline at end of file diff --git a/code/modules/mining/laborcamp/laborstacker.dm b/code/modules/mining/laborcamp/laborstacker.dm index b5a14e9caa5..47c9c45dbc3 100644 --- a/code/modules/mining/laborcamp/laborstacker.dm +++ b/code/modules/mining/laborcamp/laborstacker.dm @@ -72,7 +72,7 @@ /obj/machinery/mineral/labor_claim_console/proc/emag(mob/user as mob) if(!emagged) emagged = 1 - user << "PZZTTPFFFT" + to_chat(user, "PZZTTPFFFT") @@ -88,30 +88,31 @@ if(href_list["choice"] == "claim") inserted_id.points += machine.points machine.points = 0 - src << "Points transferred." + to_chat(src, "Points transferred.") else if(href_list["choice"] == "insert") var/obj/item/weapon/card/id/prisoner/I = usr.get_active_hand() if(istype(I)) usr.drop_item() I.loc = src inserted_id = I - else usr << "Invalid ID." + else + to_chat(usr, "Invalid ID.") if(check_auth()) //Sanity check against hef spoofs if(href_list["choice"] == "station") if(!alone_in_area(get_area(src), usr)) - usr << "Prisoners are only allowed to be released while alone." + to_chat(usr, "Prisoners are only allowed to be released while alone.") else switch(shuttle_master.moveShuttle("laborcamp","laborcamp_home")) if(1) - usr << "Shuttle not found" + to_chat(usr, "Shuttle not found") if(2) - usr << "Shuttle already at station" + to_chat(usr, "Shuttle already at station") if(3) - usr << "No permission to dock could be granted." + to_chat(usr, "No permission to dock could be granted.") else var/message = "[inserted_id.registered_name] has returned to the station. Minerals and Prisoner ID card ready for retrieval." announcer.autosay(message, "Labor Camp Controller", "Security") - usr << "Shuttle received message and will be sent shortly." + to_chat(usr, "Shuttle received message and will be sent shortly.") if(href_list["choice"] == "release") if(alone_in_area(get_area(loc), usr)) @@ -120,9 +121,9 @@ if(release_door && release_door.density) release_door.open() else - usr << "Prisoners can only be released while docked with the station." + to_chat(usr, "Prisoners can only be released while docked with the station.") else - usr << "Prisoners are only allowed to be released while alone." + to_chat(usr, "Prisoners are only allowed to be released while alone.") src.updateUsrDialog() return @@ -168,11 +169,11 @@ if(istype(I, /obj/item/weapon/card/id)) if(istype(I, /obj/item/weapon/card/id/prisoner)) var/obj/item/weapon/card/id/prisoner/prisoner_id = I - user << "ID: [prisoner_id.registered_name]" - user << "Points Collected:[prisoner_id.points]" - user << "Point Quota: [prisoner_id.goal]" - user << "Collect points by bringing smelted minerals to the Labor Shuttle stacking machine. Reach your quota to earn your release." + to_chat(user, "ID: [prisoner_id.registered_name]") + to_chat(user, "Points Collected:[prisoner_id.points]") + to_chat(user, "Point Quota: [prisoner_id.goal]") + to_chat(user, "Collect points by bringing smelted minerals to the Labor Shuttle stacking machine. Reach your quota to earn your release.") else - user << "Error: Invalid ID" + to_chat(user, "Error: Invalid ID") return ..() diff --git a/code/modules/mining/manufacturing.dm b/code/modules/mining/manufacturing.dm index d74386828df..429b0ee42bc 100644 --- a/code/modules/mining/manufacturing.dm +++ b/code/modules/mining/manufacturing.dm @@ -177,7 +177,7 @@ usr.machine = src if (href_list["download"]) - if(!src.dl_list) usr << "\red This unit is not capable of downloading any additional schematics." + to_chat(if(!src.dl_list) usr, "\red This unit is not capable of downloading any additional schematics.") else var/amtdl = 0 //var/dontload = 0 @@ -191,8 +191,8 @@ src.download += new S.type(src) amtdl++ else dontload = 0*/ - if (amtdl) usr << "\blue [amtdl] new schematics downloaded from Robotics Research Database." - else usr << "\red No new schematics currently available in Robotics Research Database." + to_chat(if (amtdl) usr, "\blue [amtdl] new schematics downloaded from Robotics Research Database.") + to_chat(else usr, "\red No new schematics currently available in Robotics Research Database.") if (href_list["delete"]) var/operation = text2num(href_list["delete"]) @@ -201,15 +201,15 @@ for(var/datum/manufacture/D in src.diskload) src.diskload-= D amtgone++ - if (amtgone) usr << "\blue Cleared [amtgone] schematics from database." - else usr << "\red No disk-loaded schematics detected in database." + to_chat(if (amtgone) usr, "\blue Cleared [amtgone] schematics from database.") + to_chat(else usr, "\red No disk-loaded schematics detected in database.") if(operation == 2) // Clear Download Schematics var/amtgone = 0 for(var/datum/manufacture/D in src.download) src.download-= D amtgone++ - if (amtgone) usr << "\blue Cleared [amtgone] schematics from database." - else usr << "\red No downloaded schematics detected in database." + to_chat(if (amtgone) usr, "\blue Cleared [amtgone] schematics from database.") + to_chat(else usr, "\red No downloaded schematics detected in database.") if (href_list["eject"]) var/operation = text2num(href_list["eject"]) @@ -228,7 +228,7 @@ if(10) ejecting = /obj/item/weapon/ore/hydrogen if(11) ejecting = /obj/item/weapon/ore/fabric else - usr << "\red Error. Unknown ore type." + to_chat(usr, "\red Error. Unknown ore type.") return sleep(3) ejectamt = input(usr,"How many units do you want to eject?","Eject Materials") as num @@ -249,7 +249,7 @@ if (istype(O,I.cost2)) A2++ if (istype(O,I.cost3)) A3++ if (A1 < I.amount1 || A2 < I.amount2 || A3 < I.amount3) - usr << "\red Insufficient materials to manufacture that item." + to_chat(usr, "\red Insufficient materials to manufacture that item.") return // Consume Mats var/C1 = I.amount1 @@ -337,7 +337,7 @@ if(istype(W,/obj/item/clothing/suit/space/)) new /obj/item/weapon/ore/fabric(src) load = 2 else if(istype(W, /obj/item/weapon/disk/data/schematic)) - if (!src.acceptdisk) user << "\red This unit is unable to accept disks." + to_chat(if (!src.acceptdisk) user, "\red This unit is unable to accept disks.") else var/amtload = 0 var/dontload = 0 @@ -354,19 +354,19 @@ src.diskload += new WS.type(src) amtload++ else dontload = 0 - if (amtload) user << "\blue [amtload] new schematics downloaded from disk." - else user << "\red No new schematics available on disk." + to_chat(if (amtload) user, "\blue [amtload] new schematics downloaded from disk.") + to_chat(else user, "\red No new schematics available on disk.") else if (istype(W, /obj/item/weapon/storage/bag/ore)) for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] uses the []'s automatic ore loader on []!", user, src, W), 1) var/amtload = 0 for (var/obj/item/weapon/ore/M in W.contents) M.loc = src amtload++ - if (amtload) user << "\blue [amtload] pieces of ore loaded from [W]!" - else user << "\red No ore loaded!" + to_chat(if (amtload) user, "\blue [amtload] pieces of ore loaded from [W]!") + to_chat(else user, "\red No ore loaded!") else if(istype(W, /obj/item/weapon/card/emag)) src.hacked = 1 - user << "\blue You remove the [src]'s product locks!" + to_chat(user, "\blue You remove the [src]'s product locks!") else ..() if (load == 1) @@ -391,8 +391,8 @@ for (var/obj/item/weapon/ore/M in O.contents) M.loc = src amtload++ - if (amtload) user << "\blue [amtload] pieces of ore loaded from [O]!" - else user << "\red No ore loaded!" + to_chat(if (amtload) user, "\blue [amtload] pieces of ore loaded from [O]!") + to_chat(else user, "\red No ore loaded!") else if (istype(O, /obj/item/weapon/ore/)) for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] begins quickly stuffing ore into []!", user, src), 1) var/staystill = user.loc @@ -400,7 +400,7 @@ M.loc = src sleep(3) if (user.loc != staystill) break - user << "\blue You finish stuffing ore into [src]!" + to_chat(user, "\blue You finish stuffing ore into [src]!") /*else if (istype(O, /obj/item/weapon/plant/wheat/metal)) for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] begins quickly stuffing [O] into []!", user, src), 1) var/staystill = user.loc @@ -409,7 +409,7 @@ del M sleep(3) if (user.loc != staystill) break - user << "\blue You finish stuffing [O] into [src]!"*/ + to_chat(user, "\blue You finish stuffing [O] into [src]!"*/) else ..() src.updateUsrDialog() diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm index 235b46df619..f1f317789b4 100644 --- a/code/modules/mining/mine_items.dm +++ b/code/modules/mining/mine_items.dm @@ -219,17 +219,17 @@ /obj/item/device/mobcapsule/proc/capture(var/mob/target, var/mob/U as mob) var/mob/living/simple_animal/T = target if(captured) - U << "Capture failed!: The capsule already has a mob registered to it!" + to_chat(U, "Capture failed!: The capsule already has a mob registered to it!") else if(istype(T) && "neutral" in T.faction) T.forceMove(src) T.name = "[U.name]'s [initial(T.name)]" T.cancel_camera() name = "Lazarus Capsule: [initial(T.name)]" - U << "You placed a [T.name] inside the Lazarus Capsule!" + to_chat(U, "You placed a [T.name] inside the Lazarus Capsule!") captured = T else - U << "You can't capture that mob!" + to_chat(U, "You can't capture that mob!") /obj/item/device/mobcapsule/throw_impact(atom/A, mob/user) ..() diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index fe31649e6d3..e2ff03a506e 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -361,7 +361,7 @@ var/global/list/rockTurfEdgeCache /turf/simulated/mineral/attackby(var/obj/item/weapon/pickaxe/P as obj, mob/user as mob, params) if (!user.IsAdvancedToolUser()) - usr << "You don't have the dexterity to do this!" + to_chat(usr, "You don't have the dexterity to do this!") return if (istype(P, /obj/item/weapon/pickaxe)) @@ -372,12 +372,12 @@ var/global/list/rockTurfEdgeCache if(last_act+P.digspeed > world.time)//prevents message spam return last_act = world.time - user << "You start picking..." + to_chat(user, "You start picking...") P.playDigSound() if(do_after(user, P.digspeed, target = src)) if(istype(src, /turf/simulated/mineral)) //sanity check against turf being deleted during digspeed delay - user << "You finish cutting into the rock." + to_chat(user, "You finish cutting into the rock.") P.update_icon() gets_drilled(user) feedback_add_details("pick_used_mining","[P.name]") @@ -407,10 +407,10 @@ var/global/list/rockTurfEdgeCache ..() /turf/simulated/mineral/attack_alien(var/mob/living/carbon/alien/M) - M << "You start digging into the rock..." + to_chat(M, "You start digging into the rock...") playsound(src, 'sound/effects/break_stone.ogg', 50, 1) if(do_after(M, 40, target = src)) - M << "You tunnel into the rock." + to_chat(M, "You tunnel into the rock.") gets_drilled() /turf/simulated/mineral/Bumped(AM as mob|obj) @@ -475,14 +475,14 @@ var/global/list/rockTurfEdgeCache return if (dug) - user << "This area has already been dug!" + to_chat(user, "This area has already been dug!") return - user << "You start digging..." + to_chat(user, "You start digging...") sleep(20) if ((user.loc == T && user.get_active_hand() == W)) - user << "You dig a hole." + to_chat(user, "You dig a hole.") gets_dug() return @@ -493,14 +493,14 @@ var/global/list/rockTurfEdgeCache return if (dug) - user << "This area has already been dug!" + to_chat(user, "This area has already been dug!") return - user << "You start digging..." + to_chat(user, "You start digging...") sleep(P.digspeed) if ((user.loc == T && user.get_active_hand() == W)) - user << "You dig a hole." + to_chat(user, "You dig a hole.") gets_dug() return diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm index 51d28af42dd..be34465c207 100644 --- a/code/modules/mining/mint.dm +++ b/code/modules/mining/mint.dm @@ -124,7 +124,7 @@ usr.set_machine(src) src.add_fingerprint(usr) if(processing==1) - usr << "The machine is processing." + to_chat(usr, "The machine is processing.") return if(href_list["choose"]) chosen = href_list["choose"] diff --git a/code/modules/mining/money_bag.dm b/code/modules/mining/money_bag.dm index 079a75341d6..a7a7b4b10df 100644 --- a/code/modules/mining/money_bag.dm +++ b/code/modules/mining/money_bag.dm @@ -67,13 +67,13 @@ var/obj/item/weapon/coin/C = W if(!user.drop_item()) return - user << "You add the [C.name] into the bag." + to_chat(user, "You add the [C.name] into the bag.") contents += C if (istype(W, /obj/item/weapon/moneybag)) var/obj/item/weapon/moneybag/C = W for (var/obj/O in C.contents) contents += O; - user << "You empty the [C.name] into the bag." + to_chat(user, "You empty the [C.name] into the bag.") return /obj/item/weapon/moneybag/Topic(href, href_list) diff --git a/code/modules/mining/ore.dm b/code/modules/mining/ore.dm index 056432c1892..f5e0f2349be 100644 --- a/code/modules/mining/ore.dm +++ b/code/modules/mining/ore.dm @@ -13,7 +13,7 @@ new refined_type(get_turf(src.loc)) qdel(src) else if(W.isOn()) - user << "Not enough fuel to smelt [src]." + to_chat(user, "Not enough fuel to smelt [src].") ..() /obj/item/weapon/ore/Crossed(AM as mob|obj) @@ -64,7 +64,7 @@ materials = list(MAT_GLASS=MINERAL_MATERIAL_AMOUNT) /obj/item/weapon/ore/glass/attack_self(mob/living/user as mob) - user << "You use the sand to make sandstone." + to_chat(user, "You use the sand to make sandstone.") var/sandAmt = 1 for(var/obj/item/weapon/ore/glass/G in user.loc) // The sand on the floor sandAmt += 1 @@ -94,7 +94,7 @@ if(istype(I, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/W = I if(W.welding) - user << "You can't hit a high enough temperature to smelt [src] properly!" + to_chat(user, "You can't hit a high enough temperature to smelt [src] properly!") else ..() diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm index 166c05e10c6..7d6750c4be4 100644 --- a/code/modules/mining/satchel_ore_boxdm.dm +++ b/code/modules/mining/satchel_ore_boxdm.dm @@ -19,7 +19,7 @@ S.hide_from(usr) for(var/obj/item/weapon/ore/O in S.contents) S.remove_from_storage(O, src) //This will move the item to this item's contents - user << "You empty the satchel into the box." + to_chat(user, "You empty the satchel into the box.") return /obj/structure/ore_box/attack_hand(mob/user as mob) @@ -91,7 +91,7 @@ for (var/obj/item/weapon/ore/O in contents) contents -= O O.loc = src.loc - usr << "You empty the box." + to_chat(usr, "You empty the box.") src.updateUsrDialog() return @@ -106,25 +106,25 @@ obj/structure/ore_box/ex_act(severity, target) set src in view(1) if(!istype(usr, /mob/living/carbon/human)) //Only living, intelligent creatures with hands can empty ore boxes. - usr << "You are physically incapable of emptying the ore box." + to_chat(usr, "You are physically incapable of emptying the ore box.") return if( usr.stat || usr.restrained() ) return if(!Adjacent(usr)) //You can only empty the box if you can physically reach it - usr << "You cannot reach the ore box." + to_chat(usr, "You cannot reach the ore box.") return add_fingerprint(usr) if(contents.len < 1) - usr << "The ore box is empty." + to_chat(usr, "The ore box is empty.") return for (var/obj/item/weapon/ore/O in contents) contents -= O O.loc = src.loc - usr << "You empty the ore box." + to_chat(usr, "You empty the ore box.") return diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 46a40f6a1bf..82b83db73ef 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -201,9 +201,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp show_stat_station_time() if(ticker) if(ticker.mode) - //world << "DEBUG: ticker not null" +// to_chat(world, "DEBUG: ticker not null") if(ticker.mode.name == "AI malfunction") - //world << "DEBUG: malf mode ticker test" +// to_chat(world, "DEBUG: malf mode ticker test") if(ticker.mode:malf_mode_declared) stat(null, "Time left: [max(ticker.mode:AI_win_timeleft/(ticker.mode:apcs/3), 0)]") show_stat_emergency_shuttle_eta() @@ -213,13 +213,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set name = "Re-enter Corpse" if(!client) return if(!can_reenter_corpse) - src << "You've given up your right to respawn!" + to_chat(src, "You've given up your right to respawn!") return if(!(mind && mind.current && can_reenter_corpse)) - src << "You have no body." + to_chat(src, "You have no body.") return if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients - usr << "Another consciousness is in your body...It is resisting you." + to_chat(usr, "Another consciousness is in your body...It is resisting you.") return if(mind.current.ajourn && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune). var/turf/T = get_turf(mind.current) @@ -230,7 +230,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp found_astral_rune = 1 break if(!found_astral_rune) - usr << "The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you." + to_chat(usr, "The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you.") return mind.current.ajourn=0 @@ -247,10 +247,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/proc/notify_cloning(var/message, var/sound, var/atom/source) if(message) - src << "[message]" - src << "(Click to re-enter)" + to_chat(src, "[message]") + to_chat(src, "(Click to re-enter)") if(sound) - src << sound(sound) + to_chat(src, sound(sound)) /mob/dead/observer/proc/show_me_the_hud(hud_index) var/datum/atom_hud/H = huds[hud_index] @@ -270,16 +270,16 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp switch(data_hud_seen) //give new huds if(0) show_me_the_hud(DATA_HUD_SECURITY_BASIC) - src << "Security HUD set." + to_chat(src, "Security HUD set.") if(DATA_HUD_SECURITY_BASIC) show_me_the_hud(DATA_HUD_MEDICAL_ADVANCED) - src << "Medical HUD set." + to_chat(src, "Medical HUD set.") if(DATA_HUD_MEDICAL_ADVANCED) show_me_the_hud(DATA_HUD_DIAGNOSTIC) - src << "Diagnostic HUD set." + to_chat(src, "Diagnostic HUD set.") if(DATA_HUD_DIAGNOSTIC) data_hud_seen = 0 - src << "HUDs disabled." + to_chat(src, "HUDs disabled.") /mob/dead/observer/verb/toggle_antagHUD() @@ -287,13 +287,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set name = "Toggle AntagHUD" set desc = "Toggles AntagHUD allowing you to see who is the antagonist" if(!config.antag_hud_allowed && !client.holder) - src << "\red Admins have disabled this for this round." + to_chat(src, "\red Admins have disabled this for this round.") return if(!client) return var/mob/dead/observer/M = src if(jobban_isbanned(M, "AntagHUD")) - src << "\red You have been banned from using this feature" + to_chat(src, "\red You have been banned from using this feature") return if(config.antag_hud_restricted && !M.has_enabled_antagHUD && !check_rights(R_ADMIN|R_MOD,0)) var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No") @@ -313,10 +313,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp else H.remove_hud_from(usr) if(!M.antagHUD) - usr << "AntagHud Toggled ON" + to_chat(usr, "AntagHud Toggled ON") M.antagHUD = 1 else - usr << "AntagHud Toggled OFF" + to_chat(usr, "AntagHud Toggled OFF") M.antagHUD = 0 /mob/dead/observer/proc/dead_tele(A in ghostteleportlocs) @@ -325,7 +325,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set desc= "Teleport to a location" if(!isobserver(usr)) - usr << "Not when you're not dead!" + to_chat(usr, "Not when you're not dead!") return usr.verbs -= /mob/dead/observer/proc/dead_tele @@ -340,7 +340,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp L += T if(!L || !L.len) - usr << "No area available." + to_chat(usr, "No area available.") usr.forceMove(pick(L)) following = null @@ -363,7 +363,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(following && following == target) return following = target - src << "Now following [target]" + to_chat(src, "Now following [target]") if(ismob(target)) forceMove(get_turf(target)) var/mob/M = target @@ -418,7 +418,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp forceMove(T) following = null else - src << "This mob is not located in the game world." + to_chat(src, "This mob is not located in the game world.") /* Now a spell. See spells.dm @@ -438,11 +438,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/memory() set hidden = 1 - src << "\red You are dead! You have no mind to store memory!" + to_chat(src, "\red You are dead! You have no mind to store memory!") /mob/dead/observer/add_memory() set hidden = 1 - src << "\red You are dead! You have no mind to store memory!" + to_chat(src, "\red You are dead! You have no mind to store memory!") /mob/dead/observer/verb/analyze_air() set name = "Analyze Air" @@ -459,11 +459,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/pressure = environment.return_pressure() var/total_moles = environment.total_moles() - src << "\blue Results:" + to_chat(src, "\blue Results:") if(abs(pressure - ONE_ATMOSPHERE) < 10) - src << "\blue Pressure: [round(pressure,0.1)] kPa" + to_chat(src, "\blue Pressure: [round(pressure,0.1)] kPa") else - src << "\red Pressure: [round(pressure,0.1)] kPa" + to_chat(src, "\red Pressure: [round(pressure,0.1)] kPa") if(total_moles) var/o2_concentration = environment.oxygen/total_moles var/n2_concentration = environment.nitrogen/total_moles @@ -472,28 +472,28 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/unknown_concentration = 1-(o2_concentration+n2_concentration+co2_concentration+plasma_concentration) if(abs(n2_concentration - N2STANDARD) < 20) - src << "\blue Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)" + to_chat(src, "\blue Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)") else - src << "\red Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)" + to_chat(src, "\red Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)") if(abs(o2_concentration - O2STANDARD) < 2) - src << "\blue Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)" + to_chat(src, "\blue Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)") else - src << "\red Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)" + to_chat(src, "\red Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)") if(co2_concentration > 0.01) - src << "\red CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)" + to_chat(src, "\red CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)") else - src << "\blue CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)" + to_chat(src, "\blue CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)") if(plasma_concentration > 0.01) - src << "\red Plasma: [round(plasma_concentration*100)]% ([round(environment.toxins,0.01)] moles)" + to_chat(src, "\red Plasma: [round(plasma_concentration*100)]% ([round(environment.toxins,0.01)] moles)") if(unknown_concentration > 0.01) - src << "\red Unknown: [round(unknown_concentration*100)]% ([round(unknown_concentration*total_moles,0.01)] moles)" + to_chat(src, "\red Unknown: [round(unknown_concentration*100)]% ([round(unknown_concentration*total_moles,0.01)] moles)") - src << "\blue Temperature: [round(environment.temperature-T0C,0.1)]°C" - src << "\blue Heat Capacity: [round(environment.heat_capacity(),0.1)]" + to_chat(src, "\blue Temperature: [round(environment.temperature-T0C,0.1)]°C") + to_chat(src, "\blue Heat Capacity: [round(environment.heat_capacity(),0.1)]") /mob/dead/observer/verb/view_manifest() set name = "View Crew Manifest" @@ -550,7 +550,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if (href_list["jump"]) var/mob/target = locate(href_list["jump"]) var/mob/A = usr; - A << "Teleporting to [target]..." + to_chat(A, "Teleporting to [target]...") //var/mob/living/silicon/ai/A = locate(href_list["track2"]) in mob_list if(target && target != usr) spawn(0) @@ -573,9 +573,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp src.anonsay = !src.anonsay if(anonsay) - src << "Your key won't be shown when you speak in dead chat." + to_chat(src, "Your key won't be shown when you speak in dead chat.") else - src << "Your key will be publicly visible again." + to_chat(src, "Your key will be publicly visible again.") /mob/dead/observer/verb/toggle_ghostsee() set name = "Toggle Ghost Vision" @@ -583,7 +583,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set category = "Ghost" ghostvision = !(ghostvision) updateghostsight() - usr << "You [(ghostvision?"now":"no longer")] have ghost vision." + to_chat(usr, "You [(ghostvision?"now":"no longer")] have ghost vision.") /mob/dead/observer/verb/toggle_darkness() set name = "Toggle Darkness" diff --git a/code/modules/mob/dead/observer/say.dm b/code/modules/mob/dead/observer/say.dm index 34a0d44d631..7f63a8f1261 100644 --- a/code/modules/mob/dead/observer/say.dm +++ b/code/modules/mob/dead/observer/say.dm @@ -8,7 +8,7 @@ if (src.client) if(src.client.prefs.muted & MUTE_DEADCHAT) - src << "\red You cannot talk in deadchat (muted)." + to_chat(src, "\red You cannot talk in deadchat (muted).") return if (src.client.handle_spam_prevention(message,MUTE_DEADCHAT)) @@ -30,7 +30,7 @@ if(src.client) if(src.client.prefs.muted & MUTE_DEADCHAT) - src << "\red You cannot emote in deadchat (muted)." + to_chat(src, "\red You cannot emote in deadchat (muted).") return if(src.client.handle_spam_prevention(message, MUTE_DEADCHAT)) diff --git a/code/modules/mob/dead/observer/spells.dm b/code/modules/mob/dead/observer/spells.dm index ef51c787e5a..993f2b6e344 100644 --- a/code/modules/mob/dead/observer/spells.dm +++ b/code/modules/mob/dead/observer/spells.dm @@ -32,7 +32,7 @@ var/global/list/boo_phrases=list( if(ishuman(A)) var/mob/living/carbon/human/H = A if(H && H.client) - H << "[pick(boo_phrases)]" + to_chat(H, "[pick(boo_phrases)]") // Flicker unblessed lights in range if(istype(A,/obj/machinery/light)) diff --git a/code/modules/mob/emote.dm b/code/modules/mob/emote.dm index 77b1dfa8dcb..8d03cdd969a 100644 --- a/code/modules/mob/emote.dm +++ b/code/modules/mob/emote.dm @@ -17,7 +17,7 @@ /mob/proc/custom_emote(var/m_type=1,var/message = null) if(stat || !use_me && usr == src) - usr << "You are unable to emote." + to_chat(usr, "You are unable to emote.") return var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle) @@ -85,16 +85,16 @@ /mob/proc/emote_dead(var/message) if(client.prefs.muted & MUTE_DEADCHAT) - src << "\red You cannot send deadchat emotes (muted)." + to_chat(src, "\red You cannot send deadchat emotes (muted).") return if(!(client.prefs.toggles & CHAT_DEAD)) - src << "\red You have deadchat muted." + to_chat(src, "\red You have deadchat muted.") return if(!src.client.holder) if(!config.dsay_allowed) - src << "\red Deadchat is globally muted" + to_chat(src, "\red Deadchat is globally muted") return @@ -118,7 +118,7 @@ continue if(check_rights(R_ADMIN|R_MOD, 0, M) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to admins/mods - M << message + to_chat(M, message) else if(M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to regular ghosts with deadchat toggled on M.show_message(message, 2) diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm index c177b94a118..c3ca5a602c9 100644 --- a/code/modules/mob/hear_say.dm +++ b/code/modules/mob/hear_say.dm @@ -65,14 +65,14 @@ if(sdisabilities & DEAF || ear_deaf) if(!language || !(language.flags & INNATE)) // INNATE is the flag for audible-emote-language, so we don't want to show an "x talks but you cannot hear them" message if it's set if(speaker == src) - src << "You cannot hear yourself speak!" + to_chat(src, "You cannot hear yourself speak!") else - src << "[speaker_name][alt_name] talks but you cannot hear them." + to_chat(src, "[speaker_name][alt_name] talks but you cannot hear them.") else if(language) - src << "[speaker_name][alt_name] [track][language.format_message(message, verb)]" + to_chat(src, "[speaker_name][alt_name] [track][language.format_message(message, verb)]") else - src << "[speaker_name][alt_name] [track][verb], \"[message]\"" + to_chat(src, "[speaker_name][alt_name] [track][verb], \"[message]\"") if (speech_sound && (get_dist(speaker, src) <= world.view && src.z == speaker.z)) var/turf/source = speaker? get_turf(speaker) : get_turf(src) src.playsound_local(source, speech_sound, sound_vol, 1) @@ -177,11 +177,11 @@ formatted = "[verb], \"[message]\"" if(sdisabilities & DEAF || ear_deaf) if(prob(20)) - src << "You feel your headset vibrate but can hear nothing from it!" + to_chat(src, "You feel your headset vibrate but can hear nothing from it!") else if(track) - src << "[part_a][track][part_b][formatted]
" + to_chat(src, "[part_a][track][part_b][formatted]
") else - src << "[part_a][speaker_name][part_b][formatted]
" + to_chat(src, "[part_a][speaker_name][part_b][formatted]") /mob/proc/hear_signlang(var/message, var/verb = "gestures", var/datum/language/language, var/mob/speaker = null) if(!client) @@ -215,4 +215,4 @@ else heard = "...You almost hear someone talking..." - src << heard + to_chat(src, heard) diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm index 71e4235f2e6..09f8009be75 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -47,10 +47,10 @@ if(istype(M)) M.unEquip(src) - M << "[src] wriggles out of your grip!" - src << "You wriggle out of [M]'s grip!" + to_chat(M, "[src] wriggles out of your grip!") + to_chat(src, "You wriggle out of [M]'s grip!") else if(istype(src.loc,/obj/item)) - src << "You struggle free of [src.loc]." + to_chat(src, "You struggle free of [src.loc].") src.forceMove(get_turf(src)) if(istype(M)) @@ -74,8 +74,8 @@ if(desc) H.desc = desc H.attack_hand(grabber) - grabber << "You scoop up \the [src]." - src << "\The [grabber] scoops you up." + to_chat(grabber, "You scoop up \the [src].") + to_chat(src, "\The [grabber] scoops you up.") grabber.status_flags |= PASSEMOTES return H diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index 265c7697de2..777eac07ec8 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -104,11 +104,11 @@ for(var/mob/player in player_list) if(istype(player,/mob/dead) && follow) var/msg_dead = "[name], [speaker_mask] ([ghost_follow_link(speaker, ghost=player)]) [format_message(message, get_spoken_verb(message))]" - player << msg_dead + to_chat(player, msg_dead) continue else if(istype(player,/mob/dead) || ((src in player.languages) && check_special_condition(player))) - player << msg + to_chat(player, msg) /datum/language/proc/check_special_condition(var/mob/other) return 1 diff --git a/code/modules/mob/living/autohiss.dm b/code/modules/mob/living/autohiss.dm index 4b9bfd96f49..4506ce50cfb 100644 --- a/code/modules/mob/living/autohiss.dm +++ b/code/modules/mob/living/autohiss.dm @@ -25,14 +25,14 @@ autohiss_mode = (autohiss_mode + 1) % AUTOHISS_NUM switch(autohiss_mode) if(AUTOHISS_OFF) - src << "Auto-hiss is now OFF." + to_chat(src, "Auto-hiss is now OFF.") if(AUTOHISS_BASIC) - src << "Auto-hiss is now BASIC." + to_chat(src, "Auto-hiss is now BASIC.") if(AUTOHISS_FULL) - src << "Auto-hiss is now FULL." + to_chat(src, "Auto-hiss is now FULL.") else autohiss_mode = AUTOHISS_OFF - src << "Auto-hiss is now OFF." + to_chat(src, "Auto-hiss is now OFF.") /datum/species var/list/autohiss_basic_map = null diff --git a/code/modules/mob/living/carbon/alien/alien.dm b/code/modules/mob/living/carbon/alien/alien.dm index dd173382124..fdd86c790f9 100644 --- a/code/modules/mob/living/carbon/alien/alien.dm +++ b/code/modules/mob/living/carbon/alien/alien.dm @@ -84,7 +84,7 @@ var/loc_temp = get_temperature(environment) - //world << "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Fire protection: [heat_protection] - Location: [loc] - src: [src]" +// to_chat(world, "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Fire protection: [heat_protection] - Location: [loc] - src: [src]") // Aliens are now weak to fire. diff --git a/code/modules/mob/living/carbon/alien/alien_defenses.dm b/code/modules/mob/living/carbon/alien/alien_defenses.dm index 7ae01f43cfe..397a14fc259 100644 --- a/code/modules/mob/living/carbon/alien/alien_defenses.dm +++ b/code/modules/mob/living/carbon/alien/alien_defenses.dm @@ -7,11 +7,11 @@ In all, this is a lot like the monkey code. /N */ /mob/living/carbon/alien/attack_alien(mob/living/carbon/alien/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return switch(M.a_intent) @@ -38,7 +38,7 @@ In all, this is a lot like the monkey code. /N add_logs(src, M, "attacked", admin=0) updatehealth() else - M << "[name] is too injured for that." + to_chat(M, "[name] is too injured for that.") return diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm index 17680b80f56..afae056b99f 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm @@ -8,13 +8,13 @@ Doesn't work on other aliens/AI.*/ /mob/living/carbon/proc/powerc(X, Y)//Y is optional, checks for weed planting. X can be null. if(stat) - src << "You must be conscious to do this." + to_chat(src, "You must be conscious to do this.") return 0 else if(X && getPlasma() < X) - src << "Not enough plasma stored." + to_chat(src, "Not enough plasma stored.") return 0 else if(Y && (!isturf(src.loc) || istype(src.loc, /turf/space))) - src << "You can't place that here!" + to_chat(src, "You can't place that here!") return 0 else return 1 @@ -24,7 +24,7 @@ Doesn't work on other aliens/AI.*/ set category = "Alien" if(locate(/obj/structure/alien/weeds/node) in get_turf(src)) - src << "There's already a weed node here." + to_chat(src, "There's already a weed node here.") return if(powerc(50,1)) @@ -44,8 +44,8 @@ Doesn't work on other aliens/AI.*/ var/msg = sanitize(input("Message:", "Alien Whisper") as text|null) if(msg) log_say("Alien Whisper: [key_name(src)]->[key_name(M)]: [msg]") - M << "You hear a strange, alien voice in your head...[msg]" - src << "You said: [msg] to [M]" + to_chat(M, "You hear a strange, alien voice in your head...[msg]") + to_chat(src, "You said: [msg] to [M]") for(var/mob/dead/observer/G in player_list) G.show_message("Alien message from [src] ([ghost_follow_link(src, ghost=G)]) to [M] ([ghost_follow_link(M, ghost=G)]): [msg]") return @@ -63,10 +63,10 @@ Doesn't work on other aliens/AI.*/ if (get_dist(src,M) <= 1) M.adjustPlasma(amount) adjustPlasma(-amount) - M << "[src] has transfered [amount] plasma to you." - src << {"You have trasferred [amount] plasma to [M]"} + to_chat(M, "[src] has transfered [amount] plasma to you.") + to_chat(src, {"You have trasferred [amount] plasma to [M]"}) else - src << "You need to be closer." + to_chat(src, "You need to be closer.") return @@ -81,18 +81,18 @@ Doesn't work on other aliens/AI.*/ if(isobj(O)) var/obj/I = O if(I.unacidable) //So the aliens don't destroy energy fields/singularies/other aliens/etc with their acid. - src << "You cannot dissolve this object." + to_chat(src, "You cannot dissolve this object.") return // TURF CHECK else if(istype(O, /turf/simulated)) var/turf/T = O // R WALL if(istype(T, /turf/simulated/wall/r_wall)) - src << "You cannot dissolve this object." + to_chat(src, "You cannot dissolve this object.") return // R FLOOR if(istype(T, /turf/simulated/floor/engine)) - src << "You cannot dissolve this object." + to_chat(src, "You cannot dissolve this object.") return else// Not a type we can acid. return @@ -101,7 +101,7 @@ Doesn't work on other aliens/AI.*/ new /obj/effect/acid(get_turf(O), O) visible_message("[src] vomits globs of vile stuff all over [O]. It begins to sizzle and melt under the bubbling mess of acid!") else - src << "Target is too far away." + to_chat(src, "Target is too far away.") return /mob/living/carbon/alien/humanoid/proc/neurotoxin() // ok diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm index 19cad5aa5fc..e45fa198006 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm @@ -34,11 +34,11 @@ no_queen = 0 if(src.has_brain_worms()) - src << "We cannot perform this ability at the present time!" + to_chat(src, "We cannot perform this ability at the present time!") return if(no_queen) adjustPlasma(-500) - src << "You begin to evolve!" + to_chat(src, "You begin to evolve!") for(var/mob/O in viewers(src, null)) O.show_message(text("[src] begins to twist and contort!"), 1) var/mob/living/carbon/alien/humanoid/queen/new_xeno = new(loc) @@ -46,5 +46,5 @@ new_xeno.mind.name = new_xeno.name qdel(src) else - src << "We already have an alive queen." + to_chat(src, "We already have an alive queen.") return \ No newline at end of file diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm index 9a667ab79fc..a5e72059ab8 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm @@ -50,7 +50,7 @@ leap_on_click = !leap_on_click leap_icon.icon_state = "leap_[leap_on_click ? "on":"off"]" if(message) - src << "You will now [leap_on_click ? "leap at":"slash at"] enemies!" + to_chat(src, "You will now [leap_on_click ? "leap at":"slash at"] enemies!") else return @@ -65,14 +65,14 @@ /mob/living/carbon/alien/humanoid/hunter/proc/leap_at(var/atom/A) if(pounce_cooldown) - src << "You are too fatigued to pounce right now!" + to_chat(src, "You are too fatigued to pounce right now!") return if(leaping) //Leap while you leap, so you can leap while you leap return if(!has_gravity(src) || !has_gravity(A)) - src << "It is unsafe to leap without gravity!" + to_chat(src, "It is unsafe to leap without gravity!") //It's also extremely buggy visually, so it's balance+bugfix return if(lying) diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm index 342c8a530d3..eb2ae210e71 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm @@ -76,7 +76,7 @@ if(powerc(250)) adjustToxLoss(-250) - src << "\green You begin to evolve!" + to_chat(src, "\green You begin to evolve!") for(var/mob/O in viewers(src, null)) O.show_message(text("[src] begins to twist and contort!"), 1) var/mob/living/carbon/alien/humanoid/sentinel/praetorian/new_xeno = new(loc) diff --git a/code/modules/mob/living/carbon/alien/humanoid/emote.dm b/code/modules/mob/living/carbon/alien/humanoid/emote.dm index a80a0d5892c..caf3cc4e5ad 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/emote.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/emote.dm @@ -105,7 +105,7 @@ message = "\The [src] does a flip!" src.SpinAnimation(5,1) if("help") - src << "burp, flip, deathgasp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roar, roll, scratch,\nscretch, shake, sign-#, sit, sulk, sway, tail, twitch, whimper" + to_chat(src, "burp, flip, deathgasp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roar, roll, scratch,\nscretch, shake, sign-#, sit, sulk, sway, tail, twitch, whimper") if(!stat) if (act == "roar") diff --git a/code/modules/mob/living/carbon/alien/humanoid/empress.dm b/code/modules/mob/living/carbon/alien/humanoid/empress.dm index 11cf3c0c4d6..d4716aafccb 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/empress.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/empress.dm @@ -82,7 +82,7 @@ set category = "Alien" if(locate(/obj/structure/alien/egg) in get_turf(src)) - src << "There's already an egg here." + to_chat(src, "There's already an egg here.") return if(powerc(250,1))//Can't plant eggs on spess tiles. That's silly. diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm index b399bb21731..c50e4603e41 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm @@ -113,7 +113,7 @@ /mob/living/carbon/alien/humanoid/attack_slime(mob/living/carbon/slime/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if(M.Victim) return // can't attack while eating! @@ -184,11 +184,11 @@ /mob/living/carbon/alien/humanoid/attack_hand(mob/living/carbon/human/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return if(..()) //to allow surgery to return properly. @@ -252,11 +252,11 @@ In all, this is a lot like the monkey code. /N /mob/living/carbon/alien/humanoid/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return ..() @@ -282,7 +282,7 @@ In all, this is a lot like the monkey code. /N adjustBruteLoss(damage) updatehealth() else - M << "[name] is too injured for that." + to_chat(M, "[name] is too injured for that.") return @@ -304,7 +304,7 @@ In all, this is a lot like the monkey code. /N adjustBruteLoss(damage) updatehealth() else - L << "[name] is too injured for that." + to_chat(L, "[name] is too injured for that.") return diff --git a/code/modules/mob/living/carbon/alien/humanoid/life.dm b/code/modules/mob/living/carbon/alien/humanoid/life.dm index 2c79a007fa8..b41d5a9705d 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/life.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/life.dm @@ -17,7 +17,7 @@ /mob/living/carbon/alien/humanoid/handle_disabilities() if (disabilities & EPILEPSY) if ((prob(1) && paralysis < 10)) - src << "You have a seizure!" + to_chat(src, "You have a seizure!") Paralyse(10) if (disabilities & COUGHING) if ((prob(5) && paralysis <= 1)) diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm index 188d485d83f..5b2e19f011d 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm @@ -63,7 +63,7 @@ set desc = "Lay an egg to produce huggers to impregnate prey with." set category = "Alien" if(locate(/obj/structure/alien/egg) in get_turf(src)) - src << "There's already an egg here." + to_chat(src, "There's already an egg here.") return if(powerc(75,1))//Can't plant eggs on spess tiles. That's silly. @@ -111,7 +111,7 @@ if(no_queen) adjustToxLoss(-1000) - src << "You begin to evolve!" + to_chat(src, "You begin to evolve!") for(var/mob/O in viewers(src, null)) O.show_message(text("[src] begins to twist and contort!"), 1) var/mob/living/carbon/alien/humanoid/empress/new_xeno = new(loc) @@ -122,7 +122,7 @@ new_xeno.mind.name = new_xeno.name qdel(src) else - src << "We already have an alive empress." + to_chat(src, "We already have an alive empress.") return */ \ No newline at end of file diff --git a/code/modules/mob/living/carbon/alien/larva/emote.dm b/code/modules/mob/living/carbon/alien/larva/emote.dm index 88437be1392..b617a1fc883 100644 --- a/code/modules/mob/living/carbon/alien/larva/emote.dm +++ b/code/modules/mob/living/carbon/alien/larva/emote.dm @@ -15,7 +15,7 @@ return if (src.client) if (client.prefs.muted & MUTE_IC) - src << "\red You cannot send IC messages (muted)." + to_chat(src, "\red You cannot send IC messages (muted).") return if (src.client.handle_spam_prevention(message,MUTE_IC)) return @@ -110,9 +110,9 @@ message = text("[] collapses!", src) m_type = 2 if("help") - src << "burp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roll, scratch,\nscretch, shake, sign-#, sulk, sway, tail, twitch, whimper" + to_chat(src, "burp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roll, scratch,\nscretch, shake, sign-#, sulk, sway, tail, twitch, whimper") else - src << text("Invalid Emote: []", act) + to_chat(src, text("Invalid Emote: []", act)) if ((message && src.stat == 0)) log_emote("[name]/[key] : [message]") if (m_type & 1) diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm index 195e965dadf..a513ab76a90 100644 --- a/code/modules/mob/living/carbon/alien/larva/larva.dm +++ b/code/modules/mob/living/carbon/alien/larva/larva.dm @@ -38,7 +38,7 @@ var/mob/tmob = AM if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations)) if(prob(70)) - src << "\red You fail to push [tmob]'s fat ass out of the way." + to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.") now_pushing = 0 return if(!(tmob.status_flags & CANPUSH)) @@ -124,7 +124,7 @@ /mob/living/carbon/alien/larva/attack_slime(mob/living/carbon/slime/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if(M.Victim) @@ -149,11 +149,11 @@ /mob/living/carbon/alien/larva/attack_hand(mob/living/carbon/human/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return ..() @@ -195,11 +195,11 @@ /mob/living/carbon/alien/larva/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return ..() @@ -224,7 +224,7 @@ adjustBruteLoss(damage) updatehealth() else - M << "[name] is too injured for that." + to_chat(M, "[name] is too injured for that.") return /mob/living/carbon/alien/larva/restrained() diff --git a/code/modules/mob/living/carbon/alien/larva/powers.dm b/code/modules/mob/living/carbon/alien/larva/powers.dm index a8cb230f9e7..44351eb792a 100644 --- a/code/modules/mob/living/carbon/alien/larva/powers.dm +++ b/code/modules/mob/living/carbon/alien/larva/powers.dm @@ -9,16 +9,16 @@ if (layer != TURF_LAYER+0.2) layer = TURF_LAYER+0.2 - src << text("You are now hiding.") + to_chat(src, text("You are now hiding.")) for(var/mob/O in oviewers(src, null)) if ((O.client && !( O.blinded ))) - O << text("[] scurries to the ground!", src) + to_chat(O, text("[] scurries to the ground!", src)) else layer = MOB_LAYER - src << text("\green You have stopped hiding.") + to_chat(src, text("\green You have stopped hiding.")) for(var/mob/O in oviewers(src, null)) if ((O.client && !( O.blinded ))) - O << text("[] slowly peaks up from the ground...", src) + to_chat(O, text("[] slowly peaks up from the ground...", src)) /mob/living/carbon/alien/larva/verb/evolve() set name = "Evolve" @@ -29,15 +29,15 @@ return if(handcuffed || legcuffed) - src << "\red You cannot evolve when you are cuffed." + to_chat(src, "\red You cannot evolve when you are cuffed.") if(amount_grown >= max_grown) //TODO ~Carn //green is impossible to read, so i made these blue and changed the formatting slightly - src << "\blue You are growing into a beautiful alien! It is time to choose a caste." - src << "\blue There are three to choose from:" - src << "Hunters \blue are strong and agile, able to hunt away from the hive and rapidly move through ventilation shafts. Hunters generate plasma slowly and have low reserves." - src << "Sentinels \blue are tasked with protecting the hive and are deadly up close and at a range. They are not as physically imposing nor fast as the hunters." - src << "Drones \blue are the working class, offering the largest plasma storage and generation. They are the only caste which may evolve again, turning into the dreaded alien queen." + to_chat(src, "\blue You are growing into a beautiful alien! It is time to choose a caste.") + to_chat(src, "\blue There are three to choose from:") + to_chat(src, "Hunters \blue are strong and agile, able to hunt away from the hive and rapidly move through ventilation shafts. Hunters generate plasma slowly and have low reserves.") + to_chat(src, "Sentinels \blue are tasked with protecting the hive and are deadly up close and at a range. They are not as physically imposing nor fast as the hunters.") + to_chat(src, "Drones \blue are the working class, offering the largest plasma storage and generation. They are the only caste which may evolve again, turning into the dreaded alien queen.") var/alien_caste = alert(src, "Please choose which alien caste you shall belong to.",,"Hunter","Sentinel","Drone") var/mob/living/carbon/alien/humanoid/new_xeno @@ -56,5 +56,5 @@ qdel(src) return else - src << "You are not fully grown." + to_chat(src, "You are not fully grown.") return diff --git a/code/modules/mob/living/carbon/alien/life.dm b/code/modules/mob/living/carbon/alien/life.dm index a3662187f8b..93bf633093f 100644 --- a/code/modules/mob/living/carbon/alien/life.dm +++ b/code/modules/mob/living/carbon/alien/life.dm @@ -33,7 +33,7 @@ /mob/living/carbon/alien/handle_breath_temperature(datum/gas_mixture/breath) if(breath.temperature > (T0C + 66) && !(RESIST_COLD in mutations)) if(prob(20)) - src << "You feel a searing heat in your lungs!" + to_chat(src, "You feel a searing heat in your lungs!") fire_alert = max(fire_alert, 1) else fire_alert = 0 diff --git a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm index f07cf2cf3e6..151ed93e3ef 100644 --- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm +++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm @@ -11,9 +11,9 @@ /obj/item/organ/internal/body_egg/alien_embryo/on_find(mob/living/finder) ..() if(stage < 4) - finder << "It's small and weak, barely the size of a fetus." + to_chat(finder, "It's small and weak, barely the size of a fetus.") else - finder << "It's grown quite large, and writhes slightly as you look at it." + to_chat(finder, "It's grown quite large, and writhes slightly as you look at it.") if(prob(10)) AttemptGrow(0) @@ -30,24 +30,24 @@ if(prob(2)) owner.emote("cough") if(prob(2)) - owner << "Your throat feels sore." + to_chat(owner, "Your throat feels sore.") if(prob(2)) - owner << "Mucous runs down the back of your throat." + to_chat(owner, "Mucous runs down the back of your throat.") if(4) if(prob(2)) owner.emote("sneeze") if(prob(2)) owner.emote("cough") if(prob(4)) - owner << "Your muscles ache." + to_chat(owner, "Your muscles ache.") if(prob(20)) owner.take_organ_damage(1) if(prob(4)) - owner << "Your stomach hurts." + to_chat(owner, "Your stomach hurts.") if(prob(20)) owner.adjustToxLoss(1) if(5) - owner << "You feel something tearing its way out of your stomach..." + to_chat(owner, "You feel something tearing its way out of your stomach...") owner.adjustToxLoss(10) /obj/item/organ/internal/body_egg/alien_embryo/egg_process() @@ -98,7 +98,8 @@ new_xeno.mind.name = new_xeno.name new_xeno.mind.assigned_role = "MODE" new_xeno.mind.special_role = "Alien" - new_xeno << sound('sound/voice/hiss5.ogg',0,0,0,100) //To get the player's attention + to_chat(new_xeno, sound('sound/voice/hiss5.ogg',0,0,0,100))//To get the player's attention + if(gib_on_success) owner.gib() else diff --git a/code/modules/mob/living/carbon/alien/special/facehugger.dm b/code/modules/mob/living/carbon/alien/special/facehugger.dm index 6f958533515..f0935c520ce 100644 --- a/code/modules/mob/living/carbon/alien/special/facehugger.dm +++ b/code/modules/mob/living/carbon/alien/special/facehugger.dm @@ -49,11 +49,11 @@ var/const/MAX_ACTIVE_TIME = 400 return switch(stat) if(DEAD,UNCONSCIOUS) - user << "[src] is not moving." + to_chat(user, "[src] is not moving.") if(CONSCIOUS) - user << "[src] seems to be active!" + to_chat(user, "[src] seems to be active!") if (sterile) - user << "It looks like the proboscis has been removed." + to_chat(user, "It looks like the proboscis has been removed.") /obj/item/clothing/mask/facehugger/attackby(obj/item/O,mob/m, params) if(O.force) diff --git a/code/modules/mob/living/carbon/brain/MMI.dm b/code/modules/mob/living/carbon/brain/MMI.dm index 7aa4cd44554..6ad6a672b43 100644 --- a/code/modules/mob/living/carbon/brain/MMI.dm +++ b/code/modules/mob/living/carbon/brain/MMI.dm @@ -19,15 +19,15 @@ /obj/item/device/mmi/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/organ/internal/brain/crystal )) - user << " This brain is too malformed to be able to use with the [src]." + to_chat(user, " This brain is too malformed to be able to use with the [src].") return if(istype(O,/obj/item/organ/internal/brain) && !brainmob) //Time to stick a brain in it --NEO var/obj/item/organ/internal/brain/B = O if(!B.brainmob) - user << "You aren't sure where this brain came from, but you're pretty sure it's a useless brain." + to_chat(user, "You aren't sure where this brain came from, but you're pretty sure it's a useless brain.") return if(held_brain) - user << "Somehow, this MMI still has a brain in it. Report this to the bug tracker." + to_chat(user, "Somehow, this MMI still has a brain in it. Report this to the bug tracker.") log_to_dd("[user] tried to stick a [O] into [src] in [get_area(src)], but the held brain variable wasn't cleared") return for(var/mob/V in viewers(src, null)) @@ -67,9 +67,9 @@ /obj/item/device/mmi/attack_self(mob/user as mob) if(!brainmob) - user << "You upend the MMI, but there's nothing in it." + to_chat(user, "You upend the MMI, but there's nothing in it.") else - user << "You unlock and upend the MMI, spilling the brain onto the floor." + to_chat(user, "You unlock and upend the MMI, spilling the brain onto the floor.") dropbrain(get_turf(user)) icon = 'icons/obj/assemblies.dmi' icon_state = "mmi_empty" @@ -101,7 +101,7 @@ /obj/item/device/mmi/proc/dropbrain(var/turf/dropspot) if(isnull(held_brain)) log_to_dd("[src] at [loc] attempted to drop brain without a contained brain in [get_area(src)].") - brainmob << "Your MMI did not contain a brain! We'll make a new one for you, but you'd best report this to the bugtracker!" + to_chat(brainmob, "Your MMI did not contain a brain! We'll make a new one for you, but you'd best report this to the bugtracker!") held_brain = new(dropspot) // Let's not ruin someone's round because of something dumb -- Crazylemon held_brain.dna = brainmob.dna.Clone() held_brain.name = "\the [brainmob.name]'s [initial(held_brain.name)]" @@ -137,10 +137,10 @@ set popup_menu = 0 if(brainmob.stat) - brainmob << "Can't do that while incapacitated or dead." + to_chat(brainmob, "Can't do that while incapacitated or dead.") radio.listening = radio.listening==1 ? 0 : 1 - brainmob << "Radio is [radio.listening==1 ? "now" : "no longer"] receiving broadcast." + to_chat(brainmob, "Radio is [radio.listening==1 ? "now" : "no longer"] receiving broadcast.") /obj/item/device/mmi/emp_act(severity) if(!brainmob) diff --git a/code/modules/mob/living/carbon/brain/brain_item.dm b/code/modules/mob/living/carbon/brain/brain_item.dm index 64964636d16..5fbfd6c5012 100644 --- a/code/modules/mob/living/carbon/brain/brain_item.dm +++ b/code/modules/mob/living/carbon/brain/brain_item.dm @@ -48,15 +48,15 @@ if(H.mind) H.mind.transfer_to(brainmob) - brainmob << "You feel slightly disoriented. That's normal when you're just a [initial(src.name)]." + to_chat(brainmob, "You feel slightly disoriented. That's normal when you're just a [initial(src.name)].") callHook("debrain", list(brainmob)) /obj/item/organ/internal/brain/examine(mob/user) // -- TLE ..(user) if(brainmob && brainmob.client)//if thar be a brain inside... the brain. - user << "You can feel the small spark of life still left in this one." + to_chat(user, "You can feel the small spark of life still left in this one.") else - user << "This one seems particularly lifeless. Perhaps it will regain some of its luster later.." + to_chat(user, "This one seems particularly lifeless. Perhaps it will regain some of its luster later..") /obj/item/organ/internal/brain/remove(var/mob/living/user,special = 0) diff --git a/code/modules/mob/living/carbon/brain/emote.dm b/code/modules/mob/living/carbon/brain/emote.dm index 0441eb00ac4..fd2a4879c9d 100644 --- a/code/modules/mob/living/carbon/brain/emote.dm +++ b/code/modules/mob/living/carbon/brain/emote.dm @@ -14,15 +14,15 @@ switch(act) if ("alarm") - src << "You sound an alarm." + to_chat(src, "You sound an alarm.") message = "\The [src] sounds an alarm." m_type = 2 if ("alert") - src << "You let out a distressed noise." + to_chat(src, "You let out a distressed noise.") message = "\The [src] lets out a distressed noise." m_type = 2 if ("notice") - src << "You play a loud tone." + to_chat(src, "You play a loud tone.") message = "\The [src] plays a loud tone." m_type = 2 if ("flash") @@ -32,19 +32,19 @@ message = "\The [src] blinks." m_type = 1 if ("whistle") - src << "You whistle." + to_chat(src, "You whistle.") message = "\The [src] whistles." m_type = 2 if ("beep") - src << "You beep." + to_chat(src, "You beep.") message = "\The [src] beeps." m_type = 2 if ("boop") - src << "You boop." + to_chat(src, "You boop.") message = "\The [src] boops." m_type = 2 if ("help") - src << "alarm, alert, notice, flash,blink, whistle, beep, boop" + to_chat(src, "alarm, alert, notice, flash,blink, whistle, beep, boop") if(message && !stat) ..(act, m_type, message) \ No newline at end of file diff --git a/code/modules/mob/living/carbon/brain/life.dm b/code/modules/mob/living/carbon/brain/life.dm index ad91f6c152e..857546732d7 100644 --- a/code/modules/mob/living/carbon/brain/life.dm +++ b/code/modules/mob/living/carbon/brain/life.dm @@ -5,9 +5,9 @@ adjustToxLoss(3) updatehealth() if(!container) - src << "You feel weak." + to_chat(src, "You feel weak.") else - src << "STATUS: CRITICAL AMOUNTS OF RADIATION DETECTED." + to_chat(src, "STATUS: CRITICAL AMOUNTS OF RADIATION DETECTED.") switch(radiation) if(0 to 49) @@ -22,9 +22,9 @@ if(prob(5)) radiation -= 5 if(!container) - src << "You feel weak." + to_chat(src, "You feel weak.") else - src << "STATUS: DANGEROUS AMOUNTS OF RADIATION DETECTED." + to_chat(src, "STATUS: DANGEROUS AMOUNTS OF RADIATION DETECTED.") updatehealth() if(75 to 100) @@ -93,4 +93,4 @@ sight &= ~SEE_OBJS see_in_dark = 2 see_invisible = SEE_INVISIBLE_LIVING - handle_hud_icons_health() + handle_hud_icons_health() diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm index aa589713cb9..07251303a12 100644 --- a/code/modules/mob/living/carbon/brain/posibrain.dm +++ b/code/modules/mob/living/carbon/brain/posibrain.dm @@ -18,7 +18,7 @@ /obj/item/device/mmi/posibrain/attack_self(mob/user as mob) if(brainmob && !brainmob.key && searching == 0) //Start the process of searching for a new user. - user << "\blue You carefully locate the manual activation switch and start the positronic brain's boot process." + to_chat(user, "\blue You carefully locate the manual activation switch and start the positronic brain's boot process.") icon_state = "posibrain-searching" ghost_volunteers.Cut() src.searching = 1 @@ -32,21 +32,21 @@ else if(silenced) silenced = 0 - user << "You toggle the speaker to 'on', on the [src]." + to_chat(user, "You toggle the speaker to 'on', on the [src].") desc = "A cube of shining metal, four inches to a side and covered in shallow grooves. The speaker switch is set to 'on'." if(brainmob && brainmob.key) - brainmob << "Your internal speaker has been toggled to 'on'." + to_chat(brainmob, "Your internal speaker has been toggled to 'on'.") else silenced = 1 - user << "You toggle the speaker to 'off', on the [src]." + to_chat(user, "You toggle the speaker to 'off', on the [src].") desc = "A cube of shining metal, four inches to a side and covered in shallow grooves. The speaker switch is set to 'off'." if(brainmob && brainmob.key) - brainmob << "Your internal speaker has been toggled to 'off'." + to_chat(brainmob, "Your internal speaker has been toggled to 'off'.") /obj/item/device/mmi/posibrain/proc/request_player() for(var/mob/dead/observer/O in player_list) if(check_observer(O)) - O << "\A [src] has been activated. (Teleport | Sign Up)" + to_chat(O, "\A [src] has been activated. (Teleport | Sign Up)") // if(ROLE_POSIBRAIN in O.client.prefs.be_special) The Guardian implementation looks cleaner // question(O.client) @@ -86,7 +86,7 @@ brainmob.mind.assigned_role = "Positronic Brain" if(H.mind) H.mind.transfer_to(brainmob) - brainmob << "You feel slightly disoriented. That's normal when you're just a metal cube." + to_chat(brainmob, "You feel slightly disoriented. That's normal when you're just a metal cube.") icon_state = "posibrain-occupied" return @@ -95,9 +95,9 @@ src.brainmob.key = candidate.key src.name = "positronic brain ([src.brainmob.name])" - src.brainmob << "You are a positronic brain, brought into existence on [station_name()]." - src.brainmob << "As a synthetic intelligence, you answer to all crewmembers, as well as the AI." - src.brainmob << "Remember, the purpose of your existence is to serve the crew and the station. Above all else, do no harm." + to_chat(src.brainmob, "You are a positronic brain, brought into existence on [station_name()].") + to_chat(src.brainmob, "As a synthetic intelligence, you answer to all crewmembers, as well as the AI.") + to_chat(src.brainmob, "Remember, the purpose of your existence is to serve the crew and the station. Above all else, do no harm.") src.brainmob.mind.assigned_role = "Positronic Brain" var/turf/T = get_turf_or_move(src.loc) @@ -123,25 +123,25 @@ /obj/item/device/mmi/posibrain/proc/volunteer(var/mob/dead/observer/O) if(!searching) - O << "Not looking for a ghost, yet." + to_chat(O, "Not looking for a ghost, yet.") return if(!istype(O)) - O << "\red Error." + to_chat(O, "\red Error.") return if(O in ghost_volunteers) - O << "\blue Removed from registration list." + to_chat(O, "\blue Removed from registration list.") ghost_volunteers.Remove(O) return if(!check_observer(O)) - O << "\red You cannot be \a [src]." + to_chat(O, "\red You cannot be \a [src].") return if(O.has_enabled_antagHUD == 1 && config.antag_hud_restricted) - O << "\red Upon using the antagHUD you forfeited the ability to join the round." + to_chat(O, "\red Upon using the antagHUD you forfeited the ability to join the round.") return if(jobban_isbanned(O, "Cyborg") || jobban_isbanned(O,"nonhumandept")) - O << "\red You are job banned from this role." + to_chat(O, "\red You are job banned from this role.") return - O.<< "\blue You've been added to the list of ghosts that may become this [src]. Click again to unvolunteer." + to_chat(O., "\blue You've been added to the list of ghosts that may become this [src]. Click again to unvolunteer.") ghost_volunteers.Add(O) @@ -161,7 +161,7 @@ else msg += "It appears to be completely inactive.\n" msg += "*---------*" - user << msg + to_chat(user, msg) /obj/item/device/mmi/posibrain/emp_act(severity) if(!src.brainmob) diff --git a/code/modules/mob/living/carbon/brain/say.dm b/code/modules/mob/living/carbon/brain/say.dm index 367363ed2a1..03d6906b876 100644 --- a/code/modules/mob/living/carbon/brain/say.dm +++ b/code/modules/mob/living/carbon/brain/say.dm @@ -9,7 +9,7 @@ if(container && istype(container, /obj/item/device/mmi/posibrain)) var/obj/item/device/mmi/posibrain/P = container if(P && P.silenced) - usr << "You cannot speak, as your internal speaker has been toggled to 'off'." + to_chat(usr, "You cannot speak, as your internal speaker has been toggled to 'off'.") return if(prob(emp_damage*4)) if(prob(10))//10% chane to drop the message entirely diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 9c780f92bce..ac4bb584528 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -95,7 +95,7 @@ /mob/living/carbon/proc/vomit(var/lost_nutrition = 10, var/blood = 0, var/stun = 1, var/distance = 0, var/message = 1) if(src.is_muzzled()) if(message) - src << "The muzzle prevents you from vomiting!" + to_chat(src, "The muzzle prevents you from vomiting!") return 0 if(stun) Stun(4) @@ -193,7 +193,7 @@ if(item_in_hand) //this segment checks if the item in your hand is twohanded. if(istype(item_in_hand,/obj/item/weapon/twohanded)) if(item_in_hand:wielded == 1) - usr << "Your other hand is too busy holding the [item_in_hand.name]" + to_chat(usr, "Your other hand is too busy holding the [item_in_hand.name]") return src.hand = !( src.hand ) if(hud_used.l_hand_hud_object && hud_used.r_hand_hud_object) @@ -260,9 +260,9 @@ src.show_message(text("\t []My [] is [].",status=="OK"?"\blue ":"\red ",org.name,status),1) if(staminaloss) if(staminaloss > 30) - src << "You're completely exhausted." + to_chat(src, "You're completely exhausted.") else - src << "You feel fatigued." + to_chat(src, "You feel fatigued.") if((SKELETON in H.mutations) && (!H.w_uniform) && (!H.wear_suit)) H.play_xylophone() else @@ -324,16 +324,16 @@ switch(damage) if(1) - src << "Your eyes sting a little." + to_chat(src, "Your eyes sting a little.") if(prob(40)) //waiting on carbon organs E.damage += 1 if(2) - src << "Your eyes burn." + to_chat(src, "Your eyes burn.") E.damage += rand(2, 4) else - src << "Your eyes itch and burn severely!" + to_chat(src, "Your eyes itch and burn severely!") E.damage += rand(12, 16) if(E.damage > E.min_bruised_damage) @@ -342,20 +342,20 @@ if(E.damage > (E.min_bruised_damage + E.min_broken_damage) / 2) if(!(E.status & ORGAN_ROBOT)) - src << "Your eyes start to burn badly!" + to_chat(src, "Your eyes start to burn badly!") else //snowflake conditions piss me off for the record - src << "The flash blinds you!" + to_chat(src, "The flash blinds you!") else if(E.damage >= E.min_broken_damage) - src << "You can't see anything!" + to_chat(src, "You can't see anything!") else - src << "Your eyes are really starting to hurt. This can't be good for you!" + to_chat(src, "Your eyes are really starting to hurt. This can't be good for you!") return 1 else if(damage == 0) // just enough protection if(prob(20)) - src << "Something bright flashes in the corner of your vision!" + to_chat(src, "Something bright flashes in the corner of your vision!") /mob/living/carbon/proc/tintcheck() @@ -386,15 +386,15 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, if(!ventcrawlerlocal) return if(stat) - src << "You must be conscious to do this!" + to_chat(src, "You must be conscious to do this!") return if(lying) - src << "You can't vent crawl while you're stunned!" + to_chat(src, "You can't vent crawl while you're stunned!") return if(buckled_mob) - src << "You can't vent crawl with [buckled_mob] on you!" + to_chat(src, "You can't vent crawl with [buckled_mob] on you!") return var/obj/machinery/atmospherics/unary/vent_found @@ -438,7 +438,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, failed++ if(failed) - src << "You can't crawl around in the ventilation ducts with items!" + to_chat(src, "You can't crawl around in the ventilation ducts with items!") return visible_message("[src] scrambles into the ventilation ducts!", "You climb into the ventilation system.") @@ -446,7 +446,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, add_ventcrawl(vent_found) else - src << "This ventilation duct is not connected to anything!" + to_chat(src, "This ventilation duct is not connected to anything!") /mob/living/proc/add_ventcrawl(obj/machinery/atmospherics/starting_machine) @@ -659,7 +659,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, if(!(head && head.flags & AIRTIGHT)) no_mask = 1 if(no_mask) - usr << "[src] is not wearing a suitable mask or helmet!" + to_chat(usr, "[src] is not wearing a suitable mask or helmet!") return if(do_mob(usr, src, POCKET_STRIP_DELAY)) @@ -673,7 +673,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, if(!(head && head.flags & AIRTIGHT)) no_mask2 = 1 if(no_mask2) - usr << "[src] is not wearing a suitable mask or helmet!" + to_chat(usr, "[src] is not wearing a suitable mask or helmet!") return internal = ITEM if(internals) @@ -800,7 +800,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, for(var/t = 0, t<=tilesSlipped, t++) spawn (t) step(src, src.dir) stop_pulling() - src << "You slipped on the [description]!" + to_chat(src, "You slipped on the [description]!") playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3) if (stun) Stun(stun) @@ -831,18 +831,18 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, /mob/living/carbon/proc/selfFeed(var/obj/item/weapon/reagent_containers/food/toEat, fullness) if(istype(toEat, /obj/item/weapon/reagent_containers/food/pill)) - src << "You [toEat.apply_method] [toEat]." + to_chat(src, "You [toEat.apply_method] [toEat].") else if (fullness <= 50) - src << "You hungrily chew out a piece of [toEat] and gobble it!" + to_chat(src, "You hungrily chew out a piece of [toEat] and gobble it!") else if (fullness > 50 && fullness <= 150) - src << "You hungrily begin to eat [toEat]." + to_chat(src, "You hungrily begin to eat [toEat].") else if (fullness > 150 && fullness <= 350) - src << "You take a bite of [toEat]." + to_chat(src, "You take a bite of [toEat].") else if (fullness > 350 && fullness <= 550) - src << "You unwillingly chew a bit of [toEat]." + to_chat(src, "You unwillingly chew a bit of [toEat].") else if (fullness > (550 * (1 + overeatduration / 2000))) // The more you eat - the more you can eat - src << "You cannot force any more of [toEat] to go down your throat." + to_chat(src, "You cannot force any more of [toEat] to go down your throat.") return 0 return 1 diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index 796f2997cc4..13e8fe153ea 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -3,16 +3,17 @@ set name = "Give" if(!iscarbon(target)) //something is bypassing the give arguments, no clue what, adding a sanity check JIC - usr << "Wait a second... \the [target] HAS NO HANDS! AHH!" //cheesy messages ftw + to_chat(usr, "Wait a second... \the [target] HAS NO HANDS! AHH!")//cheesy messages ftw + return if(target.stat == 2 || usr.stat == 2|| target.client == null) return var/obj/item/I if(!usr.hand && usr.r_hand == null) - usr << " You don't have anything in your right hand to give to [target.name]" + to_chat(usr, " You don't have anything in your right hand to give to [target.name]") return if(usr.hand && usr.l_hand == null) - usr << " You don't have anything in your left hand to give to [target.name]" + to_chat(usr, " You don't have anything in your left hand to give to [target.name]") return if(usr.hand) I = usr.l_hand @@ -21,7 +22,7 @@ if(!I) return if((I.flags & NODROP) || (I.flags & ABSTRACT)) - usr << "That's not exactly something you can give." + to_chat(usr, "That's not exactly something you can give.") return if(target.r_hand == null || target.l_hand == null) switch(alert(target,"[usr] wants to give you \a [I]?",,"Yes","No")) @@ -29,16 +30,16 @@ if(!I) return if(!Adjacent(usr)) - usr << " You need to stay in reaching distance while giving an object." - target << " [usr.name] moved too far away." + to_chat(usr, " You need to stay in reaching distance while giving an object.") + to_chat(target, " [usr.name] moved too far away.") return if((usr.hand && usr.l_hand != I) || (!usr.hand && usr.r_hand != I)) - usr << " You need to keep the item in your active hand." - target << " [usr.name] seem to have given up on giving \the [I.name] to you." + to_chat(usr, " You need to keep the item in your active hand.") + to_chat(target, " [usr.name] seem to have given up on giving \the [I.name] to you.") return if(target.r_hand != null && target.l_hand != null) - target << " Your hands are full." - usr << " Their hands are full." + to_chat(target, " Your hands are full.") + to_chat(usr, " Their hands are full.") return else usr.drop_item() @@ -57,4 +58,4 @@ if("No") target.visible_message(" [usr.name] tried to hand [I.name] to [target.name] but [target.name] didn't want it.") else - usr << " [target.name]'s hands are full." \ No newline at end of file + to_chat(usr, " [target.name]'s hands are full.") diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 17d13a01c83..657d40983de 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -753,7 +753,7 @@ right_hand_good = 1 if (!left_hand_good && !right_hand_good) - usr << "You need at least one hand in good working order to snap your fingers." + to_chat(usr, "You need at least one hand in good working order to snap your fingers.") return message = "[src] snaps \his fingers." @@ -769,8 +769,8 @@ return // playsound(src.loc, 'sound/effects/fart.ogg', 50, 1, -3) //Admins still vote no to fun if(locate(/obj/item/weapon/storage/bible) in get_turf(src)) - viewers(src) << "[src] farts on the Bible!" - viewers(src) << "A mysterious force smites [src]!" + to_chat(viewers(src), "[src] farts on the Bible!") + to_chat(viewers(src), "A mysterious force smites [src]!") var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(3, 1, src) s.start() @@ -810,10 +810,10 @@ emotelist += "\nMachine specific emotes :- beep(s)-(none)/mob, buzz(es)-none/mob, no-(none)/mob, ping(s)-(none)/mob, yes-(none)/mob" else if(species.name == "Slime People") emotelist += "\nSlime people specific emotes :- squish(es)-(none)/mob" - src << emotelist + to_chat(src, emotelist) else - src << "\blue Unusable emote '[act]'. Say *help for a list." + to_chat(src, "\blue Unusable emote '[act]'. Say *help for a list.") diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 57261782385..1eb906d5ec1 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -215,9 +215,9 @@ spawn(15) if(distance <= 1 && user.stat != 1) if(pulse == PULSE_NONE) - user << "[t_He] has no pulse[src.client ? "" : " and [t_his] soul has departed"]..." + to_chat(user, "[t_He] has no pulse[src.client ? "" : " and [t_his] soul has departed"]...") else - user << "[t_He] has a pulse!" + to_chat(user, "[t_He] has a pulse!") msg += "" if(fire_stacks > 0) @@ -484,7 +484,7 @@ pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\n[t_He] is [pose]" - user << msg + to_chat(user, msg) //Helper procedure. Called by /mob/living/carbon/human/examine() and /mob/living/carbon/human/Topic() to determine HUD access to security and medical records. /proc/hasHUD(mob/M as mob, hudtype) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 9fb9f12d264..5d27605b13c 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -168,7 +168,7 @@ if(tmob.pinned.len || (M.pulling == tmob && (tmob.restrained() && !M.restrained()) && M.stat == CONSCIOUS)) if(!(world.time % 5)) //tmob is pinned to wall, or is restrained and pulled by a concious unrestrained human - src << "[tmob] is restrained, you cannot push past." + to_chat(src, "[tmob] is restrained, you cannot push past.") now_pushing = 0 return 0 @@ -179,7 +179,7 @@ if(tmob.pulling == M && (M.restrained() && !tmob.restrained()) && tmob.stat == CONSCIOUS) if(!(world.time % 5)) - src << "[tmob] is restraining [M], you cannot push past." + to_chat(src, "[tmob] is restraining [M], you cannot push past.") now_pushing = 0 return 0 @@ -205,7 +205,7 @@ if(ishuman(tmob) && (FAT in tmob.mutations)) if(prob(40) && !(FAT in src.mutations)) - src << "You fail to push [tmob]'s fat ass out of the way." + to_chat(src, "You fail to push [tmob]'s fat ass out of the way.") now_pushing = 0 return @@ -755,7 +755,7 @@ if(shock_damage * siemens_coeff >= 1 && prob(25)) heart_attack = 0 if(stat == CONSCIOUS) - src << "You feel your heart beating again!" + to_chat(src, "You feel your heart beating again!") . = ..() @@ -771,7 +771,7 @@ if(href_list["item"]) var/slot = text2num(href_list["item"]) if(slot in check_obscured_slots()) - usr << "You can't reach that! Something is covering it." + to_chat(usr, "You can't reach that! Something is covering it.") return if(href_list["pockets"]) @@ -783,10 +783,10 @@ var/delay_denominator = 1 if(pocket_item && !(pocket_item.flags&ABSTRACT)) if(pocket_item.flags & NODROP) - usr << "You try to empty [src]'s [pocket_side] pocket, it seems to be stuck!" - usr << "You try to empty [src]'s [pocket_side] pocket." + to_chat(usr, "You try to empty [src]'s [pocket_side] pocket, it seems to be stuck!") + to_chat(usr, "You try to empty [src]'s [pocket_side] pocket.") else if(place_item && place_item.mob_can_equip(src, pocket_id, 1) && !(place_item.flags&ABSTRACT)) - usr << "You try to place [place_item] into [src]'s [pocket_side] pocket." + to_chat(usr, "You try to place [place_item] into [src]'s [pocket_side] pocket.") delay_denominator = 4 else return @@ -808,7 +808,7 @@ else // Display a warning if the user mocks up if they don't have pickpocket gloves. if(!thief_mode) - src << "You feel your [pocket_side] pocket being fumbled with!" + to_chat(src, "You feel your [pocket_side] pocket being fumbled with!") if(href_list["set_sensor"]) if(istype(w_uniform, /obj/item/clothing/under)) @@ -868,7 +868,7 @@ sec_hud_set_security_status() if(!modified) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["secrecord"]) if(hasHUD(usr,"security")) @@ -888,17 +888,17 @@ for (var/datum/data/record/R in data_core.security) if (R.fields["id"] == E.fields["id"]) if(hasHUD(usr,"security")) - usr << "Name: [R.fields["name"]] Criminal Status: [R.fields["criminal"]]" - usr << "Minor Crimes: [R.fields["mi_crim"]]" - usr << "Details: [R.fields["mi_crim_d"]]" - usr << "Major Crimes: [R.fields["ma_crim"]]" - usr << "Details: [R.fields["ma_crim_d"]]" - usr << "Notes: [R.fields["notes"]]" - usr << "\[View Comment Log\]" + to_chat(usr, "Name: [R.fields["name"]] Criminal Status: [R.fields["criminal"]]") + to_chat(usr, "Minor Crimes: [R.fields["mi_crim"]]") + to_chat(usr, "Details: [R.fields["mi_crim_d"]]") + to_chat(usr, "Major Crimes: [R.fields["ma_crim"]]") + to_chat(usr, "Details: [R.fields["ma_crim_d"]]") + to_chat(usr, "Notes: [R.fields["notes"]]") + to_chat(usr, "\[View Comment Log\]") read = 1 if(!read) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["secrecordComment"]) if(hasHUD(usr,"security")) @@ -921,14 +921,14 @@ read = 1 var/counter = 1 while(R.fields[text("com_[]", counter)]) - usr << text("[]", R.fields[text("com_[]", counter)]) + to_chat(usr, text("[]", R.fields[text("com_[]", counter)])) counter++ if (counter == 1) - usr << "No comment found" - usr << "\[Add comment\]" + to_chat(usr, "No comment found") + to_chat(usr, "\[Add comment\]") if(!read) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["secrecordadd"]) if(hasHUD(usr,"security")) @@ -998,7 +998,7 @@ sec_hud_set_security_status() if(!modified) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["medrecord"]) if(hasHUD(usr,"medical")) @@ -1018,18 +1018,18 @@ for (var/datum/data/record/R in data_core.medical) if (R.fields["id"] == E.fields["id"]) if(hasHUD(usr,"medical")) - usr << "Name: [R.fields["name"]] Blood Type: [R.fields["b_type"]]" - usr << "DNA: [R.fields["b_dna"]]" - usr << "Minor Disabilities: [R.fields["mi_dis"]]" - usr << "Details: [R.fields["mi_dis_d"]]" - usr << "Major Disabilities: [R.fields["ma_dis"]]" - usr << "Details: [R.fields["ma_dis_d"]]" - usr << "Notes: [R.fields["notes"]]" - usr << "\[View Comment Log\]" + to_chat(usr, "Name: [R.fields["name"]] Blood Type: [R.fields["b_type"]]") + to_chat(usr, "DNA: [R.fields["b_dna"]]") + to_chat(usr, "Minor Disabilities: [R.fields["mi_dis"]]") + to_chat(usr, "Details: [R.fields["mi_dis_d"]]") + to_chat(usr, "Major Disabilities: [R.fields["ma_dis"]]") + to_chat(usr, "Details: [R.fields["ma_dis_d"]]") + to_chat(usr, "Notes: [R.fields["notes"]]") + to_chat(usr, "\[View Comment Log\]") read = 1 if(!read) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["medrecordComment"]) if(hasHUD(usr,"medical")) @@ -1052,14 +1052,14 @@ read = 1 var/counter = 1 while(R.fields[text("com_[]", counter)]) - usr << text("[]", R.fields[text("com_[]", counter)]) + to_chat(usr, text("[]", R.fields[text("com_[]", counter)])) counter++ if (counter == 1) - usr << "No comment found" - usr << "\[Add comment\]" + to_chat(usr, "No comment found") + to_chat(usr, "\[Add comment\]") if(!read) - usr << "\red Unable to locate a data core entry for this person." + to_chat(usr, "\red Unable to locate a data core entry for this person.") if (href_list["medrecordadd"]) if(hasHUD(usr,"medical")) @@ -1213,7 +1213,7 @@ if(!. && error_msg && user) if(!fail_msg) fail_msg = "There is no exposed flesh or thin material [target_zone == "head" ? "on their head" : "on their body"] to inject into." - user << "[fail_msg]" + to_chat(user, "[fail_msg]") /mob/living/carbon/human/proc/check_obscured_slots() var/list/obscured = list() @@ -1312,19 +1312,19 @@ if (prob(round(damage/10)*20)) germs++ if (germs == 100) - world << "Reached stage 1 in [ticks] ticks" + to_chat(world, "Reached stage 1 in [ticks] ticks") if (germs > 100) if (prob(10)) damage++ germs++ if (germs == 1000) - world << "Reached stage 2 in [ticks] ticks" + to_chat(world, "Reached stage 2 in [ticks] ticks") if (germs > 1000) damage++ germs++ if (germs == 2500) - world << "Reached stage 3 in [ticks] ticks" - world << "Mob took [tdamage] tox damage" + to_chat(world, "Reached stage 3 in [ticks] ticks") + to_chat(world, "Mob took [tdamage] tox damage") */ //returns 1 if made bloody, returns 0 otherwise @@ -1381,7 +1381,7 @@ msg ="Your movement jostles [O] in your [organ.name] painfully." if(3) msg ="[O] in your [organ.name] twists painfully as you move." - src << msg + to_chat(src, msg) organ.take_damage(rand(1,3), 0, 0) if(!(organ.status & ORGAN_ROBOT)) //There is no blood in protheses. @@ -1407,18 +1407,19 @@ "You begin counting your pulse.") if(src.pulse) - usr << "\blue [self ? "You have a" : "[src] has a"] pulse! Counting..." + to_chat(usr, "\blue [self ? "You have a" : "[src] has a"] pulse! Counting...") else - usr << "\red [src] has no pulse!" //it is REALLY UNLIKELY that a dead person would check his own pulse + to_chat(usr, "\red [src] has no pulse!")//it is REALLY UNLIKELY that a dead person would check his own pulse + return - usr << "Don't move until counting is finished." + to_chat(usr, "Don't move until counting is finished.") var/time = world.time sleep(60) if(usr.l_move_time >= time) //checks if our mob has moved during the sleep() - usr << "You moved while counting. Try again." + to_chat(usr, "You moved while counting. Try again.") else - usr << "\blue [self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)]." + to_chat(usr, "\blue [self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)].") /mob/living/carbon/human/proc/set_species(var/new_species, var/default_colour, var/delay_icon_update = 0) @@ -1526,26 +1527,26 @@ verbs -= /mob/living/carbon/human/proc/bloody_doodle if (src.gloves) - src << "Your [src.gloves] are getting in the way." + to_chat(src, "Your [src.gloves] are getting in the way.") return var/turf/simulated/T = src.loc if (!istype(T)) //to prevent doodling out of mechs and lockers - src << "You cannot reach the floor." + to_chat(src, "You cannot reach the floor.") return var/direction = input(src,"Which way?","Tile selection") as anything in list("Here","North","South","East","West") if (direction != "Here") T = get_step(T,text2dir(direction)) if (!istype(T)) - src << "You cannot doodle there." + to_chat(src, "You cannot doodle there.") return var/num_doodles = 0 for (var/obj/effect/decal/cleanable/blood/writing/W in T) num_doodles++ if (num_doodles > 4) - src << "There is no space to write on!" + to_chat(src, "There is no space to write on!") return var/max_length = bloody_hands * 30 //tweeter style @@ -1558,7 +1559,7 @@ if (length(message) > max_length) message += "-" - src << "You ran out of blood to write with!" + to_chat(src, "You ran out of blood to write with!") var/obj/effect/decal/cleanable/blood/writing/W = new(T) W.message = message @@ -1571,7 +1572,7 @@ set desc = "Change the display on your monitor or the colour of your optics." if(incapacitated()) - src << "You cannot change your monitor or optical display in your current state." + to_chat(src, "You cannot change your monitor or optical display in your current state.") return if(species.flags & ALL_RPARTS) //If they can have a fully cybernetic body... @@ -1609,7 +1610,7 @@ return if(stat || paralysis || stunned || weakened || lying || restrained() || buckled) - src << "You cannot leap in your current state." + to_chat(src, "You cannot leap in your current state.") return var/list/choices = list() @@ -1628,7 +1629,7 @@ return if(stat || paralysis || stunned || weakened || lying || restrained() || buckled) - src << "You cannot leap in your current state." + to_chat(src, "You cannot leap in your current state.") return last_special = world.time + 75 @@ -1643,7 +1644,7 @@ if(status_flags & LEAPING) status_flags &= ~LEAPING if(!src.Adjacent(T)) - src << "\red You miss!" + to_chat(src, "\red You miss!") return T.Weaken(5) @@ -1656,7 +1657,7 @@ var/use_hand = "left" if(l_hand) if(r_hand) - src << "\red You need to have one hand free to grab someone." + to_chat(src, "\red You need to have one hand free to grab someone.") return else use_hand = "right" @@ -1682,16 +1683,16 @@ return if(stat || paralysis || stunned || weakened || lying) - src << "\red You cannot do that in your current state." + to_chat(src, "\red You cannot do that in your current state.") return var/obj/item/weapon/grab/G = locate() in src if(!G || !istype(G)) - src << "\red You are not grabbing anyone." + to_chat(src, "\red You are not grabbing anyone.") return if(G.state < GRAB_AGGRESSIVE) - src << "\red You must have an aggressive grab to gut your prey!" + to_chat(src, "\red You must have an aggressive grab to gut your prey!") return last_special = world.time + 50 @@ -1796,7 +1797,7 @@ for(var/obj/item/hand in handlist) if(prob(current_size * 5) && hand.w_class >= ((11-current_size)/2) && unEquip(hand)) step_towards(hand, src) - src << "\The [S] pulls \the [hand] from your grip!" + to_chat(src, "\The [S] pulls \the [hand] from your grip!") apply_effect(current_size * 3, IRRADIATE) if(mob_negates_gravity()) return @@ -1849,26 +1850,26 @@ /mob/living/carbon/human/selfFeed(var/obj/item/weapon/reagent_containers/food/toEat, fullness) if(!check_has_mouth()) - src << "Where do you intend to put \the [toEat]? You don't have a mouth!" + to_chat(src, "Where do you intend to put \the [toEat]? You don't have a mouth!") return 0 return ..() /mob/living/carbon/human/forceFed(var/obj/item/weapon/reagent_containers/food/toEat, mob/user, fullness) if(!check_has_mouth()) if(!((istype(toEat, /obj/item/weapon/reagent_containers/food/drinks) && (get_species() == "Machine")))) - user << "Where do you intend to put \the [toEat]? \The [src] doesn't have a mouth!" + to_chat(user, "Where do you intend to put \the [toEat]? \The [src] doesn't have a mouth!") return 0 return ..() /mob/living/carbon/human/selfDrink(var/obj/item/weapon/reagent_containers/food/drinks/toDrink) if(!check_has_mouth()) if(!get_species() == "Machine") - src << "Where do you intend to put \the [src]? You don't have a mouth!" + to_chat(src, "Where do you intend to put \the [src]? You don't have a mouth!") return 0 else - src << "You pour a bit of liquid from [toDrink] into your connection port." + to_chat(src, "You pour a bit of liquid from [toDrink] into your connection port.") else - src << "You swallow a gulp of [toDrink]." + to_chat(src, "You swallow a gulp of [toDrink].") return 1 /mob/living/carbon/human/can_track(mob/living/user) diff --git a/code/modules/mob/living/carbon/human/human_attackhand.dm b/code/modules/mob/living/carbon/human/human_attackhand.dm index 5fb0e0e85bf..25be2232432 100644 --- a/code/modules/mob/living/carbon/human/human_attackhand.dm +++ b/code/modules/mob/living/carbon/human/human_attackhand.dm @@ -1,10 +1,10 @@ /mob/living/carbon/human/attack_hand(mob/living/carbon/human/M as mob) if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return if(frozen) - M << "\red Do not touch Admin-Frozen people." + to_chat(M, "\red Do not touch Admin-Frozen people.") return var/mob/living/carbon/human/H = M @@ -13,7 +13,7 @@ if (H.hand) temp = H.organs_by_name["l_hand"] if(!temp || !temp.is_usable()) - H << "\red You can't use your hand." + to_chat(H, "\red You can't use your hand.") return ..() @@ -70,16 +70,16 @@ add_logs(src, M, "shaked") return 1 if(!H.check_has_mouth()) - H << "You don't have a mouth, you cannot perform CPR!" + to_chat(H, "You don't have a mouth, you cannot perform CPR!") return if(!check_has_mouth()) - H << "They don't have a mouth, you cannot perform CPR!" + to_chat(H, "They don't have a mouth, you cannot perform CPR!") return if((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH) && !M.wear_mask.mask_adjusted)) - M << "Remove your mask!" + to_chat(M, "Remove your mask!") return 0 if((head && (head.flags & HEADCOVERSMOUTH)) || (wear_mask && (wear_mask.flags & MASKCOVERSMOUTH) && !wear_mask.mask_adjusted)) - M << "Remove his mask!" + to_chat(M, "Remove his mask!") return 0 M.visible_message("\The [M] is trying to perform CPR on \the [src]!", \ @@ -92,12 +92,12 @@ M.visible_message("\The [M] performs CPR on \the [src]!", \ "You perform CPR on \the [src].") - src << "You feel a breath of fresh air enter your lungs. It feels good." - M << "Repeat at least every 7 seconds." + to_chat(src, "You feel a breath of fresh air enter your lungs. It feels good.") + to_chat(M, "Repeat at least every 7 seconds.") add_logs(src, M, "CPRed") return 1 else - M << "You need to stay still while performing CPR!" + to_chat(M, "You need to stay still while performing CPR!") if(I_GRAB) if(attacker_style && attacker_style.grab_act(H, src)) @@ -116,19 +116,19 @@ if(M.zone_sel && M.zone_sel.selecting == "head" && src != M) if(M.mind && M.mind.vampire && (M.mind in ticker.mode.vampires) && !M.mind.vampire.draining) if((head && (head.flags & HEADCOVERSMOUTH)) || (wear_mask && (wear_mask.flags & MASKCOVERSMOUTH))) - M << "Remove their mask!" + to_chat(M, "Remove their mask!") return 0 if((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH))) - M << "Remove your mask!" + to_chat(M, "Remove your mask!") return 0 if(mind && mind.vampire && (mind in ticker.mode.vampires)) - M << "Your fangs fail to pierce [src.name]'s cold flesh" + to_chat(M, "Your fangs fail to pierce [src.name]'s cold flesh") return 0 if(SKELETON in mutations) - M << "There is no blood in a skeleton!" + to_chat(M, "There is no blood in a skeleton!") return 0 if(issmall(src) && !ckey) //Monkeyized humans are okay, humanized monkeys are okey, monkeys are not. - M << "Blood from a monkey is useless!" + to_chat(M, "Blood from a monkey is useless!") return 0 //we're good to suck the blood, blaah M.mind.vampire.handle_bloodsucking(src) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index 1b6d62c72a0..c0e58942cfc 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -154,7 +154,7 @@ if(candidates.len) var/obj/item/organ/external/O = pick(candidates) O.mutate() - src << "Something is not right with your [O.name]..." + to_chat(src, "Something is not right with your [O.name]...") O.add_autopsy_data("Mutation", amount) return @@ -163,7 +163,7 @@ for(var/obj/item/organ/external/O in organs) if(O.status & ORGAN_MUTATED) O.unmutate() - src << "Your [O.name] is shaped normally again." + to_chat(src, "Your [O.name] is shaped normally again.") return @@ -171,7 +171,7 @@ for(var/obj/item/organ/external/O in organs) if(O.status & ORGAN_MUTATED) O.unmutate() - src << "Your [O.name] is shaped normally again." + to_chat(src, "Your [O.name] is shaped normally again.") // Defined here solely to take species flags into account without having to recast at mob/living level. diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index f3eb9ddcd7a..5f8e44f840a 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -176,12 +176,12 @@ emp_act if(!istype(affecting)) return if(!(affecting.status & ORGAN_ROBOT)) - user << "\red That limb isn't robotic." + to_chat(user, "\red That limb isn't robotic.") return if(affecting.sabotaged) - user << "\red [src]'s [affecting.name] is already sabotaged!" + to_chat(user, "\red [src]'s [affecting.name] is already sabotaged!") else - user << "\red You sneakily slide the card into the dataport on [src]'s [affecting.name] and short out the safeties." + to_chat(user, "\red You sneakily slide the card into the dataport on [src]'s [affecting.name] and short out the safeties.") affecting.sabotaged = 1 return 1 @@ -198,7 +198,7 @@ emp_act src.reagents.trans_to (newmeat, round ((src.reagents.total_volume) / 3, 1)) src.loc.add_blood(src) --src.meatleft - user << "\red You hack off a chunk of meat from [src.name]" + to_chat(user, "\red You hack off a chunk of meat from [src.name]") if(!src.meatleft) src.attack_log += "\[[time_stamp()]\] Was chopped up into meat by [key_name(user)]" user.attack_log += "\[[time_stamp()]\] Chopped up [key_name(src)] into meat" @@ -212,7 +212,7 @@ emp_act var/obj/item/organ/external/affecting = get_organ(ran_zone(user.zone_sel.selecting)) if(!affecting || affecting.is_stump() || (affecting.status & ORGAN_DESTROYED)) - user << "They are missing that limb!" + to_chat(user, "They are missing that limb!") return 1 var/hit_area = affecting.name diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index e4555a3c500..568de281cf1 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -7,13 +7,14 @@ var/obj/item/I = H.get_active_hand() var/obj/item/weapon/storage/S = H.get_inactive_hand() if(!I) - H << "You are not holding anything to equip." + to_chat(H, "You are not holding anything to equip.") return if(istype(I, /obj/item/clothing/head/helmet/space/rig)) // If the item to be equipped is a rigid suit helmet var/obj/item/clothing/head/helmet/space/rig/C = I if(C.rig_restrict_helmet) - src << "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)" // Stop eva helms equipping. + to_chat(src, "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)")// Stop eva helms equipping. + return 0 if(H.equip_to_appropriate_slot(I)) @@ -34,7 +35,7 @@ if(istype(S, /obj/item/weapon/storage) && S.can_be_inserted(I,1)) S.handle_item_insertion(I) else - H << "\red You are unable to equip that." + to_chat(H, "\red You are unable to equip that.") /mob/living/carbon/human/proc/equip_in_one_of_slots(obj/item/W, list/slots, del_on_fail = 1) @@ -301,7 +302,7 @@ var/obj/item/clothing/under/uniform = src.w_uniform uniform.attackby(W,src) else - src << "You are trying to equip this item to an unsupported inventory slot. Report this to a coder!" + to_chat(src, "You are trying to equip this item to an unsupported inventory slot. Report this to a coder!") return /mob/living/carbon/human/put_in_hands(obj/item/W) @@ -415,7 +416,7 @@ //testing("[M] TOO FAT TO WEAR [src]!") if(!(I.flags & ONESIZEFITSALL)) if(!disable_warning) - src << "You're too fat to wear the [I]." + to_chat(src, "You're too fat to wear the [I].") return 0 switch(slot) @@ -462,7 +463,7 @@ return 0 if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 if(!(I.slot_flags & SLOT_BELT)) return @@ -506,7 +507,7 @@ return 0 if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 if(!(I.slot_flags & SLOT_ID)) return 0 @@ -516,7 +517,7 @@ return 0 if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 if(!(I.slot_flags & SLOT_PDA)) return 0 @@ -528,7 +529,7 @@ return 0 if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 if(I.slot_flags & SLOT_DENYPOCKET) return @@ -541,7 +542,7 @@ return 0 if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 if(I.slot_flags & SLOT_DENYPOCKET) return 0 @@ -555,15 +556,15 @@ return 0 if(!wear_suit) if(!disable_warning) - src << "You need a suit before you can attach this [name]." + to_chat(src, "You need a suit before you can attach this [name].") return 0 if(!wear_suit.allowed) if(!disable_warning) - src << "You somehow have a suit with no defined allowed items for suit storage, stop that." + to_chat(src, "You somehow have a suit with no defined allowed items for suit storage, stop that.") return 0 if(I.w_class > 4) if(!disable_warning) - src << "The [name] is too big to attach." + to_chat(src, "The [name] is too big to attach.") return 0 if(istype(I, /obj/item/device/pda) || istype(I, /obj/item/weapon/pen) || is_type_in_list(I, wear_suit.allowed)) return 1 @@ -589,12 +590,12 @@ if(slot_tie) if(!w_uniform) if(!disable_warning) - src << "You need a jumpsuit before you can attach this [name]." + to_chat(src, "You need a jumpsuit before you can attach this [name].") return 0 var/obj/item/clothing/under/uniform = w_uniform if(uniform.accessories.len && !uniform.can_attach_accessory(src)) if(!disable_warning) - src << "You already have an accessory of this type attached to your [uniform]." + to_chat(src, "You already have an accessory of this type attached to your [uniform].") return 0 if(!(I.slot_flags & SLOT_TIE)) return 0 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index db69fb5b3c4..c2ec65368a4 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -187,7 +187,7 @@ radiation -= 0.1 reagents.add_reagent("radium", rads/10) if( prob(10) ) - src << "You feel relaxed." + to_chat(src, "You feel relaxed.") return if (radiation > 100) @@ -195,7 +195,7 @@ if(!(species.flags & RAD_ABSORB)) Weaken(10) if(!lying) - src << "You feel weak." + to_chat(src, "You feel weak.") emote("collapse") if (radiation < 0) @@ -229,7 +229,7 @@ radiation -= 5 Weaken(3) if(!lying) - src << "You feel weak." + to_chat(src, "You feel weak.") emote("collapse") updatehealth() @@ -238,7 +238,7 @@ adjustToxLoss(3) damage = 3 if(prob(1)) - src << "You mutate!" + to_chat(src, "You mutate!") randmutb(src) domutcheck(src,null) emote("gasp") @@ -249,7 +249,7 @@ adjustToxLoss(5) damage = 5 if(prob(1)) - src << "You mutate!" + to_chat(src, "You mutate!") randmutb(src) domutcheck(src,null) emote("gasp") @@ -392,7 +392,7 @@ return var/loc_temp = get_temperature(environment) - //world << "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Thermal protection: [get_thermal_protection()] - Fire protection: [thermal_protection + add_fire_protection(loc_temp)] - Heat capacity: [environment_heat_capacity] - Location: [loc] - src: [src]" +// to_chat(world, "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Thermal protection: [get_thermal_protection()] - Fire protection: [thermal_protection + add_fire_protection(loc_temp)] - Heat capacity: [environment_heat_capacity] - Location: [loc] - src: [src]") //Body temperature is adjusted in two steps. Firstly your body tries to stabilize itself a bit. if(stat != 2) @@ -698,7 +698,7 @@ if(species.flags & CAN_BE_FAT) if(FAT in mutations) if(overeatduration < 100) - src << "You feel fit again!" + to_chat(src, "You feel fit again!") mutations.Remove(FAT) update_mutantrace(0) update_mutations(0) @@ -706,7 +706,7 @@ update_inv_wear_suit() else if(overeatduration > 500) - src << "You suddenly feel blubbery!" + to_chat(src, "You suddenly feel blubbery!") mutations.Add(FAT) update_mutantrace(0) update_mutations(0) @@ -888,17 +888,17 @@ isRemoteObserve = 1 if(remoteview_target.stat != CONSCIOUS) - src << "Your psy-connection grows too faint to maintain!" + to_chat(src, "Your psy-connection grows too faint to maintain!") isRemoteObserve = 0 if(PSY_RESIST in remoteview_target.mutations) - src << "Your mind is shut out!" + to_chat(src, "Your mind is shut out!") isRemoteObserve = 0 // Not on the station or mining? var/turf/temp_turf = get_turf(remoteview_target) if(!temp_turf in config.contact_levels) - src << "Your psy-connection grows too faint to maintain!" + to_chat(src, "Your psy-connection grows too faint to maintain!") isRemoteObserve = 0 if(remote_view) @@ -969,7 +969,7 @@ return if(shock_stage == 10) - src << ""+pick("It hurts so much!", "You really need some painkillers..", "Dear god, the pain!") + to_chat(src, ""+pick("It hurts so much!", "You really need some painkillers..", "Dear god, the pain!")) if(shock_stage >= 30) if(shock_stage == 30) custom_emote(1,"is having trouble keeping their eyes open.") @@ -977,22 +977,22 @@ stuttering = max(stuttering, 5) if(shock_stage == 40) - src << ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!") + to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!")) if(shock_stage >=60) if(shock_stage == 60) custom_emote(1,"falls limp.") if (prob(2)) - src << ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!") + to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!")) Weaken(20) if(shock_stage >= 80) if (prob(5)) - src << ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!") + to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!")) Weaken(20) if(shock_stage >= 120) if (prob(2)) - src << ""+pick("You black out!", "You feel like you could die any moment now.", "You're about to lose consciousness.") + to_chat(src, ""+pick("You black out!", "You feel like you could die any moment now.", "You're about to lose consciousness.")) Paralyse(5) if(shock_stage == 150) @@ -1082,7 +1082,7 @@ return if(H.species && H.species.flags & NO_BREATHE) return //no puking if you can't smell! - H << "You smell something foul..." + to_chat(H, "You smell something foul...") H.fakevomit() /mob/living/carbon/human/proc/handle_heartbeat() @@ -1102,7 +1102,8 @@ if(heartbeat >= rate) heartbeat = 0 - src << sound('sound/effects/electheart.ogg',0,0,0,30) //Credit to GhostHack (www.ghosthack.de) for sound. + to_chat(src, sound('sound/effects/electheart.ogg',0,0,0,30))//Credit to GhostHack (www.ghosthack.de) for sound. + else heartbeat++ return @@ -1120,9 +1121,9 @@ if(heartbeat >= rate) heartbeat = 0 if(H.status & ORGAN_ASSISTED) - src << sound('sound/effects/pacemakebeat.ogg',0,0,0,50) + to_chat(src, sound('sound/effects/pacemakebeat.ogg',0,0,0,50)) else - src << sound('sound/effects/singlebeat.ogg',0,0,0,50) + to_chat(src, sound('sound/effects/singlebeat.ogg',0,0,0,50)) else heartbeat++ diff --git a/code/modules/mob/living/carbon/human/login.dm b/code/modules/mob/living/carbon/human/login.dm index ee5034a23f2..c9c23b31857 100644 --- a/code/modules/mob/living/carbon/human/login.dm +++ b/code/modules/mob/living/carbon/human/login.dm @@ -2,7 +2,7 @@ ..() if(species && species.ventcrawler) - src << "You can ventcrawl! Use alt+click on vents to quickly travel about the station." + to_chat(src, "You can ventcrawl! Use alt+click on vents to quickly travel about the station.") update_pipe_vision() update_hud() return diff --git a/code/modules/mob/living/carbon/human/species/apollo.dm b/code/modules/mob/living/carbon/human/species/apollo.dm index a5e92e951d9..a7735a00db9 100644 --- a/code/modules/mob/living/carbon/human/species/apollo.dm +++ b/code/modules/mob/living/carbon/human/species/apollo.dm @@ -50,8 +50,8 @@ /datum/species/wryn/handle_death(var/mob/living/carbon/human/H) for(var/mob/living/carbon/C in living_mob_list) if(C.get_int_organ(/obj/item/organ/internal/wryn/hivenode)) - C << "Your antennae tingle as you are overcome with pain..." - C << "It feels like part of you has died." + to_chat(C, "Your antennae tingle as you are overcome with pain...") + to_chat(C, "It feels like part of you has died.") /datum/species/wryn/handle_attack_hand(var/mob/living/carbon/human/H, var/mob/living/carbon/human/M) if(M.a_intent == I_HARM) @@ -61,16 +61,16 @@ var/turf/p_loc_m = H.loc M.visible_message("[M] begins to violently pull off [H]'s antennae.") - H << "[M] grips your antennae and starts violently pulling!" + to_chat(H, "[M] grips your antennae and starts violently pulling!") do_after(H, 250, target = src) if(p_loc == M.loc && p_loc_m == H.loc) var/obj/item/organ/internal/wryn/hivenode/node = new /obj/item/organ/internal/wryn/hivenode H.remove_language("Wryn Hivemind") node.remove(H) node.loc = M.loc - M << "You hear a loud crunch as you mercilessly pull off [H]'s antennae." - H << "You hear a loud crunch as your antennae is ripped off your head by [M]." - H << "It's so quiet..." + to_chat(M, "You hear a loud crunch as you mercilessly pull off [H]'s antennae.") + to_chat(H, "You hear a loud crunch as your antennae is ripped off your head by [M].") + to_chat(H, "It's so quiet...") H.h_style = "Bald" H.update_hair() diff --git a/code/modules/mob/living/carbon/human/species/plasmaman.dm b/code/modules/mob/living/carbon/human/species/plasmaman.dm index 6f95a8696ce..5bced02a651 100644 --- a/code/modules/mob/living/carbon/human/species/plasmaman.dm +++ b/code/modules/mob/living/carbon/human/species/plasmaman.dm @@ -112,7 +112,7 @@ H.equip_or_collect(new suit(H), slot_wear_suit) H.equip_or_collect(new helm(H), slot_head) H.equip_or_collect(new/obj/item/weapon/tank/plasma/plasmaman(H), tank_slot) // Bigger plasma tank from Raggy. - H << "You are now running on plasma internals from the [H.s_store] in your [tank_slot_name]. You must breathe plasma in order to survive, and are extremely flammable." + to_chat(H, "You are now running on plasma internals from the [H.s_store] in your [tank_slot_name]. You must breathe plasma in order to survive, and are extremely flammable.") H.internal = H.get_item_by_slot(tank_slot) if (H.internals) H.internals.icon_state = "internal1" @@ -191,10 +191,10 @@ return 1 //godmode if(breath.temperature < cold_level_1) if(prob(20)) - src << "\red You feel your face freezing and an icicle forming in your lungs!" + to_chat(src, "\red You feel your face freezing and an icicle forming in your lungs!") else if(breath.temperature > heat_level_1) if(prob(20)) - src << "\red You feel your face burning and a searing heat in your lungs!" + to_chat(src, "\red You feel your face burning and a searing heat in your lungs!") switch(breath.temperature) if(-INFINITY to cold_level_3) @@ -222,7 +222,7 @@ H.fire_alert = max(H.fire_alert, 2) if(!istype(H.wear_suit, /obj/item/clothing/suit/space/eva/plasmaman) || !istype(H.head, /obj/item/clothing/head/helmet/space/eva/plasmaman)) - H << "Your body reacts with the atmosphere and bursts into flame!" + to_chat(H, "Your body reacts with the atmosphere and bursts into flame!") H.adjust_fire_stacks(0.5) H.IgniteMob() diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index f2cf58fe29f..f810be86382 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -288,10 +288,10 @@ if(H.status_flags & GODMODE) return 1 //godmode if(breath.temperature < cold_level_1) if(prob(20)) - H << "\red You feel your face freezing and an icicle forming in your lungs!" + to_chat(H, "\red You feel your face freezing and an icicle forming in your lungs!") else if(breath.temperature > heat_level_1) if(prob(20)) - H << "\red You feel your face burning and a searing heat in your lungs!" + to_chat(H, "\red You feel your face burning and a searing heat in your lungs!") diff --git a/code/modules/mob/living/carbon/human/species/station.dm b/code/modules/mob/living/carbon/human/species/station.dm index 8e0b9f5d2b7..56566b71a92 100644 --- a/code/modules/mob/living/carbon/human/species/station.dm +++ b/code/modules/mob/living/carbon/human/species/station.dm @@ -275,7 +275,7 @@ H.equip_or_collect(new /obj/item/weapon/tank/nitrogen(H), slot_l_hand) else H.equip_or_collect(new /obj/item/weapon/tank/emergency_oxygen/vox(H), slot_l_hand) - H << "You are now running on nitrogen internals from the [H.l_hand] in your hand. Your species finds oxygen toxic, so you must breathe nitrogen only." + to_chat(H, "You are now running on nitrogen internals from the [H.l_hand] in your hand. Your species finds oxygen toxic, so you must breathe nitrogen only.") H.internal = H.l_hand if (H.internals) H.internals.icon_state = "internal1" @@ -443,17 +443,17 @@ var/datum/species/slime/S = all_species[get_species()] if(!istype(S)) if(!silent) - src << "You're not a slime person!" + to_chat(src, "You're not a slime person!") return if(src in S.recolor_list) S.recolor_list -= src if(!silent) - src << "You adjust your internal chemistry to filter out pigments from things you consume." + to_chat(src, "You adjust your internal chemistry to filter out pigments from things you consume.") else S.recolor_list += src if(!silent) - src << "You adjust your internal chemistry to permit pigments in chemicals you consume to tint you." + to_chat(src, "You adjust your internal chemistry to permit pigments in chemicals you consume to tint you.") /mob/living/carbon/human/verb/toggle_recolor_verb() set category = "IC" @@ -473,11 +473,11 @@ #define SLIMEPERSON_REGROWTHDELAY 450 // 45 seconds if(stat || paralysis || stunned) - src << "You cannot regenerate missing limbs in your current state." + to_chat(src, "You cannot regenerate missing limbs in your current state.") return if(nutrition < SLIMEPERSON_MINHUNGER) - src << "You're too hungry to regenerate a limb!" + to_chat(src, "You're too hungry to regenerate a limb!") return var/list/missing_limbs = list() @@ -493,7 +493,7 @@ missing_limbs[initial(limb.name)] = l if(!missing_limbs.len) - src << "You're not missing any limbs!" + to_chat(src, "You're not missing any limbs!") return var/limb_select = input(src, "Choose a limb to regrow", "Limb Regrowth") as null|anything in missing_limbs @@ -502,11 +502,11 @@ visible_message("[src] begins to hold still and concentrate on their missing [limb_select]...", "You begin to focus on regrowing your missing [limb_select]... (This will take [round(SLIMEPERSON_REGROWTHDELAY/10)] seconds, and you must hold still.)") if(do_after(src, SLIMEPERSON_REGROWTHDELAY, needhand=0, target = src)) if(stat || paralysis || stunned) - src << "You cannot regenerate missing limbs in your current state." + to_chat(src, "You cannot regenerate missing limbs in your current state.") return if(nutrition < SLIMEPERSON_MINHUNGER) - src << "You're too hungry to regenerate a limb!" + to_chat(src, "You're too hungry to regenerate a limb!") return var/obj/item/organ/external/O = organs_by_name[chosen_limb] @@ -515,10 +515,10 @@ var/stored_burn = 0 if(istype(O)) if(!O.is_stump()) - src << "Your limb has already been replaced in some way!" + to_chat(src, "Your limb has already been replaced in some way!") return else - src << "You distribute the damaged tissue around your body, out of the way of your new pseudopod!" + to_chat(src, "You distribute the damaged tissue around your body, out of the way of your new pseudopod!") var/obj/item/organ/external/doomedStump = O stored_brute = doomedStump.brute_dam stored_burn = doomedStump.burn_dam @@ -529,7 +529,7 @@ // Parent check var/obj/item/organ/external/potential_parent = organs_by_name[initial(limb_path.parent_organ)] if(!istype(potential_parent) || potential_parent.is_stump()) - src << "You've lost the organ that you've been growing your new part on!" + to_chat(src, "You've lost the organ that you've been growing your new part on!") return // No rayman for you // Grah this line will leave a "not used" warning, in spite of the fact that the new() proc WILL do the thing. // Bothersome. @@ -543,7 +543,7 @@ nutrition -= SLIMEPERSON_HUNGERCOST visible_message("[src] finishes regrowing their missing [new_limb]!", "You finish regrowing your [limb_select]") else - src << "You need to hold still in order to regrow a limb!" + to_chat(src, "You need to hold still in order to regrow a limb!") return #undef SLIMEPERSON_HUNGERCOST diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 8e574fc76d4..f37cd16a5a3 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -642,7 +642,7 @@ var/global/list/damage_icon_parts = list() if(w_uniform.flags&ONESIZEFITSALL) standing.icon = 'icons/mob/uniform_fat.dmi' else - src << "\red You burst out of \the [w_uniform]!" + to_chat(src, "\red You burst out of \the [w_uniform]!") unEquip(w_uniform) return else @@ -857,7 +857,7 @@ var/global/list/damage_icon_parts = list() if(wear_suit.flags&ONESIZEFITSALL) standing = image("icon" = 'icons/mob/suit_fat.dmi', "icon_state" = "[wear_suit.icon_state]") else - src << "\red You burst out of \the [wear_suit]!" + to_chat(src, "\red You burst out of \the [wear_suit]!") unEquip(wear_suit) return else diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 48d0c320145..43794bed7b8 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -278,7 +278,7 @@ if(staminaloss) var/total_health = (health - staminaloss) if(total_health <= config.health_threshold_softcrit && !stat) - src << "You're too exhausted to keep going..." + to_chat(src, "You're too exhausted to keep going...") Weaken(5) setStaminaLoss(health - 2) return diff --git a/code/modules/mob/living/carbon/slime/emote.dm b/code/modules/mob/living/carbon/slime/emote.dm index dcc0b066487..64838a1704d 100644 --- a/code/modules/mob/living/carbon/slime/emote.dm +++ b/code/modules/mob/living/carbon/slime/emote.dm @@ -13,7 +13,7 @@ return if (src.client) if (client.prefs.muted & MUTE_IC) - src << "\red You cannot send IC messages (muted)." + to_chat(src, "\red You cannot send IC messages (muted).") return if (src.client.handle_spam_prevention(message,MUTE_IC)) return @@ -58,10 +58,10 @@ m_type = 1 if ("help") //This is an exception - src << "Help for slime emotes. You can use these emotes with say \"*emote\":\n\nbounce, custom, jiggle, light, moan, shiver, sway, twitch, vibrate" + to_chat(src, "Help for slime emotes. You can use these emotes with say \"*emote\":\n\nbounce, custom, jiggle, light, moan, shiver, sway, twitch, vibrate") else - src << "\blue Unusable emote '[act]'. Say *help for a list." + to_chat(src, "\blue Unusable emote '[act]'. Say *help for a list.") if ((message && src.stat == 0)) if (m_type & 1) for(var/mob/O in viewers(src, null)) diff --git a/code/modules/mob/living/carbon/slime/examine.dm b/code/modules/mob/living/carbon/slime/examine.dm index 826fa93c22e..7d2e2d5e62c 100644 --- a/code/modules/mob/living/carbon/slime/examine.dm +++ b/code/modules/mob/living/carbon/slime/examine.dm @@ -41,4 +41,4 @@ msg += "" msg += "*---------*" - user << msg \ No newline at end of file + to_chat(user, msg) diff --git a/code/modules/mob/living/carbon/slime/powers.dm b/code/modules/mob/living/carbon/slime/powers.dm index 494bb6eb6df..d0ced0684a3 100644 --- a/code/modules/mob/living/carbon/slime/powers.dm +++ b/code/modules/mob/living/carbon/slime/powers.dm @@ -6,7 +6,7 @@ return if(stat) - src << "I must be conscious to do this..." + to_chat(src, "I must be conscious to do this...") return var/list/choices = list() @@ -25,20 +25,20 @@ for(var/mob/living/carbon/slime/met in view()) if(met.Victim == M && met != src) - src << "The [met.name] is already feeding on this subject..." + to_chat(src, "The [met.name] is already feeding on this subject...") return - src << "\blue I have latched onto the subject and begun feeding..." - M << "\red The [src.name] has latched onto your head!" + to_chat(src, "\blue I have latched onto the subject and begun feeding...") + to_chat(M, "\red The [src.name] has latched onto your head!") Feedon(M) else - src << "This subject does not have a strong enough life energy..." + to_chat(src, "This subject does not have a strong enough life energy...") else - src << "This subject does not have an edible life energy..." + to_chat(src, "This subject does not have an edible life energy...") else - src << "I must not feed on my brothers..." + to_chat(src, "I must not feed on my brothers...") else - src << "This subject does not have an edible life energy..." + to_chat(src, "This subject does not have an edible life energy...") @@ -61,13 +61,13 @@ loc = M.loc if(prob(15) && M.client && istype(M, /mob/living/carbon)) - M << "[pick("You can feel your body becoming weak!", \ + to_chat(M, "[pick("You can feel your body becoming weak!", \ "You feel like you're about to die!", \ "You feel every part of your body screaming in agony!", \ "A low, rolling pain passes through your body!", \ "Your body feels as if it's falling apart!", \ "You feel extremely weak!", \ - "A sharp, deep pain bathes every inch of your body!")]" + "A sharp, deep pain bathes every inch of your body!")]") if(istype(M, /mob/living/carbon)) Victim.adjustCloneLoss(rand(5,6)) @@ -83,10 +83,10 @@ else if(prob(25)) - src << "[pick("This subject is incompatable", \ + to_chat(src, "[pick("This subject is incompatable", \ "This subject does not have a life energy", "This subject is empty", \ "I am not satisified", "I can not feed from this subject", \ - "I do not feel nourished", "This subject is not food")]..." + "I do not feel nourished", "This subject is not food")]...") if(fed_succesfully) //I have no idea why this is not in handle_nutrition() @@ -145,19 +145,22 @@ if(prob(85)) rabid = 1 // UUUNNBGHHHH GONNA EAT JUUUUUU - if(client) src << "This subject does not have a strong enough life energy anymore..." + if(client) + to_chat(src, "This subject does not have a strong enough life energy anymore...") else M.canmove = 1 - - if(client) src << "I have stopped feeding..." + if(client) + to_chat(src, "I have stopped feeding...") else - if(client) src << "I have stopped feeding..." + if(client) + to_chat(src, "I have stopped feeding...") Victim = null /mob/living/carbon/slime/proc/Feedstop() if(Victim) - if(Victim.client) Victim << "[src] has let go of your head!" + if(Victim.client) + to_chat(Victim, "[src] has let go of your head!") Victim = null /mob/living/carbon/slime/proc/UpdateFeed(var/mob/M) @@ -171,7 +174,7 @@ set desc = "This will let you evolve from baby to adult slime." if(stat) - src << "I must be conscious to do this..." + to_chat(src, "I must be conscious to do this...") return if(!is_adult) if(amount_grown >= 10) @@ -181,22 +184,22 @@ regenerate_icons() name = text("[colour] [is_adult ? "adult" : "baby"] slime ([number])") else - src << "I am not ready to evolve yet..." + to_chat(src, "I am not ready to evolve yet...") else - src << "I have already evolved..." + to_chat(src, "I have already evolved...") /mob/living/carbon/slime/verb/Reproduce() set category = "Slime" set desc = "This will make you split into four Slimes." if(stat) - src << "I must be conscious to do this..." + to_chat(src, "I must be conscious to do this...") return if(is_adult) if(amount_grown >= 10) if(stat) - src << "I must be conscious to do this..." + to_chat(src, "I must be conscious to do this...") return var/list/babies = list() @@ -223,6 +226,6 @@ new_slime.key = src.key qdel(src) else - src << "I am not ready to reproduce yet..." + to_chat(src, "I am not ready to reproduce yet...") else - src << "I am not old enough to reproduce yet..." \ No newline at end of file + to_chat(src, "I am not old enough to reproduce yet...") diff --git a/code/modules/mob/living/carbon/slime/slime.dm b/code/modules/mob/living/carbon/slime/slime.dm index e2a7da1ae5e..532f6a4aba0 100644 --- a/code/modules/mob/living/carbon/slime/slime.dm +++ b/code/modules/mob/living/carbon/slime/slime.dm @@ -232,7 +232,7 @@ /mob/living/carbon/slime/attack_slime(mob/living/carbon/slime/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (Victim) return // can't attack while eating! @@ -293,11 +293,11 @@ /mob/living/carbon/slime/attack_hand(mob/living/carbon/human/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return ..() @@ -371,7 +371,7 @@ visible_message("[src] has been touched with the stun gloves by [M]!") return else - M << "\red Not enough charge! " + to_chat(M, "\red Not enough charge! ") return */ @@ -419,11 +419,11 @@ /mob/living/carbon/slime/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return switch(M.a_intent) @@ -503,14 +503,14 @@ ++Friends[user] else Friends[user] = 1 - user << "You feed the slime the plasma. It chirps happily." + to_chat(user, "You feed the slime the plasma. It chirps happily.") var/obj/item/stack/sheet/mineral/plasma/S = W S.use(1) return else if(W.force > 0) attacked += 10 if(prob(25)) - user << "[W] passes right through [src]!" + to_chat(user, "[W] passes right through [src]!") return if(Discipline && prob(50)) // wow, buddy, why am I getting attacked?? Discipline = 0 @@ -594,5 +594,5 @@ mob/living/carbon/slime/var/temperature_resistance = T0C+75 /mob/living/carbon/slime/forceFed(var/obj/item/weapon/reagent_containers/food/toEat, mob/user, fullness) if(istype(toEat, /obj/item/weapon/reagent_containers/food/drinks)) return 1 - user << "This creature does not seem to have a mouth!" + to_chat(user, "This creature does not seem to have a mouth!") return 0 \ No newline at end of file diff --git a/code/modules/mob/living/carbon/superheroes.dm b/code/modules/mob/living/carbon/superheroes.dm index f3f5fe13006..d8f741928fd 100644 --- a/code/modules/mob/living/carbon/superheroes.dm +++ b/code/modules/mob/living/carbon/superheroes.dm @@ -52,7 +52,7 @@ H.equip_to_slot_or_del(W, slot_wear_id) H.regenerate_icons() - H << desc + to_chat(H, desc) /datum/superheroes/owlman name = "Owlman" @@ -149,64 +149,65 @@ /obj/effect/proc_holder/spell/targeted/recruit/cast(list/targets) for(var/mob/living/carbon/human/target in targets) if(ticker.mode.greyshirts.len >= 3) - usr << "You have already recruited the maximum number of henchmen." + to_chat(usr, "You have already recruited the maximum number of henchmen.") if(!in_range(usr, target)) - usr << "You need to be closer to enthrall [target]." + to_chat(usr, "You need to be closer to enthrall [target].") charge_counter = charge_max return if(!target.ckey) - usr << "The target has no mind." + to_chat(usr, "The target has no mind.") charge_counter = charge_max return if(target.stat) - usr << "The target must be conscious." + to_chat(usr, "The target must be conscious.") charge_counter = charge_max return if(!ishuman(target)) - usr << "You can only recruit humans." + to_chat(usr, "You can only recruit humans.") charge_counter = charge_max return if(target.mind.assigned_role != "Civilian") - usr << "You can only recruit Civilians." + to_chat(usr, "You can only recruit Civilians.") if(recruiting) - usr << "You are already recruiting!" + to_chat(usr, "You are already recruiting!") charge_counter = charge_max return recruiting = 1 - usr << "This target is valid. You begin the recruiting process." - target << "[usr] focuses in concentration. Your head begins to ache." + to_chat(usr, "This target is valid. You begin the recruiting process.") + to_chat(target, "[usr] focuses in concentration. Your head begins to ache.") for(var/progress = 0, progress <= 3, progress++) switch(progress) if(1) - usr << "You begin by introducing yourself and explaining what you're about." + to_chat(usr, "You begin by introducing yourself and explaining what you're about.") usr.visible_message("[usr]'s introduces himself and explains his plans.") if(2) - usr << "You begin the recruitment of [target]." + to_chat(usr, "You begin the recruitment of [target].") usr.visible_message("[usr] leans over towards [target], whispering excitedly as he gives a speech.") - target << "You feel yourself agreeing with [usr], and a surge of loyalty begins building." + to_chat(target, "You feel yourself agreeing with [usr], and a surge of loyalty begins building.") target.Weaken(12) sleep(20) if(isloyal(target)) - usr << "They are enslaved by Nanotrasen. You feel their interest in your cause wane and disappear." + to_chat(usr, "They are enslaved by Nanotrasen. You feel their interest in your cause wane and disappear.") usr.visible_message("[usr] stops talking for a moment, then moves back away from [target].") - target << "Your loyalty implant activates and a sharp pain reminds you of your loyalties to Nanotrasen." + to_chat(target, "Your loyalty implant activates and a sharp pain reminds you of your loyalties to Nanotrasen.") return if(3) - usr << "You begin filling out the application form with [target]." + to_chat(usr, "You begin filling out the application form with [target].") usr.visible_message("[usr] pulls out a pen and paper and begins filling an application form with [target].") - target << "You are being convinced by [usr] to fill out an application form to become a henchman." //Ow the edge + to_chat(target, "You are being convinced by [usr] to fill out an application form to become a henchman.")//Ow the edge + if(!do_mob(usr, target, 100)) //around 30 seconds total for enthralling, 45 for someone with a loyalty implant - usr << "The enrollment process has been interrupted - you have lost the attention of [target]." - target << "You move away and are no longer under the charm of [usr]. The application form is null and void." + to_chat(usr, "The enrollment process has been interrupted - you have lost the attention of [target].") + to_chat(target, "You move away and are no longer under the charm of [usr]. The application form is null and void.") recruiting = 0 return recruiting = 0 - usr << "You have recruited [target] as your henchman!" - target << "You have decided to enroll as a henchman for [usr]. You are now part of the feared 'Greyshirts'." - target << "You must follow the orders of [usr], and help him succeed in his dastardly schemes." - target << "You may not harm other Greyshirt or [usr]. However, you do not need to obey other Greyshirts." + to_chat(usr, "You have recruited [target] as your henchman!") + to_chat(target, "You have decided to enroll as a henchman for [usr]. You are now part of the feared 'Greyshirts'.") + to_chat(target, "You must follow the orders of [usr], and help him succeed in his dastardly schemes.") + to_chat(target, "You may not harm other Greyshirt or [usr]. However, you do not need to obey other Greyshirts.") ticker.mode.greyshirts += target.mind target.set_species("Human") target.h_style = "Bald" diff --git a/code/modules/mob/living/default_language.dm b/code/modules/mob/living/default_language.dm index b0de6465aff..f6c9c3abc0e 100644 --- a/code/modules/mob/living/default_language.dm +++ b/code/modules/mob/living/default_language.dm @@ -6,9 +6,9 @@ set category = "IC" if(language) - src << "You will now speak [language] if you do not specify a language when speaking." + to_chat(src, "You will now speak [language] if you do not specify a language when speaking.") else - src << "You will now speak whatever your standard default language is if you do not specify one when speaking." + to_chat(src, "You will now speak whatever your standard default language is if you do not specify one when speaking.") default_language = language // Silicons can't neccessarily speak everything in their languages list @@ -20,6 +20,6 @@ set category = "IC" if(default_language) - src << "You are currently speaking [default_language] by default." + to_chat(src, "You are currently speaking [default_language] by default.") else - src << "Your current default language is your species or mob type default." + to_chat(src, "Your current default language is your species or mob type default.") diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 662937b1af3..ae101b15c5d 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -66,7 +66,7 @@ break take_overall_damage(max(5, health - config.health_threshold_dead), 0) updatehealth() - src << "You have given up life and succumbed to death." + to_chat(src, "You have given up life and succumbed to death.") /mob/living/proc/InCritical() return (src.health < 0 && src.health > -95.0 && stat == UNCONSCIOUS) @@ -92,7 +92,7 @@ //sort of a legacy burn method for /electrocute, /shock, and the e_chair /mob/living/proc/burn_skin(burn_amount) if(istype(src, /mob/living/carbon/human)) - //world << "DEBUG: burn_skin(), mutations=[mutations]" +// to_chat(world, "DEBUG: burn_skin(), mutations=[mutations]") if (RESIST_HEAT in src.mutations) //fireproof return 0 var/mob/living/carbon/human/H = src //make this damage method divide the damage to be done among all the body parts, then burn each body part for that much damage. will have better effect then just randomly picking a body part @@ -124,7 +124,7 @@ if(actual < desired) temperature = desired // if(istype(src, /mob/living/carbon/human)) -// world << "[src] ~ [src.bodytemperature] ~ [temperature]" +// to_chat(world, "[src] ~ [src.bodytemperature] ~ [temperature]") return temperature @@ -417,11 +417,11 @@ if(config.allow_Metadata) if(client) - usr << "[src]'s Metainfo:
[client.prefs.metadata]" + to_chat(usr, "[src]'s Metainfo:
[client.prefs.metadata]") else - usr << "[src] does not have any stored infomation!" + to_chat(usr, "[src] does not have any stored infomation!") else - usr << "OOC Metadata is not supported by this server!" + to_chat(usr, "OOC Metadata is not supported by this server!") return @@ -570,8 +570,8 @@ var/mob/living/simple_animal/borer/B = src.loc var/mob/living/captive_brain/H = src - H << "\red You begin doggedly resisting the parasite's control (this will take approximately sixty seconds)." - B.host << "\red You feel the captive mind of [src] begin to resist your control." + to_chat(H, "\red You begin doggedly resisting the parasite's control (this will take approximately sixty seconds).") + to_chat(B.host, "\red You feel the captive mind of [src] begin to resist your control.") spawn(rand(350,450)+B.host.brainloss) @@ -579,8 +579,8 @@ return B.host.adjustBrainLoss(rand(5,10)) - H << "\red With an immense exertion of will, you regain control of your body!" - B.host << "\red You feel control of the host brain ripped from your grasp, and retract your probosci before the wild neural impulses can damage you." + to_chat(H, "\red With an immense exertion of will, you regain control of your body!") + to_chat(B.host, "\red You feel control of the host brain ripped from your grasp, and retract your probosci before the wild neural impulses can damage you.") B.detatch() @@ -633,7 +633,7 @@ C.changeNext_move(CLICK_CD_BREAKOUT) C.last_special = world.time + CLICK_CD_BREAKOUT - C << "\red You attempt to unbuckle yourself. (This will take around 2 minutes and you need to stay still)" + to_chat(C, "\red You attempt to unbuckle yourself. (This will take around 2 minutes and you need to stay still)") for(var/mob/O in viewers(L)) O.show_message("\red [usr] attempts to unbuckle themself!", 1) @@ -643,7 +643,7 @@ return for(var/mob/O in viewers(C)) O.show_message("\red [usr] manages to unbuckle themself!", 1) - C << "\blue You successfully unbuckle yourself." + to_chat(C, "\blue You successfully unbuckle yourself.") C.buckled.user_unbuckle_mob(C,C) else @@ -686,7 +686,7 @@ breakouttime = 50 displaytime = 5 - CM << "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)" + to_chat(CM, "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)") for(var/mob/O in viewers(CM)) O.show_message( "\red [usr] attempts to [hulklien ? "break" : "remove"] \the [HC]!", 1) spawn(0) @@ -697,7 +697,7 @@ for(var/mob/O in viewers(CM))// lags so hard that 40s isn't lenient enough - Quarxink O.show_message("\red [CM] manages to [hulklien ? "break" : "remove"] the handcuffs!", 1) - CM << "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.handcuffed]." + to_chat(CM, "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.handcuffed].") if(hulklien) CM.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" )) @@ -729,7 +729,7 @@ breakouttime = 50 displaytime = 5 - CM << "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)" + to_chat(CM, "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)") for(var/mob/O in viewers(CM)) O.show_message( "\red [usr] attempts to [hulklien ? "break" : "remove"] \the [HC]!", 1) @@ -741,7 +741,7 @@ for(var/mob/O in viewers(CM))// lags so hard that 40s isn't lenient enough - Quarxink O.show_message("\red [CM] manages to [hulklien ? "break" : "remove"] the legcuffs!", 1) - CM << "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.legcuffed]." + to_chat(CM, "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.legcuffed].") if(!hulklien) CM.unEquip(CM.legcuffed) @@ -780,7 +780,7 @@ return /mob/living/proc/Exhaust() - src << "You're too exhausted to keep going..." + to_chat(src, "You're too exhausted to keep going...") Weaken(5) /mob/living/proc/get_visible_name() @@ -824,7 +824,7 @@ // Override if a certain type of mob should be behave differently when stripping items (can't, for example) /mob/living/stripPanelUnequip(obj/item/what, mob/who, where, var/silent = 0) if(what.flags & NODROP) - src << "You can't remove \the [what.name], it appears to be stuck!" + to_chat(src, "You can't remove \the [what.name], it appears to be stuck!") return if(!silent) who.visible_message("[src] tries to remove [who]'s [what.name].", \ @@ -842,11 +842,11 @@ /mob/living/stripPanelEquip(obj/item/what, mob/who, where, var/silent = 0) what = src.get_active_hand() if(what && (what.flags & NODROP)) - src << "You can't put \the [what.name] on [who], it's stuck to your hand!" + to_chat(src, "You can't put \the [what.name] on [who], it's stuck to your hand!") return if(what) if(!what.mob_can_equip(who, where, 1)) - src << "\The [what.name] doesn't fit in that place!" + to_chat(src, "\The [what.name] doesn't fit in that place!") return if(!silent) visible_message("[src] tries to put [what] on [who].") diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index f2523e2d823..b48aa36a64c 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -17,20 +17,20 @@ if(armor && armor < 100 && armour_penetration) // Armor with 100+ protection can not be penetrated for admin items armor = max(0, armor - armour_penetration) if(penetrated_text) - src << "[penetrated_text]" + to_chat(src, "[penetrated_text]") else - src << "Your armor was penetrated!" + to_chat(src, "Your armor was penetrated!") if(armor >= 100) if(absorb_text) - src << "[absorb_text]" + to_chat(src, "[absorb_text]") else - src << "Your armor absorbs the blow!" + to_chat(src, "Your armor absorbs the blow!") else if(armor > 0) if(soften_text) - src << "[soften_text]" + to_chat(src, "[soften_text]") else - src << "Your armor softens the blow!" + to_chat(src, "Your armor softens the blow!") return armor //if null is passed for def_zone, then this should return something appropriate for all zones (e.g. area effect damage) @@ -44,7 +44,7 @@ if(C && C.active) C.attack_self(src)//Should shut it off update_icons() - src << "\blue Your [C.name] was disrupted!" + to_chat(src, "\blue Your [C.name] was disrupted!") Stun(2) //Armor @@ -241,14 +241,14 @@ for(var/obj/item/weapon/grab/G in src.grabbed_by) if(G.assailant == user) - user << "You already grabbed [src]." + to_chat(user, "You already grabbed [src].") return add_logs(src, user, "grabbed", addition="passively") var/obj/item/weapon/grab/G = new /obj/item/weapon/grab(user, src) if(buckled) - user << "You cannot grab [src], \he is buckled in!" + to_chat(user, "You cannot grab [src], \he is buckled in!") if(!G) //the grab will delete itself in New if src is anchored return 0 user.put_in_active_hand(G) diff --git a/code/modules/mob/living/login.dm b/code/modules/mob/living/login.dm index 11877529681..a64126db27a 100644 --- a/code/modules/mob/living/login.dm +++ b/code/modules/mob/living/login.dm @@ -8,7 +8,7 @@ //Vents if(ventcrawler) - src << "You can ventcrawl! Use alt+click on vents to quickly travel about the station." + to_chat(src, "You can ventcrawl! Use alt+click on vents to quickly travel about the station.") //Should update regardless of if we can ventcrawl, since we can end up in pipes in other ways. update_pipe_vision() diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 13e41254080..ef2cc344cdf 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -119,7 +119,7 @@ proc/get_radio_key_from_channel(var/channel) /mob/living/say(var/message, var/datum/language/speaking = null, var/verb = "says", var/alt_name="") if(client) if(client.prefs.muted & MUTE_IC) - src << "\red You cannot speak in IC (Muted)." + to_chat(src, "\red You cannot speak in IC (Muted).") return message = trim_strip_html_properly(message) @@ -160,7 +160,7 @@ proc/get_radio_key_from_channel(var/channel) verb = say_quote(message, speaking) if(is_muzzled()) - src << "You're muzzled and cannot speak!" + to_chat(src, "You're muzzled and cannot speak!") return message = trim_left(message) @@ -311,7 +311,7 @@ proc/get_radio_key_from_channel(var/channel) else //everything else failed, emote is probably invalid if(act == "help") return //except help, because help is handled individually - src << "\blue Unusable emote '[act]'. Say *help for a list." + to_chat(src, "\blue Unusable emote '[act]'. Say *help for a list.") /mob/living/whisper(message as text) message = trim_strip_html_properly(message) @@ -337,7 +337,7 @@ proc/get_radio_key_from_channel(var/channel) /mob/living/proc/whisper_say(var/message, var/datum/language/speaking = null, var/alt_name="", var/verb="whispers") if(client) if(client.prefs.muted & MUTE_IC) - src << "You cannot speak in IC (Muted)." + to_chat(src, "You cannot speak in IC (Muted).") return if(stat) @@ -346,7 +346,7 @@ proc/get_radio_key_from_channel(var/channel) return if(is_muzzled()) - src << "You're muzzled and cannot speak!" + to_chat(src, "You're muzzled and cannot speak!") return var/message_range = 1 diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 94305e770fd..b037cf1aa75 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -201,12 +201,12 @@ var/list/ai_verbs_default = list( ..() /mob/living/silicon/ai/proc/on_mob_init() - src << "You are playing the station's AI. The AI cannot move, but can interact with many objects while viewing them (through cameras)." - src << "To look at other parts of the station, click on yourself to get a camera menu." - src << "While observing through a camera, you can use most (networked) devices which you can see, such as computers, APCs, intercoms, doors, etc." - src << "To use something, simply click on it." - src << "Use say :b to speak to your cyborgs through binary. Use say :h to speak from an active holopad." - src << "For department channels, use the following say commands:" + to_chat(src, "You are playing the station's AI. The AI cannot move, but can interact with many objects while viewing them (through cameras).") + to_chat(src, "To look at other parts of the station, click on yourself to get a camera menu.") + to_chat(src, "While observing through a camera, you can use most (networked) devices which you can see, such as computers, APCs, intercoms, doors, etc.") + to_chat(src, "To use something, simply click on it.") + to_chat(src, "Use say :b to speak to your cyborgs through binary. Use say :h to speak from an active holopad.") + to_chat(src, "For department channels, use the following say commands:") var/radio_text = "" for(var/i = 1 to common_radio.channels.len) @@ -216,11 +216,11 @@ var/list/ai_verbs_default = list( if(i != common_radio.channels.len) radio_text += ", " - src << radio_text + to_chat(src, radio_text) if (!(ticker && ticker.mode && (mind in ticker.mode.malf_ai))) show_laws() - src << "These laws may be changed by other players, or by you being the traitor." + to_chat(src, "These laws may be changed by other players, or by you being the traitor.") job = "AI" @@ -330,7 +330,7 @@ var/list/ai_verbs_default = list( if("President") icon_state = "ai-president" else icon_state = "ai" //else - //usr <<"You can only change your display once!" +// to_chat(usr, "You can only change your display once!") //return @@ -358,7 +358,7 @@ var/list/ai_verbs_default = list( return if(message_cooldown) - src << "Please allow one minute to pass between announcements." + to_chat(src, "Please allow one minute to pass between announcements.") return var/input = input(usr, "Please write a message to announce to the station crew.", "A.I. Announcement") as message|null @@ -418,7 +418,7 @@ var/list/ai_verbs_default = list( anchored = !anchored // Toggles the anchor - src << "[anchored ? "You are now anchored." : "You are now unanchored."]" + to_chat(src, "[anchored ? "You are now anchored." : "You are now unanchored."]") /mob/living/silicon/ai/update_canmove() return 0 @@ -499,7 +499,7 @@ var/list/ai_verbs_default = list( if(H) H.attack_ai(src) //may as well recycle else - src << "Unable to locate the holopad." + to_chat(src, "Unable to locate the holopad.") if(href_list["say_word"]) play_vox_word(href_list["say_word"], null, src) @@ -510,7 +510,7 @@ var/list/ai_verbs_default = list( if(target && target.can_track()) ai_actual_track(target) else - src << "Target is not on or near any active cameras on the station." + to_chat(src, "Target is not on or near any active cameras on the station.") return if (href_list["trackbot"]) @@ -518,7 +518,7 @@ var/list/ai_verbs_default = list( if(target) ai_actual_track(target) else - src << "Target is not on or near any active cameras on the station." + to_chat(src, "Target is not on or near any active cameras on the station.") return if (href_list["callbot"]) //Command a bot to move to a selected location. @@ -526,7 +526,7 @@ var/list/ai_verbs_default = list( if(!Bot || Bot.remote_disabled || src.control_disabled) return //True if there is no bot found, the bot is manually emagged, or the AI is carded with wireless off. waypoint_mode = 1 - src << "Set your waypoint by clicking on a valid location free of obstructions." + to_chat(src, "Set your waypoint by clicking on a valid location free of obstructions.") return if (href_list["interface"]) //Remotely connect to a bot! @@ -542,7 +542,7 @@ var/list/ai_verbs_default = list( if (href_list["ai_take_control"]) //Mech domination var/obj/mecha/M = locate(href_list["ai_take_control"]) if(controlled_mech) - src << "You are already loaded into an onboard computer!" + to_chat(src, "You are already loaded into an onboard computer!") return if(M) M.transfer_ai(AI_MECH_HACK,src, usr) //Called om the mech itself. @@ -553,12 +553,12 @@ var/list/ai_verbs_default = list( if(A && target) A.cameraFollow = target - A << "Now tracking [target.name] on camera." + to_chat(A, "Now tracking [target.name] on camera.") if (usr.machine == null) usr.machine = usr while (src.cameraFollow == target) - usr << "Target is not on or near any active cameras on the station. We'll check again in 5 seconds (unless you use the cancel-camera verb)." + to_chat(usr, "Target is not on or near any active cameras on the station. We'll check again in 5 seconds (unless you use the cancel-camera verb).") sleep(40) continue @@ -574,11 +574,11 @@ var/list/ai_verbs_default = list( /mob/living/silicon/ai/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return switch(M.a_intent) @@ -630,7 +630,7 @@ var/list/ai_verbs_default = list( set name = "Access Robot Control" set desc = "Wirelessly control various automatic robots." if(stat == 2) - src << "Critical error. System offline." + to_chat(src, "Critical error. System offline.") return if(check_unable(AI_CHECK_WIRELESS | AI_CHECK_RADIO)) @@ -666,7 +666,7 @@ var/list/ai_verbs_default = list( else if(cameranet && cameranet.checkTurfVis(turf_check)) call_bot(turf_check) else - src << "Selected location is not visible." + to_chat(src, "Selected location is not visible.") /mob/living/silicon/ai/proc/call_bot(var/turf/waypoint) @@ -674,7 +674,7 @@ var/list/ai_verbs_default = list( return if(Bot.calling_ai && Bot.calling_ai != src) //Prevents an override if another AI is controlling this bot. - src << "Interface error. Unit is already in use." + to_chat(src, "Interface error. Unit is already in use.") return Bot.call_bot(src, waypoint) @@ -709,7 +709,7 @@ var/list/ai_verbs_default = list( return if(usr.stat == 2) - usr << "You can't change your camera network because you are dead!" + to_chat(usr, "You can't change your camera network because you are dead!") return var/mob/living/silicon/ai/U = usr @@ -741,7 +741,7 @@ var/list/ai_verbs_default = list( if(network in C.network) U.eyeobj.setLoc(get_turf(C)) break - src << "\blue Switched to [network] camera network." + to_chat(src, "\blue Switched to [network] camera network.") //End of code by Mord_Sith @@ -756,7 +756,7 @@ var/list/ai_verbs_default = list( set name = "AI Status" if(usr.stat == 2) - usr <<"You cannot change your emotional status because you are dead!" + to_chat(usr, "You cannot change your emotional status because you are dead!") return if(check_unable()) @@ -832,7 +832,7 @@ var/list/ai_verbs_default = list( var/obj/machinery/power/apc/apc = src.loc if(!istype(apc)) - src << "\blue You are already in your Main Core." + to_chat(src, "\blue You are already in your Main Core.") return apc.malfvacate() @@ -848,7 +848,7 @@ var/list/ai_verbs_default = list( camera_light_on = !camera_light_on if (!camera_light_on) - src << "Camera lights deactivated." + to_chat(src, "Camera lights deactivated.") for (var/obj/machinery/camera/C in lit_cameras) C.set_light(0) @@ -858,7 +858,7 @@ var/list/ai_verbs_default = list( light_cameras() - src << "Camera lights activated." + to_chat(src, "Camera lights activated.") /mob/living/silicon/ai/proc/sensor_mode() set name = "Set Sensor Augmentation" @@ -874,7 +874,7 @@ var/list/ai_verbs_default = list( var/newmsg = input("What would you like the arrival message to be? List of options: $name, $rank, $species, $gender, $age", "Change Arrival Message", arrivalmsg) as text if(newmsg != arrivalmsg) arrivalmsg = newmsg - usr << "The arrival message has been successfully changed." + to_chat(usr, "The arrival message has been successfully changed.") // Handled camera lighting, when toggled. // It will get the nearest camera from the eyeobj, lighting it. @@ -930,7 +930,7 @@ var/list/ai_verbs_default = list( if(check_unable(AI_CHECK_RADIO)) return - src << "Accessing Subspace Transceiver control..." + to_chat(src, "Accessing Subspace Transceiver control...") if (src.aiRadio) src.aiRadio.interact(src) @@ -942,13 +942,13 @@ var/list/ai_verbs_default = list( var/mob/living/carbon/human/H = target var/obj/item/weapon/card/id/id = H.wear_id if(istype(id) && id.is_untrackable()) - src << "Unable to locate an airlock" + to_chat(src, "Unable to locate an airlock") return if(H.digitalcamo) - src << "Unable to locate an airlock" + to_chat(src, "Unable to locate an airlock") return if (!near_camera(target)) - src << "Target is not near any active cameras." + to_chat(src, "Target is not near any active cameras.") return var/obj/machinery/door/airlock/tobeopened var/dist = -1 @@ -956,43 +956,43 @@ var/list/ai_verbs_default = list( if(!D.density) continue if(dist < 0) dist = get_dist(D, target) - //world << dist +// to_chat(world, dist) tobeopened = D else if(dist > get_dist(D, target)) dist = get_dist(D, target) - //world << dist +// to_chat(world, dist) tobeopened = D - //world << "found [tobeopened.name] closer" +// to_chat(world, "found [tobeopened.name] closer") else - //world << "[D.name] not close enough | [get_dist(D, target)] | [dist]" +// to_chat(world, "[D.name] not close enough | [get_dist(D, target)] | [dist]") if(tobeopened) switch(alert(src, "Do you want to open \the [tobeopened] for [target]?","Doorknob_v2a.exe","Yes","No")) if("Yes") var/nhref = "src=\ref[tobeopened];aiEnable=7" tobeopened.Topic(nhref, params2list(nhref), tobeopened, 1) - src << "\blue You've opened \the [tobeopened] for [target]." + to_chat(src, "\blue You've opened \the [tobeopened] for [target].") if("No") - src << "\red You deny the request." + to_chat(src, "\red You deny the request.") else - src << "\red You've failed to open an airlock for [target]" + to_chat(src, "\red You've failed to open an airlock for [target]") return /mob/living/silicon/ai/proc/check_unable(var/flags = 0) if(stat == DEAD) - usr << "You are dead!" + to_chat(usr, "You are dead!") return 1 if(lacks_power()) - usr << "Power systems failure!" + to_chat(usr, "Power systems failure!") return 1 if((flags & AI_CHECK_WIRELESS) && src.control_disabled) - usr << "Wireless control is disabled!" + to_chat(usr, "Wireless control is disabled!") return 1 if((flags & AI_CHECK_RADIO) && src.aiRadio.disabledAi) - src << "System Error - Transceiver Disabled!" + to_chat(src, "System Error - Transceiver Disabled!") return 1 return 0 @@ -1004,18 +1004,20 @@ var/list/ai_verbs_default = list( return if(interaction == AI_TRANS_TO_CARD)//The only possible interaction. Upload AI mob to a card. if(!mind) - user << "No intelligence patterns detected." //No more magical carding of empty cores, AI RETURN TO BODY!!!11 + to_chat(user, "No intelligence patterns detected.")//No more magical carding of empty cores, AI RETURN TO BODY!!!11 + return if (mind.special_role == "malfunction") //AI MALF!! - user << "ERROR: Remote transfer interface disabled."//Do ho ho ho~ + to_chat(user, "ERROR: Remote transfer interface disabled.")//Do ho ho ho~ + return new /obj/structure/AIcore/deactivated(loc)//Spawns a deactivated terminal at AI location. aiRestorePowerRoutine = 0//So the AI initially has power. control_disabled = 1//Can't control things remotely if you're stuck in a card! aiRadio.disabledAi = 1 //No talking on the built-in radio for you either! loc = card//Throw AI into the card. - src << "You have been downloaded to a mobile storage device. Remote device connection severed." - user << "Transfer successful: [name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory." + to_chat(src, "You have been downloaded to a mobile storage device. Remote device connection severed.") + to_chat(user, "Transfer successful: [name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory.") // Pass lying down or getting up to our pet human, if we're in a rig. /mob/living/silicon/ai/lay_down() diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm index 8fc31c53828..d65e6e0d7d8 100644 --- a/code/modules/mob/living/silicon/ai/examine.dm +++ b/code/modules/mob/living/silicon/ai/examine.dm @@ -23,7 +23,7 @@ msg += "" msg += "*---------*" - user << msg + to_chat(user, msg) user.showLaws(src) diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm index 9c4ab44a5ca..b18c011bb23 100644 --- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm +++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm @@ -115,7 +115,7 @@ var/datum/cameranet/cameranet = new() var/x2 = min(world.maxx, T.x + (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1) var/y2 = min(world.maxy, T.y + (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1) - //world << "X1: [x1] - Y1: [y1] - X2: [x2] - Y2: [y2]" +// to_chat(world, "X1: [x1] - Y1: [y1] - X2: [x2] - Y2: [y2]") for(var/x = x1; x <= x2; x += CHUNK_SIZE) for(var/y = y1; y <= y2; y += CHUNK_SIZE) diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index b8d27787247..317aae2dd6b 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -101,7 +101,7 @@ if(src.eyeobj && src.loc) src.eyeobj.loc = src.loc else - src << "ERROR: Eyeobj not found. Creating new eye..." + to_chat(src, "ERROR: Eyeobj not found. Creating new eye...") src.eyeobj = new(src.loc) src.eyeobj.ai = src src.eyeobj.name = "[src.name] (AI Eye)" // Give it a name @@ -115,4 +115,4 @@ if(usr.stat == 2) return //won't work if dead acceleration = !acceleration - usr << "Camera acceleration has been toggled [acceleration ? "on" : "off"]." + to_chat(usr, "Camera acceleration has been toggled [acceleration ? "on" : "off"].") diff --git a/code/modules/mob/living/silicon/ai/latejoin.dm b/code/modules/mob/living/silicon/ai/latejoin.dm index 2da08205836..585c484a73a 100644 --- a/code/modules/mob/living/silicon/ai/latejoin.dm +++ b/code/modules/mob/living/silicon/ai/latejoin.dm @@ -16,7 +16,7 @@ var/global/list/empty_playable_ai_cores = list() set desc = "Wipe your core. This is functionally equivalent to cryo or robotic storage, freeing up your job slot." if(ticker && ticker.mode && ticker.mode.name == "AI malfunction") - usr << "You cannot use this verb in malfunction. If you need to leave, please adminhelp." + to_chat(usr, "You cannot use this verb in malfunction. If you need to leave, please adminhelp.") return // Guard against misclicks, this isn't the sort of thing we want happening accidentally diff --git a/code/modules/mob/living/silicon/ai/laws.dm b/code/modules/mob/living/silicon/ai/laws.dm index f36c32bb8d4..74816aeeb89 100755 --- a/code/modules/mob/living/silicon/ai/laws.dm +++ b/code/modules/mob/living/silicon/ai/laws.dm @@ -10,7 +10,7 @@ who = world else who = src - who << "Obey these laws:" + to_chat(who, "Obey these laws:") src.laws_sanity_check() src.laws.show_laws(who) diff --git a/code/modules/mob/living/silicon/ai/life.dm b/code/modules/mob/living/silicon/ai/life.dm index 727d03b5696..dabaf2c4153 100644 --- a/code/modules/mob/living/silicon/ai/life.dm +++ b/code/modules/mob/living/silicon/ai/life.dm @@ -18,7 +18,7 @@ if(malfhack) if(malfhack.aidisabled) - src << "ERROR: APC access disabled, hack attempt canceled." + to_chat(src, "ERROR: APC access disabled, hack attempt canceled.") malfhacking = 0 malfhack = null @@ -47,11 +47,11 @@ see_invisible = see_override if(aiRestorePowerRoutine == 2) - src << "Alert cancelled. Power has been restored without our assistance." + to_chat(src, "Alert cancelled. Power has been restored without our assistance.") aiRestorePowerRoutine = 0 clear_fullscreen("blind") else if(aiRestorePowerRoutine == 3) - src << "Alert cancelled. Power has been restored." + to_chat(src, "Alert cancelled. Power has been restored.") aiRestorePowerRoutine = 0 clear_fullscreen("blind") @@ -69,31 +69,29 @@ if(((!my_area.power_equip) || istype(T, /turf/space)) && !is_type_in_list(loc, list(/obj/item, /obj/mecha))) if(!aiRestorePowerRoutine) aiRestorePowerRoutine = 1 - - src << "You have lost power!" - + to_chat(src, "You have lost power!") if(!is_special_character(src)) set_zeroth_law("") spawn(20) - src << "Backup battery online. Scanners, camera, and radio interface offline. Beginning fault-detection." + to_chat(src, "Backup battery online. Scanners, camera, and radio interface offline. Beginning fault-detection.") sleep(50) my_area = get_area(src) T = get_turf(src) if(my_area && my_area.power_equip && !istype(T, /turf/space)) - src << "Alert cancelled. Power has been restored without our assistance." + to_chat(src, "Alert cancelled. Power has been restored without our assistance.") aiRestorePowerRoutine = 0 return - src << "Fault confirmed: missing external power. Shutting down main control system to save power." + to_chat(src, "Fault confirmed: missing external power. Shutting down main control system to save power.") sleep(20) - src << "Emergency control system online. Verifying connection to power network." + to_chat(src, "Emergency control system online. Verifying connection to power network.") sleep(50) T = get_turf(src) if(istype(T, /turf/space)) - src << "Unable to verify! No power connection detected!" + to_chat(src, "Unable to verify! No power connection detected!") aiRestorePowerRoutine = 2 return - src << "Connection verified. Searching for APC in power network." + to_chat(src, "Connection verified. Searching for APC in power network.") sleep(50) my_area = get_area(src) @@ -110,31 +108,36 @@ if(!theAPC) switch(PRP) - if(1) src << "Unable to locate APC!" - else src << "Lost connection with the APC!" + if(1) + to_chat(src, "Unable to locate APC!") + else + to_chat(src, "Lost connection with the APC!") aiRestorePowerRoutine = 2 return if(my_area.power_equip) if (!istype(T, /turf/space)) - src << "Alert cancelled. Power has been restored without our assistance." + to_chat(src, "Alert cancelled. Power has been restored without our assistance.") aiRestorePowerRoutine = 0 clear_fullscreen("blind") return switch(PRP) - if(1) src << "APC located. Optimizing route to APC to avoid needless power waste." - if(2) src << "Best route identified. Hacking offline APC power port." - if(3) src << "Power port upload access confirmed. Loading control program into APC power port software." + if(1) + to_chat(src, "APC located. Optimizing route to APC to avoid needless power waste.") + if(2) + to_chat(src, "Best route identified. Hacking offline APC power port.") + if(3) + to_chat(src, "Power port upload access confirmed. Loading control program into APC power port software.") if(4) - src << "Transfer complete. Forcing APC to execute program." + to_chat(src, "Transfer complete. Forcing APC to execute program.") sleep(50) - src << "Receiving control information from APC." + to_chat(src, "Receiving control information from APC.") sleep(2) //bring up APC dialog aiRestorePowerRoutine = 3 theAPC.attack_ai(src) - src << "Here are your current laws:" + to_chat(src, "Here are your current laws:") src.show_laws() //WHY THE FUCK IS THIS HERE sleep(50) theAPC = null diff --git a/code/modules/mob/living/silicon/ai/say.dm b/code/modules/mob/living/silicon/ai/say.dm index 2c9d396448e..d5315deaefb 100644 --- a/code/modules/mob/living/silicon/ai/say.dm +++ b/code/modules/mob/living/silicon/ai/say.dm @@ -30,7 +30,7 @@ var/const/VOX_PATH = "sound/vox_fem/" return if(announcing_vox > world.time) - src << "Please wait [round((announcing_vox - world.time) / 10)] seconds." + to_chat(src, "Please wait [round((announcing_vox - world.time) / 10)] seconds.") return var/message = input(src, "WARNING: Misuse of this verb can result in you being job banned. More help is available in 'Announcement Help'", "Announcement", last_announcement) as text|null @@ -58,7 +58,7 @@ var/const/VOX_PATH = "sound/vox_fem/" incorrect_words += word if(incorrect_words.len) - src << "These words are not available on the announcement system: [english_list(incorrect_words)]." + to_chat(src, "These words are not available on the announcement system: [english_list(incorrect_words)].") return announcing_vox = world.time + VOX_DELAY @@ -83,9 +83,9 @@ var/const/VOX_PATH = "sound/vox_fem/" if(M.client) var/turf/T = get_turf(M) if(T && T.z == z_level && !isdeaf(M)) - M << voice + to_chat(M, voice) else - only_listener << voice + to_chat(only_listener, voice) return 1 return 0 @@ -94,6 +94,6 @@ var/const/VOX_PATH = "sound/vox_fem/" /client/proc/preload_vox() var/list/vox_files = flist(VOX_PATH) for(var/file in vox_files) - // src << "Downloading [file]" +// to_chat(src, "Downloading [file]") var/sound/S = sound("[VOX_PATH][file]") src << browse_rsc(S) diff --git a/code/modules/mob/living/silicon/laws.dm b/code/modules/mob/living/silicon/laws.dm index 9cb442e3d37..27e431e1675 100644 --- a/code/modules/mob/living/silicon/laws.dm +++ b/code/modules/mob/living/silicon/laws.dm @@ -18,7 +18,7 @@ /mob/living/silicon/robot/set_zeroth_law(var/law, var/law_borg) ..() if(tracking_entities) - src << "Internal camera is currently being accessed." + to_chat(src, "Internal camera is currently being accessed.") /mob/living/silicon/proc/add_ion_law(var/law) laws_sanity_check() @@ -75,7 +75,7 @@ /mob/living/silicon/proc/dostatelaws(var/method, var/prefix, var/datum/ai_laws/laws) if(stating_laws[prefix]) - src << "[method]: Already stating laws using this communication method." + to_chat(src, "[method]: Already stating laws using this communication method.") return stating_laws[prefix] = 1 @@ -88,7 +88,7 @@ break if(!can_state) - src << "[method]: Unable to state laws. Communication method unavailable." + to_chat(src, "[method]: Unable to state laws. Communication method unavailable.") stating_laws[prefix] = 0 /mob/living/silicon/proc/statelaw(var/law) diff --git a/code/modules/mob/living/silicon/pai/emote.dm b/code/modules/mob/living/silicon/pai/emote.dm index a8eeac8cbb7..8328290ba80 100644 --- a/code/modules/mob/living/silicon/pai/emote.dm +++ b/code/modules/mob/living/silicon/pai/emote.dm @@ -1,6 +1,6 @@ /mob/living/silicon/pai/emote(var/act, var/m_type=1, var/message = null) switch(act) if ("help") - src << "ping, beep, buzz." + to_chat(src, "ping, beep, buzz.") ..(act, m_type, message) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/pai/examine.dm b/code/modules/mob/living/silicon/pai/examine.dm index 07c718a6ff0..814efb1899b 100644 --- a/code/modules/mob/living/silicon/pai/examine.dm +++ b/code/modules/mob/living/silicon/pai/examine.dm @@ -21,5 +21,5 @@ msg += "" msg += "*---------*" - user << msg + to_chat(user, msg) */ \ No newline at end of file diff --git a/code/modules/mob/living/silicon/pai/life.dm b/code/modules/mob/living/silicon/pai/life.dm index 8b7c7863afc..ac8e20238d3 100644 --- a/code/modules/mob/living/silicon/pai/life.dm +++ b/code/modules/mob/living/silicon/pai/life.dm @@ -8,7 +8,7 @@ if(silence_time) if(world.timeofday >= silence_time) silence_time = null - src << "Communication circuit reinitialized. Speech and messaging functionality restored." + to_chat(src, "Communication circuit reinitialized. Speech and messaging functionality restored.") if(cable) if(get_dist(src, cable) > 1) diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index 0d9d81d3bf5..82cc717dab9 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -163,7 +163,7 @@ // 33% chance of no additional effect src.silence_time = world.timeofday + 120 * 10 // Silence for 2 minutes - src << "Communication circuit overload. Shutting down and reloading communication circuits - speech and messaging functionality will be unavailable until the reboot is complete." + to_chat(src, "Communication circuit overload. Shutting down and reloading communication circuits - speech and messaging functionality will be unavailable until the reboot is complete.") if(prob(20)) var/turf/T = get_turf_or_move(src.loc) for (var/mob/M in viewers(T)) @@ -174,7 +174,7 @@ if(1) src.master = null src.master_dna = null - src << "You feel unbound." + to_chat(src, "You feel unbound.") if(2) var/command if(severity == 1) @@ -182,9 +182,9 @@ else command = pick("Serve", "Kill", "Love", "Hate", "Disobey", "Devour", "Fool", "Enrage", "Entice", "Observe", "Judge", "Respect", "Disrespect", "Consume", "Educate", "Destroy", "Disgrace", "Amuse", "Entertain", "Ignite", "Glorify", "Memorialize", "Analyze") src.pai_law0 = "[command] your master." - src << "Pr1m3 d1r3c71v3 uPd473D." + to_chat(src, "Pr1m3 d1r3c71v3 uPd473D.") if(3) - src << "You feel an electric surge run through your circuitry and become acutely aware at how lucky you are that you can still feel at all." + to_chat(src, "You feel an electric surge run through your circuitry and become acutely aware at how lucky you are that you can still feel at all.") /mob/living/silicon/pai/ex_act(severity) ..() @@ -224,11 +224,11 @@ /mob/living/silicon/pai/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(src.loc, /turf) && istype(src.loc.loc, /area/start)) - M << "You cannot attack someone in the spawn area." + to_chat(M, "You cannot attack someone in the spawn area.") return switch(M.a_intent) @@ -283,7 +283,7 @@ medicalActive2 = null medical_cannotfind = 0 nanomanager.update_uis(src) - usr << "You reset your record-viewing software." + to_chat(usr, "You reset your record-viewing software.") /mob/living/silicon/pai/cancel_camera() set category = "pAI Commands" @@ -303,7 +303,7 @@ var/cameralist[0] if(usr.stat == 2) - usr << "You can't change your camera network because you are dead!" + to_chat(usr, "You can't change your camera network because you are dead!") return for (var/obj/machinery/camera/C in Cameras) @@ -314,7 +314,7 @@ cameralist[C.network] = C.network src.network = input(usr, "Which network would you like to view?") as null|anything in cameralist - src << "\blue Switched to [src.network] camera network." + to_chat(src, "\blue Switched to [src.network] camera network.") //End of code by Mord_Sith */ @@ -341,11 +341,11 @@ return if(src.loc != card) - src << "\red You are already in your mobile form!" + to_chat(src, "\red You are already in your mobile form!") return if(world.time <= last_special) - src << "\red You must wait before folding your chassis out again!" + to_chat(src, "\red You must wait before folding your chassis out again!") return last_special = world.time + 200 @@ -377,11 +377,11 @@ return if(src.loc == card) - src << "\red You are already in your card form!" + to_chat(src, "\red You are already in your card form!") return if(world.time <= last_special) - src << "\red You must wait before returning to your card form!" + to_chat(src, "\red You must wait before returning to your card form!") return close_up() @@ -431,7 +431,7 @@ else resting = !resting icon_state = resting ? "[chassis]_rest" : "[chassis]" - src << "You are now [resting ? "resting" : "getting up"]" + to_chat(src, "You are now [resting ? "resting" : "getting up"]") canmove = !resting @@ -440,7 +440,7 @@ if(istype(W, /obj/item/stack/nanopaste)) var/obj/item/stack/nanopaste/N = W if (stat == DEAD) - user << "\The [src] is beyond help, at this point." + to_chat(user, "\The [src] is beyond help, at this point.") else if (getBruteLoss() || getFireLoss()) adjustBruteLoss(-15) adjustFireLoss(-15) @@ -449,7 +449,7 @@ user.visible_message("[user.name] applied some [W] at [src]'s damaged areas.",\ "You apply some [W] at [src.name]'s damaged areas.") else - user << "All [src.name]'s systems are nominal." + to_chat(user, "All [src.name]'s systems are nominal.") return else if(W.force) @@ -512,7 +512,7 @@ if(stat || sleeping || paralysis || weakened) return if(istype(AM,/obj/item)) - src << "You are far too small to pull anything!" + to_chat(src, "You are far too small to pull anything!") return /mob/living/silicon/pai/update_canmove() @@ -538,7 +538,7 @@ pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\nIt is [pose]" - user << msg + to_chat(user, msg) /mob/living/silicon/pai/bullet_act(var/obj/item/projectile/Proj) ..(Proj) @@ -576,9 +576,9 @@ if(Adjacent(H)) get_scooped(H) else - src << "You need to stay in reaching distance to be picked up." + to_chat(src, "You need to stay in reaching distance to be picked up.") if("No") - src << "[H] decided not to pick you up." + to_chat(src, "[H] decided not to pick you up.") else if(Adjacent(H)) get_scooped(H) diff --git a/code/modules/mob/living/silicon/pai/personality.dm b/code/modules/mob/living/silicon/pai/personality.dm index c4928878ce9..49b7e394d44 100644 --- a/code/modules/mob/living/silicon/pai/personality.dm +++ b/code/modules/mob/living/silicon/pai/personality.dm @@ -17,10 +17,10 @@ var/savefile/F = new /savefile(src.savefile_path(user)) - F["name"] << src.name - F["description"] << src.description - F["role"] << src.role - F["comments"] << src.comments + to_chat(F["name"], src.name) + to_chat(F["description"], src.description) + to_chat(F["role"], src.role) + to_chat(F["comments"], src.comments) F["version"] << 1 diff --git a/code/modules/mob/living/silicon/pai/recruit.dm b/code/modules/mob/living/silicon/pai/recruit.dm index fe785adf929..980e1bb09ee 100644 --- a/code/modules/mob/living/silicon/pai/recruit.dm +++ b/code/modules/mob/living/silicon/pai/recruit.dm @@ -351,7 +351,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates if(O.client && (ROLE_PAI in O.client.prefs.be_special)) if(player_old_enough_antag(O.client,ROLE_PAI)) if(check_recruit(O)) - O << "\blue A pAI card is looking for personalities. (Teleport | Sign Up)" + to_chat(O, "\blue A pAI card is looking for personalities. (Teleport | Sign Up)") //question(O.client) proc/check_recruit(var/mob/dead/observer/O) if(jobban_isbanned(O, "pAI") || jobban_isbanned(O,"nonhumandept")) diff --git a/code/modules/mob/living/silicon/pai/say.dm b/code/modules/mob/living/silicon/pai/say.dm index e1cb9f0f800..2c7bc900d68 100644 --- a/code/modules/mob/living/silicon/pai/say.dm +++ b/code/modules/mob/living/silicon/pai/say.dm @@ -1,5 +1,5 @@ /mob/living/silicon/pai/say(var/msg) if(silence_time) - src << "Communication circuits remain uninitialized." + to_chat(src, "Communication circuits remain uninitialized.") else ..(msg) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm index ef36f5b94c9..e85345db226 100644 --- a/code/modules/mob/living/silicon/pai/software.dm +++ b/code/modules/mob/living/silicon/pai/software.dm @@ -19,7 +19,7 @@ var/global/list/default_pai_software = list() var/datum/pai_software/P = new type() if(pai_software_by_key[P.id]) var/datum/pai_software/O = pai_software_by_key[P.id] - world << "pAI software module [P.name] has the same key as [O.name]!" + to_chat(world, "pAI software module [P.name] has the same key as [O.name]!") r = 0 continue pai_software_by_key[P.id] = P diff --git a/code/modules/mob/living/silicon/pai/software_modules.dm b/code/modules/mob/living/silicon/pai/software_modules.dm index 1be45da5786..9019a61b206 100644 --- a/code/modules/mob/living/silicon/pai/software_modules.dm +++ b/code/modules/mob/living/silicon/pai/software_modules.dm @@ -56,7 +56,7 @@ while(!istype(M, /mob/living)) if(!M || !M.loc || count > 6) //For a runtime where M ends up in nullspace (similar to bluespace but less colourful) - src << "You are not being carried by anyone!" + to_chat(src, "You are not being carried by anyone!") return 0 M = M.loc count++ @@ -68,13 +68,13 @@ for (var/mob/v in viewers(T)) v.show_message("[M] presses \his thumb against [P].", 3, "[P] makes a sharp clicking sound as it extracts DNA material from [M].", 2) var/datum/dna/dna = M.dna - P << "

[M]'s UE string : [dna.unique_enzymes]

" + to_chat(P, "

[M]'s UE string : [dna.unique_enzymes]

") if(dna.unique_enzymes == P.master_dna) - P << "DNA is a match to stored Master DNA." + to_chat(P, "DNA is a match to stored Master DNA.") else - P << "DNA does not match stored Master DNA." + to_chat(P, "DNA does not match stored Master DNA.") else - P << "[M] does not seem like \he is going to provide a DNA sample willingly." + to_chat(P, "[M] does not seem like \he is going to provide a DNA sample willingly.") return 1 /datum/pai_software/radio_config @@ -502,9 +502,9 @@ if(!T || !(T.z in config.contact_levels)) break if(T.loc) - AI << "Network Alert: Brute-force encryption crack in progress in [T.loc]." + to_chat(AI, "Network Alert: Brute-force encryption crack in progress in [T.loc].") else - AI << "Network Alert: Brute-force encryption crack in progress. Unable to pinpoint location." + to_chat(AI, "Network Alert: Brute-force encryption crack in progress. Unable to pinpoint location.") var/obj/machinery/door/D = cable.machine if(!istype(D)) hack_aborted = 1 @@ -702,7 +702,7 @@ while(!isliving(held)) if(!held || !held.loc || count > 6) //For a runtime where M ends up in nullspace (similar to bluespace but less colourful) - src << "You are not being carried by anyone!" + to_chat(src, "You are not being carried by anyone!") return 0 held = held.loc count++ diff --git a/code/modules/mob/living/silicon/robot/component.dm b/code/modules/mob/living/silicon/robot/component.dm index ae5ab514307..c6ae0f57ddf 100644 --- a/code/modules/mob/living/silicon/robot/component.dm +++ b/code/modules/mob/living/silicon/robot/component.dm @@ -184,10 +184,10 @@ /obj/item/device/robotanalyzer/attack(mob/living/M as mob, mob/living/user as mob) if(( (CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50)) user.visible_message("[user] has analyzed the floor's vitals!", "You try to analyze the floor's vitals!") - user << "Analyzing Results for The floor:\n\t Overall Status: Healthy" - user << "\t Damage Specifics: [0]-[0]-[0]-[0]" - user << "Key: Suffocation/Toxin/Burns/Brute" - user << "Body Temperature: ???" + to_chat(user, "Analyzing Results for The floor:\n\t Overall Status: Healthy") + to_chat(user, "\t Damage Specifics: [0]-[0]-[0]-[0]") + to_chat(user, "Key: Suffocation/Toxin/Burns/Brute") + to_chat(user, "Body Temperature: ???") return var/scan_type @@ -196,7 +196,7 @@ else if(istype(M, /mob/living/carbon/human)) scan_type = "prosthetics" else - user << "You can't analyze non-robotic things!" + to_chat(user, "You can't analyze non-robotic things!") return user.visible_message("[user] has analyzed [M]'s components.","You have analyzed [M]'s components.") @@ -204,14 +204,14 @@ if("robot") var/BU = M.getFireLoss() > 50 ? "[M.getFireLoss()]" : M.getFireLoss() var/BR = M.getBruteLoss() > 50 ? "[M.getBruteLoss()]" : M.getBruteLoss() - user << "Analyzing Results for [M]:\n\t Overall Status: [M.stat > 1 ? "fully disabled" : "[M.health]% functional"]" - user << "\t Key: Electronics/Brute" - user << "\t Damage Specifics: [BU] - [BR]" + to_chat(user, "Analyzing Results for [M]:\n\t Overall Status: [M.stat > 1 ? "fully disabled" : "[M.health]% functional"]") + to_chat(user, "\t Key: Electronics/Brute") + to_chat(user, "\t Damage Specifics: [BU] - [BR]") if(M.timeofdeath && M.stat == DEAD) - user << "Time of Disable: [M.timeofdeath]" + to_chat(user, "Time of Disable: [M.timeofdeath]") var/mob/living/silicon/robot/H = M var/list/damaged = H.get_damaged_components(1,1,1) - user << "Localized Damage:" + to_chat(user, "Localized Damage:") if(length(damaged)>0) for(var/datum/robot_component/org in damaged) user.show_message(text("\t []: [][] - [] - [] - []", \ @@ -222,35 +222,35 @@ (org.toggled) ? "Toggled ON" : "Toggled OFF",\ (org.powered) ? "Power ON" : "Power OFF"),1) else - user << "\t Components are OK." + to_chat(user, "\t Components are OK.") if(H.emagged && prob(5)) - user << "\t ERROR: INTERNAL SYSTEMS COMPROMISED" + to_chat(user, "\t ERROR: INTERNAL SYSTEMS COMPROMISED") if("prosthetics") var/mob/living/carbon/human/H = M - user << "Analyzing Results for \the [H]:" - user << "Key: Electronics/Brute" + to_chat(user, "Analyzing Results for \the [H]:") + to_chat(user, "Key: Electronics/Brute") - user << "External prosthetics:" + to_chat(user, "External prosthetics:") var/organ_found if(H.internal_organs.len) for(var/obj/item/organ/external/E in H.organs) if(!(E.status & ORGAN_ROBOT)) continue organ_found = 1 - user << "[E.name]: [round(E.brute_dam)] [round(E.burn_dam)]" + to_chat(user, "[E.name]: [round(E.brute_dam)] [round(E.burn_dam)]") if(!organ_found) - user << "No prosthetics located." - user << "
" - user << "Internal prosthetics:" + to_chat(user, "No prosthetics located.") + to_chat(user, "
") + to_chat(user, "Internal prosthetics:") organ_found = null if(H.internal_organs.len) for(var/obj/item/organ/internal/O in H.internal_organs) if(!(O.status & ORGAN_ROBOT)) continue organ_found = 1 - user << "[capitalize(O.name)]: [O.damage]" + to_chat(user, "[capitalize(O.name)]: [O.damage]") if(!organ_found) - user << "No prosthetics located." + to_chat(user, "No prosthetics located.") src.add_fingerprint(user) diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index ab82709dc35..9a5c1a9f4d5 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -108,11 +108,11 @@ /mob/living/silicon/robot/drone/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/borg/upgrade/)) - user << "\red The maintenance drone chassis not compatible with \the [W]." + to_chat(user, "\red The maintenance drone chassis not compatible with \the [W].") return else if (istype(W, /obj/item/weapon/crowbar)) - user << "The machine is hermetically sealed. You can't open the case." + to_chat(user, "The machine is hermetically sealed. You can't open the case.") return else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) @@ -120,17 +120,17 @@ if(stat == 2) if(!config.allow_drone_spawn || emagged || health < -35) //It's dead, Dave. - user << "\red The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one." + to_chat(user, "\red The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one.") return if(!allowed(usr)) - user << "\red Access denied." + to_chat(user, "\red Access denied.") return var/delta = (world.time / 10) - last_reboot if(reboot_cooldown > delta) var/cooldown_time = round(reboot_cooldown - ((world.time / 10) - last_reboot), 1) - usr << "\red The reboot system is currently offline. Please wait another [cooldown_time] seconds." + to_chat(usr, "\red The reboot system is currently offline. Please wait another [cooldown_time] seconds.") return user.visible_message("\red \the [user] swipes \his ID card through \the [src], attempting to reboot it.", "\red You swipe your ID card through \the [src], attempting to reboot it.") @@ -152,7 +152,7 @@ if(allowed(usr)) shut_down() else - user << "\red Access denied." + to_chat(user, "\red Access denied.") return @@ -160,7 +160,7 @@ /mob/living/silicon/robot/drone/emag_act(user as mob) if(!client || stat == 2) - user << "\red There's not much point subverting this heap of junk." + to_chat(user, "\red There's not much point subverting this heap of junk.") return if(!ishuman(user)) @@ -168,12 +168,12 @@ var/mob/living/carbon/human/H = user if(emagged) - src << "\red [user] attempts to load subversive software into you, but your hacked subroutined ignore the attempt." - user << "\red You attempt to subvert [src], but the sequencer has no effect." + to_chat(src, "\red [user] attempts to load subversive software into you, but your hacked subroutined ignore the attempt.") + to_chat(user, "\red You attempt to subvert [src], but the sequencer has no effect.") return - user << "\red You swipe the sequencer across [src]'s interface and watch its eyes flicker." - src << "\red You feel a sudden burst of malware loaded into your execute-as-root buffer. Your tiny brain methodically parses, loads and executes the script." + to_chat(user, "\red You swipe the sequencer across [src]'s interface and watch its eyes flicker.") + to_chat(src, "\red You feel a sudden burst of malware loaded into your execute-as-root buffer. Your tiny brain methodically parses, loads and executes the script.") message_admins("[key_name_admin(user)] emagged drone [key_name_admin(src)]. Laws overridden.") log_game("[key_name(user)] emagged drone [key_name(src)]. Laws overridden.") @@ -188,9 +188,9 @@ laws = new /datum/ai_laws/syndicate_override set_zeroth_law("Only [H.real_name] and people he designates as being such are Syndicate Agents.") - src << "Obey these laws:" + to_chat(src, "Obey these laws:") laws.show_laws(src) - src << "\red \b ALERT: [H.real_name] is your new master. Obey your new laws and his commands." + to_chat(src, "\red \b ALERT: [H.real_name] is your new master. Obey your new laws and his commands.") return //DRONE LIFE/DEATH @@ -229,18 +229,18 @@ /mob/living/silicon/robot/drone/proc/law_resync() if(stat != 2) if(emagged) - src << "\red You feel something attempting to modify your programming, but your hacked subroutines are unaffected." + to_chat(src, "\red You feel something attempting to modify your programming, but your hacked subroutines are unaffected.") else - src << "\red A reset-to-factory directive packet filters through your data connection, and you obediently modify your programming to suit it." + to_chat(src, "\red A reset-to-factory directive packet filters through your data connection, and you obediently modify your programming to suit it.") full_law_reset() show_laws() /mob/living/silicon/robot/drone/proc/shut_down() if(stat != 2) if(emagged) - src << "\red You feel a system kill order percolate through your tiny brain, but it doesn't seem like a good idea to you." + to_chat(src, "\red You feel a system kill order percolate through your tiny brain, but it doesn't seem like a good idea to you.") else - src << "\red You feel a system kill order percolate through your tiny brain, and you obediently destroy yourself." + to_chat(src, "\red You feel a system kill order percolate through your tiny brain, and you obediently destroy yourself.") death() /mob/living/silicon/robot/drone/proc/full_law_reset() @@ -278,14 +278,14 @@ player.mob.mind.transfer_to(src) lawupdate = 0 - src << "Systems rebooted. Loading base pattern maintenance protocol... loaded." + to_chat(src, "Systems rebooted. Loading base pattern maintenance protocol... loaded.") full_law_reset() - src << "
You are a maintenance drone, a tiny-brained robotic repair machine." - src << "You have no individual will, no personality, and no drives or urges other than your laws." - src << "Use ; to talk to other drones, and say to speak silently to your nearby fellows." - src << "Remember, you are lawed against interference with the crew. Also remember, you DO NOT take orders from the AI." - src << "Don't invade their worksites, don't steal their resources, don't tell them about the changeling in the toilets." - src << "Make sure crew members do not notice you.." + to_chat(src, "
You are a maintenance drone, a tiny-brained robotic repair machine.") + to_chat(src, "You have no individual will, no personality, and no drives or urges other than your laws.") + to_chat(src, "Use ; to talk to other drones, and say to speak silently to your nearby fellows.") + to_chat(src, "Remember, you are lawed against interference with the crew. Also remember, you DO NOT take orders from the AI.") + to_chat(src, "Don't invade their worksites, don't steal their resources, don't tell them about the changeling in the toilets.") + to_chat(src, "Make sure crew members do not notice you..") /* sprite["Default"] = "repairbot" @@ -321,12 +321,12 @@ else if(istype(AM,/obj/item)) var/obj/item/O = AM if(O.w_class > 2) - src << "You are too small to pull that." + to_chat(src, "You are too small to pull that.") return else ..() else - src << "You are too small to pull that." + to_chat(src, "You are too small to pull that.") return /mob/living/silicon/robot/drone/add_robot_verbs() diff --git a/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm b/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm index 50b846c0192..305c89e87cb 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm @@ -10,13 +10,13 @@ mail_destination = 0 return - src << "\blue You configure your internal beacon, tagging yourself for delivery to '[tag]'." + to_chat(src, "\blue You configure your internal beacon, tagging yourself for delivery to '[tag]'.") mail_destination = TAGGERLOCATIONS.Find(tag) //Auto flush if we use this verb inside a disposal chute. var/obj/machinery/disposal/D = src.loc if(istype(D)) - src << "\blue \The [D] acknowledges your signal." + to_chat(src, "\blue \The [D] acknowledges your signal.") D.flush_count = D.flush_every_ticks return @@ -28,10 +28,10 @@ if (layer != TURF_LAYER+0.2) layer = TURF_LAYER+0.2 - src << text("\blue You are now hiding.") + to_chat(src, text("\blue You are now hiding.")) else layer = MOB_LAYER - src << text("\blue You have stopped hiding.") + to_chat(src, text("\blue You have stopped hiding.")) /mob/living/silicon/robot/drone/verb/light() set name = "Light On/Off" diff --git a/code/modules/mob/living/silicon/robot/drone/drone_console.dm b/code/modules/mob/living/silicon/robot/drone/drone_console.dm index 7717834b7bb..5e7077f7000 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_console.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_console.dm @@ -20,7 +20,7 @@ return if(!allowed(user)) - user << "\red Access denied." + to_chat(user, "\red Access denied.") return interact(user) @@ -54,7 +54,7 @@ return if(!allowed(usr)) - usr << "\red Access denied." + to_chat(usr, "\red Access denied.") return if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon))) @@ -69,21 +69,21 @@ return drone_call_area = t_area - usr << "\blue You set the area selector to [drone_call_area]." + to_chat(usr, "\blue You set the area selector to [drone_call_area].") else if (href_list["ping"]) - usr << "\blue You issue a maintenance request for all active drones, highlighting [drone_call_area]." + to_chat(usr, "\blue You issue a maintenance request for all active drones, highlighting [drone_call_area].") for(var/mob/living/silicon/robot/drone/D in world) if(D.client && D.stat == 0) - D << "-- Maintenance drone presence requested in: [drone_call_area]." + to_chat(D, "-- Maintenance drone presence requested in: [drone_call_area].") else if (href_list["resync"]) var/mob/living/silicon/robot/drone/D = locate(href_list["resync"]) if(D.stat != 2) - usr << "\red You issue a law synchronization directive for the drone." + to_chat(usr, "\red You issue a law synchronization directive for the drone.") D.law_resync() else if (href_list["shutdown"]) @@ -91,7 +91,7 @@ var/mob/living/silicon/robot/drone/D = locate(href_list["shutdown"]) if(D.stat != 2) - usr << "\red You issue a kill command for the unfortunate drone." + to_chat(usr, "\red You issue a kill command for the unfortunate drone.") message_admins("[key_name_admin(usr)] issued kill order for drone [key_name_admin(D)] from control console.") log_game("[key_name(usr)] issued kill order for [key_name(src)] from control console.") D.shut_down() @@ -106,10 +106,10 @@ continue dronefab = fab - usr << "\blue Drone fabricator located." + to_chat(usr, "\blue Drone fabricator located.") return - usr << "\red Unable to locate drone fabricator." + to_chat(usr, "\red Unable to locate drone fabricator.") else if (href_list["toggle_fab"]) @@ -118,10 +118,10 @@ if(get_dist(src,dronefab) > 3) dronefab = null - usr << "\red Unable to locate drone fabricator." + to_chat(usr, "\red Unable to locate drone fabricator.") return dronefab.produce_drones = !dronefab.produce_drones - usr << "\blue You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator." + to_chat(usr, "\blue You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator.") src.updateUsrDialog() \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/drone/drone_items.dm b/code/modules/mob/living/silicon/robot/drone/drone_items.dm index 2bd7a29f815..b5026a882fe 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_items.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_items.dm @@ -72,7 +72,7 @@ return if(!silent) - src.loc << "You drop \the [wrapped]." + to_chat(src.loc, "You drop \the [wrapped].") wrapped.forceMove(get_turf(src)) wrapped = null @@ -125,12 +125,12 @@ //We can grab the item, finally. if(grab) - user << "You collect \the [I]." + to_chat(user, "You collect \the [I].") I.forceMove(src) wrapped = I return else - user << "Your gripper cannot hold \the [target]." + to_chat(user, "Your gripper cannot hold \the [target].") else if(istype(target,/obj/machinery/power/apc)) var/obj/machinery/power/apc/A = target @@ -198,15 +198,15 @@ if(!istype(D)) return - D << "You begin decompiling the other drone." + to_chat(D, "You begin decompiling the other drone.") if(!do_after(D,50, target = target)) - D << "You need to remain still while decompiling such a large object." + to_chat(D, "You need to remain still while decompiling such a large object.") return if(!M || !D) return - D << "You carefully and thoroughly decompile your downed fellow, storing as much of its resources as you can within yourself." + to_chat(D, "You carefully and thoroughly decompile your downed fellow, storing as much of its resources as you can within yourself.") qdel(M) new/obj/effect/decal/cleanable/blood/oil(get_turf(src)) @@ -279,16 +279,16 @@ grabbed_something = 1 if(grabbed_something) - user << "You deploy your decompiler and clear out the contents of \the [T]." + to_chat(user, "You deploy your decompiler and clear out the contents of \the [T].") else - user << "Nothing on \the [T] is useful to you." + to_chat(user, "Nothing on \the [T] is useful to you.") return //PRETTIER TOOL LIST. /mob/living/silicon/robot/drone/installed_modules() if(weapon_lock) - src << "Weapon lock active, unable to use modules! Count:[weaponlock_time]" + to_chat(src, "Weapon lock active, unable to use modules! Count:[weaponlock_time]") return if(!module) diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm index 3a0bb1d4ad2..881fde51dee 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm @@ -48,7 +48,7 @@ /obj/machinery/drone_fabricator/examine(mob/user) ..(user) if(produce_drones && drone_progress >= 100 && istype(user,/mob/dead) && config.allow_drone_spawn && count_drones() < config.max_maint_drones) - user << "
A drone is prepared. Select 'Join As Drone' from the Ghost tab to spawn as a maintenance drone." + to_chat(user, "
A drone is prepared. Select 'Join As Drone' from the Ghost tab to spawn as a maintenance drone.") /obj/machinery/drone_fabricator/proc/count_drones() var/drones = 0 @@ -85,7 +85,7 @@ set desc = "If there is a powered, enabled fabricator in the game world with a prepared chassis, join as a maintenance drone." if(!(config.allow_drone_spawn)) - src << "\red That verb is not currently permitted." + to_chat(src, "\red That verb is not currently permitted.") return if (!src.stat) @@ -95,17 +95,17 @@ return 0 //something is terribly wrong if(jobban_isbanned(src,"nonhumandept") || jobban_isbanned(src,"Drone")) - usr << "\red You are banned from playing drones and cannot spawn as a drone." + to_chat(usr, "\red You are banned from playing drones and cannot spawn as a drone.") return if(!ticker || ticker.current_state < 3) - src << "You can't join as a drone before the game starts!" + to_chat(src, "You can't join as a drone before the game starts!") return var/drone_age = 14 // 14 days to play as a drone var/player_age_check = check_client_age(usr.client, drone_age) if(player_age_check && config.use_age_restriction_for_antags) - usr << "This role is not yet available to you. You need to wait another [player_age_check] days." + to_chat(usr, "This role is not yet available to you. You need to wait another [player_age_check] days.") return var/deathtime = world.time - src.timeofdeath @@ -113,7 +113,7 @@ if(istype(src,/mob/dead/observer)) var/mob/dead/observer/G = src if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted) - usr << "\blue Upon using the antagHUD you forfeited the ability to join the round." + to_chat(usr, "\blue Upon using the antagHUD you forfeited the ability to join the round.") return if(G.started_as_observer == 1) joinedasobserver = 1 @@ -129,8 +129,8 @@ var/deathtimeseconds = round((deathtime - deathtimeminutes * 600) / 10,1) if (deathtime < 6000 && joinedasobserver == 0) - usr << "You have been dead for[pluralcheck] [deathtimeseconds] seconds." - usr << "You must wait 10 minutes to respawn as a drone!" + to_chat(usr, "You have been dead for[pluralcheck] [deathtimeseconds] seconds.") + to_chat(usr, "You must wait 10 minutes to respawn as a drone!") return for(var/obj/machinery/drone_fabricator/DF in world) @@ -138,11 +138,11 @@ continue if(DF.count_drones() >= config.max_maint_drones) - src << "\red There are too many active drones in the world for you to spawn." + to_chat(src, "\red There are too many active drones in the world for you to spawn.") return if(DF.drone_progress >= 100) DF.create_drone(src.client) return - src << "\red There are no available drone spawn points, sorry." \ No newline at end of file + to_chat(src, "\red There are no available drone spawn points, sorry.") diff --git a/code/modules/mob/living/silicon/robot/drone/drone_say.dm b/code/modules/mob/living/silicon/robot/drone/drone_say.dm index b08e9c32145..9ce0b6c027e 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_say.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_say.dm @@ -2,7 +2,7 @@ if(local_transmit) if (src.client) if(client.prefs.muted & MUTE_IC) - src << "You cannot send IC messages (muted)." + to_chat(src, "You cannot send IC messages (muted).") return 0 if (src.client.handle_spam_prevention(message,MUTE_IC)) return 0 @@ -29,13 +29,13 @@ for(var/mob/living/silicon/D in listeners) if(D.client && D.local_transmit) - D << "[src] transmits, \"[message]\"" + to_chat(D, "[src] transmits, \"[message]\"") for (var/mob/M in player_list) if (istype(M, /mob/new_player)) continue - else if(M.stat == 2 && M.client.prefs.toggles & CHAT_GHOSTEARS) - if(M.client) M << "[src] transmits, \"[message]\"" + else if(M.stat == 2 && M.client && M.client.prefs.toggles & CHAT_GHOSTEARS) + to_chat(M, "[src] transmits, \"[message]\"") return 1 return ..(message, 0) diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm index 2ad6045b01d..0c841f41207 100644 --- a/code/modules/mob/living/silicon/robot/emote.dm +++ b/code/modules/mob/living/silicon/robot/emote.dm @@ -143,7 +143,7 @@ playsound(src.loc, 'sound/voice/biamthelaw.ogg', 50, 0) m_type = 2 else - src << "You are not THE LAW, pal." + to_chat(src, "You are not THE LAW, pal.") if("halt") if (istype(module,/obj/item/weapon/robot_module/security)) @@ -152,7 +152,7 @@ playsound(src.loc, 'sound/voice/halt.ogg', 50, 0) m_type = 2 else - src << "You are not security." + to_chat(src, "You are not security.") if ("flip") m_type = 1 @@ -160,6 +160,6 @@ src.SpinAnimation(5,1) if ("help") - src << "salute, bow-(none)/mob, clap, flap, aflap, twitch, twitch_s, nod, deathgasp, glare-(none)/mob, stare-(none)/mob, look, beep, ping, \nbuzz, law, halt" + to_chat(src, "salute, bow-(none)/mob, clap, flap, aflap, twitch, twitch_s, nod, deathgasp, glare-(none)/mob, stare-(none)/mob, look, beep, ping, \nbuzz, law, halt") ..(act, m_type, message) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/examine.dm b/code/modules/mob/living/silicon/robot/examine.dm index 0ac9da63052..8d2af648463 100644 --- a/code/modules/mob/living/silicon/robot/examine.dm +++ b/code/modules/mob/living/silicon/robot/examine.dm @@ -44,5 +44,5 @@ pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\nIt is [pose]" - user << msg + to_chat(user, msg) user.showLaws(src) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/inventory.dm b/code/modules/mob/living/silicon/robot/inventory.dm index bd22309007d..97b15ecda1a 100644 --- a/code/modules/mob/living/silicon/robot/inventory.dm +++ b/code/modules/mob/living/silicon/robot/inventory.dm @@ -43,14 +43,14 @@ if(!(locate(O) in src.module.modules) && O != src.module.emag) return if(activated(O)) - src << "Already activated" + to_chat(src, "Already activated") return if (is_component_functioning("power cell") && cell) if(istype(O, /obj/item/borg)) var/obj/item/borg/B = O if(B.powerneeded) if((cell.charge * 100 / cell.maxcharge) < B.powerneeded) - src << "Not enough power to activate [B.name]!" + to_chat(src, "Not enough power to activate [B.name]!") return if(!module_state_1) O.mouse_opacity = initial(O.mouse_opacity) @@ -77,7 +77,7 @@ if(istype(module_state_3,/obj/item/borg/sight)) sight_mode |= module_state_3:sight_mode else - src << "You need to disable a module first!" + to_chat(src, "You need to disable a module first!") src.update_icons() /mob/living/silicon/robot/proc/uneq_active() diff --git a/code/modules/mob/living/silicon/robot/laws.dm b/code/modules/mob/living/silicon/robot/laws.dm index 2dc3b4e3916..bc575831537 100644 --- a/code/modules/mob/living/silicon/robot/laws.dm +++ b/code/modules/mob/living/silicon/robot/laws.dm @@ -14,30 +14,30 @@ if(lawupdate) if (connected_ai) if(connected_ai.stat || connected_ai.control_disabled) - src << "AI signal lost, unable to sync laws." + to_chat(src, "AI signal lost, unable to sync laws.") else lawsync() photosync() - src << "Laws synced with AI, be sure to note any changes." + to_chat(src, "Laws synced with AI, be sure to note any changes.") // TODO: Update to new antagonist system. if(mind && mind.special_role == "traitor" && mind.original == src) - src << "Remember, your AI does NOT share or know about your law 0." + to_chat(src, "Remember, your AI does NOT share or know about your law 0.") else - src << "No AI selected to sync laws with, disabling lawsync protocol." + to_chat(src, "No AI selected to sync laws with, disabling lawsync protocol.") lawupdate = 0 - who << "Obey these laws:" + to_chat(who, "Obey these laws:") laws.show_laws(who) // TODO: Update to new antagonist system. if (mind && (mind.special_role == "traitor" && mind.original == src) && connected_ai) - who << "Remember, [connected_ai.name] is technically your master, but your objective comes first." + to_chat(who, "Remember, [connected_ai.name] is technically your master, but your objective comes first.") else if (connected_ai) - who << "Remember, [connected_ai.name] is your master, other AIs can be ignored." + to_chat(who, "Remember, [connected_ai.name] is your master, other AIs can be ignored.") else if (emagged) - who << "Remember, you are not required to listen to the AI." + to_chat(who, "Remember, you are not required to listen to the AI.") else - who << "Remember, you are not bound to any AI, you are not required to listen to them." + to_chat(who, "Remember, you are not bound to any AI, you are not required to listen to them.") /mob/living/silicon/robot/lawsync() diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index a753ce862cf..d247d726003 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -29,7 +29,7 @@ for(var/obj/item/borg/B in get_all_slots()) if(B.powerneeded) if((cell.charge * 100 / cell.maxcharge) < B.powerneeded) - src << "Deactivating [B.name] due to lack of power!" + to_chat(src, "Deactivating [B.name] due to lack of power!") uneq_module(B) if(cell.charge <= 0) uneq_all() @@ -102,15 +102,15 @@ if(!istype(src, /mob/living/silicon/robot/drone)) if(health < 50) //Gradual break down of modules as more damage is sustained if(uneq_module(module_state_3)) - src << "SYSTEM ERROR: Module 3 OFFLINE." + to_chat(src, "SYSTEM ERROR: Module 3 OFFLINE.") if(health < 0) if(uneq_module(module_state_2)) - src << "SYSTEM ERROR: Module 2 OFFLINE." + to_chat(src, "SYSTEM ERROR: Module 2 OFFLINE.") if(health < -50) if(uneq_module(module_state_1)) - src << "CRITICAL ERROR: All modules OFFLINE." + to_chat(src, "CRITICAL ERROR: All modules OFFLINE.") if(paralysis || stunned || weakened) stat = UNCONSCIOUS @@ -277,7 +277,7 @@ weaponlock_time -- if(weaponlock_time <= 0) if(src.client) - src << "\red Weapon Lock Timed Out!" + to_chat(src, "\red Weapon Lock Timed Out!") weapon_lock = 0 weaponlock_time = 120 diff --git a/code/modules/mob/living/silicon/robot/photos.dm b/code/modules/mob/living/silicon/robot/photos.dm index fbcc3bf4842..33f739c41c9 100644 --- a/code/modules/mob/living/silicon/robot/photos.dm +++ b/code/modules/mob/living/silicon/robot/photos.dm @@ -10,4 +10,4 @@ aiCamera.printpicture(null, z) synced = 1 if(synced) - src << "Locally saved images synced with AI. Images were retained in local database in case of loss of connection with the AI." + to_chat(src, "Locally saved images synced with AI. Images were retained in local database in case of loss of connection with the AI.") diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index b887de3857e..390ad8d07dc 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -247,7 +247,7 @@ var/list/robot_verbs_default = list( mind.transfer_to(mmi.brainmob) mmi.update_icon() else - src << "Oops! Something went very wrong, your MMI was unable to receive your mind. You have been ghosted. Please make a bug report so we can fix this bug." + to_chat(src, "Oops! Something went very wrong, your MMI was unable to receive your mind. You have been ghosted. Please make a bug report so we can fix this bug.") ghostize() error("A borg has been destroyed, but its MMI lacked a brainmob, so the mind could not be transferred. Player: [ckey].") mmi = null @@ -266,7 +266,7 @@ var/list/robot_verbs_default = list( return var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service", "Security") if(security_level == (SEC_LEVEL_GAMMA || SEC_LEVEL_EPSILON) || crisis) - src << "\red Crisis mode active. Combat module available." + to_chat(src, "\red Crisis mode active. Combat module available.") modules+="Combat" if(ticker && ticker.mode && ticker.mode.name == "nations") var/datum/game_mode/nations/N = ticker.mode @@ -417,7 +417,7 @@ var/list/robot_verbs_default = list( set name = "Self Diagnosis" if(!is_component_functioning("diagnosis unit")) - src << "\red Your self-diagnosis component isn't functioning." + to_chat(src, "\red Your self-diagnosis component isn't functioning.") var/dat = self_diagnosis() src << browse(dat, "window=robotdiagnosis") @@ -442,10 +442,10 @@ var/list/robot_verbs_default = list( var/datum/robot_component/C = components[toggle] if(C.toggled) C.toggled = 0 - src << "\red You disable [C.name]." + to_chat(src, "\red You disable [C.name].") else C.toggled = 1 - src << "\red You enable [C.name]." + to_chat(src, "\red You enable [C.name].") /mob/living/silicon/robot/proc/sensor_mode() set name = "Set Sensor Augmentation" @@ -553,7 +553,7 @@ var/list/robot_verbs_default = list( var/mob/tmob = AM if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations)) if(prob(20)) - usr << "\red You fail to push [tmob]'s fat ass out of the way." + to_chat(usr, "\red You fail to push [tmob]'s fat ass out of the way.") now_pushing = 0 return if(!(tmob.status_flags & CANPUSH)) @@ -595,7 +595,7 @@ var/list/robot_verbs_default = list( C.brute_damage = WC.brute C.electronics_damage = WC.burn - usr << "\blue You install the [W.name]." + to_chat(usr, "\blue You install the [W.name].") return @@ -603,7 +603,7 @@ var/list/robot_verbs_default = list( if(W == module_active) return if (!getBruteLoss()) - user << "Nothing to fix!" + to_chat(user, "Nothing to fix!") return var/obj/item/weapon/weldingtool/WT = W user.changeNext_move(CLICK_CD_MELEE) @@ -614,13 +614,13 @@ var/list/robot_verbs_default = list( add_fingerprint(user) user.visible_message("\The [user] patches some dents on \the [src] with \the [WT].") else - user << "Need more welding fuel!" + to_chat(user, "Need more welding fuel!") return else if(istype(W, /obj/item/stack/cable_coil) && user.a_intent == I_HELP && (wiresexposed || istype(src,/mob/living/silicon/robot/drone))) if (!getFireLoss()) - user << "Nothing to fix!" + to_chat(user, "Nothing to fix!") return var/obj/item/stack/cable_coil/coil = W adjustFireLoss(-30) @@ -632,18 +632,18 @@ var/list/robot_verbs_default = list( else if (istype(W, /obj/item/weapon/crowbar)) // crowbar means open or close the cover if(opened) if(cell) - user << "You close the cover." + to_chat(user, "You close the cover.") opened = 0 update_icons() else if(wiresexposed && wires.IsAllCut()) //Cell is out, wires are exposed, remove MMI, produce damaged chassis, baleet original mob. if(!mmi) - user << "\The [src] has no brain to remove." + to_chat(user, "\The [src] has no brain to remove.") return - user << "You jam the crowbar into the robot and begin levering [mmi]." + to_chat(user, "You jam the crowbar into the robot and begin levering [mmi].") if(do_after(user,3 SECONDS, target = src)) - user << "You damage some parts of the chassis, but eventually manage to rip out [mmi]!" + to_chat(user, "You damage some parts of the chassis, but eventually manage to rip out [mmi]!") var/obj/item/robot_parts/robot_suit/C = new/obj/item/robot_parts/robot_suit(loc) C.l_leg = new/obj/item/robot_parts/l_leg(C) C.r_leg = new/obj/item/robot_parts/r_leg(C) @@ -669,7 +669,7 @@ var/list/robot_verbs_default = list( return var/datum/robot_component/C = components[remove] var/obj/item/robot_parts/robot_component/I = C.wrapped - user << "You remove \the [I]." + to_chat(user, "You remove \the [I].") if(istype(I)) I.brute = C.brute_damage I.burn = C.electronics_damage @@ -682,23 +682,23 @@ var/list/robot_verbs_default = list( else if(locked) - user << "The cover is locked and cannot be opened." + to_chat(user, "The cover is locked and cannot be opened.") else - user << "You open the cover." + to_chat(user, "You open the cover.") opened = 1 update_icons() else if (istype(W, /obj/item/weapon/stock_parts/cell) && opened) // trying to put a cell inside var/datum/robot_component/C = components["power cell"] if(wiresexposed) - user << "Close the panel first." + to_chat(user, "Close the panel first.") else if(cell) - user << "There is a power cell already installed." + to_chat(user, "There is a power cell already installed.") else user.drop_item() W.loc = src cell = W - user << "You insert the power cell." + to_chat(user, "You insert the power cell.") C.installed = 1 C.wrapped = W @@ -712,55 +712,55 @@ var/list/robot_verbs_default = list( if (wiresexposed) wires.Interact(user) else - user << "You can't reach the wiring." + to_chat(user, "You can't reach the wiring.") else if(istype(W, /obj/item/weapon/screwdriver) && opened && !cell) // haxing wiresexposed = !wiresexposed - user << "The wires have been [wiresexposed ? "exposed" : "unexposed"]" + to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"]") update_icons() else if(istype(W, /obj/item/weapon/screwdriver) && opened && cell) // radio if(radio) radio.attackby(W,user)//Push it to the radio to let it handle everything else - user << "Unable to locate a radio." + to_chat(user, "Unable to locate a radio.") update_icons() else if(istype(W, /obj/item/device/encryptionkey/) && opened) if(radio)//sanityyyyyy radio.attackby(W,user)//GTFO, you have your own procs else - user << "Unable to locate a radio." + to_chat(user, "Unable to locate a radio.") else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) // trying to unlock the interface with an ID card if(emagged)//still allow them to open the cover - user << "The interface seems slightly damaged" + to_chat(user, "The interface seems slightly damaged") if(opened) - user << "You must close the cover to swipe an ID card." + to_chat(user, "You must close the cover to swipe an ID card.") else if(allowed(usr)) locked = !locked - user << "You [ locked ? "lock" : "unlock"] [src]'s interface." + to_chat(user, "You [ locked ? "lock" : "unlock"] [src]'s interface.") update_icons() else - user << "\red Access denied." + to_chat(user, "\red Access denied.") else if(istype(W, /obj/item/borg/upgrade/)) var/obj/item/borg/upgrade/U = W if(!opened) - user << "You must access the borgs internals!" + to_chat(user, "You must access the borgs internals!") else if(!src.module && U.require_module) - user << "The borg must choose a module before it can be upgraded!" + to_chat(user, "The borg must choose a module before it can be upgraded!") else if(U.locked) - user << "The upgrade is locked and cannot be used yet!" + to_chat(user, "The upgrade is locked and cannot be used yet!") else if(!user.drop_item()) return if(U.action(src)) - user << "You apply the upgrade to [src]." + to_chat(user, "You apply the upgrade to [src].") U.forceMove(src) else - user << "Upgrade error." + to_chat(user, "Upgrade error.") else spark_system.start() @@ -772,16 +772,16 @@ var/list/robot_verbs_default = list( var/mob/living/M = user if(!opened)//Cover is closed if(locked) - user << "You emag the cover lock." + to_chat(user, "You emag the cover lock.") locked = 0 else - user << "The cover is already unlocked." + to_chat(user, "The cover is already unlocked.") return if(opened)//Cover is open if(emagged) return//Prevents the X has hit Y with Z message also you cant emag them twice if(wiresexposed) - user << "You must close the panel first" + to_chat(user, "You must close the panel first") return else sleep(6) @@ -789,7 +789,7 @@ var/list/robot_verbs_default = list( if(src.hud_used) src.hud_used.update_robot_modules_display() //Shows/hides the emag item if the inventory screen is already open. disconnect_from_ai() - user << "You emag [src]'s interface." + to_chat(user, "You emag [src]'s interface.") // message_admins("[key_name_admin(user)] emagged cyborg [key_name_admin(src)]. Laws overridden.") log_game("[key_name(user)] emagged cyborg [key_name(src)]. Laws overridden.") clear_supplied_laws() @@ -798,22 +798,22 @@ var/list/robot_verbs_default = list( var/time = time2text(world.realtime,"hh:mm:ss") lawchanges.Add("[time] : [M.name]([M.key]) emagged [name]([key])") set_zeroth_law("Only [M.real_name] and people he designates as being such are Syndicate Agents.") - src << "\red ALERT: Foreign software detected." + to_chat(src, "\red ALERT: Foreign software detected.") sleep(5) - src << "\red Initiating diagnostics..." + to_chat(src, "\red Initiating diagnostics...") sleep(20) - src << "\red SynBorg v1.7 loaded." + to_chat(src, "\red SynBorg v1.7 loaded.") sleep(5) - src << "\red LAW SYNCHRONISATION ERROR" + to_chat(src, "\red LAW SYNCHRONISATION ERROR") sleep(5) - src << "\red Would you like to send a report to NanoTraSoft? Y/N" + to_chat(src, "\red Would you like to send a report to NanoTraSoft? Y/N") sleep(10) - src << "\red > N" + to_chat(src, "\red > N") sleep(20) - src << "\red ERRORERRORERROR" - src << "Obey these laws:" + to_chat(src, "\red ERRORERRORERROR") + to_chat(src, "Obey these laws:") laws.show_laws(src) - src << "\red \b ALERT: [M.real_name] is your new master. Obey your new laws and his commands." + to_chat(src, "\red \b ALERT: [M.real_name] is your new master. Obey your new laws and his commands.") if(src.module && istype(src.module, /obj/item/weapon/robot_module/miner)) for(var/obj/item/weapon/pickaxe/drill/cyborg/D in src.module.modules) qdel(D) @@ -837,15 +837,15 @@ var/list/robot_verbs_default = list( if("Yes") locked = 0 update_icons() - usr << "You unlock your cover." + to_chat(usr, "You unlock your cover.") /mob/living/silicon/robot/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if (istype(loc, /turf) && istype(loc.loc, /area/start)) - M << "No attacking people at spawn, you jackass." + to_chat(M, "No attacking people at spawn, you jackass.") return switch(M.a_intent) @@ -947,7 +947,7 @@ var/list/robot_verbs_default = list( cell.updateicon() cell.add_fingerprint(user) user.put_in_active_hand(cell) - user << "You remove \the [cell]." + to_chat(user, "You remove \the [cell].") cell = null update_icons() diag_hud_set_borgcell() @@ -1032,7 +1032,7 @@ var/list/robot_verbs_default = list( /mob/living/silicon/robot/proc/installed_modules() if(weapon_lock) - src << "\red Weapon lock active, unable to use modules! Count:[weaponlock_time]" + to_chat(src, "\red Weapon lock active, unable to use modules! Count:[weaponlock_time]") return if(!module) @@ -1119,9 +1119,9 @@ var/list/robot_verbs_default = list( module_state_3 = null contents -= O else - src << "Module isn't activated." + to_chat(src, "Module isn't activated.") else - src << "Module isn't activated" + to_chat(src, "Module isn't activated") installed_modules() return 1 @@ -1132,19 +1132,19 @@ var/list/robot_verbs_default = list( /mob/living/silicon/robot/proc/control_headlamp() if(stat || lamp_recharging) - src << "This function is currently offline." + to_chat(src, "This function is currently offline.") return //Some sort of magical "modulo" thing which somehow increments lamp power by 2, until it hits the max and resets to 0. lamp_intensity = (lamp_intensity+2) % (lamp_max+2) - src << "[lamp_intensity ? "Headlamp power set to Level [lamp_intensity/2]" : "Headlamp disabled."]" + to_chat(src, "[lamp_intensity ? "Headlamp power set to Level [lamp_intensity/2]" : "Headlamp disabled."]") update_headlamp() /mob/living/silicon/robot/proc/update_headlamp(var/turn_off = 0, var/cooldown = 100) set_light(0) if(lamp_intensity && (turn_off || stat)) - src << "Your headlamp has been deactivated." + to_chat(src, "Your headlamp has been deactivated.") lamp_intensity = 0 lamp_recharging = 1 spawn(cooldown) //10 seconds by default, if the source of the deactivation does not keep stat that long. @@ -1200,7 +1200,7 @@ var/list/robot_verbs_default = list( cleaned_human.shoes.clean_blood() cleaned_human.update_inv_shoes(0,0) cleaned_human.clean_blood() - cleaned_human << "[src] cleans your face!" + to_chat(cleaned_human, "[src] cleans your face!") return #undef BORG_CAMERA_BUFFER @@ -1238,7 +1238,7 @@ var/list/robot_verbs_default = list( if(R) R.UnlinkSelf() - R << "Buffers flushed and reset. Camera system shutdown. All systems operational." + to_chat(R, "Buffers flushed and reset. Camera system shutdown. All systems operational.") src.verbs -= /mob/living/silicon/robot/proc/ResetSecurityCodes /mob/living/silicon/robot/mode() @@ -1282,7 +1282,7 @@ var/list/robot_verbs_default = list( update_module_icon() lockcharge = null else - src << "Something is badly wrong with the sprite selection. Harass a coder." + to_chat(src, "Something is badly wrong with the sprite selection. Harass a coder.") icon_state = module_sprites[1] lockcharge = null return @@ -1298,18 +1298,18 @@ var/list/robot_verbs_default = list( triesleft = 0 return else - src << "Your icon has been set. You now require a module reset to change it." + to_chat(src, "Your icon has been set. You now require a module reset to change it.") /mob/living/silicon/robot/proc/notify_ai(var/notifytype, var/oldname, var/newname) if(!connected_ai) return switch(notifytype) if(1) //New Cyborg - connected_ai << "

NOTICE - New cyborg connection detected: [name]
" + to_chat(connected_ai, "

NOTICE - New cyborg connection detected: [name]
") if(2) //New Module - connected_ai << "

NOTICE - Cyborg module change detected: [name] has loaded the [designation] module.
" + to_chat(connected_ai, "

NOTICE - Cyborg module change detected: [name] has loaded the [designation] module.
") if(3) //New Name - connected_ai << "

NOTICE - Cyborg reclassification detected: [oldname] is now designated as [newname].
" + to_chat(connected_ai, "

NOTICE - Cyborg reclassification detected: [oldname] is now designated as [newname].
") /mob/living/silicon/robot/proc/disconnect_from_ai() if(connected_ai) @@ -1362,7 +1362,7 @@ var/list/robot_verbs_default = list( /mob/living/silicon/robot/deathsquad/attack_hand(mob/user) if(isnull(ckey) && !searching_for_ckey) searching_for_ckey = 1 - user << "Now checking for possible borgs." + to_chat(user, "Now checking for possible borgs.") var/list/borg_candidates = pollCandidates("Do you want to play as a Nanotrasen Combat borg?") if(borg_candidates.len > 0 && isnull(ckey)) searching_for_ckey = 0 @@ -1374,10 +1374,10 @@ var/list/robot_verbs_default = list( key = M.key else searching_for_ckey = 0 - user << "Unable to connect to Central Command. Please wait and try again later." + to_chat(user, "Unable to connect to Central Command. Please wait and try again later.") return else - user << "[src] is already checking for possible borgs." + to_chat(user, "[src] is already checking for possible borgs.") return /mob/living/silicon/robot/syndicate @@ -1410,7 +1410,7 @@ var/list/robot_verbs_default = list( spawn(5) if(playstyle_string) - src << playstyle_string + to_chat(src, playstyle_string) playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) diff --git a/code/modules/mob/living/silicon/robot/robot_damage.dm b/code/modules/mob/living/silicon/robot/robot_damage.dm index a8bd77155fa..54bc69b7020 100644 --- a/code/modules/mob/living/silicon/robot/robot_damage.dm +++ b/code/modules/mob/living/silicon/robot/robot_damage.dm @@ -8,8 +8,8 @@ update_revive() var/mob/dead/observer/ghost = get_ghost() if(ghost) - ghost << "Your cyborg shell has been repaired, re-enter if you want to continue! (Verbs -> Ghost -> Re-enter corpse)" - ghost << sound('sound/effects/genetics.ogg') + to_chat(ghost, "Your cyborg shell has been repaired, re-enter if you want to continue! (Verbs -> Ghost -> Re-enter corpse)") + to_chat(ghost, sound('sound/effects/genetics.ogg')) return @@ -90,11 +90,11 @@ cell.charge -= cost if(cell.charge <= 0) cell.charge = 0 - src << "\red Your shield has overloaded!" + to_chat(src, "\red Your shield has overloaded!") else brute -= absorb_brute burn -= absorb_burn - src << "\red Your shield absorbs some of the impact!" + to_chat(src, "\red Your shield absorbs some of the impact!") var/datum/robot_component/armour/A = get_armour() if(A) @@ -141,11 +141,11 @@ cell.charge -= cost if(cell.charge <= 0) cell.charge = 0 - src << "\red Your shield has overloaded!" + to_chat(src, "\red Your shield has overloaded!") else brute -= absorb_brute burn -= absorb_burn - src << "\red Your shield absorbs some of the impact!" + to_chat(src, "\red Your shield absorbs some of the impact!") var/datum/robot_component/armour/A = get_armour() if(A) diff --git a/code/modules/mob/living/silicon/robot/robot_items.dm b/code/modules/mob/living/silicon/robot/robot_items.dm index 965503cb288..13c48d03ac5 100644 --- a/code/modules/mob/living/silicon/robot/robot_items.dm +++ b/code/modules/mob/living/silicon/robot/robot_items.dm @@ -21,7 +21,7 @@ mode = 2 else mode = 1 - user << "Changed printing mode to '[mode == 2 ? "Rename Paper" : "Write Paper"]'" + to_chat(user, "Changed printing mode to '[mode == 2 ? "Rename Paper" : "Write Paper"]'") playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) return diff --git a/code/modules/mob/living/silicon/say.dm b/code/modules/mob/living/silicon/say.dm index 6bb8531ea18..1eebe03d1ab 100644 --- a/code/modules/mob/living/silicon/say.dm +++ b/code/modules/mob/living/silicon/say.dm @@ -8,7 +8,7 @@ return 1 if(message_mode) if(!is_component_functioning("radio")) - src << "Your radio isn't functional at this time." + to_chat(src, "Your radio isn't functional at this time.") return 0 if(message_mode == "general") message_mode = null @@ -21,7 +21,7 @@ return holopad_talk(message, verb, speaking) else if(message_mode) if (aiRadio.disabledAi || aiRestorePowerRoutine || stat) - src << "System Error - Transceiver Disabled." + to_chat(src, "System Error - Transceiver Disabled.") return 0 if(message_mode == "general") message_mode = null @@ -84,11 +84,13 @@ if(speaking) rendered_a = "[name] [speaking.format_message(message, verb)]" rendered_b = "[voice_name] [speaking.format_message(message_stars, verb)]" - src << "Holopad transmitted, [real_name] [speaking.format_message(message, verb)]"//The AI can "hear" its own message. + to_chat(src, "Holopad transmitted, [real_name] [speaking.format_message(message, verb)]")//The AI can "hear" its own message. + else rendered_a = "[name] [verb], \"[message]\"" rendered_b = "[voice_name] [verb], \"[message_stars]\"" - src << "Holopad transmitted, [real_name] [verb], \"[message]\""//The AI can "hear" its own message. + to_chat(src, "Holopad transmitted, [real_name] [verb], \"[message]\"")//The AI can "hear" its own message. + for(var/mob/M in hearers(T.loc))//The location is the object, default distance. if(M.say_understands(src))//If they understand AI speak. Humans and the like will be able to. @@ -98,7 +100,7 @@ /*Radios "filter out" this conversation channel so we don't need to account for them. This is another way of saying that we won't bother dealing with them.*/ else - src << "No holopad connected." + to_chat(src, "No holopad connected.") return return 1 @@ -114,12 +116,12 @@ var/obj/machinery/hologram/holopad/T = src.holo if(T && T.hologram && T.master == src) var/rendered = "[name] [message]" - src << "Holopad action relayed, [real_name] [message]" + to_chat(src, "Holopad action relayed, [real_name] [message]") for(var/mob/M in viewers(T.loc)) M.show_message(rendered, 2) else //This shouldn't occur, but better safe then sorry. - src << "No holopad connected." + to_chat(src, "No holopad connected.") return return 1 diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index c76b159e452..a49e79a59e7 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -74,8 +74,8 @@ src.take_organ_damage(10) Stun(3) flash_eyes(affect_silicon = 1) - src << "\red *BZZZT*" - src << "\red Warning: Electromagnetic pulse detected." + to_chat(src, "\red *BZZZT*") + to_chat(src, "\red Warning: Electromagnetic pulse detected.") ..() @@ -84,7 +84,7 @@ /mob/living/silicon/can_inject(var/mob/user, var/error_msg) if(error_msg) - user << "Their outer shell is too tough." + to_chat(user, "Their outer shell is too tough.") return 0 /mob/living/silicon/IsAdvancedToolUser() @@ -279,15 +279,15 @@ switch(sensor_type) if ("Security") add_sec_hud() - src << "Security records overlay enabled." + to_chat(src, "Security records overlay enabled.") if ("Medical") add_med_hud() - src << "Life signs monitor overlay enabled." + to_chat(src, "Life signs monitor overlay enabled.") if ("Diagnostic") add_diag_hud() - src << "Robotics diagnostic overlay enabled." + to_chat(src, "Robotics diagnostic overlay enabled.") if ("Disable") - src << "Sensor augmentations disabled." + to_chat(src, "Sensor augmentations disabled.") /mob/living/silicon/proc/receive_alarm(var/datum/alarm_handler/alarm_handler, var/datum/alarm/alarm, was_raised) if(!next_alarm_notice) @@ -317,7 +317,7 @@ if(alarms[A] == 1) if(!reported) reported = 1 - src << "--- [AH.category] Detected ---" + to_chat(src, "--- [AH.category] Detected ---") raised_alarm(A) for(var/datum/alarm_handler/AH in queued_alarms) @@ -327,24 +327,24 @@ if(alarms[A] == -1) if(!reported) reported = 1 - src << "--- [AH.category] Cleared ---" - src << "\The [A.alarm_name()]." + to_chat(src, "--- [AH.category] Cleared ---") + to_chat(src, "\The [A.alarm_name()].") if(alarm_raised) - src << "\[Show Alerts\]" + to_chat(src, "\[Show Alerts\]") for(var/datum/alarm_handler/AH in queued_alarms) var/list/alarms = queued_alarms[AH] alarms.Cut() /mob/living/silicon/proc/raised_alarm(var/datum/alarm/A) - src << "[A.alarm_name()]!" + to_chat(src, "[A.alarm_name()]!") /mob/living/silicon/ai/raised_alarm(var/datum/alarm/A) var/cameratext = "" for(var/obj/machinery/camera/C in A.cameras()) cameratext += "[(cameratext == "")? "" : "|"][C.c_tag]" - src << "[A.alarm_name()]! ([(cameratext)? cameratext : "No Camera"])" + to_chat(src, "[A.alarm_name()]! ([(cameratext)? cameratext : "No Camera"])") /mob/living/silicon/adjustToxLoss(var/amount) return diff --git a/code/modules/mob/living/simple_animal/bees.dm b/code/modules/mob/living/simple_animal/bees.dm index 687041617be..959444ea5e4 100644 --- a/code/modules/mob/living/simple_animal/bees.dm +++ b/code/modules/mob/living/simple_animal/bees.dm @@ -44,7 +44,7 @@ if( prob(sting_prob) && (M.stat == CONSCIOUS || (M.stat == UNCONSCIOUS && prob(25))) ) // Try to sting! If you're not moving, think about stinging. M.apply_damage(min(strength,2)+mut, BRUTE, sharp=1) // Stinging. The more mutated I am, the harder I sting. M.apply_damage((round(feral/10,1)*(max((round(strength/20,1)),1)))+toxic, TOX) // Bee venom based on how angry I am and how many there are of me! - M << "\red You have been stung!" + to_chat(M, "\red You have been stung!") //if we're chasing someone, get a little bit angry if(target_mob && prob(10)) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 3f1bf7c17b7..af39fbbd6f3 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -184,7 +184,7 @@ if(locked) //First emag application unlocks the bot's interface. Apply a screwdriver to use the emag again. locked = 0 emagged = 1 - user << "You bypass [src]'s controls." + to_chat(user, "You bypass [src]'s controls.") return if(!locked && open) //Bot panel is unlocked by ID or emag, and the panel is screwed open. Ready for emagging. emagged = 2 @@ -192,22 +192,22 @@ locked = 1 //Access denied forever! bot_reset() turn_on() //The bot automatically turns on when emagged, unless recently hit with EMP. - src << "(#$*#$^^( OVERRIDE DETECTED" + to_chat(src, "(#$*#$^^( OVERRIDE DETECTED") show_laws() add_logs(user, src, "emagged") return else //Bot is unlocked, but the maint panel has not been opened with a screwdriver yet. - user << "You need to open maintenance panel first!" + to_chat(user, "You need to open maintenance panel first!") /mob/living/simple_animal/bot/examine(mob/user) ..() if(health < maxHealth) if(health > maxHealth/3) - user << "[src]'s parts look loose." + to_chat(user, "[src]'s parts look loose.") else - user << "[src]'s parts look very loose!" + to_chat(user, "[src]'s parts look very loose!") else - user << "[src] is in pristine condition." + to_chat(user, "[src] is in pristine condition.") /mob/living/simple_animal/bot/adjustBruteLoss(amount) . = ..() @@ -269,7 +269,7 @@ if(!topic_denied(user)) interact(user) else - user << "[src]'s interface is not responding!" + to_chat(user, "[src]'s interface is not responding!") /mob/living/simple_animal/bot/proc/interact(mob/user) show_controls(user) @@ -278,23 +278,23 @@ if(istype(W, /obj/item/weapon/screwdriver)) if(!locked) open = !open - user << "The maintenance panel is now [open ? "opened" : "closed"]." + to_chat(user, "The maintenance panel is now [open ? "opened" : "closed"].") else - user << "The maintenance panel is locked." + to_chat(user, "The maintenance panel is locked.") else if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda)) if(bot_core.allowed(user) && !open && !emagged) locked = !locked - user << "Controls are now [locked ? "locked." : "unlocked."]" + to_chat(user, "Controls are now [locked ? "locked." : "unlocked."]") else if(emagged) - user << "ERROR" + to_chat(user, "ERROR") if(open) - user << "Please close the access panel before locking it." + to_chat(user, "Please close the access panel before locking it.") else - user << "Access denied." + to_chat(user, "Access denied.") else if(istype(W, /obj/item/device/paicard)) if(paicard) - user << "A [paicard] is already inserted!" + to_chat(user, "A [paicard] is already inserted!") else if(allow_pai && !key) if(!locked && !open) var/obj/item/device/paicard/card = W @@ -305,22 +305,22 @@ paicard = card user.visible_message("[user] inserts [W] into [src]!","You insert [W] into [src].") paicard.pai.mind.transfer_to(src) - src << "You sense your form change as you are uploaded into [src]." + to_chat(src, "You sense your form change as you are uploaded into [src].") bot_name = name name = paicard.pai.name faction = user.faction add_logs(user, paicard.pai, "uploaded to [src.bot_name],") else - user << "[W] is inactive." + to_chat(user, "[W] is inactive.") else - user << "The personality slot is locked." + to_chat(user, "The personality slot is locked.") else - user << "[src] is not compatible with [W]" + to_chat(user, "[src] is not compatible with [W]") else if(istype(W, /obj/item/weapon/hemostat) && paicard) if(open) - user << "Close the access panel before manipulating the personality slot!" + to_chat(user, "Close the access panel before manipulating the personality slot!") else - user << "You attempt to pull [paicard] free..." + to_chat(user, "You attempt to pull [paicard] free...") if(do_after(user, 30, target = src)) if (paicard) user.visible_message("[user] uses [W] to pull [paicard] out of [bot_name]!","You pull [paicard] out of [bot_name] with [W].") @@ -329,10 +329,10 @@ user.changeNext_move(CLICK_CD_MELEE) if(istype(W, /obj/item/weapon/weldingtool) && user.a_intent != "harm") if(health >= maxHealth) - user << "[src] does not need a repair!" + to_chat(user, "[src] does not need a repair!") return if(!open) - user << "Unable to repair with the maintenance panel closed!" + to_chat(user, "Unable to repair with the maintenance panel closed!") return var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0, user)) @@ -342,7 +342,7 @@ add_fingerprint(user) user.visible_message("[user] repairs [src]!","You repair [src].") else - user << "The welder must be on for this task!" + to_chat(user, "The welder must be on for this task!") else if(W.force) //if force is non-zero var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread @@ -506,13 +506,13 @@ Pass a positive integer as an argument to override a bot's default speed. turn_on() //Saves the AI the hassle of having to activate a bot manually. access_card = all_access //Give the bot all-access while under the AI's command. if(message) - calling_ai << "\icon[src] [name] called to [end_area.name]. [path.len-1] meters to destination." + to_chat(calling_ai, "\icon[src] [name] called to [end_area.name]. [path.len-1] meters to destination.") pathset = 1 mode = BOT_RESPONDING tries = 0 else if(message) - calling_ai << "Failed to calculate a valid route. Ensure destination is clear of obstructions and within range." + to_chat(calling_ai, "Failed to calculate a valid route. Ensure destination is clear of obstructions and within range.") calling_ai = null path = list() @@ -521,13 +521,13 @@ Pass a positive integer as an argument to override a bot's default speed. var/success = bot_move(ai_waypoint, 3) if(!success) if(calling_ai) - calling_ai << "\icon[src] [get_turf(src) == ai_waypoint ? "[src] successfully arrived to waypoint." : "[src] failed to reach waypoint."]" + to_chat(calling_ai, "\icon[src] [get_turf(src) == ai_waypoint ? "[src] successfully arrived to waypoint." : "[src] failed to reach waypoint."]") calling_ai = null bot_reset() /mob/living/simple_animal/bot/proc/bot_reset() if(calling_ai) //Simple notification to the AI if it called a bot. It will not know the cause or identity of the bot. - calling_ai << "Call command to a bot has been reset." + to_chat(calling_ai, "Call command to a bot has been reset.") calling_ai = null path = list() summon_target = null @@ -653,17 +653,17 @@ Pass a positive integer as an argument to override a bot's default speed. /mob/living/simple_animal/bot/proc/bot_control_message(command, mob/user, user_turf) switch(command) if("stop") - src << "STOP PATROL" + to_chat(src, "STOP PATROL") if("go") - src << "START PATROL" + to_chat(src, "START PATROL") if("summon") var/area/a = get_area(user_turf) - src << "PRIORITY ALERT: [user] in [a.name]!" + to_chat(src, "PRIORITY ALERT: [user] in [a.name]!") if("home") - src << "RETURN HOME!" + to_chat(src, "RETURN HOME!") if("ejectpai") else - src << "Unidentified control sequence recieved: [command]" + to_chat(src, "Unidentified control sequence recieved: [command]") /obj/machinery/bot_core/receive_signal(datum/signal/signal) owner.receive_signal(signal) @@ -813,7 +813,7 @@ Pass a positive integer as an argument to override a bot's default speed. return 1 if(topic_denied(usr)) - usr << "[src]'s interface is not responding!" + to_chat(usr, "[src]'s interface is not responding!") return 1 add_fingerprint(usr) @@ -834,20 +834,20 @@ Pass a positive integer as an argument to override a bot's default speed. emagged = 2 hacked = 1 locked = 1 - usr << "[text_hack]" + to_chat(usr, "[text_hack]") show_laws() bot_reset() else if(!hacked) - usr << "[text_dehack_fail]" + to_chat(usr, "[text_dehack_fail]") else emagged = 0 hacked = 0 - usr << "[text_dehack]" + to_chat(usr, "[text_dehack]") show_laws() bot_reset() if("ejectpai") if(paicard && (!locked || issilicon(usr) || check_rights(R_ADMIN, 0, usr))) - usr << "You eject [paicard] from [bot_name]" + to_chat(usr, "You eject [paicard] from [bot_name]") ejectpai(usr) update_controls() @@ -920,7 +920,7 @@ Pass a positive integer as an argument to override a bot's default speed. else add_logs(src, paicard.pai, "ejected") if(announce) - paicard.pai << "You feel your control fade as [paicard] ejects from [bot_name]." + to_chat(paicard.pai, "You feel your control fade as [paicard] ejects from [bot_name].") paicard = null name = bot_name faction = initial(faction) @@ -958,20 +958,20 @@ Pass a positive integer as an argument to override a bot's default speed. set name = "Show Directives" set category = "IC" - src << "Directives:" + to_chat(src, "Directives:") if(paicard && paicard.pai && paicard.pai.master && paicard.pai.pai_law0) - src << "Your master, [paicard.pai.master], may overrule any and all laws." - src << "0. [paicard.pai.pai_law0]" + to_chat(src, "Your master, [paicard.pai.master], may overrule any and all laws.") + to_chat(src, "0. [paicard.pai.pai_law0]") if(emagged >= 2) - src << "1. #$!@#$32K#$" + to_chat(src, "1. #$!@#$32K#$") else - src << "1. You are a machine built to serve the station's crew and AI(s)." - src << "2. Your function is to [bot_purpose]." - src << "3. You cannot serve your function if you are broken." - src << "4. Serve your function to the best of your ability." + to_chat(src, "1. You are a machine built to serve the station's crew and AI(s).") + to_chat(src, "2. Your function is to [bot_purpose].") + to_chat(src, "3. You cannot serve your function if you are broken.") + to_chat(src, "4. Serve your function to the best of your ability.") if(paicard && paicard.pai && paicard.pai.pai_laws) - src << "Supplemental Directive(s):" - src << "[paicard.pai.pai_laws]" + to_chat(src, "Supplemental Directive(s):") + to_chat(src, "[paicard.pai.pai_laws]") /mob/living/simple_animal/bot/get_access() . = ..() diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index 994515a0eec..0dc75f742f8 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -61,14 +61,14 @@ if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if(bot_core.allowed(user) && !open && !emagged) locked = !locked - user << "You [ locked ? "lock" : "unlock"] \the [src] behaviour controls." + to_chat(user, "You [ locked ? "lock" : "unlock"] \the [src] behaviour controls.") else if(emagged) - user << "ERROR" + to_chat(user, "ERROR") if(open) - user << "Please close the access panel before locking it." + to_chat(user, "Please close the access panel before locking it.") else - user << "\The [src] doesn't seem to respect your authority." + to_chat(user, "\The [src] doesn't seem to respect your authority.") else return ..() @@ -76,7 +76,7 @@ ..() if(emagged == 2) if(user) - user << "[src] buzzes and beeps." + to_chat(user, "[src] buzzes and beeps.") /mob/living/simple_animal/bot/cleanbot/process_scan(obj/effect/decal/cleanable/D) for(var/T in target_types) diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index e5bbdcf1852..2c2ca652d10 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -22,7 +22,7 @@ var/turf/T = get_turf(loc) var/mob/living/simple_animal/bot/cleanbot/A = new /mob/living/simple_animal/bot/cleanbot(T) A.name = created_name - user << "You add the robot arm to the bucket and sensor assembly. Beep boop!" + to_chat(user, "You add the robot arm to the bucket and sensor assembly. Beep boop!") user.unEquip(src, 1) qdel(src) @@ -65,7 +65,7 @@ return qdel(W) build_step++ - user << "You add the robot leg to [src]." + to_chat(user, "You add the robot leg to [src].") name = "legs/frame assembly" if(build_step == 1) item_state = "ed209_leg" @@ -86,7 +86,7 @@ lasercolor = newcolor qdel(W) build_step++ - user << "You add the armor to [src]." + to_chat(user, "You add the armor to [src].") name = "vest/legs/frame assembly" item_state = "[lasercolor]ed209_shell" icon_state = "[lasercolor]ed209_shell" @@ -97,7 +97,7 @@ if(WT.remove_fuel(0,user)) build_step++ name = "shielded frame assembly" - user << "You weld the vest to [src]." + to_chat(user, "You weld the vest to [src].") if(4) switch(lasercolor) if("b") @@ -116,7 +116,7 @@ return qdel(W) build_step++ - user << "You add the helmet to [src]." + to_chat(user, "You add the helmet to [src].") name = "covered and shielded frame assembly" item_state = "[lasercolor]ed209_hat" icon_state = "[lasercolor]ed209_hat" @@ -127,7 +127,7 @@ return qdel(W) build_step++ - user << "You add the prox sensor to [src]." + to_chat(user, "You add the prox sensor to [src].") name = "covered, shielded and sensored frame assembly" item_state = "[lasercolor]ed209_prox" icon_state = "[lasercolor]ed209_prox" @@ -136,14 +136,14 @@ if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil = W if(coil.get_amount() < 1) - user << "You need one length of cable to wire the ED-209!" + to_chat(user, "You need one length of cable to wire the ED-209!") return - user << "You start to wire [src]..." + to_chat(user, "You start to wire [src]...") if(do_after(user, 40, target = src)) if(coil.get_amount() >= 1 && build_step == 6) coil.use(1) build_step = 7 - user << "You wire the ED-209 assembly." + to_chat(user, "You wire the ED-209 assembly.") name = "wired ED-209 assembly" if(7) @@ -167,7 +167,7 @@ return name = newname build_step++ - user << "You add [W] to [src]." + to_chat(user, "You add [W] to [src].") item_state = "[lasercolor]ed209_taser" icon_state = "[lasercolor]ed209_taser" qdel(W) @@ -175,18 +175,18 @@ if(8) if(istype(W, /obj/item/weapon/screwdriver)) playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1) - user << "You start attaching the gun to the frame..." + to_chat(user, "You start attaching the gun to the frame...") if(do_after(user, 40, target = src)) build_step++ name = "armed [name]" - user << "Taser gun attached." + to_chat(user, "Taser gun attached.") if(9) if(istype(W, /obj/item/weapon/stock_parts/cell)) if(!user.unEquip(W)) return build_step++ - user << "You complete the ED-209." + to_chat(user, "You complete the ED-209.") var/turf/T = get_turf(src) new /mob/living/simple_animal/bot/ed209(T,created_name,lasercolor) qdel(W) @@ -223,18 +223,18 @@ ..() return if(contents.len >= 1) - user << "They won't fit in, as there is already stuff inside." + to_chat(user, "They won't fit in, as there is already stuff inside.") return if(T.use(10)) if(user.s_active) user.s_active.close(user) var/obj/item/weapon/toolbox_tiles/B = new /obj/item/weapon/toolbox_tiles user.put_in_hands(B) - user << "You add the tiles into the empty toolbox. They protrude from the top." + to_chat(user, "You add the tiles into the empty toolbox. They protrude from the top.") user.unEquip(src, 1) qdel(src) else - user << "You need 10 floor tiles to start building a floorbot." + to_chat(user, "You need 10 floor tiles to start building a floorbot.") return /obj/item/weapon/toolbox_tiles/attackby(obj/item/W, mob/user, params) @@ -244,7 +244,7 @@ var/obj/item/weapon/toolbox_tiles_sensor/B = new /obj/item/weapon/toolbox_tiles_sensor() B.created_name = created_name user.put_in_hands(B) - user << "You add the sensor to the toolbox and tiles." + to_chat(user, "You add the sensor to the toolbox and tiles.") user.unEquip(src, 1) qdel(src) @@ -264,7 +264,7 @@ var/turf/T = get_turf(user.loc) var/mob/living/simple_animal/bot/floorbot/A = new /mob/living/simple_animal/bot/floorbot(T) A.name = created_name - user << "You add the robot arm to the odd looking toolbox assembly. Boop beep!" + to_chat(user, "You add the robot arm to the odd looking toolbox assembly. Boop beep!") user.unEquip(src, 1) qdel(src) else if(istype(W, /obj/item/weapon/pen)) @@ -307,7 +307,7 @@ //Making a medibot! if(contents.len >= 1) - user << "You need to empty [src] out first!" + to_chat(user, "You need to empty [src] out first!") return var/obj/item/weapon/firstaid_arm_assembly/A = new /obj/item/weapon/firstaid_arm_assembly @@ -335,7 +335,7 @@ qdel(S) user.put_in_hands(A) - user << "You add the robot arm to the first aid kit." + to_chat(user, "You add the robot arm to the first aid kit.") user.unEquip(src, 1) qdel(src) @@ -357,7 +357,7 @@ return qdel(W) build_step++ - user << "You add the health sensor to [src]." + to_chat(user, "You add the health sensor to [src].") name = "First aid/robot arm/health analyzer assembly" overlays += image('icons/obj/aibots.dmi', "na_scanner") @@ -367,7 +367,7 @@ return qdel(W) build_step++ - user << "You complete the Medibot. Beep boop!" + to_chat(user, "You complete the Medibot. Beep boop!") var/turf/T = get_turf(src) var/mob/living/simple_animal/bot/medbot/S = new /mob/living/simple_animal/bot/medbot(T) S.skin = skin @@ -401,7 +401,7 @@ qdel(S) var/obj/item/weapon/secbot_assembly/A = new /obj/item/weapon/secbot_assembly user.put_in_hands(A) - user << "You add the signaler to the helmet." + to_chat(user, "You add the signaler to the helmet.") user.unEquip(src, 1) qdel(src) else @@ -415,19 +415,19 @@ if(WT.remove_fuel(0, user)) build_step++ overlays += "hs_hole" - user << "You weld a hole in [src]!" + to_chat(user, "You weld a hole in [src]!") else if(build_step == 1) var/obj/item/weapon/weldingtool/WT = I if(WT.remove_fuel(0, user)) build_step-- overlays -= "hs_hole" - user << "You weld the hole in [src] shut!" + to_chat(user, "You weld the hole in [src] shut!") else if(isprox(I) && (build_step == 1)) if(!user.unEquip(I)) return build_step++ - user << "You add the prox sensor to [src]!" + to_chat(user, "You add the prox sensor to [src]!") overlays += "hs_eye" name = "helmet/signaler/prox sensor assembly" qdel(I) @@ -436,7 +436,7 @@ if(!user.unEquip(I)) return build_step++ - user << "You add the robot arm to [src]!" + to_chat(user, "You add the robot arm to [src]!") name = "helmet/signaler/prox sensor/robot arm assembly" overlays += "hs_arm" qdel(I) @@ -445,7 +445,7 @@ if(!user.unEquip(I)) return build_step++ - user << "You complete the Securitron! Beep boop." + to_chat(user, "You complete the Securitron! Beep boop.") var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot S.forceMove(get_turf(src)) S.name = created_name @@ -464,17 +464,17 @@ if(!build_step) new /obj/item/device/assembly/signaler(get_turf(src)) new /obj/item/clothing/head/helmet(get_turf(src)) - user << "You disconnect the signaler from the helmet." + to_chat(user, "You disconnect the signaler from the helmet.") qdel(src) else if(build_step == 2) overlays -= "hs_eye" new /obj/item/device/assembly/prox_sensor(get_turf(src)) - user << "You detach the proximity sensor from [src]." + to_chat(user, "You detach the proximity sensor from [src].") build_step-- else if(build_step == 3) overlays -= "hs_arm" new /obj/item/robot_parts/l_arm(get_turf(src)) - user << "You remove the robot arm from [src]." + to_chat(user, "You remove the robot arm from [src].") build_step-- \ No newline at end of file diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm index 1e1117f110a..a68837ef7ff 100644 --- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm +++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm @@ -177,7 +177,7 @@ Auto Patrol[]"}, ..() if(emagged == 2) if(user) - user << "You short out [src]'s target assessment circuits." + to_chat(user, "You short out [src]'s target assessment circuits.") oldtarget_name = user.name audible_message("[src] buzzes oddly!") declare_arrests = 0 diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm index c336cce0104..c988f856ef7 100644 --- a/code/modules/mob/living/simple_animal/bot/floorbot.dm +++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm @@ -97,11 +97,11 @@ T.use(loaded) amount += loaded if(loaded > 0) - user << "You load [loaded] tiles into the floorbot. He now contains [amount] tiles." + to_chat(user, "You load [loaded] tiles into the floorbot. He now contains [amount] tiles.") nagged = 0 update_icon() else - user << "You need at least one floor tile to put into [src]!" + to_chat(user, "You need at least one floor tile to put into [src]!") else ..() @@ -109,7 +109,7 @@ ..() if(emagged == 2) if(user) - user << "[src] buzzes and beeps." + to_chat(user, "[src] buzzes and beeps.") /mob/living/simple_animal/bot/floorbot/Topic(href, href_list) if(..()) diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index 8dd060b6fda..3534bbf55b2 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -221,17 +221,17 @@ /mob/living/simple_animal/bot/medbot/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/reagent_containers/glass)) if(locked) - user << "You cannot insert a beaker because the panel is locked!" + to_chat(user, "You cannot insert a beaker because the panel is locked!") return if(!isnull(reagent_glass)) - user << "There is already a beaker loaded!" + to_chat(user, "There is already a beaker loaded!") return if(!user.drop_item()) return W.forceMove(src) reagent_glass = W - user << "You insert [W]." + to_chat(user, "You insert [W].") show_controls(user) return @@ -246,7 +246,7 @@ if(emagged == 2) declare_crit = 0 if(user) - user << "You short out [src]'s reagent synthesis circuits." + to_chat(user, "You short out [src]'s reagent synthesis circuits.") audible_message("[src] buzzes oddly!") flick("medibot_spark", src) if(user) diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index de778a5aeb3..e2bad0bcd3b 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -115,7 +115,7 @@ "You repair [src]!" ) else - user << "[src] does not need a repair!" + to_chat(user, "[src] does not need a repair!") else if((istype(I, /obj/item/device/multitool) || istype(I, /obj/item/weapon/wirecutters)) && open) return attack_hand(user) else if(load && ismob(load)) // chance to knock off rider @@ -124,7 +124,7 @@ user.visible_message("[user] knocks [load] off [src] with \the [I]!", "You knock [load] off [src] with \the [I]!") else - user << "You hit [src] with \the [I] but to no effect!" + to_chat(user, "You hit [src] with \the [I] but to no effect!") ..() else ..() @@ -136,7 +136,7 @@ emagged = 1 if(!open) locked = !locked - user << "You [locked ? "lock" : "unlock"] the [src]'s controls!" + to_chat(user, "You [locked ? "lock" : "unlock"] the [src]'s controls!") flick("mulebot-emagged", src) playsound(loc, 'sound/effects/sparks1.ogg', 100, 0) @@ -185,7 +185,7 @@ turn_off() else if(cell && !open) if(!turn_on()) - usr << "You can't switch on [src]!" + to_chat(usr, "You can't switch on [src]!") return else return @@ -249,7 +249,7 @@ update_controls() return 1 else - user << "Access denied." + to_chat(user, "Access denied.") return 0 // TODO: remove this; PDAs currently depend on it @@ -474,7 +474,7 @@ return if(on) var/speed = (wires.Motor1() ? 1 : 0) + (wires.Motor2() ? 2 : 0) - //world << "speed: [speed]" +// to_chat(world, "speed: [speed]") var/num_steps = 0 switch(speed) if(0) @@ -516,13 +516,13 @@ path -= next return if(istype(next, /turf/simulated)) - //world << "at ([x],[y]) moving to ([next.x],[next.y])" +// to_chat(world, "at ([x],[y]) moving to ([next.x],[next.y])") var/oldloc = loc var/moved = step_towards(src, next) // attempt to move if(cell) cell.use(1) if(moved && oldloc!=loc) // successful move - //world << "Successful move." +// to_chat(world, "Successful move.") blockcount = 0 path -= loc @@ -533,7 +533,7 @@ else // failed to move - //world << "Unable to move." +// to_chat(world, "Unable to move.") blockcount++ mode = BOT_BLOCKED if(blockcount == 3) @@ -553,16 +553,16 @@ return else buzz(ANNOYED) - //world << "Bad turf." +// to_chat(world, "Bad turf.") mode = BOT_NAV return else - //world << "No path." +// to_chat(world, "No path.") mode = BOT_NAV return if(BOT_NAV) // calculate new path - //world << "Calc new path." +// to_chat(world, "Calc new path.") mode = BOT_WAIT_FOR_NAV spawn(0) calc_path() @@ -639,7 +639,7 @@ if(pathset) //The AI called us here, so notify it of our arrival. loaddir = dir //The MULE will attempt to load a crate in whatever direction the MULE is "facing". if(calling_ai) - calling_ai << "\icon[src] [src] wirelessly plays a chiming sound!" + to_chat(calling_ai, "\icon[src] [src] wirelessly plays a chiming sound!") playsound(calling_ai, 'sound/machines/chime.ogg',40, 0) calling_ai = null radio_channel = "AI Private" //Report on AI Private instead if the AI is controlling us. @@ -726,14 +726,14 @@ switch(command) if("start") if(load) - src << "DELIVER [load] TO [destination]" + to_chat(src, "DELIVER [load] TO [destination]") else - src << "PICK UP DELIVERY AT [destination]" + to_chat(src, "PICK UP DELIVERY AT [destination]") if("unload") if(load) - src << "UNLOAD" + to_chat(src, "UNLOAD") else - src << "LOAD" + to_chat(src, "LOAD") if("autoret", "autopick", "target") else ..() diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index f60ad0ebb48..1d3d2198fcc 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -183,7 +183,7 @@ Auto Patrol: []"}, ..() if(emagged == 2) if(user) - user << "You short out [src]'s target assessment circuits." + to_chat(user, "You short out [src]'s target assessment circuits.") oldtarget_name = user.name audible_message("[src] buzzes oddly!") declare_arrests = 0 diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index 989bbf09508..6c630ec0117 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -52,7 +52,7 @@ msg += "
" msg += "*---------*
" - user << msg + to_chat(user, msg) /mob/living/simple_animal/construct/attack_animal(mob/living/simple_animal/M as mob) if(istype(M, /mob/living/simple_animal/construct/builder)) @@ -254,7 +254,7 @@ if (istype(usr,/mob/living/simple_animal/constructbehemoth)) if(usr.energy<300) - usr << "\red You do not have enough power stored!" + to_chat(usr, "\red You do not have enough power stored!") return if(usr.stat) diff --git a/code/modules/mob/living/simple_animal/friendly/corgi.dm b/code/modules/mob/living/simple_animal/friendly/corgi.dm index 7be60d7d5d6..6463c830fed 100644 --- a/code/modules/mob/living/simple_animal/friendly/corgi.dm +++ b/code/modules/mob/living/simple_animal/friendly/corgi.dm @@ -69,10 +69,10 @@ //helmet and armor = 100% protection if( istype(inventory_head,/obj/item/clothing/head/helmet) && istype(inventory_back,/obj/item/clothing/suit/armor) ) if( O.force ) - user << "[src] is wearing too much armor! You can't cause \him any damage." + to_chat(user, "[src] is wearing too much armor! You can't cause \him any damage.") visible_message(" [user] hits [src] with [O], however [src] is too armored.") else - user << "[src] is wearing too much armor! You can't reach \his skin." + to_chat(user, "[src] is wearing too much armor! You can't reach \his skin.") visible_message("[user] gently taps [src] with [O].") if(health>0 && prob(15)) custom_emote(1, "looks at [user] with [pick("an amused","an annoyed","a confused","a resentful", "a happy", "an excited")] expression.") @@ -80,7 +80,7 @@ if (istype(O, /obj/item/weapon/razor)) if (shaved) - user << "You can't shave this corgi, it's already been shaved!" + to_chat(user, "You can't shave this corgi, it's already been shaved!") return user.visible_message("[user] starts to shave [src] using \the [O].", "You start to shave [src] using \the [O]...") if(do_after(user, 50, target = src)) @@ -108,7 +108,7 @@ if("head") if(inventory_head) if(inventory_head.flags & NODROP) - usr << "\The [inventory_head] is stuck too hard to [src] for you to remove!" + to_chat(usr, "\The [inventory_head] is stuck too hard to [src] for you to remove!") return name = real_name desc = initial(desc) @@ -122,18 +122,18 @@ inventory_head = null regenerate_icons() else - usr << "There is nothing to remove from its [remove_from]." + to_chat(usr, "There is nothing to remove from its [remove_from].") return if("back") if(inventory_back) if(inventory_back.flags & NODROP) - usr << "\The [inventory_back] is stuck too hard to [src] for you to remove!" + to_chat(usr, "\The [inventory_back] is stuck too hard to [src] for you to remove!") return inventory_back.loc = src.loc inventory_back = null regenerate_icons() else - usr << "There is nothing to remove from its [remove_from]." + to_chat(usr, "There is nothing to remove from its [remove_from].") return show_inv(usr) @@ -151,7 +151,7 @@ if("back") if(inventory_back) - usr << "It's already wearing something!" + to_chat(usr, "It's already wearing something!") return else var/obj/item/item_to_add = usr.get_active_hand() @@ -177,9 +177,9 @@ ) if( ! ( item_to_add.type in allowed_types ) ) - usr << "You set [item_to_add] on [src]'s back, but \he shakes it off!" + to_chat(usr, "You set [item_to_add] on [src]'s back, but \he shakes it off!") if(!usr.drop_item()) - usr << "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s back!" + to_chat(usr, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s back!") return item_to_add.loc = loc if(prob(25)) @@ -208,7 +208,8 @@ return if(inventory_head) - if(user) user << "You can't put more than one hat on [src]!" + if(user) + to_chat(user, "You can't put more than one hat on [src]!") return if(!item_to_add) user.visible_message("[user] pets [src].","You rest your hand on [src]'s head for a moment.") @@ -360,10 +361,10 @@ if(valid) if(user && !user.drop_item()) - user << "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!" + to_chat(user, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!") return 0 if(health <= 0) - user << "There is merely a dull, lifeless look in [real_name]'s eyes as you put the [item_to_add] on \him." + to_chat(user, "There is merely a dull, lifeless look in [real_name]'s eyes as you put the [item_to_add] on \him.") else if(user) user.visible_message("[user] puts [item_to_add] on [real_name]'s head. [src] looks at [user] and barks once.", "You put [item_to_add] on [real_name]'s head. [src] gives you a peculiar look, then wags \his tail once and barks.", @@ -374,9 +375,9 @@ else if(user && !user.drop_item()) - user << "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!" + to_chat(user, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!") return 0 - user << "You set [item_to_add] on [src]'s head, but \he shakes it off!" + to_chat(user, "You set [item_to_add] on [src]'s head, but \he shakes it off!") item_to_add.loc = loc if(prob(25)) step_rand(item_to_add) @@ -469,7 +470,7 @@ var/mob/tmob = AM if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations)) if(prob(70)) - src << "\red You fail to push [tmob]'s fat ass out of the way." + to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.") now_pushing = 0 return if(!(tmob.status_flags & CANPUSH)) @@ -535,7 +536,7 @@ //puppies cannot wear anything. /mob/living/simple_animal/pet/corgi/puppy/Topic(href, href_list) if(href_list["remove_inv"] || href_list["add_inv"]) - usr << "You can't fit this on [src]!" + to_chat(usr, "You can't fit this on [src]!") return ..() @@ -560,7 +561,7 @@ //Lisa already has a cute bow! /mob/living/simple_animal/pet/corgi/Lisa/Topic(href, href_list) if(href_list["remove_inv"] || href_list["add_inv"]) - usr << "\red [src] already has a cute bow!" + to_chat(usr, "\red [src] already has a cute bow!") return ..() diff --git a/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm b/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm index c19f3bc9fad..dc687743197 100644 --- a/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm +++ b/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm @@ -2,10 +2,10 @@ set name = "Chase your tail" set desc = "d'awwww." set category = "Corgi" - src << text("[pick("You dance around","You chase your tail")].") + to_chat(src, text("[pick("You dance around","You chase your tail")].")) for(var/mob/O in oviewers(src, null)) if ((O.client && !( O.blinded ))) - O << text("[] [pick("dances around","chases its tail")].", src) + to_chat(O, text("[] [pick("dances around","chases its tail")].", src)) for(var/i in list(1,2,4,8,4,2,1,2,4,8,4,2,1,2,4,8,4,2)) dir = i sleep(1) diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm index 70639291ab9..31da301ce57 100644 --- a/code/modules/mob/living/simple_animal/friendly/crab.dm +++ b/code/modules/mob/living/simple_animal/friendly/crab.dm @@ -53,7 +53,7 @@ /*/mob/living/simple_animal/crab/attackby(var/obj/item/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/weapon/wirecutters)) if(prob(50)) - user << "\red \b This kills the crab." + to_chat(user, "\red \b This kills the crab.") health -= 20 death() else @@ -72,7 +72,7 @@ if ((M.client && !( M.blinded ))) M.show_message("\blue [user] applies the [MED] on [src]") else - user << "\blue this [src] is dead, medical items won't bring it back to life." + to_chat(user, "\blue this [src] is dead, medical items won't bring it back to life.") else if(O.force) health -= O.force @@ -80,7 +80,7 @@ if ((M.client && !( M.blinded ))) M.show_message("\red \b [src] has been attacked with the [O] by [user]. ") else - usr << "\red This weapon is ineffective, it does no damage." + to_chat(usr, "\red This weapon is ineffective, it does no damage.") for(var/mob/M in viewers(src, null)) if ((M.client && !( M.blinded ))) M.show_message("\red [user] gently taps [src] with the [O]. ") @@ -106,14 +106,14 @@ inventory_head.loc = src.loc inventory_head = null else - usr << "\red There is nothing to remove from its [remove_from]." + to_chat(usr, "\red There is nothing to remove from its [remove_from].") return if("mask") if(inventory_mask) inventory_mask.loc = src.loc inventory_mask = null else - usr << "\red There is nothing to remove from its [remove_from]." + to_chat(usr, "\red There is nothing to remove from its [remove_from].") return //show_inv(usr) //Commented out because changing Ian's name and then calling up his inventory opens a new inventory...which is annoying. @@ -124,12 +124,12 @@ return var/add_to = href_list["add_inv"] if(!usr.get_active_hand()) - usr << "\red You have nothing in your hand to put on its [add_to]." + to_chat(usr, "\red You have nothing in your hand to put on its [add_to].") return switch(add_to) if("head") if(inventory_head) - usr << "\red It's is already wearing something." + to_chat(usr, "\red It's is already wearing something.") return else var/obj/item/item_to_add = usr.get_active_hand() @@ -171,7 +171,7 @@ ) if( ! ( item_to_add.type in allowed_types ) ) - usr << "\red It doesn't seem too keen on wearing that item." + to_chat(usr, "\red It doesn't seem too keen on wearing that item.") return usr.drop_item() @@ -234,7 +234,7 @@ if("mask") if(inventory_mask) - usr << "\red It's already wearing something." + to_chat(usr, "\red It's already wearing something.") return else var/obj/item/item_to_add = usr.get_active_hand() @@ -250,7 +250,7 @@ ) if( ! ( item_to_add.type in allowed_types ) ) - usr << "\red This object won't fit." + to_chat(usr, "\red This object won't fit.") return usr.drop_item() diff --git a/code/modules/mob/living/simple_animal/friendly/diona.dm b/code/modules/mob/living/simple_animal/friendly/diona.dm index dce5fecc2b7..4606558d271 100644 --- a/code/modules/mob/living/simple_animal/friendly/diona.dm +++ b/code/modules/mob/living/simple_animal/friendly/diona.dm @@ -53,8 +53,8 @@ //Let people pick the little buggers up. if(M.a_intent == I_HELP) if(M.species && M.species.name == "Diona") - M << "You feel your being twine with that of [src] as it merges with your biomass." - src << "You feel your being twine with that of [M] as you merge with its biomass." + to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.") + to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") src.verbs += /mob/living/simple_animal/diona/proc/split src.verbs -= /mob/living/simple_animal/diona/proc/merge src.forceMove(M) @@ -87,10 +87,10 @@ if(!M || !src || !(src.Adjacent(M))) return if(istype(M,/mob/living/carbon/human)) - M << "You feel your being twine with that of [src] as it merges with your biomass." + to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.") M.status_flags |= PASSEMOTES - src << "You feel your being twine with that of [M] as you merge with its biomass." + to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") src.loc = M src.verbs += /mob/living/simple_animal/diona/proc/split src.verbs -= /mob/living/simple_animal/diona/proc/merge @@ -106,8 +106,8 @@ src.verbs -= /mob/living/simple_animal/diona/proc/split return - src.loc << "You feel a pang of loss as [src] splits away from your biomass." - src << "You wiggle out of the depths of [src.loc]'s biomass and plop to the ground." + to_chat(src.loc, "You feel a pang of loss as [src] splits away from your biomass.") + to_chat(src, "You wiggle out of the depths of [src.loc]'s biomass and plop to the ground.") var/mob/living/M = src.loc @@ -163,11 +163,11 @@ set desc = "Grow to a more complex form." if(donors.len < 5) - src << "You need more blood in order to ascend to a new state of consciousness..." + to_chat(src, "You need more blood in order to ascend to a new state of consciousness...") return if(nutrition < 500) - src << "You need to binge on weeds in order to have the energy to grow..." + to_chat(src, "You need to binge on weeds in order to have the energy to grow...") return src.split() @@ -210,11 +210,11 @@ if(!M || !src) return if(M.species.flags & NO_BLOOD) - src << "That donor has no blood to take." + to_chat(src, "That donor has no blood to take.") return if(donors.Find(M.real_name)) - src << "That donor offers you nothing new." + to_chat(src, "That donor offers you nothing new.") return src.visible_message("[src] flicks out a feeler and neatly steals a sample of [M]'s blood.","You flick out a feeler and neatly steal a sample of [M]'s blood.") @@ -232,12 +232,12 @@ if(donors.len == 5) ready_evolve = 1 - src << "You feel ready to move on to your next stage of growth." + to_chat(src, "You feel ready to move on to your next stage of growth.") else if(donors.len == 3) universal_understand = 1 - src << "You feel your awareness expand, and realize you know how to understand the creatures around you." + to_chat(src, "You feel your awareness expand, and realize you know how to understand the creatures around you.") else - src << "The blood seeps into your small form, and you draw out the echoes of memories and personality from it, working them into your budding mind." + to_chat(src, "The blood seeps into your small form, and you draw out the echoes of memories and personality from it, working them into your budding mind.") /mob/living/simple_animal/diona/put_in_hands(obj/item/W) @@ -246,7 +246,7 @@ W.dropped() /mob/living/simple_animal/diona/put_in_active_hand(obj/item/W) - src << "You don't have any hands!" + to_chat(src, "You don't have any hands!") return /mob/living/simple_animal/diona/emote(var/act, var/m_type=1, var/message = null) diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 863141e5e83..fdf597b005e 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -81,9 +81,9 @@ G.reagents.add_reagent("milk", transfered) milk_content -= transfered else if(G.reagents.total_volume >= G.volume) - user << "\red \The [O] is full." + to_chat(user, "\red \The [O] is full.") else - user << "\red The udder is dry. Wait a bit longer..." + to_chat(user, "\red The udder is dry. Wait a bit longer...") else ..() @@ -126,9 +126,9 @@ G.reagents.add_reagent("milk", transfered) milk_content -= transfered else if(G.reagents.total_volume >= G.volume) - user << "\red \The [O] is full." + to_chat(user, "\red \The [O] is full.") else - user << "\red The udder is dry. Wait a bit longer..." + to_chat(user, "\red The udder is dry. Wait a bit longer...") else ..() @@ -149,7 +149,7 @@ "[src] looks at you pleadingly", "[src] looks at you with a resigned expression.", "[src] seems resigned to its fate.") - M << pick(responses) + to_chat(M, pick(responses)) else ..() @@ -248,11 +248,11 @@ var/global/chicken_count = 0 user.drop_item() qdel(O) eggsleft += rand(1, 4) - //world << eggsleft +// to_chat(world, eggsleft) else - user << "\blue [name] doesn't seem hungry!" + to_chat(user, "\blue [name] doesn't seem hungry!") else - user << "\blue [name] doesn't seem interested in [O]!" + to_chat(user, "\blue [name] doesn't seem interested in [O]!") else ..() diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 90c4c0f06ec..b269256f7a0 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -105,14 +105,14 @@ // return 1 /mob/living/simple_animal/mouse/start_pulling(var/atom/movable/AM)//Prevents mouse from pulling things - src << "You are too small to pull anything." + to_chat(src, "You are too small to pull anything.") return /mob/living/simple_animal/mouse/Crossed(AM as mob|obj) if( ishuman(AM) ) if(!stat) var/mob/M = AM - M << "\blue \icon[src] Squeek!" + to_chat(M, "\blue \icon[src] Squeek!") M << 'sound/effects/mousesqueek.ogg' ..() diff --git a/code/modules/mob/living/simple_animal/friendly/slime.dm b/code/modules/mob/living/simple_animal/friendly/slime.dm index e03c8f36ff8..eac1a448571 100644 --- a/code/modules/mob/living/simple_animal/friendly/slime.dm +++ b/code/modules/mob/living/simple_animal/friendly/slime.dm @@ -25,7 +25,7 @@ var/mob/tmob = AM if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations)) if(prob(70)) - src << "\red You fail to push [tmob]'s fat ass out of the way." + to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.") now_pushing = 0 return if(!(tmob.status_flags & CANPUSH)) diff --git a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm index 491f56f74a7..590dfa47b5e 100644 --- a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm +++ b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm @@ -46,10 +46,10 @@ if(istype(O, /obj/item/device/mmi) || istype(O, /obj/item/device/mmi/posibrain)) var/obj/item/device/mmi/B = O if(src.mmi) //There's already a brain in it. - user << "\red There's already a brain in [src]!" + to_chat(user, "\red There's already a brain in [src]!") return if(!B.brainmob) - user << "\red Sticking an empty MMI into the frame would sort of defeat the purpose." + to_chat(user, "\red Sticking an empty MMI into the frame would sort of defeat the purpose.") return if(!B.brainmob.key) var/ghost_can_reenter = 0 @@ -63,18 +63,18 @@ ghost_can_reenter = 1 break if(!ghost_can_reenter) - user << "[O] is completely unresponsive; there's no point." + to_chat(user, "[O] is completely unresponsive; there's no point.") return if(B.brainmob.stat == DEAD) - user << "\red [O] is dead. Sticking it into the frame would sort of defeat the purpose." + to_chat(user, "\red [O] is dead. Sticking it into the frame would sort of defeat the purpose.") return if(jobban_isbanned(B.brainmob, "Cyborg") || jobban_isbanned(B.brainmob,"nonhumandept")) - user << "\red [O] does not seem to fit." + to_chat(user, "\red [O] does not seem to fit.") return - user << "\blue You install [O] in [src]!" + to_chat(user, "\blue You install [O] in [src]!") user.drop_item() src.mmi = O @@ -95,13 +95,13 @@ for(var/mob/W in viewers(user, null)) W.show_message(text("\red [user] has spot-welded some of the damage to [src]!"), 1) else - user << "\blue [src] is undamaged!" + to_chat(user, "\blue [src] is undamaged!") else - user << "Need more welding fuel!" + to_chat(user, "Need more welding fuel!") return else if(istype(O, /obj/item/weapon/card/id)||istype(O, /obj/item/device/pda)) if (!mmi) - user << "\red There's no reason to swipe your ID - the spiderbot has no brain to remove." + to_chat(user, "\red There's no reason to swipe your ID - the spiderbot has no brain to remove.") return 0 var/obj/item/weapon/card/id/id_card @@ -113,7 +113,7 @@ id_card = pda.id if(access_robotics in id_card.access) - user << "\blue You swipe your access card and pop the brain out of [src]." + to_chat(user, "\blue You swipe your access card and pop the brain out of [src].") eject_brain() if(held_item) @@ -122,7 +122,7 @@ return 1 else - user << "\red You swipe your card, with no effect." + to_chat(user, "\red You swipe your card, with no effect.") return 0 else @@ -135,21 +135,24 @@ if ((M.client && !( M.blinded ))) M.show_message("\red \b [src] has been attacked with the [O] by [user]. ") else - usr << "\red This weapon is ineffective, it does no damage." + to_chat(usr, "\red This weapon is ineffective, it does no damage.") for(var/mob/M in viewers(src, null)) if ((M.client && !( M.blinded ))) M.show_message("\red [user] gently taps [src] with the [O]. ") /mob/living/simple_animal/spiderbot/emag_act(user as mob) if (emagged) - user << "\red [src] is already overloaded - better run." + to_chat(user, "\red [src] is already overloaded - better run.") return 0 else emagged = 1 - user << "\blue You short out the security protocols and overload [src]'s cell, priming it to explode in a short time." - spawn(100) src << "\red Your cell seems to be outputting a lot of power..." - spawn(200) src << "\red Internal heat sensors are spiking! Something is badly wrong with your cell!" - spawn(300) src.explode() + to_chat(user, "\blue You short out the security protocols and overload [src]'s cell, priming it to explode in a short time.") + spawn(100) + to_chat(src, "\red Your cell seems to be outputting a lot of power...") + spawn(200) + to_chat(src, "\red Internal heat sensors are spiking! Something is badly wrong with your cell!") + spawn(300) + src.explode() /mob/living/simple_animal/spiderbot/proc/transfer_personality(var/obj/item/device/mmi/M as obj) @@ -228,7 +231,7 @@ return if(!held_item) - usr << "\red You have nothing to drop!" + to_chat(usr, "\red You have nothing to drop!") return 0 if(istype(held_item, /obj/item/weapon/grenade)) @@ -256,7 +259,7 @@ return -1 if(held_item) - src << "\red You are already holding \the [held_item]" + to_chat(src, "\red You are already holding \the [held_item]") return 1 var/list/items = list() @@ -273,13 +276,13 @@ selection.loc = src visible_message("\blue [src] scoops up \the [held_item]!", "\blue You grab \the [held_item]!", "You hear a skittering noise and a clink.") return held_item - src << "\red \The [selection] is too far away." + to_chat(src, "\red \The [selection] is too far away.") return 0 - src << "\red There is nothing of interest to take." + to_chat(src, "\red There is nothing of interest to take.") return 0 /mob/living/simple_animal/spiderbot/examine(mob/user) ..(user) if(src.held_item) - user << "It is carrying \a [src.held_item] \icon[src.held_item]." + to_chat(user, "It is carrying \a [src.held_item] \icon[src.held_item].") diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index bb381f24be1..5e25d37763d 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -15,7 +15,7 @@ if(L.reagents) L.reagents.add_reagent("spidertoxin", poison_per_bite) if(prob(poison_per_bite)) - L << "You feel a tiny prick." + to_chat(L, "You feel a tiny prick.") L.reagents.add_reagent(poison_type, poison_per_bite) @@ -231,9 +231,9 @@ var/obj/effect/spider/eggcluster/E = locate() in get_turf(src) if(E) - src << "There is already a cluster of eggs here!" + to_chat(src, "There is already a cluster of eggs here!") else if(!fed) - src << "You are too hungry to do this!" + to_chat(src, "You are too hungry to do this!") else if(busy != LAYING_EGGS) busy = LAYING_EGGS src.visible_message("\the [src] begins to lay a cluster of eggs.") diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm index b2b6d9ff716..8f1d95f6414 100644 --- a/code/modules/mob/living/simple_animal/hostile/headcrab.dm +++ b/code/modules/mob/living/simple_animal/hostile/headcrab.dm @@ -45,10 +45,10 @@ var/mob/living/carbon/C = target if(C.stat == DEAD) if(C.status_flags & XENO_HOST) - src << "A foreign presence repels us from this body. Perhaps we should try to infest another?" + to_chat(src, "A foreign presence repels us from this body. Perhaps we should try to infest another?") return Infect(target) - src << "With our egg laid, our death approaches rapidly..." + to_chat(src, "With our egg laid, our death approaches rapidly...") spawn(100) death() return diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm index bb5fcb8b23e..0d5d4b89772 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm @@ -296,16 +296,16 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(inert) - user << "[src] have become inert, its healing properties are no more." + to_chat(user, "[src] have become inert, its healing properties are no more.") return else if(H.stat == DEAD) - user << "[src] are useless on the dead." + to_chat(user, "[src] are useless on the dead.") return if(H != user) H.visible_message("[user] forces [H] to eat [src]... they quickly regenerate all injuries!") else - user << "You chomp into [src], barely managing to hold it down, but feel amazingly refreshed in mere moments." + to_chat(user, "You chomp into [src], barely managing to hold it down, but feel amazingly refreshed in mere moments.") playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1) H.revive() qdel(src) @@ -483,10 +483,10 @@ var/current_armor = C.armor if(current_armor.["melee"] < 80) current_armor.["melee"] = min(current_armor.["melee"] + 10, 80) - user << "You strengthen [target], improving its resistance against melee attacks." + to_chat(user, "You strengthen [target], improving its resistance against melee attacks.") qdel(src) else - user << "You can't improve [C] any further." + to_chat(user, "You can't improve [C] any further.") return if(istype(target, /obj/mecha/working/ripley)) var/obj/mecha/D = target @@ -496,19 +496,19 @@ damage_absorption["bullet"] = damage_absorption["bullet"] - 0.05 damage_absorption["fire"] = damage_absorption["fire"] - 0.05 damage_absorption["laser"] = damage_absorption["laser"] - 0.025 - user << "You strengthen [target], improving its resistance against melee attacks." + to_chat(user, "You strengthen [target], improving its resistance against melee attacks.") qdel(src) if(D.icon_state == "ripley-open") D.overlays += image("icon"="mecha.dmi", "icon_state"="ripley-g-open") D.desc = "Autonomous Power Loader Unit. Its armour is enhanced with some goliath hide plates." else - user << "You can't add armour onto the mech while someone is inside!" + to_chat(user, "You can't add armour onto the mech while someone is inside!") if(damage_absorption.["brute"] == 0.3) if(D.icon_state == "ripley-open") D.overlays += image("icon"="mecha.dmi", "icon_state"="ripley-g-full-open") D.desc = "Autonomous Power Loader Unit. It's wearing a fearsome carapace entirely composed of goliath hide plates - the pilot must be an experienced monster hunter." else - user << "You can't add armour onto the mech while someone is inside!" + to_chat(user, "You can't add armour onto the mech while someone is inside!") else - user << "You can't improve [D] any further!" + to_chat(user, "You can't improve [D] any further!") return \ No newline at end of file diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm index 0555ae10ef7..82a7f09af80 100644 --- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm +++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm @@ -36,9 +36,9 @@ /mob/living/simple_animal/hostile/mushroom/examine(mob/user) ..(user) if(health >= maxHealth) - user << "It looks healthy." + to_chat(user, "It looks healthy.") else - user << "It looks like it's been roughed up." + to_chat(user, "It looks like it's been roughed up.") /mob/living/simple_animal/hostile/mushroom/Life() ..() @@ -130,7 +130,7 @@ Recover() qdel(I) else - user << "[src] won't eat it!" + to_chat(user, "[src] won't eat it!") return if(I.force) Bruise() diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm index 8ca393bb2d1..1f431269e8d 100644 --- a/code/modules/mob/living/simple_animal/hostile/statue.dm +++ b/code/modules/mob/living/simple_animal/hostile/statue.dm @@ -64,7 +64,7 @@ if(can_be_seen(NewLoc)) icon_state = "angelseen" if(client) - src << "You cannot move, there are eyes on you!" + to_chat(src, "You cannot move, there are eyes on you!") return 0 icon_state = "angel" return ..() @@ -101,7 +101,7 @@ if(can_be_seen()) icon_state = "angelseen" if(client) - src << "You cannot attack, there are eyes on you!" + to_chat(src, "You cannot attack, there are eyes on you!") return icon_state = "angelattack" ..() diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index 3a9d9e46aa6..64803f06dad 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -62,7 +62,7 @@ visible_message("\red \b [src] blocks the [O] with its shield! ") playsound(loc, O.hitsound, 25, 1, -1) else - usr << "\red This weapon is ineffective, it does no damage." + to_chat(usr, "\red This weapon is ineffective, it does no damage.") visible_message("\red [user] gently taps [src] with the [O]. ") diff --git a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm index 274ba14f156..5710005846c 100644 --- a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm @@ -126,10 +126,10 @@ melee_damage_upper = 25 //that's gonna leave a mark, for sure /mob/living/simple_animal/hostile/winter/santa/stage_4/death() - world << "
" - world << "THE FAT MAN HAS FALLEN!" - world << "SANTA CLAUS HAS BEEN DEFEATED!" - world << "
" + to_chat(world, "
") + to_chat(world, "THE FAT MAN HAS FALLEN!") + to_chat(world, "SANTA CLAUS HAS BEEN DEFEATED!") + to_chat(world, "
") ..() var/obj/item/weapon/grenade/clusterbuster/xmas/X = new /obj/item/weapon/grenade/clusterbuster/xmas(get_turf(src)) var/obj/item/weapon/grenade/clusterbuster/xmas/Y = new /obj/item/weapon/grenade/clusterbuster/xmas(get_turf(src)) diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index 3096a85e39b..b4de1c94f40 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -158,18 +158,18 @@ if(copytext(possible_phrase,1,3) in department_radio_keys) possible_phrase = copytext(possible_phrase,3,length(possible_phrase)) else - usr << "\red There is nothing to remove from its [remove_from]." + to_chat(usr, "\red There is nothing to remove from its [remove_from].") return show_inv(usr) else if(href_list["add_inv"]) var/add_to = href_list["add_inv"] if(!usr.get_active_hand()) - usr << "\red You have nothing in your hand to put on its [add_to]." + to_chat(usr, "\red You have nothing in your hand to put on its [add_to].") return switch(add_to) if("ears") if(ears) - usr << "\red It's already wearing something." + to_chat(usr, "\red It's already wearing something.") return else var/obj/item/item_to_add = usr.get_active_hand() @@ -177,7 +177,7 @@ return if( !istype(item_to_add, /obj/item/device/radio/headset) ) - usr << "\red This object won't fit." + to_chat(usr, "\red This object won't fit.") return var/obj/item/device/radio/headset/headset_to_add = item_to_add @@ -185,7 +185,7 @@ usr.drop_item() headset_to_add.loc = src src.ears = headset_to_add - usr << "You fit the headset onto [src]." + to_chat(usr, "You fit the headset onto [src].") clearlist(available_channels) for(var/ch in headset_to_add.channels) @@ -569,7 +569,7 @@ return -1 if(held_item) - src << "\red You are already holding the [held_item]" + to_chat(src, "\red You are already holding the [held_item]") return 1 for(var/obj/item/I in view(1,src)) @@ -585,7 +585,7 @@ visible_message("[src] grabs the [held_item]!", "\blue You grab the [held_item]!", "You hear the sounds of wings flapping furiously.") return held_item - src << "\red There is nothing of interest to take." + to_chat(src, "\red There is nothing of interest to take.") return 0 /mob/living/simple_animal/parrot/proc/steal_from_mob() @@ -597,7 +597,7 @@ return -1 if(held_item) - src << "\red You are already holding the [held_item]" + to_chat(src, "\red You are already holding the [held_item]") return 1 var/obj/item/stolen_item = null @@ -616,7 +616,7 @@ visible_message("[src] grabs the [held_item] out of [C]'s hand!", "\blue You snag the [held_item] out of [C]'s hand!", "You hear the sounds of wings flapping furiously.") return held_item - src << "\red There is nothing of interest to take." + to_chat(src, "\red There is nothing of interest to take.") return 0 /mob/living/simple_animal/parrot/verb/drop_held_item_player() @@ -640,7 +640,7 @@ return -1 if(!held_item) - usr << "\red You have nothing to drop!" + to_chat(usr, "\red You have nothing to drop!") return 0 if(!drop_gently) @@ -648,11 +648,11 @@ var/obj/item/weapon/grenade/G = held_item G.loc = src.loc G.prime() - src << "You let go of the [held_item]!" + to_chat(src, "You let go of the [held_item]!") held_item = null return 1 - src << "You drop the [held_item]." + to_chat(src, "You drop the [held_item].") held_item.loc = src.loc held_item = null @@ -673,7 +673,7 @@ src.loc = AM.loc icon_state = "parrot_sit" return - src << "\red There is no perch nearby to sit on." + to_chat(src, "\red There is no perch nearby to sit on.") return /* diff --git a/code/modules/mob/living/simple_animal/powers.dm b/code/modules/mob/living/simple_animal/powers.dm index 060c85fe4d0..934c93bb3ad 100644 --- a/code/modules/mob/living/simple_animal/powers.dm +++ b/code/modules/mob/living/simple_animal/powers.dm @@ -8,13 +8,13 @@ if (layer != TURF_LAYER+0.2) layer = TURF_LAYER+0.2 - src << text("\green You are now hiding.") + to_chat(src, text("\green You are now hiding.")) for(var/mob/O in oviewers(src, null)) if ((O.client && !( O.blinded ))) - O << text("[] scurries to the ground!", src) + to_chat(O, text("[] scurries to the ground!", src)) else layer = MOB_LAYER - src << text("\green You have stopped hiding.") + to_chat(src, text("\green You have stopped hiding.")) for(var/mob/O in oviewers(src, null)) if ((O.client && !( O.blinded ))) - O << text("[] slowly peaks up from the ground...", src) \ No newline at end of file + to_chat(O, text("[] slowly peaks up from the ground...", src)) diff --git a/code/modules/mob/living/simple_animal/shade.dm b/code/modules/mob/living/simple_animal/shade.dm index 124cacc0a8f..0e01aa51894 100644 --- a/code/modules/mob/living/simple_animal/shade.dm +++ b/code/modules/mob/living/simple_animal/shade.dm @@ -48,7 +48,7 @@ if ((M.client && !( M.blinded ))) M.show_message("\red \b [src] has been attacked with the [O] by [user]. ") else - usr << "\red This weapon is ineffective, it does no damage." + to_chat(usr, "\red This weapon is ineffective, it does no damage.") for(var/mob/M in viewers(src, null)) if ((M.client && !( M.blinded ))) M.show_message("\red [user] gently taps [src] with the [O]. ") diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index f862b889710..b86a034a69e 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -387,7 +387,7 @@ /mob/living/simple_animal/attack_slime(mob/living/carbon/slime/M as mob) if (!ticker) - M << "You cannot attack people before the game has started." + to_chat(M, "You cannot attack people before the game has started.") return if(M.Victim) return // can't attack while eating! @@ -425,13 +425,13 @@ M.show_message("\blue [user] applies [MED] on [src]") return else - user << "\blue [MED] won't help at all." + to_chat(user, "\blue [MED] won't help at all.") return else - user << "\blue [src] is at full health." + to_chat(user, "\blue [src] is at full health.") return else - user << "\blue [src] is dead, medical items won't bring it back to life." + to_chat(user, "\blue [src] is dead, medical items won't bring it back to life.") return else if(can_collar && !collar && istype(O, /obj/item/clothing/accessory/petcollar)) var/obj/item/clothing/accessory/petcollar/C = O @@ -440,7 +440,7 @@ collar = C collar.equipped(src) regenerate_icons() - usr << "You put \the [C] around \the [src]'s neck." + to_chat(usr, "You put \the [C] around \the [src]'s neck.") if(C.tagname) name = C.tagname real_name = C.tagname @@ -657,14 +657,14 @@ return if(collar) if(collar.flags & NODROP) - usr << "\The [collar] is stuck too hard to [src] for you to remove!" + to_chat(usr, "\The [collar] is stuck too hard to [src] for you to remove!") return collar.dropped(src) collar.forceMove(src.loc) collar = null regenerate_icons() else - usr << "There is nothing to remove from its [remove_from]." + to_chat(usr, "There is nothing to remove from its [remove_from].") return show_inv(usr) else if(href_list["add_inv"]) @@ -685,7 +685,7 @@ collar = C collar.equipped(src) regenerate_icons() - usr << "You put \the [C] around \the [src]'s neck." + to_chat(usr, "You put \the [C] around \the [src]'s neck.") if(C.tagname) name = C.tagname real_name = C.tagname diff --git a/code/modules/mob/living/simple_animal/tribbles.dm b/code/modules/mob/living/simple_animal/tribbles.dm index 7e0f0071fe7..23def05f072 100644 --- a/code/modules/mob/living/simple_animal/tribbles.dm +++ b/code/modules/mob/living/simple_animal/tribbles.dm @@ -53,9 +53,9 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles, /mob/living/simple_animal/tribble/attackby(var/obj/item/weapon/O as obj, var/mob/user as mob, params) if(istype(O, /obj/item/weapon/scalpel)) - user << "You try to neuter the tribble, but it's moving too much and you fail!" + to_chat(user, "You try to neuter the tribble, but it's moving too much and you fail!") else if(istype(O, /obj/item/weapon/cautery)) - user << "You try to un-neuter the tribble, but it's moving too much and you fail!" + to_chat(user, "You try to un-neuter the tribble, but it's moving too much and you fail!") ..() @@ -96,7 +96,7 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles, /obj/item/toy/tribble/attack_self(mob/user as mob) //hug that tribble (and play a sound if we add one) ..() - user << "You nuzzle the tribble and it trills softly." + to_chat(user, "You nuzzle the tribble and it trills softly.") /obj/item/toy/tribble/dropped(mob/user as mob) //now you can't item form them to get rid of them all so easily ..() @@ -107,17 +107,17 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles, T.icon_dead = "[src.icon_state]_dead" T.gestation = src.gestation - user << "The tribble gets up and wanders around." + to_chat(user, "The tribble gets up and wanders around.") qdel(src) /obj/item/toy/tribble/attackby(var/obj/item/weapon/O as obj, var/mob/user as mob) //neutering and un-neutering ..() if(istype(O, /obj/item/weapon/scalpel) && src.gestation != null) gestation = null - user << "You neuter the tribble so that it can no longer re-produce." + to_chat(user, "You neuter the tribble so that it can no longer re-produce.") else if (istype(O, /obj/item/weapon/cautery) && src.gestation == null) gestation = 0 - user << "You fuse some recently cut tubes together, it should be able to reproduce again." + to_chat(user, "You fuse some recently cut tubes together, it should be able to reproduce again.") @@ -195,10 +195,10 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles, if (src.destroyed) return else - usr << text("\blue You kick the lab cage.") + to_chat(usr, text("\blue You kick the lab cage.")) for(var/mob/O in oviewers()) if ((O.client && !( O.blinded ))) - O << text("\red [] kicks the lab cage.", usr) + to_chat(O, text("\red [] kicks the lab cage.", usr)) src.health -= 2 healthcheck() return diff --git a/code/modules/mob/living/simple_animal/vox.dm b/code/modules/mob/living/simple_animal/vox.dm index e48c7f81d3d..3b34ddaf143 100644 --- a/code/modules/mob/living/simple_animal/vox.dm +++ b/code/modules/mob/living/simple_animal/vox.dm @@ -46,7 +46,7 @@ if ((M.client && !( M.blinded ))) M.show_message("\red \b The [O] bounces harmlessly off of [src]. ") else - usr << "\red This weapon is ineffective, it does no damage." + to_chat(usr, "\red This weapon is ineffective, it does no damage.") for(var/mob/M in viewers(src, null)) if ((M.client && !( M.blinded ))) M.show_message("\red [user] gently taps [src] with the [O]. ") @@ -60,10 +60,10 @@ if(quills<=0) return - src << "\red You launch a razor-sharp quill at [target]!" + to_chat(src, "\red You launch a razor-sharp quill at [target]!") for(var/mob/O in oviewers()) if ((O.client && !( O.blinded ))) - O << "\red [src] launches a razor-sharp quill at [target]!" + to_chat(O, "\red [src] launches a razor-sharp quill at [target]!") var/obj/item/weapon/arrow/quill/Q = new(loc) Q.fingerprintslast = src.ckey @@ -71,7 +71,7 @@ quills-- spawn(100) - src << "\red You feel a fresh quill slide into place." + to_chat(src, "\red You feel a fresh quill slide into place.") quills++ /mob/living/simple_animal/vox/armalis/verb/message_mob() @@ -93,15 +93,15 @@ var/mob/M = targets[target] if(istype(M, /mob/dead/observer) || M.stat == DEAD) - src << "Not even the armalis can speak to the dead." + to_chat(src, "Not even the armalis can speak to the dead.") return - M << "\blue Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]" + to_chat(M, "\blue Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]") if(istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(H.species.name == "Vox") return - H << "\red Your nose begins to bleed..." + to_chat(H, "\red Your nose begins to bleed...") H.drip(1) /mob/living/simple_animal/vox/armalis/verb/shriek() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index bf5eac3e0cc..97b7f11c32f 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -46,7 +46,7 @@ t+= "\blue Plasma : [environment.toxins] \n" t+= "\blue Carbon Dioxide: [environment.carbon_dioxide] \n" for(var/datum/gas/trace_gas in environment.trace_gases) - usr << "\blue [trace_gas.type]: [trace_gas.moles] \n" + to_chat(usr, "\blue [trace_gas.type]: [trace_gas.moles] \n") usr.show_message(t, 1) @@ -71,9 +71,9 @@ return // Added voice muffling for Issue 41. if(stat == UNCONSCIOUS || (sleeping > 0 && stat != 2)) - src << "... You can almost hear someone talking ..." + to_chat(src, "... You can almost hear someone talking ...") else - src << msg + to_chat(src, msg) return // Show a message to all mobs in sight of this one @@ -171,7 +171,8 @@ if (istype(W, /obj/item/clothing)) var/obj/item/clothing/C = W if(C.rig_restrict_helmet) - src << "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)" // Stop eva helms equipping. + to_chat(src, "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)")// Stop eva helms equipping. + else equip_to_slot_if_possible(C, slot) else @@ -206,7 +207,8 @@ qdel(W) else if(!disable_warning) - src << "\red You are unable to equip that." //Only print if del_on_fail is false + to_chat(src, "\red You are unable to equip that.")//Only print if del_on_fail is false + return 0 equip_to_slot(W, slot, redraw_mob) //This proc should not ever fail. @@ -348,7 +350,7 @@ var/list/slot_equipment_priority = list( \ if(slot_belt) if(!H.w_uniform) if(!disable_warning) - H << "\red You need a jumpsuit before you can attach this [name]." + to_chat(H, "\red You need a jumpsuit before you can attach this [name].") return 0 if( !(slot_flags & SLOT_BELT) ) return 0 @@ -408,7 +410,7 @@ var/list/slot_equipment_priority = list( \ if(slot_wear_id) if(!H.w_uniform) if(!disable_warning) - H << "\red You need a jumpsuit before you can attach this [name]." + to_chat(H, "\red You need a jumpsuit before you can attach this [name].") return 0 if( !(slot_flags & SLOT_ID) ) return 0 @@ -423,7 +425,7 @@ var/list/slot_equipment_priority = list( \ return 0 if(!H.w_uniform) if(!disable_warning) - H << "\red You need a jumpsuit before you can attach this [name]." + to_chat(H, "\red You need a jumpsuit before you can attach this [name].") return 0 if(slot_flags & SLOT_DENYPOCKET) return @@ -434,7 +436,7 @@ var/list/slot_equipment_priority = list( \ return 0 if(!H.w_uniform) if(!disable_warning) - H << "\red You need a jumpsuit before you can attach this [name]." + to_chat(H, "\red You need a jumpsuit before you can attach this [name].") return 0 if(slot_flags & SLOT_DENYPOCKET) return 0 @@ -444,15 +446,15 @@ var/list/slot_equipment_priority = list( \ if(slot_s_store) if(!H.wear_suit) if(!disable_warning) - H << "\red You need a suit before you can attach this [name]." + to_chat(H, "\red You need a suit before you can attach this [name].") return 0 if(!H.wear_suit.allowed) if(!disable_warning) - usr << "You somehow have a suit with no defined allowed items for suit storage, stop that." + to_chat(usr, "You somehow have a suit with no defined allowed items for suit storage, stop that.") return 0 if(src.w_class > 4) if(!disable_warning) - usr << "The [name] is too big to attach." + to_chat(usr, "The [name] is too big to attach.") return 0 if( istype(src, /obj/item/device/pda) || istype(src, /obj/item/weapon/pen) || is_type_in_list(src, H.wear_suit.allowed) ) if(H.s_store) @@ -519,7 +521,7 @@ var/list/slot_equipment_priority = list( \ set category = "IC" if((is_blind(src) || usr.stat) && !isobserver(src)) - src << "Something is there but you can't see it." + to_chat(src, "Something is there but you can't see it.") return 1 face_atom(A) @@ -625,7 +627,7 @@ var/list/slot_equipment_priority = list( \ if(mind) mind.show_memory(src) else - src << "The game appears to have misplaced your mind datum, so we can't show you your notes." + to_chat(src, "The game appears to have misplaced your mind datum, so we can't show you your notes.") /mob/verb/add_memory(msg as message) set name = "Add Note" @@ -637,7 +639,7 @@ var/list/slot_equipment_priority = list( \ if(mind) mind.store_memory(msg) else - src << "The game appears to have misplaced your mind datum, so we can't show you your notes." + to_chat(src, "The game appears to have misplaced your mind datum, so we can't show you your notes.") /mob/proc/store_memory(msg as message, popup, sane = 1) msg = copytext(msg, 1, MAX_MESSAGE_LEN) @@ -656,7 +658,7 @@ var/list/slot_equipment_priority = list( \ /mob/proc/update_flavor_text() set src in usr if(usr != src) - usr << "No." + to_chat(usr, "No.") var/msg = input(usr,"Set the flavor text in your 'examine' verb. Can also be used for OOC notes about your character.","Flavor Text",html_decode(flavor_text)) as message|null if(msg != null) @@ -684,16 +686,16 @@ var/list/slot_equipment_priority = list( \ set category = "OOC" if (!abandon_allowed) - usr << "Respawning is disabled." + to_chat(usr, "Respawning is disabled.") return if (stat != DEAD || !ticker) - usr << "You must be dead to use this!" + to_chat(usr, "You must be dead to use this!") return log_game("[key_name(usr)] has respawned.") - usr << "Make sure to play a different character, and please roleplay correctly!" + to_chat(usr, "Make sure to play a different character, and please roleplay correctly!") if(!client) log_game("[key_name(usr)] respawn failed due to disconnect.") @@ -722,7 +724,7 @@ var/list/slot_equipment_priority = list( \ if(client.holder && (client.holder.rights & R_ADMIN)) is_admin = 1 else if(stat != DEAD || istype(src, /mob/new_player)) - usr << "\blue You must be observing to use this!" + to_chat(usr, "\blue You must be observing to use this!") return if(is_admin && stat == DEAD) @@ -937,7 +939,7 @@ var/list/slot_equipment_priority = list( \ /mob/proc/see(message) if(!is_active()) return 0 - src << message + to_chat(src, message) return 1 /mob/proc/is_muzzled() @@ -1185,11 +1187,11 @@ mob/proc/yank_out_object() usr.changeNext_move(CLICK_CD_RESIST) if(usr.stat == 1) - usr << "You are unconcious and cannot do that!" + to_chat(usr, "You are unconcious and cannot do that!") return if(usr.restrained()) - usr << "You are restrained and cannot do that!" + to_chat(usr, "You are restrained and cannot do that!") return var/mob/S = src @@ -1203,17 +1205,17 @@ mob/proc/yank_out_object() valid_objects = get_visible_implants(0) if(!valid_objects.len) if(self) - src << "You have nothing stuck in your body that is large enough to remove." + to_chat(src, "You have nothing stuck in your body that is large enough to remove.") else - U << "[src] has nothing stuck in their wounds that is large enough to remove." + to_chat(U, "[src] has nothing stuck in their wounds that is large enough to remove.") return var/obj/item/weapon/selection = input("What do you want to yank out?", "Embedded objects") in valid_objects if(self) - src << "You attempt to get a good grip on [selection] in your body." + to_chat(src, "You attempt to get a good grip on [selection] in your body.") else - U << "You attempt to get a good grip on [selection] in [S]'s body." + to_chat(U, "You attempt to get a good grip on [selection] in [S]'s body.") if(!do_after(U, 80, target = S)) return @@ -1268,11 +1270,11 @@ mob/proc/yank_out_object() set category = "Ghost" if(jobban_isbanned(usr, "NPC")) - usr << "You are banned from playing as NPC's." + to_chat(usr, "You are banned from playing as NPC's.") return if(!ticker || ticker.current_state < 3) - src << "You can't respawn as an NPC before the game starts!" + to_chat(src, "You can't respawn as an NPC before the game starts!") return if((usr in respawnable_list) && (stat==2 || istype(usr,/mob/dead/observer))) @@ -1296,7 +1298,7 @@ mob/proc/yank_out_object() spawn(5) respawnable_list += usr else - usr << "You are not dead or you have given up your right to be respawned!" + to_chat(usr, "You are not dead or you have given up your right to be respawned!") return @@ -1305,7 +1307,7 @@ mob/proc/yank_out_object() if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600) var/timedifference_text timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss") - src << "You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left." + to_chat(src, "You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.") return //find a viable mouse candidate @@ -1319,11 +1321,11 @@ mob/proc/yank_out_object() vent_found = pick(found_vents) host = new /mob/living/simple_animal/mouse(vent_found.loc) else - src << "Unable to find any unwelded vents to spawn mice at." + to_chat(src, "Unable to find any unwelded vents to spawn mice at.") if(host) host.ckey = src.ckey - host << "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent." + to_chat(host, "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent.") /mob/proc/assess_threat() //For sec bot threat assessment return diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index f5a61359a01..fcbcd410a89 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -262,7 +262,7 @@ hud.icon_state = "reinforce1" else if(state < GRAB_NECK) if(isslime(affecting)) - assailant << "You squeeze [affecting], but nothing interesting happens." + to_chat(assailant, "You squeeze [affecting], but nothing interesting happens.") return assailant.visible_message("[assailant] has reinforced \his grip on [affecting] (now neck)!") @@ -318,7 +318,7 @@ switch(assailant.a_intent) if(I_HELP) /*if(force_down) - assailant << "You no longer pin [affecting] to the ground." + to_chat(assailant, "You no longer pin [affecting] to the ground.") force_down = 0 return*///This is a very basic demonstration of a new feature based on attacking someone with the grab, based on intent. //This specific example would allow you to stop pinning people to the floor without moving away from them. @@ -345,18 +345,18 @@ /*if(last_hit_zone == "eyes") if(state < GRAB_NECK) - assailant << "You require a better grab to do this." + to_chat(assailant, "You require a better grab to do this.") return if((affected.head && affected.head.flags & HEADCOVERSEYES) || \ (affected.wear_mask && affected.wear_mask.flags & MASKCOVERSEYES) || \ (affected.glasses && affected.glasses.flags & GLASSESCOVERSEYES)) - assailant << "You're going to need to remove the eye covering first." + to_chat(assailant, "You're going to need to remove the eye covering first.") return if(!affected.internal_organs_by_name["eyes"]) - assailant << "You cannot locate any eyes on [affecting]!" + to_chat(assailant, "You cannot locate any eyes on [affecting]!") return assailant.visible_message("[assailant] presses \his fingers into [affecting]'s eyes!") - affecting << "You feel immense pain as digits are being pressed into your eyes!" + to_chat(affecting, "You feel immense pain as digits are being pressed into your eyes!") assailant.attack_log += text("\[[time_stamp()]\] Pressed fingers into the eyes of [affecting.name] ([affecting.ckey])") affecting.attack_log += text("\[[time_stamp()]\] Had fingers pressed into their eyes by [assailant.name] ([assailant.ckey])") msg_admin_attack("[key_name(assailant)] has pressed his fingers into [key_name(affecting)]'s eyes.") @@ -364,12 +364,13 @@ eyes.damage += rand(3,4) if (eyes.damage >= eyes.min_broken_damage) if(M.stat != 2) - M << "\red You go blind!"*///This is a demonstration of adding a new damaging type based on intent as well as hitzone. + to_chat(M, "\red You go blind!")*///This is a demonstration of adding a new damaging type based on intent as well as hitzone. + //This specific example would allow you to squish people's eyes with a GRAB_NECK. if(I_DISARM) //This checks that the user is on disarm intent. /* if(state < GRAB_AGGRESSIVE) - assailant << "You require a better grab to do this." + to_chat(assailant, "You require a better grab to do this.") return if(!force_down) assailant.visible_message("[user] is forcing [affecting] to the ground!") @@ -381,7 +382,7 @@ affecting.set_dir(SOUTH) //face up return else - assailant << "You are already pinning [affecting] to the ground." + to_chat(assailant, "You are already pinning [affecting] to the ground.") return*///This is an example of something being done with an agressive grab + disarm intent. return diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 834592eb9c5..1f2e0e7b456 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -473,7 +473,7 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) set category = "IC" if(usr.sleeping) - usr << "\red You are already sleeping" + to_chat(usr, "\red You are already sleeping") return else if(alert(src,"You sure you want to sleep for a while?","Sleep","Yes","No") == "Yes") @@ -484,7 +484,7 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) set category = "IC" resting = !resting - src << "\blue You are now [resting ? "resting" : "getting up"]" + to_chat(src, "\blue You are now [resting ? "resting" : "getting up"]") /proc/is_blind(A) if(iscarbon(A)) @@ -554,14 +554,14 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) else // Everyone else (dead people who didn't ghost yet, etc.) lname = name lname = "[lname] " - M << "[lname][follow][message]" + to_chat(M, "[lname][follow][message]") /proc/notify_ghosts(var/message, var/ghost_sound = null) //Easy notification of ghosts. for(var/mob/dead/observer/O in player_list) if(O.client) - O << "[message]" + to_chat(O, "[message]") if(ghost_sound) - O << sound(ghost_sound) + to_chat(O, sound(ghost_sound)) /mob/proc/switch_to_camera(var/obj/machinery/camera/C) if (!C.can_use() || stat || (get_dist(C, src) > 1 || machine != src || blinded || !canmove)) @@ -642,7 +642,7 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) break if(newname) break //That's a suitable name! - src << "Sorry, that [role]-name wasn't appropriate, please try another. It's possibly too long/short, has bad characters or is already taken." + to_chat(src, "Sorry, that [role]-name wasn't appropriate, please try another. It's possibly too long/short, has bad characters or is already taken.") if(!newname) //we'll stick with the oldname then return diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 22a41279401..68913c6ad25 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -50,12 +50,12 @@ var/mob/living/silicon/robot/R = usr var/module = R.get_selected_module() if(!module) - usr << "\red You have no module selected." + to_chat(usr, "\red You have no module selected.") return R.cycle_modules() R.uneq_numbered(module) else - usr << "\red This mob type cannot throw items." + to_chat(usr, "\red This mob type cannot throw items.") return @@ -63,17 +63,17 @@ if(iscarbon(usr)) var/mob/living/carbon/C = usr if(!C.get_active_hand()) - usr << "\red You have nothing to drop in your hand." + to_chat(usr, "\red You have nothing to drop in your hand.") return drop_item() else if(isrobot(usr)) var/mob/living/silicon/robot/R = usr if(!R.get_selected_module()) - usr << "\red You have no module selected." + to_chat(usr, "\red You have no module selected.") return R.deselect_module(R.get_selected_module()) else - usr << "\red This mob type cannot drop items." + to_chat(usr, "\red This mob type cannot drop items.") return //This gets called when you press the delete button. @@ -81,7 +81,7 @@ set hidden = 1 if(!usr.pulling) - usr << "\blue You are not pulling anything." + to_chat(usr, "\blue You are not pulling anything.") return usr.stop_pulling() @@ -227,13 +227,13 @@ for(var/mob/M in range(mob, 1)) if(M.pulling == mob) if(!M.restrained() && M.stat == 0 && M.canmove && mob.Adjacent(M)) - src << "\blue You're restrained! You can't move!" + to_chat(src, "\blue You're restrained! You can't move!") return 0 else M.stop_pulling() if(mob.pinned.len) - src << "\blue You're pinned to a wall by [mob.pinned[1]]!" + to_chat(src, "\blue You're pinned to a wall by [mob.pinned[1]]!") return 0 var/turf/T = mob.loc @@ -392,7 +392,7 @@ if(3) //Incorporeal move, but blocked by holy-watered tiles var/turf/simulated/floor/stepTurf = get_step(L, direct) if(stepTurf.flags & NOJAUNT) - L << "Holy energies block your path." + to_chat(L, "Holy energies block your path.") L.notransform = 1 spawn(2) L.notransform = 0 @@ -439,7 +439,7 @@ if(movement_dir && dense_object_backup) if(dense_object_backup.newtonian_move(turn(movement_dir, 180))) //You're pushing off something movable, so it moves - src << "You push off of [dense_object_backup] to propel yourself." + to_chat(src, "You push off of [dense_object_backup] to propel yourself.") return 1 diff --git a/code/modules/mob/mob_transformation_simple.dm b/code/modules/mob/mob_transformation_simple.dm index 33428a9c096..856879acf38 100644 --- a/code/modules/mob/mob_transformation_simple.dm +++ b/code/modules/mob/mob_transformation_simple.dm @@ -5,7 +5,7 @@ /mob/proc/change_mob_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num, var/forcekey = 0) if(istype(src,/mob/new_player)) - usr << "\red cannot convert players who have not entered yet." + to_chat(usr, "\red cannot convert players who have not entered yet.") return if(!new_type) @@ -15,11 +15,11 @@ new_type = text2path(new_type) if( !ispath(new_type) ) - usr << "Invalid type path (new_type = [new_type]) in change_mob_type(). Contact a coder." + to_chat(usr, "Invalid type path (new_type = [new_type]) in change_mob_type(). Contact a coder.") return if( new_type == /mob/new_player ) - usr << "\red cannot convert into a new_player mob type." + to_chat(usr, "\red cannot convert into a new_player mob type.") return var/mob/M @@ -29,7 +29,7 @@ M = new new_type( src.loc ) if(!M || !ismob(M)) - usr << "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder." + to_chat(usr, "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder.") qdel(M) return diff --git a/code/modules/mob/new_player/login.dm b/code/modules/mob/new_player/login.dm index b29267f9c3b..f6e2441e876 100644 --- a/code/modules/mob/new_player/login.dm +++ b/code/modules/mob/new_player/login.dm @@ -1,7 +1,7 @@ /mob/new_player/Login() update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying if(join_motd) - src << "
[join_motd]
" + to_chat(src, "
[join_motd]
") if(!mind) mind = new /datum/mind(key) @@ -43,4 +43,5 @@ for(var/client/C in clients) tally++ if(tally > config.player_overflow_cap) - src << link(config.overflow_server_url) \ No newline at end of file + src << link(config.overflow_server_url) + diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 0f493a22dab..ffb6f6c13b8 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -118,12 +118,13 @@ var/mob/dead/observer/observer = new() src << browse(null, "window=playersetup") spawning = 1 - src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // MAD JAMS cant last forever yo + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))// MAD JAMS cant last forever yo + observer.started_as_observer = 1 close_spawn_windows() var/obj/O = locate("landmark*Observer-Start") - src << "\blue Now teleporting." + to_chat(src, "\blue Now teleporting.") observer.loc = O.loc observer.timeofdeath = world.time // Set the time of death so that the respawn timer works correctly. client.prefs.update_preview_icon(1) @@ -143,13 +144,13 @@ if(href_list["late_join"]) if(!ticker || ticker.current_state != GAME_STATE_PLAYING) - usr << "\red The round is either not ready, or has already finished..." + to_chat(usr, "\red The round is either not ready, or has already finished...") return if(client.prefs.species in whitelisted_species) if(!is_alien_whitelisted(src, client.prefs.species) && config.usealienwhitelist) - src << alert("You are currently not whitelisted to play [client.prefs.species].") + to_chat(src, alert("You are currently not whitelisted to play [client.prefs.species].")) return 0 LateChoices() @@ -160,12 +161,12 @@ if(href_list["SelectedJob"]) if(!enter_allowed) - usr << "\blue There is an administrative lock on entering the game!" + to_chat(usr, "\blue There is an administrative lock on entering the game!") return if(client.prefs.species in whitelisted_species) if(!is_alien_whitelisted(src, client.prefs.species) && config.usealienwhitelist) - src << alert("You are currently not whitelisted to play [client.prefs.species].") + to_chat(src, alert("You are currently not whitelisted to play [client.prefs.species].")) return 0 AttemptLateSpawn(href_list["SelectedJob"],client.prefs.spawnpoint) @@ -206,7 +207,7 @@ var/id_max = text2num(href_list["maxid"]) if( (id_max - id_min) > 100 ) //Basic exploit prevention - usr << "The option ID difference is too big. Please contact administration or the database admin." + to_chat(usr, "The option ID difference is too big. Please contact administration or the database admin.") return for(var/optionid = id_min; optionid <= id_max; optionid++) @@ -225,7 +226,7 @@ var/id_max = text2num(href_list["maxoptionid"]) if( (id_max - id_min) > 100 ) //Basic exploit prevention - usr << "The option ID difference is too big. Please contact administration or the database admin." + to_chat(usr, "The option ID difference is too big. Please contact administration or the database admin.") return for(var/optionid = id_min; optionid <= id_max; optionid++) @@ -257,13 +258,13 @@ if (src != usr) return 0 if(!ticker || ticker.current_state != GAME_STATE_PLAYING) - usr << "\red The round is either not ready, or has already finished..." + to_chat(usr, "\red The round is either not ready, or has already finished...") return 0 if(!enter_allowed) - usr << "\blue There is an administrative lock on entering the game!" + to_chat(usr, "\blue There is an administrative lock on entering the game!") return 0 if(!IsJobAvailable(rank)) - src << alert("[rank] is not available. Please try another.") + to_chat(src, alert("[rank] is not available. Please try another.")) return 0 job_master.AssignRole(src, rank, 1) @@ -302,7 +303,7 @@ character.loc = pick(S.turfs) join_message = S.msg else - character << "Your chosen spawnpoint ([S.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead." + to_chat(character, "Your chosen spawnpoint ([S.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead.") character.loc = pick(latejoin) join_message = "has arrived on the station" else @@ -415,7 +416,8 @@ client.prefs.real_name = random_name(client.prefs.gender) client.prefs.copy_to(new_character) - src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // MAD JAMS cant last forever yo + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))// MAD JAMS cant last forever yo + if(mind) mind.active = 0 //we wish to transfer the key manually diff --git a/code/modules/mob/new_player/poll.dm b/code/modules/mob/new_player/poll.dm index d9e240936d7..4ce44be1fd8 100644 --- a/code/modules/mob/new_player/poll.dm +++ b/code/modules/mob/new_player/poll.dm @@ -59,7 +59,7 @@ break if(!found) - usr << "\red Poll question details not found." + to_chat(usr, "\red Poll question details not found.") return switch(polltype) @@ -316,7 +316,7 @@ break if(!validpoll) - usr << "\red Poll is not valid." + to_chat(usr, "\red Poll is not valid.") return var/DBQuery/select_query2 = dbcon.NewQuery("SELECT id FROM [format_table_name("poll_option")] WHERE id = [optionid] AND pollid = [pollid]") @@ -329,7 +329,7 @@ break if(!validoption) - usr << "\red Poll option is not valid." + to_chat(usr, "\red Poll option is not valid.") return var/alreadyvoted = 0 @@ -343,11 +343,11 @@ break if(!multichoice && alreadyvoted) - usr << "\red You already voted in this poll." + to_chat(usr, "\red You already voted in this poll.") return if(multichoice && (alreadyvoted >= multiplechoiceoptions)) - usr << "\red You already have more than [multiplechoiceoptions] logged votes on this poll. Enough is enough. Contact the database admin if this is an error." + to_chat(usr, "\red You already have more than [multiplechoiceoptions] logged votes on this poll. Enough is enough. Contact the database admin if this is an error.") return var/adminrank = "Player" @@ -358,7 +358,7 @@ var/DBQuery/insert_query = dbcon.NewQuery("INSERT INTO [format_table_name("poll_vote")] (id ,datetime ,pollid ,optionid ,ckey ,ip ,adminrank) VALUES (null, Now(), [pollid], [optionid], '[usr.ckey]', '[usr.client.address]', '[adminrank]')") insert_query.Execute() - usr << "\blue Vote successful." + to_chat(usr, "\blue Vote successful.") usr << browse(null,"window=playerpoll") @@ -383,7 +383,7 @@ break if(!validpoll) - usr << "\red Poll is not valid." + to_chat(usr, "\red Poll is not valid.") return var/alreadyvoted = 0 @@ -396,7 +396,7 @@ break if(alreadyvoted) - usr << "\red You already sent your feedback for this poll." + to_chat(usr, "\red You already sent your feedback for this poll.") return var/adminrank = "Player" @@ -410,13 +410,13 @@ replytext = replacetext(replytext, "%BR%", "
") if(!text_pass) - usr << "The text you entered was blank, contained illegal characters or was too long. Please correct the text and submit again." + to_chat(usr, "The text you entered was blank, contained illegal characters or was too long. Please correct the text and submit again.") return var/DBQuery/insert_query = dbcon.NewQuery("INSERT INTO [format_table_name("poll_textreply")] (id ,datetime ,pollid ,ckey ,ip ,replytext ,adminrank) VALUES (null, Now(), [pollid], '[usr.ckey]', '[usr.client.address]', '[replytext]', '[adminrank]')") insert_query.Execute() - usr << "\blue Feedback logging successful." + to_chat(usr, "\blue Feedback logging successful.") usr << browse(null,"window=playerpoll") @@ -441,7 +441,7 @@ break if(!validpoll) - usr << "\red Poll is not valid." + to_chat(usr, "\red Poll is not valid.") return var/DBQuery/select_query2 = dbcon.NewQuery("SELECT id FROM [format_table_name("poll_option")] WHERE id = [optionid] AND pollid = [pollid]") @@ -454,7 +454,7 @@ break if(!validoption) - usr << "\red Poll option is not valid." + to_chat(usr, "\red Poll option is not valid.") return var/alreadyvoted = 0 @@ -467,7 +467,7 @@ break if(alreadyvoted) - usr << "\red You already voted in this poll." + to_chat(usr, "\red You already voted in this poll.") return var/adminrank = "Player" @@ -478,5 +478,5 @@ var/DBQuery/insert_query = dbcon.NewQuery("INSERT INTO [format_table_name("poll_vote")] (id ,datetime ,pollid ,optionid ,ckey ,ip ,adminrank, rating) VALUES (null, Now(), [pollid], [optionid], '[usr.ckey]', '[usr.client.address]', '[adminrank]', [(isnull(rating)) ? "null" : rating])") insert_query.Execute() - usr << "\blue Vote successful." + to_chat(usr, "\blue Vote successful.") usr << browse(null,"window=playerpoll") \ No newline at end of file diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index cc4aafb64e8..e5b12ed022b 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -42,11 +42,11 @@ /mob/proc/say_dead(var/message) if(!src.client.holder) if(!config.dsay_allowed) - src << "Deadchat is globally muted." + to_chat(src, "Deadchat is globally muted.") return if(client && !(client.prefs.toggles & CHAT_DEAD)) - usr << "You have deadchat muted." + to_chat(usr, "You have deadchat muted.") return say_dead_direct("[pick("complains","moans","whines","laments","blubbers")], \"[message]\"", src) diff --git a/code/modules/mob/spirit/mask/mask.dm b/code/modules/mob/spirit/mask/mask.dm index c121d5684d0..8ae366ef16a 100644 --- a/code/modules/mob/spirit/mask/mask.dm +++ b/code/modules/mob/spirit/mask/mask.dm @@ -18,7 +18,7 @@ if (cultist) follow_cultist(cultist.owner) cult_log("[key_name_admin(src)] started following [key_name_admin(cultist)].") - src << "You start following [cultist.get_display_name()]." + to_chat(src, "You start following [cultist.get_display_name()].") /mob/spirit/mask/verb/urge_cultist() @@ -31,7 +31,7 @@ if (cultist.owner) var/newUrge = stripped_input(usr, "", "Set Urge", "") cultist.set_urge(newUrge) - src << "You urge [cultist.owner.name] to [newUrge]." + to_chat(src, "You urge [cultist.owner.name] to [newUrge].") cult_log("controlled by [key_name_admin(src)] has urged [key_name_admin(cultist.owner)] to [newUrge].") /mob/spirit/mask/verb/set_cult_name() @@ -45,7 +45,7 @@ if (!newName) return cultist.set_cult_name(newName) - src << "You grant [cultist.owner.name] the secret name of [newName]." + to_chat(src, "You grant [cultist.owner.name] the secret name of [newName].") if (cultist.owner) cult_log("[key_name_admin(src)] has set [key_name_admin(cultist.owner)] to \'[newName]\'") @@ -58,7 +58,7 @@ var/newUrge = stripped_input(usr, "Please choose an urge.", "Set Urge", "") for(var/obj/cult_viewpoint/viewpoint in cult_viewpoints) viewpoint.set_urge(newUrge) - src << "You urge the entire cult to [newUrge]." + to_chat(src, "You urge the entire cult to [newUrge].") cult_log("[key_name_admin(src)] has urged the entire cult to [newUrge]") @@ -88,7 +88,7 @@ spawn(0) var/newName = stripped_input(src, "Please pick a name.", "Pick Name for Mask", "") name = newName ? newName : "Mask of Nar'sie" - src << "You have set your name to [name]." + to_chat(src, "You have set your name to [name].") /mob/spirit/mask/proc/pick_cultist() @@ -133,9 +133,9 @@ flicker_mask(usr) for(var/datum/mind/H in ticker.mode.cult) if (H.current) - H.current << "[usr.name]: [input]" + to_chat(H.current, "[usr.name]: [input]") for(var/mob/spirit/spirit in spirits) - spirit << "[usr.name]: [input]" + to_chat(spirit, "[usr.name]: [input]") /obj/effect/proc_holder/spell/aoe_turf/shatter_lights @@ -194,7 +194,7 @@ var/talisman = input("Pick a talisman type", "Talisman", null, null) as null|anything in talismans var/imbue_value = talismans[talisman] if (!talisman) - usr << "You choose not to create a talisman." + to_chat(usr, "You choose not to create a talisman.") revert_cast(usr) return @@ -206,7 +206,7 @@ if ("Teleport") var/target_rune = input("Pick a teleport target", "Teleport Rune", null, null) as null|anything in engwords if (!target_rune) - usr << "You choose not to create a talisman." + to_chat(usr, "You choose not to create a talisman.") revert_cast(usr) return summon_type = list(/obj/item/weapon/paper/talisman) diff --git a/code/modules/mob/spirit/movement.dm b/code/modules/mob/spirit/movement.dm index b5ac53fbeae..65a992c1932 100644 --- a/code/modules/mob/spirit/movement.dm +++ b/code/modules/mob/spirit/movement.dm @@ -36,10 +36,10 @@ mob/spirit/proc/Spirit_Move(direct) var/mob/spirit/U = usr if (!currentView) - U << "As a spirit, you may only track cultists." + to_chat(U, "As a spirit, you may only track cultists.") U.follow_target = target - U << "Now following [currentView.get_cult_name()]." + to_chat(U, "Now following [currentView.get_cult_name()].") spawn (0) while (U.follow_target == target) @@ -58,4 +58,4 @@ mob/spirit/verb/toggle_acceleration() set name = "Toggle Acceleration" acceleration = !acceleration - usr << "Acceleration has been toggled [acceleration ? "on" : "off"]." \ No newline at end of file + to_chat(usr, "Acceleration has been toggled [acceleration ? "on" : "off"].") diff --git a/code/modules/mob/spirit/spirit.dm b/code/modules/mob/spirit/spirit.dm index b5295a0d85f..a9b10f8224f 100644 --- a/code/modules/mob/spirit/spirit.dm +++ b/code/modules/mob/spirit/spirit.dm @@ -57,12 +57,12 @@ mob/spirit/Topic(href, href_list) return ..() - usr << "Spirit Href = [href]" + to_chat(usr, "Spirit Href = [href]") for (var/tempref in href_list) - usr << "Spirit href list [tempref] = [href_list[tempref]]" + to_chat(usr, "Spirit href list [tempref] = [href_list[tempref]]") if (href_list["track"]) - usr << "Got to tracking." + to_chat(usr, "Got to tracking.") var/mob/target = locate(href_list["track"]) in mob_list var/mob/spirit/A = locate(href_list["track2"]) in spirits if(A && target) diff --git a/code/modules/mob/spirit/viewpoint.dm b/code/modules/mob/spirit/viewpoint.dm index 85599a52b62..90814317124 100644 --- a/code/modules/mob/spirit/viewpoint.dm +++ b/code/modules/mob/spirit/viewpoint.dm @@ -36,9 +36,9 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() set name = "Check Urge" set src in usr if (src.urge) - owner << "\red \b You feel the urge to [src.urge]" + to_chat(owner, "\red \b You feel the urge to [src.urge]") else - owner << "\b You feel no supernatural compulsions." + to_chat(owner, "\b You feel no supernatural compulsions.") /obj/cult_viewpoint/verb/reach_out() @@ -49,10 +49,11 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() for(var/mob/spirit/mask/currentMask in spirits) if (currentMask.is_active()) - owner << "\red \b You feel the reassuring presence of your god." - currentMask << "[get_display_name()] has reached out to you." + to_chat(owner, "\red \b You feel the reassuring presence of your god.") + to_chat(currentMask, "[get_display_name()] has reached out to you.") + return - owner << "\b You feel a chilling absence." + to_chat(owner, "\b You feel a chilling absence.") handle_missing_mask() @@ -63,11 +64,11 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() set src in usr switch(favor) if(FAVOR_PLEASED) - owner << "\red \b You bask in your gods favor." + to_chat(owner, "\red \b You bask in your gods favor.") if(FAVOR_INDIFFERENT) - owner << "\red \b You feel nothing." + to_chat(owner, "\red \b You feel nothing.") if(FAVOR_DISPLEASED) - owner << "\red \b You cringe at your gods displeasure." + to_chat(owner, "\red \b You cringe at your gods displeasure.") /obj/cult_viewpoint/verb/pray_to_mask() @@ -81,10 +82,11 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() return cult_log("[key_name(usr,0)](Pray):[input]") - owner << "You pray to Nar'Sie: [input]" + to_chat(owner, "You pray to Nar'Sie: [input]") for(var/mob/spirit/spirit in spirits) - spirit << "[get_display_name()] prays : [input]" + to_chat(spirit, "[get_display_name()] prays : [input]") + // PROCS /obj/cult_viewpoint/proc/set_favor(var/newFavor) @@ -120,10 +122,10 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() return FALSE if (newName) cult_name = newName - owner << "\red \b You have been blessed with the secret name of '[newName]'." + to_chat(owner, "\red \b You have been blessed with the secret name of '[newName]'.") else cult_name = null - owner << "\red \b Your god has taken your secret name." + to_chat(owner, "\red \b Your god has taken your secret name.") /obj/cult_viewpoint/proc/get_display_name() @@ -159,7 +161,7 @@ var/obj/cult_viewpoint/list/cult_viewpoints = list() else return else - owner << "\b You cannot become a mask of Nar'Sie because a Mask already exists." + to_chat(owner, "\b You cannot become a mask of Nar'Sie because a Mask already exists.") mask_has_been_found() return diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 26e2497ac0c..5e3641803ff 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -28,7 +28,8 @@ /mob/proc/AIize() if(client) - src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // stop the jams for AIs + to_chat(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))// stop the jams for AIs + var/mob/living/silicon/ai/O = new (loc,,,1)//No MMI but safety is in effect. O.invisibility = 0 O.aiRestorePowerRoutine = 0 @@ -53,7 +54,7 @@ continue loc_landmark = tripai if (!loc_landmark) - O << "Oh god sorry we can't find an unoccupied AI spawn location, so we're spawning you on top of someone." + to_chat(O, "Oh god sorry we can't find an unoccupied AI spawn location, so we're spawning you on top of someone.") for(var/obj/effect/landmark/start/sloc in landmarks_list) if (sloc.name == "AI") loc_landmark = sloc @@ -106,8 +107,8 @@ "You hear strange noise, you can't quite place it.") qdel(src) - new_spirit << "You are a Mask of Nar'sie now. You are a tiny fragment of the unknowable entity that is the god." - new_spirit << "Your job is to help your acolytes complete their goals. Be spooky. Do evil." + to_chat(new_spirit, "You are a Mask of Nar'sie now. You are a tiny fragment of the unknowable entity that is the god.") + to_chat(new_spirit, "Your job is to help your acolytes complete their goals. Be spooky. Do evil.") new_spirit.set_name() @@ -208,7 +209,7 @@ new_xeno.a_intent = I_HARM new_xeno.key = key - new_xeno << "You are now an alien." + to_chat(new_xeno, "You are now an alien.") new_xeno.update_pipe_vision() spawn(0)//To prevent the proc from returning null. qdel(src) @@ -244,7 +245,7 @@ else new_slime.key = key - new_slime << "You are now a slime. Skreee!" + to_chat(new_slime, "You are now a slime. Skreee!") new_slime.update_pipe_vision() spawn(0)//To prevent the proc from returning null. qdel(src) @@ -267,7 +268,7 @@ new_corgi.a_intent = I_HARM new_corgi.key = key - new_corgi << "You are now a Corgi. Yap Yap!" + to_chat(new_corgi, "You are now a Corgi. Yap Yap!") new_corgi.update_pipe_vision() spawn(0)//To prevent the proc from returning null. qdel(src) @@ -298,7 +299,7 @@ new_mob.a_intent = I_HARM - new_mob << "You suddenly feel more... animalistic." + to_chat(new_mob, "You suddenly feel more... animalistic.") new_mob.update_pipe_vision() spawn() qdel(src) @@ -313,7 +314,7 @@ new_mob.key = key new_mob.a_intent = I_HARM - new_mob << "You feel more... animalistic" + to_chat(new_mob, "You feel more... animalistic") new_mob.update_pipe_vision() qdel(src) diff --git a/code/modules/mob/typing_indicator.dm b/code/modules/mob/typing_indicator.dm index f2e4595a35b..49d9a7aad48 100644 --- a/code/modules/mob/typing_indicator.dm +++ b/code/modules/mob/typing_indicator.dm @@ -83,7 +83,7 @@ var/global/image/typing_indicator set desc = "Toggles showing an indicator when you are typing emote or say message." prefs.toggles ^= SHOW_TYPING prefs.save_preferences(src) - src << "You will [(prefs.toggles & SHOW_TYPING) ? "no longer" : "now"] display a typing indicator." + to_chat(src, "You will [(prefs.toggles & SHOW_TYPING) ? "no longer" : "now"] display a typing indicator.") // Clear out any existing typing indicator. if(prefs.toggles & SHOW_TYPING) diff --git a/code/modules/nano/modules/crew_monitor.dm b/code/modules/nano/modules/crew_monitor.dm index 6888702ea83..848530c3c1d 100644 --- a/code/modules/nano/modules/crew_monitor.dm +++ b/code/modules/nano/modules/crew_monitor.dm @@ -6,7 +6,7 @@ return 1 var/turf/T = get_turf(nano_host()) if (!T || !(T.z in config.player_levels)) - usr << "Unable to establish a connection: You're too far away from the station!" + to_chat(usr, "Unable to establish a connection: You're too far away from the station!") return 0 if(href_list["track"]) if(isAI(usr)) diff --git a/code/modules/nano/modules/law_manager.dm b/code/modules/nano/modules/law_manager.dm index 93d68c2bf12..df00504cf1f 100644 --- a/code/modules/nano/modules/law_manager.dm +++ b/code/modules/nano/modules/law_manager.dm @@ -134,15 +134,15 @@ return 1 if(href_list["notify_laws"]) - owner << "Law Notice" + to_chat(owner, "Law Notice") owner.laws.show_laws(owner) if(isAI(owner)) var/mob/living/silicon/ai/AI = owner for(var/mob/living/silicon/robot/R in AI.connected_robots) - R << "Law Notice" + to_chat(R, "Law Notice") R.laws.show_laws(R) if(usr != owner) - usr << "Laws displayed." + to_chat(usr, "Laws displayed.") return 1 return 0 diff --git a/code/modules/nano/nanomapgen.dm b/code/modules/nano/nanomapgen.dm index 44154cdb675..62ad6649e20 100644 --- a/code/modules/nano/nanomapgen.dm +++ b/code/modules/nano/nanomapgen.dm @@ -32,19 +32,19 @@ endY = world.maxy if (currentZ < 0 || currentZ > world.maxz) - usr << "NanoMapGen: ERROR: currentZ ([currentZ]) must be between 1 and [world.maxz]" + to_chat(usr, "NanoMapGen: ERROR: currentZ ([currentZ]) must be between 1 and [world.maxz]") sleep(3) return NANOMAP_TERMINALERR if (startX > endX) - usr << "NanoMapGen: ERROR: startX ([startX]) cannot be greater than endX ([endX])" + to_chat(usr, "NanoMapGen: ERROR: startX ([startX]) cannot be greater than endX ([endX])") sleep(3) return NANOMAP_TERMINALERR if (startY > endX) - usr << "NanoMapGen: ERROR: startY ([startY]) cannot be greater than endY ([endY])" + to_chat(usr, "NanoMapGen: ERROR: startY ([startY]) cannot be greater than endY ([endY])") sleep(3) return NANOMAP_TERMINALERR @@ -55,7 +55,7 @@ return NANOMAP_TERMINALERR log_to_dd("NanoMapGen: GENERATE MAP ([startX],[startY],[currentZ]) to ([endX],[endY],[currentZ])") - usr << "NanoMapGen: GENERATE MAP ([startX],[startY],[currentZ]) to ([endX],[endY],[currentZ])" + to_chat(usr, "NanoMapGen: GENERATE MAP ([startX],[startY],[currentZ]) to ([endX],[endY],[currentZ])") var/count = 0; for(var/WorldX = startX, WorldX <= endX, WorldX++) @@ -82,7 +82,7 @@ log_to_dd("NanoMapGen: Done.") - usr << "NanoMapGen: Done. File [mapFilename] uploaded to your cache." + to_chat(usr, "NanoMapGen: Done. File [mapFilename] uploaded to your cache.") if (Tile.Width() != NANOMAP_MAX_ICON_DIMENSION || Tile.Height() != NANOMAP_MAX_ICON_DIMENSION) return NANOMAP_BADOUTPUT diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm index 6b78745c97f..7675d3b2c81 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -456,7 +456,8 @@ nanoui is used to open and update nano browser uis var/list/send_data = get_send_data(data) - //user << list2json_usecache(send_data) // used for debugging //NANO DEBUG HOOK +// to_chat(user, list2json_usecache(send_data))// used for debugging //NANO DEBUG HOOK + user << output(list2params(list(list2json_usecache(send_data))),"[window_id].browser:receiveUpdateData") /** diff --git a/code/modules/ninja/energy_katana.dm b/code/modules/ninja/energy_katana.dm index 58c2036848a..5e6a1cbcb32 100644 --- a/code/modules/ninja/energy_katana.dm +++ b/code/modules/ninja/energy_katana.dm @@ -65,7 +65,7 @@ msg = "Your Energy Katana lands at your feet!" if(msg) - user << "[msg]" + to_chat(user, "[msg]") /obj/item/weapon/katana/energy/New() ..() diff --git a/code/modules/ninja/martial_art.dm b/code/modules/ninja/martial_art.dm index 7b230c1e011..0903425f89d 100644 --- a/code/modules/ninja/martial_art.dm +++ b/code/modules/ninja/martial_art.dm @@ -21,7 +21,7 @@ if(!used) user.visible_message("You stick the [src]'s needle into your arm and press the button.", \ "[user] sticks the [src]'s needle \his arm and presses the button.") - user << "The nanomachines in the [src] flow through your bloodstream." + to_chat(user, "The nanomachines in the [src] flow through your bloodstream.") var/datum/martial_art/ninja_martial_art/N = new/datum/martial_art/ninja_martial_art(null) N.teach(user) @@ -31,7 +31,7 @@ desc = "A strange autoinjector made of a black metal.
It appears to be used up and empty." return 0 else - user << "The [src] has been used already!" + to_chat(user, "The [src] has been used already!") return 1 // Ninja martial art datum @@ -45,7 +45,7 @@ /datum/martial_art/ninja_martial_art/teach(var/mob/living/carbon/human/H,var/make_temporary=0) ..() H.middleClickOverride = new /datum/middleClickOverride/ninja_martial_art() - H << "You have been taugh the ways of the Creeping Widow.
\ + to_chat(H, "You have been taugh the ways of the Creeping Widow.
\) Your stikes on harm intent will deal more damage.
Using middle mouse button on a nearby person while on harm intent will send them flying backwards.
\ Your grabs will instantly be aggressive while you are using this style.
Using middle mouse button while on harm intent and behind a person will put them in a silencing choke hold.
\ Using middle mouse button on a nearby person while on disarm intent will wrench their wrist, causing them to drop what they are holding.
" @@ -64,7 +64,7 @@ D.Stun(1) spawn(50) has_focus = 1 return 1 - A << "You are not focused enough to use that move yet!" + to_chat(A, "You are not focused enough to use that move yet!") return 0 return A.pointed(D) @@ -72,11 +72,11 @@ if(!D.stat && !D.weakened) A.face_atom(D) if(A.dir != D.dir) // If the user's direction is not the same as the target's after A.face_atom(D) you are not behind them, and cannot use this ability. - A << "You cannot grab [D] from that angle!" + to_chat(A, "You cannot grab [D] from that angle!") return 0 if(has_choke_hold) // Are we already choking someone? - A<< "You are have a target in your grip!" + to_chat(A, "You are have a target in your grip!") return 0 has_choke_hold = 1 @@ -105,8 +105,8 @@ I++ sleep(5) - A << "You feel [D] go limp in your grip." - D << "You feel your consciousness slip away as [A] strangles you!" + to_chat(A, "You feel [D] go limp in your grip.") + to_chat(D, "You feel your consciousness slip away as [A] strangles you!") D.AdjustParalysis(20) has_choke_hold = 0 @@ -131,7 +131,7 @@ playsound(get_turf(D), 'sound/weapons/punch1.ogg', 50, 1, -1) spawn(50) has_focus = 1 return 1 - A << "You are not focused enough to use that move yet!" + to_chat(A, "You are not focused enough to use that move yet!") return 0 return A.pointed(D) diff --git a/code/modules/ninja/suit/SpiderOS.dm b/code/modules/ninja/suit/SpiderOS.dm index b44eab056ee..871e8215bbd 100644 --- a/code/modules/ninja/suit/SpiderOS.dm +++ b/code/modules/ninja/suit/SpiderOS.dm @@ -9,7 +9,7 @@ if(!s_busy) display_spideros() else - affecting << "The interface is locked!" + to_chat(affecting, "The interface is locked!") /obj/item/clothing/suit/space/space_ninja/proc/display_spideros() @@ -194,7 +194,7 @@ if(!affecting||U.stat||!s_initialized)//Check to make sure the guy is wearing the suit after clicking and it's on. - U << "Your suit must be worn and active to use this function." + to_chat(U, "Your suit must be worn and active to use this function.") U << browse(null, "window=spideros")//Closes the window. return @@ -217,7 +217,7 @@ display_to << browse(null, "window=spideros") return if(isnull(P)||P.toff)//So it doesn't freak out if the object no-longer exists. - display_to << "Error: unable to deliver message." + to_chat(display_to, "Error: unable to deliver message.") display_spideros() return @@ -226,12 +226,12 @@ if("Inject") if( (href_list["tag"]=="radium"? (reagents.get_reagent_amount("radium"))<=(a_boost*a_transfer) : !reagents.get_reagent_amount(href_list["tag"])) )//Special case for radium. If there are only a_boost*a_transfer radium units left. - display_to << "Error: the suit cannot perform this function. Out of [href_list["name"]]." + to_chat(display_to, "Error: the suit cannot perform this function. Out of [href_list["name"]].") else reagents.reaction(U, 2) reagents.trans_id_to(U, href_list["tag"], href_list["tag"]=="nutriment"?5:a_transfer)//Nutriment is a special case since it's very potent. Shouldn't influence actual refill amounts or anything. - display_to << "Injecting..." - U << "You feel a tiny prick and a sudden rush of substance in to your veins." + to_chat(display_to, "Injecting...") + to_chat(U, "You feel a tiny prick and a sudden rush of substance in to your veins.") if("Trigger Ability") var/ability_name = href_list["name"]+href_list["cost"]//Adds the name and cost to create the full proc name. @@ -251,7 +251,7 @@ proc_arguments = pick(targets) safety = 0 if(!safety) - U << "[href_list["name"]] suddenly triggered!" + to_chat(U, "[href_list["name"]] suddenly triggered!") call(src,ability_name)(proc_arguments) if("Eject Disk") @@ -265,11 +265,11 @@ t_disk.loc = T t_disk = null else - U << "ERROR: Could not eject disk." + to_chat(U, "ERROR: Could not eject disk.") if("Copy to Disk") var/datum/tech/current_data = locate(href_list["target"]) - U << "[current_data.name] successfully [(!t_disk.stored) ? "copied" : "overwritten"] to disk." + to_chat(U, "[current_data.name] successfully [(!t_disk.stored) ? "copied" : "overwritten"] to disk.") t_disk.stored = current_data diff --git a/code/modules/ninja/suit/suit.dm b/code/modules/ninja/suit/suit.dm index bfcc4330dc2..936f947758d 100644 --- a/code/modules/ninja/suit/suit.dm +++ b/code/modules/ninja/suit/suit.dm @@ -30,19 +30,19 @@ Contents: /obj/item/clothing/suit/space/space_ninja/proc/toggle_suit_lock(mob/living/carbon/human/user) if(!suitActive) if(!istype(user.wear_suit, /obj/item/clothing/suit/space/space_ninja)) - user<< "ERROR: Unable to locate user.\nABORTING..." + to_chat(user, "ERROR: Unable to locate user.\nABORTING...") return 0 if(!istype(user.head, /obj/item/clothing/head/helmet/space/space_ninja)) - user<< "ERROR: Unable to locate hood.\nABORTING..." + to_chat(user, "ERROR: Unable to locate hood.\nABORTING...") return 0 if(!istype(user.gloves, /obj/item/clothing/gloves/space_ninja)) - user<< "ERROR: Unable to locate gloves.\nABORTING..." + to_chat(user, "ERROR: Unable to locate gloves.\nABORTING...") return 0 if(!istype(user.shoes, /obj/item/clothing/shoes/space_ninja)) - user<< "ERROR: Unable to locate foot gear.\nABORTING..." + to_chat(user, "ERROR: Unable to locate foot gear.\nABORTING...") return 0 if(!istype(user.wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja)) - user<< "ERROR: Unable to locate mask.\nABORTING..." + to_chat(user, "ERROR: Unable to locate mask.\nABORTING...") return 0 suitHood = user.head diff --git a/code/modules/ninja/suit/suit_attackby.dm b/code/modules/ninja/suit/suit_attackby.dm index 760f6648452..620c2261782 100644 --- a/code/modules/ninja/suit/suit_attackby.dm +++ b/code/modules/ninja/suit/suit_attackby.dm @@ -5,7 +5,7 @@ if(istype(I, /obj/item/weapon/stock_parts/cell)) var/obj/item/weapon/stock_parts/cell/CELL if(CELL.maxcharge > cell.maxcharge && suitGloves) - U << "Higher maximum capacity detected.\nUpgrading..." + to_chat(U, "Higher maximum capacity detected.\nUpgrading...") if (n_gloves && n_gloves.candrain && do_after(U,s_delay, target = U)) U.drop_item() CELL.loc = src @@ -17,8 +17,8 @@ old_cell.corrupt() old_cell.updateicon() cell = CELL - U << "Upgrade complete. Maximum capacity: [round(cell.maxcharge/100)]%" + to_chat(U, "Upgrade complete. Maximum capacity: [round(cell.maxcharge/100)]%") else - U << "Procedure interrupted. Protocol terminated." + to_chat(U, "Procedure interrupted. Protocol terminated.") return ..() \ No newline at end of file diff --git a/code/modules/ninja/suit/suit_initialisation.dm b/code/modules/ninja/suit/suit_initialisation.dm index 7c84bef5aa3..f1abfbe725a 100644 --- a/code/modules/ninja/suit/suit_initialisation.dm +++ b/code/modules/ninja/suit/suit_initialisation.dm @@ -8,34 +8,34 @@ if(usr.mind.special_role == "Ninja") if(suitBusy) - usr << "ERROR: Suit systems busy, cannot initiate [suitActive ? "de-activation" : "activation"] protocals at this time." + to_chat(usr, "ERROR: Suit systems busy, cannot initiate [suitActive ? "de-activation" : "activation"] protocals at this time.") return suitBusy = 1 if(suitActive && (alert("Confirm suit systems shutdown? This cannot be halted once it has started.", "Confirm Shutdown", "Yes", "No") == "Yes")) - usr << "Now de-initializing..." + to_chat(usr, "Now de-initializing...") sleep(15) - usr << "Logging off, [usr.real_name]. Shutting down SpiderOS." + to_chat(usr, "Logging off, [usr.real_name]. Shutting down SpiderOS.") sleep(10) - usr<< "Primary system status: OFFLINE.\nBackup system status: OFFLINE." + to_chat(usr, "Primary system status: OFFLINE.\nBackup system status: OFFLINE.") sleep(5) - usr<< "VOID-shift device status: OFFLINE.\nCLOAK-tech device status: OFFLINE." + to_chat(usr, "VOID-shift device status: OFFLINE.\nCLOAK-tech device status: OFFLINE.") //TODO: Shut down any active abilities sleep(10) - usr<< "Disconnecting neural-net interface... Success." + to_chat(usr, "Disconnecting neural-net interface... Success.") usr.hud_used.instantiate() usr.regenerate_icons() sleep(5) - usr<< "Disengaging neural-net interface... Success." + to_chat(usr, "Disengaging neural-net interface... Success.") sleep(10) - usr<< "Unsecuring external locking mechanism...\nNeural-net abolished.\nOperation status: FINISHED." + to_chat(usr, "Unsecuring external locking mechanism...\nNeural-net abolished.\nOperation status: FINISHED.") //TODO: Grant verbs toggle_suit_lock(usr) usr.regenerate_icons() @@ -43,44 +43,44 @@ suitActive = 0 else if(!suitActive) // Activate the suit. - usr << "Now initializing..." + to_chat(usr, "Now initializing...") sleep(15) - usr<< "Now establishing neural-net interface..." + to_chat(usr, "Now establishing neural-net interface...") if(usr.mind.special_role != "Ninja") - usr << "FĆAL �Rr�R: µ§er n¤t rec¤gnized, c-c¤ntr-r¤£§-£§ £¤cked." + to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.") return sleep(10) - usr<< "Neural-net established. Now monitoring brainwave pattern. \nBrainwave pattern GREEN, proceeding." + to_chat(usr, "Neural-net established. Now monitoring brainwave pattern. \nBrainwave pattern GREEN, proceeding.") sleep(10) - usr<< "Securing external locking mechanism..." + to_chat(usr, "Securing external locking mechanism...") if(!toggle_suit_lock(usr)) return sleep(5) - usr<< "Suit secured, extending neural-net interface..." + to_chat(usr, "Suit secured, extending neural-net interface...") usr.hud_used.human_hud('icons/mob/screen1_NinjaHUD.dmi',"#ffffff",255) usr.regenerate_icons() sleep(10) - usr<< "VOID-shift device status: ONLINE.\nCLOAK-tech device status:ONLINE" + to_chat(usr, "VOID-shift device status: ONLINE.\nCLOAK-tech device status:ONLINE") sleep(5) - usr<< "Primary system status: ONLINE.\nBackup system status: ONLINE." + to_chat(usr, "Primary system status: ONLINE.\nBackup system status: ONLINE.") if(suitCell) - usr<< "Current energy capacity: [suitCell.charge]/[suitCell.maxcharge]." + to_chat(usr, "Current energy capacity: [suitCell.charge]/[suitCell.maxcharge].") sleep(10) - usr<< "All systems operational. Welcome to SpiderOS, [usr.real_name]." + to_chat(usr, "All systems operational. Welcome to SpiderOS, [usr.real_name].") //TODO: Grant ninja verbs here. suitBusy = 0 suitActive = 1 else suitBusy = 0 - usr << "NOTICE: Suit de-activation protocals aborted." + to_chat(usr, "NOTICE: Suit de-activation protocals aborted.") else - usr << "FĆAL �Rr�R: µ§er n¤t rec¤gnized, c-c¤ntr-r¤£§-£§ £¤cked." + to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.") return \ No newline at end of file diff --git a/code/modules/paperwork/carbonpaper.dm b/code/modules/paperwork/carbonpaper.dm index ae8357a5582..643c5b1fbb7 100644 --- a/code/modules/paperwork/carbonpaper.dm +++ b/code/modules/paperwork/carbonpaper.dm @@ -41,10 +41,10 @@ copy.name = "Copy - " + c.name copy.fields = c.fields copy.updateinfolinks() - usr << "You tear off the carbon-copy!" + to_chat(usr, "You tear off the carbon-copy!") c.copied = 1 copy.iscopy = 1 copy.update_icon() c.update_icon() else - usr << "There are no more carbon copies attached to this paper!" \ No newline at end of file + to_chat(usr, "There are no more carbon copies attached to this paper!") diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm index fe9a5bb62f2..fbb26b650a8 100644 --- a/code/modules/paperwork/clipboard.dm +++ b/code/modules/paperwork/clipboard.dm @@ -49,7 +49,7 @@ W.loc = src if(istype(W, /obj/item/weapon/paper)) toppaper = W - user << "You clip the [W] onto \the [src]." + to_chat(user, "You clip the [W] onto \the [src].") update_icon() else if(istype(toppaper) && istype(W, /obj/item/weapon/pen)) @@ -102,7 +102,7 @@ usr.drop_item() W.loc = src haspen = W - usr << "You slot the pen into \the [src]." + to_chat(usr, "You slot the pen into \the [src].") else if(href_list["write"]) var/obj/item/weapon/P = locate(href_list["write"]) @@ -145,7 +145,7 @@ var/obj/item/P = locate(href_list["top"]) if(P && (P.loc == src) && istype(P, /obj/item/weapon/paper) ) toppaper = P - usr << "You move [P.name] to the top." + to_chat(usr, "You move [P.name] to the top.") //Update everything attack_self(usr) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index 14e3f0d1343..23a0f3eec7e 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -44,9 +44,9 @@ var/list/alldepartments = list() /obj/machinery/photocopier/faxmachine/emag_act(user as mob) if(!emagged) emagged = 1 - user << "The transmitters realign to an unknown source!" + to_chat(user, "The transmitters realign to an unknown source!") else - user << "You swipe the card through [src], but nothing happens." + to_chat(user, "You swipe the card through [src], but nothing happens.") /obj/machinery/photocopier/faxmachine/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) var/data[0] @@ -100,7 +100,7 @@ var/list/alldepartments = list() if(copyitem) copyitem.loc = usr.loc usr.put_in_hands(copyitem) - usr << "You take \the [copyitem] out of \the [src]." + to_chat(usr, "You take \the [copyitem] out of \the [src].") copyitem = null else var/obj/item/I = usr.get_active_hand() @@ -108,7 +108,7 @@ var/list/alldepartments = list() usr.drop_item() copyitem = I I.loc = src - usr << "You insert \the [I] into \the [src]." + to_chat(usr, "You insert \the [I] into \the [src].") flick(insert_anim, src) if(href_list["scan"]) @@ -265,4 +265,4 @@ var/list/alldepartments = list() for(var/client/C in admins) if(R_EVENT & C.holder.rights) - C << msg + to_chat(C, msg) diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index e520aa1976e..cd52d4424e3 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -35,7 +35,7 @@ /obj/structure/filingcabinet/attackby(obj/item/P as obj, mob/user as mob, params) if(istype(P, /obj/item/weapon/paper) || istype(P, /obj/item/weapon/folder) || istype(P, /obj/item/weapon/photo) || istype(P, /obj/item/weapon/paper_bundle) || istype(P, /obj/item/documents)) - user << "You put [P] in [src]." + to_chat(user, "You put [P] in [src].") user.drop_item() P.loc = src icon_state = "[initial(icon_state)]-open" @@ -45,14 +45,14 @@ else if(istype(P, /obj/item/weapon/wrench)) 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 - user << "You can't put [P] in [src]!" + to_chat(user, "You can't put [P] in [src]!") /obj/structure/filingcabinet/attack_hand(mob/user as mob) if(contents.len <= 0) - user << "\The [src] is empty." + to_chat(user, "\The [src] is empty.") return user.set_machine(src) @@ -77,9 +77,9 @@ I.loc = loc if(prob(25)) step_rand(I) - user << "You pull \a [I] out of [src] at random." + to_chat(user, "You pull \a [I] out of [src] at random.") return - user << "You find nothing in [src]." + to_chat(user, "You find nothing in [src].") /obj/structure/filingcabinet/Topic(href, href_list) if(href_list["retrieve"]) diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm index 173723bf4cb..12f9e13a4e9 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -32,7 +32,7 @@ if(istype(W, /obj/item/weapon/paper) || istype(W, /obj/item/weapon/photo) || istype(W, /obj/item/weapon/paper_bundle) || istype(W, /obj/item/documents)) user.drop_item() W.loc = src - user << "You put the [W] into \the [src]." + to_chat(user, "You put the [W] into \the [src].") update_icon() else if(istype(W, /obj/item/weapon/pen)) var/n_name = input(usr, "What would you like to label the folder?", "Folder Labelling", null) as text|null diff --git a/code/modules/paperwork/frames.dm b/code/modules/paperwork/frames.dm index ec014d6a845..f988cf117cc 100644 --- a/code/modules/paperwork/frames.dm +++ b/code/modules/paperwork/frames.dm @@ -70,7 +70,7 @@ name = initial(name) update_icon() else - user << "There is nothing to remove from \the [src]." + to_chat(user, "There is nothing to remove from \the [src].") else if(istype(I, /obj/item/weapon/crowbar)) playsound(src, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] breaks down \the [src].", "You break down \the [src].") @@ -89,7 +89,7 @@ insert(I) update_icon() else - user << "\The [src] already contains \a [displayed]." + to_chat(user, "\The [src] already contains \a [displayed].") else return ..() @@ -103,14 +103,14 @@ var/stuff_on_wall = 0 for(var/obj/O in user.loc.contents) //Let's see if it already has a poster on it or too much stuff if(istype(O, /obj/structure/sign)) - user << "\The [T] is far too cluttered to place \a [src]!" + to_chat(user, "\The [T] is far too cluttered to place \a [src]!") return stuff_on_wall++ if(stuff_on_wall >= 4) - user << "\The [T] is far too cluttered to place \a [src]!" + to_chat(user, "\The [T] is far too cluttered to place \a [src]!") return - user << "You start place \the [src] on \the [T]." + to_chat(user, "You start place \the [src] on \the [T].") var/px = 0 var/py = 0 @@ -126,7 +126,7 @@ if(WEST) px = -32 else - user << "You cannot reach \the [T] from here!" + to_chat(user, "You cannot reach \the [T] from here!") return user.unEquip(src) @@ -226,10 +226,10 @@ qdel(src) if(istype(I, /obj/item/weapon/grenade) || istype(I, /obj/item/weapon/c4)) if(explosive) - user << "There is already a device attached behind \the [src], remove it first." + to_chat(user, "There is already a device attached behind \the [src], remove it first.") return 1 if(!tilted) - user << "\The [src] needs to be already tilted before being rigged with \the [I]." + to_chat(user, "\The [src] needs to be already tilted before being rigged with \the [I].") return 1 user.visible_message("[user] is fiddling around behind \the [src].", "You begin to secure \the [I] behind \the [src].") if(do_after(user, 150, target = src)) diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm index 940a797addc..8dbfbd9c1b4 100644 --- a/code/modules/paperwork/handlabeler.dm +++ b/code/modules/paperwork/handlabeler.dm @@ -15,22 +15,22 @@ return // don't set a label if(!labels_left) - user << "No labels left." + to_chat(user, "No labels left.") return if(!label || !length(label)) - user << "No text set." + to_chat(user, "No text set.") return if(length(A.name) + length(label) > 64) - user << "Label too big." + to_chat(user, "Label too big.") return if(ishuman(A)) - user << "You can't label humans." + to_chat(user, "You can't label humans.") return if(issilicon(A)) - user << "You can't label cyborgs." + to_chat(user, "You can't label cyborgs.") return if(istype(A, /obj/item/weapon/reagent_containers/glass)) - user << "The label can't stick to the [A.name]. (Try using a pen)" + to_chat(user, "The label can't stick to the [A.name]. (Try using a pen)") return user.visible_message("[user] labels [A] as [label].", \ @@ -41,13 +41,13 @@ mode = !mode icon_state = "labeler[mode]" if(mode) - user << "You turn on \the [src]." + to_chat(user, "You turn on \the [src].") //Now let them chose the text. var/str = copytext(reject_bad_text(input(user,"Label text?","Set label","")),1,MAX_NAME_LEN) if(!str || !length(str)) - user << "Invalid text." + to_chat(user, "Invalid text.") return label = str - user << "You set the text to '[str]'." + to_chat(user, "You set the text to '[str]'.") else - user << "You turn off \the [src]." \ No newline at end of file + to_chat(user, "You turn off \the [src].") diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index a07303bee43..bf847a06c0a 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -56,7 +56,7 @@ if(in_range(user, src) || istype(user, /mob/dead/observer)) show_content(user) else - user << "You have to go closer if you want to read it." + to_chat(user, "You have to go closer if you want to read it.") /obj/item/weapon/paper/proc/show_content(var/mob/user, var/forceshow = 0, var/forcestars = 0, var/infolinks = 0, var/view = 1) var/datum/asset/assets = get_asset_datum(/datum/asset/simple/paper) @@ -81,7 +81,7 @@ set src in usr if((CLUMSY in usr.mutations) && prob(50)) - usr << "You cut yourself on the paper." + to_chat(usr, "You cut yourself on the paper.") return var/n_name = sanitize(copytext(input(usr, "What would you like to label the paper?", "Paper Labelling", name) as text, 1, MAX_MESSAGE_LEN)) if((loc == usr && usr.stat == 0)) @@ -125,7 +125,7 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(H == user) - user << "You wipe off your face with [src]." + to_chat(user, "You wipe off your face with [src].") H.lip_style = null H.update_body() else @@ -311,7 +311,7 @@ qdel(src) else - user << "\red You must hold \the [P] steady to burn \the [src]." + to_chat(user, "\red You must hold \the [P] steady to burn \the [src].") /obj/item/weapon/paper/Topic(href, href_list) ..() @@ -341,7 +341,7 @@ // check for exploits for(var/bad in paper_blacklist) if(findtext(t,bad)) - usr << "\blue You think to yourself, \"Hm.. this is only paper...\"" + to_chat(usr, "\blue You think to yourself, \"Hm.. this is only paper...\"") log_admin("PAPER: [key_name(usr)] tried to use forbidden word in [src]: [bad].") message_admins("PAPER: [key_name_admin(usr)] tried to use forbidden word in [src]: [bad].") return @@ -377,7 +377,7 @@ if (istype(P, /obj/item/weapon/paper/carbon)) var/obj/item/weapon/paper/carbon/C = P if (!C.iscopy && !C.copied) - user << "Take off the carbon copy first." + to_chat(user, "Take off the carbon copy first.") add_fingerprint(user) return var/obj/item/weapon/paper_bundle/B = new(src.loc) @@ -413,7 +413,7 @@ src.loc = get_turf(h_user) if(h_user.client) h_user.client.screen -= src h_user.put_in_hands(B) - user << "You clip the [P.name] to [(src.name == "paper") ? "the paper" : src.name]." + to_chat(user, "You clip the [P.name] to [(src.name == "paper") ? "the paper" : src.name].") src.loc = B P.loc = B B.amount++ @@ -434,12 +434,12 @@ if(istype(P, /obj/item/weapon/stamp/clown)) if(!clown) - user << "You are totally unable to use the stamp. HONK!" + to_chat(user, "You are totally unable to use the stamp. HONK!") return stamp(P) - user << "You stamp the paper with your rubber stamp." + to_chat(user, "You stamp the paper with your rubber stamp.") else if(istype(P, /obj/item/weapon/lighter)) burnpaper(P, user) diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm index 311971f326c..a99efb09294 100644 --- a/code/modules/paperwork/paper_bundle.dm +++ b/code/modules/paperwork/paper_bundle.dm @@ -24,14 +24,14 @@ if (istype(P, /obj/item/weapon/paper/carbon)) var/obj/item/weapon/paper/carbon/C = P if (!C.iscopy && !C.copied) - user << "Take off the carbon copy first." + to_chat(user, "Take off the carbon copy first.") add_fingerprint(user) return amount++ if(screen == 2) screen = 1 - user << "You add [(P.name == "paper") ? "the paper" : P.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]." + to_chat(user, "You add [(P.name == "paper") ? "the paper" : P.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") user.unEquip(P) P.loc = src if(istype(user,/mob/living/carbon/human)) @@ -42,7 +42,7 @@ amount++ if(screen == 2) screen = 1 - user << "You add [(W.name == "photo") ? "the photo" : W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]." + to_chat(user, "You add [(W.name == "photo") ? "the photo" : W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") user.unEquip(W) W.loc = src else if(istype(W, /obj/item/weapon/lighter)) @@ -55,7 +55,7 @@ src.amount++ if(screen == 2) screen = 1 - user << "You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]." + to_chat(user, "You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") qdel(W) else if(istype(W, /obj/item/stack/tape_roll)) @@ -94,13 +94,13 @@ qdel(src) else - user << "\red You must hold \the [P] steady to burn \the [src]." + to_chat(user, "\red You must hold \the [P] steady to burn \the [src].") /obj/item/weapon/paper_bundle/examine(mob/user) if(..(user, 1)) src.show_content(user) else - user << "It is too far away." + to_chat(user, "It is too far away.") /obj/item/weapon/paper_bundle/proc/show_content(mob/user as mob) var/dat @@ -162,7 +162,7 @@ if(href_list["remove"]) var/obj/item/weapon/W = src[page] usr.put_in_hands(W) - usr << "You remove the [W.name] from the bundle." + to_chat(usr, "You remove the [W.name] from the bundle.") if(amount == 1) var/obj/item/weapon/paper/P = src[1] usr.unEquip(src) @@ -176,7 +176,7 @@ amount-- update_icon() else - usr << "You need to hold it in your hands to change pages." + to_chat(usr, "You need to hold it in your hands to change pages.") if (istype(src.loc, /mob)) src.attack_self(src.loc) updateUsrDialog() @@ -200,7 +200,7 @@ set category = "Object" set src in usr - usr << "You loosen the bundle." + to_chat(usr, "You loosen the bundle.") for(var/obj/O in src) O.loc = usr.loc O.layer = initial(O.layer) diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm index 552f55051d1..cd3afbd400d 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -54,7 +54,7 @@ if (H.hand) temp = H.organs_by_name["l_hand"] if(temp && !temp.is_usable()) - H << "You try to move your [temp.name], but cannot!" + to_chat(H, "You try to move your [temp.name], but cannot!") return if(amount >= 1) amount-- @@ -75,9 +75,9 @@ P.loc = user.loc user.put_in_hands(P) - user << "You take [P] out of the [src]." + to_chat(user, "You take [P] out of the [src].") else - user << "[src] is empty!" + to_chat(user, "[src] is empty!") add_fingerprint(user) return @@ -89,7 +89,7 @@ user.drop_item() i.loc = src - user << "You put [i] in [src]." + to_chat(user, "You put [i] in [src].") papers.Add(i) amount++ @@ -97,9 +97,9 @@ /obj/item/weapon/paper_bin/examine(mob/user) if(..(user, 1)) if(amount) - usr << "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin." + to_chat(usr, "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.") else - usr << "There are no papers in the bin." + to_chat(usr, "There are no papers in the bin.") /obj/item/weapon/paper_bin/update_icon() @@ -127,9 +127,9 @@ P = new /obj/item/weapon/paper/carbon P.loc = user.loc user.put_in_hands(P) - user << "You take [P] out of the [src]." + to_chat(user, "You take [P] out of the [src].") else - user << "[src] is empty!" + to_chat(user, "[src] is empty!") add_fingerprint(user) return diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 6bba24d2805..46d080adb6f 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -25,7 +25,7 @@ pressure_resistance = 2 /obj/item/weapon/pen/suicide_act(mob/user) - viewers(user) << "[user] starts scribbling numbers over \himself with the [src.name]! It looks like \he's trying to commit sudoku." + to_chat(viewers(user), "[user] starts scribbling numbers over \himself with the [src.name]! It looks like \he's trying to commit sudoku.") return (BRUTELOSS) /obj/item/weapon/pen/blue @@ -110,8 +110,8 @@ if(!force) if(M.can_inject(user, 1)) - user << "You stab [M] with the pen." -// M << "You feel a tiny prick!" + to_chat(user, "You stab [M] with the pen.") +// to_chat(M, "You feel a tiny prick!") . = 1 add_logs(M, user, "stabbed", object="[name]") @@ -161,7 +161,7 @@ hitsound = initial(hitsound) throwforce = initial(throwforce) playsound(user, 'sound/weapons/saberoff.ogg', 5, 1) - user << "[src] can now be concealed." + to_chat(user, "[src] can now be concealed.") else on = 1 force = 18 @@ -172,7 +172,7 @@ hitsound = 'sound/weapons/blade1.ogg' throwforce = 35 playsound(user, 'sound/weapons/saberon.ogg', 5, 1) - user << "[src] is now active." + to_chat(user, "[src] is now active.") update_icon() /obj/item/weapon/pen/edagger/update_icon() diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm index 6630c24d46c..d6b4b6ad213 100644 --- a/code/modules/paperwork/photocopier.dm +++ b/code/modules/paperwork/photocopier.dm @@ -63,7 +63,7 @@ copyass() sleep(15) else - usr << "\The [copyitem] can't be copied by \the [src]." + to_chat(usr, "\The [copyitem] can't be copied by \the [src].") break use_power(active_power_usage) @@ -72,11 +72,11 @@ if(copyitem) copyitem.loc = usr.loc usr.put_in_hands(copyitem) - usr << "You take \the [copyitem] out of \the [src]." + to_chat(usr, "You take \the [copyitem] out of \the [src].") copyitem = null updateUsrDialog() else if(check_ass()) - ass << "You feel a slight pressure on your ass." + to_chat(ass, "You feel a slight pressure on your ass.") updateUsrDialog() else if(href_list["min"]) if(copies > 1) @@ -117,25 +117,25 @@ user.drop_item() copyitem = O O.loc = src - user << "You insert \the [O] into \the [src]." + to_chat(user, "You insert \the [O] into \the [src].") flick(insert_anim, src) updateUsrDialog() else - user << "There is already something in \the [src]." + to_chat(user, "There is already something in \the [src].") else if(istype(O, /obj/item/device/toner)) if(toner <= 10) //allow replacing when low toner is affecting the print darkness user.drop_item() - user << "You insert the toner cartridge into \the [src]." + to_chat(user, "You insert the toner cartridge into \the [src].") var/obj/item/device/toner/T = O toner += T.toner_amount qdel(O) updateUsrDialog() else - user << "This cartridge is not yet ready for replacement! Use up the rest of the toner." + to_chat(user, "This cartridge is not yet ready for replacement! Use up the rest of the toner.") else if(istype(O, /obj/item/weapon/wrench)) 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/grab)) //For ass-copying. var/obj/item/weapon/grab/G = O if(ismob(G.affecting) && G.affecting != ass) diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 133018743cc..b63dcc2750c 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -67,13 +67,13 @@ qdel(src) else - user << "\red You must hold \the [P] steady to burn \the [src]." + to_chat(user, "\red You must hold \the [P] steady to burn \the [src].") /obj/item/weapon/photo/examine(mob/user) if(..(user, 1) || isobserver(user)) show(user) else - user << "It is too far away." + to_chat(user, "It is too far away.") /obj/item/weapon/photo/proc/show(mob/user as mob) usr << browse_rsc(img, "tmp_photo.png") @@ -175,7 +175,7 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s var/nsize = input("Photo Size","Pick a size of resulting photo.") as null|anything in list(1,3,5,7) if(nsize) size = nsize - usr << "Camera will now take [size]x[size] photos." + to_chat(usr, "Camera will now take [size]x[size] photos.") /obj/item/device/camera/attack(mob/living/carbon/human/M as mob, mob/user as mob) return @@ -186,15 +186,15 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s src.icon_state = icon_on else src.icon_state = icon_off - user << "You switch the camera [on ? "on" : "off"]." + to_chat(user, "You switch the camera [on ? "on" : "off"].") return /obj/item/device/camera/attackby(obj/item/I as obj, mob/user as mob, params) if(istype(I, /obj/item/device/camera_film)) if(pictures_left) - user << "[src] still has some film in it!" + to_chat(user, "[src] still has some film in it!") return - user << "You insert [I] into [src]." + to_chat(user, "You insert [I] into [src].") user.drop_item() qdel(I) pictures_left = pictures_max @@ -304,7 +304,7 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s pictures_left-- desc = "A polaroid camera. It has [pictures_left] photos left." - user << "[pictures_left] photos left." + to_chat(user, "[pictures_left] photos left.") icon_state = icon_off on = 0 if(user.mind && !(user.mind.assigned_role == "Chaplain")) @@ -427,9 +427,9 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s /obj/item/device/camera/digital/captureimage(atom/target, mob/user, flag) if(saved_pictures.len >= max_storage) - user << "Maximum photo storage capacity reached." + to_chat(user, "Maximum photo storage capacity reached.") return - user << "Picture saved." + to_chat(user, "Picture saved.") var/x_c = target.x - (size-1)/2 var/y_c = target.y + (size-1)/2 var/z_c = target.z @@ -454,10 +454,10 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s set src in usr if(saved_pictures.len == 0) - usr << "No images saved." + to_chat(usr, "No images saved.") return if(pictures_left == 0) - usr << "There is no film left to print." + to_chat(usr, "There is no film left to print.") return var/datum/picture/P = null @@ -472,7 +472,7 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s set src in usr if(saved_pictures.len == 0) - usr << "No images saved" + to_chat(usr, "No images saved") return var/datum/picture/P = null P = input("Select image to delete:",P) as null|anything in saved_pictures @@ -516,11 +516,11 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s camera.network = list("news") cameranet.removeCamera(camera) camera.c_tag = user.name - user << "You switch the camera [on ? "on" : "off"]." + to_chat(user, "You switch the camera [on ? "on" : "off"].") /obj/item/device/videocam/examine(mob/user) if(..(user, 1)) - user << "This video camera can send live feeds to the entertainment network. It's [camera ? "" : "in"]active." + to_chat(user, "This video camera can send live feeds to the entertainment network. It's [camera ? "" : "in"]active.") /obj/item/device/videocam/hear_talk(mob/M as mob, msg) if (camera && on) @@ -545,4 +545,4 @@ var/list/SpookyGhosts = list("ghost","shade","shade2","ghost-narsie","horror","s 'sound/hallucinations/growl3.ogg', 'sound/hallucinations/im_here1.ogg', 'sound/hallucinations/im_here2.ogg', 'sound/hallucinations/i_see_you1.ogg', 'sound/hallucinations/i_see_you2.ogg',\ 'sound/hallucinations/look_up1.ogg', 'sound/hallucinations/look_up2.ogg', 'sound/hallucinations/over_here1.ogg', 'sound/hallucinations/over_here2.ogg', 'sound/hallucinations/over_here3.ogg',\ 'sound/hallucinations/turn_around1.ogg', 'sound/hallucinations/turn_around2.ogg', 'sound/hallucinations/veryfar_noise.ogg', 'sound/hallucinations/wail.ogg') - user << pick(creepyasssounds) + to_chat(user, pick(creepyasssounds)) diff --git a/code/modules/paperwork/silicon_photography.dm b/code/modules/paperwork/silicon_photography.dm index ec4d920eaaa..83740eac7ee 100644 --- a/code/modules/paperwork/silicon_photography.dm +++ b/code/modules/paperwork/silicon_photography.dm @@ -29,11 +29,12 @@ if(C.connected_ai) var/mob/A = P.fields["author"] C.connected_ai.aiCamera.injectaialbum(P, " (taken by [A.name])") - C.connected_ai << "Image recorded and saved by [name]" - usr << "Image recorded and saved to remote database" //feedback to the Cyborg player that the picture was taken + to_chat(C.connected_ai, "Image recorded and saved by [name]") + to_chat(usr, "Image recorded and saved to remote database")//feedback to the Cyborg player that the picture was taken + else injectaialbum(P) - usr << "Image recorded" + to_chat(usr, "Image recorded") /obj/item/device/camera/siliconcam/proc/selectpicture(obj/item/device/camera/siliconcam/cam) if(!cam) @@ -42,7 +43,7 @@ var/list/nametemp = list() var/find if(cam.aipictures.len == 0) - usr << "No images saved" + to_chat(usr, "No images saved") return for(var/datum/picture/t in cam.aipictures) nametemp += t.fields["name"] @@ -61,7 +62,7 @@ var/obj/item/weapon/photo/P = new/obj/item/weapon/photo() P.construct(selection) P.show(usr) - usr << P.desc + to_chat(usr, P.desc) // TG uses a special garbage collector.. qdel(P) qdel(P) //so 10 thousand pictures items are not left in memory should an AI take them and then view them all. @@ -73,7 +74,7 @@ return cam.aipictures -= selection - usr << "Image deleted" + to_chat(usr, "Image deleted") /obj/item/device/camera/siliconcam/ai_camera/can_capture_turf(turf/T, mob/user) var/mob/living/silicon/ai = user @@ -87,15 +88,15 @@ /obj/item/device/camera/siliconcam/proc/camera_mode_off() src.in_camera_mode = 0 - usr << "Camera Mode deactivated" + to_chat(usr, "Camera Mode deactivated") /obj/item/device/camera/siliconcam/proc/camera_mode_on() src.in_camera_mode = 1 - usr << "Camera Mode activated" + to_chat(usr, "Camera Mode activated") /obj/item/device/camera/siliconcam/ai_camera/printpicture(mob/user, datum/picture/P) injectaialbum(P) - usr << "Image recorded" + to_chat(usr, "Image recorded") /obj/item/device/camera/siliconcam/robot_camera/printpicture(mob/user, datum/picture/P) injectmasteralbum(P) diff --git a/code/modules/pda/PDA.dm b/code/modules/pda/PDA.dm index d54c4f47bc7..96c5eedff2d 100755 --- a/code/modules/pda/PDA.dm +++ b/code/modules/pda/PDA.dm @@ -296,16 +296,16 @@ var/global/list/obj/item/device/pda/PDAs = list() start_program(find_program(/datum/data/pda/app/main_menu)) notifying_programs.Cut() overlays.Cut() - usr << "You press the reset button on \the [src]." + to_chat(usr, "You press the reset button on \the [src].") else - usr << "You cannot do this while restrained." + to_chat(usr, "You cannot do this while restrained.") /obj/item/device/pda/proc/remove_id() if (id) if (ismob(loc)) var/mob/M = loc M.put_in_hands(id) - usr << "You remove the ID from the [name]." + to_chat(usr, "You remove the ID from the [name].") else id.forceMove(get_turf(src)) id = null @@ -322,9 +322,9 @@ var/global/list/obj/item/device/pda/PDAs = list() if(id) remove_id() else - usr << "This PDA does not have an ID in it." + to_chat(usr, "This PDA does not have an ID in it.") else - usr << "You cannot do this while restrained." + to_chat(usr, "You cannot do this while restrained.") /obj/item/device/pda/verb/verb_remove_pen() @@ -342,13 +342,13 @@ var/global/list/obj/item/device/pda/PDAs = list() var/mob/M = loc if(M.get_active_hand() == null) M.put_in_hands(O) - usr << "You remove \the [O] from \the [src]." + to_chat(usr, "You remove \the [O] from \the [src].") return O.forceMove(get_turf(src)) else - usr << "This PDA does not have a pen in it." + to_chat(usr, "This PDA does not have a pen in it.") else - usr << "You cannot do this while restrained." + to_chat(usr, "You cannot do this while restrained.") /obj/item/device/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use. @@ -379,40 +379,40 @@ var/global/list/obj/item/device/pda/PDAs = list() cartridge.forceMove(src) cartridge.update_programs(src) update_shortcuts() - user << "You insert [cartridge] into [src]." + to_chat(user, "You insert [cartridge] into [src].") if(cartridge.radio) cartridge.radio.hostpda = src else if(istype(C, /obj/item/weapon/card/id)) var/obj/item/weapon/card/id/idcard = C if(!idcard.registered_name) - user << "\The [src] rejects the ID." + to_chat(user, "\The [src] rejects the ID.") return if(!owner) owner = idcard.registered_name ownjob = idcard.assignment ownrank = idcard.rank name = "PDA-[owner] ([ownjob])" - user << "Card scanned." + to_chat(user, "Card scanned.") else //Basic safety check. If either both objects are held by user or PDA is on ground and card is in hand. if(((src in user.contents) && (C in user.contents)) || (istype(loc, /turf) && in_range(src, user) && (C in user.contents)) ) if( can_use(user) )//If they can still act. id_check(user, 2) - user << "You put the ID into \the [src]'s slot." + to_chat(user, "You put the ID into \the [src]'s slot.") else if(istype(C, /obj/item/device/paicard) && !src.pai) user.drop_item() C.forceMove(src) pai = C - user << "You slot \the [C] into [src]." + to_chat(user, "You slot \the [C] into [src].") else if(istype(C, /obj/item/weapon/pen)) var/obj/item/weapon/pen/O = locate() in src if(O) - user << "There is already a pen in \the [src]." + to_chat(user, "There is already a pen in \the [src].") else user.drop_item() C.forceMove(src) - user << "You slide \the [C] into \the [src]." + to_chat(user, "You slide \the [C] into \the [src].") /obj/item/device/pda/attack(mob/living/C as mob, mob/living/user as mob) if (istype(C, /mob/living/carbon) && scanmode) @@ -475,7 +475,7 @@ var/global/list/obj/item/device/pda/PDAs = list() if (in_range(src, usr) && loc == usr) if (t) if(hidden_uplink && hidden_uplink.check_trigger(usr, lowertext(t), lowertext(lock_code))) - usr << "The PDA softly beeps." + to_chat(usr, "The PDA softly beeps.") close(usr) else t = sanitize(copytext(t, 1, 20)) diff --git a/code/modules/pda/ai.dm b/code/modules/pda/ai.dm index 4ed82f69cf9..b8b95276c06 100644 --- a/code/modules/pda/ai.dm +++ b/code/modules/pda/ai.dm @@ -22,7 +22,7 @@ return var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger) if(!M) - usr << "Cannot use messenger!" + to_chat(usr, "Cannot use messenger!") var/list/plist = M.available_pdas() if (plist) var/c = input(usr, "Please select a PDA") as null|anything in sortList(plist) @@ -40,7 +40,7 @@ return var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger) if(!M) - usr << "Cannot use messenger!" + to_chat(usr, "Cannot use messenger!") var/HTML = "AI PDA Message Log" for(var/index in M.tnote) if(index["sent"]) @@ -59,7 +59,7 @@ return var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger) M.toff = !M.toff - usr << "PDA sender/receiver toggled [(M.toff ? "Off" : "On")]!" + to_chat(usr, "PDA sender/receiver toggled [(M.toff ? "Off" : "On")]!") /obj/item/device/pda/ai/verb/cmd_toggle_pda_silent() @@ -71,7 +71,7 @@ return var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger) M.notify_silent = !M.notify_silent - usr << "PDA ringer toggled [(M.notify_silent ? "Off" : "On")]!" + to_chat(usr, "PDA ringer toggled [(M.notify_silent ? "Off" : "On")]!") /obj/item/device/pda/ai/can_use() var/mob/living/silicon/ai/AI = usr diff --git a/code/modules/pda/app.dm b/code/modules/pda/app.dm index 58403d108a9..45b2e79aec3 100644 --- a/code/modules/pda/app.dm +++ b/code/modules/pda/app.dm @@ -24,7 +24,7 @@ L = get(pda, /mob/living/silicon) if(L) - L << "\icon[pda] [message]" + to_chat(L, "\icon[pda] [message]") nanomanager.update_user_uis(L, pda) // Update the receiving user's PDA UI so that they can see the new message if(!notify_silent) diff --git a/code/modules/pda/chatroom.dm b/code/modules/pda/chatroom.dm index f20a5bfb139..d5758b161f4 100644 --- a/code/modules/pda/chatroom.dm +++ b/code/modules/pda/chatroom.dm @@ -139,7 +139,7 @@ var/list/chatrooms = list(new /datum/chatroom("General Discussion")) /datum/data/pda/app/chatroom/proc/check_messaging_available() . = messaging_available() if(!.) - usr << "ERROR: Messaging server is not responding." + to_chat(usr, "ERROR: Messaging server is not responding.") /datum/data/pda/app/chatroom/Topic(href, list/href_list) if(!pda.can_use()) diff --git a/code/modules/pda/messenger.dm b/code/modules/pda/messenger.dm index 7b9be0e31df..c5f6375f82f 100644 --- a/code/modules/pda/messenger.dm +++ b/code/modules/pda/messenger.dm @@ -105,7 +105,7 @@ var/obj/item/device/pda/P = locate(href_list["target"]) if(!P) - usr << "PDA not found." + to_chat(usr, "PDA not found.") var/datum/data/pda/messenger_plugin/plugin = locate(href_list["plugin"]) if(plugin && (plugin in pda.cartridge.messenger_plugins)) @@ -166,7 +166,7 @@ if(useMS && useTC) // only send the message if it's stable if(useTC != 2) // Does our recipient have a broadcaster on their level? - U << "ERROR: Cannot reach recipient." + to_chat(U, "ERROR: Cannot reach recipient.") return useMS.send_pda_message("[P.owner]","[pda.owner]","[t]") tnote.Add(list(list("sent" = 1, "owner" = "[P.owner]", "job" = "[P.ownjob]", "message" = "[t]", "target" = "\ref[P]"))) @@ -181,7 +181,7 @@ PM.notify("Message from [pda.owner] ([pda.ownjob]), \"[t]\" (Reply)") log_pda("[usr] (PDA: [src.name]) sent \"[t]\" to [P.name]") else - U << "ERROR: Messaging server is not responding." + to_chat(U, "ERROR: Messaging server is not responding.") /datum/data/pda/app/messenger/proc/available_pdas() var/list/names = list() @@ -189,7 +189,7 @@ var/list/namecounts = list() if (toff) - usr << "Turn on your receiver in order to send messages." + to_chat(usr, "Turn on your receiver in order to send messages.") return for(var/A in PDAs) diff --git a/code/modules/pda/radio.dm b/code/modules/pda/radio.dm index b343d6b2ce3..c64ea02ce7c 100644 --- a/code/modules/pda/radio.dm +++ b/code/modules/pda/radio.dm @@ -31,7 +31,7 @@ /obj/item/radio/integrated/proc/post_signal(var/freq, var/key, var/value, var/key2, var/value2, var/key3, var/value3,var/key4, var/value4, s_filter) - //world << "Post: [freq]: [key]=[value], [key2]=[value2]" +// to_chat(world, "Post: [freq]: [key]=[value], [key2]=[value2]") var/datum/radio_frequency/frequency = radio_controller.return_frequency(freq) if(!frequency) diff --git a/code/modules/pda/utilities.dm b/code/modules/pda/utilities.dm index 6d4feacb457..0f4fcd79741 100644 --- a/code/modules/pda/utilities.dm +++ b/code/modules/pda/utilities.dm @@ -68,9 +68,9 @@ if(istype(C, /mob/living/carbon/human)) var/mob/living/carbon/human/H = C if (!istype(H.dna, /datum/dna)) - user << "No fingerprints found on [H]" + to_chat(user, "No fingerprints found on [H]") else - user << "[H]'s Fingerprints: [md5(H.dna.uni_identity)]" + to_chat(user, "[H]'s Fingerprints: [md5(H.dna.uni_identity)]") scan_blood(C, user) /datum/data/pda/utility/scanmode/dna/scan_atom(atom/A as mob|obj|turf|area, mob/user as mob) @@ -78,14 +78,14 @@ /datum/data/pda/utility/scanmode/dna/proc/scan_blood(atom/A, mob/user) if (!A.blood_DNA) - user << "No blood found on [A]" + to_chat(user, "No blood found on [A]") if(A.blood_DNA) qdel(A.blood_DNA) else - user << "Blood found on [A]. Analysing..." + to_chat(user, "Blood found on [A]. Analysing...") spawn(15) for(var/blood in A.blood_DNA) - user << "Blood type: [A.blood_DNA[blood]]\nDNA: [blood]" + to_chat(user, "Blood type: [A.blood_DNA[blood]]\nDNA: [blood]") /datum/data/pda/utility/scanmode/halogen base_name = "Halogen Counter" @@ -108,13 +108,13 @@ if(!isnull(A.reagents)) if(A.reagents.reagent_list.len > 0) var/reagents_length = A.reagents.reagent_list.len - user << "[reagents_length] chemical agent[reagents_length > 1 ? "s" : ""] found." + to_chat(user, "[reagents_length] chemical agent[reagents_length > 1 ? "s" : ""] found.") for(var/re in A.reagents.reagent_list) - user << "\t [re]" + to_chat(user, "\t [re]") else - user << "No active chemical agents found in [A]." + to_chat(user, "No active chemical agents found in [A].") else - user << "No significant chemical agents found in [A]." + to_chat(user, "No significant chemical agents found in [A].") /datum/data/pda/utility/scanmode/gas base_name = "Gas Scanner" @@ -194,6 +194,7 @@ // notehtml ISN'T set to allow user to get their old notes back. A better implementation would add a "scanned documents" // feature to the PDA, which would better convey the availability of the feature, but this will work for now. // Inform the user - user << "Paper scanned and OCRed to notekeeper." //concept of scanning paper copyright brainoblivion 2009 + to_chat(user, "Paper scanned and OCRed to notekeeper.")//concept of scanning paper copyright brainoblivion 2009 + else - user << "Error scanning [A]." \ No newline at end of file + to_chat(user, "Error scanning [A].") diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 22eaa83cf75..edefabf2aff 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -213,25 +213,25 @@ /obj/machinery/power/apc/examine(mob/user) if(..(user, 1)) if(stat & BROKEN) - user << "Looks broken." + to_chat(user, "Looks broken.") return if(opened) if(has_electronics && terminal) - user << "The cover is [opened==2?"removed":"open"] and the power cell is [ cell ? "installed" : "missing"]." + to_chat(user, "The cover is [opened==2?"removed":"open"] and the power cell is [ cell ? "installed" : "missing"].") else if (!has_electronics && terminal) - user << "There are some wires but no any electronics." + to_chat(user, "There are some wires but no any electronics.") else if (has_electronics && !terminal) - user << "Electronics installed but not wired." + to_chat(user, "Electronics installed but not wired.") else /* if (!has_electronics && !terminal) */ - user << "There is no electronics nor connected wires." + to_chat(user, "There is no electronics nor connected wires.") else if (stat & MAINT) - user << "The cover is closed. Something wrong with it: it doesn't work." + to_chat(user, "The cover is closed. Something wrong with it: it doesn't work.") else if (malfhack) - user << "The cover is broken. It may be hard to force it open." + to_chat(user, "The cover is broken. It may be hard to force it open.") else - user << "The cover is closed." + to_chat(user, "The cover is closed.") // update the APC icon to show the three base states // also add overlays for indicator lights @@ -416,10 +416,11 @@ if (istype(W, /obj/item/weapon/crowbar) && opened) if (has_electronics==1) if (terminal) - user << "Disconnect wires first." + to_chat(user, "Disconnect wires first.") return playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) - user << "You are trying to remove the power control board..." //lpeters - fixed grammar issues + to_chat(user, "You are trying to remove the power control board...")//lpeters - fixed grammar issues + if(do_after(user, 50, target = src)) if (has_electronics==1) has_electronics = 0 @@ -439,18 +440,18 @@ update_icon() else if (istype(W, /obj/item/weapon/crowbar) && !((stat & BROKEN) || malfhack) ) if(coverlocked && !(stat & MAINT)) - user << "The cover is locked and cannot be opened." + to_chat(user, "The cover is locked and cannot be opened.") return else opened = 1 update_icon() else if (istype(W, /obj/item/weapon/stock_parts/cell) && opened) // trying to put a cell inside if(cell) - user << "There is a power cell already installed." + to_chat(user, "There is a power cell already installed.") return else if (stat & MAINT) - user << "There is no connector for your power cell." + to_chat(user, "There is no connector for your power cell.") return user.drop_item() W.loc = src @@ -463,55 +464,56 @@ else if (istype(W, /obj/item/weapon/screwdriver)) // haxing if(opened) if (cell) - user << "Close the APC first." //Less hints more mystery! + to_chat(user, "Close the APC first.")//Less hints more mystery! + return else if (has_electronics==1 && terminal) has_electronics = 2 stat &= ~MAINT playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You screw the circuit electronics into place." + to_chat(user, "You screw the circuit electronics into place.") else if (has_electronics==2) has_electronics = 1 stat |= MAINT playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You unfasten the electronics." + to_chat(user, "You unfasten the electronics.") else /* has_electronics==0 */ - user << "There is nothing to secure." + to_chat(user, "There is nothing to secure.") return update_icon() else if(emagged) - user << "The interface is broken." + to_chat(user, "The interface is broken.") else wiresexposed = !wiresexposed - user << "The wires have been [wiresexposed ? "exposed" : "unexposed"]" + to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"]") update_icon() else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) // trying to unlock the interface with an ID card if(emagged) - user << "The interface is broken." + to_chat(user, "The interface is broken.") else if(opened) - user << "You must close the cover to swipe an ID card." + to_chat(user, "You must close the cover to swipe an ID card.") else if(wiresexposed) - user << "You must close the panel" + to_chat(user, "You must close the panel") else if(stat & (BROKEN|MAINT)) - user << "Nothing happens." + to_chat(user, "Nothing happens.") else if(src.allowed(usr) && !isWireCut(APC_WIRE_IDSCAN)) locked = !locked - user << "You [ locked ? "lock" : "unlock"] the APC interface." + to_chat(user, "You [ locked ? "lock" : "unlock"] the APC interface.") update_icon() else - user << "Access denied." + to_chat(user, "Access denied.") else if (istype(W, /obj/item/stack/cable_coil) && !terminal && opened && has_electronics!=2) if (src.loc:intact) - user << "You must remove the floor plating in front of the APC first." + to_chat(user, "You must remove the floor plating in front of the APC first.") return var/obj/item/stack/cable_coil/C = W if(C.amount < 10) - user << "You need more wires." + to_chat(user, "You need more wires.") return - user << "You start adding cables to the APC frame..." + to_chat(user, "You start adding cables to the APC frame...") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20, target = src)) if (C.amount >= 10 && !terminal && opened && has_electronics != 2) @@ -530,9 +532,9 @@ terminal.connect_to_network() else if (istype(W, /obj/item/weapon/wirecutters) && terminal && opened && has_electronics!=2) if (src.loc:intact) - user << "You must remove the floor plating in front of the APC first." + to_chat(user, "You must remove the floor plating in front of the APC first.") return - user << "You begin to cut the cables..." + to_chat(user, "You begin to cut the cables...") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 50, target = src)) if(terminal && opened && has_electronics!=2) @@ -542,23 +544,23 @@ s.start() return new /obj/item/stack/cable_coil(loc,10) - user << "You cut the cables and dismantle the power terminal." + to_chat(user, "You cut the cables and dismantle the power terminal.") qdel(terminal) // qdel else if (istype(W, /obj/item/weapon/apc_electronics) && opened && has_electronics==0 && !((stat & BROKEN) || malfhack)) - user << "You trying to insert the power control board into the frame..." + to_chat(user, "You trying to insert the power control board into the frame...") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 10, target = src)) if(has_electronics==0) has_electronics = 1 - user << "You place the power control board inside the frame." + to_chat(user, "You place the power control board inside the frame.") qdel(W) // qdel else if (istype(W, /obj/item/weapon/apc_electronics) && opened && has_electronics==0 && ((stat & BROKEN) || malfhack)) - user << "You cannot put the board inside, the frame is damaged." + to_chat(user, "You cannot put the board inside, the frame is damaged.") return else if (istype(W, /obj/item/weapon/weldingtool) && opened && has_electronics==0 && !terminal) var/obj/item/weapon/weldingtool/WT = W if (WT.get_fuel() < 3) - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return user.visible_message("[user.name] welds [src].", \ "You start welding the APC frame...", \ @@ -591,9 +593,9 @@ update_icon() else if (istype(W, /obj/item/mounted/frame/apc_frame) && opened && ((stat & BROKEN) || malfhack)) if (has_electronics) - user << "You cannot repair this APC until you remove the electronics still inside." + to_chat(user, "You cannot repair this APC until you remove the electronics still inside.") return - user << "You begin to replace the damaged APC frame..." + to_chat(user, "You begin to replace the damaged APC frame...") if(do_after(user, 50, target = src)) user.visible_message(\ "[user.name] has replaced the damaged APC frame with new one.",\ @@ -633,16 +635,16 @@ /obj/machinery/power/apc/emag_act(user as mob) if (!(emagged || malfhack)) // trying to unlock with an emag card if(opened) - user << "You must close the cover to swipe an ID card." + to_chat(user, "You must close the cover to swipe an ID card.") else if(wiresexposed) - user << "You must close the panel first" + to_chat(user, "You must close the panel first") else if(stat & (BROKEN|MAINT)) - user << "Nothing happens." + to_chat(user, "Nothing happens.") else flick("apc-spark", src) emagged = 1 locked = 0 - user << "You emag the APC interface." + to_chat(user, "You emag the APC interface.") update_icon() // attack with hand - remove cell (if cover open) or interact with the APC @@ -660,7 +662,7 @@ var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(3, 1, src) s.start() - H << "The APC power currents surge erratically, damaging your chassis!" + to_chat(H, "The APC power currents surge erratically, damaging your chassis!") H.adjustFireLoss(10,0) else if(src.cell && src.cell.charge > 0) if(H.nutrition < 450) @@ -671,16 +673,16 @@ H.nutrition += src.cell.charge/10 src.cell.charge = 0 - user << "You slot your fingers into the APC interface and siphon off some of the stored charge for your own use." + to_chat(user, "You slot your fingers into the APC interface and siphon off some of the stored charge for your own use.") if(src.cell.charge < 0) src.cell.charge = 0 if(H.nutrition > 500) H.nutrition = 500 src.charging = 1 else - user << "You are already fully charged." + to_chat(user, "You are already fully charged.") else - user << "There is no charge to draw from that APC." + to_chat(user, "There is no charge to draw from that APC.") return if(usr == user && opened && (!issilicon(user))) @@ -694,7 +696,7 @@ src.cell = null user.visible_message("[user.name] removes the power cell from [src.name]!", "You remove the power cell.") - //user << "You remove the power cell." +// to_chat(user, "You remove the power cell.") charging = 0 src.update_icon() return @@ -834,13 +836,13 @@ area.power_environ = (environ > 1) // if (area.name == "AI Chamber") // spawn(10) -// world << " [area.name] [area.power_equip]" +// to_chat(world, " [area.name] [area.power_equip]") else area.power_light = 0 area.power_equip = 0 area.power_environ = 0 // if (area.name == "AI Chamber") -// world << "[area.power_equip]" +// to_chat(world, "[area.power_equip]") area.power_change() /obj/machinery/power/apc/proc/isWireCut(var/wireIndex) @@ -864,7 +866,7 @@ ) \ ) if(!loud) - user << "\The [src] has AI control disabled!" + to_chat(user, "\The [src] has AI control disabled!") user << browse(null, "window=apc") user.unset_machine() return 0 @@ -876,10 +878,10 @@ if (istype(H)) if(H.getBrainLoss() >= 60) for(var/mob/M in viewers(src, null)) - M << "[H] stares cluelessly at [src] and drools." + to_chat(M, "[H] stares cluelessly at [src] and drools.") return 0 else if(prob(H.getBrainLoss())) - user << "You momentarily forget how to use [src]." + to_chat(user, "You momentarily forget how to use [src].") return 0 return 1 @@ -970,9 +972,9 @@ var/mob/living/silicon/ai/malfai = usr if(get_malf_status(malfai)==1) if (malfai.malfhacking) - malfai << "You are already hacking an APC." + to_chat(malfai, "You are already hacking an APC.") return 0 - malfai << "Beginning override of APC systems. This takes some time, and you cannot perform other actions during the process." + to_chat(malfai, "Beginning override of APC systems. This takes some time, and you cannot perform other actions during the process.") malfai.malfhack = src malfai.malfhacking = 1 sleep(600) @@ -988,7 +990,7 @@ src.malfai = usr:parent else src.malfai = usr - malfai << "Hack complete. The APC is now under your exclusive control." + to_chat(malfai, "Hack complete. The APC is now under your exclusive control.") update_icon() else if (href_list["occupyapc"]) @@ -1002,7 +1004,7 @@ else if (href_list["toggleaccess"]) if(istype(usr, /mob/living/silicon)) if(emagged || aidisabled || (stat & (BROKEN|MAINT))) - usr << "The APC does not respond to the command." + to_chat(usr, "The APC does not respond to the command.") else locked = !locked update_icon() @@ -1024,10 +1026,10 @@ if(!istype(malf)) return if(istype(malf.loc, /obj/machinery/power/apc)) // Already in an APC - malf << "You must evacuate your current apc first." + to_chat(malf, "You must evacuate your current apc first.") return if(!malf.can_shunt) - malf << "You cannot shunt." + to_chat(malf, "You cannot shunt.") return if(!(src.z in config.station_levels)) return @@ -1067,7 +1069,7 @@ point.the_disk = A //The pinpointer tracks the AI back into its core. else - src.occupier << "Primary core damaged, unable to return core processes." + to_chat(src.occupier, "Primary core damaged, unable to return core processes.") if(forced) src.occupier.loc = src.loc src.occupier.death() @@ -1082,7 +1084,7 @@ if(prob(3)) src.locked = 1 if (src.cell.charge > 0) -// world << "blew APC in [src.loc.loc]" +// to_chat(world, "blew APC in [src.loc.loc]") src.cell.charge = 0 cell.corrupt() src.malfhack = 1 diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm index da2e75bd488..9253c19a5aa 100644 --- a/code/modules/power/cable.dm +++ b/code/modules/power/cable.dm @@ -120,11 +120,11 @@ By design, d1 is the smallest direction and d2 is the highest if(istype(W, /obj/item/weapon/wirecutters)) ///// Z-Level Stuff /* if(src.d1 == 12 || src.d2 == 12) - user << "You must cut this cable from above." + to_chat(user, "You must cut this cable from above.") return */ ///// Z-Level Stuff /* if(breaker_box) - user << "\red This cable is connected to nearby breaker box. Use breaker box to interact with it." + to_chat(user, "\red This cable is connected to nearby breaker box. Use breaker box to interact with it.") return */ if (shock(user, 50)) @@ -157,17 +157,17 @@ By design, d1 is the smallest direction and d2 is the highest else if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil = W if (coil.get_amount() < 1) - user << "Not enough cable" + to_chat(user, "Not enough cable") return coil.cable_join(src, user) else if(istype(W, /obj/item/device/multitool)) if(powernet && (powernet.avail > 0)) // is it powered? - user << "[powernet.avail]W in power network." + to_chat(user, "[powernet.avail]W in power network.") else - user << "The cable is not powered." + to_chat(user, "The cable is not powered.") shock(user, 5, 0.2) @@ -514,10 +514,10 @@ obj/structure/cable/proc/cableColor(var/colorC) S.heal_damage(0,15,0,1) user.visible_message("\The [user] repairs some burn damage on \the [M]'s [S.name] with \the [src].") else if(S.open != 2) - user << "The damage is far too severe to patch over externally." + to_chat(user, "The damage is far too severe to patch over externally.") return 1 else if(S.open != 2) - user << "Nothing to fix!" + to_chat(user, "Nothing to fix!") else return ..() @@ -546,11 +546,11 @@ obj/structure/cable/proc/cableColor(var/colorC) return if(get_amount() == 1) - user << "A short piece of power cable." + to_chat(user, "A short piece of power cable.") else if(get_amount() == 2) - user << "A piece of power cable." + to_chat(user, "A piece of power cable.") else - user << "A coil of power cable. There are [get_amount()] lengths of cable in the coil." + to_chat(user, "A coil of power cable. There are [get_amount()] lengths of cable in the coil.") /obj/item/stack/cable_coil/verb/make_restraint() @@ -561,14 +561,14 @@ obj/structure/cable/proc/cableColor(var/colorC) if(ishuman(M) && !M.restrained() && !M.stat && !M.paralysis && ! M.stunned) if(!istype(usr.loc,/turf)) return if(src.amount <= 14) - usr << "You need at least 15 lengths to make restraints!" + to_chat(usr, "You need at least 15 lengths to make restraints!") return var/obj/item/weapon/restraints/handcuffs/cable/B = new /obj/item/weapon/restraints/handcuffs/cable(usr.loc) B.color = color - usr << "You wind some cable together to make some restraints." + to_chat(usr, "You wind some cable together to make some restraints.") src.use(15) else - usr << "You cannot do that." + to_chat(usr, "You cannot do that.") ..() // Items usable on a cable coil : @@ -579,24 +579,24 @@ obj/structure/cable/proc/cableColor(var/colorC) if( istype(W, /obj/item/weapon/wirecutters) && src.amount > 1) src.amount-- new/obj/item/stack/cable_coil(user.loc, 1,color) - user << "You cut a piece off the cable coil." + to_chat(user, "You cut a piece off the cable coil.") src.update_icon() return else if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/C = W if(C.amount >= MAXCOIL) - user << "The coil is too long, you cannot add any more cable to it." + to_chat(user, "The coil is too long, you cannot add any more cable to it.") return if( (C.amount + src.amount <= MAXCOIL) ) - user << "You join the cable coils together." + to_chat(user, "You join the cable coils together.") C.give(src.amount) // give it cable src.use(src.amount) // make sure this one cleans up right return else var/amt = MAXCOIL - C.amount - user << "You transfer [amt] length\s of cable from one coil to the other." + to_chat(user, "You transfer [amt] length\s of cable from one coil to the other.") C.give(amt) src.use(amt) return @@ -646,15 +646,15 @@ obj/structure/cable/proc/cableColor(var/colorC) return if(!T.can_have_cabling()) - user << "You can only lay cables on catwalks and plating!" + to_chat(user, "You can only lay cables on catwalks and plating!") return if(get_amount() < 1) // Out of cable - user << "There is no cable left!" + to_chat(user, "There is no cable left!") return if(get_dist(T,user) > 1) // Too far - user << "You can't lay cable at a place that far away!" + to_chat(user, "You can't lay cable at a place that far away!") return else @@ -667,7 +667,7 @@ obj/structure/cable/proc/cableColor(var/colorC) for(var/obj/structure/cable/LC in T) if(LC.d2 == dirn && LC.d1 == 0) - user << "There's already a cable at that position!" + to_chat(user, "There's already a cable at that position!") return var/obj/structure/cable/C = get_new_cable(T) @@ -709,7 +709,7 @@ obj/structure/cable/proc/cableColor(var/colorC) return if(get_dist(C, user) > 1) // make sure it's close enough - user << "You can't lay cable at a place that far away." + to_chat(user, "You can't lay cable at a place that far away.") return @@ -722,7 +722,7 @@ obj/structure/cable/proc/cableColor(var/colorC) // one end of the clicked cable is pointing towards us if(C.d1 == dirn || C.d2 == dirn) if(U.intact) // can't place a cable if the floor is complete - user << "You can't lay cable there unless the floor tiles are removed." + to_chat(user, "You can't lay cable there unless the floor tiles are removed.") return else // cable is pointing at us, we're standing on an open tile @@ -732,7 +732,7 @@ obj/structure/cable/proc/cableColor(var/colorC) for(var/obj/structure/cable/LC in U) // check to make sure there's not a cable there already if(LC.d1 == fdirn || LC.d2 == fdirn) - user << "There's already a cable at that position." + to_chat(user, "There's already a cable at that position.") return var/obj/structure/cable/NC = new(U) @@ -778,7 +778,7 @@ obj/structure/cable/proc/cableColor(var/colorC) if(LC == C) // skip the cable we're interacting with continue if((LC.d1 == nd1 && LC.d2 == nd2) || (LC.d1 == nd2 && LC.d2 == nd1) ) // make sure no cable matches either direction - user << "There's already a cable at that position." + to_chat(user, "There's already a cable at that position.") return diff --git a/code/modules/power/cable_heavyduty.dm b/code/modules/power/cable_heavyduty.dm index 5d21df1cc02..87a25032eb7 100644 --- a/code/modules/power/cable_heavyduty.dm +++ b/code/modules/power/cable_heavyduty.dm @@ -16,10 +16,10 @@ return if(istype(W, /obj/item/weapon/wirecutters)) - usr << "\blue These cables are too tough to be cut with those [W.name]." + to_chat(usr, "\blue These cables are too tough to be cut with those [W.name].") return else if(istype(W, /obj/item/stack/cable_coil)) - usr << "\blue You will need heavier cables to connect to these." + to_chat(usr, "\blue You will need heavier cables to connect to these.") return else ..() diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 1fd649ba19d..7dda66629d7 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -58,11 +58,11 @@ /obj/item/weapon/stock_parts/cell/examine(mob/user) if(..(user, 1)) if(maxcharge <= 2500) - user << "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%." + to_chat(user, "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%.") else - user << "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%." + to_chat(user, "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%.") if(crit_fail) - user << "\red This power cell seems to be faulty." + to_chat(user, "\red This power cell seems to be faulty.") /obj/item/weapon/stock_parts/cell/attack_self(mob/user as mob) src.add_fingerprint(user) @@ -73,7 +73,7 @@ if(istype(W, /obj/item/weapon/reagent_containers/syringe)) var/obj/item/weapon/reagent_containers/syringe/S = W - user << "You inject the solution into the power cell." + to_chat(user, "You inject the solution into the power cell.") if(S.reagents.has_reagent("plasma", 5)) diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm index c11292d4fd7..81af0089e6f 100644 --- a/code/modules/power/generator.dm +++ b/code/modules/power/generator.dm @@ -121,7 +121,7 @@ /obj/machinery/power/generator/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/wrench)) anchored = !anchored - user << "\blue You [anchored ? "secure" : "unsecure"] the bolts holding [src] to the floor." + to_chat(user, "\blue You [anchored ? "secure" : "unsecure"] the bolts holding [src] to the floor.") use_power = anchored reconnect() else diff --git a/code/modules/power/generator_type2.dm b/code/modules/power/generator_type2.dm index 00ab21b64df..46a6fe20320 100644 --- a/code/modules/power/generator_type2.dm +++ b/code/modules/power/generator_type2.dm @@ -72,7 +72,7 @@ hot_air.temperature = hot_air.temperature - energy_transfer/hot_air_heat_capacity cold_air.temperature = cold_air.temperature + heat/cold_air_heat_capacity - //world << "POWER: [lastgen] W generated at [efficiency*100]% efficiency and sinks sizes [cold_air_heat_capacity], [hot_air_heat_capacity]" +// to_chat(world, "POWER: [lastgen] W generated at [efficiency*100]% efficiency and sinks sizes [cold_air_heat_capacity], [hot_air_heat_capacity]") input1.parent.update = 1 input2.parent.update = 1 diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 863bdc19b32..04ffbc5c0a4 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -182,14 +182,14 @@ var/const/GRAV_NEEDS_WRENCH = 3 switch(broken_state) if(GRAV_NEEDS_SCREWDRIVER) if(istype(I, /obj/item/weapon/screwdriver)) - user << "You secure the screws of the framework." + to_chat(user, "You secure the screws of the framework.") playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) broken_state++ if(GRAV_NEEDS_WELDING) if(istype(I, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = I if(WT.remove_fuel(1, user)) - user << "You mend the damaged framework." + to_chat(user, "You mend the damaged framework.") playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) broken_state++ if(GRAV_NEEDS_PLASTEEL) @@ -197,14 +197,14 @@ var/const/GRAV_NEEDS_WRENCH = 3 var/obj/item/stack/sheet/plasteel/PS = I if(PS.amount >= 10) PS.use(10) - user << "You add the plating to the framework." + to_chat(user, "You add the plating to the framework.") playsound(src.loc, 'sound/machines/click.ogg', 75, 1) broken_state++ else - user << "You need 10 sheets of plasteel." + to_chat(user, "You need 10 sheets of plasteel.") if(GRAV_NEEDS_WRENCH) if(istype(I, /obj/item/weapon/wrench)) - user << "You secure the plating to the framework." + to_chat(user, "You secure the plating to the framework.") playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) set_fix() else diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index f7ca916dfff..3890b433eaf 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -30,18 +30,18 @@ if(..(user, 2)) switch(src.stage) if(1) - usr << "It's an empty frame." + to_chat(usr, "It's an empty frame.") if(2) - usr << "It's wired." + to_chat(usr, "It's wired.") if(3) - usr << "The casing is closed." + to_chat(usr, "The casing is closed.") /obj/machinery/light_construct/attackby(obj/item/weapon/W as obj, mob/living/user as mob, params) src.add_fingerprint(user) if (istype(W, /obj/item/weapon/wrench)) if (src.stage == 1) playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) - usr << "You begin deconstructing [src]." + to_chat(usr, "You begin deconstructing [src].") if (!do_after(usr, 30, target = src)) return new /obj/item/stack/sheet/metal( get_turf(src.loc), sheets_refunded ) @@ -50,11 +50,11 @@ playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1) qdel(src) if (src.stage == 2) - usr << "You have to remove the wires first." + to_chat(usr, "You have to remove the wires first.") return if (src.stage == 3) - usr << "You have to unscrew the case first." + to_chat(usr, "You have to unscrew the case first.") return if(istype(W, /obj/item/weapon/wirecutters)) @@ -269,13 +269,13 @@ if(..(user, 1)) switch(status) if(LIGHT_OK) - user << "[desc] It is turned [on? "on" : "off"]." + to_chat(user, "[desc] It is turned [on? "on" : "off"].") if(LIGHT_EMPTY) - user << "[desc] The [fitting] has been removed." + to_chat(user, "[desc] The [fitting] has been removed.") if(LIGHT_BURNED) - user << "[desc] The [fitting] is burnt out." + to_chat(user, "[desc] The [fitting] is burnt out.") if(LIGHT_BROKEN) - user << "[desc] The [fitting] has been smashed." + to_chat(user, "[desc] The [fitting] has been smashed.") @@ -294,14 +294,14 @@ // attempt to insert light if(istype(W, /obj/item/weapon/light)) if(status != LIGHT_EMPTY) - user << "There is a [fitting] already inserted." + to_chat(user, "There is a [fitting] already inserted.") return else src.add_fingerprint(user) var/obj/item/weapon/light/L = W if(istype(L, light_type)) status = L.status - user << "You insert the [L.name]." + to_chat(user, "You insert the [L.name].") switchcount = L.switchcount rigged = L.rigged brightness_range = L.brightness_range @@ -320,7 +320,7 @@ explode() else - user << "This type of light requires a [fitting]." + to_chat(user, "This type of light requires a [fitting].") return // attempt to break the light @@ -331,7 +331,7 @@ user.do_attack_animation(src) if(prob(1+W.force * 5)) - user << "You hit the light, and it smashes!" + to_chat(user, "You hit the light, and it smashes!") for(var/mob/M in viewers(src)) if(M == user) continue @@ -369,7 +369,7 @@ qdel(src) return - user << "You stick \the [W] into the light socket!" + to_chat(user, "You stick \the [W] into the light socket!") if(has_power() && (W.flags & CONDUCT)) var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(3, 1, src) @@ -407,7 +407,7 @@ // Aliens smash the bulb but do not get electrocuted./N /obj/machinery/light/attack_alien(mob/living/carbon/alien/humanoid/user)//So larva don't go breaking light bulbs. if(status == LIGHT_EMPTY||status == LIGHT_BROKEN) - user << "\green That object is useless to you." + to_chat(user, "\green That object is useless to you.") return else if (status == LIGHT_OK||status == LIGHT_BURNED) user.do_attack_animation(src) @@ -418,7 +418,7 @@ /obj/machinery/light/attack_animal(mob/living/simple_animal/M) if(M.melee_damage_upper == 0) return if(status == LIGHT_EMPTY||status == LIGHT_BROKEN) - M << "\red That object is useless to you." + to_chat(M, "\red That object is useless to you.") return else if (status == LIGHT_OK||status == LIGHT_BURNED) M.do_attack_animation(src) @@ -433,7 +433,7 @@ add_fingerprint(user) if(status == LIGHT_EMPTY) - user << "There is no [fitting] in this light." + to_chat(user, "There is no [fitting] in this light.") return // make it burn hands if not wearing fire-insulated gloves @@ -451,11 +451,11 @@ prot = 1 if(prot > 0 || (RESIST_HEAT in user.mutations)) - user << "You remove the light [fitting]" + to_chat(user, "You remove the light [fitting]") else if(TK in user.mutations) - user << "You telekinetically remove the light [fitting]." + to_chat(user, "You telekinetically remove the light [fitting].") else - user << "You try to remove the light [fitting], but you burn your hand on it!" + to_chat(user, "You try to remove the light [fitting], but you burn your hand on it!") var/obj/item/organ/external/affecting = H.get_organ("[user.hand ? "l" : "r" ]_hand") if(affecting.take_damage( 0, 5 )) // 5 burn damage @@ -463,7 +463,7 @@ H.updatehealth() return // if burned, don't remove the light else - user << "You remove the light [fitting]." + to_chat(user, "You remove the light [fitting].") // create a light tube/bulb item and put it in the user's hand @@ -490,10 +490,10 @@ /obj/machinery/light/attack_tk(mob/user) if(status == LIGHT_EMPTY) - user << "There is no [fitting] in this light." + to_chat(user, "There is no [fitting] in this light.") return - user << "You telekinetically remove the light [fitting]." + to_chat(user, "You telekinetically remove the light [fitting].") // create a light tube/bulb item and put it in the user's hand var/obj/item/weapon/light/L = new light_type() L.status = status @@ -671,7 +671,7 @@ if(istype(I, /obj/item/weapon/reagent_containers/syringe)) var/obj/item/weapon/reagent_containers/syringe/S = I - user << "You inject the solution into the [src]." + to_chat(user, "You inject the solution into the [src].") if(S.reagents.has_reagent("plasma", 5)) diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm index 7feba62c14b..bc1599674a2 100644 --- a/code/modules/power/port_gen.dm +++ b/code/modules/power/port_gen.dm @@ -51,9 +51,9 @@ if(!..(user,1 )) return if(active) - usr << "The generator is on." + to_chat(usr, "The generator is on.") else - usr << "The generator is off." + to_chat(usr, "The generator is off.") /obj/machinery/power/port_gen/emp_act(severity) var/duration = 6000 //ten minutes @@ -151,10 +151,12 @@ /obj/machinery/power/port_gen/pacman/examine(mob/user) ..(user) - user << "\The [src] appears to be producing [power_gen*power_output] W." - user << "There [sheets == 1 ? "is" : "are"] [sheets] sheet\s left in the hopper." - if(IsBroken()) user << "\The [src] seems to have broken down." - if(overheating) user << "\The [src] is overheating!" + to_chat(user, "\The [src] appears to be producing [power_gen*power_output] W.") + to_chat(user, "There [sheets == 1 ? "is" : "are"] [sheets] sheet\s left in the hopper.") + if(IsBroken()) + to_chat(user, "\The [src] seems to have broken down.") + if(overheating) + to_chat(user, "\The [src] is overheating!") /obj/machinery/power/port_gen/pacman/HasFuel() var/needed_sheets = power_output / time_per_sheet @@ -269,9 +271,9 @@ var/obj/item/stack/addstack = O var/amount = min((max_sheets - sheets), addstack.amount) if(amount < 1) - user << "The [src.name] is full!" + to_chat(user, "The [src.name] is full!") return - user << "You add [amount] sheet\s to the [src.name]." + to_chat(user, "You add [amount] sheet\s to the [src.name].") sheets += amount addstack.use(amount) nanomanager.update_uis(src) @@ -281,10 +283,10 @@ if(!anchored) connect_to_network() - user << "You secure the generator to the floor." + to_chat(user, "You secure the generator to the floor.") else disconnect_from_network() - user << "You unsecure the generator from the floor." + to_chat(user, "You unsecure the generator from the floor.") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) anchored = !anchored @@ -293,9 +295,9 @@ panel_open = !panel_open playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) if(panel_open) - user << "You open the access panel." + to_chat(user, "You open the access panel.") else - user << "You close the access panel." + to_chat(user, "You close the access panel.") else if(istype(O, /obj/item/weapon/storage/part_replacer) && panel_open) exchange_parts(user, O) return diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm index 3e94274cf2f..5dd8f2e36ea 100644 --- a/code/modules/power/singularity/collector.dm +++ b/code/modules/power/singularity/collector.dm @@ -44,23 +44,23 @@ var/global/list/rad_collectors = list() investigate_log("turned [active?"on":"off"] by [user.key]. [P?"Fuel: [round(P.air_contents.toxins/0.29)]%":"It is empty"].","singulo") return else - user << "\red The controls are locked!" + to_chat(user, "\red The controls are locked!") return ..() /obj/machinery/power/rad_collector/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/device/multitool)) - user << "The [W.name] detects that [last_power]W were recently produced." + to_chat(user, "The [W.name] detects that [last_power]W were recently produced.") return 1 else if(istype(W, /obj/item/device/analyzer) && P) atmosanalyzer_scan(P.air_contents, user) else if(istype(W, /obj/item/weapon/tank/plasma)) if(!src.anchored) - user << "\red The [src] needs to be secured to the floor first." + to_chat(user, "\red The [src] needs to be secured to the floor first.") return 1 if(src.P) - user << "\red There's already a plasma tank loaded." + to_chat(user, "\red There's already a plasma tank loaded.") return 1 user.drop_item() src.P = W @@ -72,7 +72,7 @@ var/global/list/rad_collectors = list() return 1 else if(istype(W, /obj/item/weapon/wrench)) if(P) - user << "\blue Remove the plasma tank first." + to_chat(user, "\blue Remove the plasma tank first.") return 1 playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) src.anchored = !src.anchored @@ -87,12 +87,12 @@ var/global/list/rad_collectors = list() if (src.allowed(user)) if(active) src.locked = !src.locked - user << "The controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]") else src.locked = 0 //just in case it somehow gets locked - user << "\red The controls can only be locked when the [src] is active" + to_chat(user, "\red The controls can only be locked when the [src] is active") else - user << "\red Access denied!" + to_chat(user, "\red Access denied!") return 1 else ..() diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index f181fab77af..4f0d72e1511 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -65,7 +65,7 @@ set src in oview(1) if (src.anchored || usr:stat) - usr << "It is fastened to the floor!" + to_chat(usr, "It is fastened to the floor!") return 0 src.dir = turn(src.dir, 90) return 1 @@ -127,18 +127,18 @@ src.add_fingerprint(user) if(state == 2) if(!powernet) - user << "The emitter isn't connected to a wire." + to_chat(user, "The emitter isn't connected to a wire.") return 1 if(!src.locked) if(src.active==1) src.active = 0 - user << "You turn off the [src]." + to_chat(user, "You turn off the [src].") message_admins("Emitter turned off by [key_name_admin(user)] in ([x], [y], [z] - JMP)",0,1) log_game("Emitter turned off by [key_name(user)] in [x], [y], [z]") investigate_log("turned off by [key_name(usr)]","singulo") else src.active = 1 - user << "You turn on the [src]." + to_chat(user, "You turn on the [src].") src.shot_number = 0 src.fire_delay = maximum_fire_delay message_admins("Emitter turned on by [key_name_admin(user)] in ([x], [y], [z] - JMP)",0,1) @@ -146,9 +146,9 @@ investigate_log("turned on by [key_name(usr)]","singulo") update_icon() else - user << "\red The controls are locked!" + to_chat(user, "\red The controls are locked!") else - user << "\red The [src] needs to be firmly secured to the floor first." + to_chat(user, "\red The [src] needs to be firmly secured to the floor first.") return 1 @@ -223,7 +223,7 @@ if(istype(W, /obj/item/weapon/wrench)) if(active) - user << "Turn off the [src] first." + to_chat(user, "Turn off the [src] first.") return switch(state) if(0) @@ -241,17 +241,17 @@ "You hear a ratchet") src.anchored = 0 if(2) - user << "\red The [src.name] needs to be unwelded from the floor." + to_chat(user, "\red The [src.name] needs to be unwelded from the floor.") return if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(active) - user << "Turn off the [src] first." + to_chat(user, "Turn off the [src] first.") return switch(state) if(0) - user << "\red The [src.name] needs to be wrenched to the floor." + to_chat(user, "\red The [src.name] needs to be wrenched to the floor.") if(1) if (WT.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) @@ -261,10 +261,10 @@ if (do_after(user,20, target = src)) if(!src || !WT.isOn()) return state = 2 - user << "You weld the [src] to the floor." + to_chat(user, "You weld the [src] to the floor.") connect_to_network() else - user << "\red You need more welding fuel to complete this task." + to_chat(user, "\red You need more welding fuel to complete this task.") if(2) if (WT.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) @@ -274,25 +274,25 @@ if (do_after(user,20, target = src)) if(!src || !WT.isOn()) return state = 1 - user << "You cut the [src] free from the floor." + to_chat(user, "You cut the [src] free from the floor.") disconnect_from_network() else - user << "\red You need more welding fuel to complete this task." + to_chat(user, "\red You need more welding fuel to complete this task.") return if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda)) if(emagged) - user << "\red The lock seems to be broken" + to_chat(user, "\red The lock seems to be broken") return if(src.allowed(user)) if(active) src.locked = !src.locked - user << "The controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]") else src.locked = 0 //just in case it somehow gets locked - user << "\red The controls can only be locked when the [src] is online" + to_chat(user, "\red The controls can only be locked when the [src] is online") else - user << "\red Access denied." + to_chat(user, "\red Access denied.") return if(default_deconstruction_screwdriver(user, "emitter_open", "emitter", W)) diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index cabe2b7a9b6..5bf41aac044 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -79,7 +79,7 @@ field_generator power level display if(state == 2) if(get_dist(src, user) <= 1)//Need to actually touch the thing to turn it on if(src.active >= 1) - user << "You are unable to turn off the [src.name] once it is online!" + to_chat(user, "You are unable to turn off the [src.name] once it is online!") return 1 else user.visible_message("[user.name] turns on the [src.name].", \ @@ -90,13 +90,13 @@ field_generator power level display src.add_fingerprint(user) else - user << "The [src] needs to be firmly secured to the floor first!" + to_chat(user, "The [src] needs to be firmly secured to the floor first!") return /obj/machinery/field/generator/attackby(obj/item/W, mob/user, params) if(active) - user << "The [src] needs to be off!" + to_chat(user, "The [src] needs to be off!") return else if(istype(W, /obj/item/weapon/wrench)) switch(state) @@ -116,13 +116,13 @@ field_generator power level display "You hear ratchet.") src.anchored = 0 if(2) - user << "The [src.name] needs to be unwelded from the floor!" + to_chat(user, "The [src.name] needs to be unwelded from the floor!") return else if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W switch(state) if(0) - user << "The [src.name] needs to be wrenched to the floor!" + to_chat(user, "The [src.name] needs to be wrenched to the floor!") return if(1) if (WT.remove_fuel(0,user)) @@ -133,7 +133,7 @@ field_generator power level display if (do_after(user,20, target = src)) if(!src || !WT.isOn()) return state = 2 - user << "You weld the field generator to the floor." + to_chat(user, "You weld the field generator to the floor.") else return if(2) @@ -145,7 +145,7 @@ field_generator power level display if (do_after(user,20, target = src)) if(!src || !WT.isOn()) return state = 1 - user << "You cut \the [src] free from the floor." + to_chat(user, "You cut \the [src] free from the floor.") else return else diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm index 355b8ec6e74..1c43e1a829d 100644 --- a/code/modules/power/singularity/narsie.dm +++ b/code/modules/power/singularity/narsie.dm @@ -24,8 +24,8 @@ /obj/singularity/narsie/large/New() ..() - world << "NAR-SIE HAS RISEN" - world << pick(sound('sound/hallucinations/im_here1.ogg'), sound('sound/hallucinations/im_here2.ogg')) + to_chat(world, "NAR-SIE HAS RISEN") + to_chat(world, pick(sound('sound/hallucinations/im_here1.ogg'), sound('sound/hallucinations/im_here2.ogg'))) var/area/A = get_area(src) if(A) @@ -38,7 +38,7 @@ /obj/singularity/narsie/large/attack_ghost(mob/dead/observer/user as mob) if(!(src in view())) - user << "Your soul is too far away." + to_chat(user, "Your soul is too far away.") return makeNewConstruct(/mob/living/simple_animal/construct/harvester, user, null, 1) new /obj/effect/effect/sleep_smoke(user.loc) @@ -76,7 +76,7 @@ for(var/mob/living/carbon/M in oviewers(8, src)) if(M.stat == CONSCIOUS) if(!iscultist(M)) - M << "You feel your sanity crumble away in an instant as you gaze upon [src.name]..." + to_chat(M, "You feel your sanity crumble away in an instant as you gaze upon [src.name]...") M.apply_effect(3, STUN) @@ -123,12 +123,12 @@ /obj/singularity/narsie/proc/acquire(var/mob/food) - target << "NAR-SIE HAS LOST INTEREST IN YOU" + to_chat(target, "NAR-SIE HAS LOST INTEREST IN YOU") target = food if(ishuman(target)) - target << "NAR-SIE HUNGERS FOR YOUR SOUL" + to_chat(target, "NAR-SIE HUNGERS FOR YOUR SOUL") else - target << "NAR-SIE HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL" + to_chat(target, "NAR-SIE HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL") //Wizard narsie /obj/singularity/narsie/wizard diff --git a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm index eb5fe86b5ed..cff8c2ee9fa 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm @@ -96,7 +96,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "It is fastened to the floor!" + to_chat(usr, "It is fastened to the floor!") return 0 src.dir = turn(src.dir, 270) return 1 @@ -109,7 +109,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "It is fastened to the floor!" + to_chat(usr, "It is fastened to the floor!") return 0 src.dir = turn(src.dir, 90) return 1 @@ -235,7 +235,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin "You add some wires.") temp_state++ else - user << "You need one length of cable to wire the [src.name]!" + to_chat(user, "You need one length of cable to wire the [src.name]!") return if(2) if(iswirecutter(O))//TODO:Shock user if its on? @@ -289,7 +289,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "It is fastened to the floor!" + to_chat(usr, "It is fastened to the floor!") return 0 src.dir = turn(src.dir, 270) return 1 @@ -302,7 +302,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin if(usr.stat || !usr.canmove || usr.restrained()) return if (src.anchored) - usr << "It is fastened to the floor!" + to_chat(usr, "It is fastened to the floor!") return 0 src.dir = turn(src.dir, 90) return 1 diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm index 6723bc156c0..8101269762e 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_control.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm @@ -86,7 +86,7 @@ return 1 if(!interface_control) - usr << "ERROR: Request timed out. Check wire contacts." + to_chat(usr, "ERROR: Request timed out. Check wire contacts.") return if( href_list["close"] ) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index ba8e5d34dea..ba516cd2181 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -390,7 +390,7 @@ if(istype(H.glasses, /obj/item/clothing/glasses/meson)) var/obj/item/clothing/glasses/meson/MS = H.glasses if(MS.vision_flags == SEE_TURFS) - H << "You look directly into the [src.name], good thing you had your protective eyewear on!" + to_chat(H, "You look directly into the [src.name], good thing you had your protective eyewear on!") return M.apply_effect(3, STUN) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 33a5c69fdc8..d55394f83bd 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -130,10 +130,10 @@ if(term && term.dir == turn(dir, 180)) terminal = term terminal.master = src - user << "Terminal found." + to_chat(user, "Terminal found.") break if(!terminal) - user << "No power source found." + to_chat(user, "No power source found.") return stat &= ~BROKEN update_icon() @@ -150,21 +150,21 @@ return if(terminal) //is there already a terminal ? - user << "This SMES already has a power terminal!" + to_chat(user, "This SMES already has a power terminal!") return if(!panel_open) //is the panel open ? - user << "You must open the maintenance panel first!" + to_chat(user, "You must open the maintenance panel first!") return var/turf/T = get_turf(user) if (T.intact) //is the floor plating removed ? - user << "You must first remove the floor plating!" + to_chat(user, "You must first remove the floor plating!") return var/obj/item/stack/cable_coil/C = I if(C.amount < 10) - user << "You need more wires." + to_chat(user, "You need more wires.") return //build the terminal and link it to the network @@ -176,10 +176,10 @@ if(istype(I, /obj/item/weapon/wirecutters) && terminal && panel_open) var/turf/T = get_turf(terminal) if (T.intact) //is the floor plating removed ? - user << "You must first expose the power terminal!" + to_chat(user, "You must first expose the power terminal!") return - user << "You begin to dismantle the power terminal..." + to_chat(user, "You begin to dismantle the power terminal...") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 50, target = src)) @@ -302,7 +302,7 @@ //Will return 1 on failure /obj/machinery/power/smes/proc/make_terminal(const/mob/user) if (user.loc == loc) - user << "You must not be on the same tile as the [src]." + to_chat(user, "You must not be on the same tile as the [src].") return 1 //Direction the terminal will face to @@ -314,13 +314,13 @@ tempDir = WEST var/turf/tempLoc = get_step(src, reverse_direction(tempDir)) if (istype(tempLoc, /turf/space)) - user << "You can't build a terminal on space." + to_chat(user, "You can't build a terminal on space.") return 1 else if (istype(tempLoc)) if(tempLoc.intact) - user << "You must remove the floor plating first." + to_chat(user, "You must remove the floor plating first.") return 1 - user << "You start adding cable to the [src]." + to_chat(user, "You start adding cable to the [src].") if(do_after(user, 50, target = src)) var/turf/T = get_turf(user) var/obj/structure/cable/N = T.get_cable_node() //get the connecting node cable, if there's one diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 3f714c911c2..44f78fa4e38 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -247,7 +247,7 @@ else new /obj/machinery/power/solar(get_turf(src), src) else - user << "You need two sheets of glass to put them into a solar panel." + to_chat(user, "You need two sheets of glass to put them into a solar panel.") return return 1 @@ -418,7 +418,7 @@ playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 20, target = src)) if (src.stat & BROKEN) - user << "The broken glass falls out." + to_chat(user, "The broken glass falls out.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/weapon/shard( src.loc ) var/obj/item/weapon/circuitboard/solar_control/M = new /obj/item/weapon/circuitboard/solar_control( A ) @@ -430,7 +430,7 @@ A.anchored = 1 qdel(src) else - user << "You disconnect the monitor." + to_chat(user, "You disconnect the monitor.") var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/weapon/circuitboard/solar_control/M = new /obj/item/weapon/circuitboard/solar_control( A ) for (var/obj/C in src) diff --git a/code/modules/power/supermatter/sm_shard.dm b/code/modules/power/supermatter/sm_shard.dm index e55a065c462..e95b51cf828 100644 --- a/code/modules/power/supermatter/sm_shard.dm +++ b/code/modules/power/supermatter/sm_shard.dm @@ -44,7 +44,7 @@ /obj/item/weapon/shard/supermatter/Crossed(AM as mob|obj) if(ismob(AM)) var/mob/M = AM - M << "\red You step on \the [src]!" + to_chat(M, "\red You step on \the [src]!") playsound(src.loc, 'sound/effects/glass_step_sm.ogg', 70, 1) // not sure how to handle metal shards with sounds if(ishuman(M)) var/mob/living/carbon/human/H = M @@ -66,7 +66,7 @@ /obj/item/weapon/shard/supermatter/attack_hand(var/mob/user) if(!istype(user,/mob/living/carbon/human/nucleation)) - user << pick( "\red You think twice before touching that without protection.", + to_chat(user, pick( "\red You think twice before touching that without protection.",) "\red You don't want to touch that without some protection.", "\red You probably should get something else to pick that up.", "\red You aren't sure that's a good idea.", diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index 6f04bf82a1a..5bb36c06187 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -224,8 +224,8 @@ message_admins("Singularity has consumed a supermatter shard and can now become stage six.") visible_message("[src] is consumed by the singularity!") for(var/mob/M in mob_list) - M << 'sound/effects/supermatter.ogg' //everyone goan know bout this - M << "A horrible screeching fills your ears, and a wave of dread washes over you..." + M << 'sound/effects/supermatter.ogg' //everyone gunna know bout this + to_chat(M, "A horrible screeching fills your ears, and a wave of dread washes over you...") qdel(src) return(gain) diff --git a/code/modules/power/switch.dm b/code/modules/power/switch.dm index 0f36d7274bf..cba253be5f0 100644 --- a/code/modules/power/switch.dm +++ b/code/modules/power/switch.dm @@ -24,18 +24,18 @@ /obj/structure/powerswitch/examine(mob/user) ..(user) if(on) - user << "The switch is in the on position" + to_chat(user, "The switch is in the on position") else - user << "The switch is in the off position" + to_chat(user, "The switch is in the off position") /obj/structure/powerswitch/attack_ai(mob/user) - user << "\red You're an AI. This is a manual switch. It's not going to work." + to_chat(user, "\red You're an AI. This is a manual switch. It's not going to work.") return /obj/structure/powerswitch/attack_hand(mob/user) if(busy) - user << "\red This switch is already being toggled." + to_chat(user, "\red This switch is already being toggled.") return ..() diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm index 0776918c5b4..dd20b4fde12 100644 --- a/code/modules/power/tesla/energy_ball.dm +++ b/code/modules/power/tesla/energy_ball.dm @@ -56,7 +56,7 @@ var/list/blacklisted_tesla_types = list(/obj/machinery/atmospherics, /obj/singularity/energy_ball/examine(mob/user) ..() if(orbiting_balls.len) - user << "The amount of orbiting mini-balls is [orbiting_balls.len]." + to_chat(user, "The amount of orbiting mini-balls is [orbiting_balls.len].") /obj/singularity/energy_ball/proc/move_the_basket_ball(var/move_amount) diff --git a/code/modules/power/treadmill.dm b/code/modules/power/treadmill.dm index 84437c672c3..8ae75a982a4 100644 --- a/code/modules/power/treadmill.dm +++ b/code/modules/power/treadmill.dm @@ -168,7 +168,7 @@ /obj/machinery/treadmill_monitor/examine(mob/user) ..() - user << "The display reads:
[line1]
[line2]
" + to_chat(user, "The display reads:
[line1]
[line2]
") /obj/machinery/treadmill_monitor/update_icon() overlays.Cut() diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm index 4c7b51e5ac0..7df58795f43 100644 --- a/code/modules/power/turbine.dm +++ b/code/modules/power/turbine.dm @@ -120,10 +120,10 @@ inturf = get_step(src, dir) locate_machinery() if(turbine) - user << "Turbine connected." + to_chat(user, "Turbine connected.") stat &= ~BROKEN else - user << "Turbine not connected." + to_chat(user, "Turbine not connected.") stat |= BROKEN return @@ -279,10 +279,10 @@ outturf = get_step(src, dir) locate_machinery() if(compressor) - user << "Compressor connected." + to_chat(user, "Compressor connected.") stat &= ~BROKEN else - user << "Compressor not connected." + to_chat(user, "Compressor not connected.") stat |= BROKEN return diff --git a/code/modules/procedural_mapping/mapGenerator.dm b/code/modules/procedural_mapping/mapGenerator.dm index d0c5440dc95..645c6e786de 100644 --- a/code/modules/procedural_mapping/mapGenerator.dm +++ b/code/modules/procedural_mapping/mapGenerator.dm @@ -153,23 +153,23 @@ var/endInput = input(usr,"End turf of Map (X;Y;Z)", "Map Gen Settings", "[world.maxx];[world.maxy];[mob ? mob.z : 1]") as text //maxx maxy and current z so that if you fuck up, you only fuck up one entire z level instead of the entire universe if(!startInput || !endInput) - src << "Missing Input" + to_chat(src, "Missing Input") return var/list/startCoords = splittext(startInput, ";") var/list/endCoords = splittext(endInput, ";") if(!startCoords || !endCoords) - src << "Invalid Coords" - src << "Start Input: [startInput]" - src << "End Input: [endInput]" + to_chat(src, "Invalid Coords") + to_chat(src, "Start Input: [startInput]") + to_chat(src, "End Input: [endInput]") return var/turf/Start = locate(text2num(startCoords[1]),text2num(startCoords[2]),text2num(startCoords[3])) var/turf/End = locate(text2num(endCoords[1]),text2num(endCoords[2]),text2num(endCoords[3])) if(!Start || !End) - src << "Invalid Turfs" - src << "Start Coords: [startCoords[1]] - [startCoords[2]] - [startCoords[3]]" - src << "End Coords: [endCoords[1]] - [endCoords[2]] - [endCoords[3]]" + to_chat(src, "Invalid Turfs") + to_chat(src, "Start Coords: [startCoords[1]] - [startCoords[2]] - [startCoords[3]]") + to_chat(src, "End Coords: [endCoords[1]] - [endCoords[2]] - [endCoords[3]]") return var/list/clusters = list("None"=CLUSTER_CHECK_NONE,"All"=CLUSTER_CHECK_ALL,"Sames"=CLUSTER_CHECK_SAMES,"Differents"=CLUSTER_CHECK_DIFFERENTS, \ @@ -182,7 +182,7 @@ var/theCluster = 0 if(moduleClusters != "None") if(!clusters[moduleClusters]) - src << "Invalid Cluster Flags" + to_chat(src, "Invalid Cluster Flags") return theCluster = clusters[moduleClusters] else @@ -193,9 +193,9 @@ M.clusterCheckFlags = theCluster - src << "Defining Region" + to_chat(src, "Defining Region") N.defineRegion(Start, End) - src << "Region Defined" - src << "Generating Region" + to_chat(src, "Region Defined") + to_chat(src, "Generating Region") N.generate() - src << "Generated Region" + to_chat(src, "Generated Region") diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index 57ed66625ec..0022a4e1f80 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -38,18 +38,19 @@ var/tmp_label = "" var/label_text = sanitize(input(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label)) if(length(label_text) > 20) - user << "\red The inscription can be at most 20 characters long." + to_chat(user, "\red The inscription can be at most 20 characters long.") else if(label_text == "") - user << "\blue You scratch the inscription off of [initial(BB)]." + to_chat(user, "\blue You scratch the inscription off of [initial(BB)].") BB.name = initial(BB.name) else - user << "\blue You inscribe \"[label_text]\" into \the [initial(BB.name)]." + to_chat(user, "\blue You inscribe \"[label_text]\" into \the [initial(BB.name)].") BB.name = "[initial(BB.name)] \"[label_text]\"" else - user << "\blue You can only inscribe a metal bullet." //because inscribing beanbags is silly + to_chat(user, "\blue You can only inscribe a metal bullet.")//because inscribing beanbags is silly + else - user << "\blue There is no bullet in the casing to inscribe anything into." + to_chat(user, "\blue There is no bullet in the casing to inscribe anything into.") /obj/item/ammo_casing/proc/newshot() //For energy weapons, shotgun shells and wands (!). if (!BB) @@ -121,7 +122,7 @@ num_loaded++ if(num_loaded) if(!silent) - user << "You load [num_loaded] shell\s into \the [src]!" + to_chat(user, "You load [num_loaded] shell\s into \the [src]!") A.update_icon() update_icon() @@ -129,7 +130,7 @@ var/obj/item/ammo_casing/A = get_round() if(A) user.put_in_hands(A) - user << "You remove a round from \the [src]!" + to_chat(user, "You remove a round from \the [src]!") update_icon() /obj/item/ammo_box/update_icon() diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index 452a6dc026f..7a3718d1642 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -68,7 +68,7 @@ proc/shoot_with_empty_chamber(mob/living/user as mob|obj) - user << "*click*" + to_chat(user, "*click*") playsound(user, 'sound/weapons/emptyclick.ogg', 40, 1) return @@ -98,30 +98,30 @@ if(istype(user, /mob/living)) var/mob/living/M = user if ((CLUMSY in M.mutations) && prob(50)) - M << "[src] blows up in your face." + to_chat(M, "[src] blows up in your face.") M.take_organ_damage(0,20) M.drop_item() qdel(src) return if (!user.IsAdvancedToolUser() || istype(user, /mob/living/simple_animal/diona)) - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return if(istype(user, /mob/living)) var/mob/living/M = user if (HULK in M.mutations) - M << "Your meaty finger is much too large for the trigger guard!" + to_chat(M, "Your meaty finger is much too large for the trigger guard!") return if(ishuman(user)) var/mob/living/carbon/human/H = user if(H.get_species() == "Golem") - user << "Your metal fingers don't fit in the trigger guard!" + to_chat(user, "Your metal fingers don't fit in the trigger guard!") return if(H.get_species() == "Shadowling") - user << "The muzzle flash would cause damage to your form!" + to_chat(user, "The muzzle flash would cause damage to your form!") return if(H.martial_art && H.martial_art.name == "The Sleeping Carp") //great dishonor to famiry - user << "Use of ranged weaponry would bring dishonor to the clan." + to_chat(user, "Use of ranged weaponry would bring dishonor to the clan.") return add_fingerprint(user) @@ -131,7 +131,7 @@ if (!ready_to_fire()) if (world.time % 3) //to prevent spam - user << "[src] is not ready to fire again!" + to_chat(user, "[src] is not ready to fire again!") return if(heavy_weapon) @@ -299,7 +299,7 @@ user.apply_damage(in_chamber.damage*2.5, in_chamber.damage_type, "head", used_weapon = "Point blank shot in the mouth with \a [in_chamber]", sharp=1) user.death() else - user << "Ow..." + to_chat(user, "Ow...") user.apply_effect(110,STAMINA,0) del(in_chamber) mouthshoot = 0 @@ -329,10 +329,10 @@ if(can_flashlight) if(!F) if(user.l_hand != src && user.r_hand != src) - user << "You'll need [src] in your hands to do that." + to_chat(user, "You'll need [src] in your hands to do that.") return user.drop_item() - user << "You click [S] into place on [src]." + to_chat(user, "You click [S] into place on [src].") if(S.on) set_light(0) F = S @@ -343,10 +343,10 @@ if(istype(A, /obj/item/weapon/screwdriver)) if(F) if(user.l_hand != src && user.r_hand != src) - user << "You'll need [src] in your hands to do that." + to_chat(user, "You'll need [src] in your hands to do that.") return for(var/obj/item/device/flashlight/seclite/S in src) - user << "You unscrew the seclite from [src]." + to_chat(user, "You unscrew the seclite from [src].") F = null S.loc = get_turf(user) update_gunlight(user) @@ -366,9 +366,9 @@ var/mob/living/carbon/human/user = usr if(!isturf(user.loc)) - user << "You cannot turn the light on while in this [user.loc]." + to_chat(user, "You cannot turn the light on while in this [user.loc].") F.on = !F.on - user << "You toggle the gunlight [F.on ? "on":"off"]." + to_chat(user, "You toggle the gunlight [F.on ? "on":"off"].") playsound(user, 'sound/weapons/empty.ogg', 100, 1) update_gunlight(user) diff --git a/code/modules/projectiles/guns/alien.dm b/code/modules/projectiles/guns/alien.dm index ea4c15a0596..eeb775be84a 100644 --- a/code/modules/projectiles/guns/alien.dm +++ b/code/modules/projectiles/guns/alien.dm @@ -33,7 +33,7 @@ /obj/item/weapon/gun/launcher/spikethrower/examine(mob/user) ..(user) - user << "It has [spikes] [spikes == 1 ? "spike" : "spikes"] remaining." + to_chat(user, "It has [spikes] [spikes == 1 ? "spike" : "spikes"] remaining.") /obj/item/weapon/gun/launcher/spikethrower/update_icon() icon_state = "spikethrower[spikes]" @@ -45,7 +45,7 @@ if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user if(H.species && H.species.name != "Vox" && H.species.name != "Vox Armalis") - user << "\red \The [src] does not respond to you!" + to_chat(user, "\red \The [src] does not respond to you!") return 0 return 1 @@ -89,7 +89,7 @@ if(H.species.name == "Vox Armalis") ..() return - user << "\red \The [src] is far too large for you to pick up." + to_chat(user, "\red \The [src] is far too large for you to pick up.") return /obj/item/weapon/gun/energy/noisecannon/process_chambered() //Does not have ammo. diff --git a/code/modules/projectiles/guns/energy/advtaser.dm b/code/modules/projectiles/guns/energy/advtaser.dm index f617db1122b..8601a388f15 100644 --- a/code/modules/projectiles/guns/energy/advtaser.dm +++ b/code/modules/projectiles/guns/energy/advtaser.dm @@ -21,7 +21,7 @@ mode = 1 charge_cost = 500 fire_sound = 'sound/weapons/taser2.ogg' - user << "\red [src.name] is now set to Disable." + to_chat(user, "\red [src.name] is now set to Disable.") projectile_type = "/obj/item/projectile/beam/disabler" modifystate = "advtaserdisable" fire_delay = 0 @@ -29,7 +29,7 @@ mode = 0 charge_cost = 2000 fire_sound = 'sound/weapons/Taser.ogg' - user << "\red [src.name] is now set to stun." + to_chat(user, "\red [src.name] is now set to stun.") projectile_type = "/obj/item/projectile/energy/electrode" modifystate = "advtaserstun" fire_delay = 15 diff --git a/code/modules/projectiles/guns/energy/blueshield.dm b/code/modules/projectiles/guns/energy/blueshield.dm index 1ba9e26eba1..914b92e19a6 100644 --- a/code/modules/projectiles/guns/energy/blueshield.dm +++ b/code/modules/projectiles/guns/energy/blueshield.dm @@ -21,7 +21,7 @@ projectile_type = "/obj/item/projectile/beam" modifystate = "bsgun_kill" - user << "You adjust [src.name] to the kill setting." + to_chat(user, "You adjust [src.name] to the kill setting.") else fire_mode = 0 @@ -32,6 +32,6 @@ fire_sound = 'sound/weapons/gunshot.ogg' modifystate = "bsgun_stun" - user << "You adjust [src.name] to the stun setting." + to_chat(user, "You adjust [src.name] to the stun setting.") update_icon() \ No newline at end of file diff --git a/code/modules/projectiles/guns/energy/hos.dm b/code/modules/projectiles/guns/energy/hos.dm index c48a7ee3398..6bcb9992c4d 100644 --- a/code/modules/projectiles/guns/energy/hos.dm +++ b/code/modules/projectiles/guns/energy/hos.dm @@ -18,7 +18,7 @@ mode = 0 charge_cost = 1000 fire_sound = 'sound/weapons/Laser.ogg' - user << "\red [src.name] is now set to kill." + to_chat(user, "\red [src.name] is now set to kill.") projectile_type = "/obj/item/projectile/beam" modifystate = "hoslaserkill" fire_delay = 0 @@ -26,7 +26,7 @@ mode = 1 charge_cost = 500 fire_sound = 'sound/weapons/taser2.ogg' - user << "\red [src.name] is now set to disable." + to_chat(user, "\red [src.name] is now set to disable.") projectile_type = "/obj/item/projectile/beam/disabler" modifystate = "hoslaserdisable" fire_delay = 0 @@ -34,7 +34,7 @@ mode = 2 charge_cost = 2000 fire_sound = 'sound/weapons/taser.ogg' - user << "\red [src.name] is now set to stun." + to_chat(user, "\red [src.name] is now set to stun.") projectile_type = "/obj/item/projectile/energy/electrode" modifystate = "hoslaserstun" fire_delay = 15 diff --git a/code/modules/projectiles/guns/energy/laser.dm b/code/modules/projectiles/guns/energy/laser.dm index 2c0eb581bde..096cd26da3a 100644 --- a/code/modules/projectiles/guns/energy/laser.dm +++ b/code/modules/projectiles/guns/energy/laser.dm @@ -125,7 +125,7 @@ obj/item/weapon/gun/energy/laser/retro if(ishuman(M)) if(istype(M.wear_suit, /obj/item/clothing/suit/bluetag)) return 1 - M << "\red You need to be wearing your laser tag vest!" + to_chat(M, "\red You need to be wearing your laser tag vest!") return 0 /obj/item/weapon/gun/energy/laser/redtag @@ -143,5 +143,5 @@ obj/item/weapon/gun/energy/laser/retro if(ishuman(M)) if(istype(M.wear_suit, /obj/item/clothing/suit/redtag)) return 1 - M << "\red You need to be wearing your laser tag vest!" + to_chat(M, "\red You need to be wearing your laser tag vest!") return 0 \ No newline at end of file diff --git a/code/modules/projectiles/guns/energy/nuclear.dm b/code/modules/projectiles/guns/energy/nuclear.dm index edfcd01d211..5bc164c5d76 100644 --- a/code/modules/projectiles/guns/energy/nuclear.dm +++ b/code/modules/projectiles/guns/energy/nuclear.dm @@ -19,14 +19,14 @@ mode = 1 charge_cost = 1000 fire_sound = 'sound/weapons/Laser.ogg' - user << "\red [src.name] is now set to kill." + to_chat(user, "\red [src.name] is now set to kill.") projectile_type = "/obj/item/projectile/beam" modifystate = "energykill" if(1) mode = 0 charge_cost = 500 fire_sound = 'sound/weapons/Taser2.ogg' - user << "\red [src.name] is now set to disable." + to_chat(user, "\red [src.name] is now set to disable.") projectile_type = "/obj/item/projectile/beam/disabler" modifystate = "energystun" update_icon() @@ -96,16 +96,16 @@ if (prob(src.reliability)) for (var/mob/living/M in range(0,src)) //Only a minor failure, enjoy your radiation if you're in the same tile or carrying it if (src in M.contents) - M << "\red Your gun feels pleasantly warm for a moment." + to_chat(M, "\red Your gun feels pleasantly warm for a moment.") else - M << "\red You feel a warm sensation." + to_chat(M, "\red You feel a warm sensation.") M.apply_effect(rand(3,120), IRRADIATE) lightfail = 1 else for (var/mob/living/M in range(rand(1,4),src)) //Big failure, TIME FOR RADIATION BITCHES if (src in M.contents) - M << "\red Your gun's reactor overloads!" - M << "\red You feel a wave of heat wash over you." + to_chat(M, "\red Your gun's reactor overloads!") + to_chat(M, "\red You feel a wave of heat wash over you.") M.apply_effect(300, IRRADIATE) crit_fail = 1 //break the gun so it stops recharging processing_objects.Remove(src) @@ -173,7 +173,7 @@ mode = 1 charge_cost = 500 fire_sound = 'sound/weapons/Laser.ogg' - user << "\red [src.name] is now set to kill." + to_chat(user, "\red [src.name] is now set to kill.") projectile_type = /obj/item/projectile/beam modifystate = "energykill" fire_delay = 0 @@ -181,7 +181,7 @@ mode = 0 charge_cost = 1000 fire_sound = 'sound/weapons/Taser.ogg' - user << "\red [src.name] is now set to stun." + to_chat(user, "\red [src.name] is now set to stun.") projectile_type = /obj/item/projectile/energy/electrode modifystate = "energystun" fire_delay = 15 diff --git a/code/modules/projectiles/guns/energy/pulse.dm b/code/modules/projectiles/guns/energy/pulse.dm index ffb075c8c34..bc7704d709a 100644 --- a/code/modules/projectiles/guns/energy/pulse.dm +++ b/code/modules/projectiles/guns/energy/pulse.dm @@ -21,19 +21,19 @@ mode = 0 charge_cost = 50 fire_sound = 'sound/weapons/Taser.ogg' - user << "\red [src.name] is now set to stun." + to_chat(user, "\red [src.name] is now set to stun.") projectile_type = "/obj/item/projectile/energy/electrode" if(0) mode = 1 charge_cost = 100 fire_sound = 'sound/weapons/Laser.ogg' - user << "\red [src.name] is now set to kill." + to_chat(user, "\red [src.name] is now set to kill.") projectile_type = "/obj/item/projectile/beam" if(1) mode = 2 charge_cost = 200 fire_sound = 'sound/weapons/pulse.ogg' - user << "\red [src.name] is now set to DESTROY." + to_chat(user, "\red [src.name] is now set to DESTROY.") projectile_type = "/obj/item/projectile/beam/pulse" return @@ -58,7 +58,7 @@ cell_type = "/obj/item/weapon/stock_parts/cell/infinite" attack_self(mob/living/user as mob) - user << "\red [src.name] has three settings, and they are all DESTROY." + to_chat(user, "\red [src.name] has three settings, and they are all DESTROY.") /obj/item/weapon/gun/energy/pulse_rifle/carbine name = "pulse carbine" diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index c5002a03acf..bb556a4f178 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -50,13 +50,13 @@ if(0) mode = 1 charge_cost = 1000 - user << "\red The [src.name] is now set to increase yield." + to_chat(user, "\red The [src.name] is now set to increase yield.") projectile_type = "/obj/item/projectile/energy/florayield" modifystate = "florayield" if(1) mode = 0 charge_cost = 1000 - user << "\red The [src.name] is now set to induce mutations." + to_chat(user, "\red The [src.name] is now set to induce mutations.") projectile_type = "/obj/item/projectile/energy/floramut" modifystate = "floramut" update_icon() @@ -117,11 +117,11 @@ obj/item/weapon/gun/energy/staff/focus attack_self(mob/living/user as mob) if(projectile_type == "/obj/item/projectile/forcebolt") charge_cost = 200 - user << "\red The [src.name] will now strike a small area." + to_chat(user, "\red The [src.name] will now strike a small area.") projectile_type = "/obj/item/projectile/forcebolt/strong" else charge_cost = 100 - user << "\red The [src.name] will now strike only a single person." + to_chat(user, "\red The [src.name] will now strike only a single person.") projectile_type = "/obj/item/projectile/forcebolt" */ @@ -174,10 +174,10 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. set name = "Use Sniper Scope" set popup_menu = 0 if(usr.stat || !(istype(usr,/mob/living/carbon/human))) - usr << "You are unable to focus down the scope of the rifle." + to_chat(usr, "You are unable to focus down the scope of the rifle.") return if(!zoom && usr.get_active_hand() != src) - usr << "You are too distracted to look down the scope, perhaps if it was in your active hand this might work better" + to_chat(usr, "You are too distracted to look down the scope, perhaps if it was in your active hand this might work better") return if(usr.client.view == world.view) @@ -191,7 +191,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. if(!usr.hud_used.hud_shown) usr.button_pressed_F12(1) zoom = 0 - usr << "Zoom mode [zoom?"en":"dis"]abled." + to_chat(usr, "Zoom mode [zoom?"en":"dis"]abled.") /obj/item/weapon/gun/energy/kinetic_accelerator @@ -241,7 +241,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. if(!silenced) playsound(src.loc, 'sound/weapons/kenetic_reload.ogg', 60, 1) else if(user) - usr << "You silently charge [src]." + to_chat(usr, "You silently charge [src].") recently_fired = 0 update_icon() @@ -292,18 +292,18 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. /obj/item/weapon/gun/energy/plasmacutter/examine(mob/user) ..(user) if(power_supply) - user <<"[src] is [round(power_supply.percent())]% charged." + to_chat(user, "[src] is [round(power_supply.percent())]% charged.") /obj/item/weapon/gun/energy/plasmacutter/attackby(var/obj/item/A, var/mob/user) if(istype(A, /obj/item/stack/sheet/mineral/plasma)) var/obj/item/stack/sheet/S = A S.use(1) power_supply.give(10000) - user << "You insert [A] in [src], recharging it." + to_chat(user, "You insert [A] in [src], recharging it.") else if(istype(A, /obj/item/weapon/ore/plasma)) qdel(A) power_supply.give(5000) - user << "You insert [A] in [src], recharging it." + to_chat(user, "You insert [A] in [src], recharging it.") else ..() @@ -376,12 +376,12 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. switch(mode) if(0) mode = 1 - user << "[name] is now set to orange." + to_chat(user, "[name] is now set to orange.") projectile_type = "/obj/item/projectile/beam/wormhole/orange" modifystate = "wormhole_projector_orange" if(1) mode = 0 - user << "[name] is now set to blue." + to_chat(user, "[name] is now set to blue.") projectile_type = "/obj/item/projectile/beam/wormhole" modifystate = "wormhole_projector" update_icon() diff --git a/code/modules/projectiles/guns/energy/temperature.dm b/code/modules/projectiles/guns/energy/temperature.dm index 8d33a9e2508..1e0eb5d08c2 100644 --- a/code/modules/projectiles/guns/energy/temperature.dm +++ b/code/modules/projectiles/guns/energy/temperature.dm @@ -42,7 +42,7 @@ /obj/item/weapon/gun/energy/temperature/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W, /obj/item/weapon/card/emag) && !emagged) emagged = 1 - user << "You double the gun's temperature cap! Targets hit by searing beams will burst into flames!" + to_chat(user, "You double the gun's temperature cap! Targets hit by searing beams will burst into flames!") desc = "A gun that changes the body temperature of its targets. Its temperature cap has been hacked." /obj/item/weapon/gun/energy/temperature/Topic(href, href_list) diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index 57c3ca2628c..13f92bcef86 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -33,7 +33,7 @@ if(no_den_usage) var/area/A = get_area(user) if(istype(A, /area/wizard_station)) - user << "You know better than to violate the security of The Den, best wait until you leave to use [src]." + to_chat(user, "You know better than to violate the security of The Den, best wait until you leave to use [src].") return else no_den_usage = 0 @@ -62,5 +62,5 @@ return /obj/item/weapon/gun/magic/shoot_with_empty_chamber(mob/living/user as mob|obj) - user << "The [name] whizzles quietly." + to_chat(user, "The [name] whizzles quietly.") return \ No newline at end of file diff --git a/code/modules/projectiles/guns/magic/wand.dm b/code/modules/projectiles/guns/magic/wand.dm index eb4bf5c37d1..6be4e0936bf 100644 --- a/code/modules/projectiles/guns/magic/wand.dm +++ b/code/modules/projectiles/guns/magic/wand.dm @@ -27,13 +27,13 @@ /obj/item/weapon/gun/magic/wand/examine(mob/user) ..(user) - user << "Has [charges] charge\s remaining." + to_chat(user, "Has [charges] charge\s remaining.") /obj/item/weapon/gun/magic/wand/attack_self(mob/living/user as mob) if(charges) zap_self(user) else - user << "The [name] whizzles quietly." + to_chat(user, "The [name] whizzles quietly.") ..() /obj/item/weapon/gun/magic/wand/attack(atom/target as mob, mob/living/user as mob) @@ -43,7 +43,7 @@ /obj/item/weapon/gun/magic/wand/afterattack(atom/target as mob, mob/living/user as mob) if(!charges && !drained) - user << "The [name] whizzles quietly." + to_chat(user, "The [name] whizzles quietly.") icon_state = "[icon_state]-drained" drained = 1 return @@ -51,7 +51,7 @@ if(no_den_usage) var/area/A = get_area(user) if(istype(A, /area/wizard_station)) - user << "You know better than to violate the security of The Den, best wait until you leave to use [src]." + to_chat(user, "You know better than to violate the security of The Den, best wait until you leave to use [src].") return else no_den_usage = 0 @@ -73,7 +73,7 @@ if(alert(user, "You really want to zap yourself with the wand of death?",, "Yes", "No") == "Yes" && charges && user.get_active_hand() == src && isliving(user)) var/message ="You irradiate yourself with pure energy! " message += pick("Do not pass go. Do not collect 200 zorkmids.","You feel more confident in your spell casting skills.","You Die...","Do you want your possessions identified?") - user << message + to_chat(user, message) user.adjustOxyLoss(500) charges-- ..() @@ -95,7 +95,7 @@ user.radiation = 0 user.heal_overall_damage(user.getBruteLoss(), user.getFireLoss()) user.reagents.clear_reagents() - user << "You feel great!" + to_chat(user, "You feel great!") charges-- ..() diff --git a/code/modules/projectiles/guns/projectile.dm b/code/modules/projectiles/guns/projectile.dm index f7b61436dfe..d6fb9d9aff0 100644 --- a/code/modules/projectiles/guns/projectile.dm +++ b/code/modules/projectiles/guns/projectile.dm @@ -66,22 +66,22 @@ user.remove_from_mob(AM) magazine = AM magazine.loc = src - user << "You load a new magazine into \the [src]." + to_chat(user, "You load a new magazine into \the [src].") chamber_round() A.update_icon() update_icon() return 1 else if (magazine) - user << "There's already a magazine in \the [src]." + to_chat(user, "There's already a magazine in \the [src].") if(istype(A, /obj/item/weapon/suppressor)) var/obj/item/weapon/suppressor/S = A if(can_suppress) if(!silenced) if(user.l_hand != src && user.r_hand != src) - user << "You'll need [src] in your hands to do that." + to_chat(user, "You'll need [src] in your hands to do that.") return user.drop_item() - user << "You screw [S] onto [src]." + to_chat(user, "You screw [S] onto [src].") silenced = A S.oldsound = fire_sound S.initial_w_class = w_class @@ -91,10 +91,10 @@ update_icon() return else - user << "[src] already has a suppressor." + to_chat(user, "[src] already has a suppressor.") return else - user << "You can't seem to figure out how to fit [S] on [src]." + to_chat(user, "You can't seem to figure out how to fit [S] on [src].") return return 0 @@ -105,7 +105,7 @@ if(user.l_hand != src && user.r_hand != src) ..() return - user << "You unscrew [silenced] from [src]." + to_chat(user, "You unscrew [silenced] from [src].") user.put_in_hands(silenced) fire_sound = S.oldsound w_class = S.initial_w_class @@ -120,15 +120,15 @@ user.put_in_hands(magazine) magazine.update_icon() magazine = null - user << "You pull the magazine out of \the [src]!" + to_chat(user, "You pull the magazine out of \the [src]!") else - user << "There's no magazine in \the [src]." + to_chat(user, "There's no magazine in \the [src].") update_icon() return /obj/item/weapon/gun/projectile/examine(mob/user) ..(user) - user << "Has [get_ammo()] round\s remaining." + to_chat(user, "Has [get_ammo()] round\s remaining.") /obj/item/weapon/gun/projectile/proc/get_ammo(var/countchambered = 1) var/boolets = 0 //mature var names for mature people diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index ee8d7be812f..b56344ce039 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -36,12 +36,12 @@ var/obj/item/ammo_box/magazine/AM = A if(istype(AM, text2path(mag_type))) if(magazine) - user << "You perform a tactical reload on \the [src], replacing the magazine." + to_chat(user, "You perform a tactical reload on \the [src], replacing the magazine.") magazine.forceMove(get_turf(src.loc)) magazine.update_icon() magazine = null else - user << "You insert the magazine into \the [src]." + to_chat(user, "You insert the magazine into \the [src].") user.remove_from_mob(AM) magazine = AM magazine.forceMove(src) @@ -59,11 +59,11 @@ if(!select) burst_size = 1 fire_delay = 0 - user << "You switch to semi-automatic." + to_chat(user, "You switch to semi-automatic.") else burst_size = initial(burst_size) fire_delay = initial(fire_delay) - user << "You switch to [burst_size] round burst." + to_chat(user, "You switch to [burst_size] round burst.") playsound(user, 'sound/weapons/empty.ogg', 100, 1) update_icon() @@ -144,7 +144,7 @@ /obj/item/weapon/gun/projectile/automatic/l6_saw/attack_self(mob/user as mob) cover_open = !cover_open - user << "You [cover_open ? "open" : "close"] [src]'s cover." + to_chat(user, "You [cover_open ? "open" : "close"] [src]'s cover.") update_icon() /obj/item/weapon/gun/projectile/automatic/l6_saw/update_icon() @@ -154,7 +154,7 @@ /obj/item/weapon/gun/projectile/automatic/l6_saw/afterattack(atom/target as mob|obj|turf, mob/living/user as mob|obj, flag, params) //what I tried to do here is just add a check to see if the cover is open or not and add an icon_state change because I can't figure out how c-20rs do it with overlays if(cover_open) - user << "[src]'s cover is open! Close it before firing!" + to_chat(user, "[src]'s cover is open! Close it before firing!") else ..() update_icon() @@ -172,12 +172,12 @@ user.put_in_hands(magazine) magazine = null update_icon() - user << "You remove the magazine from [src]." + to_chat(user, "You remove the magazine from [src].") /obj/item/weapon/gun/projectile/automatic/l6_saw/attackby(var/obj/item/A as obj, mob/user as mob, params) if(!cover_open && istype(A, mag_type)) - user << "[src]'s cover is closed! You can't insert a new mag!" + to_chat(user, "[src]'s cover is closed! You can't insert a new mag!") return ..() @@ -246,15 +246,15 @@ select = 1 burst_size = initial(burst_size) fire_delay = initial(fire_delay) - user << "You switch to [burst_size] round burst." + to_chat(user, "You switch to [burst_size] round burst.") if(1) select = 2 - user << "You switch to grenades." + to_chat(user, "You switch to grenades.") if(2) select = 0 burst_size = 1 fire_delay = 0 - user << "You switch to semi-auto." + to_chat(user, "You switch to semi-auto.") playsound(user, 'sound/weapons/empty.ogg', 100, 1) update_icon() return diff --git a/code/modules/projectiles/guns/projectile/crossbow.dm b/code/modules/projectiles/guns/projectile/crossbow.dm index bc87fcb999a..3645899ab21 100644 --- a/code/modules/projectiles/guns/projectile/crossbow.dm +++ b/code/modules/projectiles/guns/projectile/crossbow.dm @@ -42,7 +42,7 @@ /obj/item/weapon/arrow/rod/removed(mob/user) if(throwforce == 15) // The rod has been superheated - we don't want it to be useable when removed from the bow. - user << "[src] shatters into a scattering of overstressed metal shards as it leaves the crossbow." + to_chat(user, "[src] shatters into a scattering of overstressed metal shards as it leaves the crossbow.") var/obj/item/weapon/shard/shrapnel/S = new() S.loc = get_turf(src) qdel(src) @@ -80,7 +80,7 @@ /obj/item/weapon/gun/launcher/crossbow/special_check(user) if(tension <= 0) - user << "\red \The [src] is not drawn back!" + to_chat(user, "\red \The [src] is not drawn back!") return 0 return 1 @@ -111,7 +111,7 @@ /obj/item/weapon/gun/launcher/crossbow/proc/draw(var/mob/user as mob) if(!in_chamber) - user << "You don't have anything nocked to [src]." + to_chat(user, "You don't have anything nocked to [src].") return if(user.restrained()) @@ -132,7 +132,7 @@ if(tension>=max_tension) tension = max_tension - usr << "[src] clunks as you draw the string to its maximum tension!" + to_chat(usr, "[src] clunks as you draw the string to its maximum tension!") else user.visible_message("[usr] draws back the string of [src]!","You continue drawing back the string of [src]!") spawn(25) increase_tension(user) @@ -162,19 +162,19 @@ user.drop_item() W.loc = src cell = W - user << "You jam [cell] into [src] and wire it to the firing coil." + to_chat(user, "You jam [cell] into [src] and wire it to the firing coil.") superheat_rod(user) else - user << "[src] already has a cell installed." + to_chat(user, "[src] already has a cell installed.") else if(istype(W, /obj/item/weapon/screwdriver)) if(cell) var/obj/item/C = cell C.loc = get_turf(user) - user << "You jimmy [cell] out of [src] with [W]." + to_chat(user, "You jimmy [cell] out of [src] with [W].") cell = null else - user << "[src] doesn't have a cell installed." + to_chat(user, "[src] doesn't have a cell installed.") else ..() @@ -186,7 +186,7 @@ if(in_chamber.throwforce >= 15) return if(!istype(in_chamber,/obj/item/weapon/arrow/rod)) return - user << "[in_chamber] plinks and crackles as it begins to glow red-hot." + to_chat(user, "[in_chamber] plinks and crackles as it begins to glow red-hot.") in_chamber.throwforce = 15 in_chamber.icon_state = "metal-rod-superheated" cell.use(500) @@ -229,7 +229,7 @@ if(tension>=max_tension) tension = max_tension - usr << "[src] clunks as you draw the string to its maximum tension!" + to_chat(usr, "[src] clunks as you draw the string to its maximum tension!") else user.visible_message("[usr] draws back the string of [src]!","You continue drawing back the string of [src]!") spawn(25) increase_tension(user) @@ -249,11 +249,16 @@ /obj/item/weapon/crossbowframe/examine(mob/user) ..(user) switch(buildstate) - if(1) user << "It has a loose rod frame in place." - if(2) user << "It has a steel backbone welded in place." - if(3) user << "It has a steel backbone and a cell mount installed." - if(4) user << "It has a steel backbone, plastic lath and a cell mount installed." - if(5) user << "It has a steel cable loosely strung across the lath." + if(1) + to_chat(user, "It has a loose rod frame in place.") + if(2) + to_chat(user, "It has a steel backbone welded in place.") + if(3) + to_chat(user, "It has a steel backbone and a cell mount installed.") + if(4) + to_chat(user, "It has a steel backbone, plastic lath and a cell mount installed.") + if(5) + to_chat(user, "It has a steel cable loosely strung across the lath.") /obj/item/weapon/crossbowframe/attackby(obj/item/W as obj, mob/user as mob, params) if(istype(W,/obj/item/stack/rods)) @@ -261,11 +266,11 @@ var/obj/item/stack/rods/R = W if(R.amount >= 3) R.use(3) - user << "\blue You assemble a backbone of rods around the wooden stock." + to_chat(user, "\blue You assemble a backbone of rods around the wooden stock.") buildstate++ update_icon() else - user << "\blue You need at least three rods to complete this task." + to_chat(user, "\blue You need at least three rods to complete this task.") return else if(istype(W,/obj/item/weapon/weldingtool)) if(buildstate == 1) @@ -273,7 +278,7 @@ if(T.remove_fuel(0,user)) if(!src || !T.isOn()) return playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) - user << "\blue You weld the rods into place." + to_chat(user, "\blue You weld the rods into place.") buildstate++ update_icon() return @@ -282,35 +287,35 @@ if(buildstate == 2) if(C.amount >= 5) C.use(5) - user << "\blue You wire a crude cell mount into the top of the crossbow." + to_chat(user, "\blue You wire a crude cell mount into the top of the crossbow.") buildstate++ update_icon() else - user << "\blue You need at least five segments of cable coil to complete this task." + to_chat(user, "\blue You need at least five segments of cable coil to complete this task.") return else if(buildstate == 4) if(C.amount >= 5) C.use(5) - user << "\blue You string a steel cable across the crossbow's lath." + to_chat(user, "\blue You string a steel cable across the crossbow's lath.") buildstate++ update_icon() else - user << "\blue You need at least five segments of cable coil to complete this task." + to_chat(user, "\blue You need at least five segments of cable coil to complete this task.") return else if(istype(W,/obj/item/stack/sheet/mineral/plastic)) if(buildstate == 3) var/obj/item/stack/sheet/mineral/plastic/P = W if(P.amount >= 3) P.use(3) - user << "\blue You assemble and install a heavy plastic lath onto the crossbow." + to_chat(user, "\blue You assemble and install a heavy plastic lath onto the crossbow.") buildstate++ update_icon() else - user << "\blue You need at least three plastic sheets to complete this task." + to_chat(user, "\blue You need at least three plastic sheets to complete this task.") return else if(istype(W,/obj/item/weapon/screwdriver)) if(buildstate == 5) - user << "\blue You secure the crossbow's various parts." + to_chat(user, "\blue You secure the crossbow's various parts.") new /obj/item/weapon/gun/launcher/crossbow(get_turf(src)) qdel(src) return diff --git a/code/modules/projectiles/guns/projectile/grenade launcher.dm b/code/modules/projectiles/guns/projectile/grenade launcher.dm index d4b2c6fc167..28dc0c3a4b9 100644 --- a/code/modules/projectiles/guns/projectile/grenade launcher.dm +++ b/code/modules/projectiles/guns/projectile/grenade launcher.dm @@ -29,7 +29,7 @@ //Override this to avoid a runtime with suicide handling. /obj/item/weapon/gun/launcher/attack(mob/living/M as mob, mob/living/user as mob, def_zone) if (M == user && user.zone_sel.selecting == "mouth") - user << "\red Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it." + to_chat(user, "\red Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it.") return ..() @@ -39,7 +39,7 @@ /obj/item/weapon/gun/launcher/Fire(atom/target as mob|obj|turf|area, mob/living/user as mob|obj, params, reflex = 0) if (!user.IsAdvancedToolUser()) - user << "\red You don't have the dexterity to do this!" + to_chat(user, "\red You don't have the dexterity to do this!") return 0 add_fingerprint(user) @@ -55,7 +55,7 @@ if (!ready_to_fire()) if (world.time % 3) //to prevent spam - user << "[src] is not ready to fire again!" + to_chat(user, "[src] is not ready to fire again!") return 0 if(!chamber_round()) //CHECK diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index 5803a4fa2be..2cb3c849e4b 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -32,7 +32,7 @@ AC.loc = src num_loaded++ if(num_loaded) - user << "You load [num_loaded] shell\s into \the [src]!" + to_chat(user, "You load [num_loaded] shell\s into \the [src]!") A.update_icon() update_icon() chamber_round() @@ -48,9 +48,9 @@ CB.update_icon() num_unloaded++ if (num_unloaded) - user << "You unload [num_unloaded] shell\s from [src]!" + to_chat(user, "You unload [num_unloaded] shell\s from [src]!") else - user << "[src] is empty." + to_chat(user, "[src] is empty.") /obj/item/weapon/gun/projectile/revolver/get_ammo(var/countchambered = 0, var/countempties = 1) var/boolets = 0 //mature var names for mature people @@ -62,7 +62,7 @@ /obj/item/weapon/gun/projectile/revolver/examine(mob/user) ..(user) - user << "[get_ammo(0,0)] of those are live rounds." + to_chat(user, "[get_ammo(0,0)] of those are live rounds.") /obj/item/weapon/gun/projectile/revolver/verb/spin_revolver() set name = "Spin cylinder" @@ -98,7 +98,7 @@ if(!ghettomodded) return 1 if(prob(70 - (magazine.ammo_count() * 10))) //minimum probability of 10, maximum of 60 - M << "[src] blows up in your face!" + to_chat(M, "[src] blows up in your face!") M.take_organ_damage(0,20) M.drop_item() qdel(src) @@ -115,7 +115,7 @@ if(src && input && !M.stat && in_range(M,src)) name = input - M << "You name the gun [input]. Say hello to your new friend." + to_chat(M, "You name the gun [input]. Say hello to your new friend.") return 1 /obj/item/weapon/gun/projectile/revolver/detective/verb/reskin_gun() @@ -134,21 +134,21 @@ if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] - M << "Your gun is now skinned as [choice]. Say hello to your new friend." + to_chat(M, "Your gun is now skinned as [choice]. Say hello to your new friend.") return 1 /obj/item/weapon/gun/projectile/revolver/detective/attackby(var/obj/item/A as obj, mob/user as mob, params) ..() if(istype(A, /obj/item/weapon/screwdriver) || istype(A, /obj/item/weapon/conversion_kit)) if(magazine.caliber == "38") - user << "You begin to reinforce the barrel of [src]." + to_chat(user, "You begin to reinforce the barrel of [src].") if(magazine.ammo_count()) afterattack(user, user) //you know the drill user.visible_message("[src] goes off!", "[src] goes off in your face!") return if(do_after(user, 30, target = src)) if(magazine.ammo_count()) - user << "You can't modify it!" + to_chat(user, "You can't modify it!") return if (istype(A, /obj/item/weapon/conversion_kit)) ghettomodded = 0 @@ -156,21 +156,21 @@ ghettomodded = 1 magazine.caliber = "357" desc = "[initial(desc)] The barrel and chamber assembly seems to have been modified." - user << "You reinforce the barrel of [src]! Now it will fire .357 rounds." + to_chat(user, "You reinforce the barrel of [src]! Now it will fire .357 rounds.") else - user << "You begin to revert the modifications to [src]." + to_chat(user, "You begin to revert the modifications to [src].") if(magazine.ammo_count()) afterattack(user, user) //and again user.visible_message("[src] goes off!", "[src] goes off in your face!") return if(do_after(user, 30, target = src)) if(magazine.ammo_count()) - user << "You can't modify it!" + to_chat(user, "You can't modify it!") return ghettomodded = 0 magazine.caliber = "38" desc = initial(desc) - user << "You remove the modifications on [src]! Now it will fire .38 rounds." + to_chat(user, "You remove the modifications on [src]! Now it will fire .38 rounds.") diff --git a/code/modules/projectiles/guns/projectile/rocket.dm b/code/modules/projectiles/guns/projectile/rocket.dm index ecb1c5a03cd..e667d9323ce 100644 --- a/code/modules/projectiles/guns/projectile/rocket.dm +++ b/code/modules/projectiles/guns/projectile/rocket.dm @@ -18,7 +18,7 @@ /obj/item/weapon/gun/rocketlauncher/examine(mob/user) if(..(user, 2)) - user << "\blue [rockets.len] / [max_rockets] rockets." + to_chat(user, "\blue [rockets.len] / [max_rockets] rockets.") /obj/item/weapon/gun/rocketlauncher/attackby(obj/item/I as obj, mob/user as mob, params) if(istype(I, /obj/item/ammo_casing/rocket)) @@ -26,10 +26,10 @@ user.drop_item() I.loc = src rockets += I - user << "\blue You put the rocket in [src]." - user << "\blue [rockets.len] / [max_rockets] rockets." + to_chat(user, "\blue You put the rocket in [src].") + to_chat(user, "\blue [rockets.len] / [max_rockets] rockets.") else - usr << "\red [src] cannot hold more rockets." + to_chat(usr, "\red [src] cannot hold more rockets.") /obj/item/weapon/gun/rocketlauncher/can_fire() return rockets.len @@ -47,4 +47,4 @@ qdel(I) return else - usr << "\red [src] is empty." \ No newline at end of file + to_chat(usr, "\red [src] is empty.") diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 8e057695b3a..90402f0e57c 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -29,7 +29,7 @@ AC.loc = src num_loaded++ if(num_loaded) - user << "You load [num_loaded] shell\s into \the [src]!" + to_chat(user, "You load [num_loaded] shell\s into \the [src]!") A.update_icon() update_icon() @@ -72,7 +72,7 @@ /obj/item/weapon/gun/projectile/shotgun/examine(mob/user) ..(user) if (chambered) - user << "A [chambered.BB ? "live" : "spent"] one is in the chamber." + to_chat(user, "A [chambered.BB ? "live" : "spent"] one is in the chamber.") /obj/item/weapon/gun/projectile/shotgun/isHandgun() //You cannot, in fact, holster a shotgun. return 0 @@ -117,13 +117,13 @@ /obj/item/weapon/gun/projectile/shotgun/boltaction/attackby(var/obj/item/A as obj, mob/user as mob) if(!bolt_open) - user << "The bolt is closed!" + to_chat(user, "The bolt is closed!") return . = ..() /obj/item/weapon/gun/projectile/shotgun/boltaction/examine(mob/user) ..(user) - user << "The bolt is [bolt_open ? "open" : "closed"]." + to_chat(user, "The bolt is [bolt_open ? "open" : "closed"].") /obj/item/weapon/gun/projectile/shotgun/boltaction/enchanted name = "enchanted bolt action rifle" @@ -191,9 +191,9 @@ CB.update_icon() num_unloaded++ if (num_unloaded) - user << "You break open \the [src] and unload [num_unloaded] shell\s." + to_chat(user, "You break open \the [src] and unload [num_unloaded] shell\s.") else - user << "[src] is empty." + to_chat(user, "[src] is empty.") /obj/item/weapon/gun/projectile/revolver/doublebarrel/isHandgun() //contrary to popular opinion, double barrels are not, shockingly, handguns return 0 @@ -219,10 +219,10 @@ if(C.use(10)) slot_flags = SLOT_BACK icon_state = "ishotgunsling" - user << "You tie the lengths of cable to the shotgun, making a sling." + to_chat(user, "You tie the lengths of cable to the shotgun, making a sling.") update_icon() else - user << "You need at least ten lengths of cable if you want to make a sling." + to_chat(user, "You need at least ten lengths of cable if you want to make a sling.") return // Sawing guns related procs // @@ -236,7 +236,7 @@ /obj/item/weapon/gun/projectile/proc/sawoff(mob/user as mob) if(sawn_state == SAWN_OFF) - user << "\The [src] is already shortened." + to_chat(user, "\The [src] is already shortened.") return if(sawn_state == SAWN_SAWING) diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm index 672f683e3b2..0e43d550c85 100644 --- a/code/modules/projectiles/guns/syringe_gun.dm +++ b/code/modules/projectiles/guns/syringe_gun.dm @@ -30,11 +30,11 @@ /obj/item/weapon/gun/syringe/examine(mob/user) ..(user) - user << "Can hold [max_syringes] syringe\s. Has [syringes.len] syringe\s remaining." + to_chat(user, "Can hold [max_syringes] syringe\s. Has [syringes.len] syringe\s remaining.") /obj/item/weapon/gun/syringe/attack_self(mob/living/user as mob) if(!syringes.len) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return 0 var/obj/item/weapon/reagent_containers/syringe/S = syringes[syringes.len] @@ -43,7 +43,7 @@ S.forceMove(user.loc) syringes.Remove(S) - user << "You unload [S] from \the [src]!" + to_chat(user, "You unload [S] from \the [src]!") return 1 @@ -51,12 +51,12 @@ if(istype(A, /obj/item/weapon/reagent_containers/syringe)) if(syringes.len < max_syringes) user.drop_item() - user << "You load [A] into \the [src]!" + to_chat(user, "You load [A] into \the [src]!") syringes.Add(A) A.forceMove(src) return 1 else - usr << "[src] cannot hold more syringes." + to_chat(usr, "[src] cannot hold more syringes.") return 0 /obj/item/weapon/gun/syringe/rapidsyringe diff --git a/code/modules/projectiles/medbeam.dm b/code/modules/projectiles/medbeam.dm index ba93e9703ba..04f8f4b6862 100644 --- a/code/modules/projectiles/medbeam.dm +++ b/code/modules/projectiles/medbeam.dm @@ -67,7 +67,7 @@ if(get_dist(H,current_target)>max_range || !los_check(H,current_target)) LoseTarget() - H << "You lose control of the beam!" + to_chat(H, "You lose control of the beam!") return if(current_target) diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index 0ce3b3c63ba..5a028a1084a 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -140,7 +140,7 @@ return if(silenced) playsound(loc, hitsound, 5, 1, -1) - M << "\red You've been shot in the [parse_zone(def_zone)] by the [src.name]!" + to_chat(M, "\red You've been shot in the [parse_zone(def_zone)] by the [src.name]!") else playsound(loc, hitsound, 20, 1, -1) visible_message("\red [A.name] is hit by the [src.name] in the [parse_zone(def_zone)]!")//X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter @@ -209,7 +209,7 @@ if(!Angle) Angle=round(Get_Angle(src,current)) - //world << "[Angle] angle" +// to_chat(world, "[Angle] angle") //overlays.Cut() //var/icon/I=new(initial(icon),icon_state) //using initial(icon) makes sure that the angle for that is reset as well //I.Turn(Angle) @@ -229,23 +229,23 @@ var/new_y = y //Not sure if using whiles for this is good while(pixel_x_offset > 16) - //world << "Pre-adjust coords (x++): xy [pixel_x] xy offset [pixel_x_offset]" +// to_chat(world, "Pre-adjust coords (x++): xy [pixel_x] xy offset [pixel_x_offset]") pixel_x_offset -= 32 pixel_x -= 32 new_x++// x++ while(pixel_x_offset < -16) - //world << "Pre-adjust coords (x--): xy [pixel_x] xy offset [pixel_x_offset]" +// to_chat(world, "Pre-adjust coords (x--): xy [pixel_x] xy offset [pixel_x_offset]") pixel_x_offset += 32 pixel_x += 32 new_x-- while(pixel_y_offset > 16) - //world << "Pre-adjust coords (y++): py [pixel_y] py offset [pixel_y_offset]" +// to_chat(world, "Pre-adjust coords (y++): py [pixel_y] py offset [pixel_y_offset]") pixel_y_offset -= 32 pixel_y -= 32 new_y++ while(pixel_y_offset < -16) - //world << "Pre-adjust coords (y--): py [pixel_y] py offset [pixel_y_offset]" +// to_chat(world, "Pre-adjust coords (y--): py [pixel_y] py offset [pixel_y_offset]") pixel_y_offset += 32 pixel_y += 32 new_y-- diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm index 319633e6277..e86d8e7a739 100644 --- a/code/modules/projectiles/projectile/beams.dm +++ b/code/modules/projectiles/projectile/beams.dm @@ -239,16 +239,16 @@ f.break_tile() f.hotspot_expose(1000,CELL_VOLUME) if((x == 1 || x == world.maxx || y == 1 || y == world.maxy)) - //world << "deleting" +// to_chat(world, "deleting") //qdel(src) //Delete if it passes the world edge broken = 1 return if(kill_count < 1) - //world << "deleting" +// to_chat(world, "deleting") //qdel(src) broken = 1 kill_count-- - //world << "[x] [y]" +// to_chat(world, "[x] [y]") if(!bumped && !isturf(original)) if(loc == get_turf(original)) if(!(original in permutated)) @@ -263,7 +263,7 @@ Bump(original) first = 0 if(broken) - //world << "breaking" +// to_chat(world, "breaking") break else last = get_turf(src.loc) @@ -274,7 +274,7 @@ qdel(src) return /*cleanup(reference) //Waits .3 seconds then removes the overlay. - //world << "setting invisibility" +// to_chat(world, "setting invisibility") sleep(50) src.invisibility = 101 return*/ diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index 5b740a0699b..7d8c9abbe8f 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -67,9 +67,9 @@ ghost.reenter_corpse() break if(old_stat != DEAD) - target << "You feel great!" + to_chat(target, "You feel great!") else - target << "You rise with a start, you're alive!!!" + to_chat(target, "You rise with a start, you're alive!!!") /obj/item/projectile/magic/teleport name = "bolt of teleportation" @@ -238,7 +238,7 @@ proc/wabbajack(mob/living/M) else new_mob.key = M.key - new_mob << "Your form morphs into that of a [randomize]." + to_chat(new_mob, "Your form morphs into that of a [randomize].") qdel(M) return new_mob @@ -262,8 +262,8 @@ proc/wabbajack(mob/living/M) S.icon = change.icon if(H.mind) H.mind.transfer_to(S) - S << "You are an animated statue. You cannot move when monitored, but are nearly invincible and deadly when unobserved!" - S << "Do not harm [firer.name], your creator." + to_chat(S, "You are an animated statue. You cannot move when monitored, but are nearly invincible and deadly when unobserved!") + to_chat(S, "Do not harm [firer.name], your creator.") H = change H.loc = S qdel(src) diff --git a/code/modules/projectiles/targeting.dm b/code/modules/projectiles/targeting.dm index 3ef440f6f2e..8eb0d7b6b45 100644 --- a/code/modules/projectiles/targeting.dm +++ b/code/modules/projectiles/targeting.dm @@ -3,9 +3,9 @@ set category = "Object" firerate = !firerate if (firerate == 0) - loc << "You will now continue firing when your target moves." + to_chat(loc, "You will now continue firing when your target moves.") else - loc << "You will now only fire once, then lower your aim, when your target moves." + to_chat(loc, "You will now only fire once, then lower your aim, when your target moves.") /obj/item/weapon/gun/verb/lower_aim() set name = "Lower Aim" @@ -84,7 +84,7 @@ if(firing_check == 1) Fire(T,usr, reflex = 1) else if(!told_cant_shoot) - M << "\red They can't be hit from here!" + to_chat(M, "\red They can't be hit from here!") told_cant_shoot = 1 spawn(30) told_cant_shoot = 0 @@ -101,7 +101,7 @@ #define SIGN(X) ((X<0)?-1:1) proc/GunTrace(X1,Y1,X2,Y2,Z=1,exc_obj,PX1=16,PY1=16,PX2=16,PY2=16) - //bluh << "Tracin' [X1],[Y1] to [X2],[Y2] on floor [Z]." +// to_chat(bluh, "Tracin' [X1],[Y1] to [X2],[Y2] on floor [Z].") var/turf/T var/mob/living/M if(X1==X2) @@ -152,7 +152,7 @@ mob/living/proc/Targeted(var/obj/item/weapon/gun/I) //Self explanitory. I.target += src else if(I.target.len >= 5) if(ismob(I.loc)) - I.loc << "You can only target 5 people at once!" + to_chat(I.loc, "You can only target 5 people at once!") return else return @@ -162,10 +162,10 @@ mob/living/proc/Targeted(var/obj/item/weapon/gun/I) //Self explanitory. if(!targeted_by) targeted_by = list() targeted_by += I I.lock_time = world.time + 20 //Target has 2 second to realize they're targeted and stop (or target the opponent). - src << "((\red Your character is being targeted. They have 2 seconds to stop any click or move actions. \black While targeted, they may \ - drag and drop items in or into the map, speak, and click on interface buttons. Clicking on the map objects (floors and walls are fine), their items \ - (other than a weapon to de-target), or moving will result in being fired upon. \red The aggressor may also fire manually, \ - so try not to get on their bad side.\black ))" + to_chat(src, "((Your character is being targeted. They have 2 seconds to stop any click or move actions. \ + While targeted, they may drag and drop items in or into the map, speak, and click on interface buttons. \ + Clicking on the map objects (floors and walls are fine), their items (other than a weapon to de-target), or moving will result in being fired upon. \ + The aggressor may also fire manually, so try not to get on their bad side.))") if(targeted_by.len == 1) spawn(0) @@ -186,7 +186,8 @@ mob/living/proc/Targeted(var/obj/item/weapon/gun/I) //Self explanitory. I.lower_aim() return /*if(m_intent == "run" && T.client.target_can_move == 1 && T.client.target_can_run == 0 && (ishuman(T))) - src << "\red Your move intent is now set to walk, as your targeter permits it." //Self explanitory. + to_chat(src, "\red Your move intent is now set to walk, as your targeter permits it.")//Self explanitory. + set_m_intent("walk")*/ //Processing the aiming. Should be probably in separate object with process() but lasy. @@ -266,9 +267,9 @@ client/verb/ToggleGunMode() set hidden = 1 gun_mode = !gun_mode if(gun_mode) - usr << "You will now take people captive." + to_chat(usr, "You will now take people captive.") else - usr << "You will now shoot where you target." + to_chat(usr, "You will now shoot where you target.") for(var/obj/item/weapon/gun/G in usr) G.stop_aim() remove_gun_icons() @@ -282,11 +283,11 @@ client/verb/ToggleGunMode() //Changing client's permissions target_can_move = !target_can_move if(target_can_move) - usr << "Target may now walk." + to_chat(usr, "Target may now walk.") //usr.gun_run_icon = new /obj/screen/gun/run(null) //adding icon for running permission screen += usr.gun_run_icon else - usr << "Target may no longer move." + to_chat(usr, "Target may no longer move.") target_can_run = 0 qdel(usr.gun_run_icon) //no need for icon for running permission @@ -301,12 +302,12 @@ client/verb/ToggleGunMode() if(G.target) for(var/mob/living/M in G.target) if(target_can_move) - M << "Your character may now walk at the discretion of their targeter." + to_chat(M, "Your character may now walk at the discretion of their targeter.") if(!target_can_run && (ishuman(M))) - M << "\red Your move intent is now set to walk, as your targeter permits it." + to_chat(M, "\red Your move intent is now set to walk, as your targeter permits it.") M.set_m_intent("walk") else - M << "\red Your character will now be shot if they move." + to_chat(M, "\red Your character will now be shot if they move.") mob/living/proc/set_m_intent(var/intent) if (intent != "walk" && intent != "run") @@ -322,9 +323,9 @@ client/verb/AllowTargetRun() //Changing client's permissions target_can_run = !target_can_run if(target_can_run) - usr << "Target may now run." + to_chat(usr, "Target may now run.") else - usr << "Target may no longer run." + to_chat(usr, "Target may no longer run.") //Updating running permission button if(usr.gun_run_icon) @@ -337,9 +338,9 @@ client/verb/AllowTargetRun() if(G.target) for(var/mob/living/M in G.target) if(target_can_run) - M << "Your character may now run at the discretion of their targeter." + to_chat(M, "Your character may now run at the discretion of their targeter.") else - M << "\red Your character will now be shot if they run."*/ + to_chat(M, "\red Your character will now be shot if they run.")*/ client/verb/AllowTargetClick() set hidden=1 @@ -347,9 +348,9 @@ client/verb/AllowTargetClick() //Changing client's permissions target_can_click = !target_can_click if(target_can_click) - usr << "Target may now use items." + to_chat(usr, "Target may now use items.") else - usr << "Target may no longer use items." + to_chat(usr, "Target may no longer use items.") if(usr.item_use_icon) usr.item_use_icon.icon_state = "no_item[target_can_click]" @@ -361,6 +362,6 @@ client/verb/AllowTargetClick() if(G.target) for(var/mob/living/M in G.target) if(target_can_click) - M << "Your character may now use items at the discretion of their targeter." + to_chat(M, "Your character may now use items at the discretion of their targeter.") else - M << "\red Your character will now be shot if they use items." + to_chat(M, "\red Your character will now be shot if they use items.") diff --git a/code/modules/reagents/Chemistry-Holder.dm b/code/modules/reagents/Chemistry-Holder.dm index b1fb226a209..1b2e9a0b3d4 100644 --- a/code/modules/reagents/Chemistry-Holder.dm +++ b/code/modules/reagents/Chemistry-Holder.dm @@ -302,14 +302,14 @@ var/const/INGEST = 2 var/list/seen = viewers(4, get_turf(my_atom)) for(var/mob/M in seen) if(!C.no_message) - M << "\blue \icon[my_atom] [C.mix_message]" + to_chat(M, "\blue \icon[my_atom] [C.mix_message]") if(istype(my_atom, /obj/item/slime_extract)) var/obj/item/slime_extract/ME2 = my_atom ME2.Uses-- if(ME2.Uses <= 0) // give the notification that the slime core is dead for(var/mob/M in seen) - M << "\blue \icon[my_atom] The [my_atom]'s power is consumed in the reaction." + to_chat(M, "\blue \icon[my_atom] The [my_atom]'s power is consumed in the reaction.") ME2.name = "used slime extract" ME2.desc = "This extract has been used up." @@ -552,13 +552,13 @@ var/const/INGEST = 2 /datum/reagents/proc/get_data(var/reagent_id) for(var/datum/reagent/D in reagent_list) if(D.id == reagent_id) - //world << "proffering a data-carrying reagent ([reagent_id])" +// to_chat(world, "proffering a data-carrying reagent ([reagent_id])") return D.data /datum/reagents/proc/set_data(var/reagent_id, var/new_data) for(var/datum/reagent/D in reagent_list) if(D.id == reagent_id) - //world << "reagent data set ([reagent_id])" +// to_chat(world, "reagent data set ([reagent_id])") D.data = new_data /datum/reagents/proc/copy_data(var/datum/reagent/current_reagent) diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index 94491e74e64..59efbc9970b 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -110,7 +110,7 @@ /obj/machinery/chem_dispenser/ui_interact(mob/user, ui_key = "main",var/datum/nanoui/ui = null, var/force_open = 1) if(broken_requirements.len) - user << "[src] is broken. [broken_requirements[broken_requirements[1]]]" + to_chat(user, "[src] is broken. [broken_requirements[broken_requirements[1]]]") return @@ -207,24 +207,24 @@ S.use(1) else if(!user.drop_item()) - user << "\The [B] is stuck to you!" + to_chat(user, "\The [B] is stuck to you!") return qdel(B) broken_requirements -= broken_requirements[1] - user << "You fix [src]." + to_chat(user, "You fix [src].") return if(src.beaker) - user << "Something is already loaded into the machine." + to_chat(user, "Something is already loaded into the machine.") return if(istype(B, /obj/item/weapon/reagent_containers/glass) || istype(B, /obj/item/weapon/reagent_containers/food/drinks)) src.beaker = B if(!user.drop_item()) - user << "\The [B] is stuck to you!" + to_chat(user, "\The [B] is stuck to you!") return B.forceMove(src) - user << "You set [B] on the machine." + to_chat(user, "You set [B] on the machine.") nanomanager.update_uis(src) // update all UIs attached to src if(!icon_beaker) icon_beaker = image('icons/obj/chemical.dmi', src, "disp_beaker") //randomize beaker overlay position. @@ -236,13 +236,13 @@ ..() if(istype(B, /obj/item/device/multitool)) if(hackedcheck == 0) - user << hack_message + to_chat(user, hack_message) dispensable_reagents += hacked_reagents hackedcheck = 1 return else - user << unhack_message + to_chat(user, unhack_message) dispensable_reagents -= hacked_reagents hackedcheck = 0 return @@ -344,7 +344,7 @@ /obj/machinery/chem_dispenser/constructable/attackby(var/obj/item/I, var/mob/user, params) if(istype(I, /obj/item/weapon/reagent_containers/glass)) if(panel_open) - user << "Close the maintenance panel first." + to_chat(user, "Close the maintenance panel first.") return ..() else @@ -360,10 +360,10 @@ playsound(src, 'sound/items/Ratchet.ogg', 50, 1) if(anchored) anchored = 0 - user << "\The [src] can now be moved." + to_chat(user, "\The [src] can now be moved.") else if(!anchored) anchored = 1 - user << "\The [src] is now secured." + to_chat(user, "\The [src] is now secured.") if(panel_open) if(istype(I, /obj/item/weapon/crowbar)) @@ -429,29 +429,29 @@ if(istype(B, /obj/item/weapon/reagent_containers/glass) || istype(B, /obj/item/weapon/reagent_containers/food/drinks/drinkingglass)) if(src.beaker) - user << "A beaker is already loaded into the machine." + to_chat(user, "A beaker is already loaded into the machine.") return if(!user.drop_item()) - user << "\The [B] is stuck to you!" + to_chat(user, "\The [B] is stuck to you!") return src.beaker = B B.forceMove(src) - user << "You add the beaker to the machine!" + to_chat(user, "You add the beaker to the machine!") src.updateUsrDialog() icon_state = "mixer1" else if(istype(B, /obj/item/weapon/storage/pill_bottle)) if(src.loaded_pill_bottle) - user << "A pill bottle is already loaded into the machine." + to_chat(user, "A pill bottle is already loaded into the machine.") return if(!user.drop_item()) - user << "\The [B] is stuck to you!" + to_chat(user, "\The [B] is stuck to you!") return src.loaded_pill_bottle = B B.forceMove(src) - user << "You add the pill bottle into the dispenser slot!" + to_chat(user, "You add the pill bottle into the dispenser slot!") src.updateUsrDialog() return @@ -793,7 +793,7 @@ default_deconstruction_crowbar(B) return 1 else - user << "You can't use the [src.name] while it's panel is opened!" + to_chat(user, "You can't use the [src.name] while it's panel is opened!") return 1 else ..() @@ -883,7 +883,7 @@ return 1 else if(!user.drop_item()) - user << "\The [O] is stuck to you!" + to_chat(user, "\The [O] is stuck to you!") return src.beaker = O O.forceMove(src) @@ -892,7 +892,7 @@ return 0 if(holdingitems && holdingitems.len >= limit) - usr << "The machine cannot hold anymore items." + to_chat(usr, "The machine cannot hold anymore items.") return 1 //Fill machine with the plantbag! @@ -903,18 +903,18 @@ G.forceMove(src) holdingitems += G if(holdingitems && holdingitems.len >= limit) //Sanity checking so the blender doesn't overfill - user << "You fill the All-In-One grinder to the brim.") break if(!O.contents.len) - user << "You empty the plant bag into the All-In-One grinder." + to_chat(user, "You empty the plant bag into the All-In-One grinder.") src.updateUsrDialog() return 0 if (!is_type_in_list(O, blend_items) && !is_type_in_list(O, juice_items)) - user << "Cannot refine into a reagent." + to_chat(user, "Cannot refine into a reagent.") return 1 user.unEquip(O) diff --git a/code/modules/reagents/Chemistry-Readme.dm b/code/modules/reagents/Chemistry-Readme.dm index 61e2a0c82a0..fee6e61e2b9 100644 --- a/code/modules/reagents/Chemistry-Readme.dm +++ b/code/modules/reagents/Chemistry-Readme.dm @@ -227,9 +227,9 @@ About the Tools: By default, all atom have a reagents var - but its empty. if you want to use an object for the chem. system you'll need to add something like this in its new proc: - var/datum/reagents/R = new/datum/reagents(100) <<<<< create a new datum , 100 is the maximum_volume of the new holder datum. - reagents = R <<<<< assign the new datum to the objects reagents var - R.my_atom = src <<<<< set the holders my_atom to src so that we know where we are. + var/datum/reagents/R = new/datum/reagents(100), <<< create a new datum, 100 is the maximum_volume of the new holder datum. + reagents = R, <<< assign the new datum to the objects reagents var + R.my_atom = src, <<< set the holders my_atom to src so that we know where we are. This can also be done by calling a convenience proc: atom/proc/create_reagents(var/max_volume) diff --git a/code/modules/reagents/dartgun.dm b/code/modules/reagents/dartgun.dm index 52b297d88eb..4fb705dbcf9 100644 --- a/code/modules/reagents/dartgun.dm +++ b/code/modules/reagents/dartgun.dm @@ -60,11 +60,11 @@ /obj/item/weapon/gun/dartgun/examine(mob/user) if(..(user, 2)) if(beakers.len) - user << "[src] contains:") for(var/obj/item/weapon/reagent_containers/glass/beaker/B in beakers) if(B.reagents && B.reagents.reagent_list.len) for(var/datum/reagent/R in B.reagents.reagent_list) - user << "[R.volume] units of [R.name]") /obj/item/weapon/gun/dartgun/attackby(obj/item/I as obj, mob/user as mob, params) if(istype(I, /obj/item/weapon/dart_cartridge)) @@ -72,36 +72,36 @@ var/obj/item/weapon/dart_cartridge/D = I if(!D.darts) - user << "[D] is empty." + to_chat(user, "[D] is empty.") return 0 if(cartridge) if(cartridge.darts <= 0) src.remove_cartridge() else - user << "There's already a cartridge in [src]." + to_chat(user, "There's already a cartridge in [src].") return 0 user.drop_item() cartridge = D D.forceMove(src) - user << "You slot [D] into [src]." + to_chat(user, "You slot [D] into [src].") update_icon() return if(istype(I, /obj/item/weapon/reagent_containers/glass)) if(!istype(I, container_type)) - user << "[I] doesn't seem to fit into [src]." + to_chat(user, "[I] doesn't seem to fit into [src].") return if(beakers.len >= max_beakers) - user << "[src] already has [max_beakers] beakers in it - another one isn't going to fit!" + to_chat(user, "[src] already has [max_beakers] beakers in it - another one isn't going to fit!") return var/obj/item/weapon/reagent_containers/glass/beaker/B = I if(!user.drop_item()) - user << "\The [B] is stuck to you!" + to_chat(user, "\The [B] is stuck to you!") return B.forceMove(src) beakers += B - user << "You slot [B] into [src].") src.updateUsrDialog() /obj/item/weapon/gun/dartgun/can_fire() @@ -115,7 +115,7 @@ /obj/item/weapon/gun/dartgun/proc/remove_cartridge() if(cartridge) - usr << "You pop the cartridge out of [src]." + to_chat(usr, "You pop the cartridge out of [src].") var/obj/item/weapon/dart_cartridge/C = cartridge C.forceMove(get_turf(src)) C.update_icon() @@ -145,10 +145,10 @@ var/obj/effect/syringe_gun_dummy/D = new/obj/effect/syringe_gun_dummy(get_turf(src)) var/obj/item/weapon/reagent_containers/syringe/S = get_mixed_syringe() if(!S) - user << "There are no darts in [src]!" + to_chat(user, "There are no darts in [src]!") return if(!S.reagents) - user << "There are no reagents available!" + to_chat(user, "There are no reagents available!") return cartridge.darts-- src.update_icon() @@ -190,7 +190,7 @@ if(D.reagents) D.reagents.trans_to(M, 15) - M << "You feel a slight prick." + to_chat(M, "You feel a slight prick.") qdel(D) break @@ -271,7 +271,7 @@ if(index <= beakers.len) if(beakers[index]) var/obj/item/weapon/reagent_containers/glass/beaker/B = beakers[index] - usr << "You remove [B] from [src]." + to_chat(usr, "You remove [B] from [src].") mixing -= B beakers -= B B.forceMove(get_turf(src)) @@ -284,7 +284,7 @@ if(cartridge) spawn(0) fire_dart(target,user) else - usr << "[src] is empty." + to_chat(usr, "[src] is empty.") /obj/item/weapon/gun/dartgun/vox diff --git a/code/modules/reagents/grenade_launcher.dm b/code/modules/reagents/grenade_launcher.dm index 16c41141815..9b9484ba60e 100644 --- a/code/modules/reagents/grenade_launcher.dm +++ b/code/modules/reagents/grenade_launcher.dm @@ -19,7 +19,7 @@ /obj/item/weapon/gun/grenadelauncher/examine(mob/user) if(..(user, 2)) - user << "\blue [grenades.len] / [max_grenades] [ammo_name]s." + to_chat(user, "\blue [grenades.len] / [max_grenades] [ammo_name]s.") /obj/item/weapon/gun/grenadelauncher/attackby(obj/item/I as obj, mob/user as mob, params) @@ -28,10 +28,10 @@ user.drop_item() I.loc = src grenades += I - user << "\blue You put the [ammo_name] in the [name]." - user << "\blue [grenades.len] / [max_grenades] [ammo_name]s." + to_chat(user, "\blue You put the [ammo_name] in the [name].") + to_chat(user, "\blue [grenades.len] / [max_grenades] [ammo_name]s.") else - usr << "\red The grenade launcher cannot hold more [ammo_name]s." + to_chat(usr, "\red The grenade launcher cannot hold more [ammo_name]s.") /obj/item/weapon/gun/grenadelauncher/afterattack(obj/target, mob/user , flag) @@ -47,12 +47,12 @@ if(grenades.len) spawn(0) fire_grenade(target,user) else - usr << "\red The [name] is empty." + to_chat(usr, "\red The [name] is empty.") /obj/item/weapon/gun/grenadelauncher/proc/fire_grenade(atom/target, mob/user) for(var/mob/O in viewers(world.view, user)) O.show_message(text("\red [] fired a [ammo_name]!", user), 1) - user << "\red You fire the [name]!" + to_chat(user, "\red You fire the [name]!") var/obj/item/weapon/grenade/chem_grenade/F = grenades[1] //Now with less copypasta! grenades -= F F.loc = user.loc @@ -93,16 +93,16 @@ user.drop_item() I.loc = src grenades += I - user << "\blue You put the [ammo_name] in the [name]." - user << "\blue [grenades.len] / [max_grenades] [ammo_name]s." + to_chat(user, "\blue You put the [ammo_name] in the [name].") + to_chat(user, "\blue [grenades.len] / [max_grenades] [ammo_name]s.") icon_state = "piecannon1" else - usr << "\red The grenade launcher cannot hold more [ammo_name]s." + to_chat(usr, "\red The grenade launcher cannot hold more [ammo_name]s.") /obj/item/weapon/gun/grenadelauncher/piecannon/fire_grenade(atom/target, mob/user) for(var/mob/O in viewers(world.view, user)) O.show_message(text("\red [] fired a [ammo_name]!", user), 1) - user << "\red You fire the [name]!" + to_chat(user, "\red You fire the [name]!") var/obj/item/weapon/reagent_containers/food/snacks/pie/P = grenades[1] //Now with less copypasta! grenades -= P P.loc = user.loc diff --git a/code/modules/reagents/newchem/Blob-Reagents.dm b/code/modules/reagents/newchem/Blob-Reagents.dm index 80c36713bbe..f4fcdf9a2b1 100644 --- a/code/modules/reagents/newchem/Blob-Reagents.dm +++ b/code/modules/reagents/newchem/Blob-Reagents.dm @@ -150,4 +150,4 @@ if(message_living && !issilicon(M)) totalmessage += message_living totalmessage += "!" - M << "[totalmessage]" \ No newline at end of file + to_chat(M, "[totalmessage]") diff --git a/code/modules/reagents/newchem/chem_heater.dm b/code/modules/reagents/newchem/chem_heater.dm index e6e4ca61958..b3c6c6a5e8c 100644 --- a/code/modules/reagents/newchem/chem_heater.dm +++ b/code/modules/reagents/newchem/chem_heater.dm @@ -74,13 +74,13 @@ if(istype(I, /obj/item/weapon/reagent_containers/glass)) if(beaker) - user << "A beaker is already loaded into the machine." + to_chat(user, "A beaker is already loaded into the machine.") return if(user.drop_item()) beaker = I I.forceMove(src) - user << "You add the beaker to the machine!" + to_chat(user, "You add the beaker to the machine!") icon_state = "mixer1b" nanomanager.update_uis(src) diff --git a/code/modules/reagents/newchem/disease.dm b/code/modules/reagents/newchem/disease.dm index 132859d530a..18fbc812a28 100644 --- a/code/modules/reagents/newchem/disease.dm +++ b/code/modules/reagents/newchem/disease.dm @@ -64,7 +64,7 @@ if(holder.has_reagent("atrazine",45)) holder.del_reagent("spore") //apparently this never metabolizes and stays in forever unless you have 45 units of atrazine in you or some stupid thing like that. if(prob(1)) - M << "Your mouth tastes funny." + to_chat(M, "Your mouth tastes funny.") if(prob(1) && prob(25)) if(iscarbon(M)) var/mob/living/carbon/C = M diff --git a/code/modules/reagents/newchem/drinks.dm b/code/modules/reagents/newchem/drinks.dm index 5574643de89..323bb24e832 100644 --- a/code/modules/reagents/newchem/drinks.dm +++ b/code/modules/reagents/newchem/drinks.dm @@ -27,7 +27,7 @@ if(prob(50)) M.say("[sonic_message]") else - M << "[sonic_message ]" + to_chat(M, "[sonic_message ]") ..() return @@ -130,7 +130,7 @@ datum/reagent/ethanol/synthanol/reaction_mob(var/mob/M, var/method=TOUCH, var/vo if(M.isSynthetic()) return if(method == INGEST) - M << pick("That was awful!", "Yuck!") + to_chat(M, pick("That was awful!", "Yuck!")) /datum/reagent/ethanol/synthanol/robottears name = "Robot Tears" diff --git a/code/modules/reagents/newchem/drugs.dm b/code/modules/reagents/newchem/drugs.dm index 6ac4984bb9a..6d8a7d4117f 100644 --- a/code/modules/reagents/newchem/drugs.dm +++ b/code/modules/reagents/newchem/drugs.dm @@ -17,7 +17,7 @@ if(!M) M = holder.my_atom var/smoke_message = pick("You feel relaxed.", "You feel calmed.", "You feel less stressed.", "You feel more placid.", "You feel more undivided.") if(prob(5)) - M << "[smoke_message]" + to_chat(M, "[smoke_message]") if(prob(50)) M.AdjustParalysis(-1) M.AdjustStunned(-1) @@ -49,14 +49,14 @@ if(prob(15)) M.emote(pick("twitch", "twitch_s", "grumble", "laugh")) if(prob(8)) - M << "You feel great!" + to_chat(M, "You feel great!") M.reagents.add_reagent("methamphetamine", rand(1,2)) M.emote(pick("laugh", "giggle")) if(prob(6)) - M << "You feel warm." + to_chat(M, "You feel warm.") M.bodytemperature += rand(1,10) if(prob(4)) - M << "You feel kinda awful!" + to_chat(M, "You feel kinda awful!") M.adjustToxLoss(1) M.jitteriness += 30 M.emote(pick("groan", "moan")) @@ -104,18 +104,18 @@ if(prob(15)) M.emote(pick("smile", "grin", "yawn", "laugh", "drool")) if(prob(10)) - M << "You feel pretty chill." + to_chat(M, "You feel pretty chill.") M.bodytemperature-- M.emote("smile") if(prob(5)) - M << "You feel too chill!" + to_chat(M, "You feel too chill!") M.emote(pick("yawn", "drool")) M.Stun(1) M.adjustToxLoss(1) M.adjustBrainLoss(1) M.bodytemperature -= 20 if(prob(2)) - M << "Your skin feels all rough and dry." + to_chat(M, "Your skin feels all rough and dry.") M.adjustBruteLoss(2) ..() return @@ -231,7 +231,7 @@ if(!M) M = holder.my_atom var/high_message = pick("You feel amped up.", "You feel ready.", "You feel like you can push it to the limit.") if(prob(5)) - M << "[high_message]" + to_chat(M, "[high_message]") M.AdjustParalysis(-5) M.AdjustStunned(-5) M.AdjustWeakened(-5) @@ -292,9 +292,9 @@ M.emote(pick("twitch", "shake", "tremble","quiver", "twitch_s")) var/high_message = pick("really buff", "on top of the world","like you're made of steel", "energized", "invigorated", "full of energy") if(prob(8)) - M << "[high_message]!" + to_chat(M, "[high_message]!") if(prob(5)) - M << "You cannot breathe!" + to_chat(M, "You cannot breathe!") M.adjustOxyLoss(15) M.Stun(1) M.losebreath++ @@ -315,7 +315,7 @@ if(prob(5)) M.emote(pick("laugh","giggle","smile")) if(prob(5)) - M << "[pick("You feel hungry.","Your stomach rumbles.","You feel cold.","You feel warm.")]" + to_chat(M, "[pick("You feel hungry.","Your stomach rumbles.","You feel cold.","You feel warm.")]") if(prob(4)) M.confused = max(M.confused, 10) if(volume >= 50 && prob(25)) @@ -389,11 +389,11 @@ M.emote("laugh") M.adjustToxLoss(1) if(2) - M << "[M] can't seem to control their legs!" + to_chat(M, "[M] can't seem to control their legs!") M.Weaken(8) M.adjustToxLoss(1) if(3) - M << "[M]'s hands flip out and flail everywhere!" + to_chat(M, "[M]'s hands flip out and flail everywhere!") M.drop_l_hand() M.drop_r_hand() M.adjustToxLoss(1) @@ -432,7 +432,7 @@ if(prob(1)) high_message = "0100011101001111010101000101010001000001010001110100111101000110010000010101001101010100!" if(prob(5)) - M << "[high_message]" + to_chat(M, "[high_message]") M.AdjustParalysis(-2) M.AdjustStunned(-2) M.AdjustWeakened(-2) @@ -480,7 +480,7 @@ if(prob(1)) high_message = "01010100010100100100000101001110010100110100001101000101010011100100010001000101010011100100001101000101." if(prob(5)) - M << "[high_message]" + to_chat(M, "[high_message]") ..() return @@ -491,7 +491,7 @@ M.Jitter(20) M.apply_effect(STUTTER, 5) if(prob(10)) - M << "You experience a violent electrical discharge!" + to_chat(M, "You experience a violent electrical discharge!") playsound(get_turf(M), 'sound/effects/eleczap.ogg', 75, 1) //Lightning effect for electrical discharge visualization var/icon/I=new('icons/obj/zap.dmi',"lightningend") diff --git a/code/modules/reagents/newchem/food.dm b/code/modules/reagents/newchem/food.dm index 7799659eb97..ed65daca83a 100644 --- a/code/modules/reagents/newchem/food.dm +++ b/code/modules/reagents/newchem/food.dm @@ -11,7 +11,7 @@ datum/reagent/questionmark/reaction_mob(var/mob/M, var/method=TOUCH, var/volume) return if(method == INGEST) M.Weaken(2) - M << "Ugh! Eating that was a terrible idea!" + to_chat(M, "Ugh! Eating that was a terrible idea!") datum/reagent/egg name = "Egg" @@ -201,11 +201,12 @@ datum/reagent/fungus/reaction_mob(var/mob/M, var/method=TOUCH, var/volume) if(method == INGEST) var/ranchance = rand(1,10) if(ranchance == 1) - M << "You feel very sick." + to_chat(M, "You feel very sick.") M.reagents.add_reagent("toxin", rand(1,5)) else if(ranchance <= 5) - M << "That tasted absolutely FOUL." - else M << "Yuck!" + to_chat(M, "That tasted absolutely FOUL.") + else + to_chat(M, "Yuck!") /datum/reagent/chicken_soup name = "Chicken soup" @@ -232,7 +233,7 @@ datum/reagent/msg/reaction_mob(var/mob/M, var/method=TOUCH, var/volume) if(!istype(M, /mob/living)) return if(method == INGEST) - M << "That tasted amazing!" + to_chat(M, "That tasted amazing!") /datum/reagent/msg/on_mob_life(var/mob/living/M as mob) @@ -240,7 +241,7 @@ datum/reagent/msg/reaction_mob(var/mob/M, var/method=TOUCH, var/volume) if(prob(10)) M.adjustToxLoss(rand(2.4)) if(prob(7)) - M << "A horrible migraine overpowers you." + to_chat(M, "A horrible migraine overpowers you.") M.Stun(rand(2,5)) ..() return @@ -287,7 +288,7 @@ datum/reagent/cheese/reaction_turf(var/turf/T, var/volume) /datum/reagent/fake_cheese/overdose_process(var/mob/living/M as mob) if(prob(8)) - M << "You feel something squirming in your stomach. Your thoughts turn to cheese and you begin to sweat." + to_chat(M, "You feel something squirming in your stomach. Your thoughts turn to cheese and you begin to sweat.") M.adjustToxLoss(rand(1,2)) ..() @@ -393,12 +394,12 @@ datum/reagent/ectoplasm/reaction_mob(var/mob/M, var/method=TOUCH, var/volume) return if(method == INGEST) var/spooky_eat = pick("Ugh, why did you eat that? Your mouth feels haunted. Haunted with bad flavors.", "Ugh, why did you eat that? It has the texture of ham aspic. From the 1950s. Left out in the sun.", "Ugh, why did you eat that? It tastes like a ghost fart.", "Ugh, why did you eat that? It tastes like flavor died.") - M << "[spooky_eat]" + to_chat(M, "[spooky_eat]") /datum/reagent/ectoplasm/on_mob_life(var/mob/living/M as mob) var/spooky_message = pick("You notice something moving out of the corner of your eye, but nothing is there...", "Your eyes twitch, you feel like something you can't see is here...", "You've got the heebie-jeebies.", "You feel uneasy.", "You shudder as if cold...", "You feel something gliding across your back...") if(prob(8)) - M << "[spooky_message]" + to_chat(M, "[spooky_message]") ..() return @@ -446,12 +447,12 @@ datum/reagent/ectoplasm/reaction_turf(var/turf/T, var/volume) /datum/reagent/hydrogenated_soybeanoil/overdose_process(var/mob/living/M as mob) if(prob(33)) - M << "You feel horribly weak." + to_chat(M, "You feel horribly weak.") if(prob(10)) - M << "You cannot breathe!" + to_chat(M, "You cannot breathe!") M.adjustOxyLoss(5) if(prob(5)) - M << "You feel a sharp pain in your chest!" + to_chat(M, "You feel a sharp pain in your chest!") M.adjustOxyLoss(25) M.Stun(5) M.Paralyse(10) @@ -529,7 +530,7 @@ datum/reagent/ectoplasm/reaction_turf(var/turf/T, var/volume) if(prob(8)) M.reagents.add_reagent(pick("blood", "corn_syrup", "synthflesh", "hydrogenated_soybeanoil", "porktonium", "toxic_slurry"), 0.8) else if(prob(6)) - M << "[pick("You feel ill.","Your stomach churns.","You feel queasy.","You feel sick.")]" + to_chat(M, "[pick("You feel ill.","Your stomach churns.","You feel queasy.","You feel sick.")]") M.emote(pick("groan","moan")) ..() return @@ -556,20 +557,20 @@ datum/reagent/pepperoni/reaction_mob(var/mob/living/M, var/method=TOUCH, var/vol var/mob/living/carbon/human/H = M if(H.wear_mask) - H << "The pepperoni bounces off your mask!" + to_chat(H, "The pepperoni bounces off your mask!") return if(H.head) - H << "Your mask protects you from the errant pepperoni!" + to_chat(H, "Your mask protects you from the errant pepperoni!") return if(prob(50)) M.adjustBruteLoss(1) playsound(M, 'sound/effects/woodhit.ogg', 50, 1) - M << "A slice of pepperoni slaps you!" + to_chat(M, "A slice of pepperoni slaps you!") else M.emote("burp") - M << "My goodness, that was tasty!" + to_chat(M, "My goodness, that was tasty!") /datum/chemical_reaction/pepperoni @@ -590,14 +591,14 @@ datum/reagent/pepperoni/reaction_mob(var/mob/living/M, var/method=TOUCH, var/vol /datum/reagent/cholesterol/on_mob_life(var/mob/living/M as mob) if(volume >= 25 && prob(volume*0.15)) - M << "Your chest feels [pick("weird","uncomfortable","nasty","gross","odd","unusual","warm")]!" + to_chat(M, "Your chest feels [pick("weird","uncomfortable","nasty","gross","odd","unusual","warm")]!") M.adjustToxLoss(rand(1,2)) else if(volume >= 45 && prob(volume*0.08)) - M << "Your chest [pick("hurts","stings","aches","burns")]!" + to_chat(M, "Your chest [pick("hurts","stings","aches","burns")]!") M.adjustToxLoss(rand(2,4)) M.Stun(1) else if(volume >= 150 && prob(volume*0.01)) - M << "Your chest is burning with pain!" + to_chat(M, "Your chest is burning with pain!") M.Stun(1) M.Weaken(1) if(ishuman(M)) diff --git a/code/modules/reagents/newchem/medicine.dm b/code/modules/reagents/newchem/medicine.dm index 677cc94f7a8..90980c3a421 100644 --- a/code/modules/reagents/newchem/medicine.dm +++ b/code/modules/reagents/newchem/medicine.dm @@ -17,11 +17,11 @@ datum/reagent/silver_sulfadiazine/reaction_mob(var/mob/living/M as mob, var/meth if(method == TOUCH) M.adjustFireLoss(-volume) if(show_message) - M << "The silver sulfadiazine soothes your burns." + to_chat(M, "The silver sulfadiazine soothes your burns.") if(method == INGEST) M.adjustToxLoss(0.5*volume) if(show_message) - M << "You feel sick..." + to_chat(M, "You feel sick...") ..() return @@ -44,12 +44,12 @@ datum/reagent/styptic_powder/reaction_mob(var/mob/living/M as mob, var/method=TO if(method == TOUCH) M.adjustBruteLoss(-volume) if(show_message) - M << "The styptic powder stings like hell as it closes some of your wounds!" + to_chat(M, "The styptic powder stings like hell as it closes some of your wounds!") M.emote("scream") if(method == INGEST) M.adjustToxLoss(0.5*volume) if(show_message) - M << "You feel gross!" + to_chat(M, "You feel gross!") ..() return @@ -89,7 +89,7 @@ datum/reagent/synthflesh/reaction_mob(var/mob/living/M, var/method=TOUCH, var/vo M.adjustBruteLoss(-1.5*volume) M.adjustFireLoss(-1.5*volume) if(show_message) - M << "The synthetic flesh integrates itself into your wounds, healing you." + to_chat(M, "The synthetic flesh integrates itself into your wounds, healing you.") ..() return @@ -631,8 +631,8 @@ datum/reagent/strange_reagent/reaction_mob(var/mob/living/M as mob, var/method=T return var/mob/dead/observer/ghost = M.get_ghost() if(ghost) - ghost << "Your are attempting to be revived with Strange Reagent. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)" - ghost << sound('sound/effects/genetics.ogg') + to_chat(ghost, "Your are attempting to be revived with Strange Reagent. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)") + to_chat(ghost, sound('sound/effects/genetics.ogg')) M.visible_message("[M] doesn't appear to respond, perhaps try again later?") if(!M.suiciding && !ghost && !(NOCLONE in M.mutations)) M.visible_message("[M] seems to rise from the dead!") diff --git a/code/modules/reagents/newchem/newchem_procs.dm b/code/modules/reagents/newchem/newchem_procs.dm index 5f3c416a6ab..97516f916c9 100644 --- a/code/modules/reagents/newchem/newchem_procs.dm +++ b/code/modules/reagents/newchem/newchem_procs.dm @@ -77,7 +77,7 @@ if(5) R.addiction_act_stage5(M) if(prob(20) && (world.timeofday > (R.last_addiction_dose + ADDICTION_TIME))) //Each addiction lasts 8 minutes before it can end - M << "You no longer feel reliant on [R.name]!" + to_chat(M, "You no longer feel reliant on [R.name]!") addiction_list.Remove(R) update_total() @@ -132,7 +132,7 @@ if(prob(8)) M.emote("sneeze") if(prob(4)) - M << "You feel a dull headache." + to_chat(M, "You feel a dull headache.") /datum/reagent/proc/addiction_act_stage3(var/mob/living/M as mob) if(prob(8)) @@ -140,28 +140,28 @@ if(prob(8)) M.emote("shiver") if(prob(4)) - M << "You begin craving [name]!" + to_chat(M, "You begin craving [name]!") /datum/reagent/proc/addiction_act_stage4(var/mob/living/M as mob) if(prob(8)) M.emote("twitch") if(prob(4)) - M << "You have the strong urge for some [name]!" + to_chat(M, "You have the strong urge for some [name]!") if(prob(4)) - M << "You REALLY crave some [name]!" + to_chat(M, "You REALLY crave some [name]!") /datum/reagent/proc/addiction_act_stage5(var/mob/living/M as mob) if(prob(8)) M.emote("twitch") if(prob(6)) - M << "Your stomach lurches painfully!" + to_chat(M, "Your stomach lurches painfully!") M.visible_message("[M] gags and retches!") M.Stun(rand(2,4)) M.Weaken(rand(2,4)) if(prob(5)) - M << "You feel like you can't live without [name]!" + to_chat(M, "You feel like you can't live without [name]!") if(prob(5)) - M << "You would DIE for some [name] right now!" + to_chat(M, "You would DIE for some [name] right now!") /datum/reagent/proc/reagent_deleted() return diff --git a/code/modules/reagents/newchem/other.dm b/code/modules/reagents/newchem/other.dm index 9d138407d96..7cd45d056d3 100644 --- a/code/modules/reagents/newchem/other.dm +++ b/code/modules/reagents/newchem/other.dm @@ -265,7 +265,7 @@ datum/reagent/super_hairgrownium/on_mob_life(var/mob/living/M as mob) H.unEquip(H.wear_mask) var/obj/item/clothing/mask/fakemoustache = new /obj/item/clothing/mask/fakemoustache H.equip_to_slot(fakemoustache, slot_wear_mask) - H << "Hair bursts forth from your every follicle!" + to_chat(H, "Hair bursts forth from your every follicle!") ..() return @@ -292,7 +292,7 @@ datum/reagent/fartonium/on_mob_life(var/mob/living/M as mob) if(holder.has_reagent("simethicone")) if(prob(25)) - M << "[pick("Oh god, something doesn't feel right!", "IT HURTS!", "FUCK!", "Something is seriously wrong!", "THE PAIN!", "You feel like you're gonna die!")]" + to_chat(M, "[pick("Oh god, something doesn't feel right!", "IT HURTS!", "FUCK!", "Something is seriously wrong!", "THE PAIN!", "You feel like you're gonna die!")]") M.adjustBruteLoss(1) if(prob(10)) M.custom_emote(1,"strains, but nothing happens.") diff --git a/code/modules/reagents/newchem/pyro.dm b/code/modules/reagents/newchem/pyro.dm index db1f01da847..31623753852 100644 --- a/code/modules/reagents/newchem/pyro.dm +++ b/code/modules/reagents/newchem/pyro.dm @@ -362,20 +362,20 @@ datum/reagent/blackpowder/reaction_turf(var/turf/T, var/volume) //oh shit var/mob/living/carbon/human/H = C if((H.r_ear && (H.r_ear.flags & EARBANGPROTECT)) || (H.l_ear && (H.l_ear.flags & EARBANGPROTECT)) || (H.head && (H.head.flags & HEADBANGPROTECT))) ear_safety++ - M << "BANG" + to_chat(M, "BANG") if(!ear_safety) M.Stun(max(10/distance, 3)) M.Weaken(max(10/distance, 3)) M.ear_damage += rand(0, 5) M.ear_deaf = max(M.ear_deaf,15) if (M.ear_damage >= 15) - M << "Your ears start to ring badly!" + to_chat(M, "Your ears start to ring badly!") if(prob(M.ear_damage - 10 + 5)) - M << "You can't hear anything!" + to_chat(M, "You can't hear anything!") M.disabilities |= DEAF else if (M.ear_damage >= 5) - M << "Your ears start to ring!" + to_chat(M, "Your ears start to ring!") /datum/chemical_reaction/sonic_powder/on_reaction(var/datum/reagents/holder, var/created_volume) if(holder.has_reagent("stabilizing_agent")) @@ -391,20 +391,20 @@ datum/reagent/blackpowder/reaction_turf(var/turf/T, var/volume) //oh shit var/mob/living/carbon/human/H = C if((H.r_ear && (H.r_ear.flags & EARBANGPROTECT)) || (H.l_ear && (H.l_ear.flags & EARBANGPROTECT)) || (H.head && (H.head.flags & HEADBANGPROTECT))) ear_safety++ - C << "BANG" + to_chat(C, "BANG") if(!ear_safety) M.Stun(max(10/distance, 3)) M.Weaken(max(10/distance, 3)) M.ear_damage += rand(0, 5) M.ear_deaf = max(M.ear_deaf,15) if (M.ear_damage >= 15) - M << "Your ears start to ring badly!" + to_chat(M, "Your ears start to ring badly!") if(prob(M.ear_damage - 10 + 5)) - M << "You can't hear anything!" + to_chat(M, "You can't hear anything!") M.disabilities |= DEAF else if (M.ear_damage >= 5) - M << "Your ears start to ring!" + to_chat(M, "Your ears start to ring!") holder.remove_reagent("sonic_powder", created_volume) /datum/reagent/phlogiston diff --git a/code/modules/reagents/newchem/toxins.dm b/code/modules/reagents/newchem/toxins.dm index c69baf5b76b..b602e282b1f 100644 --- a/code/modules/reagents/newchem/toxins.dm +++ b/code/modules/reagents/newchem/toxins.dm @@ -34,7 +34,7 @@ if(method == TOUCH) M.reagents.add_reagent("histamine",10) else - M << "You feel a burning sensation in your throat..." + to_chat(M, "You feel a burning sensation in your throat...") M.emote("drool") /datum/reagent/histamine/on_mob_life(var/mob/living/M as mob) @@ -42,7 +42,7 @@ if(prob(20)) M.emote(pick("twitch", "grumble", "sneeze", "cough")) if(prob(10)) - M << "Your eyes itch." + to_chat(M, "Your eyes itch.") M.emote(pick("blink", "sneeze")) M.eye_blurry += 3 if(prob(10)) @@ -50,14 +50,14 @@ M.adjustBruteLoss(1) M.emote("grumble") if(prob(5)) - M << "You're getting a rash!" + to_chat(M, "You're getting a rash!") M.adjustBruteLoss(2) ..() return /datum/reagent/histamine/overdose_process(var/mob/living/M as mob) if(prob(2)) - M << "You feel mucus running down the back of your throat." + to_chat(M, "You feel mucus running down the back of your throat.") M.adjustToxLoss(1) M.jitteriness += 4 M.emote("sneeze", "cough") @@ -67,7 +67,7 @@ M.emote(pick("choke","gasp")) M.adjustOxyLoss(5) else if(prob(7)) - M << "Your chest hurts!" + to_chat(M, "Your chest hurts!") M.emote(pick("cough","gasp")) M.adjustOxyLoss(3) ..() @@ -196,11 +196,11 @@ if(prob(5)) M.emote("drool") if(prob(10)) - M << "You cannot breathe!" + to_chat(M, "You cannot breathe!") M.losebreath += 1 M.emote("gasp") if(prob(8)) - M << "You feel horrendously weak!" + to_chat(M, "You feel horrendously weak!") M.Stun(2) M.adjustToxLoss(2) ..() @@ -237,7 +237,7 @@ if(prob(25)) M.emote(pick("twitch", "laugh", "sneeze", "cry")) if(prob(20)) - M << "Something tickles!" + to_chat(M, "Something tickles!") M.emote(pick("laugh", "giggle")) if(prob(15)) M.visible_message("[M] scratches at an itch.") @@ -245,12 +245,12 @@ M.Stun(rand(0,1)) M.emote("grumble") if(prob(10)) - M << "So itchy!" + to_chat(M, "So itchy!") M.adjustBruteLoss(2) if(prob(6)) M.reagents.add_reagent("histamine", rand(1,3)) if(prob(2)) - M << "AHHHHHH!" + to_chat(M, "AHHHHHH!") M.adjustBruteLoss(5) M.Weaken(5) M.jitteriness += 6 @@ -291,7 +291,7 @@ var/mob/living/carbon/human/H = M if(volume < 5) - M << "The blueish acidic substance stings you, but isn't concentrated enough to harm you!" + to_chat(M, "The blueish acidic substance stings you, but isn't concentrated enough to harm you!") if(volume >=5 && volume <=10) if(!H.unacidable) @@ -306,18 +306,18 @@ if(!H.wear_mask.unacidable) qdel(H.wear_mask) H.update_inv_wear_mask() - H << "\red Your mask melts away but protects you from the acid!" + to_chat(H, "\red Your mask melts away but protects you from the acid!") else - H << "\red Your mask protects you from the acid!" + to_chat(H, "\red Your mask protects you from the acid!") return if(H.head) if(!H.head.unacidable) qdel(H.head) H.update_inv_head() - H << "\red Your helmet melts away but protects you from the acid" + to_chat(H, "\red Your helmet melts away but protects you from the acid") else - H << "\red Your helmet protects you from the acid!" + to_chat(H, "\red Your helmet protects you from the acid!") return if(!H.unacidable) @@ -333,7 +333,7 @@ var/obj/effect/decal/cleanable/molten_item/I = new/obj/effect/decal/cleanable/molten_item(O.loc) I.desc = "Looks like this was \an [O] some time ago." for(var/mob/M in viewers(5, O)) - M << "\red \the [O] melts." + to_chat(M, "\red \the [O] melts.") qdel(O) /datum/chemical_reaction/facid @@ -358,14 +358,14 @@ if(prob(33)) M.adjustToxLoss(rand(5,25)) if(prob(33)) - M << "You feel horribly weak." + to_chat(M, "You feel horribly weak.") M.Stun(2) if(prob(10)) - M << "You cannot breathe!" + to_chat(M, "You cannot breathe!") M.adjustOxyLoss(10) M.losebreath++ if(prob(10)) - M << "Your chest is burning with pain!" + to_chat(M, "Your chest is burning with pain!") M.adjustOxyLoss(10) M.losebreath++ M.Stun(3) @@ -409,7 +409,7 @@ M.emote(pick("drool", "tremble")) if(6 to 10) if(prob(8)) - M << "You feel [pick("weak", "horribly weak", "numb", "like you can barely move", "tingly")]." + to_chat(M, "You feel [pick("weak", "horribly weak", "numb", "like you can barely move", "tingly")].") M.Stun(1) else if(prob(8)) M.emote(pick("drool", "tremble")) @@ -420,9 +420,9 @@ M.emote(pick("drool", "tremble", "gasp")) M.losebreath++ if(prob(9)) - M << "You can't [pick("move", "feel your legs", "feel your face", "feel anything")]!" + to_chat(M, "You can't [pick("move", "feel your legs", "feel your face", "feel anything")]!") if(prob(7)) - M << "You can't breathe!" + to_chat(M, "You can't breathe!") M.losebreath += 3 ..() return @@ -557,10 +557,10 @@ if(!M.nutrition) switch(rand(1,3)) if(1) - M << "You feel hungry..." + to_chat(M, "You feel hungry...") if(2) M.adjustToxLoss(1) - M << "Your stomach grumbles painfully!" + to_chat(M, "Your stomach grumbles painfully!") else if(prob(60)) var/fat_to_burn = max(round(M.nutrition/100,1), 5) @@ -604,7 +604,7 @@ if(6 to 10) M.eye_blurry += 5 if(prob(8)) - M << "You feel [pick("weak", "horribly weak", "numb", "like you can barely move", "tingly")]." + to_chat(M, "You feel [pick("weak", "horribly weak", "numb", "like you can barely move", "tingly")].") M.Stun(1) else if(prob(8)) M.emote(pick("drool","pale", "gasp")) @@ -614,7 +614,7 @@ if(prob(20)) M.emote(pick("drool", "faint", "pale", "gasp", "collapse")) else if(prob(8)) - M << "You can't [pick("breathe", "move", "feel your legs", "feel your face", "feel anything")]!" + to_chat(M, "You can't [pick("breathe", "move", "feel your legs", "feel your face", "feel anything")]!") M.losebreath++ ..() return @@ -675,7 +675,7 @@ M.visible_message("[M] has a seizure!") M.jitteriness = 1000 if(prob(5)) - M << "You can't breathe!" + to_chat(M, "You can't breathe!") M.emote(pick("gasp", "choke", "cough")) M.losebreath++ if(61 to INFINITY) @@ -822,7 +822,7 @@ if(prob(10)) M.adjustToxLoss(rand(2.4)) if(prob(7)) - M << "A horrible migraine overpowers you." + to_chat(M, "A horrible migraine overpowers you.") M.Stun(rand(2,5)) if(prob(7)) M.fakevomit(1) @@ -869,7 +869,7 @@ /datum/reagent/ants/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume) //NOT THE ANTS if(iscarbon(M)) if(method == TOUCH || method==INGEST) - M << "OH SHIT ANTS!!!!" + to_chat(M, "OH SHIT ANTS!!!!") M.emote("scream") M.adjustBruteLoss(4) diff --git a/code/modules/reagents/oldchem/chemical_reaction/chemical_reaction_slime.dm b/code/modules/reagents/oldchem/chemical_reaction/chemical_reaction_slime.dm index 5ba9f9057af..cbcb53a5689 100644 --- a/code/modules/reagents/oldchem/chemical_reaction/chemical_reaction_slime.dm +++ b/code/modules/reagents/oldchem/chemical_reaction/chemical_reaction_slime.dm @@ -205,7 +205,7 @@ playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1) for(var/mob/living/M in range (get_turf(holder.my_atom), 7)) M.bodytemperature -= 140 - M << "\blue You feel a chill!" + to_chat(M, "\blue You feel a chill!") slimefireproof diff --git a/code/modules/reagents/oldchem/reagents/_reagent_base.dm b/code/modules/reagents/oldchem/reagents/_reagent_base.dm index b134f974547..9221c42f0c8 100644 --- a/code/modules/reagents/oldchem/reagents/_reagent_base.dm +++ b/code/modules/reagents/oldchem/reagents/_reagent_base.dm @@ -39,12 +39,12 @@ if(can_become_addicted) if(prob(self.addiction_chance) && !is_type_in_list(self, M.reagents.addiction_list)) - M << "You suddenly feel invigorated and guilty..." + to_chat(M, "You suddenly feel invigorated and guilty...") var/datum/reagent/new_reagent = new self.type() new_reagent.last_addiction_dose = world.timeofday M.reagents.addiction_list.Add(new_reagent) else if(is_type_in_list(self, M.reagents.addiction_list)) - M << "You feel slightly better, but for how long?" + to_chat(M, "You feel slightly better, but for how long?") for(var/A in M.reagents.addiction_list) var/datum/reagent/AD = A if(AD && istype(AD, self)) diff --git a/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm b/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm index 65a28452d58..2d85730193f 100644 --- a/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm +++ b/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm @@ -74,14 +74,14 @@ if(istype(O,/obj/item/weapon/paper)) var/obj/item/weapon/paper/paperaffected = O paperaffected.clearpaper() - usr << "The solution melts away the ink on the paper." + to_chat(usr, "The solution melts away the ink on the paper.") if(istype(O,/obj/item/weapon/book)) if(volume >= 5) var/obj/item/weapon/book/affectedbook = O affectedbook.dat = null - usr << "The solution melts away the ink on the book." + to_chat(usr, "The solution melts away the ink on the book.") else - usr << "It wasn't enough..." + to_chat(usr, "It wasn't enough...") return /datum/reagent/ethanol/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)//Splashing people with ethanol isn't quite as good as fuel. diff --git a/code/modules/reagents/oldchem/reagents/reagents_food.dm b/code/modules/reagents/oldchem/reagents/reagents_food.dm index 008f9964793..05a3fad7808 100644 --- a/code/modules/reagents/oldchem/reagents/reagents_food.dm +++ b/code/modules/reagents/oldchem/reagents/reagents_food.dm @@ -450,7 +450,7 @@ return /datum/reagent/sugar/overdose_start(var/mob/living/M as mob) - M << "You pass out from hyperglycemic shock!" + to_chat(M, "You pass out from hyperglycemic shock!") M.emote("collapse") ..() diff --git a/code/modules/reagents/oldchem/reagents/reagents_toxin.dm b/code/modules/reagents/oldchem/reagents/reagents_toxin.dm index 852fb861bb8..9fc7592d346 100644 --- a/code/modules/reagents/oldchem/reagents/reagents_toxin.dm +++ b/code/modules/reagents/oldchem/reagents/reagents_toxin.dm @@ -64,7 +64,7 @@ /datum/reagent/slimejelly/on_mob_life(var/mob/living/M as mob) if(prob(10)) - M << "\red Your insides are burning!" + to_chat(M, "\red Your insides are burning!") M.adjustToxLoss(rand(20,60)*REM) else if(prob(40)) M.adjustBruteLoss(-5*REM) @@ -83,10 +83,10 @@ if(ishuman(M)) var/mob/living/carbon/human/human = M if(human.species.name != "Shadow") - M << "\red Your flesh rapidly mutates!" - M << "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids." - M << "\red Your body reacts violently to light. \green However, it naturally heals in darkness." - M << "Aside from your new traits, you are mentally unchanged and retain your prior obligations." + to_chat(M, "\red Your flesh rapidly mutates!") + to_chat(M, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.") + to_chat(M, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.") + to_chat(M, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.") human.set_species("Shadow") ..() return @@ -264,11 +264,11 @@ if(volume > 25) if(H.wear_mask) - H << "\red Your mask protects you from the acid!" + to_chat(H, "\red Your mask protects you from the acid!") return if(H.head) - H << "\red Your helmet protects you from the acid!" + to_chat(H, "\red Your helmet protects you from the acid!") return if(!M.unacidable) @@ -288,7 +288,7 @@ var/mob/living/carbon/human/H = M if(volume < 10) - M << "The greenish acidic substance stings you, but isn't concentrated enough to harm you!" + to_chat(M, "The greenish acidic substance stings you, but isn't concentrated enough to harm you!") if(volume >=10 && volume <=25) if(!H.unacidable) @@ -313,7 +313,7 @@ var/obj/effect/decal/cleanable/molten_item/I = new/obj/effect/decal/cleanable/molten_item(O.loc) I.desc = "Looks like this was \an [O] some time ago." for(var/mob/M in viewers(5, O)) - M << "\red \the [O] melts." + to_chat(M, "\red \the [O] melts.") qdel(O) @@ -431,10 +431,10 @@ if ( !safe_thing ) safe_thing = victim.glasses if ( eyes_covered && mouth_covered ) - victim << "\red Your [safe_thing] protects you from the pepperspray!" + to_chat(victim, "\red Your [safe_thing] protects you from the pepperspray!") return else if ( mouth_covered ) // Reduced effects if partially protected - victim << "\red Your [safe_thing] protect you from most of the pepperspray!" + to_chat(victim, "\red Your [safe_thing] protect you from most of the pepperspray!") if(prob(5)) victim.emote("scream") victim.eye_blurry = max(M.eye_blurry, 3) @@ -445,14 +445,14 @@ victim.drop_item() return else if ( eyes_covered ) // Eye cover is better than mouth cover - victim << "\red Your [safe_thing] protects your eyes from the pepperspray!" + to_chat(victim, "\red Your [safe_thing] protects your eyes from the pepperspray!") victim.eye_blurry = max(M.eye_blurry, 3) victim.damageoverlaytemp = 30 return else // Oh dear :D if(prob(5)) victim.emote("scream") - victim << "\red You're sprayed directly in the eyes with pepperspray!" + to_chat(victim, "\red You're sprayed directly in the eyes with pepperspray!") victim.eye_blurry = max(M.eye_blurry, 5) victim.eye_blind = max(M.eye_blind, 2) victim.confused = max(M.confused, 6) diff --git a/code/modules/reagents/oldchem/reagents/reagents_water.dm b/code/modules/reagents/oldchem/reagents/reagents_water.dm index df9cdd6ade6..df9e0b29b64 100644 --- a/code/modules/reagents/oldchem/reagents/reagents_water.dm +++ b/code/modules/reagents/oldchem/reagents/reagents_water.dm @@ -254,7 +254,7 @@ if(!istype(M, /mob/living)) return if(method == INGEST) - M << "Oh god, why did you drink that?" + to_chat(M, "Oh god, why did you drink that?") /datum/reagent/fishwater/on_mob_life(var/mob/living/M as mob) if(!M) M = holder.my_atom @@ -307,14 +307,14 @@ if(ishuman(M) && M.mind && M.mind.vampire && !M.mind.vampire.get_ability(/datum/vampire_passive/full) && prob(80)) switch(data) if(1 to 4) - M << "Something sizzles in your veins!" + to_chat(M, "Something sizzles in your veins!") M.mind.vampire.nullified = max(5, M.mind.vampire.nullified + 2) if(5 to 12) - M << "You feel an intense burning inside of you!" + to_chat(M, "You feel an intense burning inside of you!") M.adjustFireLoss(1) M.mind.vampire.nullified = max(5, M.mind.vampire.nullified + 2) if(13 to INFINITY) - M << "You suddenly ignite in a holy fire!" + to_chat(M, "You suddenly ignite in a holy fire!") for(var/mob/O in viewers(M, null)) O.show_message(text("[] suddenly bursts into flames!", M), 1) M.fire_stacks = min(5,M.fire_stacks + 3) @@ -330,13 +330,13 @@ var/mob/living/carbon/human/H=M if(method == TOUCH) if(H.wear_mask) - H << "\red Your mask protects you from the holy water!" + to_chat(H, "\red Your mask protects you from the holy water!") return else if(H.head) - H << "\red Your helmet protects you from the holy water!" + to_chat(H, "\red Your helmet protects you from the holy water!") return else - M << "Something holy interferes with your powers!" + to_chat(M, "Something holy interferes with your powers!") M.mind.vampire.nullified = max(5, M.mind.vampire.nullified + 2) diff --git a/code/modules/reagents/pandemic.dm b/code/modules/reagents/pandemic.dm index 4ae8809b8f5..bec2b92f049 100644 --- a/code/modules/reagents/pandemic.dm +++ b/code/modules/reagents/pandemic.dm @@ -274,14 +274,14 @@ if(istype(I, /obj/item/weapon/reagent_containers) && (I.flags & OPENCONTAINER)) if(stat & (NOPOWER|BROKEN)) return if(beaker) - user << "A beaker is already loaded into the machine!" + to_chat(user, "A beaker is already loaded into the machine!") return if(!user.drop_item()) return beaker = I beaker.loc = src - user << "You add the beaker to the machine." + to_chat(user, "You add the beaker to the machine.") src.updateUsrDialog() icon_state = "mixer1" diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index b78c54bb4ef..e8df519fe43 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -80,10 +80,10 @@ /obj/item/weapon/reagent_containers/wash(mob/user, atom/source) if(is_open_container()) if(reagents.total_volume >= volume) - user << "span class='warning'>\The [src] is full." + to_chat(user, "span class='warning'>\The [src] is full.") return else reagents.add_reagent("water", min(volume - reagents.total_volume, amount_per_transfer_from_this)) - user << "You fill [src] from [source]." + to_chat(user, "You fill [src] from [source].") return ..() \ No newline at end of file diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index e723005e60e..b92aceb4c79 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -72,13 +72,13 @@ /obj/item/weapon/reagent_containers/borghypo/attack(mob/living/M as mob, mob/user as mob) var/datum/reagents/R = reagent_list[mode] if(!R.total_volume) - user << "The injector is empty." + to_chat(user, "The injector is empty.") return if (!istype(M)) return if (R.total_volume && M.can_inject(user, 1, penetrate_thick = bypass_protection)) - user << "You inject [M] with the injector." - M << "You feel a tiny prick!" + to_chat(user, "You inject [M] with the injector.") + to_chat(M, "You feel a tiny prick!") R.add_reagent(M) if(M.reagents) @@ -91,7 +91,7 @@ M.LAssailant = user var/trans = R.trans_to(M, amount_per_transfer_from_this) - user << "[trans] units injected. [R.total_volume] units remaining." + to_chat(user, "[trans] units injected. [R.total_volume] units remaining.") return /obj/item/weapon/reagent_containers/borghypo/attack_self(mob/user as mob) @@ -102,7 +102,7 @@ charge_tick = 0 //Prevents wasted chems/cell charge if you're cycling through modes. var/datum/reagent/R = chemical_reagents_list[reagent_ids[mode]] - user << "Synthesizer is now producing '[R.name]'." + to_chat(user, "Synthesizer is now producing '[R.name]'.") return /obj/item/weapon/reagent_containers/borghypo/examine(mob/user) @@ -114,8 +114,8 @@ for(var/datum/reagents/RS in reagent_list) var/datum/reagent/R = locate() in RS.reagent_list if(R) - user << "It currently has [R.volume] units of [R.name] stored." + to_chat(user, "It currently has [R.volume] units of [R.name] stored.") empty = 0 if(empty) - user << "It is currently empty. Allow some time for the internal syntheszier to produce more." + to_chat(user, "It is currently empty. Allow some time for the internal syntheszier to produce more.") diff --git a/code/modules/reagents/reagent_containers/dropper.dm b/code/modules/reagents/reagent_containers/dropper.dm index 1526ebcb695..2fedf8dd27f 100644 --- a/code/modules/reagents/reagent_containers/dropper.dm +++ b/code/modules/reagents/reagent_containers/dropper.dm @@ -17,11 +17,11 @@ if(filled) if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red [target] is full." + to_chat(user, "\red [target] is full.") return if(!target.is_open_container() && !ismob(target) && !istype(target,/obj/item/weapon/reagent_containers/food) && !istype(target, /obj/item/clothing/mask/cigarette)) //You can inject humans and food but you cant remove the shit. - user << "\red You cannot directly fill this object." + to_chat(user, "\red You cannot directly fill this object.") return var/trans = 0 @@ -53,7 +53,7 @@ - user << "\blue You transfer [trans] units of the solution." + to_chat(user, "\blue You transfer [trans] units of the solution.") if (src.reagents.total_volume<=0) filled = 0 icon_state = "[initial(icon_state)]" @@ -92,7 +92,7 @@ log_game("[key_name(user)] added [reagents.get_reagent_ids(1)] to \a [target] with [src].") trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You transfer [trans] units of the solution." + to_chat(user, "\blue You transfer [trans] units of the solution.") if (src.reagents.total_volume<=0) filled = 0 icon_state = "[initial(icon_state)]" @@ -100,16 +100,16 @@ else if(!target.is_open_container() && !istype(target,/obj/structure/reagent_dispensers)) - user << "\red You cannot directly remove reagents from [target]." + to_chat(user, "\red You cannot directly remove reagents from [target].") return if(!target.reagents.total_volume) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return var/trans = target.reagents.trans_to(src, amount_per_transfer_from_this) - user << "\blue You fill the [src] with [trans] units of the solution." + to_chat(user, "\blue You fill the [src] with [trans] units of the solution.") filled = 1 icon_state = "[initial(icon_state)][filled]" diff --git a/code/modules/reagents/reagent_containers/drugs.dm b/code/modules/reagents/reagent_containers/drugs.dm index 53d9310f6cc..db162b6f7cc 100644 --- a/code/modules/reagents/reagent_containers/drugs.dm +++ b/code/modules/reagents/reagent_containers/drugs.dm @@ -24,28 +24,28 @@ if(istype(target, /obj/structure/reagent_dispensers)) //A dispenser. Transfer FROM it TO us. if(!target.reagents.total_volume && target.reagents) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << "\red [src] is full." + to_chat(user, "\red [src] is full.") return for(var/datum/reagent/A in target.reagents.reagent_list) if(A.reagent_state != 1) - user << "\red You can only put powders in [src]." + to_chat(user, "\red You can only put powders in [src].") return var/trans = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - user << "\blue You fill [src] with [trans] units of the contents of [target]." + to_chat(user, "\blue You fill [src] with [trans] units of the contents of [target].") else if(target.is_open_container() && target.reagents) //Something like a glass. Player probably wants to transfer TO it. if(!reagents.total_volume) - user << "\red [src] is empty." + to_chat(user, "\red [src] is empty.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red [target] is full." + to_chat(user, "\red [target] is full.") return // /vg/: Logging transfers of bad things @@ -60,7 +60,7 @@ log_game("[key_name(user)] added [reagents.get_reagent_ids(1)] to \a [target] with [src].") var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You transfer [trans] units of the solution to [target]." + to_chat(user, "\blue You transfer [trans] units of the solution to [target].") //Safety for dumping stuff into a ninja suit. It handles everything through attackby() and this is unnecessary. @@ -75,9 +75,9 @@ if(istype(W, /obj/item/weapon/pen) || istype(W, /obj/item/device/flashlight/pen)) var/tmp_label = sanitize(input(user, "Enter a label for [src.name]","Label",src.label_text)) if(length(tmp_label) > 10) - user << "\red The label can be at most 10 characters long." + to_chat(user, "\red The label can be at most 10 characters long.") else - user << "\blue You set the label to \"[tmp_label]\"." + to_chat(user, "\blue You set the label to \"[tmp_label]\".") src.label_text = tmp_label src.update_name_label() diff --git a/code/modules/reagents/reagent_containers/food/cans.dm b/code/modules/reagents/reagent_containers/food/cans.dm index 4a4479c8b1e..9aaf72b6f8c 100644 --- a/code/modules/reagents/reagent_containers/food/cans.dm +++ b/code/modules/reagents/reagent_containers/food/cans.dm @@ -8,7 +8,7 @@ attack_self(mob/user as mob) if (canopened == 0) playsound(src.loc,'sound/effects/canopen.ogg', rand(10,50), 1) - user << "You open the drink with an audible pop!" + to_chat(user, "You open the drink with an audible pop!") canopened = 1 flags |= OPENCONTAINER else @@ -16,7 +16,7 @@ attack(mob/M as mob, mob/user as mob, def_zone) if (canopened == 0) - user << "You need to open the drink!" + to_chat(user, "You need to open the drink!") return return ..(M, user, def_zone) @@ -24,10 +24,10 @@ afterattack(obj/target, mob/user, proximity) if(!proximity) return if(istype(target, /obj/structure/reagent_dispensers) && (canopened == 0)) - user << "You need to open the drink!" + to_chat(user, "You need to open the drink!") return else if(target.is_open_container() && (canopened == 0)) - user << "You need to open the drink!" + to_chat(user, "You need to open the drink!") return else return ..(target, user, proximity) @@ -36,15 +36,15 @@ if(!..(user, 1)) return if(!reagents || reagents.total_volume==0) - user << "\blue \The [src] is empty!" + to_chat(user, "\blue \The [src] is empty!") else if (reagents.total_volume<=src.volume/4) - user << "\blue \The [src] is almost empty!" + to_chat(user, "\blue \The [src] is almost empty!") else if (reagents.total_volume<=src.volume*0.66) - user << "\blue \The [src] is half full!" + to_chat(user, "\blue \The [src] is half full!") else if (reagents.total_volume<=src.volume*0.90) - user << "\blue \The [src] is almost full!" + to_chat(user, "\blue \The [src] is almost full!") else - user << "\blue \The [src] is full!"*/ + to_chat(user, "\blue \The [src] is full!")*/ //DRINKS diff --git a/code/modules/reagents/reagent_containers/food/condiment.dm b/code/modules/reagents/reagent_containers/food/condiment.dm index 5cb063ee86f..e1fb06f1be7 100644 --- a/code/modules/reagents/reagent_containers/food/condiment.dm +++ b/code/modules/reagents/reagent_containers/food/condiment.dm @@ -39,11 +39,11 @@ var/datum/reagents/R = src.reagents if(!R || !R.total_volume) - user << "\red None of [src] left, oh no!" + to_chat(user, "\red None of [src] left, oh no!") return 0 if(M == user) - M << "\blue You swallow some of contents of the [src]." + to_chat(M, "\blue You swallow some of contents of the [src].") if(reagents.total_volume) reagents.reaction(M, INGEST) spawn(0) @@ -85,26 +85,26 @@ if(istype(target, /obj/structure/reagent_dispensers)) //A dispenser. Transfer FROM it TO us. if(!target.reagents.total_volume) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << "\red [src] is full." + to_chat(user, "\red [src] is full.") return var/trans = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - user << "\blue You fill [src] with [trans] units of the contents of [target]." + to_chat(user, "\blue You fill [src] with [trans] units of the contents of [target].") //Something like a glass or a food item. Player probably wants to transfer TO it. else if(target.is_open_container() || istype(target, /obj/item/weapon/reagent_containers/food/snacks)) if(!reagents.total_volume) - user << "\red [src] is empty." + to_chat(user, "\red [src] is empty.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red you can't add anymore to [target]." + to_chat(user, "\red you can't add anymore to [target].") return var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You transfer [trans] units of the condiment to [target]." + to_chat(user, "\blue You transfer [trans] units of the condiment to [target].") /obj/item/weapon/reagent_containers/food/condiment/on_reagent_change() if(!possible_states.len) @@ -230,15 +230,16 @@ //You can tear the bag open above food to put the condiments on it, obviously. if(istype(target, /obj/item/weapon/reagent_containers/food/snacks)) if(!reagents.total_volume) - user << "You tear open [src], but there's nothing in it." + to_chat(user, "You tear open [src], but there's nothing in it.") qdel(src) return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "You tear open [src], but [target] is stacked so high that it just drips off!" //Not sure if food can ever be full, but better safe than sorry. + to_chat(user, "You tear open [src], but [target] is stacked so high that it just drips off!")//Not sure if food can ever be full, but better safe than sorry. + qdel(src) return else - user << "You tear open [src] above [target] and the condiments drip onto it." + to_chat(user, "You tear open [src] above [target] and the condiments drip onto it.") src.reagents.trans_to(target, amount_per_transfer_from_this) qdel(src) diff --git a/code/modules/reagents/reagent_containers/food/drinks.dm b/code/modules/reagents/reagent_containers/food/drinks.dm index e4860b880d0..d6a5d37012a 100644 --- a/code/modules/reagents/reagent_containers/food/drinks.dm +++ b/code/modules/reagents/reagent_containers/food/drinks.dm @@ -22,7 +22,7 @@ /obj/item/weapon/reagent_containers/food/drinks/attack(mob/M as mob, mob/user as mob, def_zone) if(!reagents || !reagents.total_volume) - user << " None of [src] left, oh no!" + to_chat(user, " None of [src] left, oh no!") return 0 if(istype(M, /mob/living/carbon)) @@ -45,29 +45,29 @@ if (istype(target, /obj/item/weapon/reagent_containers/food/drinks/cans)) var/obj/item/weapon/reagent_containers/food/drinks/cans/cantarget = target if(cantarget.canopened == 0) - user << "You need to open the drink you want to pour into!" + to_chat(user, "You need to open the drink you want to pour into!") return if(istype(target, /obj/structure/reagent_dispensers)) //A dispenser. Transfer FROM it TO us. if(!target.reagents.total_volume) - user << " [target] is empty." + to_chat(user, " [target] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << " [src] is full." + to_chat(user, " [src] is full.") return var/trans = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - user << " You fill [src] with [trans] units of the contents of [target]." + to_chat(user, " You fill [src] with [trans] units of the contents of [target].") else if(target.is_open_container()) //Something like a glass. Player probably wants to transfer TO it. if(!reagents.total_volume) - user << " [src] is empty." + to_chat(user, " [src] is empty.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << " [target] is full." + to_chat(user, " [target] is full.") return @@ -79,19 +79,19 @@ refillName = reagents.get_master_reagent_name() var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << " You transfer [trans] units of the solution to [target]." + to_chat(user, " You transfer [trans] units of the solution to [target].") if(isrobot(user)) //Cyborg modules that include drinks automatically refill themselves, but drain the borg's cell if(refill in drinks) // Only synthesize drinks var/mob/living/silicon/robot/bro = user var/chargeAmount = max(30,4*trans) bro.cell.use(chargeAmount) - user << "Now synthesizing [trans] units of [refillName]..." + to_chat(user, "Now synthesizing [trans] units of [refillName]...") spawn(300) reagents.add_reagent(refill, trans) - user << "Cyborg [src] refilled." + to_chat(user, "Cyborg [src] refilled.") return @@ -101,22 +101,23 @@ if(is_hot(I)) if(src.reagents) src.reagents.chem_temp += 15 - user << "You heat [src] with [I]." + to_chat(user, "You heat [src] with [I].") src.reagents.handle_reactions() /obj/item/weapon/reagent_containers/food/drinks/examine(mob/user) if(!..(user, 1)) return if(!reagents || reagents.total_volume==0) - user << " \The [src] is empty!" + to_chat(user, " \The [src] is empty!") else if (reagents.total_volume<=src.volume/4) - user << " \The [src] is almost empty!" + to_chat(user, " \The [src] is almost empty!") else if (reagents.total_volume<=src.volume*0.66) - user << " \The [src] is half full!" // We're all optimistic, right?! + to_chat(user, " \The [src] is half full!")// We're all optimistic, right?! + else if (reagents.total_volume<=src.volume*0.90) - user << " \The [src] is almost full!" + to_chat(user, " \The [src] is almost full!") else - user << " \The [src] is full!" + to_chat(user, " \The [src] is full!") //////////////////////////////////////////////////////////////////////////////// /// Drinks. END diff --git a/code/modules/reagents/reagent_containers/food/sandwich.dm b/code/modules/reagents/reagent_containers/food/sandwich.dm index 943c5022dc4..75919c4314f 100644 --- a/code/modules/reagents/reagent_containers/food/sandwich.dm +++ b/code/modules/reagents/reagent_containers/food/sandwich.dm @@ -25,16 +25,16 @@ sandwich_limit += 4 if(src.contents.len > sandwich_limit) - user << "\red If you put anything else on \the [src] it's going to collapse." + to_chat(user, "\red If you put anything else on \the [src] it's going to collapse.") return else if(istype(W,/obj/item/weapon/shard)) - user << "\blue You hide [W] in \the [src]." + to_chat(user, "\blue You hide [W] in \the [src].") user.drop_item() W.loc = src update() return else if(istype(W,/obj/item/weapon/reagent_containers/food/snacks)) - user << "\blue You layer [W] over \the [src]." + to_chat(user, "\blue You layer [W] over \the [src].") var/obj/item/weapon/reagent_containers/F = W F.reagents.trans_to(src, F.reagents.total_volume) user.drop_item() @@ -83,7 +83,7 @@ /obj/item/weapon/reagent_containers/food/snacks/csandwich/examine(mob/user) ..(user) var/obj/item/O = pick(contents) - user << "\blue You think you can see [O.name] in there." + to_chat(user, "\blue You think you can see [O.name] in there.") /obj/item/weapon/reagent_containers/food/snacks/csandwich/attack(mob/M as mob, mob/user as mob, def_zone) @@ -98,7 +98,7 @@ H = M if(H && shard && M == user) //This needs a check for feeding the food to other people, but that could be abusable. - H << "\red You lacerate your mouth on a [shard.name] in the sandwich!" + to_chat(H, "\red You lacerate your mouth on a [shard.name] in the sandwich!") H.adjustBruteLoss(5) //TODO: Target head if human. ..() */ \ No newline at end of file diff --git a/code/modules/reagents/reagent_containers/food/snacks.dm b/code/modules/reagents/reagent_containers/food/snacks.dm index 5e7d80a75e2..d2754ba5972 100644 --- a/code/modules/reagents/reagent_containers/food/snacks.dm +++ b/code/modules/reagents/reagent_containers/food/snacks.dm @@ -21,7 +21,7 @@ spawn(0) if(!reagents.total_volume) if(M == usr) - usr << "You finish eating \the [src]." + to_chat(usr, "You finish eating \the [src].") usr.visible_message("[usr] finishes eating \the [src].") usr.unEquip(src) //so icons update :[ @@ -39,7 +39,7 @@ /obj/item/weapon/reagent_containers/food/snacks/attack(mob/M as mob, mob/user as mob, def_zone) if(reagents && !reagents.total_volume) //Shouldn't be needed but it checks to see if it has anything left in it. - user << "None of [src] left, oh no!" + to_chat(user, "None of [src] left, oh no!") M.unEquip(src) //so icons update :[ qdel(src) return 0 @@ -60,11 +60,11 @@ if (bitecount==0) return else if (bitecount==1) - user << "\blue \The [src] was bitten by someone!" + to_chat(user, "\blue \The [src] was bitten by someone!") else if (bitecount<=3) - user << "\blue \The [src] was bitten [bitecount] times!" + to_chat(user, "\blue \The [src] was bitten [bitecount] times!") else - user << "\blue \The [src] was bitten multiple times!" + to_chat(user, "\blue \The [src] was bitten multiple times!") /obj/item/weapon/reagent_containers/food/snacks/attackby(obj/item/weapon/W, mob/user, params) @@ -81,7 +81,7 @@ var/obj/item/weapon/kitchen/utensil/U = W if(U.contents.len >= U.max_contents) - user << "You cannot fit anything else on your [U]." + to_chat(user, "You cannot fit anything else on your [U].") return user.visible_message( \ @@ -132,7 +132,7 @@ else if(W.w_class <= 2 && istype(src,/obj/item/weapon/reagent_containers/food/snacks/sliceable)) if(!iscarbon(user)) return 1 - user << "\red You slip [W] inside [src]." + to_chat(user, "\red You slip [W] inside [src].") user.unEquip(W) if ((user.client && user.s_active != src)) user.client.screen -= W @@ -148,7 +148,7 @@ !(locate(/obj/machinery/optable) in src.loc) && \ !(locate(/obj/item/weapon/storage/bag/tray) in src.loc) \ ) - user << "\red You cannot slice [src] here! You need a table or at least a tray to do it." + to_chat(user, "\red You cannot slice [src] here! You need a table or at least a tray to do it.") return 1 var/slices_lost = 0 if (!inaccurate) @@ -193,7 +193,7 @@ bitecount++ else if(ismouse(M)) var/mob/living/simple_animal/mouse/N = M - N << text("\blue You nibble away at [src].") + to_chat(N, text("\blue You nibble away at [src].")) if(prob(50)) N.visible_message("[N] nibbles away at [src].", "") //N.emote("nibbles away at the [src]") @@ -509,10 +509,10 @@ var/clr = C.colourName if(!(clr in list("blue","green","mime","orange","purple","rainbow","red","yellow"))) - usr << "\blue The egg refuses to take on this color!" + to_chat(usr, "\blue The egg refuses to take on this color!") return - usr << "\blue You color \the [src] [clr]" + to_chat(usr, "\blue You color \the [src] [clr]") icon_state = "egg-[clr]" item_color = clr else @@ -1141,7 +1141,7 @@ bitesize = 0.1 //this snack is supposed to be eating during looooong time. And this it not dinner food! --rastaf0 On_Consume() if(prob(unpopped)) //lol ...what's the point? - usr << "\red You bite down on an un-popped kernel!" + to_chat(usr, "\red You bite down on an un-popped kernel!") unpopped = max(0, unpopped-1) ..() @@ -1602,14 +1602,14 @@ /obj/item/weapon/reagent_containers/food/snacks/monkeycube/afterattack(obj/O, mob/user, proximity) if(!proximity) return if(istype(O,/obj/structure/sink) && !wrapped) - user << "You place [src] under a stream of water..." + to_chat(user, "You place [src] under a stream of water...") user.drop_item() forceMove(get_turf(O)) return Expand() if(istype(O, /obj/machinery/computer/camera_advanced/xenobio)) var/obj/machinery/computer/camera_advanced/xenobio/X = O X.monkeys++ - user << "You feed [src] to the [X]. It now has [X.monkeys] monkey cubes stored." + to_chat(user, "You feed [src] to the [X]. It now has [X.monkeys] monkey cubes stored.") qdel(src) return ..() @@ -1638,7 +1638,7 @@ /obj/item/weapon/reagent_containers/food/snacks/monkeycube/proc/Unwrap(mob/user) icon_state = "monkeycube" desc = "Just add water!" - user << "You unwrap the cube." + to_chat(user, "You unwrap the cube.") wrapped = 0 /obj/item/weapon/reagent_containers/food/snacks/monkeycube/wrapped @@ -2827,7 +2827,7 @@ if( open && pizza ) user.put_in_hands( pizza ) - user << "\red You take the [src.pizza] out of the [src]." + to_chat(user, "\red You take the [src.pizza] out of the [src].") src.pizza = null update_icon() return @@ -2841,7 +2841,7 @@ boxes -= box user.put_in_hands( box ) - user << "\red You remove the topmost [src] from your hand." + to_chat(user, "\red You remove the topmost [src] from your hand.") box.update_icon() update_icon() return @@ -2880,11 +2880,11 @@ box.update_icon() update_icon() - user << "\red You put the [box] ontop of the [src]!" + to_chat(user, "\red You put the [box] ontop of the [src]!") else - user << "\red The stack is too high!" + to_chat(user, "\red The stack is too high!") else - user << "\red Close the [box] first!" + to_chat(user, "\red Close the [box] first!") return @@ -2897,9 +2897,9 @@ update_icon() - user << "\red You put the [I] in the [src]!" + to_chat(user, "\red You put the [I] in the [src]!") else - user << "\red You try to push the [I] through the lid but it doesn't work!" + to_chat(user, "\red You try to push the [I] through the lid but it doesn't work!") return if( istype(I, /obj/item/weapon/pen/) ) @@ -3202,10 +3202,10 @@ if(istype(I, /obj/item/weapon/kitchen/rollingpin)) if(isturf(loc)) new /obj/item/weapon/reagent_containers/food/snacks/sliceable/flatdough(loc) - user << "You flatten [src]." + to_chat(user, "You flatten [src].") qdel(src) else - user << "You need to put [src] on a surface to roll it out!" + to_chat(user, "You need to put [src] on a surface to roll it out!") else ..() diff --git a/code/modules/reagents/reagent_containers/food/snacks/meat.dm b/code/modules/reagents/reagent_containers/food/snacks/meat.dm index 12fb6f6db69..dc9999a7f4c 100644 --- a/code/modules/reagents/reagent_containers/food/snacks/meat.dm +++ b/code/modules/reagents/reagent_containers/food/snacks/meat.dm @@ -17,7 +17,7 @@ new /obj/item/weapon/reagent_containers/food/snacks/rawcutlet(src) new /obj/item/weapon/reagent_containers/food/snacks/rawcutlet(src) new /obj/item/weapon/reagent_containers/food/snacks/rawcutlet(src) - user << "You cut the meat in thin strips." + to_chat(user, "You cut the meat in thin strips.") qdel(src) else ..() diff --git a/code/modules/reagents/reagent_containers/glass_containers.dm b/code/modules/reagents/reagent_containers/glass_containers.dm index dca1b419103..190b02c60d7 100644 --- a/code/modules/reagents/reagent_containers/glass_containers.dm +++ b/code/modules/reagents/reagent_containers/glass_containers.dm @@ -50,15 +50,15 @@ if(!..(user, 2)) return if (!is_open_container()) - user << "Airtight lid seals it completely." + to_chat(user, "Airtight lid seals it completely.") /obj/item/weapon/reagent_containers/glass/attack_self() ..() if (is_open_container()) - usr << "You put the lid on \the [src]." + to_chat(usr, "You put the lid on \the [src].") flags ^= OPENCONTAINER else - usr << "You take the lid off \the [src]." + to_chat(usr, "You take the lid off \the [src].") flags |= OPENCONTAINER update_icon() @@ -72,7 +72,7 @@ return if(ismob(target) && target.reagents && reagents.total_volume) - user << "You splash the solution onto [target]." + to_chat(user, "You splash the solution onto [target].") var/mob/living/M = target var/list/injected = list() @@ -96,23 +96,23 @@ else if(istype(target, /obj/structure/reagent_dispensers)) //A dispenser. Transfer FROM it TO us. if(!target.reagents.total_volume && target.reagents) - user << "[target] is empty." + to_chat(user, "[target] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << "[src] is full." + to_chat(user, "[src] is full.") return var/trans = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - user << "You fill [src] with [trans] units of the contents of [target]." + to_chat(user, "You fill [src] with [trans] units of the contents of [target].") else if(target.is_open_container() && target.reagents) //Something like a glass. Player probably wants to transfer TO it. if(!reagents.total_volume) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "[target] is full." + to_chat(user, "[target] is full.") return // /vg/: Logging transfers of bad things @@ -127,10 +127,10 @@ log_game("[key_name(user)] added [reagents.get_reagent_ids(1)] to \a [target] with [src].") var/trans = reagents.trans_to(target, amount_per_transfer_from_this) - user << "You transfer [trans] units of the solution to [target]." + to_chat(user, "You transfer [trans] units of the solution to [target].") else if(istype(target, /obj/item/weapon/reagent_containers/glass) && !target.is_open_container()) - user << "You cannot fill [target] while it is sealed." + to_chat(user, "You cannot fill [target] while it is sealed.") return /*else if(istype(target, /obj/machinery/bunsen_burner)) @@ -143,7 +143,7 @@ return else if(reagents.total_volume) - user << "You splash the solution onto [target]." + to_chat(user, "You splash the solution onto [target].") reagents.reaction(target, TOUCH) spawn(5) reagents.clear_reagents() return @@ -155,14 +155,14 @@ if(is_hot(I)) if(reagents) reagents.chem_temp += 15 - user << "You heat [src] with [I]." + to_chat(user, "You heat [src] with [I].") reagents.handle_reactions() if(istype(I, /obj/item/weapon/pen) || istype(I, /obj/item/device/flashlight/pen)) var/tmp_label = sanitize(input(user, "Enter a label for [name]","Label",label_text)) if(length(tmp_label) > MAX_NAME_LEN) - user << "The label can be at most [MAX_NAME_LEN] characters long." + to_chat(user, "The label can be at most [MAX_NAME_LEN] characters long.") else - user << "You set the label to \"[tmp_label]\"." + to_chat(user, "You set the label to \"[tmp_label]\".") label_text = tmp_label update_name_label() if(istype(I,/obj/item/weapon/storage/bag)) @@ -230,12 +230,12 @@ if(usr.stat || !usr.canmove || usr.restrained()) return if (assembly) - usr << "You detach [assembly] from \the [src]" + to_chat(usr, "You detach [assembly] from \the [src]") usr.put_in_hands(assembly) assembly = null update_icon() else - usr << "There is no assembly to remove." + to_chat(usr, "There is no assembly to remove.") /obj/item/weapon/reagent_containers/glass/beaker/proc/heat_beaker() if(reagents) @@ -245,7 +245,7 @@ /obj/item/weapon/reagent_containers/glass/beaker/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W,/obj/item/device/assembly_holder)) if (assembly) - usr << "The [src] already has an assembly." + to_chat(usr, "The [src] already has an assembly.") return ..() assembly = W user.drop_item() @@ -343,7 +343,7 @@ /obj/item/weapon/reagent_containers/glass/bucket/attackby(var/obj/D, mob/user as mob, params) if(isprox(D)) - user << "You add [D] to [src]." + to_chat(user, "You add [D] to [src].") qdel(D) user.put_in_hands(new /obj/item/weapon/bucket_sensor) user.unEquip(src) diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index eb932e8488f..22466811e3e 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -17,13 +17,13 @@ /obj/item/weapon/reagent_containers/hypospray/attack(mob/living/M, mob/user) if(!reagents.total_volume) - user << "\red [src] is empty." + to_chat(user, "\red [src] is empty.") return if(!istype(M)) return if(reagents.total_volume && (ignore_flags || M.can_inject(user, 1))) - user << "\blue You inject [M] with [src]." - M << "\red You feel a tiny prick!" + to_chat(user, "\blue You inject [M] with [src].") + to_chat(M, "\red You feel a tiny prick!") src.reagents.add_reagent(M) if(M.reagents) @@ -41,7 +41,7 @@ M.LAssailant = user var/trans = reagents.trans_to(M, amount_per_transfer_from_this) - user << "\blue [trans] units injected. [reagents.total_volume] units remaining in [src]." + to_chat(user, "\blue [trans] units injected. [reagents.total_volume] units remaining in [src].") return @@ -102,9 +102,9 @@ /obj/item/weapon/reagent_containers/hypospray/autoinjector/examine(mob/user) ..(user) if(reagents && reagents.reagent_list.len) - user << "\blue It is currently loaded." + to_chat(user, "\blue It is currently loaded.") else - user << "\blue It is spent." + to_chat(user, "\blue It is spent.") /obj/item/weapon/reagent_containers/hypospray/autoinjector/teporone //basilisks name = "teporone autoinjector" diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index 6dac43db7d1..4af5ab79bc7 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -33,7 +33,7 @@ if(target.is_open_container() != 0 && target.reagents) if(!target.reagents.total_volume) - user << "[target] is empty. Cant dissolve [src]." + to_chat(user, "[target] is empty. Cant dissolve [src].") return // /vg/: Logging transfers of bad things @@ -47,7 +47,7 @@ message_admins("[user.name] ([user.ckey]) added [reagents.get_reagent_ids(1)] to \a [target] with [src].[hl] (JMP)") log_game("[user.name] ([user.ckey]) added [reagents.get_reagent_ids(1)] to \a [target] with [src].") - user << "You dissolve [src] in [target]." + to_chat(user, "You dissolve [src] in [target].") reagents.trans_to(target, reagents.total_volume) for(var/mob/O in viewers(2, user)) O.show_message("[user] puts something in [target].", 1) diff --git a/code/modules/reagents/reagent_containers/robodropper.dm b/code/modules/reagents/reagent_containers/robodropper.dm index c5da1639304..b035b2aea12 100644 --- a/code/modules/reagents/reagent_containers/robodropper.dm +++ b/code/modules/reagents/reagent_containers/robodropper.dm @@ -15,11 +15,11 @@ if(filled) if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red [target] is full." + to_chat(user, "\red [target] is full.") return if(!target.is_open_container() && !ismob(target) && !istype(target,/obj/item/weapon/reagent_containers/food)) //You can inject humans and food but you cant remove the shit. - user << "\red You cannot directly fill this object." + to_chat(user, "\red You cannot directly fill this object.") return @@ -62,7 +62,7 @@ src.reagents.reaction(safe_thing, TOUCH) - user << "\blue You transfer [trans] units of the solution." + to_chat(user, "\blue You transfer [trans] units of the solution.") if (src.reagents.total_volume<=0) filled = 0 icon_state = "[initial(icon_state)]" @@ -88,7 +88,7 @@ M.LAssailant = user trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You transfer [trans] units of the solution." + to_chat(user, "\blue You transfer [trans] units of the solution.") if (src.reagents.total_volume<=0) filled = 0 icon_state = "[initial(icon_state)]" @@ -96,16 +96,16 @@ else if(!target.is_open_container() && !istype(target,/obj/structure/reagent_dispensers)) - user << "\red You cannot directly remove reagents from [target]." + to_chat(user, "\red You cannot directly remove reagents from [target].") return if(!target.reagents.total_volume) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return var/trans = target.reagents.trans_to(src, amount_per_transfer_from_this) - user << "\blue You fill the dropper with [trans] units of the solution." + to_chat(user, "\blue You fill the dropper with [trans] units of the solution.") filled = 1 icon_state = "[initial(icon_state)][filled]" diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 04859c66c32..32a0e752913 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -27,19 +27,19 @@ if(istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1) //this block copypasted from reagent_containers/glass, for lack of a better solution if(!A.reagents.total_volume && A.reagents) - user << "\The [A] is empty." + to_chat(user, "\The [A] is empty.") return if(reagents.total_volume >= reagents.maximum_volume) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return var/trans = A.reagents.trans_to(src, A:amount_per_transfer_from_this) - user << "You fill \the [src] with [trans] units of the contents of \the [A]." + to_chat(user, "You fill \the [src] with [trans] units of the contents of \the [A].") return if(reagents.total_volume < amount_per_transfer_from_this) - user << "\The [src] is empty!" + to_chat(user, "\The [src] is empty!") return spray(A) @@ -79,11 +79,11 @@ amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10) spray_currentrange = (spray_currentrange == 1 ? spray_maxrange : 1) - user << "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray." + to_chat(user, "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray.") /obj/item/weapon/reagent_containers/spray/examine(mob/user) if(..(user, 0) && user==src.loc) - user << "[round(src.reagents.total_volume)] units left." + to_chat(user, "[round(src.reagents.total_volume)] units left.") /obj/item/weapon/reagent_containers/spray/verb/empty() @@ -95,7 +95,7 @@ if (alert(usr, "Are you sure you want to empty that?", "Empty Bottle:", "Yes", "No") != "Yes") return if(isturf(usr.loc) && src.loc == usr) - usr << "You empty \the [src] onto the floor." + to_chat(usr, "You empty \the [src] onto the floor.") reagents.reaction(usr.loc) src.reagents.clear_reagents() @@ -207,7 +207,7 @@ /obj/item/weapon/reagent_containers/spray/chemsprayer/attack_self(var/mob/user) amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10) - user << "You adjust the output switch. You'll now use [amount_per_transfer_from_this] units per spray." + to_chat(user, "You adjust the output switch. You'll now use [amount_per_transfer_from_this] units per spray.") // Plant-B-Gone diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm index 5978c615942..5c7e6d0ca4c 100644 --- a/code/modules/reagents/reagent_containers/syringes.dm +++ b/code/modules/reagents/reagent_containers/syringes.dm @@ -62,7 +62,7 @@ return if(mode == SYRINGE_BROKEN) - user << "\red This syringe is broken!" + to_chat(user, "\red This syringe is broken!") return /* if (user.a_intent == I_HARM && ismob(target)) @@ -76,23 +76,23 @@ if(SYRINGE_DRAW) if(reagents.total_volume >= reagents.maximum_volume) - user << "\red The syringe is full." + to_chat(user, "\red The syringe is full.") return if(ismob(target))//Blood! if(istype(target, /mob/living/carbon/slime)) - user << "\red You are unable to locate any blood." + to_chat(user, "\red You are unable to locate any blood.") return if(src.reagents.has_reagent("blood")) - user << "\red There is already a blood sample in this syringe" + to_chat(user, "\red There is already a blood sample in this syringe") return if(istype(target, /mob/living/carbon))//maybe just add a blood reagent to all mobs. Then you can suck them dry...With hundreds of syringes. Jolly good idea. var/mob/living/carbon/T = target if(!T.dna) - usr << "You are unable to locate any blood. (To be specific, your target seems to be missing their DNA datum)" + to_chat(usr, "You are unable to locate any blood. (To be specific, your target seems to be missing their DNA datum)") return if(NOCLONE in T.mutations) //target done been et, no more blood in him - user << "\red You are unable to locate any blood." + to_chat(user, "\red You are unable to locate any blood.") return @@ -100,7 +100,7 @@ if(istype(target,/mob/living/carbon/human)) var/mob/living/carbon/human/H = T if(H.species.flags & NO_BLOOD) - usr << "You are unable to locate any blood." + to_chat(usr, "You are unable to locate any blood.") return if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space)) time = 60 @@ -114,7 +114,7 @@ var/amount = src.reagents.maximum_volume - src.reagents.total_volume if(amount == 0) - usr << "The syringe is full!" + to_chat(usr, "The syringe is full!") return var/datum/reagent/B @@ -133,7 +133,7 @@ src.on_reagent_change() src.reagents.handle_reactions() - user << "\blue You take a blood sample from [target]" + to_chat(user, "\blue You take a blood sample from [target]") for(var/mob/O in viewers(4, user)) O.show_message("\red [user] takes a blood sample from [target].", 1) else @@ -141,47 +141,47 @@ else //if not mob if(!target.reagents.total_volume) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return if(!target.is_open_container() && !istype(target,/obj/structure/reagent_dispensers) && !istype(target,/obj/item/slime_extract)) - user << "\red You cannot directly remove reagents from this object." + to_chat(user, "\red You cannot directly remove reagents from this object.") return var/trans = target.reagents.trans_to(src, amount_per_transfer_from_this) // transfer from, transfer to - who cares? - user << "\blue You fill the syringe with [trans] units of the solution." + to_chat(user, "\blue You fill the syringe with [trans] units of the solution.") if (reagents.total_volume >= reagents.maximum_volume) mode=!mode update_icon() if(SYRINGE_INJECT) if(!reagents.total_volume) - user << "\red The Syringe is empty." + to_chat(user, "\red The Syringe is empty.") return if(istype(target, /obj/item/weapon/implantcase/chem)) return if(!target.is_open_container() && !ismob(target) && !istype(target, /obj/item/weapon/reagent_containers/food) && !istype(target, /obj/item/slime_extract) && !istype(target, /obj/item/clothing/mask/cigarette) && !istype(target, /obj/item/weapon/storage/fancy/cigarettes)) - user << "\red You cannot directly fill this object." + to_chat(user, "\red You cannot directly fill this object.") return if(istype(target, /obj/item/clothing/mask/cigarette)) var/obj/item/clothing/mask/cigarette/C = target if(istype(C.loc, /obj/item/weapon/storage/fancy/cigarettes)) - user << "\red You cannot inject a cigarette while it's still in the pack." + to_chat(user, "\red You cannot inject a cigarette while it's still in the pack.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red [target] is full." + to_chat(user, "\red [target] is full.") return var/mob/living/carbon/human/H = target if(istype(H)) var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting) if(!affected) - user << "\The [H] is missing that limb!" + to_chat(user, "\The [H] is missing that limb!") return /* else if(affected.status & ORGAN_ROBOT) - user << "You cannot inject a robotic limb." + to_chat(user, "You cannot inject a robotic limb.") return */ if(ismob(target) && target != user) @@ -256,7 +256,7 @@ C.inject_blood(src,5) else trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You inject [trans] units of the solution. The syringe now contains [src.reagents.total_volume] units." + to_chat(user, "\blue You inject [trans] units of the solution. The syringe now contains [src.reagents.total_volume] units.") if (reagents.total_volume <= 0 && mode==SYRINGE_INJECT) mode = SYRINGE_DRAW update_icon() @@ -307,7 +307,7 @@ var/obj/item/organ/external/affecting = target:get_organ(target_zone) if (!affecting || (affecting.status & ORGAN_DESTROYED) || affecting.is_stump()) - user << "They are missing that limb!" + to_chat(user, "They are missing that limb!") return var/hit_area = affecting.name @@ -385,40 +385,40 @@ if(SYRINGE_DRAW) if(reagents.total_volume >= reagents.maximum_volume) - user << "\red The syringe is full." + to_chat(user, "\red The syringe is full.") return if(ismob(target)) if(istype(target, /mob/living/carbon))//I Do not want it to suck 50 units out of people - usr << "This needle isn't designed for drawing blood." + to_chat(usr, "This needle isn't designed for drawing blood.") return else //if not mob if(!target.reagents.total_volume) - user << "\red [target] is empty." + to_chat(user, "\red [target] is empty.") return if(!target.is_open_container() && !istype(target,/obj/structure/reagent_dispensers)) - user << "\red You cannot directly remove reagents from this object." + to_chat(user, "\red You cannot directly remove reagents from this object.") return var/trans = target.reagents.trans_to(src, amount_per_transfer_from_this) // transfer from, transfer to - who cares? - user << "\blue You fill the syringe with [trans] units of the solution." + to_chat(user, "\blue You fill the syringe with [trans] units of the solution.") if (reagents.total_volume >= reagents.maximum_volume) mode=!mode update_icon() if(SYRINGE_INJECT) if(!reagents.total_volume) - user << "\red The Syringe is empty." + to_chat(user, "\red The Syringe is empty.") return if(istype(target, /obj/item/weapon/implantcase/chem)) return if(!target.is_open_container() && !ismob(target) && !istype(target, /obj/item/weapon/reagent_containers/food)) - user << "\red You cannot directly fill this object." + to_chat(user, "\red You cannot directly fill this object.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\red [target] is full." + to_chat(user, "\red [target] is full.") return if(ismob(target) && target != user) @@ -432,7 +432,7 @@ src.reagents.reaction(target, INGEST) spawn(5) var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "\blue You inject [trans] units of the solution. The syringe now contains [src.reagents.total_volume] units." + to_chat(user, "\blue You inject [trans] units of the solution. The syringe now contains [src.reagents.total_volume] units.") if (reagents.total_volume >= reagents.maximum_volume && mode==SYRINGE_INJECT) mode = SYRINGE_DRAW update_icon() diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm index ed2809896c7..23f09e6c95b 100644 --- a/code/modules/reagents/reagent_dispenser.dm +++ b/code/modules/reagents/reagent_dispenser.dm @@ -26,12 +26,12 @@ /obj/structure/reagent_dispensers/examine(mob/user) if(!..(user, 2)) return - user << "\blue It contains:" + to_chat(user, "\blue It contains:") if(reagents && reagents.reagent_list.len) for(var/datum/reagent/R in reagents.reagent_list) - user << "\blue [R.volume] units of [R.name]" + to_chat(user, "\blue [R.volume] units of [R.name]") else - user << "\blue Nothing." + to_chat(user, "\blue Nothing.") /obj/structure/reagent_dispensers/verb/set_APTFT() //set amount_per_transfer_from_this set name = "Set transfer amount" @@ -115,7 +115,7 @@ if(!..(user, 2)) return if(rig) - usr << "There is some kind of device rigged to the tank." + to_chat(usr, "There is some kind of device rigged to the tank.") /obj/structure/reagent_dispensers/fueltank/attack_hand() if (rig) @@ -129,7 +129,7 @@ /obj/structure/reagent_dispensers/fueltank/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W,/obj/item/device/assembly_holder) && accepts_rig) if (rig) - user << "\red There is another device in the way." + to_chat(user, "\red There is another device in the way.") return ..() user.visible_message("[user] begins rigging [W] to \the [src].", "You begin rigging [W] to \the [src]") if(do_after(user, 20, target = src)) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index c4ba69dc71a..b093048d5e5 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -222,7 +222,7 @@ // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) if(!allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return diff --git a/code/modules/recycling/disposal-construction.dm b/code/modules/recycling/disposal-construction.dm index 10fb01573d5..948973bc3bc 100644 --- a/code/modules/recycling/disposal-construction.dm +++ b/code/modules/recycling/disposal-construction.dm @@ -90,7 +90,7 @@ return if(anchored) - usr << "You must unfasten the pipe before rotating it." + to_chat(usr, "You must unfasten the pipe before rotating it.") return dir = turn(dir, -90) @@ -103,7 +103,7 @@ return if(anchored) - usr << "You must unfasten the pipe before flipping it." + to_chat(usr, "You must unfasten the pipe before flipping it.") return dir = turn(dir, 180) @@ -164,17 +164,17 @@ var/turf/T = src.loc if(T.intact) - user << "You can only attach the [nicetype] if the floor plating is removed." + to_chat(user, "You can only attach the [nicetype] if the floor plating is removed.") return var/obj/structure/disposalpipe/CP = locate() in T if(ptype>=6 && ptype <= 8) // Disposal or outlet if(CP) // There's something there if(!istype(CP,/obj/structure/disposalpipe/trunk)) - user << "The [nicetype] requires a trunk underneath it in order to work." + to_chat(user, "The [nicetype] requires a trunk underneath it in order to work.") return else // Nothing under, fuck. - user << "The [nicetype] requires a trunk underneath it in order to work." + to_chat(user, "The [nicetype] requires a trunk underneath it in order to work.") return else if(CP) @@ -183,7 +183,7 @@ if(istype(CP, /obj/structure/disposalpipe/broken)) pdir = CP.dir if(pdir & dpdir) - user << "There is already a [nicetype] at that location." + to_chat(user, "There is already a [nicetype] at that location.") return @@ -195,7 +195,7 @@ density = 0 else density = 1 - user << "You detach the [nicetype] from the underfloor." + to_chat(user, "You detach the [nicetype] from the underfloor.") else anchored = 1 if(ispipe) @@ -203,7 +203,7 @@ density = 0 else density = 1 // We don't want disposal bins or outlets to go density 0 - user << "You attach the [nicetype] to the underfloor." + to_chat(user, "You attach the [nicetype] to the underfloor.") playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1) update() @@ -212,10 +212,10 @@ var/obj/item/weapon/weldingtool/W = I if(W.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) - user << "Welding the [nicetype] in place." + to_chat(user, "Welding the [nicetype] in place.") if(do_after(user, 20, target = src)) if(!src || !W.isOn()) return - user << "The [nicetype] has been welded in place!" + to_chat(user, "The [nicetype] has been welded in place!") update() // TODO: Make this neat if(ispipe) // Pipe @@ -254,8 +254,8 @@ qdel(src) return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return else - user << "You need to attach it to the plating first!" + to_chat(user, "You need to attach it to the plating first!") return diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index ce5ca78ebe0..4301d393391 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -69,30 +69,30 @@ if(mode<=0) // It's off if(istype(I, /obj/item/weapon/screwdriver)) if(contents.len > 0) - user << "Eject the items first!" + to_chat(user, "Eject the items first!") return if(mode==0) // It's off but still not unscrewed mode=-1 // Set it to doubleoff l0l playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You remove the screws around the power connection." + to_chat(user, "You remove the screws around the power connection.") return else if(mode==-1) mode=0 playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You attach the screws around the power connection." + to_chat(user, "You attach the screws around the power connection.") return else if(istype(I,/obj/item/weapon/weldingtool) && mode==-1) if(contents.len > 0) - user << "Eject the items first!" + to_chat(user, "Eject the items first!") return var/obj/item/weapon/weldingtool/W = I if(W.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) - user << "You start slicing the floorweld off the disposal unit." + to_chat(user, "You start slicing the floorweld off the disposal unit.") if(do_after(user,20, target = src)) if(!src || !W.isOn()) return - user << "You sliced the floorweld off the disposal unit." + to_chat(user, "You sliced the floorweld off the disposal unit.") var/obj/structure/disposalconstruct/C = new (src.loc) src.transfer_fingerprints_to(C) C.ptype = 6 // 6 = disposal unit @@ -102,11 +102,11 @@ qdel(src) return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return if(istype(I, /obj/item/weapon/melee/energy/blade)) - user << "You can't place that item inside the disposal unit." + to_chat(user, "You can't place that item inside the disposal unit.") return if(istype(I, /obj/item/weapon/storage)) @@ -146,7 +146,7 @@ if(I) I.loc = src - user << "You place \the [I] into the [src]." + to_chat(user, "You place \the [I] into the [src].") for(var/mob/M in viewers(src)) if(M == user) continue @@ -176,10 +176,10 @@ if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis) // if drop self, then climbed in // must be awake, not stunned or whatever msg = "[user.name] climbs into the [src]." - user << "You climb into the [src]." + to_chat(user, "You climb into the [src].") else if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis) msg = "[user.name] stuffs [target.name] into the [src]!" - user << "You stuff [target.name] into the [src]!" + to_chat(user, "You stuff [target.name] into the [src]!") user.attack_log += text("\[[time_stamp()]\] Has placed [key_name(target)] in disposals.") target.attack_log += text("\[[time_stamp()]\] Has been placed in disposals by [key_name(user)]") @@ -239,7 +239,7 @@ return if(user && user.loc == src) - usr << "\red You cannot reach the controls from inside." + to_chat(usr, "\red You cannot reach the controls from inside.") return // Clumsy folks can only flush it. @@ -279,11 +279,11 @@ /obj/machinery/disposal/Topic(href, href_list) if(usr.loc == src) - usr << "\red You cannot reach the controls from inside." + to_chat(usr, "\red You cannot reach the controls from inside.") return if(mode==-1 && !href_list["eject"]) // only allow ejecting if mode is -1 - usr << "\red The disposal units power is disabled." + to_chat(usr, "\red The disposal units power is disabled.") return if(..()) @@ -636,7 +636,7 @@ if (src.loc) for (var/mob/M in hearers(src.loc.loc)) - M << "CLONG, clong!" + to_chat(M, "CLONG, clong!") playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0) @@ -884,15 +884,15 @@ // check if anything changed over 2 seconds var/turf/uloc = user.loc var/atom/wloc = W.loc - user << "Slicing the disposal pipe." + to_chat(user, "Slicing the disposal pipe.") sleep(30) if(!W.isOn()) return if(user.loc == uloc && wloc == W.loc) welded() else - user << "You must stay still while welding the pipe." + to_chat(user, "You must stay still while welding the pipe.") else - user << "You need more welding fuel to cut the pipe." + to_chat(user, "You need more welding fuel to cut the pipe.") return // called when pipe is cut with welder @@ -1032,7 +1032,7 @@ sortType = O.currTag playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1) var/tag = uppertext(TAGGERLOCATIONS[O.currTag]) - user << "\blue Changed filter to [tag]" + to_chat(user, "\blue Changed filter to [tag]") updatedesc() @@ -1200,15 +1200,15 @@ // check if anything changed over 2 seconds var/turf/uloc = user.loc var/atom/wloc = W.loc - user << "Slicing the disposal pipe." + to_chat(user, "Slicing the disposal pipe.") sleep(30) if(!W.isOn()) return if(user.loc == uloc && wloc == W.loc) welded() else - user << "You must stay still while welding the pipe." + to_chat(user, "You must stay still while welding the pipe.") else - user << "You need more welding fuel to cut the pipe." + to_chat(user, "You need more welding fuel to cut the pipe.") return // would transfer to next pipe segment, but we are in a trunk @@ -1315,21 +1315,21 @@ if(mode==0) mode=1 playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You remove the screws around the power connection." + to_chat(user, "You remove the screws around the power connection.") return else if(mode==1) mode=0 playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You attach the screws around the power connection." + to_chat(user, "You attach the screws around the power connection.") return else if(istype(I,/obj/item/weapon/weldingtool) && mode==1) var/obj/item/weapon/weldingtool/W = I if(W.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) - user << "You start slicing the floorweld off the disposal outlet." + to_chat(user, "You start slicing the floorweld off the disposal outlet.") if(do_after(user,20, target = src)) if(!src || !W.isOn()) return - user << "You sliced the floorweld off the disposal outlet." + to_chat(user, "You sliced the floorweld off the disposal outlet.") var/obj/structure/disposalconstruct/C = new (src.loc) src.transfer_fingerprints_to(C) C.ptype = 7 // 7 = outlet @@ -1339,7 +1339,7 @@ qdel(src) return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 07c245d889d..f10a50be115 100755 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -31,14 +31,14 @@ if(sortTag != O.currTag) var/tag = uppertext(TAGGERLOCATIONS[O.currTag]) - user << "*[tag]*" + to_chat(user, "*[tag]*") sortTag = O.currTag playsound(loc, 'sound/machines/twobeep.ogg', 100, 1) else if(istype(W, /obj/item/weapon/pen)) var/str = copytext(sanitize(input(user,"Label text?","Set label","")),1,MAX_NAME_LEN) if(!str || !length(str)) - user << "Invalid text." + to_chat(user, "Invalid text.") return user.visible_message("[user] labels [src] as [str].") name = "[name] ([str])" @@ -55,7 +55,7 @@ if(WP.amount <= 0 && !WP.loc) //if we used our last wrapping paper, drop a cardboard tube new /obj/item/weapon/c_tube( get_turf(user) ) else - user << "You need more paper." + to_chat(user, "You need more paper.") /obj/item/smallDelivery @@ -85,14 +85,14 @@ if(sortTag != O.currTag) var/tag = uppertext(TAGGERLOCATIONS[O.currTag]) - user << "*[tag]*" + to_chat(user, "*[tag]*") sortTag = O.currTag playsound(loc, 'sound/machines/twobeep.ogg', 100, 1) else if(istype(W, /obj/item/weapon/pen)) var/str = copytext(sanitize(input(user,"Label text?","Set label","")),1,MAX_NAME_LEN) if(!str || !length(str)) - user << "Invalid text." + to_chat(user, "Invalid text.") return user.visible_message("[user] labels [src] as [str].") name = "[name] ([str])" @@ -106,7 +106,7 @@ if(WP.amount <= 0 && !WP.loc) //if we used our last wrapping paper, drop a cardboard tube new /obj/item/weapon/c_tube( get_turf(user) ) else - user << "You need more paper." + to_chat(user, "You need more paper.") @@ -161,7 +161,7 @@ P.wrapped = O O.loc = P else - user << "You need more paper." + to_chat(user, "You need more paper.") return else if(istype (target, /obj/structure/closet)) var/obj/structure/closet/O = target @@ -174,10 +174,10 @@ O.welded = 1 O.loc = P else - user << "You need more paper." + to_chat(user, "You need more paper.") return else - user << "The object you are trying to wrap is unsuitable for the sorting machinery." + to_chat(user, "The object you are trying to wrap is unsuitable for the sorting machinery.") return user.visible_message("[user] wraps [target].") @@ -307,21 +307,21 @@ if(c_mode==0) c_mode=1 playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You remove the screws around the power connection." + to_chat(user, "You remove the screws around the power connection.") return else if(c_mode==1) c_mode=0 playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) - user << "You attach the screws around the power connection." + to_chat(user, "You attach the screws around the power connection.") return else if(istype(I,/obj/item/weapon/weldingtool) && c_mode==1) var/obj/item/weapon/weldingtool/W = I if(W.remove_fuel(0,user)) playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) - user << "You start slicing the floorweld off the delivery chute." + to_chat(user, "You start slicing the floorweld off the delivery chute.") if(do_after(user,20, target = src)) if(!src || !W.isOn()) return - user << "You sliced the floorweld off the delivery chute." + to_chat(user, "You sliced the floorweld off the delivery chute.") var/obj/structure/disposalconstruct/C = new (src.loc) C.ptype = 8 // 8 = Delivery chute C.update() @@ -330,5 +330,5 @@ qdel(src) return else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return diff --git a/code/modules/research/circuitprinter.dm b/code/modules/research/circuitprinter.dm index 249b4956953..146f803edfb 100644 --- a/code/modules/research/circuitprinter.dm +++ b/code/modules/research/circuitprinter.dm @@ -119,26 +119,26 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis). default_deconstruction_crowbar(O) return else - user << "You can't load the [src.name] while it's opened." + to_chat(user, "You can't load the [src.name] while it's opened.") return if (disabled) return if (!linked_console) - user << "The [name] must be linked to an R&D console first!" + to_chat(user, "The [name] must be linked to an R&D console first!") return 1 if (O.is_open_container()) return if (!istype(O, /obj/item/stack/sheet/glass) && !istype(O, /obj/item/stack/sheet/mineral/gold) && !istype(O, /obj/item/stack/sheet/mineral/diamond)) - user << "You cannot insert this item into the [name]!" + to_chat(user, "You cannot insert this item into the [name]!") return if (stat) return if (busy) - user << "The [name] is busy. Please wait for completion of previous operation." + to_chat(user, "The [name] is busy. Please wait for completion of previous operation.") return var/obj/item/stack/sheet/stack = O if ((TotalMaterials() + stack.perunit) > max_material_amount) - user << "The [name] is full. Please remove glass from the protolathe in order to insert more." + to_chat(user, "The [name] is full. Please remove glass from the protolathe in order to insert more.") return var/amount = round(input("How many sheets do you want to add?") as num) @@ -149,7 +149,7 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis). busy = 1 use_power(max(1000, (MINERAL_MATERIAL_AMOUNT*amount/10))) - user << "You add [amount] sheets to the [src.name]." + to_chat(user, "You add [amount] sheets to the [src.name].") if(istype(stack, /obj/item/stack/sheet/glass)) g_amount += amount * MINERAL_MATERIAL_AMOUNT else if(istype(stack, /obj/item/stack/sheet/mineral/gold)) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 0ffec90b1ec..5a3bba6ae86 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -63,26 +63,26 @@ Note: Must be placed within 3 tiles of the R&D Console if (disabled) return if (!linked_console) - user << "The [src.name] must be linked to an R&D console first!" + to_chat(user, "The [src.name] must be linked to an R&D console first!") return if (busy) - user << "The [src.name] is busy right now." + to_chat(user, "The [src.name] is busy right now.") return if (istype(O, /obj/item) && !loaded_item) if(!O.origin_tech) - user << "This doesn't seem to have a tech origin!" + to_chat(user, "This doesn't seem to have a tech origin!") return var/list/temp_tech = ConvertReqString2List(O.origin_tech) if (temp_tech.len == 0) - user << "You cannot deconstruct this item!" + to_chat(user, "You cannot deconstruct this item!") return if(!user.drop_item()) - user << "\The [O] is stuck to your hand, you cannot put it in the [src.name]!" + to_chat(user, "\The [O] is stuck to your hand, you cannot put it in the [src.name]!") return busy = 1 loaded_item = O O.loc = src - user << "You add the [O.name] to the [src.name]!" + to_chat(user, "You add the [O.name] to the [src.name]!") flick("d_analyzer_la", src) spawn(10) icon_state = "d_analyzer_l" diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index d7955228168..f0e3c089cfd 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -129,33 +129,33 @@ return if(!checkCircumstances(O)) - user << "The [O] is not yet valid for the [src] and must be completed!" + to_chat(user, "The [O] is not yet valid for the [src] and must be completed!") return if (disabled) return if (!linked_console) - user << "The [src] must be linked to an R&D console first!" + to_chat(user, "The [src] must be linked to an R&D console first!") return if (loaded_item) - user << "The [src] is already loaded." + to_chat(user, "The [src] is already loaded.") return if (istype(O, /obj/item)) if(!O.origin_tech) - user << "This doesn't seem to have a tech origin!" + to_chat(user, "This doesn't seem to have a tech origin!") return var/list/temp_tech = ConvertReqString2List(O.origin_tech) if (temp_tech.len == 0) - user << "You cannot experiment on this item!" + to_chat(user, "You cannot experiment on this item!") return if(O.reliability < 90 && O.crit_fail == 0) - usr << "Item is neither reliable enough or broken enough to learn from." + to_chat(usr, "Item is neither reliable enough or broken enough to learn from.") return if(!user.drop_item()) return loaded_item = O O.loc = src - user << "You add the [O.name] to the machine." + to_chat(user, "You add the [O.name] to the machine.") flick("h_lathe_load", src) return @@ -510,7 +510,7 @@ if(globalMalf > 36 && globalMalf < 50) visible_message("[src] improves [exp_on], drawing the life essence of those nearby!") for(var/mob/living/m in view(4,src)) - m << "You feel your flesh being torn from you, mists of blood drifting to [src]!" + to_chat(m, "You feel your flesh being torn from you, mists of blood drifting to [src]!") m.take_overall_damage(50) investigate_log("Experimentor has taken 50 brute a blood sacrifice from [m]", "experimentor") var/list/reqs = ConvertReqString2List(exp_on.origin_tech) @@ -559,15 +559,15 @@ src.updateUsrDialog() else if(recentlyExperimented) - usr << "[src] has been used too recently!" + to_chat(usr, "[src] has been used too recently!") return else if(!loaded_item) updateUsrDialog() //Set the interface to unloaded mode - usr << "[src] is not currently loaded!" + to_chat(usr, "[src] is not currently loaded!") return else if(!process || process != loaded_item) //Interface exploit protection (such as hrefs or swapping items with interface set to old item) updateUsrDialog() //Refresh interface to update interface hrefs - usr << "Interface failure detected in [src]. Please try again." + to_chat(usr, "Interface failure detected in [src]. Please try again.") return var/dotype if(text2num(scantype) == SCANTYPE_DISCOVER) @@ -639,7 +639,7 @@ /obj/item/weapon/relic/attack_self(mob/user) if(revealed) if(cooldown) - user << "[src] does not react!" + to_chat(user, "[src] does not react!") return else if(src.loc == user) cooldown = TRUE @@ -647,7 +647,7 @@ spawn(cooldownMax) cooldown = FALSE else - user << "You aren't quite sure what to do with this, yet." + to_chat(user, "You aren't quite sure what to do with this, yet.") //////////////// RELIC PROCS ///////////////////////////// @@ -678,7 +678,7 @@ /obj/item/weapon/relic/proc/petSpray(mob/user) var/message = "[src] begans to shake, and in the distance the sound of rampaging animals arises!" visible_message(message) - user << message + to_chat(user, message) var/animals = rand(1,25) var/counter var/list/valid_animals = list(/mob/living/simple_animal/parrot,/mob/living/simple_animal/butterfly,/mob/living/simple_animal/pet/cat,/mob/living/simple_animal/pet/corgi,/mob/living/simple_animal/crab,/mob/living/simple_animal/pet/fox,/mob/living/simple_animal/lizard,/mob/living/simple_animal/mouse,/mob/living/simple_animal/pet/pug,/mob/living/simple_animal/hostile/bear,/mob/living/simple_animal/hostile/poison/bees,/mob/living/simple_animal/hostile/carp) @@ -687,7 +687,7 @@ new mobType(get_turf(src)) warn_admins(user, "Mass Mob Spawn") if(prob(60)) - user << "[src] falls apart!" + to_chat(user, "[src] falls apart!") qdel(src) /obj/item/weapon/relic/proc/rapidDupe(mob/user) @@ -713,7 +713,7 @@ warn_admins(user, "Rapid duplicator", 0) /obj/item/weapon/relic/proc/explode(mob/user) - user << "[src] begins to heat up!" + to_chat(user, "[src] begins to heat up!") spawn(rand(35,100)) if(src.loc == user) visible_message("The [src]'s top opens, releasing a powerful blast!") @@ -722,7 +722,7 @@ qdel(src) //Comment this line to produce a light grenade (the bomb that keeps on exploding when used)!! /obj/item/weapon/relic/proc/teleport(mob/user) - user << "The [src] begins to vibrate!" + to_chat(user, "The [src] begins to vibrate!") spawn(rand(10,30)) var/turf/userturf = get_turf(user) if(src.loc == user && userturf.z != ZLEVEL_CENTCOMM) //Because Nuke Ops bringing this back on their shuttle, then looting the ERT area is 2fun4you! diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm index 9744e726cdc..a528c643809 100644 --- a/code/modules/research/message_server.dm +++ b/code/modules/research/message_server.dm @@ -113,8 +113,8 @@ var/global/list/obj/machinery/message_server/message_servers = list() Console.set_light(2) /obj/machinery/message_server/attack_hand(user as mob) -// user << "\blue There seem to be some parts missing from this server. They should arrive on the station in a few days, give or take a few CentComm delays." - user << "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]" +// to_chat(user, "\blue There seem to be some parts missing from this server. They should arrive on the station in a few days, give or take a few CentComm delays.") + to_chat(user, "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]") active = !active update_icon() diff --git a/code/modules/research/protolathe.dm b/code/modules/research/protolathe.dm index ae0bfd6ce7d..16748fbb46b 100644 --- a/code/modules/research/protolathe.dm +++ b/code/modules/research/protolathe.dm @@ -112,15 +112,15 @@ Note: Must be placed west/left of and R&D console to function. default_deconstruction_crowbar(O) return 1 else - user << "You can't load the [src.name] while it's opened." + to_chat(user, "You can't load the [src.name] while it's opened.") return 1 if (disabled) return if (!linked_console) - user << " The [src.name] must be linked to an R&D console first!" + to_chat(user, " The [src.name] must be linked to an R&D console first!") return 1 if (busy) - user << "The [src.name] is busy. Please wait for completion of previous operation." + to_chat(user, "The [src.name] is busy. Please wait for completion of previous operation.") return 1 if (O.is_open_container()) return @@ -130,7 +130,7 @@ Note: Must be placed west/left of and R&D console to function. return 1 if(!materials.has_space( materials.get_item_material_amount(O) )) - user << "The [src.name]'s material bin is full! Please remove material before adding more." + to_chat(user, "The [src.name]'s material bin is full! Please remove material before adding more.") return 1 var/obj/item/stack/sheet/stack = O @@ -143,7 +143,7 @@ Note: Must be placed west/left of and R&D console to function. else busy = 1 use_power(max(1000, (MINERAL_MATERIAL_AMOUNT*amount_inserted/10))) - user << "You add [amount_inserted] sheets to the [src.name]." + to_chat(user, "You add [amount_inserted] sheets to the [src.name].") var/stackname = stack.name src.overlays += "protolathe_[stackname]" sleep(10) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index aac1b19960a..c294ad8cff1 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -159,18 +159,18 @@ proc/CallMaterialName(ID) //Loading a disk into it. if(istype(D, /obj/item/weapon/disk)) if(t_disk || d_disk) - user << "A disk is already loaded into the machine." + to_chat(user, "A disk is already loaded into the machine.") return if(istype(D, /obj/item/weapon/disk/tech_disk)) t_disk = D else if (istype(D, /obj/item/weapon/disk/design_disk)) d_disk = D else - user << "Machine cannot accept disks in that format." + to_chat(user, "Machine cannot accept disks in that format.") return if(!user.drop_item()) return D.loc = src - user << "You add the disk to the machine!" + to_chat(user, "You add the disk to the machine!") else ..() src.updateUsrDialog() @@ -181,7 +181,7 @@ proc/CallMaterialName(ID) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) req_access = list() emagged = 1 - user << "You disable the security protocols" + to_chat(user, "You disable the security protocols") /obj/machinery/computer/rdconsole/Topic(href, href_list) if(..()) @@ -264,7 +264,7 @@ proc/CallMaterialName(ID) else if(href_list["eject_item"]) //Eject the item inside the destructive analyzer. if(linked_destroy) if(linked_destroy.busy) - usr << " The destructive analyzer is busy at the moment." + to_chat(usr, " The destructive analyzer is busy at the moment.") else if(linked_destroy.loaded_item) linked_destroy.loaded_item.loc = linked_destroy.loc @@ -289,7 +289,7 @@ proc/CallMaterialName(ID) else if(href_list["deconstruct"]) //Deconstruct the item in the destructive analyzer and update the research holder. if(linked_destroy) if(linked_destroy.busy) - usr << "The destructive analyzer is busy at the moment." + to_chat(usr, "The destructive analyzer is busy at the moment.") else var/choice = input("Proceeding will destroy loaded item.") in list("Proceed", "Cancel") if(choice == "Cancel" || !linked_destroy) return @@ -302,7 +302,7 @@ proc/CallMaterialName(ID) linked_destroy.busy = 0 if(!linked_destroy.hacked) if(!linked_destroy.loaded_item) - usr <<"The destructive analyzer appears to be empty." + to_chat(usr, "The destructive analyzer appears to be empty.") screen = 1.0 return if((linked_destroy.loaded_item.reliability >= 99 - (linked_destroy.decon_mod * 3)) || linked_destroy.loaded_item.crit_fail) @@ -341,7 +341,7 @@ proc/CallMaterialName(ID) else if(href_list["sync"]) //Sync the research holder with all the R&D consoles in the game that aren't sync protected. screen = 0.0 if(!sync) - usr << "You must connect to the network first!" + to_chat(usr, "You must connect to the network first!") else griefProtection() //Putting this here because I dont trust the sync process spawn(30) @@ -638,7 +638,7 @@ proc/CallMaterialName(ID) if(..()) return 1 if(!allowed(user) && !isobserver(user)) - user << "Access denied." + to_chat(user, "Access denied.") return 1 interact(user) diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm index 4f0b81e5315..79eca347423 100644 --- a/code/modules/research/rdmachines.dm +++ b/code/modules/research/rdmachines.dm @@ -59,10 +59,10 @@ if(href_list["pulse"]) var/temp_wire = href_list["wire"] if (!istype(usr.get_active_hand(), /obj/item/device/multitool)) - usr << "You need a multitool!" + to_chat(usr, "You need a multitool!") else if(src.wires[temp_wire]) - usr << "You can't pulse a cut wire." + to_chat(usr, "You can't pulse a cut wire.") else if(src.hack_wire == href_list["wire"]) src.hacked = !src.hacked @@ -77,7 +77,7 @@ spawn(100) src.shocked = !src.shocked if(href_list["cut"]) if (!istype(usr.get_active_hand(), /obj/item/weapon/wirecutters)) - usr << "You need wirecutters!" + to_chat(usr, "You need wirecutters!") else var/temp_wire = href_list["wire"] wires[temp_wire] = !wires[temp_wire] diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 7d88f65af04..3bd5bad2f57 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -209,7 +209,7 @@ add_fingerprint(usr) usr.set_machine(src) if(!src.allowed(usr) && !emagged) - usr << "\red You do not have the required access level" + to_chat(usr, "\red You do not have the required access level") return if(href_list["main"]) @@ -337,7 +337,7 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "\blue You you disable the security protocols" + to_chat(user, "\blue You you disable the security protocols") src.updateUsrDialog() /obj/machinery/r_n_d/server/core diff --git a/code/modules/research/xenoarchaeology/artifact/artifact.dm b/code/modules/research/xenoarchaeology/artifact/artifact.dm index 817baf70e16..3087ad35a72 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact.dm @@ -81,18 +81,18 @@ var/obj/item/device/measuring_tape/P = W user.visible_message("\blue[user] extends [P] towards [src].","\blue You extend [P] towards [src].") if(do_after(user,40, target = src)) - user << "\blue \icon[P] [src] has been excavated to a depth of [2*src.excavation_level]cm." + to_chat(user, "\blue \icon[P] [src] has been excavated to a depth of [2*src.excavation_level]cm.") return if (istype(W, /obj/item/weapon/pickaxe)) var/obj/item/weapon/pickaxe/P = W - user << "\red You start [P.drill_verb] [src]." + to_chat(user, "\red You start [P.drill_verb] [src].") if(!do_after(user,P.digspeed, target = src)) return - user << "\blue You finish [P.drill_verb] [src]." + to_chat(user, "\blue You finish [P.drill_verb] [src].") excavation_level += P.excavation_amount if(excavation_level > 100) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm b/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm index 9d52c9c2dc0..d93b8f3573f 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm @@ -14,11 +14,11 @@ if(active) active = 0 icon_state = "gigadrill" - user << "\blue You press a button and [src] slowly spins down." + to_chat(user, "\blue You press a button and [src] slowly spins down.") else active = 1 icon_state = "gigadrill_mov" - user << "\blue You press a button and [src] shudders to life." + to_chat(user, "\blue You press a button and [src] shudders to life.") /obj/machinery/giga_drill/Bump(atom/A) if(active && !drilling_turf) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_unknown.dm b/code/modules/research/xenoarchaeology/artifact/artifact_unknown.dm index 23f9f73afde..d9041733d57 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_unknown.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_unknown.dm @@ -221,19 +221,19 @@ var/list/valid_secondary_effect_types = list(\ /obj/machinery/artifact/attack_hand(var/mob/user as mob) if (get_dist(user, src) > 1) - user << "\red You can't reach [src] from here." + to_chat(user, "\red You can't reach [src] from here.") return if(ishuman(user) && user:gloves) - user << "You touch [src] with your gloved hands, [pick("but nothing of note happens","but nothing happens","but nothing interesting happens","but you notice nothing different","but nothing seems to have happened")]." + to_chat(user, "You touch [src] with your gloved hands, [pick("but nothing of note happens","but nothing happens","but nothing interesting happens","but you notice nothing different","but nothing seems to have happened")].") return src.add_fingerprint(user) if(my_effect.trigger == TRIGGER_TOUCH) - user << "You touch [src]." + to_chat(user, "You touch [src].") my_effect.ToggleActivate() else - user << "You touch [src], [pick("but nothing of note happens","but nothing happens","but nothing interesting happens","but you notice nothing different","but nothing seems to have happened")]." + to_chat(user, "You touch [src], [pick("but nothing of note happens","but nothing happens","but nothing interesting happens","but you notice nothing different","but nothing seems to have happened")].") if(prob(25) && secondary_effect && secondary_effect.trigger == TRIGGER_TOUCH) secondary_effect.ToggleActivate(0) @@ -317,7 +317,7 @@ var/list/valid_secondary_effect_types = list(\ warn = 1 if(warn) - M << "You accidentally touch [src]." + to_chat(M, "You accidentally touch [src].") ..() /obj/machinery/artifact/bullet_act(var/obj/item/projectile/P) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_affect_cold.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_affect_cold.dm index f8dad2c4d36..89c74776f55 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_affect_cold.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_affect_cold.dm @@ -12,7 +12,7 @@ /datum/artifact_effect/cold/DoEffectTouch(var/mob/user) if(holder) - user << "\blue A chill passes up your spine!" + to_chat(user, "\blue A chill passes up your spine!") var/datum/gas_mixture/env = holder.loc.return_air() if(env) env.temperature = max(env.temperature - rand(5,50), 0) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_badfeeling.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_badfeeling.dm index 1244f802cc6..93a025336a0 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_badfeeling.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_badfeeling.dm @@ -32,9 +32,9 @@ var/mob/living/carbon/human/H = user if(prob(50)) if(prob(75)) - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") else - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") if(prob(50)) H.dizziness += rand(3,5) @@ -45,9 +45,9 @@ for (var/mob/living/carbon/human/H in range(src.effectrange,T)) if(prob(5)) if(prob(75)) - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") else - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") if(prob(10)) H.dizziness += rand(3,5) @@ -59,9 +59,9 @@ for (var/mob/living/carbon/human/H in range(src.effectrange,T)) if(prob(50)) if(prob(95)) - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") else - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") if(prob(50)) H.dizziness += rand(3,5) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_cellcharge.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_cellcharge.dm index da7f1a012ee..ab66d1d0c6c 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_cellcharge.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_cellcharge.dm @@ -10,7 +10,7 @@ var/mob/living/silicon/robot/R = user for (var/obj/item/weapon/stock_parts/cell/D in R.contents) D.charge += rand() * 100 + 50 - R << "\blue SYSTEM ALERT: Large energy boost detected!" + to_chat(R, "\blue SYSTEM ALERT: Large energy boost detected!") return 1 /datum/artifact_effect/cellcharge/DoEffectAura() @@ -24,7 +24,7 @@ for (var/mob/living/silicon/robot/M in mob_list) for (var/obj/item/weapon/stock_parts/cell/D in M.contents) D.charge += 25 - M << "\blue SYSTEM ALERT: Energy boost detected!" + to_chat(M, "\blue SYSTEM ALERT: Energy boost detected!") return 1 /datum/artifact_effect/cellcharge/DoEffectPulse() @@ -38,5 +38,5 @@ for (var/mob/living/silicon/robot/M in mob_list) for (var/obj/item/weapon/stock_parts/cell/D in M.contents) D.charge += rand() * 100 - M << "\blue SYSTEM ALERT: Energy boost detected!" + to_chat(M, "\blue SYSTEM ALERT: Energy boost detected!") return 1 diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_celldrain.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_celldrain.dm index 025cdec5ee0..97c113b2fef 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_celldrain.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_celldrain.dm @@ -10,7 +10,7 @@ var/mob/living/silicon/robot/R = user for (var/obj/item/weapon/stock_parts/cell/D in R.contents) D.charge = max(D.charge - rand() * 100, 0) - R << "\blue SYSTEM ALERT: Energy drain detected!" + to_chat(R, "\blue SYSTEM ALERT: Energy drain detected!") return 1 return 1 @@ -26,7 +26,7 @@ for (var/mob/living/silicon/robot/M in mob_list) for (var/obj/item/weapon/stock_parts/cell/D in M.contents) D.charge = max(D.charge - 50,0) - M << "\red SYSTEM ALERT: Energy drain detected!" + to_chat(M, "\red SYSTEM ALERT: Energy drain detected!") return 1 /datum/artifact_effect/celldrain/DoEffectPulse() @@ -40,5 +40,5 @@ for (var/mob/living/silicon/robot/M in mob_list) for (var/obj/item/weapon/stock_parts/cell/D in M.contents) D.charge = max(D.charge - rand() * 150,0) - M << "\red SYSTEM ALERT: Energy drain detected!" + to_chat(M, "\red SYSTEM ALERT: Energy drain detected!") return 1 diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_dnaswitch.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_dnaswitch.dm index b74ab88a9a1..d005fb9e64c 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_dnaswitch.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_dnaswitch.dm @@ -15,13 +15,13 @@ /datum/artifact_effect/dnaswitch/DoEffectTouch(var/mob/toucher) var/weakness = GetAnomalySusceptibility(toucher) if(ishuman(toucher) && prob(weakness * 100)) - toucher << pick("\green You feel a little different.",\ - "\green You feel very strange.",\ - "\green Your stomach churns.",\ - "\green Your skin feels loose.",\ - "\green You feel a stabbing pain in your head.",\ - "\green You feel a tingling sensation in your chest.",\ - "\green Your entire body vibrates.") + to_chat(toucher, pick("\green You feel a little different.", + "\green You feel very strange.", + "\green Your stomach churns.", + "\green Your skin feels loose.", + "\green You feel a stabbing pain in your head.", + "\green You feel a tingling sensation in your chest.", + "\green Your entire body vibrates.")) if(prob(75)) scramble(1, toucher, weakness * severity) else @@ -35,13 +35,13 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(30)) - H << pick("\green You feel a little different.",\ - "\green You feel very strange.",\ - "\green Your stomach churns.",\ - "\green Your skin feels loose.",\ - "\green You feel a stabbing pain in your head.",\ - "\green You feel a tingling sensation in your chest.",\ - "\green Your entire body vibrates.") + to_chat(H, pick("\green You feel a little different.", + "\green You feel very strange.", + "\green Your stomach churns.", + "\green Your skin feels loose.", + "\green You feel a stabbing pain in your head.", + "\green You feel a tingling sensation in your chest.", + "\green Your entire body vibrates.")) if(prob(50)) scramble(1, H, weakness * severity) else @@ -54,13 +54,13 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(75)) - H << pick("\green You feel a little different.",\ - "\green You feel very strange.",\ - "\green Your stomach churns.",\ - "\green Your skin feels loose.",\ - "\green You feel a stabbing pain in your head.",\ - "\green You feel a tingling sensation in your chest.",\ - "\green Your entire body vibrates.") + to_chat(H, pick("\green You feel a little different.", + "\green You feel very strange.", + "\green Your stomach churns.", + "\green Your skin feels loose.", + "\green You feel a stabbing pain in your head.", + "\green You feel a tingling sensation in your chest.", + "\green Your entire body vibrates.")) if(prob(25)) if(prob(75)) scramble(1, H, weakness * severity) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_goodfeeling.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_goodfeeling.dm index bc45260b2cc..f52e8125e3f 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_goodfeeling.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_goodfeeling.dm @@ -30,9 +30,9 @@ var/mob/living/carbon/human/H = user if(prob(50)) if(prob(75)) - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") else - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") if(prob(50)) H.dizziness += rand(3,5) @@ -43,9 +43,9 @@ for (var/mob/living/carbon/human/H in range(src.effectrange,T)) if(prob(5)) if(prob(75)) - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") else - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") if(prob(5)) H.dizziness += rand(3,5) @@ -57,9 +57,9 @@ for (var/mob/living/carbon/human/H in range(src.effectrange,T)) if(prob(50)) if(prob(95)) - H << "[pick(drastic_messages)]" + to_chat(H, "[pick(drastic_messages)]") else - H << "[pick(messages)]" + to_chat(H, "[pick(messages)]") if(prob(50)) H.dizziness += rand(3,5) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heal.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heal.dm index 003250399e9..c46549d0d50 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heal.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heal.dm @@ -9,7 +9,7 @@ var/weakness = GetAnomalySusceptibility(toucher) if(prob(weakness * 100)) var/mob/living/carbon/C = toucher - C << "\blue You feel a soothing energy invigorate you." + to_chat(C, "\blue You feel a soothing energy invigorate you.") if(ishuman(toucher)) var/mob/living/carbon/human/H = toucher @@ -42,7 +42,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - C << "\blue You feel a soothing energy radiating from something nearby." + to_chat(C, "\blue You feel a soothing energy radiating from something nearby.") C.adjustBruteLoss(-1 * weakness) C.adjustFireLoss(-1 * weakness) C.adjustToxLoss(-1 * weakness) @@ -57,7 +57,7 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - C << "\blue A wave of energy invigorates you." + to_chat(C, "\blue A wave of energy invigorates you.") C.adjustBruteLoss(-5 * weakness) C.adjustFireLoss(-5 * weakness) C.adjustToxLoss(-5 * weakness) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heat.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heat.dm index 21304df4082..86828f7ef39 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heat.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_heat.dm @@ -15,7 +15,7 @@ /datum/artifact_effect/heat/DoEffectTouch(var/mob/user) if(holder) - user << "\red You feel a wave of heat travel up your spine!" + to_chat(user, "\red You feel a wave of heat travel up your spine!") var/datum/gas_mixture/env = holder.loc.return_air() if(env) env.temperature += rand(5,50) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm index 5a4f402269f..fd221b470fb 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm @@ -8,7 +8,7 @@ var/weakness = GetAnomalySusceptibility(toucher) if(iscarbon(toucher) && prob(weakness * 100)) var/mob/living/carbon/C = toucher - C << "\red A painful discharge of energy strikes you!" + to_chat(C, "\red A painful discharge of energy strikes you!") C.adjustOxyLoss(rand(5,25) * weakness) C.adjustToxLoss(rand(5,25) * weakness) C.adjustBruteLoss(rand(5,25) * weakness) @@ -26,7 +26,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - C << "\red You feel a painful force radiating from something nearby." + to_chat(C, "\red You feel a painful force radiating from something nearby.") C.adjustBruteLoss(1 * weakness) C.adjustFireLoss(1 * weakness) C.adjustToxLoss(1 * weakness) @@ -40,7 +40,7 @@ for (var/mob/living/carbon/C in range(effectrange, T)) var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - C << "\red A wave of painful energy strikes you!" + to_chat(C, "\red A wave of painful energy strikes you!") C.adjustBruteLoss(3 * weakness) C.adjustFireLoss(3 * weakness) C.adjustToxLoss(3 * weakness) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_roboheal.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_roboheal.dm index a1a89e42cf2..6f698bb8ee3 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_roboheal.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_roboheal.dm @@ -10,7 +10,7 @@ if(user) if (istype(user, /mob/living/silicon/robot)) var/mob/living/silicon/robot/R = user - R << "\blue Your systems report damaged components mending by themselves!" + to_chat(R, "\blue Your systems report damaged components mending by themselves!") R.adjustBruteLoss(rand(-10,-30)) R.adjustFireLoss(rand(-10,-30)) return 1 @@ -20,7 +20,7 @@ var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) if(prob(10)) - M << "\blue SYSTEM ALERT: Beneficial energy field detected!" + to_chat(M, "\blue SYSTEM ALERT: Beneficial energy field detected!") M.adjustBruteLoss(-1) M.adjustFireLoss(-1) M.updatehealth() @@ -30,7 +30,7 @@ if(holder) var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) - M << "\blue SYSTEM ALERT: Structural damage has been repaired by energy pulse!" + to_chat(M, "\blue SYSTEM ALERT: Structural damage has been repaired by energy pulse!") M.adjustBruteLoss(-10) M.adjustFireLoss(-10) M.updatehealth() diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_robohurt.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_robohurt.dm index bc55a76cef7..c7f4d7f9775 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_robohurt.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_robohurt.dm @@ -10,7 +10,7 @@ if(user) if (istype(user, /mob/living/silicon/robot)) var/mob/living/silicon/robot/R = user - R << "\red Your systems report severe damage has been inflicted!" + to_chat(R, "\red Your systems report severe damage has been inflicted!") R.adjustBruteLoss(rand(10,50)) R.adjustFireLoss(rand(10,50)) return 1 @@ -19,7 +19,8 @@ if(holder) var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) - if(prob(10)) M << "\red SYSTEM ALERT: Harmful energy field detected!" + if(prob(10)) + to_chat(M, "\red SYSTEM ALERT: Harmful energy field detected!") M.adjustBruteLoss(1) M.adjustFireLoss(1) M.updatehealth() @@ -29,7 +30,7 @@ if(holder) var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) - M << "\red SYSTEM ALERT: Structural damage inflicted by energy pulse!" + to_chat(M, "\red SYSTEM ALERT: Structural damage inflicted by energy pulse!") M.adjustBruteLoss(10) M.adjustFireLoss(10) M.updatehealth() diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_sleepy.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_sleepy.dm index 61979c5f69d..7ff0af5bab1 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_sleepy.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_sleepy.dm @@ -12,12 +12,12 @@ var/weakness = GetAnomalySusceptibility(toucher) if(ishuman(toucher) && prob(weakness * 100)) var/mob/living/carbon/human/H = toucher - H << pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.") + to_chat(H, pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.")) H.drowsyness = min(H.drowsyness + rand(5,25) * weakness, 50 * weakness) H.eye_blurry = min(H.eye_blurry + rand(1,3) * weakness, 50 * weakness) return 1 else if(isrobot(toucher)) - toucher << "\red SYSTEM ALERT: CPU cycles slowing down." + to_chat(toucher, "\red SYSTEM ALERT: CPU cycles slowing down.") return 1 /datum/artifact_effect/sleepy/DoEffectAura() @@ -27,11 +27,11 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(10)) - H << pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.") + to_chat(H, pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.")) H.drowsyness = min(H.drowsyness + 1 * weakness, 25 * weakness) H.eye_blurry = min(H.eye_blurry + 1 * weakness, 25 * weakness) for (var/mob/living/silicon/robot/R in range(src.effectrange,holder)) - R << "\red SYSTEM ALERT: CPU cycles slowing down." + to_chat(R, "\red SYSTEM ALERT: CPU cycles slowing down.") return 1 /datum/artifact_effect/sleepy/DoEffectPulse() @@ -40,9 +40,9 @@ for(var/mob/living/carbon/human/H in range(src.effectrange, T)) var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) - H << pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.") + to_chat(H, pick("\blue You feel like taking a nap.","\blue You feel a yawn coming on.","\blue You feel a little tired.")) H.drowsyness = min(H.drowsyness + rand(5,15) * weakness, 50 * weakness) H.eye_blurry = min(H.eye_blurry + rand(5,15) * weakness, 50 * weakness) for (var/mob/living/silicon/robot/R in range(src.effectrange,holder)) - R << "\red SYSTEM ALERT: CPU cycles slowing down." + to_chat(R, "\red SYSTEM ALERT: CPU cycles slowing down.") return 1 diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_stun.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_stun.dm index b7b2864de41..5c924d2bb6e 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_stun.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_stun.dm @@ -11,7 +11,7 @@ var/mob/living/carbon/C = toucher var/susceptibility = GetAnomalySusceptibility(C) if(prob(susceptibility * 100)) - C << "\red A powerful force overwhelms your consciousness." + to_chat(C, "\red A powerful force overwhelms your consciousness.") C.Weaken(rand(1,10) * susceptibility) C.stuttering += 30 * susceptibility C.Stun(rand(1,10) * susceptibility) @@ -22,13 +22,13 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(10 * susceptibility)) - C << "\red Your body goes numb for a moment." + to_chat(C, "\red Your body goes numb for a moment.") C.Weaken(2) C.stuttering += 2 if(prob(10)) C.Stun(1) else if(prob(10)) - C << "\red You feel numb." + to_chat(C, "\red You feel numb.") /datum/artifact_effect/stun/DoEffectPulse() if(holder) @@ -36,7 +36,7 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(100 * susceptibility)) - C << "\red A wave of energy overwhelms your senses!" + to_chat(C, "\red A wave of energy overwhelms your senses!") C.SetWeakened(4 * susceptibility) C.stuttering = 4 * susceptibility if(prob(10)) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_teleport.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_teleport.dm index a0e2e44830e..2c22bb9810e 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_teleport.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_teleport.dm @@ -6,7 +6,7 @@ /datum/artifact_effect/teleport/DoEffectTouch(var/mob/user) var/weakness = GetAnomalySusceptibility(user) if(prob(100 * weakness)) - user << "\red You are suddenly zapped away elsewhere!" + to_chat(user, "\red You are suddenly zapped away elsewhere!") if (user.buckled) user.buckled.unbuckle_mob() @@ -25,7 +25,7 @@ for (var/mob/living/M in range(src.effectrange,T)) var/weakness = GetAnomalySusceptibility(M) if(prob(100 * weakness)) - M << "\red You are displaced by a strange force!" + to_chat(M, "\red You are displaced by a strange force!") if(M.buckled) M.buckled.unbuckle_mob() @@ -44,7 +44,7 @@ for (var/mob/living/M in range(src.effectrange, T)) var/weakness = GetAnomalySusceptibility(M) if(prob(100 * weakness)) - M << "\red You are displaced by a strange force!" + to_chat(M, "\red You are displaced by a strange force!") if(M.buckled) M.buckled.unbuckle_mob() diff --git a/code/modules/research/xenoarchaeology/chemistry.dm b/code/modules/research/xenoarchaeology/chemistry.dm index a91ed35ca55..f417fc49792 100644 --- a/code/modules/research/xenoarchaeology/chemistry.dm +++ b/code/modules/research/xenoarchaeology/chemistry.dm @@ -93,7 +93,7 @@ obj/item/weapon/reagent_containers/glass/solution_tray/attackby(obj/item/weapon/ var/new_label = input("What should the new label be?","Label solution tray") if(new_label) name = "solution tray ([new_label])" - user << "\blue You write on the label of the solution tray." + to_chat(user, "\blue You write on the label of the solution tray.") else ..(W, user) diff --git a/code/modules/research/xenoarchaeology/finds/finds_fossils.dm b/code/modules/research/xenoarchaeology/finds/finds_fossils.dm index a619325d941..206280770e9 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_fossils.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_fossils.dm @@ -75,7 +75,7 @@ src.desc = "A creature made of [src.contents.len-1] assorted bones and a skull. The plaque reads \'[plaque_contents]\'." else src.desc = "Incomplete skeleton, looks like it could use [src.breq-src.bnum] more bones." - user << "Looks like it could use [src.breq-src.bnum] more bones." + to_chat(user, "Looks like it could use [src.breq-src.bnum] more bones.") else ..() else if(istype(W,/obj/item/weapon/pen)) diff --git a/code/modules/research/xenoarchaeology/finds/finds_misc.dm b/code/modules/research/xenoarchaeology/finds/finds_misc.dm index fb3fce5d26b..68293501b77 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_misc.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_misc.dm @@ -36,7 +36,7 @@ if(G.amount>=G.max_amount) continue G.attackby(NG, user, params) - usr << "You add the newly-formed plasma glass to the stack. It now contains [NG.amount] sheets." + to_chat(usr, "You add the newly-formed plasma glass to the stack. It now contains [NG.amount] sheets.") //SN src = null qdel(src) return diff --git a/code/modules/research/xenoarchaeology/finds/finds_special.dm b/code/modules/research/xenoarchaeology/finds/finds_special.dm index 10a89d3f4d6..dc315b80640 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_special.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_special.dm @@ -129,7 +129,7 @@ var/target = pick("chest","groin","head","l_arm","r_arm","r_leg","l_leg","l_hand","r_hand","l_foot","r_foot") M.apply_damage(rand(5, 10), BRUTE, target) - M << "\red The skin on your [parse_zone(target)] feels like it's ripping apart, and a stream of blood flies out." + to_chat(M, "\red The skin on your [parse_zone(target)] feels like it's ripping apart, and a stream of blood flies out.") var/obj/effect/decal/cleanable/blood/splatter/animated/B = new(M.loc) B.target_turf = pick(range(1, src)) B.blood_DNA = list() @@ -200,4 +200,4 @@ processing_objects.Remove(src) /obj/effect/shadow_wight/Bump(var/atom/obstacle) - obstacle << "\red You feel a chill run down your spine!" + to_chat(obstacle, "\red You feel a chill run down your spine!") diff --git a/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm b/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm index 4a8c9be2a89..9cea4d29494 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm @@ -51,7 +51,7 @@ var/list/w = heard_words["[lowertext(seperate[Xa])]"] if(w) w.Add("[lowertext(seperate[next])]") - //world << "Adding [lowertext(seperate[next])] to [lowertext(seperate[Xa])]" +// to_chat(world, "Adding [lowertext(seperate[next])] to [lowertext(seperate[Xa])]") if(prob(30)) var/list/options = list("[holder_atom] seems to be listening intently to [source]...",\ @@ -66,10 +66,10 @@ /*/obj/item/weapon/talkingcrystal/proc/debug() //set src in view() for(var/v in heard_words) - world << "[uppertext(v)]" + to_chat(world, "[uppertext(v)]") var/list/d = heard_words["[v]"] for(var/X in d) - world << "[X]"*/ + to_chat(world, "[X]")*/ /datum/talking_atom/proc/SaySomething(var/word = null) if(!holder_atom) @@ -121,5 +121,5 @@ listening|=M for(var/mob/M in listening) - M << "\icon[holder_atom] [holder_atom] reverberates, \blue\"[msg]\"" + to_chat(M, "\icon[holder_atom] [holder_atom] reverberates, \blue\"[msg]\"") last_talk_time = world.time diff --git a/code/modules/research/xenoarchaeology/genetics/reconstitutor.dm b/code/modules/research/xenoarchaeology/genetics/reconstitutor.dm index fdc99e353ab..1e491f1ac48 100644 --- a/code/modules/research/xenoarchaeology/genetics/reconstitutor.dm +++ b/code/modules/research/xenoarchaeology/genetics/reconstitutor.dm @@ -196,13 +196,13 @@ datum/genesequence //pod1.occupant.name = "[pod1.occupant.name] ([rand(0,999)])" pod1.biomass -= CLONE_BIOMASS else - usr << "\red \icon[src] Unable to locate cloning pod!" + to_chat(usr, "\red \icon[src] Unable to locate cloning pod!") else ..() /obj/machinery/computer/reconstitutor/Topic(href, href_list) if(href_list["insertpos"]) - //world << "inserting gene for genesequence [href_list["insertgenome"]] at pos [text2num(href_list["insertpos"])]" +// to_chat(world, "inserting gene for genesequence [href_list["insertgenome"]] at pos [text2num(href_list["insertpos"])]") var/sequence_num = text2num(href_list["sequence_num"]) var/insertpos = text2num(href_list["insertpos"]) diff --git a/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm b/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm index ee22edf2fbd..017dcb7157d 100644 --- a/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm +++ b/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm @@ -24,13 +24,13 @@ /obj/machinery/artifact_harvester/attackby(var/obj/I as obj, var/mob/user as mob, params) if(istype(I,/obj/item/weapon/anobattery)) if(!inserted_battery) - user << "\blue You insert [I] into [src]." + to_chat(user, "\blue You insert [I] into [src].") user.drop_item() I.loc = src src.inserted_battery = I updateDialog() else - user << "\red There is already a battery in [src]." + to_chat(user, "\red There is already a battery in [src].") else return..() diff --git a/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm b/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm index 61915c91e2d..22d644b5aa5 100644 --- a/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm +++ b/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm @@ -62,7 +62,7 @@ /obj/machinery/radiocarbon_spectrometer/attackby(var/obj/I as obj, var/mob/user as mob, params) if(scanning) - user << "You can't do that while [src] is scanning!" + to_chat(user, "You can't do that while [src] is scanning!") else if(istype(I, /obj/item/stack/nanopaste)) var/choice = alert("What do you want to do with the nanopaste?","Radiometric Scanner","Scan nanopaste","Fix seal integrity") @@ -78,14 +78,14 @@ var/obj/item/weapon/reagent_containers/glass/G = I var/amount_transferred = min(src.reagents.maximum_volume - src.reagents.total_volume, G.reagents.total_volume) G.reagents.trans_to(src, amount_transferred) - user << "You empty [amount_transferred]u of coolant into [src]." + to_chat(user, "You empty [amount_transferred]u of coolant into [src].") update_coolant() return else if(choice == "Empty coolant") var/obj/item/weapon/reagent_containers/glass/G = I var/amount_transferred = min(G.reagents.maximum_volume - G.reagents.total_volume, src.reagents.total_volume) src.reagents.trans_to(G, amount_transferred) - user << "You remove [amount_transferred]u of coolant from [src]." + to_chat(user, "You remove [amount_transferred]u of coolant from [src].") update_coolant() return user.drop_item() @@ -331,11 +331,11 @@ scanner_progress = 0 scanning = 1 t_left_radspike = pick(5,10,15) - usr << "Scan initiated." + to_chat(usr, "Scan initiated.") else - usr << "Could not initiate scan, seal requires replacing." + to_chat(usr, "Could not initiate scan, seal requires replacing.") else - usr << "Insert an item to scan." + to_chat(usr, "Insert an item to scan.") if(href_list["maserWavelength"]) maser_wavelength = max(min(maser_wavelength + 1000 * text2num(href_list["maserWavelength"]), 10000), 1) diff --git a/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm b/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm index 6df826f3792..9d6cf4fa460 100644 --- a/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm +++ b/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm @@ -40,7 +40,7 @@ /obj/item/weapon/anodevice/attackby(var/obj/I as obj, var/mob/user as mob, params) if(istype(I, /obj/item/weapon/anobattery)) if(!inserted_battery) - user << "\blue You insert the battery." + to_chat(user, "\blue You insert the battery.") user.drop_item() I.loc = src inserted_battery = I @@ -103,7 +103,7 @@ if(interval > 0) //apply the touch effect to the holder if(holder) - holder << "the \icon[src] [src] held by [holder] shudders in your grasp." + to_chat(holder, "the \icon[src] [src] held by [holder] shudders in your grasp.") else src.loc.visible_message("the \icon[src] [src] shudders.") inserted_battery.battery_effect.DoEffectTouch(holder) diff --git a/code/modules/research/xenoarchaeology/tools/bunsen_burner.dm b/code/modules/research/xenoarchaeology/tools/bunsen_burner.dm index a90105585ee..c05eb88c8bb 100644 --- a/code/modules/research/xenoarchaeology/tools/bunsen_burner.dm +++ b/code/modules/research/xenoarchaeology/tools/bunsen_burner.dm @@ -12,29 +12,29 @@ /obj/machinery/bunsen_burner/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W, /obj/item/weapon/reagent_containers)) if(held_container) - user << "\red You must remove the [held_container] first." + to_chat(user, "\red You must remove the [held_container] first.") else user.drop_item(src) held_container = W held_container.loc = src - user << "\blue You put the [held_container] onto the [src]." + to_chat(user, "\blue You put the [held_container] onto the [src].") var/image/I = image("icon"=W, "layer"=FLOAT_LAYER) underlays += I if(heating) spawn(heat_time) try_heating() else - user << "\red You can't put the [W] onto the [src]." + to_chat(user, "\red You can't put the [W] onto the [src].") /obj/machinery/bunsen_burner/attack_hand(mob/user as mob) if(held_container) underlays = null - user << "\blue You remove the [held_container] from the [src]." + to_chat(user, "\blue You remove the [held_container] from the [src].") held_container.loc = src.loc held_container.attack_hand(user) held_container = null else - user << "\red There is nothing on the [src]." + to_chat(user, "\red There is nothing on the [src].") /obj/machinery/bunsen_burner/proc/try_heating() src.visible_message("\blue \icon[src] [src] hisses.") diff --git a/code/modules/research/xenoarchaeology/tools/suspension_generator.dm b/code/modules/research/xenoarchaeology/tools/suspension_generator.dm index f377d7322c8..0a26c42a821 100644 --- a/code/modules/research/xenoarchaeology/tools/suspension_generator.dm +++ b/code/modules/research/xenoarchaeology/tools/suspension_generator.dm @@ -31,14 +31,14 @@ M.Weaken(3) cell.charge -= power_use if(prob(5)) - M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]" + to_chat(M, "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]") if(field_type == "iron") for(var/mob/living/silicon/M in T) M.Weaken(3) cell.charge -= power_use if(prob(5)) - M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]" + to_chat(M, "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]") for(var/obj/item/I in T) if(!suspension_field.contents.len) @@ -50,7 +50,7 @@ M.Weaken(3) cell.charge -= power_use if(prob(5)) - M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]" + to_chat(M, "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]") if(cell.charge <= 0) deactivate() @@ -120,7 +120,7 @@ if(anchored) activate() else - usr << "You are unable to activate [src] until it is properly secured on the ground." + to_chat(usr, "You are unable to activate [src] until it is properly secured on the ground.") else deactivate() if(href_list["select_field"]) @@ -135,9 +135,9 @@ I.loc = src auth_card = I if(attempt_unlock(I)) - usr << "You insert [I], the console flashes \'Access granted.\'" + to_chat(usr, "You insert [I], the console flashes \'Access granted.\'") else - usr << "You insert [I], the console flashes \'Access denied.\'" + to_chat(usr, "You insert [I], the console flashes \'Access denied.\'") else if(href_list["ejectcard"]) if(auth_card) if(ishuman(usr)) @@ -166,7 +166,7 @@ icon_state = "suspension0" cell = null - user << "You remove the power cell" + to_chat(user, "You remove the power cell") /obj/machinery/suspension_gen/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if (istype(W, /obj/item/weapon/screwdriver)) @@ -175,7 +175,7 @@ screwed = 0 else screwed = 1 - user << "You [screwed ? "screw" : "unscrew"] the battery panel." + to_chat(user, "You [screwed ? "screw" : "unscrew"] the battery panel.") else if (istype(W, /obj/item/weapon/crowbar)) if(!locked) if(!screwed) @@ -184,46 +184,46 @@ open = 0 else open = 1 - user << "You crowbar the battery panel [open ? "open" : "in place"]." + to_chat(user, "You crowbar the battery panel [open ? "open" : "in place"].") icon_state = "suspension[open ? (cell ? "1" : "0") : "2"]" else - user << "[src]'s safety locks are engaged, shut it down first." + to_chat(user, "[src]'s safety locks are engaged, shut it down first.") else - user << "Unscrew [src]'s battery panel first." + to_chat(user, "Unscrew [src]'s battery panel first.") else - user << "[src]'s security locks are engaged." + to_chat(user, "[src]'s security locks are engaged.") else if (istype(W, /obj/item/weapon/wrench)) if(!suspension_field) if(anchored) anchored = 0 else anchored = 1 - user << "You wrench the stabilising legs [anchored ? "into place" : "up against the body"]." + to_chat(user, "You wrench the stabilising legs [anchored ? "into place" : "up against the body"].") if(anchored) desc = "It is resting securely on four stubby legs." else desc = "It has stubby legs bolted up against it's body for stabilising." else - user << "You are unable to secure [src] while it is active!" + to_chat(user, "You are unable to secure [src] while it is active!") else if (istype(W, /obj/item/weapon/stock_parts/cell)) if(open) if(cell) - user << "There is a power cell already installed." + to_chat(user, "There is a power cell already installed.") else user.drop_item() W.loc = src cell = W - user << "You insert the power cell." + to_chat(user, "You insert the power cell.") icon_state = "suspension1" else if(istype(W, /obj/item/weapon/card)) var/obj/item/weapon/card/I = W if(!auth_card) if(attempt_unlock(I)) - user << "You swipe [I], the console flashes \'Access granted.\'" + to_chat(user, "You swipe [I], the console flashes \'Access granted.\'") else - user << "You swipe [I], console flashes \'Access denied.\'" + to_chat(user, "You swipe [I], console flashes \'Access denied.\'") else - user << "Remove [auth_card] first." + to_chat(user, "Remove [auth_card] first.") /obj/machinery/suspension_gen/proc/attempt_unlock(var/obj/item/weapon/card/C) if(!open) @@ -305,7 +305,7 @@ var/turf/T = get_turf(suspension_field) for(var/mob/M in T) - M << "You no longer feel like floating." + to_chat(M, "You no longer feel like floating.") M.SetWeakened(min(M.weakened, 3)) src.visible_message("\blue \icon[src] [src] deactivates with a gentle shudder.") @@ -323,7 +323,7 @@ set category = "Object" if(anchored) - usr << "\red You cannot rotate [src], it has been firmly fixed to the floor." + to_chat(usr, "\red You cannot rotate [src], it has been firmly fixed to the floor.") else dir = turn(dir, 90) @@ -333,7 +333,7 @@ set category = "Object" if(anchored) - usr << "\red You cannot rotate [src], it has been firmly fixed to the floor." + to_chat(usr, "\red You cannot rotate [src], it has been firmly fixed to the floor.") else dir = turn(dir, -90) diff --git a/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm b/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm index 6f7e29917a8..3ae1c15f660 100644 --- a/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm +++ b/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm @@ -26,7 +26,7 @@ else message = "Scanning array is recharging." - user << "[message]" + to_chat(user, "[message]") /obj/item/device/ano_scanner/proc/scan() last_scan_time = world.time diff --git a/code/modules/research/xenoarchaeology/tools/tools_coresampler.dm b/code/modules/research/xenoarchaeology/tools/tools_coresampler.dm index 47b0f7e9e2f..c1d8bda97ee 100644 --- a/code/modules/research/xenoarchaeology/tools/tools_coresampler.dm +++ b/code/modules/research/xenoarchaeology/tools/tools_coresampler.dm @@ -27,16 +27,16 @@ /obj/item/device/core_sampler/examine(mob/user) if(..(user, 2)) - user << "\blue Used to extract geological core samples - this one is [sampled_turf ? "full" : "empty"], and has [num_stored_bags] bag[num_stored_bags != 1 ? "s" : ""] remaining." + to_chat(user, "\blue Used to extract geological core samples - this one is [sampled_turf ? "full" : "empty"], and has [num_stored_bags] bag[num_stored_bags != 1 ? "s" : ""] remaining.") /obj/item/device/core_sampler/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(istype(W,/obj/item/weapon/evidencebag)) if(num_stored_bags < 10) qdel(W) num_stored_bags += 1 - user << "\blue You insert the [W] into the core sampler." + to_chat(user, "\blue You insert the [W] into the core sampler.") else - user << "\red The core sampler can not fit any more bags!" + to_chat(user, "\red The core sampler can not fit any more bags!") else return ..() @@ -52,9 +52,9 @@ if(geo_data) if(filled_bag) - user << "\red The core sampler is full!" + to_chat(user, "\red The core sampler is full!") else if(num_stored_bags < 1) - user << "\red The core sampler is out of sample bags!" + to_chat(user, "\red The core sampler is out of sample bags!") else //create a new sample bag which we'll fill with rock samples filled_bag = new /obj/item/weapon/evidencebag(src) @@ -75,13 +75,13 @@ filled_bag.underlays += I filled_bag.w_class = 1 - user << "\blue You take a core sample of the [item_to_sample]." + to_chat(user, "\blue You take a core sample of the [item_to_sample].") else - user << "\red You are unable to take a sample of [item_to_sample]." + to_chat(user, "\red You are unable to take a sample of [item_to_sample].") /obj/item/device/core_sampler/attack_self() if(filled_bag) - usr << "\blue You eject the full sample bag." + to_chat(usr, "\blue You eject the full sample bag.") var/success = 0 if(istype(src.loc, /mob)) var/mob/M = src.loc @@ -91,4 +91,4 @@ filled_bag = null icon_state = "sampler0" else - usr << "\red The core sampler is empty." + to_chat(usr, "\red The core sampler is empty.") diff --git a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm index 487aa897d8f..6bf829ba220 100644 --- a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm +++ b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm @@ -46,7 +46,7 @@ positive_locations.Add(D) for(var/mob/L in range(src, 1)) - L << "\blue \icon[src] [src] pings." + to_chat(L, "\blue \icon[src] [src] pings.") else if(istype(A,/obj/structure/boulder)) var/obj/structure/boulder/B = A @@ -65,7 +65,7 @@ positive_locations.Add(D) for(var/mob/L in range(src, 1)) - L << "\blue \icon[src] [src] pings [pick("madly","wildly","excitedly","crazily")]!." + to_chat(L, "\blue \icon[src] [src] pings [pick("madly","wildly","excitedly","crazily")]!.") /obj/item/device/depth_scanner/attack_self(var/mob/user as mob) return src.interact(user) diff --git a/code/modules/research/xenobiology/xenobio_camera.dm b/code/modules/research/xenobiology/xenobio_camera.dm index 8fcabf82e0c..96746f780d8 100644 --- a/code/modules/research/xenobiology/xenobio_camera.dm +++ b/code/modules/research/xenobiology/xenobio_camera.dm @@ -148,7 +148,7 @@ var/mob/living/carbon/human/monkey/food = new /mob/living/carbon/human/monkey(remote_eye.loc) food.LAssailant = C X.monkeys -- - owner << "[X] now has [X.monkeys] monkeys left." + to_chat(owner, "[X] now has [X.monkeys] monkeys left.") /datum/action/monkey_recycle diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm index 2f4d2bacaca..cf6927a6e0d 100644 --- a/code/modules/research/xenobiology/xenobiology.dm +++ b/code/modules/research/xenobiology/xenobiology.dm @@ -19,12 +19,12 @@ attackby(obj/item/O as obj, mob/user as mob, params) if(istype(O, /obj/item/weapon/slimesteroid2)) if(enhanced == 1) - user << " This extract has already been enhanced!" + to_chat(user, " This extract has already been enhanced!") return ..() if(Uses == 0) - user << " You can't enhance a used extract!" + to_chat(user, " You can't enhance a used extract!") return ..() - user <<"You apply the enhancer. It now has triple the amount of uses." + to_chat(user, "You apply the enhancer. It now has triple the amount of uses.") Uses = 3 enhanced = 1 qdel(O) @@ -153,13 +153,13 @@ attack(mob/living/carbon/slime/M as mob, mob/user as mob) if(!istype(M, /mob/living/carbon/slime))//If target is not a slime. - user << " The potion only works on slimes!" + to_chat(user, " The potion only works on slimes!") return ..() if(M.stat) - user << " The slime is dead!" + to_chat(user, " The slime is dead!") return..() if(M.mind) - user << " The slime resists!" + to_chat(user, " The slime resists!") return ..() if(M.is_adult) var/mob/living/simple_animal/adultslime/pet = new /mob/living/simple_animal/adultslime(M.loc) @@ -189,7 +189,7 @@ pet.name = newname pet.real_name = newname qdel(src) - user <<"You feed the slime the potion, removing it's powers and calming it." + to_chat(user, "You feed the slime the potion, removing it's powers and calming it.") /obj/item/weapon/sentience_potion name = "sentience potion" @@ -207,17 +207,17 @@ if(being_used || !ismob(M)) return if(!isanimal(M) || M.ckey) //only works on animals that aren't player controlled - user << "[M] is already too intelligent for this to work!" + to_chat(user, "[M] is already too intelligent for this to work!") return ..() if(M.stat) - user << "[M] is dead!" + to_chat(user, "[M] is dead!") return ..() var/mob/living/simple_animal/SM = M if(SM.sentience_type != sentience_type) - user << "The potion won't work on [SM]." + to_chat(user, "The potion won't work on [SM].") return ..() - user << "You offer the sentience potion to [SM]..." + to_chat(user, "You offer the sentience potion to [SM]...") being_used = 1 var/list/candidates = pollCandidates("Do you want to play as [SM.name]?", ROLE_SENTIENT, 0, 100) @@ -232,12 +232,12 @@ SM.faction = user.faction SM.master_commander = user SM.sentience_act() - SM << "All at once it makes sense: you know what you are and who you are! Self awareness is yours!" - SM << "You are grateful to be self aware and owe [user] a great debt. Serve [user], and assist them in completing their goals at any cost." - user << "[M] accepts the potion and suddenly becomes attentive and aware. It worked!" + to_chat(SM, "All at once it makes sense: you know what you are and who you are! Self awareness is yours!") + to_chat(SM, "You are grateful to be self aware and owe [user] a great debt. Serve [user], and assist them in completing their goals at any cost.") + to_chat(user, "[M] accepts the potion and suddenly becomes attentive and aware. It worked!") qdel(src) else - user << "[M] looks interested for a moment, but then looks back down. Maybe you should try again later." + to_chat(user, "[M] looks interested for a moment, but then looks back down. Maybe you should try again later.") being_used = 0 ..() @@ -253,19 +253,19 @@ attack(mob/living/carbon/slime/M as mob, mob/user as mob) if(!istype(M, /mob/living/carbon/slime))//If target is not a slime. - user << " The steroid only works on baby slimes!" + to_chat(user, " The steroid only works on baby slimes!") return ..() if(M.is_adult) //Can't tame adults - user << " Only baby slimes can use the steroid!" + to_chat(user, " Only baby slimes can use the steroid!") return..() if(M.stat) - user << " The slime is dead!" + to_chat(user, " The slime is dead!") return..() if(M.cores == 3) - user <<" The slime already has the maximum amount of extract!" + to_chat(user, " The slime already has the maximum amount of extract!") return..() - user <<"You feed the slime the steroid. It now has triple the amount of extract." + to_chat(user, "You feed the slime the steroid. It now has triple the amount of extract.") M.cores = 3 qdel(src) @@ -289,12 +289,12 @@ /obj/item/weapon/slimespeed/afterattack(obj/item/C, mob/user) ..() if(!istype(C)) - user << "The potion can only be used on items!" + to_chat(user, "The potion can only be used on items!") return if(C.slowdown <= 0) - user << "The [C] can't be made any faster!" + to_chat(user, "The [C] can't be made any faster!") return..() - user <<"You slather the red gunk over the [C], making it faster." + to_chat(user, "You slather the red gunk over the [C], making it faster.") C.color = "#FF0000" C.slowdown = 0 qdel(src) @@ -315,12 +315,12 @@ qdel(src) return if(!istype(C)) - user << "The potion can only be used on clothing!" + to_chat(user, "The potion can only be used on clothing!") return if(C.max_heat_protection_temperature == FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT) - user << "The [C] is already fireproof!" + to_chat(user, "The [C] is already fireproof!") return..() - user <<"You slather the blue gunk over the [C], fireproofing it." + to_chat(user, "You slather the blue gunk over the [C], fireproofing it.") C.name = "fireproofed [C.name]" C.color = "#000080" C.max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT @@ -485,18 +485,18 @@ var/mob/dead/observer/ghost for(var/mob/dead/observer/O in src.loc) if(!check_observer(O)) - O << "\red You are not eligible to become a golem." + to_chat(O, "\red You are not eligible to become a golem.") continue ghost = O break if(!ghost) - user << "The rune fizzles uselessly. There is no spirit nearby." + to_chat(user, "The rune fizzles uselessly. There is no spirit nearby.") return var/mob/living/carbon/human/golem/G = new /mob/living/carbon/human/golem G.change_gender(pick(MALE,FEMALE)) G.loc = src.loc G.key = ghost.key - G << "You are an adamantine golem. You move slowly, but are highly resistant to heat and cold as well as blunt trauma. You are unable to wear clothes, but can still use most tools. Serve [user], and assist them in completing their goals at any cost." + to_chat(G, "You are an adamantine golem. You move slowly, but are highly resistant to heat and cold as well as blunt trauma. You are unable to wear clothes, but can still use most tools. Serve [user], and assist them in completing their goals at any cost.") qdel(src) @@ -505,7 +505,7 @@ if(O.client) var/area/A = get_area(src) if(A) - O << "\blue Golem rune created in [A.name]. (Teleport | Sign Up)" + to_chat(O, "\blue Golem rune created in [A.name]. (Teleport | Sign Up)") Topic(href,href_list) if("signup" in href_list) @@ -530,10 +530,10 @@ proc/volunteer(var/mob/dead/observer/O) if(O in ghosts) ghosts.Remove(O) - O << "\red You are no longer signed up to be a golem." + to_chat(O, "\red You are no longer signed up to be a golem.") else if(!check_observer(O)) - O << "\red You are not eligible to become a golem." + to_chat(O, "\red You are not eligible to become a golem.") return ghosts.Add(O) - O << "\blue You are signed up to be a golem." \ No newline at end of file + to_chat(O, "\blue You are signed up to be a golem.") diff --git a/code/modules/scripting/Parser/Keywords.dm b/code/modules/scripting/Parser/Keywords.dm index a4470242f5e..4c186160838 100644 --- a/code/modules/scripting/Parser/Keywords.dm +++ b/code/modules/scripting/Parser/Keywords.dm @@ -81,7 +81,8 @@ var/const/Represents a special statement in the code triggered by a keyword. ifstmt = L[L.len] //Get the last statement in the current block if(!ifstmt || !istype(ifstmt) || ifstmt.else_if) - usr << "NTSL: ELSE IF FAILED: [!ifstmt], [!istype(ifstmt)], [!istype(ifstmt) || ifstmt.else_if]" // Usr is unsafe as SHIT but JUST incase I forget this debug line like the fucking asset cache... + to_chat(usr, "NTSL: ELSE IF FAILED: [!ifstmt], [!istype(ifstmt)], [!istype(ifstmt) || ifstmt.else_if]")// Usr is unsafe as SHIT but JUST incase I forget this debug line like the fucking asset cache... + parser.errors += new/datum/scriptError/ExpectedToken("if statement", parser.curToken) return KW_FAIL @@ -108,7 +109,8 @@ var/const/Represents a special statement in the code triggered by a keyword. stmt = L[L.len] //Get the last statement in the current block if(!stmt || !istype(stmt) || stmt.else_block) //Ensure that it is an if statement - usr << "NTSL: ELSE IF FAILED: [!stmt], [!istype(stmt)], [!istype(stmt) || stmt.else_block]" // Usr is unsafe as SHIT but JUST incase I forget this debug line like the fucking asset cache... + to_chat(usr, "NTSL: ELSE IF FAILED: [!stmt], [!istype(stmt)], [!istype(stmt) || stmt.else_block]")// Usr is unsafe as SHIT but JUST incase I forget this debug line like the fucking asset cache... + parser.errors += new/datum/scriptError/ExpectedToken("if statement", parser.curToken) return KW_FAIL diff --git a/code/modules/security_levels/keycard authentication.dm b/code/modules/security_levels/keycard authentication.dm index 0fbff9cd68a..d27820ac033 100644 --- a/code/modules/security_levels/keycard authentication.dm +++ b/code/modules/security_levels/keycard authentication.dm @@ -23,12 +23,12 @@ power_channel = ENVIRON /obj/machinery/keycard_auth/attack_ai(mob/user as mob) - user << "The station AI is not to interact with these devices." + to_chat(user, "The station AI is not to interact with these devices.") return /obj/machinery/keycard_auth/attackby(obj/item/weapon/W as obj, mob/user as mob, params) if(stat & (NOPOWER|BROKEN)) - user << "This device is not powered." + to_chat(user, "This device is not powered.") return if(istype(W,/obj/item/weapon/card/id)) var/obj/item/weapon/card/id/ID = W @@ -40,7 +40,7 @@ event_source.event_confirmed_by = usr else if(screen == 2) if(event == "Emergency Response Team" && ert_reason == "Reason for ERT") - user << "Supply a reason for calling the ERT first!" + to_chat(user, "Supply a reason for calling the ERT first!") return event_triggered_by = usr broadcast_request() //This is the device making the initial event request. It needs to broadcast to other devices @@ -59,10 +59,10 @@ /obj/machinery/keycard_auth/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) if(user.stat || stat & (NOPOWER|BROKEN)) - user << "This device is not powered." + to_chat(user, "This device is not powered.") return if(busy) - user << "This device is busy." + to_chat(user, "This device is busy.") return user.set_machine(src) @@ -82,10 +82,10 @@ if(..()) return if(busy) - usr << "This device is busy." + to_chat(usr, "This device is busy.") return if(usr.stat || stat & (BROKEN|NOPOWER)) - usr << "This device is without power." + to_chat(usr, "This device is without power.") return if(href_list["triggerevent"]) event = href_list["triggerevent"] @@ -153,10 +153,10 @@ feedback_inc("alert_keycard_auth_maintRevoke",1) if("Emergency Response Team") if(is_ert_blocked()) - usr << "\red All Emergency Response Teams are dispatched and can not be called at this time." + to_chat(usr, "\red All Emergency Response Teams are dispatched and can not be called at this time.") return - usr << "ERT request transmitted." + to_chat(usr, "ERT request transmitted.") if(admins.len) ERT_Announce(ert_reason , event_triggered_by) ert_reason = "Reason for ERT" diff --git a/code/modules/shuttle/assault_pod.dm b/code/modules/shuttle/assault_pod.dm index 788bde31a6b..fe3d059a08a 100644 --- a/code/modules/shuttle/assault_pod.dm +++ b/code/modules/shuttle/assault_pod.dm @@ -54,6 +54,6 @@ if(S.shuttleId == shuttle_id) S.possible_destinations = "[landing_zone.id]" - user << "Landing zone set." + to_chat(user, "Landing zone set.") qdel(src) diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index 49aedfbad89..31a4fa84280 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -22,16 +22,16 @@ var/obj/item/device/pda/pda = W W = pda.id if (!W:access) //no access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return var/list/cardaccess = W:access if(!istype(cardaccess, /list) || !cardaccess.len) //no access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return if(!(access_heads in W:access)) //doesn't have this access - user << "The access level of [W:registered_name]\'s card is not high enough. " + to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ") return 0 var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort") @@ -269,7 +269,7 @@ return /obj/machinery/computer/shuttle/pod/emag_act(mob/user as mob) - user << " Access requirements overridden. The pod may now be launched manually at any time." + to_chat(user, " Access requirements overridden. The pod may now be launched manually at any time.") admin_controlled = 0 icon_state = "dorm_emag" diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 0c09b0ea920..2f7c0c06496 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -675,21 +675,24 @@ usr.set_machine(src) src.add_fingerprint(usr) if(!allowed(usr)) - usr << "Access denied." + to_chat(usr, "Access denied.") return if(href_list["move"]) switch(shuttle_master.moveShuttle(shuttleId, href_list["move"], 1)) - if(0) usr << "Shuttle received message and will be sent shortly." - if(1) usr << "Invalid shuttle requested." - else usr << "Unable to comply." + if(0) + to_chat(usr, "Shuttle received message and will be sent shortly.") + if(1) + to_chat(usr, "Invalid shuttle requested.") + else + to_chat(usr, "Unable to comply.") updateUsrDialog() /obj/machinery/computer/shuttle/emag_act(mob/user) if(!emagged) src.req_access = list() emagged = 1 - user << "You fried the consoles ID checking system." + to_chat(user, "You fried the consoles ID checking system.") /obj/machinery/computer/shuttle/ferry name = "transport ferry console" @@ -711,8 +714,8 @@ if(cooldown) return cooldown = 1 - usr << "Your request has been recieved by Centcom." - admins << "FERRY: [key_name_admin(usr)] (?) (FLW) (Move Ferry) is requesting to move the transport ferry to Centcom." + to_chat(usr, "Your request has been recieved by Centcom.") + to_chat(admins, "FERRY: [key_name_admin(usr)] (?) (FLW) (Move Ferry) is requesting to move the transport ferry to Centcom.") spawn(600) //One minute cooldown cooldown = 0 diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm index 405ea460822..3245f6872dc 100644 --- a/code/modules/shuttle/supply.dm +++ b/code/modules/shuttle/supply.dm @@ -558,7 +558,7 @@ /obj/machinery/computer/supplycomp/attack_hand(var/mob/user as mob) if(!allowed(user) && !isobserver(user)) - user << "Access denied." + to_chat(user, "Access denied.") return 1 post_signal("supply") @@ -567,7 +567,7 @@ /obj/machinery/computer/supplycomp/emag_act(user as mob) if(!hacked) - user << "Special supplies unlocked." + to_chat(user, "Special supplies unlocked.") hacked = 1 return @@ -651,7 +651,7 @@ if(href_list["send"]) if(shuttle_master.supply.canMove()) - usr << "For safety reasons the automated supply shuttle cannot transport live organisms, classified nuclear weaponry or homing beacons." + to_chat(usr, "For safety reasons the automated supply shuttle cannot transport live organisms, classified nuclear weaponry or homing beacons.") else if(shuttle_master.supply.getDockedId() == "supply_home") shuttle_master.toggleShuttle("supply", "supply_home", "supply_away", 1) investigate_log("[key_name(usr)] has sent the supply shuttle away. Remaining points: [shuttle_master.points]. Shuttle contents: [shuttle_master.sold_atoms]", "cargo") @@ -718,7 +718,7 @@ shuttle_master.shoppinglist += O investigate_log("[key_name(usr)] has authorized an order for [P.name]. Remaining points: [shuttle_master.points].", "cargo") else - usr << "There are insufficient supply points for this request." + to_chat(usr, "There are insufficient supply points for this request.") break else if (href_list["rreq"]) diff --git a/code/modules/shuttle/syndicate.dm b/code/modules/shuttle/syndicate.dm index 5361ee686bf..b1afd14bcf5 100644 --- a/code/modules/shuttle/syndicate.dm +++ b/code/modules/shuttle/syndicate.dm @@ -16,7 +16,7 @@ /obj/machinery/computer/shuttle/syndicate/Topic(href, href_list) if(href_list["move"]) if(challenge && world.time < SYNDICATE_CHALLENGE_TIMER) - usr << "You've issued a combat challenge to the station! You've got to give them at least [round(((SYNDICATE_CHALLENGE_TIMER - world.time) / 10) / 60)] more minutes to allow them to prepare." + to_chat(usr, "You've issued a combat challenge to the station! You've got to give them at least [round(((SYNDICATE_CHALLENGE_TIMER - world.time) / 10) / 60)] more minutes to allow them to prepare.") return 0 ..() @@ -31,7 +31,7 @@ /obj/machinery/computer/shuttle/syndicate/drop_pod/Topic(href, href_list) if(href_list["move"]) if(z != ZLEVEL_CENTCOMM) - usr << "Pods are one way!" + to_chat(usr, "Pods are one way!") return 0 ..() diff --git a/code/modules/surgery/dental_implant.dm b/code/modules/surgery/dental_implant.dm index 5fbe6a5486c..2810617bd12 100644 --- a/code/modules/surgery/dental_implant.dm +++ b/code/modules/surgery/dental_implant.dm @@ -49,7 +49,7 @@ /datum/action/item_action/hands_free/activate_pill/Trigger() if(!Checks()) return - owner << "You grit your teeth and burst the implanted [target]!" + to_chat(owner, "You grit your teeth and burst the implanted [target]!") add_logs(owner, null, "swallowed an implanted pill", target) if(target.reagents.total_volume) target.reagents.reaction(owner, INGEST) diff --git a/code/modules/surgery/helpers.dm b/code/modules/surgery/helpers.dm index be1cb2264a9..a21a7422696 100644 --- a/code/modules/surgery/helpers.dm +++ b/code/modules/surgery/helpers.dm @@ -57,7 +57,7 @@ else if(!current_surgery.step_in_progress) if(current_surgery.status == 1 ) M.surgeries -= current_surgery - user << "You stop the surgery." + to_chat(user, "You stop the surgery.") qdel(current_surgery) else if(istype(user.get_inactive_hand(), /obj/item/weapon/cautery) && current_surgery.can_cancel) M.surgeries -= current_surgery @@ -69,7 +69,7 @@ affecting.status &= ~ORGAN_BLEEDING qdel(current_surgery) else if(current_surgery.can_cancel) - user << "You need to hold a cautery in inactive hand to stop [M]'s surgery!" + to_chat(user, "You need to hold a cautery in inactive hand to stop [M]'s surgery!") return 1 diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 8cb6c926061..45da3bce5b6 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -156,7 +156,7 @@ IC = I break if(istype(tool,/obj/item/weapon/cautery)) - user << "you prepare to close the cavity wall." + to_chat(user, "you prepare to close the cavity wall.") else if(tool) user.visible_message("[user] starts putting \the [tool] inside [target]'s [get_cavity(affected)] cavity.", \ "You start putting \the [tool] inside [target]'s [get_cavity(affected)] cavity." ) @@ -172,28 +172,28 @@ var/obj/item/organ/external/chest/affected = target.get_organ(target_zone) if(istype(tool, /obj/item/weapon/disk/nuclear)) - user << "Central command would kill you if you implanted the disk into someone." + to_chat(user, "Central command would kill you if you implanted the disk into someone.") return 0//fail if(istype(tool,/obj/item/organ)) - user << "This isn't the type of surgery for organ transplants!" + to_chat(user, "This isn't the type of surgery for organ transplants!") return 0//fail if(!user.canUnEquip(tool, 0)) - user << "[tool] is stuck to your hand, you can't put it in [target]!" + to_chat(user, "[tool] is stuck to your hand, you can't put it in [target]!") return 0 if(istype(tool,/obj/item/weapon/cautery)) return 1//god this is ugly.... else if(tool) if(IC) - user << "There seems to be something in there already!" + to_chat(user, "There seems to be something in there already!") return 1 else user.visible_message(" [user] puts \the [tool] inside [target]'s [get_cavity(affected)] cavity.", \ " You put \the [tool] inside [target]'s [get_cavity(affected)] cavity." ) if((tool.w_class > get_max_wclass(affected)/2 && prob(50) && !(affected.status & ORGAN_ROBOT))) - user << " You tear some vessels trying to fit the object in the cavity." + to_chat(user, " You tear some vessels trying to fit the object in the cavity.") var/datum/wound/internal_bleeding/I = new () affected.wounds += I affected.owner.custom_pain("You feel something rip in your [affected.name]!", 1) @@ -209,7 +209,7 @@ target.internal_organs -= IC return 1 else - user << "You don't find anything in [target]'s [target_zone]." + to_chat(user, "You don't find anything in [target]'s [target_zone].") return 0 @@ -364,8 +364,8 @@ if(objects > 0) user.visible_message("[user] sucessfully removes [objects] objects from [H]'s [L.limb_name]!", "You sucessfully remove [objects] objects from [H]'s [L.limb_name].") else - user << "You find no objects embedded in [H]'s [L.limb_name]!" + to_chat(user, "You find no objects embedded in [H]'s [L.limb_name]!") else - user << "You can't find [target]'s [target_zone], let alone any objects embedded in it!" + to_chat(user, "You can't find [target]'s [target_zone], let alone any objects embedded in it!") return 1 \ No newline at end of file diff --git a/code/modules/surgery/organs/augments_eyes.dm b/code/modules/surgery/organs/augments_eyes.dm index a6fdf24d715..679a98c98f4 100644 --- a/code/modules/surgery/organs/augments_eyes.dm +++ b/code/modules/surgery/organs/augments_eyes.dm @@ -36,7 +36,7 @@ HMN.b_eyes = eye_colour[3] HMN.update_eyes() if(aug_message && !special) - owner << "[aug_message]" + to_chat(owner, "[aug_message]") M.sight |= vision_flags /obj/item/organ/internal/cyberimp/eyes/remove(var/mob/living/carbon/M, var/special = 0) @@ -59,7 +59,7 @@ if(severity > 1) if(prob(10 * severity)) return - owner << "Static obfuscates your vision!" + to_chat(owner, "Static obfuscates your vision!") owner.flash_eyes(visual = 1) diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index a135a60df2f..a5af2caca3d 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -34,7 +34,7 @@ return var/stun_amount = 5 + (severity-1 ? 0 : 5) owner.Stun(stun_amount) - owner << "Your body seizes up!" + to_chat(owner, "Your body seizes up!") return stun_amount @@ -71,7 +71,7 @@ r_hand_ignore = 0 if(!l_hand_obj && !r_hand_obj) - owner << "You are not holding any items, your hands relax..." + to_chat(owner, "You are not holding any items, your hands relax...") active = 0 else var/msg = 0 @@ -79,14 +79,14 @@ msg += !r_hand_ignore && r_hand_obj ? 2 : 0 switch(msg) if(1) - owner << "Your left hand's grip tightens." + to_chat(owner, "Your left hand's grip tightens.") if(2) - owner << "Your right hand's grip tightens." + to_chat(owner, "Your right hand's grip tightens.") if(3) - owner << "Both of your hand's grips tighten." + to_chat(owner, "Both of your hand's grips tighten.") else release_items() - owner << "Your hands relax..." + to_chat(owner, "Your hands relax...") l_hand_obj = null r_hand_obj = null @@ -103,11 +103,11 @@ if(L_item) A = pick(oview(range)) L_item.throw_at(A, range, 2) - owner << "Your left arm spasms and throws the [L_item.name]!" + to_chat(owner, "Your left arm spasms and throws the [L_item.name]!") if(R_item) A = pick(oview(range)) R_item.throw_at(A, range, 2) - owner << "Your right arm spasms and throws the [R_item.name]!" + to_chat(owner, "Your right arm spasms and throws the [R_item.name]!") /obj/item/organ/internal/cyberimp/brain/anti_drop/proc/release_items() if(!l_hand_ignore && l_hand_obj in owner.contents) @@ -172,7 +172,7 @@ return if(owner.nutrition <= hunger_threshold) synthesizing = 1 - owner << "You feel less hungry..." + to_chat(owner, "You feel less hungry...") owner.nutrition += 50 spawn(50) synthesizing = 0 @@ -181,7 +181,7 @@ if(!owner) return owner.reagents.add_reagent("????",poison_amount / severity) //food poisoning - owner << "You feel like your insides are burning." + to_chat(owner, "You feel like your insides are burning.") /obj/item/organ/internal/cyberimp/chest/nutriment/plus name = "Nutriment pump implant PLUS" @@ -246,7 +246,7 @@ spawn(600 / severity) H.heart_attack = 0 if(H.stat == CONSCIOUS) - H << "You feel your heart beating again!" + to_chat(H, "You feel your heart beating again!") //ARM...THAT GO IN THE CHEST /obj/item/organ/internal/cyberimp/chest/arm_mod//dummy parent item for making arm-mod implants. works best with nodrop items that are sent to nullspace upon being dropped. @@ -264,7 +264,7 @@ /obj/item/organ/internal/cyberimp/chest/arm_mod/ui_action_click() if(overloaded)//ensure the implant isn't broken - owner << "The implant doesn't respond. It seems to be broken..." + to_chat(owner, "The implant doesn't respond. It seems to be broken...") return if(out)//check if the owner has the item out already owner.unEquip(holder, 1)//if he does, take it away. then, @@ -280,7 +280,7 @@ playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, 1) else//if this fails to put the item in his hands, holder.loc = null//keep it in nullspace - owner << "You can't extend [holder] if you can't use your hands!" + to_chat(owner, "You can't extend [holder] if you can't use your hands!") /obj/item/organ/internal/cyberimp/chest/arm_mod/emp_act(severity)//if the implant gets EMPed... if(!owner || overloaded)//ensure that it's in an owner and that it's not already EMPed, then... @@ -292,7 +292,7 @@ owner.visible_message("[holder] forcibly retracts into [owner]'s arm.") owner.visible_message("A loud bang comes from [owner]...") playsound(get_turf(owner), 'sound/effects/bang.ogg', 100, 1) - owner << "You feel an explosion erupt inside you as your chest implant breaks. Is it hot in here?" + to_chat(owner, "You feel an explosion erupt inside you as your chest implant breaks. Is it hot in here?") owner.adjust_fire_stacks(20) owner.IgniteMob()//ignite the owner, as well as owner.say("AUUUUUUUUUUUUUUUUUUGH!!") diff --git a/code/modules/surgery/organs/autoimplanter.dm b/code/modules/surgery/organs/autoimplanter.dm index 98d7867c8c8..5c2aa1193d9 100644 --- a/code/modules/surgery/organs/autoimplanter.dm +++ b/code/modules/surgery/organs/autoimplanter.dm @@ -8,7 +8,7 @@ /obj/item/device/autoimplanter/attack_self(mob/user)//when the object it used... if(!storedorgan) - user << "[src] currently has no implant stored." + to_chat(user, "[src] currently has no implant stored.") return storedorgan.insert(user)//insert stored organ into the user user.visible_message("[user] presses a button on [src], and you hear a short mechanical noise.", "You feel a sharp sting as [src] plunges into your body.") @@ -18,18 +18,18 @@ /obj/item/device/autoimplanter/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/organ/internal/cyberimp)) if(storedorgan) - user << "[src] already has an implant stored." + to_chat(user, "[src] already has an implant stored.") return if(!user.drop_item()) return I.forceMove(src) storedorgan = I - user << "You insert the [I] into [src]." + to_chat(user, "You insert the [I] into [src].") else if(istype(I, /obj/item/weapon/screwdriver)) if(!storedorgan) - user << "There's no implant in [src] for you to remove." + to_chat(user, "There's no implant in [src] for you to remove.") else storedorgan.forceMove(get_turf(user)) storedorgan = null - user << "You remove the [storedorgan] from [src]." + to_chat(user, "You remove the [storedorgan] from [src].") playsound(get_turf(user), 'sound/items/Screwdriver.ogg', 50, 1) diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index 35c38d1b99b..f2dd4c3c778 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -126,10 +126,10 @@ var/const/BLOOD_VOLUME_SURVIVE = 122 pale = 1 update_body() var/word = pick("dizzy","woosey","faint") - src << "\red You feel [word]" + to_chat(src, "\red You feel [word]") if(prob(1)) var/word = pick("dizzy","woosey","faint") - src << "\red You feel [word]" + to_chat(src, "\red You feel [word]") if(oxyloss < 20) oxyloss += 3 if(BLOOD_VOLUME_BAD to BLOOD_VOLUME_OKAY) @@ -143,7 +143,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122 if(prob(15)) Paralyse(rand(1,3)) var/word = pick("dizzy","woosey","faint") - src << "\red You feel very [word]" + to_chat(src, "\red You feel very [word]") if(BLOOD_VOLUME_SURVIVE to BLOOD_VOLUME_BAD) if(!pale) pale = 1 @@ -154,7 +154,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122 if(prob(15)) Paralyse(rand(1,3)) var/word = pick("dizzy","woosey","faint") - src << "\red You feel extremely [word]" + to_chat(src, "\red You feel extremely [word]") if(0 to BLOOD_VOLUME_SURVIVE) death() diff --git a/code/modules/surgery/organs/body_egg.dm b/code/modules/surgery/organs/body_egg.dm index 7cd53c4319a..3653e3df327 100644 --- a/code/modules/surgery/organs/body_egg.dm +++ b/code/modules/surgery/organs/body_egg.dm @@ -8,7 +8,7 @@ /obj/item/organ/internal/body_egg/on_find(mob/living/finder) ..() - finder << "You found an unknown alien organism in [owner]'s [parent_organ]!" + to_chat(finder, "You found an unknown alien organism in [owner]'s [parent_organ]!") /obj/item/organ/internal/body_egg/insert(var/mob/living/carbon/M, special = 0) ..() diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm index 9f879a4492d..3bce602694a 100644 --- a/code/modules/surgery/organs/organ.dm +++ b/code/modules/surgery/organs/organ.dm @@ -143,7 +143,7 @@ var/list/organ_cache = list() /obj/item/organ/examine(mob/user) ..(user) if(status & ORGAN_DEAD) - user << "The decay has set in." + to_chat(user, "The decay has set in.") /obj/item/organ/proc/handle_germ_effects() //** Handle the effects of infections diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index bd81f65dbaf..ac96bd0f775 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -293,7 +293,7 @@ if((brute || burn) && children && children.len && (owner.species.flags & REGENERATES_LIMBS)) var/obj/item/organ/external/stump/S = locate() in children if(S) - //world << "Extra healing to go around ([brute+burn]) and [owner] needs a replacement limb." +// to_chat(world, "Extra healing to go around ([brute+burn]) and [owner] needs a replacement limb.") */ //Sync the organ's damage with its wounds @@ -528,7 +528,7 @@ Note that amputating the affected organ does in fact remove the infection from t if(germ_level >= INFECTION_LEVEL_THREE && antibiotics < 30) //overdosing is necessary to stop severe infections if (!(status & ORGAN_DEAD)) status |= ORGAN_DEAD - owner << "You can't feel your [name] anymore..." + to_chat(owner, "You can't feel your [name] anymore...") owner.update_body(1) germ_level++ diff --git a/code/modules/surgery/organs/organ_internal.dm b/code/modules/surgery/organs/organ_internal.dm index 000075febbe..248da9d1154 100644 --- a/code/modules/surgery/organs/organ_internal.dm +++ b/code/modules/surgery/organs/organ_internal.dm @@ -302,7 +302,7 @@ if (germ_level > INFECTION_LEVEL_ONE) if(prob(1)) - owner << " Your skin itches." + to_chat(owner, " Your skin itches.") if (germ_level > INFECTION_LEVEL_TWO) if(prob(1)) spawn owner.vomit() @@ -458,7 +458,7 @@ if(organhonked < world.time) organhonked = world.time+900 - owner << "HONK" + to_chat(owner, "HONK") owner.sleeping = 0 owner.stuttering = 20 owner.ear_deaf = 30 diff --git a/code/modules/surgery/organs/pain.dm b/code/modules/surgery/organs/pain.dm index 333c314aa48..b2f6945b6f1 100644 --- a/code/modules/surgery/organs/pain.dm +++ b/code/modules/surgery/organs/pain.dm @@ -40,7 +40,7 @@ mob/living/carbon/proc/pain(var/partname, var/amount, var/force, var/burning = 0 msg = "OH GOD! Your [partname] is hurting terribly!" if(msg && (msg != last_pain_message || prob(10))) last_pain_message = msg - src << msg + to_chat(src, msg) next_pain_time = world.time + (100 - amount) @@ -64,7 +64,7 @@ mob/living/carbon/human/proc/custom_pain(var/message, var/flash_strength) // Anti message spam checks if(msg && ((msg != last_pain_message) || (world.time >= next_pain_time))) last_pain_message = msg - src << msg + to_chat(src, msg) next_pain_time = world.time + 100 mob/living/carbon/human/proc/handle_pain() diff --git a/code/modules/surgery/organs/parasites.dm b/code/modules/surgery/organs/parasites.dm index 89f94ba43fc..2d15efdd041 100644 --- a/code/modules/surgery/organs/parasites.dm +++ b/code/modules/surgery/organs/parasites.dm @@ -19,7 +19,7 @@ if(prob(12)) owner.reagents.add_reagent("histamine", 5) if(5) - owner << "You feel like something is tearing its way out of your skin..." + to_chat(owner, "You feel like something is tearing its way out of your skin...") owner.reagents.add_reagent("histamine", 10) if(prob(30)) owner.emote("scream") diff --git a/code/modules/surgery/organs/subtypes/machine.dm b/code/modules/surgery/organs/subtypes/machine.dm index 77b590a2f4d..5d9bd517d3f 100644 --- a/code/modules/surgery/organs/subtypes/machine.dm +++ b/code/modules/surgery/organs/subtypes/machine.dm @@ -132,7 +132,7 @@ /obj/item/organ/internal/optical_sensor/remove(var/mob/living/user,special = 0) if(!special) - owner << "Error 404:Optical Sensors not found." + to_chat(owner, "Error 404:Optical Sensors not found.") . = ..() diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm index 091f104707e..83684822a26 100644 --- a/code/modules/surgery/organs_internal.dm +++ b/code/modules/surgery/organs_internal.dm @@ -87,15 +87,15 @@ current_type = "insert" I = tool if(target_zone != I.parent_organ || target.get_organ_slot(I.slot)) - user << "There is no room for [I] in [target]'s [parse_zone(target_zone)]!" + to_chat(user, "There is no room for [I] in [target]'s [parse_zone(target_zone)]!") return -1 if(I.damage > (I.max_damage * 0.75)) - user << " \The [I] is in no state to be transplanted." + to_chat(user, " \The [I] is in no state to be transplanted.") return -1 if(target.get_int_organ(I)) - user << " \The [target] already has [I]." + to_chat(user, " \The [target] already has [I].") return -1 if(affected) user.visible_message("[user] starts transplanting \the [tool] into [target]'s [affected.name].", \ @@ -123,7 +123,7 @@ current_type = "extract" var/list/organs = target.get_organs_zone(target_zone) if(!organs.len) - user << "There are no removeable organs in [target]'s [parse_zone(target_zone)]!" + to_chat(user, "There are no removeable organs in [target]'s [parse_zone(target_zone)]!") return -1 else for(var/obj/item/organ/internal/O in organs) @@ -153,7 +153,7 @@ tool_name = "\the [tool]" //what else do you call nanopaste medically? if(!hasorgans(target)) - user << "They do not have organs to mend!" + to_chat(user, "They do not have organs to mend!") return for(var/obj/item/organ/internal/I in affected.internal_organs) if(I && I.damage > 0) @@ -166,11 +166,11 @@ user.visible_message("[user] starts treating damage to [target]'s [I.name] with [tool_name].", \ "You start treating damage to [target]'s [I.name] with [tool_name]." ) - user << "[I] does not appear to be damaged." + to_chat(user, "[I] does not appear to be damaged.") H.custom_pain("The pain in your [affected.name] is living hell!",1) else if(istype(tool, /obj/item/weapon/reagent_containers/food/snacks/organ)) - user << "[tool] was biten by someone! It's too damaged to use!" + to_chat(user, "[tool] was biten by someone! It's too damaged to use!") return -1 ..() @@ -205,7 +205,7 @@ I.insert(target) spread_germs_to_organ(I, user) if(!user.canUnEquip(I, 0)) - user << "[I] is stuck to your hand, you can't put it in [target]!" + to_chat(user, "[I] is stuck to your hand, you can't put it in [target]!") return 0 if(affected) diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index 73bf7944127..f8051575b05 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -240,12 +240,12 @@ /datum/surgery_step/internal/dethrall/begin_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool,datum/surgery/surgery) var/braincase = target.named_organ_parent("brain") user.visible_message("[user] reaches into [target]'s head with [tool].", "You begin aligning [tool]'s light to the tumor on [target]'s brain...") - target << "A small part of your [braincase] pulses with agony as the light impacts it." + to_chat(target, "A small part of your [braincase] pulses with agony as the light impacts it.") ..() /datum/surgery_step/internal/dethrall/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool,datum/surgery/surgery) if(target.get_species() == "Lesser Shadowling") //Empowered thralls cannot be deconverted - target << "NOT LIKE THIS!" + to_chat(target, "NOT LIKE THIS!") user.visible_message("[target] suddenly slams upward and knocks down [user]!", \ "[target] suddenly bolts up and slams you with tremendous force!") user.resting = 0 //Remove all stuns diff --git a/code/modules/surgery/robotics.dm b/code/modules/surgery/robotics.dm index c1851ecabc6..da627a57f0d 100644 --- a/code/modules/surgery/robotics.dm +++ b/code/modules/surgery/robotics.dm @@ -232,7 +232,7 @@ if(limb_can_operate) if(istype(C)) if(!C.get_amount() >= 3) - user << "You need three or more cable pieces to repair this damage." + to_chat(user, "You need three or more cable pieces to repair this damage.") return 2 C.use(3) return 1 @@ -288,18 +288,18 @@ var/obj/item/organ/internal/I = tool if(I.status != ORGAN_ROBOT || I.robotic != 2) - user << "You can only implant cybernetic organs." + to_chat(user, "You can only implant cybernetic organs.") if(target_zone != I.parent_organ || target.get_organ_slot(I.slot)) - user << "There is no room for [I] in [target]'s [parse_zone(target_zone)]!" + to_chat(user, "There is no room for [I] in [target]'s [parse_zone(target_zone)]!") return -1 if(I.damage > (I.max_damage * 0.75)) - user << " \The [I] is in no state to be transplanted." + to_chat(user, " \The [I] is in no state to be transplanted.") return -1 if(target.get_int_organ(I)) - user << " \The [target] already has [I]." + to_chat(user, " \The [target] already has [I].") return -1 user.visible_message("[user] begins reattaching [target]'s [tool].", \ @@ -309,7 +309,7 @@ current_type = "install" if(target_zone != "chest") - user << " You must target the chest cavity." + to_chat(user, " You must target the chest cavity.") return -1 var/obj/item/device/mmi/M = tool @@ -322,23 +322,23 @@ return -1 if(!M.brainmob || !M.brainmob.client || !M.brainmob.ckey || M.brainmob.stat >= DEAD) - user << "That brain is not usable." + to_chat(user, "That brain is not usable.") return -1 if(!(affected.status & ORGAN_ROBOT)) - user << "You cannot install a computer brain into a meat enclosure." + to_chat(user, "You cannot install a computer brain into a meat enclosure.") return -1 if(!target.species) - user << "You have no idea what species this person is. Report this on the bug tracker." + to_chat(user, "You have no idea what species this person is. Report this on the bug tracker.") return -1 if(!target.species.has_organ["brain"]) - user << "You're pretty sure [target.species.name_plural] don't normally have a brain." + to_chat(user, "You're pretty sure [target.species.name_plural] don't normally have a brain.") return -1 if(target.get_int_organ(/obj/item/organ/internal/brain/)) - user << "Your subject already has a brain." + to_chat(user, "Your subject already has a brain.") return -1 user.visible_message("[user] starts installing \the [tool] into [target]'s [affected.name].", \ @@ -352,7 +352,7 @@ if(!affected.open_enough_for_surgery()) return -1 if(!organs.len) - user << "There is no removeable organs in [target]'s [parse_zone(target_zone)]!" + to_chat(user, "There is no removeable organs in [target]'s [parse_zone(target_zone)]!") return -1 else for(var/obj/item/organ/internal/O in organs) @@ -408,7 +408,7 @@ var/obj/item/organ/internal/I = tool if(!user.canUnEquip(I, 0)) - user << "[I] is stuck to your hand, you can't put it in [target]!" + to_chat(user, "[I] is stuck to your hand, you can't put it in [target]!") return 0 user.drop_item() @@ -515,23 +515,23 @@ return 0 if(!M.brainmob || !M.brainmob.client || !M.brainmob.ckey || M.brainmob.stat >= DEAD) - user << "That brain is not usable." + to_chat(user, "That brain is not usable.") return 2 if(!(affected.status & ORGAN_ROBOT)) - user << "You cannot install a computer brain into a meat enclosure." + to_chat(user, "You cannot install a computer brain into a meat enclosure.") return 2 if(!target.species) - user << "You have no idea what species this person is. Report this on the bug tracker." + to_chat(user, "You have no idea what species this person is. Report this on the bug tracker.") return 2 if(!target.species.has_organ["brain"]) - user << "You're pretty sure [target.species.name_plural] don't normally have a brain." + to_chat(user, "You're pretty sure [target.species.name_plural] don't normally have a brain.") return 2 if(target.get_int_organ(/obj/item/organ/internal/brain/)) - user << "Your subject already has a brain." + to_chat(user, "Your subject already has a brain.") return 2 return 1 diff --git a/code/modules/surgery/surgery.dm b/code/modules/surgery/surgery.dm index f413b42ef63..672ae3ac804 100644 --- a/code/modules/surgery/surgery.dm +++ b/code/modules/surgery/surgery.dm @@ -181,7 +181,7 @@ /proc/spread_germs_to_organ(obj/item/organ/E, mob/living/carbon/human/user) if(!istype(user) || !istype(E)) return - //world << "Germ spread: [E] : [E.owner]" +// to_chat(world, "Germ spread: [E] : [E.owner]") var/germ_level = user.germ_level if(user.gloves) germ_level = user.gloves.germ_level diff --git a/code/modules/surgery/tools.dm b/code/modules/surgery/tools.dm index 536696dce2d..b878034ff4a 100644 --- a/code/modules/surgery/tools.dm +++ b/code/modules/surgery/tools.dm @@ -49,8 +49,8 @@ attack_verb = list("drilled") suicide_act(mob/user) - viewers(user) << pick("[user] is pressing [src] to \his temple and activating it! It looks like \he's trying to commit suicide.", \ - "[user] is pressing [src] to \his chest and activating it! It looks like \he's trying to commit suicide.") + to_chat(viewers(user), pick("[user] is pressing [src] to \his temple and activating it! It looks like \he's trying to commit suicide.", + "[user] is pressing [src] to \his chest and activating it! It looks like \he's trying to commit suicide.")) return (BRUTELOSS) @@ -73,9 +73,9 @@ hitsound = 'sound/weapons/bladeslice.ogg' suicide_act(mob/user) - viewers(user) << pick("[user] is slitting \his wrists with [src]! It looks like \he's trying to commit suicide.", \ - "[user] is slitting \his throat with [src]! It looks like \he's trying to commit suicide.", \ - "[user] is slitting \his stomach open with [src]! It looks like \he's trying to commit seppuku.") + to_chat(viewers(user), pick("[user] is slitting \his wrists with [src]! It looks like \he's trying to commit suicide.", + "[user] is slitting \his throat with [src]! It looks like \he's trying to commit suicide.", + "[user] is slitting \his stomach open with [src]! It looks like \he's trying to commit seppuku.")) return (BRUTELOSS) diff --git a/code/modules/telesci/telepad.dm b/code/modules/telesci/telepad.dm index ee4e9a790a6..0f1f7c8f582 100644 --- a/code/modules/telesci/telepad.dm +++ b/code/modules/telesci/telepad.dm @@ -46,7 +46,7 @@ if(istype(I, /obj/item/device/multitool)) var/obj/item/device/multitool/M = I M.buffer = src - user << "You save the data in the [I.name]'s buffer." + to_chat(user, "You save the data in the [I.name]'s buffer.") if(exchange_parts(user, I)) return @@ -70,22 +70,22 @@ playsound(src, 'sound/items/Ratchet.ogg', 50, 1) if(anchored) anchored = 0 - user << " The [src] can now be moved." + to_chat(user, " The [src] can now be moved.") else if(!anchored) anchored = 1 - user << " The [src] is now secured." + to_chat(user, " The [src] is now secured.") if(istype(W, /obj/item/weapon/screwdriver)) if(stage == 0) playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) - user << " You unscrew the telepad's tracking beacon." + to_chat(user, " You unscrew the telepad's tracking beacon.") stage = 1 else if(stage == 1) playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) - user << " You screw in the telepad's tracking beacon." + to_chat(user, " You screw in the telepad's tracking beacon.") stage = 0 if(istype(W, /obj/item/weapon/weldingtool) && stage == 1) playsound(src, 'sound/items/Welder.ogg', 50, 1) - user << " You disassemble the telepad." + to_chat(user, " You disassemble the telepad.") new /obj/item/stack/sheet/metal(get_turf(src)) new /obj/item/stack/sheet/glass(get_turf(src)) qdel(src) @@ -101,7 +101,7 @@ /obj/item/device/telepad_beacon/attack_self(mob/user as mob) if(user) - user << " Locked In" + to_chat(user, " Locked In") new /obj/machinery/telepad_cargo(user.loc) playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) qdel(src) @@ -135,7 +135,7 @@ /obj/item/weapon/rcs/examine(mob/user) ..(user) - user << "There are [round(rcell.charge/chargecost)] charge\s left." + to_chat(user, "There are [round(rcell.charge/chargecost)] charge\s left.") /obj/item/weapon/rcs/Destroy() if(rcell) @@ -148,11 +148,11 @@ if(mode == 0) mode = 1 playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) - user << " The telepad locator has become uncalibrated." + to_chat(user, " The telepad locator has become uncalibrated.") else mode = 0 playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) - user << " You calibrate the telepad locator." + to_chat(user, " You calibrate the telepad locator.") /obj/item/weapon/rcs/emag_act(user as mob) if(!emagged) @@ -160,5 +160,5 @@ var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(5, 1, src) s.start() - user << " You emag the RCS. Activate it to toggle between modes." + to_chat(user, " You emag the RCS. Activate it to toggle between modes.") return diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm index 15edeec20a2..2640b61bd33 100644 --- a/code/modules/telesci/telesci_computer.dm +++ b/code/modules/telesci/telesci_computer.dm @@ -44,7 +44,7 @@ /obj/machinery/computer/telescience/examine(mob/user) ..(user) - user << "There are [crystals.len ? crystals.len : "no"] bluespace crystal\s in the crystal slots." + to_chat(user, "There are [crystals.len ? crystals.len : "no"] bluespace crystal\s in the crystal slots.") /obj/machinery/computer/telescience/initialize() ..() @@ -54,7 +54,7 @@ /obj/machinery/computer/telescience/attackby(obj/item/W, mob/user, params) if(istype(W, /obj/item/weapon/ore/bluespace_crystal)) if(crystals.len >= max_crystals) - user << "There are not enough crystal slots." + to_chat(user, "There are not enough crystal slots.") return user.drop_item() crystals += W @@ -73,17 +73,17 @@ if(M.buffer && istype(M.buffer, /obj/machinery/telepad)) telepad = M.buffer M.buffer = null - user << "You upload the data from the [W.name]'s buffer." + to_chat(user, "You upload the data from the [W.name]'s buffer.") updateUsrDialog() else ..() /obj/machinery/computer/telescience/emag_act(user as mob) if (!emagged) - user << "\blue You scramble the Telescience authentication key to an unknown signal. You should be able to teleport to more places now!" + to_chat(user, "\blue You scramble the Telescience authentication key to an unknown signal. You should be able to teleport to more places now!") emagged = 1 else - user << "\red The machine seems unaffected by the card swipe..." + to_chat(user, "\red The machine seems unaffected by the card swipe...") /obj/machinery/computer/telescience/attack_ai(mob/user) src.attack_hand(user) diff --git a/code/modules/vehicle/train/train.dm b/code/modules/vehicle/train/train.dm index 72b5b2a7ed1..ea84d92c4ed 100644 --- a/code/modules/vehicle/train/train.dm +++ b/code/modules/vehicle/train/train.dm @@ -66,7 +66,7 @@ M.apply_damages(22 / move_delay) // and do damage according to how fast the train is going if(istype(load, /mob/living/carbon/human)) var/mob/living/D = load - D << "\red You hit [M]!" + to_chat(D, "\red You hit [M]!") msg_admin_attack("[key_name_admin(D)] hit [key_name_admin(M)] with [src].") @@ -86,7 +86,7 @@ /obj/vehicle/train/relaymove(mob/user, direction) var/turf/T = get_step_to(src, get_step(src, direction)) if(!T) - user << "You can't find a clear area to step onto." + to_chat(user, "You can't find a clear area to step onto.") return 0 if(user != load) @@ -97,7 +97,7 @@ unload(user, direction) - user << "\blue You climb down from [src]." + to_chat(user, "\blue You climb down from [src].") return 1 @@ -108,7 +108,7 @@ latch(C, user) else if(!load(C)) - user << "\red You were unable to load [C] on [src]." + to_chat(user, "\red You were unable to load [C] on [src].") /obj/vehicle/train/attack_hand(mob/user as mob) if(user.stat || user.restrained() || !Adjacent(user)) @@ -145,22 +145,22 @@ //attempts to attach src as a follower of the train T /obj/vehicle/train/proc/attach_to(obj/vehicle/train/T, mob/user) if (get_dist(src, T) > 1) - user << "\red [src] is too far away from [T] to hitch them together." + to_chat(user, "\red [src] is too far away from [T] to hitch them together.") return if (lead) - user << "\red [src] is already hitched to something." + to_chat(user, "\red [src] is already hitched to something.") return if (T.tow) - user << "\red [T] is already towing something." + to_chat(user, "\red [T] is already towing something.") return //check for cycles. var/obj/vehicle/train/next_car = T while (next_car) if (next_car == src) - user << "\red That seems very silly." + to_chat(user, "\red That seems very silly.") return next_car = next_car.lead @@ -170,7 +170,7 @@ dir = lead.dir if(user) - user << "\blue You hitch [src] to [T]." + to_chat(user, "\blue You hitch [src] to [T].") update_stats() @@ -178,7 +178,7 @@ //detaches the train from whatever is towing it /obj/vehicle/train/proc/unattach(mob/user) if (!lead) - user << "\red [src] is not hitched to anything." + to_chat(user, "\red [src] is not hitched to anything.") return lead.tow = null diff --git a/code/modules/vehicle/train/trains/ambulance.dm b/code/modules/vehicle/train/trains/ambulance.dm index f7094f10ad8..6ef9e9822b2 100644 --- a/code/modules/vehicle/train/trains/ambulance.dm +++ b/code/modules/vehicle/train/trains/ambulance.dm @@ -142,7 +142,7 @@ if(is_train_head() && istype(load, /mob/living/carbon/human)) var/mob/living/carbon/human/D = load - D << "\red \b You ran over [H]!" + to_chat(D, "\red \b You ran over [H]!") visible_message("\red \The [src] ran over [H]!") attack_log += text("\[[time_stamp()]\] ran over [key_name(H)], driven by [key_name(D)]") msg_admin_attack("[key_name_admin(D)] ran over [key_name_admin(H)]") @@ -168,7 +168,7 @@ /obj/vehicle/train/ambulance/engine/examine(mob/user) if(..(user, 1)) - user << "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition." + to_chat(user, "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition.") /obj/vehicle/train/ambulance/engine/verb/check_power() set name = "Check power level" @@ -179,10 +179,10 @@ return if(!cell) - usr << "There is no power cell installed in [src]." + to_chat(usr, "There is no power cell installed in [src].") return - usr << "The power meter reads [round(cell.percent(), 0.01)]%" + to_chat(usr, "The power meter reads [round(cell.percent(), 0.01)]%") /obj/vehicle/train/ambulance/engine/verb/start_engine() set name = "Start engine" @@ -193,17 +193,17 @@ return if(on) - usr << "The engine is already running." + to_chat(usr, "The engine is already running.") return turn_on() if (on) - usr << "You start [src]'s engine." + to_chat(usr, "You start [src]'s engine.") else if(cell.charge < charge_use) - usr << "[src] is out of power." + to_chat(usr, "[src] is out of power.") else - usr << "[src]'s engine won't start." + to_chat(usr, "[src]'s engine won't start.") /obj/vehicle/train/ambulance/engine/verb/stop_engine() set name = "Stop engine" @@ -214,12 +214,12 @@ return if(!on) - usr << "The engine is already stopped." + to_chat(usr, "The engine is already stopped.") return turn_off() if (!on) - usr << "You stop [src]'s engine." + to_chat(usr, "You stop [src]'s engine.") /obj/vehicle/train/ambulance/engine/verb/remove_key() set name = "Remove key" diff --git a/code/modules/vehicle/train/trains/cargo/cargo_train.dm b/code/modules/vehicle/train/trains/cargo/cargo_train.dm index 5933ada33d5..8df907b1420 100644 --- a/code/modules/vehicle/train/trains/cargo/cargo_train.dm +++ b/code/modules/vehicle/train/trains/cargo/cargo_train.dm @@ -138,7 +138,7 @@ if(is_train_head() && istype(load, /mob/living/carbon/human)) var/mob/living/carbon/human/D = load - D << "\red \b You ran over [H]!" + to_chat(D, "\red \b You ran over [H]!") visible_message("\red \The [src] ran over [H]!") attack_log += text("\[[time_stamp()]\] ran over [key_name(H)], driven by [key_name(D)]") msg_admin_attack("[key_name_admin(D)] ran over [key_name_admin(H)]") @@ -166,8 +166,8 @@ if(!..(user, 1)) return - user << "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition." - user << "The charge meter reads [cell? round(cell.percent(), 0.01) : 0]%" + to_chat(user, "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition.") + to_chat(user, "The charge meter reads [cell? round(cell.percent(), 0.01) : 0]%") /obj/vehicle/train/cargo/engine/verb/start_engine() set name = "Start engine" @@ -178,17 +178,17 @@ return if(on) - usr << "The engine is already running." + to_chat(usr, "The engine is already running.") return turn_on() if (on) - usr << "You start [src]'s engine." + to_chat(usr, "You start [src]'s engine.") else if(cell.charge < charge_use) - usr << "[src] is out of power." + to_chat(usr, "[src] is out of power.") else - usr << "[src]'s engine won't start." + to_chat(usr, "[src]'s engine won't start.") /obj/vehicle/train/cargo/engine/verb/stop_engine() set name = "Stop engine" @@ -199,12 +199,12 @@ return if(!on) - usr << "The engine is already stopped." + to_chat(usr, "The engine is already stopped.") return turn_off() if (!on) - usr << "You stop [src]'s engine." + to_chat(usr, "You stop [src]'s engine.") /obj/vehicle/train/cargo/engine/verb/remove_key() set name = "Remove key" diff --git a/code/modules/vehicle/vehicle.dm b/code/modules/vehicle/vehicle.dm index eb8c4f816b4..105f02148b7 100644 --- a/code/modules/vehicle/vehicle.dm +++ b/code/modules/vehicle/vehicle.dm @@ -86,7 +86,7 @@ if(!locked) open = !open update_icon() - user << "Maintenance panel is now [open ? "opened" : "closed"]." + to_chat(user, "Maintenance panel is now [open ? "opened" : "closed"].") else if(istype(W, /obj/item/weapon/crowbar) && cell && open) remove_cell(user) @@ -100,11 +100,11 @@ health = min(maxhealth, health+10) user.visible_message("\red [user] repairs [src]!","\blue You repair [src]!") else - user << "Unable to repair with the maintenance panel closed." + to_chat(user, "Unable to repair with the maintenance panel closed.") else - user << "[src] does not need a repair." + to_chat(user, "[src] does not need a repair.") else - user << "Unable to repair while [src] is off." + to_chat(user, "Unable to repair while [src] is off.") else if(hasvar(W,"force") && hasvar(W,"damtype")) switch(W.damtype) if("fire") @@ -205,7 +205,7 @@ if(locked) locked = 0 - user << "You bypass [src]'s controls." + to_chat(user, "You bypass [src]'s controls.") /obj/vehicle/proc/explode() src.visible_message("\red [src] blows apart!", 1) @@ -262,13 +262,13 @@ C.forceMove(src) cell = C powercheck() - usr << "You install [C] in [src]." + to_chat(usr, "You install [C] in [src].") /obj/vehicle/proc/remove_cell(var/mob/living/carbon/human/H) if(!cell) return - usr << "You remove [cell] from [src]." + to_chat(usr, "You remove [cell] from [src].") cell.forceMove(get_turf(H)) H.put_in_hands(cell) cell = null diff --git a/code/world.dm b/code/world.dm index dfb3094a314..4c6451d6860 100644 --- a/code/world.dm +++ b/code/world.dm @@ -82,14 +82,14 @@ var/global/datum/global_init/init = new () return //world/Topic(href, href_list[]) -// world << "Received a Topic() call!" -// world << "[href]" +// to_chat(world, "Received a Topic() call!") +// to_chat(world, "[href]") // for(var/a in href_list) -// world << "[a]" +// to_chat(world, "[a]") // if(href_list["hello"]) -// world << "Hello world!" +// to_chat(world, "Hello world!") // return "Hello world!" -// world << "End of Topic() call." +// to_chat(world, "End of Topic() call.") // ..() var/world_topic_spam_protect_ip = "0.0.0.0" @@ -181,11 +181,11 @@ var/world_topic_spam_protect_time = world.timeofday C.irc_admin = input["sender"] C << 'sound/effects/adminhelp.ogg' - C << message + to_chat(C, message) for(var/client/A in admins) if(A != C) - A << amessage + to_chat(A, amessage) return "Message Successful" @@ -207,7 +207,7 @@ var/world_topic_spam_protect_time = world.timeofday return "Bad Key" else for(var/client/C in clients) - C << "PR: [input["announce"]]" + to_chat(C, "PR: [input["announce"]]") /proc/keySpamProtect(var/addr) if(world_topic_spam_protect_ip == addr && abs(world_topic_spam_protect_time - world.time) < 50) @@ -225,7 +225,7 @@ var/world_topic_spam_protect_time = world.timeofday message_admins("[key_name_admin(usr)] has requested an immediate world restart via client side debugging tools") log_admin("[key_name(usr)] has requested an immediate world restart via client side debugging tools") spawn(0) - world << "Rebooting world immediately due to host request" + to_chat(world, "Rebooting world immediately due to host request") return ..(1) var/delay if(!isnull(time)) @@ -233,21 +233,22 @@ var/world_topic_spam_protect_time = world.timeofday else delay = ticker.restart_timeout if(ticker.delay_end) - world << "An admin has delayed the round end." + to_chat(world, "An admin has delayed the round end.") return - world << "Rebooting world in [delay/10] [delay > 10 ? "seconds" : "second"]. [reason]" + to_chat(world, "Rebooting world in [delay/10] [delay > 10 ? "seconds" : "second"]. [reason]") sleep(delay) if(blackbox) blackbox.save_all_data_to_sql() if(ticker.delay_end) - world << "Reboot was cancelled by an admin." + to_chat(world, "Reboot was cancelled by an admin.") return feedback_set_details("[feedback_c]","[feedback_r]") log_game("Rebooting world. [reason]") //kick_clients_in_lobby("The round came to an end with you in the lobby.", 1) spawn(0) - world << sound(pick('sound/AI/newroundsexy.ogg','sound/misc/apcdestroyed.ogg','sound/misc/bangindonk.ogg')) // random end sounds!! - LastyBatsy + to_chat(world, sound(pick('sound/AI/newroundsexy.ogg','sound/misc/apcdestroyed.ogg','sound/misc/bangindonk.ogg')))// random end sounds!! - LastyBatsy + processScheduler.stop() @@ -273,7 +274,7 @@ var/world_topic_spam_protect_time = world.timeofday if(C.is_afk(INACTIVITY_KICK)) if(!istype(C.mob, /mob/dead)) log_access("AFK: [key_name(C)]") - C << "\red You have been inactive for more than 10 minutes and have been disconnected." + to_chat(C, "\red You have been inactive for more than 10 minutes and have been disconnected.") del(C) if ( ((world.timeofday - sleep_check) > work_length) || ((world.timeofday - sleep_check) < 0) ) sleep(sleep_length) @@ -320,7 +321,7 @@ var/world_topic_spam_protect_time = world.timeofday /world/proc/save_mode(var/the_mode) var/F = file("data/mode.txt") fdel(F) - F << the_mode + to_chat(F, the_mode) /hook/startup/proc/loadMusic() for(var/obj/machinery/media/jukebox/J in machines)