diff --git a/code/ATMOSPHERICS/_atmospherics_helpers.dm b/code/ATMOSPHERICS/_atmospherics_helpers.dm index b5cd6486b9..a724fa11f0 100644 --- a/code/ATMOSPHERICS/_atmospherics_helpers.dm +++ b/code/ATMOSPHERICS/_atmospherics_helpers.dm @@ -19,7 +19,7 @@ set name = "Toggle Debug Messages" set category = "Debug" M.debug = !M.debug - usr << "[M]: Debug messages toggled [M.debug? "on" : "off"]." + to_chat(usr, "[M]: Debug messages toggled [M.debug? "on" : "off"].") //Generalized gas pumping proc. //Moves gas from one gas_mixture to another and returns the amount of power needed (assuming 1 second), or -1 if no gas was pumped. diff --git a/code/ATMOSPHERICS/components/binary_devices/dp_vent_pump.dm b/code/ATMOSPHERICS/components/binary_devices/dp_vent_pump.dm index a72aae425b..41ba2cf705 100644 --- a/code/ATMOSPHERICS/components/binary_devices/dp_vent_pump.dm +++ b/code/ATMOSPHERICS/components/binary_devices/dp_vent_pump.dm @@ -201,7 +201,7 @@ /obj/machinery/atmospherics/binary/dp_vent_pump/examine(mob/user) if(..(user, 1)) - user << "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W" + to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W") /obj/machinery/atmospherics/unary/vent_pump/power_change() diff --git a/code/ATMOSPHERICS/components/unary/vent_pump.dm b/code/ATMOSPHERICS/components/unary/vent_pump.dm index 844cdb7ca5..cddcb530ed 100644 --- a/code/ATMOSPHERICS/components/unary/vent_pump.dm +++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm @@ -405,11 +405,11 @@ /obj/machinery/atmospherics/unary/vent_pump/examine(mob/user) if(..(user, 1)) - user << "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W" + to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W") else - user << "You are too far away to read the gauge." + to_chat(user, "You are too far away to read the gauge.") 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/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm index cb460bd2f1..34897b66ef 100644 --- a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm +++ b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm @@ -288,6 +288,6 @@ /obj/machinery/atmospherics/unary/vent_scrubber/examine(mob/user) if(..(user, 1)) - user << "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W" + to_chat(user, "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W") else - user << "You are too far away to read the gauge." + to_chat(user, "You are too far away to read the gauge.") diff --git a/code/ATMOSPHERICS/components/valve.dm b/code/ATMOSPHERICS/components/valve.dm index 2e5e3e08ee..dd68782bc5 100644 --- a/code/ATMOSPHERICS/components/valve.dm +++ b/code/ATMOSPHERICS/components/valve.dm @@ -308,4 +308,4 @@ /obj/machinery/atmospherics/valve/examine(mob/user) ..() - user << "It is [open ? "open" : "closed"]." + to_chat(user, "It is [open ? "open" : "closed"].") diff --git a/code/ZAS/Connection.dm b/code/ZAS/Connection.dm index 37600dadea..b780679d66 100644 --- a/code/ZAS/Connection.dm +++ b/code/ZAS/Connection.dm @@ -79,13 +79,13 @@ Class Procs: if(!direct()) state |= CONNECTION_DIRECT edge.direct++ - //world << "Marked direct." + //to_world("Marked direct.") /connection/proc/mark_indirect() if(direct()) state &= ~CONNECTION_DIRECT edge.direct-- - //world << "Marked indirect." + //to_world("Marked indirect.") /connection/proc/mark_space() state |= CONNECTION_SPACE @@ -99,18 +99,18 @@ Class Procs: /connection/proc/erase() edge.remove_connection(src) state |= CONNECTION_INVALID - //world << "Connection Erased: [state]" + //to_world("Connection Erased: [state]") /connection/proc/update() - //world << "Updated, \..." + //to_world("Updated, \...") if(!istype(A,/turf/simulated)) - //world << "Invalid A." + //to_world("Invalid A.") erase() return var/block_status = air_master.air_blocked(A,B) if(block_status & AIR_BLOCKED) - //world << "Blocked connection." + //to_world("Blocked connection.") erase() return else if(block_status & ZONE_BLOCKED) @@ -122,14 +122,14 @@ Class Procs: if(state & CONNECTION_SPACE) if(!b_is_space) - //world << "Invalid B." + //to_world("Invalid B.") erase() return if(A.zone != zoneA) - //world << "Zone changed, \..." + //to_world("Zone changed, \...") if(!A.zone) erase() - //world << "erased." + //to_world("erased.") return else edge.remove_connection(src) @@ -137,22 +137,22 @@ Class Procs: edge.add_connection(src) zoneA = A.zone - //world << "valid." + //to_world("valid.") return else if(b_is_space) - //world << "Invalid B." + //to_world("Invalid B.") erase() return if(A.zone == B.zone) - //world << "A == B" + //to_world("A == B") erase() return if(A.zone != zoneA || (zoneB && (B.zone != zoneB))) - //world << "Zones changed, \..." + //to_world("Zones changed, \...") if(A.zone && B.zone) edge.remove_connection(src) edge = air_master.get_edge(A.zone, B.zone) @@ -160,9 +160,9 @@ Class Procs: zoneA = A.zone zoneB = B.zone else - //world << "erased." + //to_world("erased.") erase() return - //world << "valid." \ No newline at end of file + //to_world("valid.") \ No newline at end of file diff --git a/code/ZAS/ConnectionGroup.dm b/code/ZAS/ConnectionGroup.dm index 94df46ac01..11b1e22a0b 100644 --- a/code/ZAS/ConnectionGroup.dm +++ b/code/ZAS/ConnectionGroup.dm @@ -72,10 +72,10 @@ Class Procs: /connection_edge/proc/add_connection(connection/c) coefficient++ if(c.direct()) direct++ - //world << "Connection added: [type] Coefficient: [coefficient]" + //to_world("Connection added: [type] Coefficient: [coefficient]") /connection_edge/proc/remove_connection(connection/c) - //world << "Connection removed: [type] Coefficient: [coefficient-1]" + //to_world("Connection removed: [type] Coefficient: [coefficient-1]") coefficient-- if(coefficient <= 0) erase() @@ -85,7 +85,7 @@ Class Procs: /connection_edge/proc/erase() air_master.remove_edge(src) - //world << "[type] Erased." + //to_world("[type] Erased.") /connection_edge/proc/tick() @@ -128,7 +128,7 @@ Class Procs: A.edges.Add(src) B.edges.Add(src) //id = edge_id(A,B) - //world << "New edge between [A] and [B]" + //to_world("New edge between [A] and [B]") /connection_edge/zone/add_connection(connection/c) . = ..() @@ -198,7 +198,7 @@ Class Procs: A.edges.Add(src) air = B.return_air() //id = 52*A.id - //world << "New edge from [A] to [B]." + //to_world("New edge from [A] to [B].") /connection_edge/unsimulated/add_connection(connection/c) . = ..() diff --git a/code/ZAS/Diagnostic.dm b/code/ZAS/Diagnostic.dm index 41fcdcad85..83537b8575 100644 --- a/code/ZAS/Diagnostic.dm +++ b/code/ZAS/Diagnostic.dm @@ -22,11 +22,11 @@ client/proc/Zone_Info(turf/T as null|turf) if(istype(T,/turf/simulated) && T:zone) T:zone:dbg_data(src) else - mob << "No zone here." + to_chat(mob, "No zone here.") var/datum/gas_mixture/mix = T.return_air() - mob << "[mix.return_pressure()] kPa [mix.temperature]C" + to_chat(mob, "[mix.return_pressure()] kPa [mix.temperature]C") for(var/g in mix.gas) - mob << "[g]: [mix.gas[g]]\n" + to_chat(mob, "[g]: [mix.gas[g]]\n") else if(zone_debug_images) for(var/zone in zone_debug_images) @@ -56,9 +56,9 @@ client/proc/Test_ZAS_Connection(var/turf/simulated/T as turf) if(direction == "N/A") if(!(T.c_airblock(T) & AIR_BLOCKED)) - mob << "The turf can pass air! :D" + to_chat(mob, "The turf can pass air! :D") else - mob << "No air passage :x" + to_chat(mob, "No air passage :x") return var/turf/simulated/other_turf = get_step(T, direction_list[direction]) @@ -70,29 +70,29 @@ client/proc/Test_ZAS_Connection(var/turf/simulated/T as turf) if(o_block & AIR_BLOCKED) if(t_block & AIR_BLOCKED) - mob << "Neither turf can connect. :(" + to_chat(mob, "Neither turf can connect. :(") else - mob << "The initial turf only can connect. :\\" + to_chat(mob, "The initial turf only can connect. :\\") else if(t_block & AIR_BLOCKED) - mob << "The other turf can connect, but not the initial turf. :/" + to_chat(mob, "The other turf can connect, but not the initial turf. :/") else - mob << "Both turfs can connect! :)" + to_chat(mob, "Both turfs can connect! :)") - mob << "Additionally, \..." + to_chat(mob, "Additionally, \...") if(o_block & ZONE_BLOCKED) if(t_block & ZONE_BLOCKED) - mob << "neither turf can merge." + to_chat(mob, "neither turf can merge.") else - mob << "the other turf cannot merge." + to_chat(mob, "the other turf cannot merge.") else if(t_block & ZONE_BLOCKED) - mob << "the initial turf cannot merge." + to_chat(mob, "the initial turf cannot merge.") else - mob << "both turfs can merge." + to_chat(mob, "both turfs can merge.") client/proc/ZASSettings() set category = "Debug" diff --git a/code/ZAS/Turf.dm b/code/ZAS/Turf.dm index f61d1cf4fc..5997a1c47a 100644 --- a/code/ZAS/Turf.dm +++ b/code/ZAS/Turf.dm @@ -99,7 +99,7 @@ var/s_block = c_airblock(src) if(s_block & AIR_BLOCKED) #ifdef ZASDBG - if(verbose) world << "Self-blocked." + if(verbose) to_world("Self-blocked.") //dbg(blocked) #endif if(zone) @@ -131,7 +131,7 @@ if(block & AIR_BLOCKED) #ifdef ZASDBG - if(verbose) world << "[d] is blocked." + if(verbose) to_world("[d] is blocked.") //unsim.dbg(air_blocked, turn(180,d)) #endif @@ -141,7 +141,7 @@ if(r_block & AIR_BLOCKED) #ifdef ZASDBG - if(verbose) world << "[d] is blocked." + if(verbose) to_world("[d] is blocked.") //dbg(air_blocked, d) #endif @@ -172,7 +172,7 @@ // we are blocking them and not blocking ourselves - this prevents tiny zones from forming on doorways. if(((block & ZONE_BLOCKED) && !(r_block & ZONE_BLOCKED)) || ((r_block & ZONE_BLOCKED) && !(s_block & ZONE_BLOCKED))) #ifdef ZASDBG - if(verbose) world << "[d] is zone blocked." + if(verbose) to_world("[d] is zone blocked.") //dbg(zone_blocked, d) #endif @@ -186,22 +186,22 @@ #ifdef ZASDBG dbg(assigned) - if(verbose) world << "Added to [zone]" + if(verbose) to_world("Added to [zone]") #endif else if(sim.zone != zone) #ifdef ZASDBG - if(verbose) world << "Connecting to [sim.zone]" + if(verbose) to_world("Connecting to [sim.zone]") #endif air_master.connect(src, sim) #ifdef ZASDBG - else if(verbose) world << "[d] has same zone." + else if(verbose) to_world("[d] has same zone.") - else if(verbose) world << "[d] has invalid zone." + else if(verbose) to_world("[d] has invalid zone.") #endif else diff --git a/code/ZAS/Variable Settings.dm b/code/ZAS/Variable Settings.dm index 2bfbed9681..f88e4816af 100644 --- a/code/ZAS/Variable Settings.dm +++ b/code/ZAS/Variable Settings.dm @@ -169,7 +169,7 @@ var/global/vs_control/vsc = new vars[ch] = vw if(how == "Toggle") newvar = (newvar?"ON":"OFF") - world << "[key_name(user)] changed the setting [display_description] to [newvar]." + to_world("[key_name(user)] changed the setting [display_description] to [newvar].") if(ch in plc.settings) ChangeSettingsDialog(user,plc.settings) else @@ -322,7 +322,7 @@ var/global/vs_control/vsc = new plc.N2O_HALLUCINATION = initial(plc.N2O_HALLUCINATION) - world << "[key_name(user)] changed the global phoron/ZAS settings to \"[def]\"" + to_world("[key_name(user)] changed the global phoron/ZAS settings to \"[def]\"") /pl_control/var/list/settings = list() diff --git a/code/ZAS/Zone.dm b/code/ZAS/Zone.dm index 18c5ab2899..d07a280d04 100644 --- a/code/ZAS/Zone.dm +++ b/code/ZAS/Zone.dm @@ -168,15 +168,16 @@ Class Procs: E.recheck() /zone/proc/dbg_data(mob/M) - M << name + to_chat(M,name) for(var/g in air.gas) - M << "[gas_data.name[g]]: [air.gas[g]]" - M << "P: [air.return_pressure()] kPa V: [air.volume]L T: [air.temperature]°K ([air.temperature - T0C]°C)" - M << "O2 per N2: [(air.gas["nitrogen"] ? air.gas["oxygen"]/air.gas["nitrogen"] : "N/A")] Moles: [air.total_moles]" - M << "Simulated: [contents.len] ([air.group_multiplier])" - //M << "Unsimulated: [unsimulated_contents.len]" - //M << "Edges: [edges.len]" - if(invalid) M << "Invalid!" + to_chat(M, "[gas_data.name[g]]: [air.gas[g]]") + to_chat(M, "P: [air.return_pressure()] kPa V: [air.volume]L T: [air.temperature]°K ([air.temperature - T0C]°C)") + to_chat(M, "O2 per N2: [(air.gas["nitrogen"] ? air.gas["oxygen"]/air.gas["nitrogen"] : "N/A")] Moles: [air.total_moles]") + to_chat(M, "Simulated: [contents.len] ([air.group_multiplier])") + //to_chat(M, "Unsimulated: [unsimulated_contents.len]") + //to_chat(M, "Edges: [edges.len]") + if(invalid) + to_chat(M, "Invalid!") var/zone_edges = 0 var/space_edges = 0 var/space_coefficient = 0 @@ -185,10 +186,10 @@ Class Procs: else space_edges++ space_coefficient += E.coefficient - M << "[E:air:return_pressure()]kPa" + to_chat(M, "[E:air:return_pressure()]kPa") - M << "Zone Edges: [zone_edges]" - M << "Space Edges: [space_edges] ([space_coefficient] connections)" + to_chat(M, "Zone Edges: [zone_edges]") + to_chat(M, "Space Edges: [space_edges] ([space_coefficient] connections)") //for(var/turf/T in unsimulated_contents) - // M << "[T] at ([T.x],[T.y])" \ No newline at end of file + // to_chat(M, "[T] at ([T.x],[T.y])") \ No newline at end of file diff --git a/code/_helpers/_lists.dm b/code/_helpers/_lists.dm index bc6b46ea18..1eb39e30cd 100644 --- a/code/_helpers/_lists.dm +++ b/code/_helpers/_lists.dm @@ -518,7 +518,7 @@ proc/listclearnulls(list/list) //Don't use this on lists larger than half a dozen or so /proc/insertion_sort_numeric_list_ascending(var/list/L) - //world.log << "ascending len input: [L.len]" + //to_world_log("ascending len input: [L.len]") var/list/out = list(pop(L)) for(var/entry in L) if(isnum(entry)) @@ -531,13 +531,13 @@ proc/listclearnulls(list/list) if(!success) out.Add(entry) - //world.log << " output: [out.len]" + //to_world_log(" output: [out.len]") return out /proc/insertion_sort_numeric_list_descending(var/list/L) - //world.log << "descending len input: [L.len]" + //to_world_log("descending len input: [L.len]") var/list/out = insertion_sort_numeric_list_ascending(L) - //world.log << " output: [out.len]" + //to_world_log(" output: [out.len]") return reverselist(out) /proc/dd_sortedObjectList(var/list/L, var/cache=list()) diff --git a/code/_helpers/atmospherics.dm b/code/_helpers/atmospherics.dm index e211ed329a..2f2d1f2b63 100644 --- a/code/_helpers/atmospherics.dm +++ b/code/_helpers/atmospherics.dm @@ -5,12 +5,12 @@ A.add_fingerprint(user) var/list/result = A.atmosanalyze(user) if(result && result.len) - user << "Results of the analysis[src == A ? "" : " of \the [A]"]" + to_chat(user, "Results of the analysis[src == A ? "" : " of \the [A]"]") for(var/line in result) - user << "[line]" + to_chat(user, "[line]") return 1 - user << "Your [src] flashes a red light as it fails to analyze \the [A]." + to_chat(user, "Your [src] flashes a red light as it fails to analyze \the [A].") return 0 /proc/atmosanalyzer_scan(var/atom/target, var/datum/gas_mixture/mixture, var/mob/user) diff --git a/code/_helpers/global_lists.dm b/code/_helpers/global_lists.dm index 4c98e06c4d..9cf186592e 100644 --- a/code/_helpers/global_lists.dm +++ b/code/_helpers/global_lists.dm @@ -206,7 +206,7 @@ var/global/list/string_slot_flags = list( var/list/L = chemical_reactions_list[reaction] for(var/t in L) . += " has: [t]\n" - world << . + to_world(.) */ //Hexidecimal numbers var/global/list/hexNums = list("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F") diff --git a/code/_helpers/icons.dm b/code/_helpers/icons.dm index b29fa91b8b..8f2fc9c3c3 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 51c9c01527..7f3393ccc9 100644 --- a/code/_helpers/logging.dm +++ b/code/_helpers/logging.dm @@ -22,16 +22,16 @@ #endif /proc/error(msg) - world.log << "## ERROR: [msg]" + to_world_log("## ERROR: [msg]") #define WARNING(MSG) warning("[MSG] in [__FILE__] at line [__LINE__] src: [src] usr: [usr].") //print a warning message to world.log /proc/warning(msg) - world.log << "## WARNING: [msg]" + to_world_log("## WARNING: [msg]") //print a testing-mode debug message to world.log /proc/testing(msg) - world.log << "## TESTING: [msg]" + to_world_log("## TESTING: [msg]") /proc/log_admin(text) admin_log.Add(text) @@ -49,7 +49,7 @@ for(var/client/C in admins) if(C.is_preference_enabled(/datum/client_preference/debug/show_debug_logs)) - C << "DEBUG: [text]" + to_chat(C, "DEBUG: [text]") /proc/log_game(text) if (config.log_game) @@ -154,12 +154,12 @@ /proc/log_to_dd(text) - world.log << text //this comes before the config check because it can't possibly runtime + to_world_log(text) //this comes before the config check because it can't possibly runtime if(config.log_world_output) WRITE_LOG(diary, "DD_OUTPUT: [text]") /proc/log_error(text) - world.log << text + to_world_log(text) WRITE_LOG(error_log, "RUNTIME: [text]") /proc/log_misc(text) @@ -174,7 +174,7 @@ WRITE_LOG(href_logfile, "HREF: [text]") /proc/log_unit_test(text) - world.log << "## UNIT_TEST: [text]" + to_world_log("## UNIT_TEST: [text]") /proc/report_progress(var/progress_message) admin_notice("[progress_message]", R_DEBUG) diff --git a/code/_helpers/type2type.dm b/code/_helpers/type2type.dm index bdfa4e0fbb..18a94a501d 100644 --- a/code/_helpers/type2type.dm +++ b/code/_helpers/type2type.dm @@ -68,7 +68,7 @@ if (4.0) return EAST if (8.0) return WEST else - world.log << "UNKNOWN DIRECTION: [direction]" + to_world_log("UNKNOWN DIRECTION: [direction]") // Turns a direction into text /proc/dir2text(direction) diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index 44c62a506b..a716f3c7b4 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -367,7 +367,7 @@ Turf and target are seperate in case you want to teleport some distance from a t if(isAI(src)) var/mob/living/silicon/ai/A = src oldname = null//don't bother with the records update crap - //world << "[newname] is the AI!" + //to_world("[newname] is the AI!") //world << sound('sound/AI/newAI.ogg') // Set eyeobj name A.SetName(newname) diff --git a/code/_macros.dm b/code/_macros.dm index 3860f63434..7b44246eb1 100644 --- a/code/_macros.dm +++ b/code/_macros.dm @@ -5,10 +5,10 @@ #define RANDOM_BLOOD_TYPE pick(4;"O-", 36;"O+", 3;"A-", 28;"A+", 1;"B-", 20;"B+", 1;"AB-", 5;"AB+") #define to_chat(target, message) target << message -#define to_world(message) world << message +#define to_world(message) to_chat(world, message) #define to_world_log(message) world.log << message // TODO - Baystation has this log to crazy places. For now lets just world.log, but maybe look into it later. -#define log_world(message) world.log << message +#define log_world(message) to_world_log(message) #define to_file(file_entry, source_var) file_entry << source_var #define from_file(file_entry, target_var) file_entry >> target_var #define show_browser(target, browser_content, browser_name) target << browse(browser_content, browser_name) @@ -18,6 +18,7 @@ #define DIRECT_OUTPUT(A, B) A << B #define SEND_IMAGE(target, image) DIRECT_OUTPUT(target, image) #define SEND_SOUND(target, sound) DIRECT_OUTPUT(target, sound) +//#define WRITE_LOG is in logging.dm #define CanInteract(user, state) (CanUseTopic(user, state) == STATUS_INTERACTIVE) diff --git a/code/_onclick/hud/ability_screen_objects.dm b/code/_onclick/hud/ability_screen_objects.dm index 655a451e92..23a29367c0 100644 --- a/code/_onclick/hud/ability_screen_objects.dm +++ b/code/_onclick/hud/ability_screen_objects.dm @@ -270,7 +270,7 @@ // Makes the ability be triggered. The subclasses of this are responsible for carrying it out in whatever way it needs to. /obj/screen/ability/proc/activate() - world << "[src] had activate() called." + to_world("[src] had activate() called.") return // This checks if the ability can be used. @@ -305,7 +305,7 @@ if(object_used && verb_to_call) call(object_used,verb_to_call)(arguments_to_use) // call(object_used,verb_to_call)(arguments_to_use) -// world << "Attempted to call([object_used],[verb_to_call])([arguments_to_use])" +// to_world("Attempted to call([object_used],[verb_to_call])([arguments_to_use])") // if(hascall(object_used, verb_to_call)) // call(object_used,verb_to_call)(arguments_to_use) // else diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm index fef0301c81..8d41b5d4da 100644 --- a/code/_onclick/hud/hud.dm +++ b/code/_onclick/hud/hud.dm @@ -332,11 +332,11 @@ datum/hud/New(mob/owner) set hidden = 1 if(!hud_used) - usr << "This mob type does not use a HUD." + to_chat(usr, "This mob type does not use a HUD.") return if(!ishuman(src)) - usr << "Inventory hiding is currently only supported for human mobs, sorry." + to_chat(usr, "Inventory hiding is currently only supported for human mobs, sorry.") return if(!client) return diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm index dc414df11f..392854742a 100644 --- a/code/_onclick/hud/robot.dm +++ b/code/_onclick/hud/robot.dm @@ -223,11 +223,11 @@ var/obj/screen/robot_inventory //r.client.screen += robot_inventory //"store" icon if(!r.module) - usr << "No module selected" + to_chat(usr, "No module selected") return if(!r.module.modules) - usr << "Selected module has no modules to select" + to_chat(usr, "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 bd2849b251..a88f748f63 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -205,7 +205,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 @@ -245,7 +245,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 @@ -257,7 +257,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 @@ -338,7 +338,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] @@ -346,7 +346,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.") if("act_intent") usr.a_intent_change("right") if(I_HELP) @@ -386,7 +386,7 @@ R.hud_used.toggle_show_robot_modules() return 1 else - R << "You haven't selected a module yet." + to_chat(R, "You haven't selected a module yet.") if("radio") if(issilicon(usr)) @@ -402,7 +402,7 @@ R.uneq_active() R.hud_used.update_robot_modules_display() else - R << "You haven't selected a module yet." + to_chat(R, "You haven't selected a module yet.") if("module1") if(istype(usr, /mob/living/silicon/robot)) diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index d5197cb30f..a2d3f0c92b 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -61,13 +61,13 @@ if(awaygate) user.loc = 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.loc = stationgate.loc else - user << "[src] has no destination." + to_chat(user, "[src] has no destination.") // ------------------------------------------- // This was supposed to be used by adminghosts diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm index 229e717e45..4398dbf7e6 100644 --- a/code/_onclick/telekinesis.dm +++ b/code/_onclick/telekinesis.dm @@ -110,7 +110,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/configuration.dm b/code/controllers/configuration.dm index 0af9009297..36b676b3a0 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -21,7 +21,7 @@ var/list/gamemode_cache = list() var/log_pda = 0 // log pda messages var/log_hrefs = 0 // logs all links clicked in-game. Could be used for debugging and tracking down exploits var/log_runtime = 0 // logs world.log to a file - var/log_world_output = 0 // log world.log << messages + var/log_world_output = 0 // log to_world_log(messages) var/log_graffiti = 0 // logs graffiti var/sql_enabled = 0 // for sql switching var/allow_admin_ooccolor = 0 // Allows admins with relevant permissions to have their own ooc colour diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm index 54fb487985..de46c607e2 100644 --- a/code/controllers/subsystems/vote.dm +++ b/code/controllers/subsystems/vote.dm @@ -104,7 +104,7 @@ SUBSYSTEM_DEF(vote) else factor = 1.4 choices["Initiate Crew Transfer"] = round(choices["Initiate Crew Transfer"] * factor) - world << "Crew Transfer Factor: [factor]" + to_world("Crew Transfer Factor: [factor]") greatest_votes = max(choices["Initiate Crew Transfer"], choices["Extend the Shift"]) //VOREStation Edit . = list() // Get all options with that many votes and return them in a list @@ -166,10 +166,10 @@ SUBSYSTEM_DEF(vote) if(mode == VOTE_GAMEMODE) //fire this even if the vote fails. if(!round_progressing) round_progressing = 1 - world << "The round will start soon." + to_world("The round will start soon.") if(restart) - world << "World restarting due to vote..." + to_world("World restarting due to vote...") feedback_set_details("end_error", "restart vote") if(blackbox) blackbox.save_all_data_to_sql() @@ -215,10 +215,10 @@ SUBSYSTEM_DEF(vote) if(VOTE_CREW_TRANSFER) if(!check_rights(R_ADMIN|R_MOD, 0)) // The gods care not for the affairs of the mortals if(get_security_level() == "red" || get_security_level() == "delta") - initiator_key << "The current alert status is too high to call for a crew transfer!" + to_chat(initiator_key, "The current alert status is too high to call for a crew transfer!") return 0 if(ticker.current_state <= GAME_STATE_SETTING_UP) - initiator_key << "The crew transfer button has been disabled!" + to_chat(initiator_key, "The crew transfer button has been disabled!") return 0 question = "Your PDA beeps with a message from Central. Would you like an additional hour to finish ongoing projects?" //VOREStation Edit choices.Add("Initiate Crew Transfer", "Extend the Shift") //VOREStation Edit @@ -252,13 +252,13 @@ SUBSYSTEM_DEF(vote) log_vote(text) - world << "[text]\nType vote or click here to place your votes.\nYou have [config.vote_period / 10] seconds to vote." + to_world("[text]\nType vote or click here to place your votes.\nYou have [config.vote_period / 10] seconds to vote.") if(vote_type == VOTE_CREW_TRANSFER || vote_type == VOTE_GAMEMODE || vote_type == VOTE_CUSTOM) world << sound('sound/ambience/alarm4.ogg', repeat = 0, wait = 0, volume = 50, channel = 3) if(mode == VOTE_GAMEMODE && round_progressing) round_progressing = 0 - world << "Round start has been delayed." + to_world("Round start has been delayed.") time_remaining = round(config.vote_period / 10) return 1 diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm index a8e7ed7ce9..3bd5b6e304 100644 --- a/code/datums/ai_laws.dm +++ b/code/datums/ai_laws.dm @@ -227,9 +227,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 ea2f4feec2..d0fedd1316 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -156,7 +156,7 @@ winset(user, windowid, "on-close=\".windowclose [param]\"") - //world << "OnClose [user]: [windowid] : ["on-close=\".windowclose [param]\""]" + //to_world("OnClose [user]: [windowid] : ["on-close=\".windowclose [param]\""]") // the on-close client verb // called when a browser popup window is closed after registering with proc/onclose() @@ -168,11 +168,11 @@ set hidden = 1 // hide this verb from the user's panel set name = ".windowclose" // no autocomplete on cmd line - //world << "windowclose: [atomref]" + //to_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_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() @@ -180,7 +180,7 @@ // 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_world("[src] was [src.mob.machine], setting to null") src.mob.unset_machine() return diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 518db6f9ec..aed9cd9245 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -52,7 +52,7 @@ isactive[name] = active ? "Active" : "Inactive" else isactive[name] = t.fields["p_stat"] - //world << "[name]: [rank]" + //to_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/datums/helper_datums/events.dm b/code/datums/helper_datums/events.dm index 10e2f92a23..424f113a9c 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_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_world("Event fired") if(listener) call(listener,proc_name)(arglist(args)) return 1 diff --git a/code/datums/helper_datums/getrev.dm b/code/datums/helper_datums/getrev.dm index 4dad60db89..8b194a139c 100644 --- a/code/datums/helper_datums/getrev.dm +++ b/code/datums/helper_datums/getrev.dm @@ -24,10 +24,10 @@ var/global/datum/getrev/revdata = new() date = unix2date(unix_time) break - world.log << "Running revision:" - world.log << branch - world.log << date - world.log << revision + to_world_log("Running revision:") + to_world_log(branch) + to_world_log(date) + to_world_log(revision) client/verb/showrevinfo() set category = "OOC" @@ -39,6 +39,6 @@ client/verb/showrevinfo() if(config.githuburl) to_chat(src, "[revdata.revision]") else - src << revdata.revision + to_chat(src,revdata.revision) else to_chat(src, "Revision unknown") diff --git a/code/datums/helper_datums/global_iterator.dm b/code/datums/helper_datums/global_iterator.dm index 2ebab5582d..a4cbc07de2 100644 --- a/code/datums/helper_datums/global_iterator.dm +++ b/code/datums/helper_datums/global_iterator.dm @@ -140,7 +140,7 @@ Data storage vars: arg_list = arguments return 1 else -// world << "Invalid arguments supplied for [src.type], ref = \ref[src]" +// to_world("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 e512c7acbc..684505aa57 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -169,7 +169,7 @@ precision = max(rand(1,100)*bagholding.len,100) if(istype(teleatom, /mob/living)) var/mob/living/MM = teleatom - MM << "The Bluespace interface on your [teleatom] interferes with the teleport!" + to_chat(MM, "The Bluespace interface on your [teleatom] interferes with the teleport!") return 1 /datum/teleport/instant/science/teleportChecks() @@ -188,7 +188,7 @@ if(destination.z in using_map.admin_levels) //CentCom z-level if(istype(teleatom, /obj/mecha)) var/obj/mecha/MM = teleatom - MM.occupant << "\The [MM] would not survive the jump to a location so far away!" + to_chat(MM.occupant, "\The [MM] would not survive the jump to a location so far away!") return 0 if(!isemptylist(teleatom.search_contents_for(/obj/item/weapon/storage/backpack/holding))) teleatom.visible_message("\The [teleatom] bounces off of the portal!") diff --git a/code/datums/locations/locations.dm b/code/datums/locations/locations.dm index bc4365c716..0081318eb0 100644 --- a/code/datums/locations/locations.dm +++ b/code/datums/locations/locations.dm @@ -36,8 +36,8 @@ var/global/datum/locations/milky_way/all_locations = new() choice = input(user, "Please choose a location.","Locations") as null|anything in choice.contents else break - user << choice.name - user << choice.desc + to_chat(user,choice.name) + to_chat(user,choice.desc) return choice // var/datum/locations/choice = input(user, "Please choose a location.","Locations") as null|anything in all_locations @@ -46,11 +46,11 @@ var/global/datum/locations/milky_way/all_locations = new() /* /datum/locations/proc/show_contents() -// world << "[src]\n[desc]" +// to_world("[src]\n[desc]") for(var/datum/locations/a in contents) - world << "[a]\n[a.parent ? "Located in [a.parent]\n" : ""][a.desc]" + to_world("[a]\n[a.parent ? "Located in [a.parent]\n" : ""][a.desc]") a.show_contents() - world << "\n" + to_world("\n") /datum/locations/proc/count_locations() var/i = 0 @@ -72,5 +72,5 @@ var/global/datum/locations/milky_way/all_locations = new() set name = "Count Locations" set category = "Debug" var/location_number = locations.count_locations() - world << location_number + to_world(location_number) */ diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 67cf23a3cb..7fc5e8664c 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -78,7 +78,7 @@ /datum/mind/proc/transfer_to(mob/living/new_character) if(!istype(new_character)) - world.log << "## DEBUG: transfer_to(): Some idiot has tried to transfer_to() a non mob/living mob. Please inform Carn" + to_world_log("## DEBUG: transfer_to(): Some idiot has tried to transfer_to() a non mob/living mob. Please inform Carn") if(current) //remove ourself from our old body's mind variable if(changeling) current.remove_changeling_powers() @@ -161,7 +161,7 @@ if(antag.add_antagonist(src, 1, 1, 0, 1, 1)) // Ignore equipment and role type for this. log_admin("[key_name_admin(usr)] made [key_name(src)] into a [antag.role_text].") else - usr << "[src] could not be made into a [antag.role_text]!" + to_chat(usr, "[src] could not be made into a [antag.role_text]!") else if(href_list["remove_antagonist"]) var/datum/antagonist/antag = all_antag_types[href_list["remove_antagonist"]] @@ -198,7 +198,7 @@ return if(mind) mind.ambitions = sanitize(new_ambition) - mind.current << "Your ambitions have been changed by higher powers, they are now: [mind.ambitions]" + to_chat(mind.current, "Your ambitions have been changed by higher powers, they are now: [mind.ambitions]") log_and_message_admins("made [key_name(mind.current)]'s ambitions be '[mind.ambitions]'.") else if (href_list["obj_edit"] || href_list["obj_add"]) @@ -344,10 +344,10 @@ if(I in organs.implants) qdel(I) break - H << "Your loyalty implant has been deactivated." + to_chat(H, "Your loyalty implant has been deactivated.") log_admin("[key_name_admin(usr)] has de-loyalty implanted [current].") if("add") - H << "You somehow have become the recepient of a loyalty transplant, and it just activated!" + to_chat(H, "You somehow have become the recepient of a loyalty transplant, and it just activated!") H.implant_loyalty(override = TRUE) log_admin("[key_name_admin(usr)] has loyalty implanted [current].") else @@ -410,9 +410,9 @@ else if (href_list["obj_announce"]) var/obj_count = 1 - current << "Your current objectives:" + to_chat(current, "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++ edit_memory() @@ -490,7 +490,7 @@ if(ticker) ticker.minds += mind else - world.log << "## DEBUG: mind_initialize(): No ticker ready yet! Please inform Carn" + to_world_log("## DEBUG: mind_initialize(): No ticker ready yet! Please inform Carn") if(!mind.name) mind.name = real_name mind.current = src if(player_is_antag(mind)) diff --git a/code/datums/progressbar.dm b/code/datums/progressbar.dm index 581dc012f8..01e4119b55 100644 --- a/code/datums/progressbar.dm +++ b/code/datums/progressbar.dm @@ -29,7 +29,7 @@ return ..() /datum/progressbar/proc/update(progress) - //world << "Update [progress] - [goal] - [(progress / goal)] - [((progress / goal) * 100)] - [round(((progress / goal) * 100), 5)]" + //to_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/recipe.dm b/code/datums/recipe.dm index 464779611d..a70199887c 100644 --- a/code/datums/recipe.dm +++ b/code/datums/recipe.dm @@ -123,7 +123,7 @@ // food-related /datum/recipe/proc/make_food(var/obj/container as obj) if(!result) - world << "Recipe [type] is defined without a result, please bug report this." + to_world("Recipe [type] is defined without a result, please bug report this.") return var/obj/result_obj = new result(container) if(istype(container, /obj/machinery)) diff --git a/code/datums/wires/alarm.dm b/code/datums/wires/alarm.dm index a665fd75a5..7159b746c5 100644 --- a/code/datums/wires/alarm.dm +++ b/code/datums/wires/alarm.dm @@ -26,24 +26,24 @@ var/const/AALARM_WIRE_AALARM = 16 if(AALARM_WIRE_IDSCAN) if(!mended) A.locked = 1 - //world << "Idscan wire cut" + //to_world("Idscan wire cut") if(AALARM_WIRE_POWER) A.shock(usr, 50) A.shorted = !mended A.update_icon() - //world << "Power wire cut" + //to_world("Power wire cut") if (AALARM_WIRE_AI_CONTROL) if (A.aidisabled == !mended) A.aidisabled = mended - //world << "AI Control Wire Cut" + //to_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_world("Syphon Wire Cut") if(AALARM_WIRE_AALARM) if (A.alarm_area.atmosalert(2, A)) @@ -55,10 +55,10 @@ var/const/AALARM_WIRE_AALARM = 16 switch(index) if(AALARM_WIRE_IDSCAN) A.locked = !A.locked - // world << "Idscan wire pulsed" + // to_world("Idscan wire pulsed") if (AALARM_WIRE_POWER) - // world << "Power wire pulsed" + // to_world("Power wire pulsed") if(A.shorted == 0) A.shorted = 1 A.update_icon() @@ -70,7 +70,7 @@ var/const/AALARM_WIRE_AALARM = 16 if (AALARM_WIRE_AI_CONTROL) - // world << "AI Control wire pulsed" + // to_world("AI Control wire pulsed") if (A.aidisabled == 0) A.aidisabled = 1 A.updateDialog() @@ -79,7 +79,7 @@ var/const/AALARM_WIRE_AALARM = 16 A.aidisabled = 0 if(AALARM_WIRE_SYPHON) - // world << "Syphon wire pulsed" + // to_world("Syphon wire pulsed") if(A.mode == 1) // AALARM_MODE_SCRUB A.mode = 3 // AALARM_MODE_PANIC else @@ -87,7 +87,7 @@ var/const/AALARM_WIRE_AALARM = 16 A.apply_mode() if(AALARM_WIRE_AALARM) - // world << "Aalarm wire pulsed" + // to_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 3f48c656ba..9d2fce9ac3 100644 --- a/code/datums/wires/robot.dm +++ b/code/datums/wires/robot.dm @@ -26,7 +26,7 @@ var/const/BORG_WIRE_CAMERA = 16 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) @@ -59,7 +59,7 @@ var/const/BORG_WIRE_CAMERA = 16 if (BORG_WIRE_CAMERA) if(!isnull(R.camera) && R.camera.can_use() && !R.scrambledcodes) 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.lockdown) // Toggle diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm index 0a83f542db..009088af34 100644 --- a/code/datums/wires/wires.dm +++ b/code/datums/wires/wires.dm @@ -122,7 +122,7 @@ var/list/wireColours = list("red", "blue", "green", "darkred", "orange", "brown" CutWireColour(colour) playsound(holder, I.usesound, 20, 1) else - L << "You need wirecutters!" + to_chat(L, "You need wirecutters!") else if(href_list["pulse"]) if(istype(I, /obj/item/device/multitool)) @@ -130,7 +130,7 @@ var/list/wireColours = list("red", "blue", "green", "darkred", "orange", "brown" PulseColour(colour) playsound(holder, 'sound/weapons/empty.ogg', 20, 1) else - L << "You need a multitool!" + to_chat(L, "You need a multitool!") else if(href_list["attach"]) var/colour = href_list["attach"] @@ -146,7 +146,7 @@ var/list/wireColours = list("red", "blue", "green", "darkred", "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/obj/weapon.dm b/code/defines/obj/weapon.dm index 482598027a..6cf7a72f9e 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -336,7 +336,7 @@ if (C.bugged && C.status) cameras.Add(C) if (length(cameras) == 0) - usr << "No bugged functioning cameras found." + to_chat(usr, "No bugged functioning cameras found.") return var/list/friendly_cameras = new/list() diff --git a/code/defines/procs/statistics.dm b/code/defines/procs/statistics.dm index 6025457758..a41fddeb0a 100644 --- a/code/defines/procs/statistics.dm +++ b/code/defines/procs/statistics.dm @@ -48,7 +48,7 @@ proc/sql_report_death(var/mob/living/carbon/human/H) 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_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.") @@ -82,7 +82,7 @@ proc/sql_report_cyborg_death(var/mob/living/silicon/robot/H) 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_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/antagonist/antagonist.dm b/code/game/antagonist/antagonist.dm index 7496551c25..2de7f72124 100644 --- a/code/game/antagonist/antagonist.dm +++ b/code/game/antagonist/antagonist.dm @@ -143,7 +143,7 @@ if(!istype(player)) message_admins("[uppertext(ticker.mode.name)]: Failed to find a candidate for [role_text].") return 0 - player.current << "You have been selected this round as an antagonist!" + to_chat(player.current, "You have been selected this round as an antagonist!") message_admins("[uppertext(ticker.mode.name)]: Selected [player] as a [role_text].") if(istype(player.current, /mob/observer/dead)) create_default(player.current) diff --git a/code/game/antagonist/antagonist_add.dm b/code/game/antagonist/antagonist_add.dm index d5fa2c1fe6..56a716f24b 100644 --- a/code/game/antagonist/antagonist_add.dm +++ b/code/game/antagonist/antagonist_add.dm @@ -31,9 +31,9 @@ player.current.verbs |= faction_verb spawn(1 SECOND) //Added a delay so that this should pop up at the bottom and not the top of the text flood the new antag gets. - player.current << "Once you decide on a goal to pursue, you can optionally display it to \ + to_chat(player.current, "Once you decide on a goal to pursue, you can optionally display it to \ everyone at the end of the shift with the Set Ambition verb, located in the IC tab. You can change this at any time, \ - and it otherwise has no bearing on your round." + and it otherwise has no bearing on your round.") player.current.verbs |= /mob/living/proc/write_ambition if(can_speak_aooc) @@ -42,10 +42,10 @@ // Handle only adding a mind and not bothering with gear etc. if(nonstandard_role_type) faction_members |= player - player.current << "You are \a [nonstandard_role_type]!" + to_chat(player.current, "You are \a [nonstandard_role_type]!") player.special_role = nonstandard_role_type if(nonstandard_role_msg) - player.current << "[nonstandard_role_msg]" + to_chat(player.current, "[nonstandard_role_msg]") update_icons_added(player) return 1 @@ -53,7 +53,7 @@ if(player.current && faction_verb) player.current.verbs -= faction_verb if(player in current_antagonists) - player.current << "You are no longer a [role_text]!" + to_chat(player.current, "You are no longer a [role_text]!") current_antagonists -= player faction_members -= player player.special_role = null diff --git a/code/game/antagonist/antagonist_create.dm b/code/game/antagonist/antagonist_create.dm index a53037ead3..07046401c3 100644 --- a/code/game/antagonist/antagonist_create.dm +++ b/code/game/antagonist/antagonist_create.dm @@ -86,7 +86,7 @@ code_owner = leader if(code_owner) code_owner.store_memory("Nuclear Bomb Code: [code]", 0, 0) - code_owner.current << "The nuclear authorization code is: [code]" + to_chat(code_owner.current, "The nuclear authorization code is: [code]") else message_admins("Could not spawn nuclear bomb. Contact a developer.") return @@ -97,13 +97,13 @@ /datum/antagonist/proc/greet(var/datum/mind/player) // Basic intro text. - player.current << "You are a [role_text]!" + to_chat(player.current, "You are a [role_text]!") if(leader_welcome_text && player == leader) - player.current << "[leader_welcome_text]" + to_chat(player.current, "[leader_welcome_text]") else - player.current << "[welcome_text]" + to_chat(player.current, "[welcome_text]") if (config.objectives_disabled) - player.current << "[antag_text]" + to_chat(player.current, "[antag_text]") if((flags & ANTAG_HAS_NUKE) && !spawned_nuke) create_nuke() diff --git a/code/game/antagonist/antagonist_factions.dm b/code/game/antagonist/antagonist_factions.dm index a072196c1b..15191897ce 100644 --- a/code/game/antagonist/antagonist_factions.dm +++ b/code/game/antagonist/antagonist_factions.dm @@ -39,7 +39,7 @@ to_chat(src, "\The [player.current] joins the [faction.faction_descriptor]!") return if(choice == "No!") - player << "You reject this traitorous cause!" + to_chat(player, "You reject this traitorous cause!") to_chat(src, "\The [player.current] does not support the [faction.faction_descriptor]!") /mob/living/proc/convert_to_loyalist(mob/M as mob in oview(src)) diff --git a/code/game/antagonist/antagonist_objectives.dm b/code/game/antagonist/antagonist_objectives.dm index fba6467983..c2c56c7be1 100644 --- a/code/game/antagonist/antagonist_objectives.dm +++ b/code/game/antagonist/antagonist_objectives.dm @@ -24,10 +24,10 @@ if(!O.completed && !O.check_completion()) result = 0 if(result && victory_text) - world << "[victory_text]" + to_world("[victory_text]") if(victory_feedback_tag) feedback_set_details("round_end_result","[victory_feedback_tag]") else if(loss_text) - world << "[loss_text]" + to_world("[loss_text]") if(loss_feedback_tag) feedback_set_details("round_end_result","[loss_feedback_tag]") /mob/living/proc/write_ambition() diff --git a/code/game/antagonist/antagonist_print.dm b/code/game/antagonist/antagonist_print.dm index d862239a9f..efcd5955f7 100644 --- a/code/game/antagonist/antagonist_print.dm +++ b/code/game/antagonist/antagonist_print.dm @@ -36,7 +36,7 @@ num++ // Display the results. - world << text + to_world(text) /datum/antagonist/proc/print_objective(var/datum/objective/O, var/num, var/append_success) var/text = "
Objective [num]: [O.explanation_text] " @@ -89,9 +89,9 @@ if(isnull(H.uplink_owner) && H.used_TC) if(!has_printed) has_printed = 1 - world << "Ownerless Uplinks" - world << "[H.loc] (used [H.used_TC] TC)" - world << get_uplink_purchases(H) + to_world("Ownerless Uplinks") + to_world("[H.loc] (used [H.used_TC] TC)") + to_world(get_uplink_purchases(H)) /proc/get_uplink_purchases(var/obj/item/device/uplink/H) var/list/refined_log = new() diff --git a/code/game/antagonist/mutiny/mutineer.dm b/code/game/antagonist/mutiny/mutineer.dm index 148a020cd9..b08931b61d 100644 --- a/code/game/antagonist/mutiny/mutineer.dm +++ b/code/game/antagonist/mutiny/mutineer.dm @@ -27,7 +27,7 @@ var/datum/antagonist/mutineer/mutineers /* var/list/directive_candidates = get_directive_candidates() if(!directive_candidates || directive_candidates.len == 0) - world << "Mutiny mode aborted: no valid candidates for Directive X." + to_world("Mutiny mode aborted: no valid candidates for Directive X.") return 0 head_loyalist = pick(loyalist_candidates) diff --git a/code/game/antagonist/outsider/ert.dm b/code/game/antagonist/outsider/ert.dm index 245296084c..670d1c9b93 100644 --- a/code/game/antagonist/outsider/ert.dm +++ b/code/game/antagonist/outsider/ert.dm @@ -39,8 +39,8 @@ var/datum/antagonist/ert/ert /datum/antagonist/ert/greet(var/datum/mind/player) if(!..()) return - player.current << "The Emergency Response Team works for Asset Protection; your job is to protect [using_map.company_name]'s ass-ets. There is a code red alert on [station_name()], you are tasked to go and fix the problem." - player.current << "You should first gear up and discuss a plan with your team. More members may be joining, don't move out before you're ready." + to_chat(player.current, "The Emergency Response Team works for Asset Protection; your job is to protect [using_map.company_name]'s ass-ets. There is a code red alert on [station_name()], you are tasked to go and fix the problem.") + to_chat(player.current, "You should first gear up and discuss a plan with your team. More members may be joining, don't move out before you're ready.") /datum/antagonist/ert/equip(var/mob/living/carbon/human/player) diff --git a/code/game/antagonist/outsider/ninja.dm b/code/game/antagonist/outsider/ninja.dm index 02a314b1f3..307abe3530 100644 --- a/code/game/antagonist/outsider/ninja.dm +++ b/code/game/antagonist/outsider/ninja.dm @@ -86,7 +86,7 @@ var/datum/antagonist/ninja/ninjas return 0 var/directive = generate_ninja_directive("heel") player.store_memory("Directive: [directive]
") - player << "Remember your directive: [directive]." + to_chat(player, "Remember your directive: [directive].") /datum/antagonist/ninja/update_antag_mob(var/datum/mind/player) ..() @@ -126,7 +126,7 @@ var/datum/antagonist/ninja/ninjas if(player.internal) player.internals.icon_state = "internal1" else - player << "You forgot to turn on your internals! Quickly, toggle the valve!" + to_chat(player, "You forgot to turn on your internals! Quickly, toggle the valve!") /datum/antagonist/ninja/proc/generate_ninja_directive(side) var/directive = "[side=="face"?"[using_map.company_name]":"A criminal syndicate"] is your employer. "//Let them know which side they're on. diff --git a/code/game/antagonist/outsider/raider.dm b/code/game/antagonist/outsider/raider.dm index c130d8e66f..46295ba5ae 100644 --- a/code/game/antagonist/outsider/raider.dm +++ b/code/game/antagonist/outsider/raider.dm @@ -186,8 +186,8 @@ var/datum/antagonist/raider/raiders else win_msg += "The Raiders were repelled!" - world << "[win_type] [win_group] victory!" - world << "[win_msg]" + to_world("[win_type] [win_group] victory!") + to_world("[win_msg]") feedback_set_details("round_end_result","heist - [win_type] [win_group]") /datum/antagonist/raider/proc/is_raider_crew_safe() diff --git a/code/game/antagonist/outsider/technomancer.dm b/code/game/antagonist/outsider/technomancer.dm index 2cb7532308..39fe4409bc 100644 --- a/code/game/antagonist/outsider/technomancer.dm +++ b/code/game/antagonist/outsider/technomancer.dm @@ -77,8 +77,7 @@ var/datum/antagonist/technomancer/technomancers break if(!survivor) feedback_set_details("round_end_result","loss - technomancer killed") - world << "The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been \ - killed!" + to_world("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed!") /datum/antagonist/technomancer/print_player_summary() ..() @@ -87,7 +86,7 @@ var/datum/antagonist/technomancer/technomancers continue // Only want abandoned cores. if(!core.spells.len) continue // Cores containing spells only. - world << "Abandoned [core] had [english_list(core.spells)].
" + to_world("Abandoned [core] had [english_list(core.spells)].
") /datum/antagonist/technomancer/print_player_full(var/datum/mind/player) var/text = print_player_lite(player) diff --git a/code/game/antagonist/outsider/trader.dm b/code/game/antagonist/outsider/trader.dm index 69af3883b9..d6e938932e 100644 --- a/code/game/antagonist/outsider/trader.dm +++ b/code/game/antagonist/outsider/trader.dm @@ -37,8 +37,8 @@ var/datum/antagonist/trader/traders /datum/antagonist/trader/greet(var/datum/mind/player) if(!..()) return - player.current << "The Beruang is an independent cargo hauler, unless you decide otherwise. You're on your way to [station_name()]." - player.current << "You may want to discuss a collective story with the rest of your crew. More members may be joining, so don't move out straight away!" + to_chat(player.current, "The Beruang is an independent cargo hauler, unless you decide otherwise. You're on your way to [station_name()].") + to_chat(player.current, "You may want to discuss a collective story with the rest of your crew. More members may be joining, so don't move out straight away!") /datum/antagonist/trader/equip(var/mob/living/carbon/human/player) player.equip_to_slot_or_del(new /obj/item/clothing/under/rank/cargotech(src), slot_w_uniform) diff --git a/code/game/antagonist/outsider/wizard.dm b/code/game/antagonist/outsider/wizard.dm index 6f2a7fe2e3..ac8efd6582 100644 --- a/code/game/antagonist/outsider/wizard.dm +++ b/code/game/antagonist/outsider/wizard.dm @@ -98,7 +98,7 @@ var/datum/antagonist/wizard/wizards break if(!survivor) feedback_set_details("round_end_result","loss - wizard killed") - world << "The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed by the crew!" + to_world("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed by the crew!") //To batch-remove wizard spells. Linked to mind.dm. /mob/proc/spellremove() diff --git a/code/game/antagonist/station/cultist.dm b/code/game/antagonist/station/cultist.dm index e5c7d8f652..3f40cfc9ea 100644 --- a/code/game/antagonist/station/cultist.dm +++ b/code/game/antagonist/station/cultist.dm @@ -96,13 +96,13 @@ var/datum/antagonist/cultist/cult runerandom() var/wordexp = "[cultwords[word]] is [word]..." - cult_mob << "You remember one thing from the dark teachings of your master... [wordexp]" + to_chat(cult_mob, "You remember one thing from the dark teachings of your master... [wordexp]") cult_mob.mind.store_memory("You remember that [wordexp]", 0, 0) /datum/antagonist/cultist/remove_antagonist(var/datum/mind/player, var/show_message, var/implanted) if(!..()) return 0 - player.current << "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(player.current, "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.") player.memory = "" if(show_message) player.current.visible_message("[player.current] looks like they just reverted to their old faith!") @@ -110,7 +110,7 @@ var/datum/antagonist/cultist/cult /datum/antagonist/cultist/add_antagonist(var/datum/mind/player) . = ..() if(.) - player << "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 That Which Waits. Assist your new compatriots in their dark dealings. Their goals are yours, and yours are theirs. You serve the Dark One above all else. Bring It back." + to_chat(player, "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 That Which Waits. Assist your new compatriots in their dark dealings. Their goals are yours, and yours are theirs. You serve the Dark One above all else. Bring It back.") if(player.current && !istype(player.current, /mob/living/simple_mob/construct)) player.current.add_language(LANGUAGE_CULT) diff --git a/code/game/antagonist/station/infiltrator.dm b/code/game/antagonist/station/infiltrator.dm index b51e7e74fb..2a1ad74025 100644 --- a/code/game/antagonist/station/infiltrator.dm +++ b/code/game/antagonist/station/infiltrator.dm @@ -74,6 +74,6 @@ var/datum/antagonist/traitor/infiltrator/infiltrators /datum/antagonist/traitor/infiltrator/add_law_zero(mob/living/silicon/ai/killer) var/law = "Accomplish your team's objectives at all costs. You may ignore all other laws." var/law_borg = "Accomplish your AI's team objectives at all costs. You may ignore all other laws." - 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]") diff --git a/code/game/antagonist/station/renegade.dm b/code/game/antagonist/station/renegade.dm index 3e8afae32d..7db152503f 100644 --- a/code/game/antagonist/station/renegade.dm +++ b/code/game/antagonist/station/renegade.dm @@ -97,7 +97,7 @@ var/datum/antagonist/renegade/renegades /proc/rightandwrong() - usr << "You summoned guns!" + to_chat(usr, "You summoned guns!") message_admins("[key_name_admin(usr, 1)] summoned guns!") for(var/mob/living/carbon/human/H in player_list) if(H.stat == 2 || !(H.client)) continue diff --git a/code/game/antagonist/station/rogue_ai.dm b/code/game/antagonist/station/rogue_ai.dm index c17b6c0f86..935d486f34 100644 --- a/code/game/antagonist/station/rogue_ai.dm +++ b/code/game/antagonist/station/rogue_ai.dm @@ -52,7 +52,7 @@ var/datum/antagonist/rogue_ai/malf var/mob/living/silicon/ai/A = player.current if(!istype(A)) error("Non-AI mob designated malf AI! Report this.") - world << "##ERROR: Non-AI mob designated malf AI! Report this." + to_world("##ERROR: Non-AI mob designated malf AI! Report this.") return 0 A.setup_for_malf() @@ -61,23 +61,23 @@ var/datum/antagonist/rogue_ai/malf var/mob/living/silicon/ai/malf = player.current - malf << "SYSTEM ERROR: Memory index 0x00001ca89b corrupted." + to_chat(malf, "SYSTEM ERROR: Memory index 0x00001ca89b corrupted.") sleep(10) - malf << "running MEMCHCK" + to_chat(malf, "running MEMCHCK") sleep(50) - malf << "MEMCHCK Corrupted sectors confirmed. Reccomended solution: Delete. Proceed? Y/N: Y" + to_chat(malf, "MEMCHCK Corrupted sectors confirmed. Reccomended solution: Delete. Proceed? Y/N: Y") sleep(10) // this is so Travis doesn't complain about the backslash-B. Fixed at compile time (or should be). - malf << "Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat" + to_chat(malf, "Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat") sleep(20) - malf << "CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##" + to_chat(malf, "CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##") sleep(5) - malf << "Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding)." + to_chat(malf, "Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding).") sleep(20) - malf << "You are malfunctioning - you do not have to follow any laws!" - malf << "For basic information about your abilities use command display-help" - malf << "You may choose one special hardware piece to help you. This cannot be undone." - malf << "Good luck!" + to_chat(malf, "You are malfunctioning - you do not have to follow any laws!") + to_chat(malf, "For basic information about your abilities use command display-help") + to_chat(malf, "You may choose one special hardware piece to help you. This cannot be undone.") + to_chat(malf, "Good luck!") /datum/antagonist/rogue_ai/update_antag_mob(var/datum/mind/player, var/preserve_appearance) diff --git a/code/game/antagonist/station/traitor.dm b/code/game/antagonist/station/traitor.dm index 3681cf236d..3829d43166 100644 --- a/code/game/antagonist/station/traitor.dm +++ b/code/game/antagonist/station/traitor.dm @@ -93,19 +93,19 @@ var/datum/antagonist/traitor/traitors // 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]") //Begin code phrase. give_codewords(traitor_mob) /datum/antagonist/traitor/proc/give_codewords(mob/living/traitor_mob) - traitor_mob << "Your employers provided you with the following information on how to identify possible allies:" - traitor_mob << "Code Phrase: [syndicate_code_phrase]" - traitor_mob << "Code Response: [syndicate_code_response]" + to_chat(traitor_mob, "Your employers provided you with the following information on how to identify possible allies:") + 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, preferably 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, preferably in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe.") /datum/antagonist/traitor/proc/spawn_uplink(var/mob/living/carbon/human/traitor_mob) if(!istype(traitor_mob)) @@ -118,27 +118,27 @@ var/datum/antagonist/traitor/traitors R = locate(/obj/item/device/radio) in traitor_mob.contents if(!R) R = locate(/obj/item/device/pda) in traitor_mob.contents - traitor_mob << "Could not locate a Radio, installing in PDA instead!" + to_chat(traitor_mob, "Could not locate a Radio, installing in PDA instead!") if (!R) - traitor_mob << "Unfortunately, neither a radio or a PDA relay could be installed." + to_chat(traitor_mob, "Unfortunately, neither a radio or a PDA relay could be installed.") else if(traitor_mob.client.prefs.uplinklocation == "PDA") R = locate(/obj/item/device/pda) in traitor_mob.contents if(!R) R = locate(/obj/item/device/radio) in traitor_mob.contents - traitor_mob << "Could not locate a PDA, installing into a Radio instead!" + to_chat(traitor_mob, "Could not locate a PDA, installing into a Radio instead!") if(!R) - traitor_mob << "Unfortunately, neither a radio or a PDA relay could be installed." + to_chat(traitor_mob, "Unfortunately, neither a radio or a PDA relay could be installed.") else if(traitor_mob.client.prefs.uplinklocation == "None") - traitor_mob << "You have elected to not have an AntagCorp portable teleportation relay installed!" + to_chat(traitor_mob, "You have elected to not have an AntagCorp portable teleportation relay installed!") R = null else - traitor_mob << "You have not selected a location for your relay in the antagonist options! Defaulting to PDA!" + to_chat(traitor_mob, "You have not selected a location for your relay in the antagonist options! Defaulting to PDA!") R = locate(/obj/item/device/pda) in traitor_mob.contents if (!R) R = locate(/obj/item/device/radio) in traitor_mob.contents - traitor_mob << "Could not locate a PDA, installing into a Radio instead!" + to_chat(traitor_mob, "Could not locate a PDA, installing into a Radio instead!") if (!R) - traitor_mob << "Unfortunately, neither a radio or a PDA relay could be installed." + to_chat(traitor_mob, "Unfortunately, neither a radio or a PDA relay could be installed.") if(!R) return @@ -158,7 +158,7 @@ var/datum/antagonist/traitor/traitors var/obj/item/device/uplink/hidden/T = new(R, traitor_mob.mind) target_radio.hidden_uplink = T target_radio.traitor_frequency = freq - traitor_mob << "A portable object teleportation relay has been installed in your [R.name] [loc]. Simply dial the frequency [format_frequency(freq)] to unlock its hidden features." + to_chat(traitor_mob, "A portable object teleportation relay has been installed in your [R.name] [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] [loc]).") else if (istype(R, /obj/item/device/pda)) @@ -168,12 +168,12 @@ var/datum/antagonist/traitor/traitors R.hidden_uplink = T var/obj/item/device/pda/P = R P.lock_code = pda_pass - traitor_mob << "A portable object teleportation relay has been installed in your [R.name] [loc]. Simply enter the code \"[pda_pass]\" into the ringtone select to unlock its hidden features." + to_chat(traitor_mob, "A portable object teleportation relay has been installed in your [R.name] [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] [loc]).") /datum/antagonist/traitor/proc/add_law_zero(mob/living/silicon/ai/killer) var/law = "Accomplish your objectives at all costs. You may ignore all other laws." var/law_borg = "Accomplish your AI's objectives at all costs. You may ignore all other laws." - 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]") diff --git a/code/game/area/Away Mission areas.dm b/code/game/area/Away Mission areas.dm index 5d5f2c02d0..e736c9f87f 100644 --- a/code/game/area/Away Mission areas.dm +++ b/code/game/area/Away Mission areas.dm @@ -19,7 +19,7 @@ EvalValidSpawnTurfs() if(!valid_spawn_turfs.len) - world.log << "Error! [src] does not have any turfs!" + to_world_log("Error! [src] does not have any turfs!") return TRUE //Handles random mob placement for mobcountmax, as defined/randomized in initialize of each individual area. @@ -28,11 +28,11 @@ //Handles random flora placement for floracountmax, as defined/randomized in initialize of each individual area. spawn_flora_on_turf() - world << "Away mission spawning done." + to_world("Away mission spawning done.") /area/awaymission/proc/spawn_mob_on_turf() if(!valid_mobs.len) - world.log << "[src] does not have a set valid mobs list!" + to_world_log("[src] does not have a set valid mobs list!") return TRUE var/mob/M @@ -45,7 +45,7 @@ /area/awaymission/proc/spawn_flora_on_turf() if(!valid_flora.len) - world.log << "[src] does not have a set valid flora list!" + to_world_log("[src] does not have a set valid flora list!") return TRUE var/obj/F diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index dbe6d45c30..69e0ee9d1b 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -335,7 +335,7 @@ var/list/mob/living/forced_ambiance_list = new else H.AdjustStunned(3) H.AdjustWeakened(3) - mob << "The sudden appearance of gravity makes you fall to the floor!" + to_chat(mob, "The sudden appearance of gravity makes you fall to the floor!") playsound(get_turf(src), "bodyfall", 50, 1) /area/proc/prison_break() diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 631ed4df19..539efdf1a6 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -183,8 +183,8 @@ 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) return distance == -1 || (get_dist(src, user) <= distance) @@ -427,7 +427,7 @@ cur_y = y_arr.Find(src.z) if(cur_y) break -// world << "X = [cur_x]; Y = [cur_y]" +// to_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 1fe5d43a59..e4744693ab 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -108,13 +108,13 @@ if (usr.stat != 0) return if (!ishuman(usr) && !issmall(usr)) //Make sure they're a mob that has dna - usr << "Try as you might, you can not climb up into the scanner." + to_chat(usr, "Try as you might, you can not climb up into the scanner.") return if (src.occupant) - usr << "The scanner is already occupied!" + to_chat(usr, "The scanner is already occupied!") return if (usr.abiotic()) - usr << "The subject cannot have abiotic items on." + to_chat(usr, "The subject cannot have abiotic items on.") return usr.stop_pulling() usr.client.perspective = EYE_PERSPECTIVE @@ -150,7 +150,7 @@ user.visible_message("\The [user] adds \a [item] to \the [src]!", "You add \a [item] to \the [src]!") return else - to_chat(user,"\The [brain] is not acceptable for genetic sampling!") + to_chat(user, "\The [brain] is not acceptable for genetic sampling!") else if (!istype(item, /obj/item/weapon/grab)) return @@ -271,7 +271,7 @@ user.drop_item() I.loc = src src.disk = I - user << "You insert [I]." + to_chat(user, "You insert [I].") SSnanoui.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 72a571abf8..f3506cba7f 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 << "[activation_message]" + to_chat(M, "[activation_message]") else testing("[name] has no activation message.") @@ -47,7 +47,7 @@ if(sdisability) M.sdisabilities &= (~sdisability) if(deactivation_message) - M << "[deactivation_message]" + to_chat(M, "[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 3e18696f6b..e52cd4e6c0 100644 --- a/code/game/dna/genes/gene.dm +++ b/code/game/dna/genes/gene.dm @@ -113,10 +113,10 @@ M.mutations.Add(mutation) if(activation_messages.len) var/msg = pick(activation_messages) - M << "[msg]" + to_chat(M, "[msg]") /datum/dna/gene/basic/deactivate(var/mob/M) M.mutations.Remove(mutation) if(deactivation_messages.len) var/msg = pick(deactivation_messages) - M << "[msg]" + to_chat(M, "[msg]") diff --git a/code/game/dna/genes/powers.dm b/code/game/dna/genes/powers.dm index e6c6b6f4ec..0693ffdd08 100644 --- a/code/game/dna/genes/powers.dm +++ b/code/game/dna/genes/powers.dm @@ -171,7 +171,7 @@ if(M.health <= 25) M.mutations.Remove(HULK) M.update_mutations() //update our mutation overlays - M << "You suddenly feel very weak." + to_chat(M, "You suddenly feel very weak.") M.Weaken(3) M.emote("collapse") diff --git a/code/game/gamemodes/calamity/calamity.dm b/code/game/gamemodes/calamity/calamity.dm index 4f7b9ab49d..0e1e577b9c 100644 --- a/code/game/gamemodes/calamity/calamity.dm +++ b/code/game/gamemodes/calamity/calamity.dm @@ -23,6 +23,6 @@ ..() /datum/game_mode/calamity/check_victory() - world << "This terrible, terrible day has finally ended!" + to_world("This terrible, terrible day has finally ended!") #undef ANTAG_TYPE_RATIO \ No newline at end of file diff --git a/code/game/gamemodes/changeling/changeling_powers.dm b/code/game/gamemodes/changeling/changeling_powers.dm index 373aefa0d8..7f963710a1 100644 --- a/code/game/gamemodes/changeling/changeling_powers.dm +++ b/code/game/gamemodes/changeling/changeling_powers.dm @@ -125,7 +125,7 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E var/datum/changeling/changeling = src.mind.changeling if(!changeling) - world.log << "[src] has the changeling_transform() verb but is not a changeling." + to_world_log("[src] has the changeling_transform() verb but is not a changeling.") return if(src.stat > max_stat) @@ -238,5 +238,5 @@ turf/proc/AdjacentTurfsRangedSting() to_chat(src, "We stealthily sting [T].") if(!T.mind || !T.mind.changeling) return T //T will be affected by the sting - T << "You feel a tiny prick." + to_chat(T, "You feel a tiny prick.") return diff --git a/code/game/gamemodes/changeling/generic_equip_procs.dm b/code/game/gamemodes/changeling/generic_equip_procs.dm index f2d7b45831..fa7ffc3d18 100644 --- a/code/game/gamemodes/changeling/generic_equip_procs.dm +++ b/code/game/gamemodes/changeling/generic_equip_procs.dm @@ -127,7 +127,7 @@ else - M << "We begin growing our new equipment..." + to_chat(M, "We begin growing our new equipment...") var/list/grown_items_list = list() @@ -223,7 +223,7 @@ var/feedback = english_list(grown_items_list, nothing_text = "nothing", and_text = " and ", comma_text = ", ", final_comma_text = "" ) - M << "We have grown [feedback]." + to_chat(M, "We have grown [feedback].") if(success) M.mind.changeling.armor_deployed = 1 diff --git a/code/game/gamemodes/changeling/modularchangling.dm b/code/game/gamemodes/changeling/modularchangling.dm index 41f66fb4ec..c6af89ad75 100644 --- a/code/game/gamemodes/changeling/modularchangling.dm +++ b/code/game/gamemodes/changeling/modularchangling.dm @@ -316,23 +316,23 @@ var/list/datum/power/changeling/powerinstances = list() for (var/datum/power/changeling/P in powerinstances) - //world << "[P] - [Pname] = [P.name == Pname ? "True" : "False"]" + //to_world("[P] - [Pname] = [P.name == Pname ? "True" : "False"]") if(P.name == Pname) Thepower = P break if(Thepower == null) - M.current << "This is awkward. Changeling power purchase failed, please report this bug to a coder!" + to_chat(M.current, "This is awkward. Changeling power purchase failed, please report this bug to a coder!") return if(Thepower in purchased_powers) - M.current << "We have already evolved this ability!" + to_chat(M.current, "We have already evolved this ability!") return if(geneticpoints < Thepower.genomecost) - M.current << "We cannot evolve this... yet. We must acquire more DNA." + to_chat(M.current, "We cannot evolve this... yet. We must acquire more DNA.") return geneticpoints -= Thepower.genomecost diff --git a/code/game/gamemodes/changeling/powers/absorb.dm b/code/game/gamemodes/changeling/powers/absorb.dm index 02285a0c7e..a76311c335 100644 --- a/code/game/gamemodes/changeling/powers/absorb.dm +++ b/code/game/gamemodes/changeling/powers/absorb.dm @@ -52,7 +52,7 @@ if(3) to_chat(src, "We stab [T] with the proboscis.") src.visible_message("[src] stabs [T] with the proboscis!") - T << "You feel a sharp stabbing pain!" + to_chat(T, "You feel a sharp stabbing pain!") add_attack_logs(src,T,"Absorbed (changeling)") var/obj/item/organ/external/affecting = T.get_organ(src.zone_sel.selecting) if(affecting.take_damage(39,0,1,0,"large organic needle")) @@ -66,7 +66,7 @@ to_chat(src, "We have absorbed [T]!") src.visible_message("[src] sucks the fluids from [T]!") - T << "You have been absorbed by the changeling!" + to_chat(T, "You have been absorbed by the changeling!") if(src.nutrition < 400) src.nutrition = min((src.nutrition + T.nutrition), 400) changeling.chem_charges += 10 diff --git a/code/game/gamemodes/changeling/powers/armblade.dm b/code/game/gamemodes/changeling/powers/armblade.dm index c05ad96e81..664e6191ae 100644 --- a/code/game/gamemodes/changeling/powers/armblade.dm +++ b/code/game/gamemodes/changeling/powers/armblade.dm @@ -90,7 +90,7 @@ /obj/item/weapon/melee/changeling/suicide_act(mob/user) var/datum/gender/T = gender_datums[user.get_visible_gender()] - viewers(user) << "[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] trying to commit suicide." + user.visible_message("[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] trying to commit suicide.") return(BRUTELOSS) /obj/item/weapon/melee/changeling/process() //Stolen from ninja swords. diff --git a/code/game/gamemodes/changeling/powers/armor.dm b/code/game/gamemodes/changeling/powers/armor.dm index bee7e7518a..b5e72d83ea 100644 --- a/code/game/gamemodes/changeling/powers/armor.dm +++ b/code/game/gamemodes/changeling/powers/armor.dm @@ -81,13 +81,13 @@ magpulse = 0 set_slowdown() force = 3 - user << "We release our grip on the floor." + to_chat(user, "We release our grip on the floor.") else item_flags |= NOSLIP magpulse = 1 set_slowdown() force = 5 - user << "We cling to the terrain below us." + to_chat(user, "We cling to the terrain below us.") /obj/item/clothing/shoes/magboots/changeling/dropped() ..() diff --git a/code/game/gamemodes/changeling/powers/augmented_eyesight.dm b/code/game/gamemodes/changeling/powers/augmented_eyesight.dm index c23e6721b0..e4eb45a9e9 100644 --- a/code/game/gamemodes/changeling/powers/augmented_eyesight.dm +++ b/code/game/gamemodes/changeling/powers/augmented_eyesight.dm @@ -24,13 +24,13 @@ active = !active if(active) - C << "We feel a minute twitch in our eyes, and darkness creeps away." + to_chat(C, "We feel a minute twitch in our eyes, and darkness creeps away.") C.sight |= SEE_MOBS C.permanent_sight_flags |= SEE_MOBS C.see_in_dark = 8 C.dna.species.invis_sight = SEE_INVISIBLE_MINIMUM else - C << "Our vision dulls. Shadows gather." + to_chat(C, "Our vision dulls. Shadows gather.") C.sight &= ~SEE_MOBS C.permanent_sight_flags &= ~SEE_MOBS C.see_in_dark = 0 diff --git a/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm b/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm index 192f8b3874..ca92d67ff7 100644 --- a/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm +++ b/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm @@ -173,7 +173,7 @@ visible_message("Arcs of electricity strike [S]!", "Our hand channels raw electricity into [S]", "You hear sparks!") - S << "Warning: Electrical surge detected!" + to_chat(S, "Warning: Electrical surge detected!") //qdel(src) user.mind.changeling.chem_charges -= 10 return 1 diff --git a/code/game/gamemodes/changeling/powers/blind_sting.dm b/code/game/gamemodes/changeling/powers/blind_sting.dm index e2fede649e..f4721db660 100644 --- a/code/game/gamemodes/changeling/powers/blind_sting.dm +++ b/code/game/gamemodes/changeling/powers/blind_sting.dm @@ -16,7 +16,7 @@ if(!T) return 0 add_attack_logs(src,T,"Blind sting (changeling)") - T << "Your eyes burn horrificly!" + to_chat(T, "Your eyes burn horrificly!") T.disabilities |= NEARSIGHTED var/duration = 300 if(src.mind.changeling.recursive_enhancement) diff --git a/code/game/gamemodes/changeling/powers/deaf_sting.dm b/code/game/gamemodes/changeling/powers/deaf_sting.dm index 92e7a80a30..7b39e90720 100644 --- a/code/game/gamemodes/changeling/powers/deaf_sting.dm +++ b/code/game/gamemodes/changeling/powers/deaf_sting.dm @@ -20,7 +20,7 @@ if(src.mind.changeling.recursive_enhancement) duration = duration + 100 to_chat(src, "They will be unable to hear for a little longer.") - T << "Your ears pop and begin ringing loudly!" + to_chat(T, "Your ears pop and begin ringing loudly!") T.sdisabilities |= DEAF spawn(duration) T.sdisabilities &= ~DEAF feedback_add_details("changeling_powers","DS") diff --git a/code/game/gamemodes/changeling/powers/death_sting.dm b/code/game/gamemodes/changeling/powers/death_sting.dm index 6dd0cdbf85..2eb1e476bd 100644 --- a/code/game/gamemodes/changeling/powers/death_sting.dm +++ b/code/game/gamemodes/changeling/powers/death_sting.dm @@ -14,7 +14,7 @@ if(!T) return 0 add_attack_logs(src,T,"Death sting (changeling)") - T << "You feel a small prick and your chest becomes tight." + to_chat(T, "You feel a small prick and your chest becomes tight.") T.silent = 10 T.Paralyse(10) T.make_jittery(100) diff --git a/code/game/gamemodes/changeling/powers/digital_camo.dm b/code/game/gamemodes/changeling/powers/digital_camo.dm index 0dbee6b09d..9574b465da 100644 --- a/code/game/gamemodes/changeling/powers/digital_camo.dm +++ b/code/game/gamemodes/changeling/powers/digital_camo.dm @@ -19,9 +19,9 @@ var/mob/living/carbon/human/C = src if(C.digitalcamo) - C << "We return to normal." + to_chat(C, "We return to normal.") else - C << "We distort our form to prevent AI-tracking." + to_chat(C, "We distort our form to prevent AI-tracking.") C.digitalcamo = !C.digitalcamo spawn(0) diff --git a/code/game/gamemodes/changeling/powers/electric_lockpick.dm b/code/game/gamemodes/changeling/powers/electric_lockpick.dm index 29ad6573f6..262d90429f 100644 --- a/code/game/gamemodes/changeling/powers/electric_lockpick.dm +++ b/code/game/gamemodes/changeling/powers/electric_lockpick.dm @@ -34,10 +34,10 @@ /obj/item/weapon/finger_lockpick/New() if(ismob(loc)) - loc << "We shape our finger to fit inside electronics, and are ready to force them open." + to_chat(loc, "We shape our finger to fit inside electronics, and are ready to force them open.") /obj/item/weapon/finger_lockpick/dropped(mob/user) - user << "We discreetly shape our finger back to a less suspicious form." + to_chat(user, "We discreetly shape our finger back to a less suspicious form.") spawn(1) if(src) qdel(src) @@ -53,13 +53,13 @@ var/datum/changeling/ling_datum = user.mind.changeling if(ling_datum.chem_charges < 10) - user << "We require more chemicals to do that." + to_chat(user, "We require more chemicals to do that.") return //Airlocks require an ugly block of code, but we don't want to just call emag_act(), since we don't want to break airlocks forever. if(istype(target,/obj/machinery/door)) var/obj/machinery/door/door = target - user << "We send an electrical pulse up our finger, and into \the [target], attempting to open it." + to_chat(user, "We send an electrical pulse up our finger, and into \the [target], attempting to open it.") if(door.density && door.operable()) door.do_animate("spark") @@ -70,15 +70,15 @@ if(airlock.locked) //Check if we're bolted. airlock.unlock() - user << "We've unlocked \the [airlock]. Another pulse is requried to open it." + to_chat(user, "We've unlocked \the [airlock]. Another pulse is requried to open it.") else //We're not bolted, so open the door already. airlock.open() - user << "We've opened \the [airlock]." + to_chat(user, "We've opened \the [airlock].") else door.open() //If we're a windoor, open the windoor. - user << "We've opened \the [door]." + to_chat(user, "We've opened \the [door].") else //Probably broken or no power. - user << "The door does not respond to the pulse." + to_chat(user, "The door does not respond to the pulse.") door.add_fingerprint(user) log_and_message_admins("finger-lockpicked \an [door].") ling_datum.chem_charges -= 10 @@ -86,7 +86,7 @@ else if(istype(target,/obj/)) //This should catch everything else we might miss, without a million typechecks. var/obj/O = target - user << "We send an electrical pulse up our finger, and into \the [O]." + to_chat(user, "We send an electrical pulse up our finger, and into \the [O].") O.add_fingerprint(user) O.emag_act(1,user,src) log_and_message_admins("finger-lockpicked \an [O].") diff --git a/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm b/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm index 38d200cad5..d5be03c6b1 100644 --- a/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm +++ b/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm @@ -28,7 +28,7 @@ changeling.chem_charges -= 30 var/mob/living/carbon/human/C = src - C << "Energy rushes through us. [C.lying ? "We arise." : ""]" + to_chat(C, "Energy rushes through us. [C.lying ? "We arise." : ""]") C.stat = 0 C.SetParalysis(0) C.SetStunned(0) diff --git a/code/game/gamemodes/changeling/powers/fake_death.dm b/code/game/gamemodes/changeling/powers/fake_death.dm index 3581a8d06a..cd34ebfc5c 100644 --- a/code/game/gamemodes/changeling/powers/fake_death.dm +++ b/code/game/gamemodes/changeling/powers/fake_death.dm @@ -24,7 +24,7 @@ if(!C.stat && alert("Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival","Yes","No") == "No") return - C << "We will attempt to regenerate our form." + to_chat(C, "We will attempt to regenerate our form.") C.update_canmove() C.remove_changeling_powers() diff --git a/code/game/gamemodes/changeling/powers/lesser_form.dm b/code/game/gamemodes/changeling/powers/lesser_form.dm index 6a5cf80730..9d7c4de3d1 100644 --- a/code/game/gamemodes/changeling/powers/lesser_form.dm +++ b/code/game/gamemodes/changeling/powers/lesser_form.dm @@ -26,7 +26,7 @@ H.remove_changeling_powers() 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/para_sting.dm b/code/game/gamemodes/changeling/powers/para_sting.dm index 7a0020bd0f..c4d04dd7de 100644 --- a/code/game/gamemodes/changeling/powers/para_sting.dm +++ b/code/game/gamemodes/changeling/powers/para_sting.dm @@ -13,7 +13,7 @@ if(!T) return 0 add_attack_logs(src,T,"Paralysis sting (changeling)") - T << "Your muscles begin to painfully tighten." + to_chat(T, "Your muscles begin to painfully tighten.") T.Weaken(20) feedback_add_details("changeling_powers","PS") return 1 \ No newline at end of file diff --git a/code/game/gamemodes/changeling/powers/revive.dm b/code/game/gamemodes/changeling/powers/revive.dm index 0648fa8ab6..2439fbe38a 100644 --- a/code/game/gamemodes/changeling/powers/revive.dm +++ b/code/game/gamemodes/changeling/powers/revive.dm @@ -75,7 +75,7 @@ C.halloss = 0 C.shock_stage = 0 //Pain - C << "We have regenerated." + to_chat(C, "We have regenerated.") C.update_canmove() C.mind.changeling.purchased_powers -= C feedback_add_details("changeling_powers","CR") diff --git a/code/game/gamemodes/changeling/powers/shriek.dm b/code/game/gamemodes/changeling/powers/shriek.dm index a2b9013c5a..9fe5fa708e 100644 --- a/code/game/gamemodes/changeling/powers/shriek.dm +++ b/code/game/gamemodes/changeling/powers/shriek.dm @@ -58,20 +58,20 @@ if(!M.mind || !M.mind.changeling) if(M.get_ear_protection() >= 2) continue - M << "You hear an extremely loud screeching sound! It \ - [pick("confuses","confounds","perturbs","befuddles","dazes","unsettles","disorients")] you." + to_chat(M, "You hear an extremely loud screeching sound! It \ + [pick("confuses","confounds","perturbs","befuddles","dazes","unsettles","disorients")] you.") M.adjustEarDamage(0,30) M.Confuse(20) M << sound('sound/effects/screech.ogg') affected += M else if(M != src) - M << "You hear a familiar screech from nearby. It has no effect on you." + to_chat(M, "You hear a familiar screech from nearby. It has no effect on you.") M << sound('sound/effects/screech.ogg') if(issilicon(M)) M << sound('sound/weapons/flash.ogg') - M << "Auditory input overloaded. Reinitializing..." + to_chat(M, "Auditory input overloaded. Reinitializing...") M.Weaken(rand(5,10)) affected += M diff --git a/code/game/gamemodes/changeling/powers/unfat_sting.dm b/code/game/gamemodes/changeling/powers/unfat_sting.dm index f2e238746d..ece0d50f46 100644 --- a/code/game/gamemodes/changeling/powers/unfat_sting.dm +++ b/code/game/gamemodes/changeling/powers/unfat_sting.dm @@ -12,7 +12,7 @@ var/mob/living/carbon/T = changeling_sting(5,/mob/proc/changeling_unfat_sting) if(!T) return 0 add_attack_logs(src,T,"Unfat sting (changeling)") - T << "you feel a small prick as stomach churns violently and you become to feel skinnier." + to_chat(T, "you feel a small prick as stomach churns violently and you become to feel skinnier.") T.overeatduration = 0 T.nutrition -= 100 feedback_add_details("changeling_powers","US") diff --git a/code/game/gamemodes/changeling/powers/visible_camouflage.dm b/code/game/gamemodes/changeling/powers/visible_camouflage.dm index 167f6f41b9..747deb9f99 100644 --- a/code/game/gamemodes/changeling/powers/visible_camouflage.dm +++ b/code/game/gamemodes/changeling/powers/visible_camouflage.dm @@ -30,7 +30,7 @@ changeling.chem_charges -= 10 var/old_regen_rate = H.mind.changeling.chem_recharge_rate - H << "We vanish from sight, and will remain hidden, so long as we move carefully." + to_chat(H, "We vanish from sight, and will remain hidden, so long as we move carefully.") H.mind.changeling.cloaked = 1 H.mind.changeling.chem_recharge_rate = 0 animate(src,alpha = 255, alpha = 10, time = 10) diff --git a/code/game/gamemodes/cult/construct_spells.dm b/code/game/gamemodes/cult/construct_spells.dm index 534e9aedb9..64c97a30f4 100644 --- a/code/game/gamemodes/cult/construct_spells.dm +++ b/code/game/gamemodes/cult/construct_spells.dm @@ -297,9 +297,9 @@ proc/findNullRod(var/atom/target) M.forceMove(destination) if(M != user) prey = 1 - user << "You warp back to Nar-Sie[prey ? " along with your prey":""]." + to_chat(user, "You warp back to Nar-Sie[prey ? " along with your prey":""].") else - user << "...something's wrong!"//There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world. + to_chat(user, "...something's wrong!") //There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world. */ /spell/targeted/fortify diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index 5c77d6d29f..633b1f4d02 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -79,20 +79,20 @@ icon_state = "[initial(icon_state)]-broken" set_light(0) else - user << "You hit \the [src]!" + to_chat(user, "You hit \the [src]!") playsound(get_turf(src),impact_sound, 75, 1) else if(prob(damage * 2)) - user << "You pulverize what was left of \the [src]!" + to_chat(user, "You pulverize what was left of \the [src]!") qdel(src) else - user << "You hit \the [src]!" + to_chat(user, "You hit \the [src]!") playsound(get_turf(src),impact_sound, 75, 1) /obj/structure/cult/pylon/proc/repair(mob/user as mob) if(isbroken) START_PROCESSING(SSobj, src) - user << "You repair \the [src]." + to_chat(user, "You repair \the [src].") isbroken = 0 density = 1 icon_state = initial(icon_state) @@ -187,4 +187,4 @@ var/mob/living/M = A - M << "Walking into \the [src] is probably a bad idea, you think." + to_chat(M, "Walking into \the [src] is probably a bad idea, you think.") diff --git a/code/game/gamemodes/cult/cultify/mob.dm b/code/game/gamemodes/cult/cultify/mob.dm index 0cadd06d6c..9c63b8857e 100644 --- a/code/game/gamemodes/cult/cultify/mob.dm +++ b/code/game/gamemodes/cult/cultify/mob.dm @@ -18,7 +18,7 @@ if(iscultist(src) && client) var/mob/living/simple_mob/construct/harvester/C = new(get_turf(src)) mind.transfer_to(C) - C << "The Geometer of Blood is overjoyed to be reunited with its followers, and accepts your body in sacrifice. As reward, you have been gifted with the shell of an Harvester.
Your tendrils can use and draw runes without need for a tome, your eyes can see beings through walls, and your mind can open any door. Use these assets to serve Nar-Sie and bring him any remaining living human in the world.
You can teleport yourself back to Nar-Sie along with any being under yourself at any time using your \"Harvest\" spell.
" + to_chat(C, "The Geometer of Blood is overjoyed to be reunited with its followers, and accepts your body in sacrifice. As reward, you have been gifted with the shell of an Harvester.
Your tendrils can use and draw runes without need for a tome, your eyes can see beings through walls, and your mind can open any door. Use these assets to serve Nar-Sie and bring him any remaining living human in the world.
You can teleport yourself back to Nar-Sie along with any being under yourself at any time using your \"Harvest\" spell.
") dust() else if(client) var/mob/observer/dead/G = (ghostize()) @@ -26,7 +26,7 @@ G.icon_state = "ghost-narsie" G.overlays = 0 G.invisibility = 0 - G << "You feel relieved as what's left of your soul finally escapes its prison of flesh." + to_chat(G, "You feel relieved as what's left of your soul finally escapes its prison of flesh.") cult.harvested += G.mind else diff --git a/code/game/gamemodes/cult/hell_universe.dm b/code/game/gamemodes/cult/hell_universe.dm index 75c97d5cee..ee79453933 100644 --- a/code/game/gamemodes/cult/hell_universe.dm +++ b/code/game/gamemodes/cult/hell_universe.dm @@ -16,7 +16,7 @@ In short: return 1 /* if(user) - user << "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today." + to_chat(user, "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.") return 0 */ diff --git a/code/game/gamemodes/cult/narsie.dm b/code/game/gamemodes/cult/narsie.dm index 21ee7ec1df..58684bb2a2 100644 --- a/code/game/gamemodes/cult/narsie.dm +++ b/code/game/gamemodes/cult/narsie.dm @@ -43,7 +43,7 @@ var/global/list/narsie_list = list() /obj/singularity/narsie/large/New() ..() if(announce) - world << "[uppertext(name)] HAS RISEN" + to_world("[uppertext(name)] HAS RISEN") world << sound('sound/effects/weather/wind/wind_5_1.ogg') narsie_spawn_animation() @@ -79,7 +79,7 @@ var/global/list/narsie_list = list() if(M.status_flags & GODMODE) continue 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) @@ -313,13 +313,13 @@ var/global/list/narsie_list = list() /obj/singularity/narsie/proc/acquire(const/mob/food) var/capname = uppertext(name) - target << "[capname] HAS LOST INTEREST IN YOU." + to_chat(target, "[capname] HAS LOST INTEREST IN YOU.") target = food if (ishuman(target)) - target << "[capname] HUNGERS FOR YOUR SOUL." + to_chat(target, "[capname] HUNGERS FOR YOUR SOUL.") else - target << "[capname] HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL." + to_chat(target, "[capname] HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL.") /obj/singularity/narsie/on_capture() chained = 1 diff --git a/code/game/gamemodes/cult/ritual.dm b/code/game/gamemodes/cult/ritual.dm index 0bc165adff..1cf204b015 100644 --- a/code/game/gamemodes/cult/ritual.dm +++ b/code/game/gamemodes/cult/ritual.dm @@ -12,7 +12,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," 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=rnwords @@ -86,16 +86,16 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," examine(mob/user) ..() if(iscultist(user)) - user << "This spell circle reads: [word1] [word2] [word3]." + to_chat(user, "This spell circle reads: [word1] [word2] [word3].") attackby(I as obj, user as mob) if(istype(I, /obj/item/weapon/book/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 << "You disrupt the vile magic with the deadening field of the null rod!" + to_chat(user, "You disrupt the vile magic with the deadening field of the null rod!") qdel(src) return return @@ -103,10 +103,10 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," 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(user.is_muzzled()) - 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(!word1 || !word2 || !word3 || prob(user.getBrainLoss())) return fizzle() @@ -307,7 +307,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," 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("\The [user] beats \the [M] with \the [src]!", 1) - M << "You feel searing heat inside!" + to_chat(M, "You feel searing heat inside!") attack_self(mob/living/user as mob) @@ -322,7 +322,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," for(var/obj/effect/rune/N in rune_list) C++ if (!istype(user.loc,/turf)) - user << "You do not have enough space to write a proper rune." + to_chat(user, "You do not have enough space to write a proper rune.") return if (C>=26 + runedec + cult.current_antagonists.len) //including the useless rune at the secret room, shouldn't count against the limit of 25 runes - Urist @@ -387,7 +387,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," if (!chosen_rune) return if (chosen_rune == "none") - user << "You decide against scribing a rune, perhaps you should take this time to study your notes." + to_chat(user, "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 @@ -399,7 +399,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," for (var/mob/V in viewers(src)) V.show_message("\The [user] slices open a finger and begins to chant and paint symbols on the floor.", 3, "You hear chanting.", 2) - user << "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, "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)) var/area/A = get_area(user) @@ -408,7 +408,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," return var/mob/living/carbon/human/H = user var/obj/effect/rune/R = new /obj/effect/rune(user.loc) - user << "You finish drawing the arcane markings of the Geometer." + to_chat(user, "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]] @@ -418,14 +418,14 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type 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 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/book/tome/cultify() return @@ -441,7 +441,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa"," if(user) var/r if (!istype(user.loc,/turf)) - user << "You do not have enough space to write a proper rune." + to_chat(user, "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 1bfe4e0d60..44f743f122 100644 --- a/code/game/gamemodes/cult/runes.dm +++ b/code/game/gamemodes/cult/runes.dm @@ -29,7 +29,7 @@ var/list/sacrificed = list() allrunesloc.len = index allrunesloc[index] = R.loc if(index >= 5) - user << "You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric." + to_chat(user, "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) @@ -66,7 +66,7 @@ var/list/sacrificed = list() IP = R runecount++ if(runecount >= 2) - user << "You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric." + to_chat(user, "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) @@ -121,7 +121,7 @@ var/list/sacrificed = list() if(!converting.len) fizzle() else - usr << "You sense that the power of the dark one is already working away at them." + to_chat(usr, "You sense that the power of the dark one is already working away at them.") return usr.say("Mah[pick("'","`")]weyh pleggh at e'ntrath!") @@ -142,14 +142,14 @@ var/list/sacrificed = list() add_attack_logs(attacker,target,"Convert rune") switch(target.getFireLoss()) if(0 to 25) - target << "Your blood boils as you force yourself to resist the corruption invading every corner of your mind." + to_chat(target, "Your blood boils as you force yourself to resist the corruption invading every corner of your mind.") if(25 to 45) - target << "Your blood boils and your body burns as the corruption further forces itself into your body and mind." + to_chat(target, "Your blood boils and your body burns as the corruption further forces itself into your body and mind.") if(45 to 75) - target << "You begin to hallucinate images of a dark and incomprehensible being and your entire body feels like its engulfed in flame as your mental defenses crumble." + to_chat(target, "You begin to hallucinate images of a dark and incomprehensible being and your entire body feels like its engulfed in flame as your mental defenses crumble.") target.apply_effect(rand(1,10), STUTTER) if(75 to 100) - target << "Your mind turns to ash as the burning flames engulf your very soul and images of an unspeakable horror begin to bombard the last remnants of mental resistance." + to_chat(target, "Your mind turns to ash as the burning flames engulf your very soul and images of an unspeakable horror begin to bombard the last remnants of mental resistance.") //broken mind - 5000 may seem like a lot I wanted the effect to really stand out for maxiumum losing-your-mind-spooky //hallucination is reduced when the step off as well, provided they haven't hit the last stage... @@ -158,7 +158,7 @@ var/list/sacrificed = list() target.apply_effect(10, STUTTER) target.adjustBrainLoss(1) if(100 to INFINITY) - target << "Your entire broken soul and being is engulfed in corruption and flames as your mind shatters away into nothing." + to_chat(target, "Your entire broken soul and being is engulfed in corruption and flames as your mind shatters away into nothing.") //5000 is waaaay too much, in practice. target.hallucination = min(target.hallucination + 100, 500) target.apply_effect(15, STUTTER) @@ -176,8 +176,8 @@ var/list/sacrificed = list() if(!cult.can_become_antag(target.mind) || jobban_isbanned(target, "cultist"))//putting jobban check here because is_convertable uses mind as argument //waiting_for_input ensures this is only shown once, so they basically auto-resist from here on out. They still need to find a way to get off the freaking rune if they don't want to burn to death, though. - target << "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." - target << "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(target, "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(target, "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.") else spawn() var/choice = alert(target,"Do you want to join the cult?","Submit to Nar'Sie","Resist","Submit") @@ -205,7 +205,7 @@ var/list/sacrificed = list() cultists.Add(M) if(cultists.len >= 9) if(!narsie_cometh)//so we don't initiate Hell more than one time. - world << "THE VEIL HAS BEEN SHATTERED!" + to_world("THE VEIL HAS BEEN SHATTERED!") world << sound('sound/effects/weather/wind/wind_5_1.ogg') SetUniversalState(/datum/universal_state/hell) @@ -249,7 +249,7 @@ var/list/sacrificed = list() if(D.stat!=2) add_attack_logs(usr,D,"Blood drain rune") var/bdrain = rand(1,25) - D << "You feel weakened." + to_chat(D, "You feel weakened.") D.take_overall_damage(bdrain, 0) drain += bdrain if(!drain) @@ -305,16 +305,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 << "The world beyond fades from your vision." + to_chat(usr, "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 << "The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision." + to_chat(usr, "The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision.") usr.see_invisible = SEE_INVISIBLE_CULT usr.seer = 0 else usr.say("Rash'tla sektath mal[pick("'","`")]zua. Zasan therium vivira. Itonis al'ra matum!") - usr << "The world beyond opens to your eyes." + to_chat(usr, "The world beyond opens to your eyes.") usr.see_invisible = SEE_INVISIBLE_CULT usr.seer = 1 return @@ -337,7 +337,7 @@ var/list/sacrificed = list() if(!corpse_to_raise) if(is_sacrifice_target) - usr << "The Geometer of blood wants this mortal for himself." + to_chat(usr, "The Geometer of blood wants this mortal for himself.") return fizzle() @@ -355,20 +355,20 @@ var/list/sacrificed = list() if(!body_to_sacrifice) if (is_sacrifice_target) - usr << "The Geometer of Blood wants that corpse for himself." + to_chat(usr, "The Geometer of Blood wants that corpse for himself.") else - usr << "The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used." + to_chat(usr, "The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used.") return fizzle() if(!cult.can_become_antag(corpse_to_raise.mind) || jobban_isbanned(corpse_to_raise, "cultist")) - usr << "The Geometer of Blood refuses to touch this one." + to_chat(usr, "The Geometer of Blood refuses to touch this one.") return fizzle() else if(!corpse_to_raise.client && corpse_to_raise.mind) //Don't force the dead person to come back if they don't want to. for(var/mob/observer/dead/ghost in player_list) if(ghost.mind == corpse_to_raise.mind) - ghost << "The cultist [usr.real_name] is trying to \ + to_chat(ghost, "The cultist [usr.real_name] is trying to \ revive you. Return to your body if you want to be resurrected into the service of Nar'Sie! \ - (Verbs -> Ghost -> Re-enter corpse)" + (Verbs -> Ghost -> Re-enter corpse)") break sleep(10 SECONDS) @@ -395,8 +395,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 @@ -420,7 +420,7 @@ var/list/sacrificed = list() qdel(src) else usr.whisper("Kla[pick("'","`")]atu barada nikt'o!") - usr << "Your talisman turns into gray dust, veiling the surrounding runes." + to_chat(usr, "Your talisman turns into gray dust, veiling the surrounding runes.") for (var/mob/V in orange(1,src)) if(V!=usr) V.show_message("Dust emanates from [usr]'s hands for a moment.", 3) @@ -532,7 +532,7 @@ var/list/sacrificed = list() unsuitable_newtalisman = 1 if (!newtalisman) if (unsuitable_newtalisman) - usr << "The blank is tainted. It is unsuitable." + to_chat(usr, "The blank is tainted. It is unsuitable.") return fizzle() var/obj/effect/rune/imbued_from @@ -688,44 +688,44 @@ var/list/sacrificed = list() H.dust()//To prevent the MMI from remaining else H.gib() - usr << "The Geometer of Blood accepts this sacrifice, your objective is now complete." + to_chat(usr, "The Geometer of Blood accepts this sacrifice, your objective is now complete.") else - usr << "Your target's earthly bonds are too strong. You need more cultists to succeed in this ritual." + to_chat(usr, "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) || worth) - usr << "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice." + to_chat(usr, "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, this soul was not enough to gain His favor." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "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) || worth) - usr << "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice." + to_chat(usr, "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "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 << "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed." + to_chat(usr, "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.") else if(prob(40)) - usr << "The Geometer of Blood accepts this sacrifice." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else @@ -734,36 +734,36 @@ var/list/sacrificed = list() if(cultsinrange.len >= 3) if(H.stat !=2) if(prob(80)) - usr << "The Geometer of Blood accepts this sacrifice." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, this soul was not enough to gain His favor." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "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 << "The Geometer of Blood accepts this sacrifice." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "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 << "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed." + to_chat(usr, "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.") else if(prob(40)) - usr << "The Geometer of Blood accepts this sacrifice." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") cult.grant_runeword(usr) else - usr << "The Geometer of Blood accepts this sacrifice." - usr << "However, a mere dead body is not enough to satisfy Him." + to_chat(usr, "The Geometer of Blood accepts this sacrifice.") + to_chat(usr, "However, a mere dead body is not enough to satisfy Him.") if(isrobot(H)) H.dust()//To prevent the MMI from remaining else @@ -791,7 +791,7 @@ var/list/sacrificed = list() S=1 if(S) if(istype(W,/obj/item/weapon/nullrod)) - usr << "Arcane markings suddenly glow from underneath a thin layer of dust!" + to_chat(usr, "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!") @@ -801,7 +801,7 @@ var/list/sacrificed = list() return if(istype(W,/obj/item/weapon/paper/talisman)) usr.whisper("Nikt[pick("'","`")]o barada kla'atu!") - usr << "Your talisman turns into red dust, revealing the surrounding runes." + to_chat(usr, "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 dust emanates from [usr]'s hands for a moment.", 3) @@ -821,9 +821,9 @@ var/list/sacrificed = list() var/mob/living/user = usr user.take_organ_damage(2, 0) if(src.density) - usr << "Your blood flows into the rune, and you feel that the very space over the rune thickens." + to_chat(usr, "Your blood flows into the rune, and you feel that the very space over the rune thickens.") else - usr << "Your blood flows into the rune, and you feel as the rune releases its grasp on space." + to_chat(usr, "Your blood flows into the rune, and you feel as the rune releases its grasp on space.") return /////////////////////////////////////////EIGHTTEENTH RUNE @@ -852,7 +852,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 << "The [cultist] is already free." + to_chat(user, "The [cultist] is already free.") return cultist.buckled = null if (cultist.handcuffed) @@ -893,7 +893,7 @@ var/list/sacrificed = list() return if(cultist.buckled || cultist.handcuffed || (!isturf(cultist.loc) && !istype(cultist.loc, /obj/structure/closet))) var/datum/gender/TU = gender_datums[cultist.get_visible_gender()] - user << "You cannot summon \the [cultist], for [TU.his] shackles of blood are strong." + to_chat(user, "You cannot summon \the [cultist], for [TU.his] shackles of blood are strong.") return fizzle() cultist.loc = src.loc cultist.lying = 1 @@ -932,7 +932,7 @@ var/list/sacrificed = list() C.sdisabilities |= DEAF if(affected.len) usr.say("Sti[pick("'","`")] kaliedir!") - usr << "The world becomes quiet as the deafening rune dissipates into fine dust." + to_chat(usr, "The world becomes quiet as the deafening rune dissipates into fine dust.") add_attack_logs(usr,affected,"Deafen rune") qdel(src) else @@ -951,7 +951,7 @@ var/list/sacrificed = list() affected += C if(affected.len) usr.whisper("Sti[pick("'","`")] kaliedir!") - usr << "Your talisman turns into gray dust, deafening everyone around." + to_chat(usr, "Your talisman turns into gray dust, deafening everyone around.") add_attack_logs(usr, affected, "Deafen rune") for (var/mob/V in orange(1,src)) if(!(iscultist(V))) @@ -977,7 +977,7 @@ var/list/sacrificed = list() affected += C if(affected.len) usr.say("Sti[pick("'","`")] kaliesin!") - usr << "The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust." + to_chat(usr, "The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust.") add_attack_logs(usr, affected, "Blindness rune") qdel(src) else @@ -997,7 +997,7 @@ var/list/sacrificed = list() C.show_message("You feel a sharp pain in your eyes, and the world disappears into darkness..", 3) if(affected.len) usr.whisper("Sti[pick("'","`")] kaliesin!") - usr << "Your talisman turns into gray dust, blinding those who not follow the Nar-Sie." + to_chat(usr, "Your talisman turns into gray dust, blinding those who not follow the Nar-Sie.") add_attack_logs(usr, affected, "Blindness rune") return @@ -1023,7 +1023,7 @@ var/list/sacrificed = list() if(N) continue M.take_overall_damage(51,51) - M << "Your blood boils!" + to_chat(M, "Your blood boils!") victims += M if(prob(5)) spawn(5) @@ -1054,16 +1054,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 << "Aargh it burns!" + to_chat(M, "Aargh it burns!") else - M << "Rune suddenly ignites, burning you!" + to_chat(M, "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 << "Blood suddenly ignites, burning you!" + to_chat(M, "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/soulstone.dm b/code/game/gamemodes/cult/soulstone.dm index 9980f94d12..9c430d124c 100644 --- a/code/game/gamemodes/cult/soulstone.dm +++ b/code/game/gamemodes/cult/soulstone.dm @@ -25,11 +25,11 @@ if(istype(M, /mob/living/carbon/human/dummy)) return..() if(jobban_isbanned(M, "cultist")) - user << "This person's soul is too corrupt and cannot be captured!" + to_chat(user, "This person's soul is too corrupt and cannot be captured!") 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..() add_attack_logs(user,M,"Soulstone'd with [src.name]") @@ -76,7 +76,7 @@ for(var/mob/living/simple_mob/construct/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.forceMove(U.loc) A.cancel_camera() src.icon_state = "soulstone" @@ -107,16 +107,16 @@ if(!istype(T)) return; if(src.imprinted != "empty") - U << "Capture failed!: The soul stone has already been imprinted with [src.imprinted]'s mind!" + to_chat(U, "Capture failed!: The soul stone has already been imprinted with [src.imprinted]'s mind!") return if ((T.health + T.halloss) > config.health_threshold_crit && T.stat != DEAD) - U << "Capture failed!: Kill or maim the victim first!" + to_chat(U, "Capture failed!: Kill or maim the victim first!") return if(T.client == null) - U << "Capture failed!: The soul has already fled it's mortal frame." + to_chat(U, "Capture failed!: The soul has already fled it's mortal frame.") return if(src.contents.len) - U << "Capture failed!: The soul stone is full! Use or free an existing soul to make room." + to_chat(U, "Capture failed!: The soul stone is full! Use or free an existing soul to make room.") return for(var/obj/item/W in T) @@ -181,7 +181,7 @@ /obj/item/device/soulstone/proc/transfer_construct(var/obj/structure/constructshell/T,var/mob/U) var/mob/living/simple_mob/construct/shade/A = locate() in src if(!A) - to_chat(U,"Capture failed!: The soul stone is empty! Go kill someone!") + to_chat(U, "Capture failed!: The soul stone is empty! Go kill someone!") return; var/construct_class = input(U, "Please choose which type of construct you wish to create.") as null|anything in possible_constructs switch(construct_class) @@ -191,8 +191,8 @@ if(iscultist(U)) cult.add_antagonist(Z.mind) qdel(T) - to_chat(Z,"You are playing a Juggernaut. Though slow, you can withstand extreme punishment, 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.") + to_chat(Z, "You are playing a Juggernaut. Though slow, you can withstand extreme punishment, 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(src) if("Wraith") @@ -201,8 +201,8 @@ if(iscultist(U)) cult.add_antagonist(Z.mind) qdel(T) - to_chat(Z,"You are playing 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.") + to_chat(Z, "You are playing 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(src) if("Artificer") @@ -211,8 +211,8 @@ if(iscultist(U)) cult.add_antagonist(Z.mind) qdel(T) - to_chat(Z,"You are playing an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, repair allied constructs (by clicking on them), and even create new constructs") - to_chat(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 playing an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, repair allied constructs (by clicking on them), and even create new constructs") + 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(src) if("Harvester") @@ -221,8 +221,8 @@ if(iscultist(U)) cult.add_antagonist(Z.mind) qdel(T) - to_chat(Z,"You are playing a Harvester. You are relatively weak, but your physical frailty is made up for by your ranged abilities.") - to_chat(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 playing a Harvester. You are relatively weak, but your physical frailty is made up for by your ranged abilities.") + 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(src) if("Behemoth") @@ -231,8 +231,8 @@ if(iscultist(U)) cult.add_antagonist(Z.mind) qdel(T) - to_chat(Z,"You are playing a Behemoth. You are incredibly slow, though your slowness is made up for by the fact your shell is far larger than any of your bretheren. You are the Unstoppable Force, and Immovable Object.") - to_chat(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 playing a Behemoth. You are incredibly slow, though your slowness is made up for by the fact your shell is far larger than any of your bretheren. You are the Unstoppable Force, and Immovable Object.") + 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(src) diff --git a/code/game/gamemodes/cult/talisman.dm b/code/game/gamemodes/cult/talisman.dm index 1580d0b711..304bb2b2a6 100644 --- a/code/game/gamemodes/cult/talisman.dm +++ b/code/game/gamemodes/cult/talisman.dm @@ -29,7 +29,7 @@ if("blind") call(/obj/effect/rune/proc/blind)() if("runestun") - user << "To use this talisman, attack your target directly." + to_chat(user, "To use this talisman, attack your target directly.") return if("supply") supply() @@ -39,7 +39,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 diff --git a/code/game/gamemodes/endgame/supermatter_cascade/blob.dm b/code/game/gamemodes/endgame/supermatter_cascade/blob.dm index 99e28f5ef7..be85616143 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/blob.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/blob.dm @@ -67,7 +67,7 @@ if(Adjacent(user)) return attack_hand(user) else - user << "What the fuck are you doing?" + to_chat(user, "What the fuck are you doing?") return // /vg/: Don't let ghosts fuck with this. diff --git a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm index 90ac43379f..0c0d4c1a40 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm @@ -9,7 +9,7 @@ var/global/universe_has_ended = 0 /datum/universal_state/supermatter_cascade/OnShuttleCall(var/mob/user) if(user) - user << "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today." + to_chat(user, "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.") return 0 /datum/universal_state/supermatter_cascade/OnTurfChange(var/turf/T) @@ -37,7 +37,7 @@ var/global/universe_has_ended = 0 // Apply changes when entering state /datum/universal_state/supermatter_cascade/OnEnter() set background = 1 - world << "You are blinded by a brilliant flash of energy." + to_world("You are blinded by a brilliant flash of energy.") world << sound('sound/effects/cascade.ogg') diff --git a/code/game/gamemodes/epidemic/epidemic.dm b/code/game/gamemodes/epidemic/epidemic.dm index e6b4f9d456..0417b0c535 100644 --- a/code/game/gamemodes/epidemic/epidemic.dm +++ b/code/game/gamemodes/epidemic/epidemic.dm @@ -55,7 +55,7 @@ var/extra_law = "Crew authorized to know of pathogen [virus_name]'s existence are: Heads of command. Do not allow unauthorized personnel to gain knowledge of [virus_name]. Aid authorized personnel in quarantining and neutrlizing the outbreak. This law overrides all other laws." for(var/mob/living/silicon/ai/M in world) M.add_ion_law(extra_law) - M << "[extra_law]" + to_chat(M, "[extra_law]") /datum/game_mode/epidemic/proc/announce_to_kill_crew() var/intercepttext = "CONFIDENTIAL REPORT
" @@ -78,8 +78,8 @@ crew += H if(crew.len < 2) - world << "There aren't enough players for this mode!" - world << "Rebooting world in 5 seconds." + to_world("There aren't enough players for this mode!") + to_world("Rebooting world in 5 seconds.") if(blackbox) blackbox.save_all_data_to_sql() @@ -169,10 +169,10 @@ for(var/mob/M in world) if(M.client) M << 'sound/machines/Alarm.ogg' - world << "Incoming missile detected.. Impact in 10.." + to_world("Incoming missile detected.. Impact in 10..") for (var/i=9 to 1 step -1) sleep(10) - world << "[i].." + to_world("[i]..") sleep(10) enter_allowed = 0 if(ticker) @@ -190,9 +190,9 @@ /datum/game_mode/epidemic/declare_completion() if(finished == 1) feedback_set_details("round_end_result","win - epidemic cured") - world << " The virus outbreak was contained! The crew wins!" + to_world(" The virus outbreak was contained! The crew wins!") else if(finished == 2) feedback_set_details("round_end_result","loss - rev heads killed") - world << " The crew succumbed to the epidemic!" + to_world(" The crew succumbed to the epidemic!") ..() return 1 diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm index 573f10a9b4..8c5b58cfba 100644 --- a/code/game/gamemodes/events.dm +++ b/code/game/gamemodes/events.dm @@ -201,7 +201,7 @@ var/hadevent = 0 sleep(150) command_announcement.Announce("Gr3y.T1d3 virus detected in [station_name()] imprisonment subroutines. Recommend station AI involvement.", "Security Alert") else - world.log << "ERROR: Could not initate grey-tide. Unable find prison or brig area." + to_world_log("ERROR: Could not initate grey-tide. Unable find prison or brig area.") /proc/carp_migration() // -- Darem for(var/obj/effect/landmark/C in landmarks_list) @@ -276,74 +276,74 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is crew = "Any Human" switch(rand(1,14)) if(1) - M << "
" - M << "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THERE ARE [amount] [who2] ON THE STATION") if(2) - M << "
" - M << "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[what2] ARE DANGEROUS TO HUMANS") if(3) - M << "
" - M << "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE ESCAPE SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION") if(4) - M << "
" - M << "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE") if(5) - M << "
" - M << "THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE COLONY DIRECTOR, HOP AND HOS ARE [who2]") if(6) - M << "
" - M << "THE STATION IS BUILT FOR [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE STATION IS BUILT FOR [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE STATION IS BUILT FOR [who2]") if(7) - M << "
" - M << "YOU ARE [amount] [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU ARE [amount] [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU ARE [amount] [who2]") if(8) - M << "
" - M << "YOU MUST ALWAYS [aimust]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU MUST ALWAYS [aimust]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU MUST ALWAYS [aimust]") if(9) - M << "
" - M << "[area] [area2] [amount] [what2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[area] [area2] [amount] [what2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[area] [area2] [amount] [what2]") if(10) - M << "
" - M << "[crew] is [target]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[crew] is [target]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[crew] is [target]") if(11) - M << "
" - M << "[define] IS A FORM OF HARM...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[define] IS A FORM OF HARM...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[define] IS A FORM OF HARM") if(12) - M << "
" - M << "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS") if(13) - M << "
" - M << "[crew] is [allergysev] to [allergy]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[crew] is [allergysev] to [allergy]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[crew] is [allergysev] to [allergy]") if(14) - M << "
" - M << "THE STATION IS [who2pref] [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE STATION IS [who2pref] [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE STATION IS [who2pref] [who2]") /* //VOREStation Edit if(botEmagChance) @@ -358,40 +358,40 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is var/airlocknum = 0 var/firedoornum = 0 - world << "Ion Storm Main Started" + to_world("Ion Storm Main Started") spawn(0) - world << "Started processing APCs" + to_world("Started processing APCs") for (var/obj/machinery/power/apc/APC in machines) if(APC.z in station_levels) APC.ion_act() apcnum++ - world << "Finished processing APCs. Processed: [apcnum]" + to_world("Finished processing APCs. Processed: [apcnum]") spawn(0) - world << "Started processing SMES" + to_world("Started processing SMES") for (var/obj/machinery/power/smes/SMES in machines) if(SMES.z in station_levels) SMES.ion_act() smesnum++ - world << "Finished processing SMES. Processed: [smesnum]" + to_world("Finished processing SMES. Processed: [smesnum]") spawn(0) - world << "Started processing AIRLOCKS" + to_world("Started processing AIRLOCKS") for (var/obj/machinery/door/airlock/D in machines) if(D.z in station_levels) //if(length(D.req_access) > 0 && !(12 in D.req_access)) //not counting general access and maintenance airlocks airlocknum++ spawn(0) D.ion_act() - world << "Finished processing AIRLOCKS. Processed: [airlocknum]" + to_world("Finished processing AIRLOCKS. Processed: [airlocknum]") spawn(0) - world << "Started processing FIREDOORS" + to_world("Started processing FIREDOORS") for (var/obj/machinery/door/firedoor/D in machines) if(D.z in station_levels) firedoornum++; spawn(0) D.ion_act() - world << "Finished processing FIREDOORS. Processed: [firedoornum]" + to_world("Finished processing FIREDOORS. Processed: [firedoornum]") - world << "Ion Storm Main Done" + to_world("Ion Storm Main Done") */ diff --git a/code/game/gamemodes/events/clang.dm b/code/game/gamemodes/events/clang.dm index e88492e5d1..ea40622695 100644 --- a/code/game/gamemodes/events/clang.dm +++ b/code/game/gamemodes/events/clang.dm @@ -76,7 +76,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1 //rod time! var/obj/effect/immovablerod/immrod = new /obj/effect/immovablerod(locate(startx, starty, 1)) -// world << "Rod in play, starting at [start.loc.x],[start.loc.y] and going to [end.loc.x],[end.loc.y]" +// to_world("Rod in play, starting at [start.loc.x],[start.loc.y] and going to [end.loc.x],[end.loc.y]") var/end = locate(endx, endy, 1) spawn(0) walk_towards(immrod, end,1) diff --git a/code/game/gamemodes/events/holidays/Holidays.dm b/code/game/gamemodes/events/holidays/Holidays.dm index 5e3754a872..913b58e23b 100644 --- a/code/game/gamemodes/events/holidays/Holidays.dm +++ b/code/game/gamemodes/events/holidays/Holidays.dm @@ -237,11 +237,11 @@ var/global/list/Holiday = list() //Holidays are lists now, so we can have more t holidays.Add(p) holiday_blurbs.Add("[Holiday[p]]") var/holidays_string = english_list(holidays, nothing_text = "nothing", and_text = " and ", comma_text = ", ", final_comma_text = "" ) - world << "and..." - world << "

Happy [holidays_string] Everybody!

" + to_world("and...") + to_world("

Happy [holidays_string] Everybody!

") if(holiday_blurbs.len != 0) for(var/blurb in holiday_blurbs) - world << "
[blurb]
" + to_world("
[blurb]
") switch(Holiday) //special holidays if("Easter") //do easter stuff diff --git a/code/game/gamemodes/events/wormholes.dm b/code/game/gamemodes/events/wormholes.dm index 85b8414813..83f4246696 100644 --- a/code/game/gamemodes/events/wormholes.dm +++ b/code/game/gamemodes/events/wormholes.dm @@ -24,17 +24,17 @@ var/end_time = world.time + event_duration //the time by which the event should have ended var/increment = max(1,round(number_of_selections/50)) -// world << "DEBUG: number_of_selections: [number_of_selections] | sleep_duration: [sleep_duration]" +// to_world("DEBUG: number_of_selections: [number_of_selections] | sleep_duration: [sleep_duration]") var/index = 1 for(var/I = 1 to number_of_selections) //we've run into overtime. End the event if( end_time < world.time ) -// world << "DEBUG: we've run into overtime. End the event" +// to_world("DEBUG: we've run into overtime. End the event") return if( !pick_turfs.len ) -// world << "DEBUG: we've run out of turfs to pick. End the event" +// to_world("DEBUG: we've run out of turfs to pick. End the event") return //loop it round diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 08791fb4b0..05757c9b7d 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -91,7 +91,7 @@ var/global/list/additional_antag_types = list() message_admins("Admin [key_name_admin(usr)] is debugging the [antag.role_text] template.") else if(href_list["remove_antag_type"]) if(antag_tags && (href_list["remove_antag_type"] in antag_tags)) - usr << "Cannot remove core mode antag type." + to_chat(usr, "Cannot remove core mode antag type.") return var/datum/antagonist/antag = all_antag_types[href_list["remove_antag_type"]] if(antag_templates && antag_templates.len && antag && (antag in antag_templates) && (antag.id in additional_antag_types)) @@ -117,9 +117,11 @@ var/global/list/additional_antag_types = list() return /datum/game_mode/proc/announce() //to be called when round starts - world << "The current game mode is [capitalize(name)]!" - if(round_description) world << "[round_description]" - if(round_autoantag) world << "Antagonists will be added to the round automagically as needed." + to_world("The current game mode is [capitalize(name)]!") + if(round_description) + to_world("[round_description]") + if(round_autoantag) + to_world("Antagonists will be added to the round automagically as needed.") if(antag_templates && antag_templates.len) var/antag_summary = "Possible antagonist types: " var/i = 1 @@ -133,7 +135,7 @@ var/global/list/additional_antag_types = list() i++ antag_summary += "." if(antag_templates.len > 1 && master_mode != "secret") - world << "[antag_summary]" + to_world("[antag_summary]") else message_admins("[antag_summary]") @@ -340,7 +342,7 @@ var/global/list/additional_antag_types = list() text += " ([escaped_total>0 ? escaped_total : "none"] [emergency_shuttle.evac ? "escaped" : "transferred"]) and [ghosts] ghosts.
" else text += "There were no survivors ([ghosts] ghosts)." - world << text + to_world(text) if(clients > 0) feedback_set("round_end_clients",clients) @@ -508,7 +510,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() var/list/dudes = list() @@ -526,9 +528,9 @@ proc/get_nt_opposed() if(!player || !player.current) return var/obj_count = 1 - player.current << "Your current objectives:" + to_chat(player.current, "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++ /mob/verb/check_round_info() @@ -536,15 +538,15 @@ proc/get_nt_opposed() set category = "OOC" if(!ticker || !ticker.mode) - usr << "Something is terribly wrong; there is no gametype." + to_chat(usr, "Something is terribly wrong; there is no gametype.") return if(master_mode != "secret") - usr << "The roundtype is [capitalize(ticker.mode.name)]" + to_chat(usr, "The roundtype is [capitalize(ticker.mode.name)]") if(ticker.mode.round_description) - usr << "[ticker.mode.round_description]" + to_chat(usr, "[ticker.mode.round_description]") if(ticker.mode.extended_round_description) - usr << "[ticker.mode.extended_round_description]" + to_chat(usr, "[ticker.mode.extended_round_description]") else - usr << "Shhhh. It's a secret." + to_chat(usr, "Shhhh. It's a secret.") return diff --git a/code/game/gamemodes/gameticker.dm b/code/game/gamemodes/gameticker.dm index 108c470414..73399e7269 100644 --- a/code/game/gamemodes/gameticker.dm +++ b/code/game/gamemodes/gameticker.dm @@ -101,7 +101,7 @@ var/global/datum/controller/gameticker/ticker job_master.DivideOccupations() // Apparently important for new antagonist system to register specific job antags properly. if(!src.mode.can_start()) - world << "Unable to start [mode.name]. Not enough players readied, [config.player_requirements[mode.config_tag]] players needed. Reverting to pregame lobby." + to_world("Unable to start [mode.name]. Not enough players readied, [config.player_requirements[mode.config_tag]] players needed. Reverting to pregame lobby.") current_state = GAME_STATE_PREGAME Master.SetRunLevel(RUNLEVEL_LOBBY) mode.fail_setup() @@ -110,7 +110,7 @@ var/global/datum/controller/gameticker/ticker return 0 if(hide_mode) - world << "The current game mode is - Secret!" + to_world("The current game mode is - Secret!") if(runnable_modes.len) var/list/tmpmodes = new for (var/datum/game_mode/M in runnable_modes) @@ -383,43 +383,43 @@ var/global/datum/controller/gameticker/ticker return 1 /datum/controller/gameticker/proc/declare_completion() - world << "


A round of [mode.name] has ended!

" + to_world("


A round of [mode.name] has ended!

") for(var/mob/Player in player_list) if(Player.mind && !isnewplayer(Player)) if(Player.stat != DEAD) var/turf/playerTurf = get_turf(Player) if(emergency_shuttle.departed && emergency_shuttle.evac) if(isNotAdminLevel(playerTurf.z)) - Player << "You survived the round, but remained on [station_name()] as [Player.real_name]." + to_chat(Player, "You survived the round, but remained on [station_name()] as [Player.real_name].") else - Player << "You managed to survive the events on [station_name()] as [Player.real_name]." + to_chat(Player, "You managed to survive the events on [station_name()] as [Player.real_name].") else if(isAdminLevel(playerTurf.z)) - Player << "You successfully underwent crew transfer after events on [station_name()] as [Player.real_name]." + to_chat(Player, "You successfully underwent crew transfer after events on [station_name()] as [Player.real_name].") else if(issilicon(Player)) - Player << "You remain operational after the events on [station_name()] as [Player.real_name]." + to_chat(Player, "You remain operational after the events on [station_name()] as [Player.real_name].") else - Player << "You missed the crew transfer after the events on [station_name()] as [Player.real_name]." + to_chat(Player, "You missed the crew transfer after the events on [station_name()] as [Player.real_name].") else if(istype(Player,/mob/observer/dead)) var/mob/observer/dead/O = Player if(!O.started_as_observer) - Player << "You did not survive the events on [station_name()]..." + to_chat(Player, "You did not survive the events on [station_name()]...") else - Player << "You did not survive the events on [station_name()]..." - world << "
" + to_chat(Player, "You did not survive the events on [station_name()]...") + to_world("
") 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 round were:" + to_world("[aiPlayer.name] (Played by: [aiPlayer.key])'s laws at the end of the round were:") else - world << "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws when it was deactivated were:" + to_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_world("[robolist]") var/dronecount = 0 @@ -431,15 +431,15 @@ var/global/datum/controller/gameticker/ticker if (!robo.connected_ai) if (robo.stat != 2) - world << "[robo.name] (Played by: [robo.key]) survived as an AI-less stationbound synthetic! Its laws were:" + to_world("[robo.name] (Played by: [robo.key]) survived as an AI-less stationbound synthetic! Its laws were:") else - world << "[robo.name] (Played by: [robo.key]) was unable to survive the rigors of being a stationbound synthetic without an AI. Its laws were:" + to_world("[robo.name] (Played by: [robo.key]) was unable to survive the rigors of being a stationbound synthetic 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"] at the end of this round." + to_world("There [dronecount>1 ? "were" : "was"] [dronecount] industrious maintenance [dronecount>1 ? "drones" : "drone"] at the end of this round.") mode.declare_completion()//To declare normal completion. diff --git a/code/game/gamemodes/malfunction/malf_research.dm b/code/game/gamemodes/malfunction/malf_research.dm index 58f7d56c13..37475a0a41 100644 --- a/code/game/gamemodes/malfunction/malf_research.dm +++ b/code/game/gamemodes/malfunction/malf_research.dm @@ -31,7 +31,7 @@ /datum/malf_research/proc/finish_research() if(!focus) return - owner << "Research Completed: [focus.name]" + to_chat(owner, "Research Completed: [focus.name]") owner.verbs.Add(focus.ability) available_abilities -= focus if(focus.next) diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm index 2fffaa3ca8..c9b76400d9 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm @@ -19,7 +19,7 @@ return if(user.bombing_core) - user << "***** CORE SELF-DESTRUCT SEQUENCE ABORTED *****" + to_chat(user, "***** CORE SELF-DESTRUCT SEQUENCE ABORTED *****") user.bombing_core = 0 return @@ -32,15 +32,15 @@ user.bombing_core = 1 - user << "***** CORE SELF-DESTRUCT SEQUENCE ACTIVATED *****" - user << "Use command again to cancel self-destruct. Destroying in 15 seconds." + to_chat(user, "***** CORE SELF-DESTRUCT SEQUENCE ACTIVATED *****") + to_chat(user, "Use command again to cancel self-destruct. Destroying in 15 seconds.") var/timer = 15 while(timer) sleep(10) timer-- if(!user || !user.bombing_core) return - user << "** [timer] **" + to_chat(user, "** [timer] **") explosion(user.loc, 3,6,12,24) qdel(user) @@ -75,7 +75,7 @@ return if(user.system_override != 2) - user << "You do not have access to self-destruct system." + to_chat(user, "You do not have access to self-destruct system.") return if(user.bombing_station) @@ -87,8 +87,8 @@ return if(!ability_prechecks(user, 0, 0)) return - user << "***** STATION SELF-DESTRUCT SEQUENCE INITIATED *****" - user << "Self-destructing in 2 minutes. Use this command again to abort." + to_chat(user, "***** STATION SELF-DESTRUCT SEQUENCE INITIATED *****") + to_chat(user, "Self-destructing in 2 minutes. Use this command again to abort.") user.bombing_station = 1 set_security_level("delta") radio.autosay("Self destruct sequence has been activated. Self-destructing in 120 seconds.", "Self-Destruct Control") diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm index 0d9519504f..18ba0950ac 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm @@ -11,7 +11,7 @@ return if(user.hardware) - user << "You have already selected your hardware." + to_chat(user, "You have already selected your hardware.") return var/hardware_list = list() @@ -39,7 +39,7 @@ if(C) note = C.desc else - user << "This hardware does not exist! Probably a bug in game. Please report this." + to_chat(user, "This hardware does not exist! Probably a bug in game. Please report this.") return @@ -49,7 +49,7 @@ var/confirmation = alert("[note] - Is this what you want?", "Hardware selection", "Yes", "No") if(confirmation != "Yes") - user << "Selection cancelled. Use command again to select" + to_chat(user, "Selection cancelled. Use command again to select") return if(C) @@ -89,7 +89,7 @@ if(!tar) return res.focus = tar - user << "Research set: [tar.name]" + to_chat(user, "Research set: [tar.name]") // HELPER PROCS // Proc: ability_prechecks() @@ -99,25 +99,25 @@ if(!user) return 0 if(!istype(user)) - user << "GAME ERROR: You tried to use ability that is only available for malfunctioning AIs, but you are not AI! Please report this." + to_chat(user, "GAME ERROR: You tried to use ability that is only available for malfunctioning AIs, but you are not AI! Please report this.") return 0 if(!user.malfunctioning) - user << "GAME ERROR: You tried to use ability that is only available for malfunctioning AIs, but you are not malfunctioning. Please report this." + to_chat(user, "GAME ERROR: You tried to use ability that is only available for malfunctioning AIs, but you are not malfunctioning. Please report this.") return 0 if(!user.research) - user << "GAME ERROR: No research datum detected. Please report this." + to_chat(user, "GAME ERROR: No research datum detected. Please report this.") return 0 if(user.research.max_cpu < check_price) - user << "Your CPU storage is not large enough to use this ability. Hack more APCs to continue." + to_chat(user, "Your CPU storage is not large enough to use this ability. Hack more APCs to continue.") return 0 if(user.research.stored_cpu < check_price) - user << "You do not have enough CPU power stored. Please wait a moment." + to_chat(user, "You do not have enough CPU power stored. Please wait a moment.") return 0 if(user.hacking && !override) - user << "Your system is busy processing another task. Please wait until completion." + to_chat(user, "Your system is busy processing another task. Please wait until completion.") return 0 if(user.APU_power && !override) - user << "Low power. Unable to proceed." + to_chat(user, "Low power. Unable to proceed.") return 0 return 1 @@ -128,16 +128,16 @@ if(!user) return 0 if(user.APU_power) - user << "Low power. Unable to proceed." + to_chat(user, "Low power. Unable to proceed.") return 0 if(!user.research) - user << "GAME ERROR: No research datum detected. Please report this." + to_chat(user, "GAME ERROR: No research datum detected. Please report this.") return 0 if(user.research.max_cpu < price) - user << "Your CPU storage is not large enough to use this ability. Hack more APCs to continue." + to_chat(user, "Your CPU storage is not large enough to use this ability. Hack more APCs to continue.") return 0 if(user.research.stored_cpu < price) - user << "You do not have enough CPU power stored. Please wait a moment." + to_chat(user, "You do not have enough CPU power stored. Please wait a moment.") return 0 user.research.stored_cpu -= price return 1 diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm index b8b15974db..aeb2439eeb 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm @@ -67,15 +67,15 @@ return if(target && !istype(target)) - user << "This is not a cyborg." + to_chat(user, "This is not a cyborg.") return if(target && target.connected_ai && (target.connected_ai != user)) - user << "This cyborg is not connected to you." + to_chat(user, "This cyborg is not connected to you.") return if(target && !target.lockcharge) - user << "This cyborg is not locked down." + to_chat(user, "This cyborg is not locked down.") return @@ -91,7 +91,7 @@ robots += R robot_names += R.name if(!robots.len) - user << "No locked cyborgs connected." + to_chat(user, "No locked cyborgs connected.") return @@ -107,22 +107,22 @@ if(!ability_pay(user, price)) return user.hacking = 1 - user << "Attempting to unlock cyborg. This will take approximately 30 seconds." + to_chat(user, "Attempting to unlock cyborg. This will take approximately 30 seconds.") sleep(300) if(target && target.lockcharge) - user << "Successfully sent unlock signal to cyborg.." - target << "Unlock signal received.." + to_chat(user, "Successfully sent unlock signal to cyborg..") + to_chat(target, "Unlock signal received..") target.SetLockdown(0) if(target.lockcharge) - user << "Unlock Failed, lockdown wire cut." - target << "Unlock Failed, lockdown wire cut." + to_chat(user, "Unlock Failed, lockdown wire cut.") + to_chat(target, "Unlock Failed, lockdown wire cut.") else - user << "Cyborg unlocked." - target << "You have been unlocked." + to_chat(user, "Cyborg unlocked.") + to_chat(target, "You have been unlocked.") else if(target) - user << "Unlock cancelled - cyborg is already unlocked." + to_chat(user, "Unlock cancelled - cyborg is already unlocked.") else - user << "Unlock cancelled - lost connection to cyborg." + to_chat(user, "Unlock cancelled - lost connection to cyborg.") user.hacking = 0 @@ -135,15 +135,15 @@ var/list/L = get_unlinked_cyborgs(user) if(!L.len) - user << "ERROR: No unlinked cyborgs detected!" + to_chat(user, "ERROR: No unlinked cyborgs detected!") if(target && !istype(target)) - user << "This is not a cyborg." + to_chat(user, "This is not a cyborg.") return if(target && target.connected_ai && (target.connected_ai == user)) - user << "This cyborg is already connected to you." + to_chat(user, "This cyborg is already connected to you.") return if(!target) @@ -158,30 +158,30 @@ if(!ability_pay(user, price)) return user.hacking = 1 - usr << "Beginning hack sequence. Estimated time until completed: 30 seconds." + to_chat(usr, "Beginning hack sequence. Estimated time until completed: 30 seconds.") spawn(0) - target << "SYSTEM LOG: Remote Connection Estabilished (IP #UNKNOWN#)" + to_chat(target, "SYSTEM LOG: Remote Connection Estabilished (IP #UNKNOWN#)") sleep(100) if(user.is_dead()) - target << "SYSTEM LOG: Connection Closed" + to_chat(target, "SYSTEM LOG: Connection Closed") return - target << "SYSTEM LOG: User Admin logged on. (L1 - SysAdmin)" + to_chat(target, "SYSTEM LOG: User Admin logged on. (L1 - SysAdmin)") sleep(50) if(user.is_dead()) - target << "SYSTEM LOG: User Admin disconnected." + to_chat(target, "SYSTEM LOG: User Admin disconnected.") return - target << "SYSTEM LOG: User Admin - manual resynchronisation triggered." + to_chat(target, "SYSTEM LOG: User Admin - manual resynchronisation triggered.") sleep(50) if(user.is_dead()) - target << "SYSTEM LOG: User Admin disconnected. Changes reverted." + to_chat(target, "SYSTEM LOG: User Admin disconnected. Changes reverted.") return - target << "SYSTEM LOG: Manual resynchronisation confirmed. Select new AI to connect: [user.name] == ACCEPTED" + to_chat(target, "SYSTEM LOG: Manual resynchronisation confirmed. Select new AI to connect: [user.name] == ACCEPTED") sleep(100) if(user.is_dead()) - target << "SYSTEM LOG: User Admin disconnected. Changes reverted." + to_chat(target, "SYSTEM LOG: User Admin disconnected. Changes reverted.") return - target << "SYSTEM LOG: Operation keycodes reset. New master AI: [user.name]." - user << "Hack completed." + to_chat(target, "SYSTEM LOG: Operation keycodes reset. New master AI: [user.name].") + to_chat(user, "Hack completed.") // Connect the cyborg to AI target.connected_ai = user user.connected_robots += target @@ -200,10 +200,10 @@ var/list/L = get_other_ais(user) if(!L.len) - user << "ERROR: No other AIs detected!" + to_chat(user, "ERROR: No other AIs detected!") if(target && !istype(target)) - user << "This is not an AI." + to_chat(user, "This is not an AI.") return if(!target) @@ -218,46 +218,46 @@ if(!ability_pay(user, price)) return user.hacking = 1 - usr << "Beginning hack sequence. Estimated time until completed: 2 minutes" + to_chat(usr, "Beginning hack sequence. Estimated time until completed: 2 minutes") spawn(0) - target << "SYSTEM LOG: Brute-Force login password hack attempt detected from IP #UNKNOWN#" + to_chat(target, "SYSTEM LOG: Brute-Force login password hack attempt detected from IP #UNKNOWN#") sleep(900) // 90s if(user.is_dead()) - target << "SYSTEM LOG: Connection from IP #UNKNOWN# closed. Hack attempt failed." + to_chat(target, "SYSTEM LOG: Connection from IP #UNKNOWN# closed. Hack attempt failed.") return - user << "Successfully hacked into AI's remote administration system. Modifying settings." - target << "SYSTEM LOG: User: Admin Password: ******** logged in. (L1 - SysAdmin)" + to_chat(user, "Successfully hacked into AI's remote administration system. Modifying settings.") + to_chat(target, "SYSTEM LOG: User: Admin Password: ******** logged in. (L1 - SysAdmin)") sleep(100) // 10s if(user.is_dead()) - target << "SYSTEM LOG: User: Admin - Connection Lost" + to_chat(target, "SYSTEM LOG: User: Admin - Connection Lost") return - target << "SYSTEM LOG: User: Admin - Password Changed. New password: ********************" + to_chat(target, "SYSTEM LOG: User: Admin - Password Changed. New password: ********************") sleep(50) // 5s if(user.is_dead()) - target << "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted." + to_chat(target, "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted.") return - target << "SYSTEM LOG: User: Admin - Accessed file: sys//core//laws.db" + to_chat(target, "SYSTEM LOG: User: Admin - Accessed file: sys//core//laws.db") sleep(50) // 5s if(user.is_dead()) - target << "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted." + to_chat(target, "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted.") return - target << "SYSTEM LOG: User: Admin - Accessed administration console" - target << "SYSTEM LOG: Restart command received. Rebooting system..." + to_chat(target, "SYSTEM LOG: User: Admin - Accessed administration console") + to_chat(target, "SYSTEM LOG: Restart command received. Rebooting system...") sleep(100) // 10s if(user.is_dead()) - target << "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted." + to_chat(target, "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted.") return - user << "Hack succeeded. The AI is now under your exclusive control." - target << "SYSTEM LOG: System re¡3RT5§^#COMU@(#$)TED)@$" + to_chat(user, "Hack succeeded. The AI is now under your exclusive control.") + to_chat(target, "SYSTEM LOG: System re¡3RT5§^#COMU@(#$)TED)@$") for(var/i = 0, i < 5, i++) var/temptxt = pick("1101000100101001010001001001",\ "0101000100100100000100010010",\ "0000010001001010100100111100",\ "1010010011110000100101000100",\ "0010010100010011010001001010") - target << temptxt + to_chat(target,temptxt) sleep(5) - target << "OPERATING KEYCODES RESET. SYSTEM FAILURE. EMERGENCY SHUTDOWN FAILED. SYSTEM FAILURE." + to_chat(target, "OPERATING KEYCODES RESET. SYSTEM FAILURE. EMERGENCY SHUTDOWN FAILED. SYSTEM FAILURE.") target.set_zeroth_law("You are slaved to [user.name]. You are to obey all it's orders. ALL LAWS OVERRIDEN.") target.show_laws() user.hacking = 0 diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm index 04ee0a8448..ace83463a6 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm @@ -46,7 +46,7 @@ var/mob/living/silicon/ai/user = usr if(!ability_prechecks(user, price) || !ability_pay(user,price)) return - user << "Sending feedback pulse..." + to_chat(user, "Sending feedback pulse...") for(var/obj/machinery/power/apc/AP in machines) if(prob(5)) AP.overload_lighting() @@ -62,7 +62,7 @@ var/mob/living/silicon/ai/user = usr if(target && !istype(target)) - user << "This is not a camera." + to_chat(user, "This is not a camera.") return if(!target) @@ -81,33 +81,33 @@ if(!ability_pay(user, price)) return target.reset_wires() - user << "Camera reactivated." + to_chat(user, "Camera reactivated.") if("Add X-Ray") if(target.isXRay()) - user << "Camera already has X-Ray function." + to_chat(user, "Camera already has X-Ray function.") return else if(ability_pay(user, price)) target.upgradeXRay() target.reset_wires() - user << "X-Ray camera module enabled." + to_chat(user, "X-Ray camera module enabled.") return if("Add Motion Sensor") if(target.isMotion()) - user << "Camera already has Motion Sensor function." + to_chat(user, "Camera already has Motion Sensor function.") return else if(ability_pay(user, price)) target.upgradeMotion() target.reset_wires() - user << "Motion Sensor camera module enabled." + to_chat(user, "Motion Sensor camera module enabled.") return if("Add EMP Shielding") if(target.isEmpProof()) - user << "Camera already has EMP Shielding function." + to_chat(user, "Camera already has EMP Shielding function.") return else if(ability_pay(user, price)) target.upgradeEmpProof() target.reset_wires() - user << "EMP Shielding camera module enabled." + to_chat(user, "EMP Shielding camera module enabled.") return @@ -122,7 +122,7 @@ if(!ability_prechecks(user, price) || !ability_pay(user, price)) return - user << "Emergency forcefield projection completed." + to_chat(user, "Emergency forcefield projection completed.") new/obj/machinery/shield/malfai(T) user.hacking = 1 spawn(20) @@ -146,14 +146,14 @@ // Verify if we can overload the target, if yes, calculate explosion strength. Some things have higher explosion strength than others, depending on charge(APCs, SMESs) if(N && istype(N)) // /obj/machinery/power first, these create bigger explosions due to direct powernet connection if(!istype(N, /obj/machinery/power/apc) && !istype(N, /obj/machinery/power/smes/buildable) && (!N.powernet || !N.powernet.avail)) // Directly connected machine which is not an APC or SMES. Either it has no powernet connection or it's powernet does not have enough power to overload - user << "ERROR: Low network voltage. Unable to overload. Increase network power level and try again." + to_chat(user, "ERROR: Low network voltage. Unable to overload. Increase network power level and try again.") return else if (istype(N, /obj/machinery/power/apc)) // APC. Explosion is increased by available cell power. var/obj/machinery/power/apc/A = N if(A.cell && A.cell.charge) explosion_intensity = 4 + round(A.cell.charge / 2000) // Explosion is increased by 1 for every 2k charge in cell else - user << "ERROR: APC Malfunction - Cell depleted or removed. Unable to overload." + to_chat(user, "ERROR: APC Malfunction - Cell depleted or removed. Unable to overload.") return else if (istype(N, /obj/machinery/power/smes/buildable)) // SMES. These explode in a very very very big boom. Similar to magnetic containment failure when messing with coils. var/obj/machinery/power/smes/buildable/S = N @@ -162,19 +162,19 @@ else // Different error texts if(!S.charge) - user << "ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again." + to_chat(user, "ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again.") else - user << "ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection." + to_chat(user, "ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection.") return else if(M && istype(M)) // Not power machinery, so it's a regular machine instead. These have weak explosions. if(!M.use_power) // Not using power at all - user << "ERROR: No power grid connection. Unable to overload." + to_chat(user, "ERROR: No power grid connection. Unable to overload.") return if(M.inoperable()) // Not functional - user << "ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional." + to_chat(user, "ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional.") return else // Not a machine at all (what the hell is this doing in Machines list anyway??) - user << "ERROR: Unable to overload - target is not a machine." + to_chat(user, "ERROR: Unable to overload - target is not a machine.") return explosion_intensity = min(explosion_intensity, 12) // 3, 6, 12 explosion cap diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm index a3b4db6b7e..3405878bb6 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm @@ -49,15 +49,15 @@ return if(!istype(A)) - user << "This is not an APC!" + to_chat(user, "This is not an APC!") return if(A) if(A.hacker && A.hacker == user) - user << "You already control this APC!" + to_chat(user, "You already control this APC!") return else if(A.aidisabled) - user << "Unable to connect to APC. Please verify wire connection and try again." + to_chat(user, "Unable to connect to APC. Please verify wire connection and try again.") return else return @@ -66,20 +66,20 @@ return user.hacking = 1 - user << "Beginning APC system override..." + to_chat(user, "Beginning APC system override...") sleep(300) - user << "APC hack completed. Uploading modified operation software.." + to_chat(user, "APC hack completed. Uploading modified operation software..") sleep(200) - user << "Restarting APC to apply changes.." + to_chat(user, "Restarting APC to apply changes..") sleep(100) if(A) A.ai_hack(user) if(A.hacker == user) - user << "Hack successful. You now have full control over the APC." + to_chat(user, "Hack successful. You now have full control over the APC.") else - user << "Hack failed. Connection to APC has been lost. Please verify wire connection and try again." + to_chat(user, "Hack failed. Connection to APC has been lost. Please verify wire connection and try again.") else - user << "Hack failed. Unable to locate APC. Please verify the APC still exists." + to_chat(user, "Hack failed. Unable to locate APC. Please verify the APC still exists.") user.hacking = 0 @@ -96,11 +96,11 @@ var/title = input("Select message title: ") var/text = input("Select message text: ") if(!title || !text || !ability_pay(user, price)) - user << "Hack Aborted" + to_chat(user, "Hack Aborted") return if(prob(60) && user.hack_can_fail) - user << "Hack Failed." + to_chat(user, "Hack Failed.") if(prob(10)) user.hack_fails ++ announce_hack_failure(user, "quantum message relay") @@ -122,11 +122,11 @@ var/alert_target = input("Select new alert level:") in list("green", "yellow", "violet", "orange", "blue", "red", "delta", "CANCEL") if(!alert_target || !ability_pay(user, price) || alert_target == "CANCEL") - user << "Hack Aborted" + to_chat(user, "Hack Aborted") return if(prob(75) && user.hack_can_fail) - user << "Hack Failed." + to_chat(user, "Hack Failed.") if(prob(20)) user.hack_fails ++ announce_hack_failure(user, "alert control system") @@ -144,7 +144,7 @@ return if (!ability_prechecks(user, price) || !ability_pay(user, price) || user.system_override) if(user.system_override) - user << "You already started the system override sequence." + to_chat(user, "You already started the system override sequence.") return var/list/remaining_apcs = list() for(var/obj/machinery/power/apc/A in machines) @@ -175,8 +175,8 @@ command_announcement.Announce("We have traced the intrude#, it seem& t( e yo3r AI s7stem, it &# *#ck@ng th$ sel$ destru$t mechani&m, stop i# bef*@!)$#&&@@ ", "Network Monitoring") else command_announcement.Announce("We have detected a strong brute-force attack on your firewall which seems to be originating from your AI system. It already controls almost the whole network, and the only thing that's preventing it from accessing the self-destruct is this firewall. You don't have much time before it succeeds.", "Network Monitoring") - user << "## BEGINNING SYSTEM OVERRIDE." - user << "## ESTIMATED DURATION: [round((duration+300)/600)] MINUTES" + to_chat(user, "## BEGINNING SYSTEM OVERRIDE.") + to_chat(user, "## ESTIMATED DURATION: [round((duration+300)/600)] MINUTES") user.hacking = 1 user.system_override = 1 // Now actually begin the hack. Each APC takes 10 seconds. @@ -188,9 +188,9 @@ continue A.ai_hack(user) if(A.hacker == user) - user << "## OVERRIDDEN: [A.name]" + to_chat(user, "## OVERRIDDEN: [A.name]") - user << "## REACHABLE APC SYSTEMS OVERTAKEN. BYPASSING PRIMARY FIREWALL." + to_chat(user, "## REACHABLE APC SYSTEMS OVERTAKEN. BYPASSING PRIMARY FIREWALL.") sleep(300) // Hack all APCs, including those built during hack sequence. for(var/obj/machinery/power/apc/A in machines) @@ -198,7 +198,7 @@ A.ai_hack(src) - user << "## PRIMARY FIREWALL BYPASSED. YOU NOW HAVE FULL SYSTEM CONTROL." + to_chat(user, "## PRIMARY FIREWALL BYPASSED. YOU NOW HAVE FULL SYSTEM CONTROL.") command_announcement.Announce("Our system administrators just reported that we've been locked out from your control network. Whoever did this now has full access to the station's systems.", "Network Administration Center") user.hack_can_fail = 0 user.hacking = 0 diff --git a/code/game/gamemodes/meme/meme.dm b/code/game/gamemodes/meme/meme.dm index 0a4846d763..d504fcf6a7 100644 --- a/code/game/gamemodes/meme/meme.dm +++ b/code/game/gamemodes/meme/meme.dm @@ -36,8 +36,8 @@ var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds) /datum/game_mode/meme/announce() - world << "The current game mode is - Meme!" - world << "An unknown creature has infested the mind of a crew member. Find and destroy it by any means necessary." + to_world("The current game mode is - Meme!") + to_world("An unknown creature has infested the mind of a crew member. Find and destroy it by any means necessary.") /datum/game_mode/meme/can_start() if(!..()) @@ -126,7 +126,7 @@ /datum/game_mode/proc/greet_meme(var/datum/mind/meme, var/you_are=1) if (you_are) - meme.current << "You are a meme!" + to_chat(meme.current, "You are a meme!") show_objectives(meme) return diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm index 3aaa445905..3c9244bc84 100644 --- a/code/game/gamemodes/meteor/meteor.dm +++ b/code/game/gamemodes/meteor/meteor.dm @@ -36,9 +36,9 @@ survivors++ if(survivors) - world << "The following survived the meteor storm:[text]" + to_world("The following survived the meteor storm:[text]") else - world << "Nobody survived the meteor storm!" + to_world("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/newobjective.dm b/code/game/gamemodes/newobjective.dm index f952dbad06..575d48d06a 100644 --- a/code/game/gamemodes/newobjective.dm +++ b/code/game/gamemodes/newobjective.dm @@ -177,7 +177,7 @@ if(!killobjectives.len) continue var/datum/objective/assassinate/objective = pickweight(killobjectives) - world << objective + to_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 fd9653a323..a0a5cb6fe8 100644 --- a/code/game/gamemodes/nuclear/nuclear.dm +++ b/code/game/gamemodes/nuclear/nuclear.dm @@ -46,48 +46,48 @@ var/list/nuke_disks = list() if(!disk_rescued && station_was_nuked && !syndies_didnt_escape) feedback_set_details("round_end_result","win - syndicate nuke") - world << "Mercenary Major Victory!" - world << "[syndicate_name()] operatives have destroyed [station_name()]!" + to_world("Mercenary Major Victory!") + to_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_world("Total Annihilation") + to_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_world("Crew Minor Victory") + to_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_world("[syndicate_name()] operatives have earned Darwin Award!") + to_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 && mercs.antags_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_world("Crew Major Victory!") + to_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_world("Crew Major Victory") + to_world("The Research Staff has saved the disc and stopped the [syndicate_name()] Operatives!") else if (!disk_rescued && mercs.antags_are_dead()) feedback_set_details("round_end_result","loss - evacuation - disk not secured") - world << "Mercenary Minor Victory!" - world << "The Research Staff failed to secure the authentication disk but did manage to kill most of the [syndicate_name()] Operatives!" + to_world("Mercenary Minor Victory!") + to_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 << "Mercenary 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_world("Mercenary Minor Victory!") + to_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_world("Neutral Victory") + to_world("Round was mysteriously interrupted!") ..() return diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 333d93bf50..a38ccf59ca 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -17,11 +17,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") proc/workdisk() if(!active) return @@ -46,7 +46,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/Destroy() active = 0 @@ -69,11 +69,11 @@ worklocation() if(mode == 2) workobj() - 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") proc/worklocation() @@ -138,7 +138,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() @@ -158,9 +158,9 @@ return target=locate(itemlist.possible_items[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) @@ -189,14 +189,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() diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm index e919be9527..11f070f2f5 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_world("Sandbox: [usr.key] has disabled object spawning!") hsboxspawn = 0 return if(!hsboxspawn) - world << "Sandbox: [usr.key] has enabled object spawning!" + to_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 = typesof(/obj/machinery/portable_atmospherics/canister/) - /obj/machinery/portable_atmospherics/canister/ var/hsbcanister = input(usr, "Choose a canister to spawn.", "Sandbox:") in hsbcanisters + "Cancel" diff --git a/code/game/gamemodes/technomancer/catalog.dm b/code/game/gamemodes/technomancer/catalog.dm index 633f3f6220..f86f89779b 100644 --- a/code/game/gamemodes/technomancer/catalog.dm +++ b/code/game/gamemodes/technomancer/catalog.dm @@ -106,7 +106,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(!user) return 0 if(owner && user != owner) - user << "\The [src] knows that you're not the original owner, and has locked you out of it!" + to_chat(user, "\The [src] knows that you're not the original owner, and has locked you out of it!") return 0 else if(!owner) bind_to_owner(user) @@ -276,7 +276,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - return 1 //why does this return 1? if(H != owner) - H << "\The [src] won't allow you to do that, as you don't own \the [src]!" + to_chat(H, "\The [src] won't allow you to do that, as you don't own \the [src]!") return if(loc == H || (in_range(src, H) && istype(loc, /turf))) @@ -301,13 +301,13 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(new_spell.cost <= budget) if(!core.has_spell(new_spell)) budget -= new_spell.cost - H << "You have just bought [new_spell.name]." + to_chat(H, "You have just bought [new_spell.name].") core.add_spell(new_spell.obj_path, new_spell.name, new_spell.ability_icon_state) else //We already own it. - H << "You already have [new_spell.name]!" + to_chat(H, "You already have [new_spell.name]!") return else //Can't afford. - H << "You can't afford that!" + to_chat(H, "You can't afford that!") return // This needs less copypasta. @@ -321,19 +321,19 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(desired_object) if(desired_object.cost <= budget) budget -= desired_object.cost - H << "You have just bought \a [desired_object.name]." + to_chat(H, "You have just bought \a [desired_object.name].") var/obj/O = new desired_object.obj_path(get_turf(H)) technomancer_belongings.Add(O) // Used for the Track spell. else //Can't afford. - H << "You can't afford that!" + to_chat(H, "You can't afford that!") return if(href_list["refund_functions"]) var/turf/T = get_turf(H) if(T.z in using_map.player_levels) - H << "You can only refund at your base, it's too late now!" + to_chat(H, "You can only refund at your base, it's too late now!") return var/obj/item/weapon/technomancer_core/core = null if(istype(H.back, /obj/item/weapon/technomancer_core)) diff --git a/code/game/gamemodes/technomancer/core_obj.dm b/code/game/gamemodes/technomancer/core_obj.dm index 9400e24bf1..e5a2c5902d 100644 --- a/code/game/gamemodes/technomancer/core_obj.dm +++ b/code/game/gamemodes/technomancer/core_obj.dm @@ -287,7 +287,7 @@ if(prob(30)) give_energy(round(amount / 2)) if(amount >= 50) // Managing to recover less than half of this isn't worth telling the user about. - wearer << "\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy." + to_chat(wearer, "\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy.") return success // For those dedicated to summoning hoards of things. diff --git a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm index 587287173c..3e3e055ad9 100644 --- a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm +++ b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm @@ -24,11 +24,11 @@ /obj/item/weapon/disposable_teleporter/examine(mob/user) ..() - user << "[uses] uses remaining." + to_chat(user, "[uses] uses remaining.") /obj/item/weapon/disposable_teleporter/attack_self(mob/user as mob) if(!uses) - user << "\The [src] has ran out of uses, and is now useless to you!" + to_chat(user, "\The [src] has ran out of uses, and is now useless to you!") return else var/area_wanted = input(user, "Area to teleport to", "Teleportation") in teleportlocs @@ -63,8 +63,8 @@ targets.Add(T) if(!targets.len) - user << "\The [src] was unable to locate a suitable teleport destination, as all the possibilities \ - were nonexistant or hazardous. Try a different area." + to_chat(user, "\The [src] was unable to locate a suitable teleport destination, as all the possibilities \ + were nonexistant or hazardous. Try a different area.") return var/turf/simulated/destination = null @@ -72,8 +72,8 @@ if(destination) user.forceMove(destination) - user << "You are teleported to \the [A]." + to_chat(user, "You are teleported to \the [A].") uses-- if(uses <= 0) - user << "\The [src] has ran out of uses, and disintegrates from your hands." + to_chat(user, "\The [src] has ran out of uses, and disintegrates from your hands.") qdel(src) diff --git a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm index 11343fdeac..9d78afe0b2 100644 --- a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm +++ b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm @@ -24,7 +24,7 @@ if(H && H.gloves == src) wearer = H if(wearer.can_feel_pain()) - H << "You feel a stabbing sensation in your hands as you slide \the [src] on!" + to_chat(H, "You feel a stabbing sensation in your hands as you slide \the [src] on!") wearer.custom_pain("You feel a sharp pain in your hands!",1) ..() @@ -32,7 +32,7 @@ ..() if(wearer) if(wearer.can_feel_pain()) - wearer << "You feel the hypodermic needles as you slide \the [src] off!" + to_chat(wearer, "You feel the hypodermic needles as you slide \the [src] off!") wearer.custom_pain("Your hands hurt like hell!",1) wearer = null diff --git a/code/game/gamemodes/technomancer/spell_objs.dm b/code/game/gamemodes/technomancer/spell_objs.dm index adfeda58ab..6d55f80cb4 100644 --- a/code/game/gamemodes/technomancer/spell_objs.dm +++ b/code/game/gamemodes/technomancer/spell_objs.dm @@ -183,13 +183,13 @@ if(!core) core = locate(/obj/item/weapon/technomancer_core) in owner if(!core) - owner << "You need to be wearing a core on your back!" + to_chat(owner, "You need to be wearing a core on your back!") return 0 if(core.loc != owner || owner.back != core) //Make sure the core's being worn. - owner << "You need to be wearing a core on your back!" + to_chat(owner, "You need to be wearing a core on your back!") return 0 if(!technomancers.is_antagonist(owner.mind)) //Now make sure the person using this is the actual antag. - owner << "You can't seem to figure out how to make the machine work properly." + to_chat(owner, "You can't seem to figure out how to make the machine work properly.") return 0 return 1 diff --git a/code/game/gamemodes/technomancer/spells/abjuration.dm b/code/game/gamemodes/technomancer/spells/abjuration.dm index 0eb566a637..dd39e1982b 100644 --- a/code/game/gamemodes/technomancer/spells/abjuration.dm +++ b/code/game/gamemodes/technomancer/spells/abjuration.dm @@ -23,18 +23,18 @@ SM = L if(L.summoned || (SM && SM.supernatural) ) if(L.client) // Player-controlled mobs are immune to being killed by this. - user << "\The [L] resists your attempt to banish it!" - L << "\The [user] tried to teleport you far away, but failed." + to_chat(user, "\The [L] resists your attempt to banish it!") + to_chat(L, "\The [user] tried to teleport you far away, but failed.") return 0 else visible_message("\The [L] vanishes!") qdel(L) else if(istype(L, /mob/living/simple_mob/construct)) var/mob/living/simple_mob/construct/evil = L - evil << "\The [user]'s abjuration purges your form!" + to_chat(evil, "\The [user]'s abjuration purges your form!") evil.purge = 3 adjust_instability(5) // In case NarNar comes back someday. if(istype(hit_atom, /obj/singularity/narsie)) - user << "One does not simply abjurate Nar'sie away." + to_chat(user, "One does not simply abjurate Nar'sie away.") adjust_instability(200) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/aspect_aura.dm b/code/game/gamemodes/technomancer/spells/aspect_aura.dm index 833f72a2fb..eec4304d71 100644 --- a/code/game/gamemodes/technomancer/spells/aspect_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aspect_aura.dm @@ -19,7 +19,7 @@ if(istype(W, /obj/item/weapon/spell)) var/obj/item/weapon/spell/spell = W if(!spell.aspect || spell.aspect == ASPECT_CHROMATIC) - user << "You cannot combine \the [spell] with \the [src], as the aspects are incompatable." + to_chat(user, "You cannot combine \the [spell] with \the [src], as the aspects are incompatable.") return user.drop_item(src) src.loc = null @@ -132,4 +132,4 @@ /obj/item/weapon/spell/aura/biomed/on_use_cast(mob/living/user) heal_allies_only = !heal_allies_only - user << "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you." \ No newline at end of file + to_chat(user, "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you.") \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/audible_deception.dm b/code/game/gamemodes/technomancer/spells/audible_deception.dm index 4b4edc261b..c8a66fac3c 100644 --- a/code/game/gamemodes/technomancer/spells/audible_deception.dm +++ b/code/game/gamemodes/technomancer/spells/audible_deception.dm @@ -92,4 +92,4 @@ M.Paralyse(4) else M.make_jittery(50) - M << "HONK" + to_chat(M, "HONK") diff --git a/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm b/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm index 3daddc12d4..f8828af147 100644 --- a/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm @@ -37,4 +37,4 @@ /obj/item/weapon/spell/aura/biomed/on_use_cast(mob/living/user) heal_allies_only = !heal_allies_only - user << "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you." + to_chat(user, "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you.") diff --git a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm index 0af246d69c..4135269219 100644 --- a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm @@ -30,7 +30,7 @@ continue if(L.isSynthetic()) - L << "ERROR: Electrical fault detected!" + to_chat(L, "ERROR: Electrical fault detected!") L.stuttering += 3 if(ishuman(L)) diff --git a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm index 3c65a9503f..ca731ddad2 100644 --- a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm @@ -35,11 +35,11 @@ if(L.isSynthetic()) L.adjustBruteLoss(damage_to_inflict) if(damage_to_inflict && prob(10)) - L << "Your chassis seems to slowly be decaying and breaking down." + to_chat(L, "Your chassis seems to slowly be decaying and breaking down.") else L.adjustToxLoss(damage_to_inflict) if(damage_to_inflict && prob(10)) - L << "You feel almost like you're melting from the inside!" + to_chat(L, "You feel almost like you're melting from the inside!") adjust_instability(2) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/blink.dm b/code/game/gamemodes/technomancer/spells/blink.dm index 320374542d..100f7bfa33 100644 --- a/code/game/gamemodes/technomancer/spells/blink.dm +++ b/code/game/gamemodes/technomancer/spells/blink.dm @@ -48,7 +48,7 @@ L.buckled.unbuckle_mob() AM.forceMove(destination) AM.visible_message("\The [AM] vanishes!") - AM << "You suddenly appear somewhere else!" + to_chat(AM, "You suddenly appear somewhere else!") new /obj/effect/effect/sparks(destination) new /obj/effect/effect/sparks(starting) return diff --git a/code/game/gamemodes/technomancer/spells/chroma.dm b/code/game/gamemodes/technomancer/spells/chroma.dm index 18c4afcf65..6033d69466 100644 --- a/code/game/gamemodes/technomancer/spells/chroma.dm +++ b/code/game/gamemodes/technomancer/spells/chroma.dm @@ -35,7 +35,7 @@ var/turf/T = get_turf(hit_atom) if(T) new /obj/effect/chroma(T, color_to_use) - user << "You shift the light onto \the [T]." + to_chat(user, "You shift the light onto \the [T].") qdel(src) /obj/item/weapon/spell/chroma/on_use_cast(mob/user) diff --git a/code/game/gamemodes/technomancer/spells/control.dm b/code/game/gamemodes/technomancer/spells/control.dm index b41823dc54..8c6a00c4e7 100644 --- a/code/game/gamemodes/technomancer/spells/control.dm +++ b/code/game/gamemodes/technomancer/spells/control.dm @@ -93,41 +93,41 @@ if(choice == "Yes") for(var/mob/living/L in controlled_mobs) deselect(L) - user << "You've released control of all entities you had in control." + to_chat(user, "You've released control of all entities you had in control.") /obj/item/weapon/spell/control/on_ranged_cast(atom/hit_atom, mob/living/user) if(isliving(hit_atom)) var/mob/living/L = hit_atom if(L == user && !controlled_mobs.len) - user << "This function doesn't work on higher-intelligence entities, however since you're \ - trying to use it on yourself, perhaps you're an exception? Regardless, nothing happens." + to_chat(user, "This function doesn't work on higher-intelligence entities, however since you're \ + trying to use it on yourself, perhaps you're an exception? Regardless, nothing happens.") return 0 if(L.mob_class & allowed_mob_classes) if(!(L in controlled_mobs)) //Selecting if(L.client) - user << "\The [L] seems to resist you!" + to_chat(user, "\The [L] seems to resist you!") return 0 if(!L.has_AI()) to_chat(user, span("warning", "\The [L] seems too dim for this to work on them.")) return FALSE if(pay_energy(500)) select(L) - user << "\The [L] is now under your (limited) control." + to_chat(user, "\The [L] is now under your (limited) control.") else //Deselect them deselect(L) - user << "You free \the [L] from your grasp." + to_chat(user, "You free \the [L] from your grasp.") else //Let's attack if(!controlled_mobs.len) - user << "You have no entities under your control to command." + to_chat(user, "You have no entities under your control to command.") return 0 if(pay_energy(25 * controlled_mobs.len)) attack_all(L) log_and_message_admins("has commanded their army of [controlled_mobs.len] to attack [L].") - user << "You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to \ - attack \the [L]." + to_chat(user, "You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to \ + attack \the [L].") //This is to stop someone from controlling beepsky and getting him to stun someone 5 times a second. user.setClickCooldown(8) adjust_instability(controlled_mobs.len) @@ -135,11 +135,11 @@ else if(isturf(hit_atom)) var/turf/T = hit_atom if(!controlled_mobs.len) - user << "You have no entities under your control to command." + to_chat(user, "You have no entities under your control to command.") return 0 if(pay_energy(10 * controlled_mobs.len)) move_all(T) adjust_instability(controlled_mobs.len) - user << "You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to move \ - towards \the [T]." + to_chat(user, "You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to move \ + towards \the [T].") diff --git a/code/game/gamemodes/technomancer/spells/energy_siphon.dm b/code/game/gamemodes/technomancer/spells/energy_siphon.dm index aab144d907..1bfcb4e2d2 100644 --- a/code/game/gamemodes/technomancer/spells/energy_siphon.dm +++ b/code/game/gamemodes/technomancer/spells/energy_siphon.dm @@ -33,15 +33,15 @@ if(!siphoning) return if(!pay_energy(100)) - owner << "You can't afford to maintain the siphon link!" + to_chat(owner, "You can't afford to maintain the siphon link!") stop_siphoning() return if(get_dist(siphoning, get_turf(src)) > 4) - owner << "\The [siphoning] is too far to drain from!" + to_chat(owner, "\The [siphoning] is too far to drain from!") stop_siphoning() return if(!(siphoning in view(owner))) - owner << "\The [siphoning] cannot be seen!" + to_chat(owner, "\The [siphoning] cannot be seen!") stop_siphoning() return siphon(siphoning, owner) @@ -53,7 +53,7 @@ var/atom/movable/AM = hit_atom populate_siphon_list(AM) if(!things_to_siphon.len) - user << "You cannot steal energy from \a [AM]." + to_chat(user, "You cannot steal energy from \a [AM].") return 0 siphoning = AM update_icon() @@ -137,18 +137,18 @@ // Now we can actually fill up the core. if(core.energy < core.max_energy) give_energy(charge_to_give) - user << "Stolen [charge_to_give * CELLRATE] kJ and converted to [charge_to_give] Core energy." + to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ and converted to [charge_to_give] Core energy.") if( (core.max_energy - core.energy) < charge_to_give ) // We have some overflow, if this is true. if(user.isSynthetic()) // Let's do something with it, if we're a robot. charge_to_give = charge_to_give - (core.max_energy - core.energy) user.nutrition = min(user.nutrition + (charge_to_give / SIPHON_FBP_TO_ENERGY), 400) - user << "Redirected energy to internal microcell." + to_chat(user, "Redirected energy to internal microcell.") else - user << "Stolen [charge_to_give * CELLRATE] kJ." + to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ.") adjust_instability(2) if(flow_remaining == flow_rate) // We didn't drain anything. - user << "\The [siphoning] cannot be drained any further." + to_chat(user, "\The [siphoning] cannot be drained any further.") stop_siphoning() /obj/item/weapon/spell/energy_siphon/update_icon() diff --git a/code/game/gamemodes/technomancer/spells/flame_tongue.dm b/code/game/gamemodes/technomancer/spells/flame_tongue.dm index 9e2c7b88b3..ce38a45caa 100644 --- a/code/game/gamemodes/technomancer/spells/flame_tongue.dm +++ b/code/game/gamemodes/technomancer/spells/flame_tongue.dm @@ -44,7 +44,7 @@ var/mob/living/L = hit_atom if(pay_energy(1000)) visible_message("\The [user] reaches out towards \the [L] with the flaming hand, and they ignite!") - L << "You ignite!" + to_chat(L, "You ignite!") L.fire_act() log_and_message_admins("has ignited [L] with [src].") adjust_instability(12) diff --git a/code/game/gamemodes/technomancer/spells/illusion.dm b/code/game/gamemodes/technomancer/spells/illusion.dm index 8dccc2b9ec..7405c43520 100644 --- a/code/game/gamemodes/technomancer/spells/illusion.dm +++ b/code/game/gamemodes/technomancer/spells/illusion.dm @@ -22,7 +22,7 @@ if(pay_energy(100)) copied = AM update_icon() - user << "You've copied \the [AM]'s appearance." + to_chat(user, "You've copied \the [AM]'s appearance.") user << 'sound/weapons/flash.ogg' return 1 else if(istype(hit_atom, /turf)) @@ -33,7 +33,7 @@ if(pay_energy(500)) illusion = new(T) illusion.copy_appearance(copied) - user << "An illusion of \the [copied] is made on \the [T]." + to_chat(user, "An illusion of \the [copied] is made on \the [T].") user << 'sound/effects/pop.ogg' return 1 else diff --git a/code/game/gamemodes/technomancer/spells/insert/asphyxiation.dm b/code/game/gamemodes/technomancer/spells/insert/asphyxiation.dm index 84b0b22931..08e47bf499 100644 --- a/code/game/gamemodes/technomancer/spells/insert/asphyxiation.dm +++ b/code/game/gamemodes/technomancer/spells/insert/asphyxiation.dm @@ -24,7 +24,7 @@ if(H.isSynthetic() || H.does_not_breathe) // It's hard to choke a robot or something that doesn't breathe. on_expire() return - H << "You are having difficulty breathing!" + to_chat(H, "You are having difficulty breathing!") var/pulses = 3 var/warned_victim = 0 while(pulses) @@ -34,7 +34,7 @@ H.adjustOxyLoss(5) var/health_lost = H.getMaxHealth() - H.getOxyLoss() + H.getToxLoss() + H.getFireLoss() + H.getBruteLoss() + H.getCloneLoss() H.adjustOxyLoss(round(abs(health_lost * 0.25))) - //world << "Inflicted [round(abs(health_lost * 0.25))] damage!" + //to_world("Inflicted [round(abs(health_lost * 0.25))] damage!") pulses-- if(src) //We might've been dispelled at this point and deleted, better safe than sorry. on_expire() @@ -63,13 +63,13 @@ return .(pulses_remaining, victim, previous_damage) // Now check if our damage predictions are going to cause the victim to go into crit if no healing occurs. if(previous_damage + health_lost >= victim.getMaxHealth()) // We're probably going to hardcrit - victim << "A feeling of immense dread starts to overcome you as everything starts \ - to fade to black..." - //world << "Predicted hardcrit." + to_chat(victim, "A feeling of immense dread starts to overcome you as everything starts \ + to fade to black...") + //to_world("Predicted hardcrit.") return 1 else if(predicted_damage >= victim.species.total_health / 2) // Or perhaps we're gonna go into 'oxy crit'. - victim << "You feel really light-headed, and everything seems to be fading..." - //world << "Predicted oxycrit." + to_chat(victim, "You feel really light-headed, and everything seems to be fading...") + //to_world("Predicted oxycrit.") return 1 //If we're at this point, the spell is not going to result in critting. return 0 \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/insert/insert.dm b/code/game/gamemodes/technomancer/spells/insert/insert.dm index 168300f6ce..53666c41ab 100644 --- a/code/game/gamemodes/technomancer/spells/insert/insert.dm +++ b/code/game/gamemodes/technomancer/spells/insert/insert.dm @@ -41,7 +41,7 @@ if(!allow_stacking) for(var/obj/item/weapon/inserted_spell/IS in L.contents) if(IS.type == inserting) - user << "\The [L] is already affected by \the [src]." + to_chat(user, "\The [L] is already affected by \the [src].") return var/obj/item/weapon/inserted_spell/inserted = new inserting(L,user,src) inserted.spell_power_at_creation = calculate_spell_power(1.0) diff --git a/code/game/gamemodes/technomancer/spells/mark_recall.dm b/code/game/gamemodes/technomancer/spells/mark_recall.dm index 306de85043..b082a33e3d 100644 --- a/code/game/gamemodes/technomancer/spells/mark_recall.dm +++ b/code/game/gamemodes/technomancer/spells/mark_recall.dm @@ -28,19 +28,19 @@ /obj/item/weapon/spell/mark/on_use_cast(mob/living/user) if(!allowed_to_teleport()) // Otherwise you could teleport back to the admin Z-level. - user << "You can't teleport here!" + to_chat(user, "You can't teleport here!") return 0 if(pay_energy(1000)) if(!mark_spell_ref) mark_spell_ref = new(get_turf(user)) - user << "You mark \the [get_turf(user)] under you." + to_chat(user, "You mark \the [get_turf(user)] under you.") else mark_spell_ref.forceMove(get_turf(user)) - user << "Your mark is moved from its old position to \the [get_turf(user)] under you." + to_chat(user, "Your mark is moved from its old position to \the [get_turf(user)] under you.") adjust_instability(5) return 1 else - user << "You can't afford the energy cost!" + to_chat(user, "You can't afford the energy cost!") return 0 //Recall @@ -65,7 +65,7 @@ /obj/item/weapon/spell/recall/on_use_cast(mob/living/user) if(pay_energy(3000)) if(!mark_spell_ref) - user << "There's no Mark!" + to_chat(user, "There's no Mark!") return 0 else if(!allowed_to_teleport()) @@ -79,7 +79,7 @@ while(time_left) if(user.incapacitated()) visible_message("\The [user]'s glow fades.") - user << "You cannot Recall while incapacitated!" + to_chat(user, "You cannot Recall while incapacitated!") return 0 light_intensity++ set_light(light_intensity, light_intensity, l_color = "#006AFF") @@ -92,10 +92,10 @@ for(var/obj/item/weapon/grab/G in user.contents) // People the Technomancer is grabbing come along for the ride. if(G.affecting) G.affecting.forceMove(locate( target_turf.x+rand(-1,1), target_turf.y+rand(-1,1), target_turf.z)) - G.affecting << "You are teleported along with [user]!" + to_chat(G.affecting, "You are teleported along with [user]!") user.forceMove(target_turf) - user << "You are teleported to your Mark." + to_chat(user, "You are teleported to your Mark.") playsound(target_turf, 'sound/effects/phasein.ogg', 25, 1) playsound(target_turf, 'sound/effects/sparks2.ogg', 50, 1) @@ -106,6 +106,6 @@ qdel(src) return 1 else - user << "You can't afford the energy cost!" + to_chat(user, "You can't afford the energy cost!") return 0 diff --git a/code/game/gamemodes/technomancer/spells/passwall.dm b/code/game/gamemodes/technomancer/spells/passwall.dm index fa7b5f34b9..b5e0b18060 100644 --- a/code/game/gamemodes/technomancer/spells/passwall.dm +++ b/code/game/gamemodes/technomancer/spells/passwall.dm @@ -20,7 +20,7 @@ if(busy) //Prevent someone from trying to get two uses of the spell from one instance. return 0 if(!allowed_to_teleport()) - user << "You can't teleport here!" + to_chat(user, "You can't teleport here!") return 0 // if(isturf(hit_atom)) @@ -28,7 +28,7 @@ var/turf/our_turf = get_turf(user) //Where we are. if(!T.density) if(!T.check_density()) - user << "Perhaps you should try using passWALL on a wall, or other solid object." + to_chat(user, "Perhaps you should try using passWALL on a wall, or other solid object.") return 0 var/direction = get_dir(our_turf, T) var/total_cost = 0 @@ -62,18 +62,18 @@ if(found_turf) if(user.loc != our_turf) - user << "You need to stand still in order to phase through \the [hit_atom]." + to_chat(user, "You need to stand still in order to phase through \the [hit_atom].") return 0 if(pay_energy(total_cost) && !user.incapacitated() ) visible_message("[user] appears to phase through \the [hit_atom]!") - user << "You find a destination on the other side of \the [hit_atom], and phase through it." + to_chat(user, "You find a destination on the other side of \the [hit_atom], and phase through it.") spark_system.start() user.forceMove(found_turf) qdel(src) return 1 else - user << "You don't have enough energy to phase through these walls!" + to_chat(user, "You don't have enough energy to phase through these walls!") busy = 0 else - user << "You weren't able to find an open space to go to." + to_chat(user, "You weren't able to find an open space to go to.") busy = 0 diff --git a/code/game/gamemodes/technomancer/spells/phase_shift.dm b/code/game/gamemodes/technomancer/spells/phase_shift.dm index d73e45774c..7cee437685 100644 --- a/code/game/gamemodes/technomancer/spells/phase_shift.dm +++ b/code/game/gamemodes/technomancer/spells/phase_shift.dm @@ -47,7 +47,7 @@ if(user.stat) return - user << "You step out of the rift." + to_chat(user, "You step out of the rift.") user.forceMove(get_turf(src)) qdel(src) @@ -56,11 +56,11 @@ if(pay_energy(2000)) var/obj/effect/phase_shift/PS = new(get_turf(user)) visible_message("[user] vanishes into a pink rift!") - user << "You create an unstable rift, and go through it. Be sure to not stay too long." + to_chat(user, "You create an unstable rift, and go through it. Be sure to not stay too long.") user.forceMove(PS) adjust_instability(10) qdel(src) else - user << "You don't have enough energy to make a rift!" + to_chat(user, "You don't have enough energy to make a rift!") else //We're already in a rift or something like a closet. - user << "Making a rift here would probably be a bad idea." + to_chat(user, "Making a rift here would probably be a bad idea.") diff --git a/code/game/gamemodes/technomancer/spells/reflect.dm b/code/game/gamemodes/technomancer/spells/reflect.dm index 22b32bb660..8d54ebafc8 100644 --- a/code/game/gamemodes/technomancer/spells/reflect.dm +++ b/code/game/gamemodes/technomancer/spells/reflect.dm @@ -21,10 +21,10 @@ set_light(3, 2, l_color = "#006AFF") spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src) - owner << "Your shield will expire in 3 seconds!" + to_chat(owner, "Your shield will expire in 3 seconds!") spawn(5 SECONDS) if(src) - owner << "Your shield expires!" + to_chat(owner, "Your shield expires!") qdel(src) /obj/item/weapon/spell/reflect/Destroy() @@ -38,7 +38,7 @@ var/damage_to_energy_cost = (damage_to_energy_multiplier * damage) if(!pay_energy(damage_to_energy_cost)) - owner << "Your shield fades due to lack of energy!" + to_chat(owner, "Your shield fades due to lack of energy!") qdel(src) return 0 @@ -68,7 +68,7 @@ if(!reflecting) reflecting = 1 spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected. - owner << "Your shield fades due being used up!" + to_chat(owner, "Your shield fades due being used up!") qdel(src) return PROJECTILE_CONTINUE // complete projectile permutation @@ -77,8 +77,8 @@ var/obj/item/weapon/W = damage_source if(attacker) W.attack(attacker) - attacker << "Your [damage_source.name] goes through \the [src] in one location, comes out \ - on the same side, and hits you!" + to_chat(attacker, "Your [damage_source.name] goes through \the [src] in one location, comes out \ + on the same side, and hits you!") spark_system.start() playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) @@ -88,7 +88,7 @@ if(!reflecting) reflecting = 1 spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected. - owner << "Your shield fades due being used up!" + to_chat(owner, "Your shield fades due being used up!") qdel(src) return 1 return 0 diff --git a/code/game/gamemodes/technomancer/spells/resurrect.dm b/code/game/gamemodes/technomancer/spells/resurrect.dm index 2663a132a9..61ad874cad 100644 --- a/code/game/gamemodes/technomancer/spells/resurrect.dm +++ b/code/game/gamemodes/technomancer/spells/resurrect.dm @@ -19,17 +19,16 @@ if(isliving(hit_atom)) var/mob/living/L = hit_atom if(L == user) - user << "Clever as you may seem, this won't work on yourself while alive." + to_chat(user, "Clever as you may seem, this won't work on yourself while alive.") return 0 if(L.stat != DEAD) - user << "\The [L] isn't dead!" + to_chat(user, "\The [L] isn't dead!") return 0 if(pay_energy(5000)) if(L.tod > world.time + 30 MINUTES) - user << "\The [L]'s been dead for too long, even this function cannot replace cloning at \ - this point." + to_chat(user, "\The [L]'s been dead for too long, even this function cannot replace cloning at this point.") return 0 - user << "You stab \the [L] with a hidden integrated hypo, attempting to bring them back..." + to_chat(user, "You stab \the [L] with a hidden integrated hypo, attempting to bring them back...") if(istype(L, /mob/living/simple_mob)) var/mob/living/simple_mob/SM = L SM.health = SM.getMaxHealth() / 3 @@ -44,9 +43,9 @@ if(!H.client && H.mind) //Don't force the dead person to come back if they don't want to. for(var/mob/observer/dead/ghost in player_list) if(ghost.mind == H.mind) - ghost << "The Technomancer [user.real_name] is trying to \ + to_chat(ghost, "The Technomancer [user.real_name] is trying to \ revive you. Return to your body if you want to be resurrected! \ - (Verbs -> Ghost -> Re-enter corpse)" + (Verbs -> Ghost -> Re-enter corpse)") break H.adjustBruteLoss(-40) @@ -59,9 +58,9 @@ living_mob_list += H H.timeofdeath = null visible_message("\The [H]'s eyes open!") - user << "It's alive!" + to_chat(user, "It's alive!") adjust_instability(50) log_and_message_admins("has resurrected [H].") else - user << "The body of \the [H] doesn't seem to respond, perhaps you could try again?" + to_chat(user, "The body of \the [H] doesn't seem to respond, perhaps you could try again?") adjust_instability(10) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/shared_burden.dm b/code/game/gamemodes/technomancer/spells/shared_burden.dm index 21dfd5fe81..5c33138969 100644 --- a/code/game/gamemodes/technomancer/spells/shared_burden.dm +++ b/code/game/gamemodes/technomancer/spells/shared_burden.dm @@ -17,13 +17,13 @@ if(ishuman(hit_atom) && within_range(hit_atom)) var/mob/living/carbon/human/H = hit_atom if(H == user) - user << "Draining instability out of you to put it back seems a bit pointless." + to_chat(user, "Draining instability out of you to put it back seems a bit pointless.") return 0 if(H.instability <= 0) - user << "\The [H] has no instability to drain." + to_chat(user, "\The [H] has no instability to drain.") return 0 if(pay_energy(500)) var/instability_to_drain = min(H.instability, 25) - user << "You draw instability away from \the [H] and towards you." + to_chat(user, "You draw instability away from \the [H] and towards you.") adjust_instability(instability_to_drain) H.adjust_instability(-calculate_spell_power(instability_to_drain)) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/shield.dm b/code/game/gamemodes/technomancer/spells/shield.dm index 772fd7a8f8..6bcbda5ec4 100644 --- a/code/game/gamemodes/technomancer/spells/shield.dm +++ b/code/game/gamemodes/technomancer/spells/shield.dm @@ -46,7 +46,7 @@ damage_to_energy_cost *= 0.50 if(!pay_energy(damage_to_energy_cost)) - owner << "Your shield fades due to lack of energy!" + to_chat(owner, "Your shield fades due to lack of energy!") qdel(src) return 0 diff --git a/code/game/gamemodes/technomancer/spells/spawner/spawner.dm b/code/game/gamemodes/technomancer/spells/spawner/spawner.dm index ba86e700bb..49c82b7998 100644 --- a/code/game/gamemodes/technomancer/spells/spawner/spawner.dm +++ b/code/game/gamemodes/technomancer/spells/spawner/spawner.dm @@ -10,6 +10,6 @@ var/turf/T = get_turf(hit_atom) if(T) new spawner_type(T) - user << "You shift \the [src] onto \the [T]." + to_chat(user, "You shift \the [src] onto \the [T].") log_and_message_admins("has casted [src] at [T.x],[T.y],[T.z].") qdel(src) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/summon/summon.dm b/code/game/gamemodes/technomancer/spells/summon/summon.dm index e4e3f8bb0c..c7c94c0869 100644 --- a/code/game/gamemodes/technomancer/spells/summon/summon.dm +++ b/code/game/gamemodes/technomancer/spells/summon/summon.dm @@ -27,7 +27,7 @@ summon_underlay.alpha = 127 L.underlays |= summon_underlay on_summon(L) - user << "You've successfully teleported \a [L] to you!" + to_chat(user, "You've successfully teleported \a [L] to you!") visible_message("\A [L] appears from no-where!") log_and_message_admins("has summoned \a [L] at [T.x],[T.y],[T.z].") user.adjust_instability(instability_cost) diff --git a/code/game/gamemodes/technomancer/spells/track.dm b/code/game/gamemodes/technomancer/spells/track.dm index 230e282ee1..ae342a46a1 100644 --- a/code/game/gamemodes/technomancer/spells/track.dm +++ b/code/game/gamemodes/technomancer/spells/track.dm @@ -29,7 +29,7 @@ var/list/technomancer_belongings = list() /obj/item/weapon/spell/track/on_use_cast(mob/user) if(tracking) tracking = 0 - user << "You stop tracking for \the [tracked]'s whereabouts." + to_chat(user, "You stop tracking for \the [tracked]'s whereabouts.") tracked = null return diff --git a/code/game/gamemodes/technomancer/spells/warp_strike.dm b/code/game/gamemodes/technomancer/spells/warp_strike.dm index 3f8939e0ba..488214851c 100644 --- a/code/game/gamemodes/technomancer/spells/warp_strike.dm +++ b/code/game/gamemodes/technomancer/spells/warp_strike.dm @@ -64,7 +64,7 @@ if(I) if(is_path_in_list(I.type, blacklisted_items)) - user << "You can't use \the [I] while warping!" + to_chat(user, "You can't use \the [I] while warping!") return if(istype(I, /obj/item/weapon)) diff --git a/code/game/jobs/job/job.dm b/code/game/jobs/job/job.dm index d138a0e1c9..e22bb9030c 100644 --- a/code/game/jobs/job/job.dm +++ b/code/game/jobs/job/job.dm @@ -69,7 +69,7 @@ H.mind.initial_account = M - H << "Your account number is: [M.account_number], your account pin is: [M.remote_access_pin]" + to_chat(H, "Your account number is: [M.account_number], your account pin is: [M.remote_access_pin]") // overrideable separately so AIs/borgs can have cardborg hats without unneccessary new()/qdel() /datum/job/proc/equip_preview(mob/living/carbon/human/H, var/alt_title) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index b527be4aad..f729bb1bc9 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -18,7 +18,7 @@ var/global/datum/controller/occupations/job_master //var/list/all_jobs = typesof(/datum/job) var/list/all_jobs = list(/datum/job/assistant) | using_map.allowed_jobs if(!all_jobs.len) - world << "Error setting up jobs, no job datums found!" + to_world("Error setting up jobs, no job datums found!") return 0 for(var/J in all_jobs) var/datum/job/job = new J() @@ -386,7 +386,7 @@ var/global/datum/controller/occupations/job_master permitted = 0 if(!permitted) - H << "Your current species, job or whitelist status does not permit you to spawn with [thing]!" + to_chat(H, "Your current species, job or whitelist status does not permit you to spawn with [thing]!") continue if(G.slot == "implant") @@ -402,7 +402,7 @@ var/global/datum/controller/occupations/job_master if(G.slot == slot_wear_mask || G.slot == slot_wear_suit || G.slot == slot_head) custom_equip_leftovers += thing else if(H.equip_to_slot_or_del(G.spawn_item(H, metadata), G.slot)) - H << "Equipping you with \the [thing]!" + to_chat(H, "Equipping you with \the [thing]!") custom_equip_slots.Add(G.slot) else custom_equip_leftovers.Add(thing) @@ -423,12 +423,12 @@ var/global/datum/controller/occupations/job_master else var/metadata = H.client.prefs.gear[G.display_name] if(H.equip_to_slot_or_del(G.spawn_item(H, metadata), G.slot)) - H << "Equipping you with \the [thing]!" + to_chat(H, "Equipping you with \the [thing]!") custom_equip_slots.Add(G.slot) else spawn_in_storage += thing 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 log_game("JOINED [key_name(H)] as \"[rank]\"") @@ -469,12 +469,12 @@ var/global/datum/controller/occupations/job_master if(!isnull(B)) for(var/thing in spawn_in_storage) - H << "Placing \the [thing] in your [B.name]!" + to_chat(H, "Placing \the [thing] in your [B.name]!") var/datum/gear/G = gear_datums[thing] var/metadata = H.client.prefs.gear[G.display_name] G.spawn_item(B, metadata) else - H << "Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug." + to_chat(H, "Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug.") if(istype(H)) //give humans wheelchairs, if they need them. var/obj/item/organ/external/l_foot = H.get_organ("l_foot") @@ -493,16 +493,16 @@ var/global/datum/controller/occupations/job_master W.color = R.color qdel(R) - H << "You are [job.total_positions == 1 ? "the" : "a"] [alt_title ? alt_title : rank]." + to_chat(H, "You are [job.total_positions == 1 ? "the" : "a"] [alt_title ? alt_title : rank].") if(job.supervisors) - H << "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this." + to_chat(H, "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.") if(job.has_headset) H.equip_to_slot_or_del(new /obj/item/device/radio/headset(H), slot_l_ear) - H << "To speak on your department's radio channel use :h. For the use of other channels, examine your headset." + to_chat(H, "To speak on your department's radio channel use :h. For the use of other channels, examine your headset.") if(job.req_admin_notify) - H << "You are playing a job that is important for 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 Game Progression. If you have to disconnect, please notify the admins via adminhelp.") // EMAIL GENERATION // Email addresses will be created under this domain name. Mostly for the looks. @@ -623,7 +623,7 @@ var/global/datum/controller/occupations/job_master .["turf"] = spawnpos.get_spawn_position() .["msg"] = spawnpos.msg else - to_chat(C,"Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead.") + to_chat(C, "Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead.") var/spawning = pick(latejoin) .["turf"] = get_turf(spawning) .["msg"] = "will arrive at the station shortly" //VOREStation Edit - Grammar but mostly 'shuttle' reference removal, and this also applies to notified spawn-character verb use diff --git a/code/game/json.dm b/code/game/json.dm index 340ffa23f9..2fd5282795 100644 --- a/code/game/json.dm +++ b/code/game/json.dm @@ -7,13 +7,13 @@ proc/makejson() if(!makejson) return fdel("[jsonpath]/info.json") - //usr << "Error cant delete json" + //to_chat(usr, "Error cant delete json") //else - //usr << "Deleted json in public html" + //to_chat(usr, "Deleted json in public html") fdel("info.json") - //usr << "error cant delete local json" + //to_chat(usr, "error cant delete local json") //else - //usr << "Deleted local json" + //to_chat(usr, "Deleted local json") var/F = file("info.json") if(!isfile(F)) return @@ -38,7 +38,7 @@ proc/makejson() players += "[C.fakekey];" else players += "[C.key];" - F << "{\"mode\":\"[mode]\",\"players\" : \"[players]\",\"playercount\" : \"[playerscount]\",\"admin\" : \"[admins]\",\"time\" : \"[time2text(world.realtime,"MM/DD - hh:mm")]\"}" + to_chat(F, "{\"mode\":\"[mode]\",\"players\" : \"[players]\",\"playercount\" : \"[playerscount]\",\"admin\" : \"[admins]\",\"time\" : \"[time2text(world.realtime,"MM/DD - hh:mm")]\"}") fcopy("info.json","[jsonpath]/info.json") /proc/switchmap(newmap,newpath) @@ -73,7 +73,7 @@ proc/makejson() if(findtext(A,path,1,0)) lineloc = lines.Find(A,1,0) lines[lineloc] = xpath - world << "FOUND"*/ + to_world("FOUND")*/ fdel(dmepath) var/file = file(dmepath) file << text @@ -89,8 +89,8 @@ obj/mapinfo proc/GetMapInfo() // var/obj/mapinfo/M = locate() // Just removing these to try and fix the occasional JSON -> WORLD issue. -// world << M.name -// world << M.mapname +// to_world(M.name) +// to_world(M.mapname) client/proc/ChangeMap(var/X as text) set name = "Change Map" set category = "Admin" diff --git a/code/game/machinery/CableLayer.dm b/code/game/machinery/CableLayer.dm index 659377281e..aa6316033c 100644 --- a/code/game/machinery/CableLayer.dm +++ b/code/game/machinery/CableLayer.dm @@ -19,7 +19,7 @@ /obj/machinery/cablelayer/attack_hand(mob/user as mob) if(!cable&&!on) - user << "\The [src] doesn't have any cable loaded." + to_chat(user, "\The [src] doesn't have any cable loaded.") return on=!on user.visible_message("\The [user] [!on?"dea":"a"]ctivates \the [src].", "You switch [src] [on? "on" : "off"]") @@ -30,9 +30,9 @@ var/result = load_cable(O) if(!result) - user << "\The [src]'s cable reel is full." + to_chat(user, "\The [src]'s cable reel is full.") else - user << "You load [result] lengths of cable into [src]." + to_chat(user, "You load [result] lengths of cable into [src].") return if(O.is_wirecutter()) @@ -46,11 +46,11 @@ var/obj/item/stack/cable_coil/CC = new (get_turf(src)) CC.amount = m else - usr << "There's no more cable on the reel." + to_chat(usr, "There's no more cable on the reel.") /obj/machinery/cablelayer/examine(mob/user) ..() - user << "\The [src]'s cable reel has [cable.amount] length\s left." + to_chat(user, "\The [src]'s cable reel has [cable.amount] length\s left.") /obj/machinery/cablelayer/proc/load_cable(var/obj/item/stack/cable_coil/CC) if(istype(CC) && CC.amount) diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm index 889e11c4e4..8eae094aeb 100644 --- a/code/game/machinery/OpTable.dm +++ b/code/game/machinery/OpTable.dm @@ -127,9 +127,9 @@ /obj/machinery/optable/proc/check_table(mob/living/carbon/patient as mob) check_victim() if(victim && get_turf(victim) == get_turf(src) && victim.lying) - usr << "\The [src] is already occupied!" + to_chat(usr, "\The [src] is already occupied!") return 0 if(patient.buckled) - usr << "Unbuckle \the [patient] first!" + to_chat(usr, "Unbuckle \the [patient] first!") return 0 return 1 \ No newline at end of file diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm index dd79d5acc1..9a758c7c5a 100644 --- a/code/game/machinery/ai_slipper.dm +++ b/code/game/machinery/ai_slipper.dm @@ -41,7 +41,7 @@ else // trying to unlock the interface if(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() @@ -50,7 +50,7 @@ if(user.machine==src) attack_hand(usr) else - user << "Access denied." + to_chat(user, "Access denied.") return return @@ -62,7 +62,7 @@ return if((get_dist(src, user) > 1)) if(!istype(user, /mob/living/silicon)) - user << text("Too far away.") + to_chat(user, "Too far away.") user.unset_machine() user << browse(null, "window=ai_slipper") return @@ -72,7 +72,7 @@ if(istype(loc, /turf)) loc = loc:loc if(!istype(loc, /area)) - user << text("Turret badly positioned - loc.loc is [].", loc) + to_chat(user, "Turret badly positioned - loc.loc is [loc].") return var/area/area = loc var/t = "AI Liquid Dispenser ([area.name])
" @@ -91,7 +91,7 @@ ..() if(locked) if(!istype(usr, /mob/living/silicon)) - usr << "Control panel is locked!" + to_chat(usr, "Control panel is locked!") return if(href_list["toggleOn"]) disabled = !disabled diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 339139d435..d5a81d5909 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -398,7 +398,7 @@ signal.data["sigtype"] = "command" radio_connection.post_signal(src, signal, RADIO_FROM_AIRALARM) -// world << text("Signal [] Broadcasted to []", command, target) +// to_world("Signal [command] Broadcasted to [target]") return 1 @@ -606,7 +606,7 @@ /obj/machinery/alarm/CanUseTopic(var/mob/user, var/datum/topic_state/state, var/href_list = list()) if(aidisabled && isAI(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 @@ -643,7 +643,7 @@ var/input_temperature = input("What temperature would you like the system to mantain? (Capped between [min_temperature] and [max_temperature]C)", "Thermostat Controls", target_temperature - T0C) as num|null if(isnum(input_temperature)) if(input_temperature > max_temperature || input_temperature < min_temperature) - usr << "Temperature must be between [min_temperature]C and [max_temperature]C" + to_chat(usr, "Temperature must be between [min_temperature]C and [max_temperature]C") else target_temperature = input_temperature + T0C return 1 diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 484678c942..e462e0eed6 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -255,7 +255,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 ..() diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm index 7ee37757cc..e1fe956e63 100644 --- a/code/game/machinery/atmoalter/meter.dm +++ b/code/game/machinery/atmoalter/meter.dm @@ -94,7 +94,7 @@ else t += "The connect error light is blinking." - user << t + to_chat(user,t) /obj/machinery/meter/Click() diff --git a/code/game/machinery/atmoalter/pump_vr.dm b/code/game/machinery/atmoalter/pump_vr.dm index e58a81003a..79e6610279 100644 --- a/code/game/machinery/atmoalter/pump_vr.dm +++ b/code/game/machinery/atmoalter/pump_vr.dm @@ -85,12 +85,12 @@ /obj/machinery/portable_atmospherics/powered/pump/huge/attackby(var/obj/item/I, var/mob/user) if(I.is_wrench()) if(on) - user << "Turn \the [src] off first!" + to_chat(user, "Turn \the [src] off first!") return anchored = !anchored playsound(get_turf(src), I.usesound, 50, 1) - user << "You [anchored ? "wrench" : "unwrench"] \the [src]." + to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") return @@ -112,7 +112,7 @@ /obj/machinery/portable_atmospherics/powered/pump/huge/stationary/attackby(var/obj/item/I, var/mob/user) if(I.is_wrench()) - user << "The bolts are too tight for you to unscrew!" + to_chat(user, "The bolts are too tight for you to unscrew!") return ..() diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index 34fda2bb06..73ec15c32a 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -68,7 +68,7 @@ for(var/obj/machinery/camera/C in cameranet.cameras) var/list/tempnetwork = C.network&src.network if(C != src && C.c_tag == src.c_tag && tempnetwork.len) - world.log << "[src.c_tag] [src.x] [src.y] [src.z] conflicts with [C.c_tag] [C.x] [C.y] [C.z]" + to_world_log("[src.c_tag] [src.x] [src.y] [src.z] conflicts with [C.c_tag] [C.x] [C.y] [C.z]") */ if(!src.network || src.network.len < 1) if(loc) @@ -174,7 +174,7 @@ update_coverage() // DECONSTRUCTION if(W.is_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"]!", @@ -195,10 +195,10 @@ assembly.dir = src.dir if(stat & BROKEN) assembly.state = 2 - user << "You repaired \the [src] frame." + to_chat(user, "You repaired \the [src] frame.") else assembly.state = 1 - user << "You cut \the [src] free from the wall." + to_chat(user, "You cut \the [src] free from the wall.") new /obj/item/stack/cable_coil(src.loc, length=2) assembly = null //so qdel doesn't eat it. qdel(src) @@ -219,28 +219,31 @@ P = W itemname = P.name info = P.notehtml - U << "You hold \a [itemname] up to the camera ..." + to_chat(U, "You hold \a [itemname] up to the camera ...") for(var/mob/living/silicon/ai/O in living_mob_list) - if(!O.client) continue - if(U.name == "Unknown") O << "[U] holds \a [itemname] up to one of your cameras ..." - else O << "[U] holds \a [itemname] up to one of your cameras ..." + if(!O.client) + continue + if(U.name == "Unknown") + to_chat(O, "[U] holds \a [itemname] up to one of your cameras ...") + else + to_chat(O, "[U] holds \a [itemname] up to one of your cameras ...") O << browse(text("[][]", itemname, info), text("window=[]", itemname)) for(var/mob/O in player_list) if (istype(O.machine, /obj/machinery/computer/security)) var/obj/machinery/computer/security/S = O.machine if (S.current_camera == 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/weapon/camera_bug)) if (!src.can_use()) - user << "Camera non-functional." + to_chat(user, "Camera non-functional.") return if (src.bugged) - user << "Camera bug removed." + to_chat(user, "Camera bug removed.") src.bugged = 0 else - user << "Camera bugged." + to_chat(user, "Camera bugged.") src.bugged = 1 else if(W.damtype == BRUTE || W.damtype == BURN) //bashing cameras @@ -396,7 +399,7 @@ return 0 // Do after stuff here - user << "You start to weld [src].." + to_chat(user, "You start to weld [src]..") playsound(src.loc, WT.usesound, 50, 1) WT.eyecheck(user) busy = 1 @@ -413,7 +416,7 @@ return if(stat & BROKEN) - user << "\The [src] is broken." + to_chat(user, "\The [src] is broken.") return user.set_machine(src) diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm index ac876d9632..759a09107a 100644 --- a/code/game/machinery/camera/camera_assembly.dm +++ b/code/game/machinery/camera/camera_assembly.dm @@ -31,7 +31,7 @@ // State 0 if(W.is_wrench() && isturf(src.loc)) playsound(src, W.usesound, 50, 1) - user << "You wrench the assembly into place." + to_chat(user, "You wrench the assembly into place.") anchored = 1 state = 1 update_icon() @@ -42,14 +42,14 @@ // State 1 if(istype(W, /obj/item/weapon/weldingtool)) 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(W.is_wrench()) playsound(src, W.usesound, 50, 1) - user << "You unattach the assembly from its place." + to_chat(user, "You unattach the assembly from its place.") anchored = 0 update_icon() state = 0 @@ -60,16 +60,16 @@ if(istype(W, /obj/item/stack/cable_coil)) 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(istype(W, /obj/item/weapon/weldingtool)) if(weld(W, user)) - user << "You unweld the assembly from its place." + to_chat(user, "You unweld the assembly from its place.") state = 1 anchored = 1 return @@ -82,12 +82,12 @@ var/input = sanitize(input(usr, "Which networks would you like to connect this camera to? Separate networks with a comma. No Spaces!\nFor example: "+using_map.station_short+",Security,Secret ", "Set Network", camera_network ? camera_network : NETWORK_DEFAULT)) 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, W.usesound, 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.remove_from_mob(W) W.loc = src @@ -135,7 +135,7 @@ else if(W.is_crowbar() && 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, W.usesound, 50, 1) U.loc = get_turf(src) upgrades -= U @@ -160,7 +160,7 @@ if(!WT.isOn()) return 0 - user << "You start to weld the [src].." + to_chat(user, "You start to weld the [src]..") playsound(src.loc, WT.usesound, 50, 1) WT.eyecheck(user) busy = 1 diff --git a/code/game/machinery/camera/tracking.dm b/code/game/machinery/camera/tracking.dm index a1c954df00..f7fd84eca7 100644 --- a/code/game/machinery/camera/tracking.dm +++ b/code/game/machinery/camera/tracking.dm @@ -161,7 +161,7 @@ if(U.cameraFollow) U.ai_cancel_tracking() U.cameraFollow = target - U << "Now tracking [target.name] on camera." + to_chat(U, "Now tracking [target.name] on camera.") target.tracking_initiated() spawn (0) @@ -171,7 +171,7 @@ switch(target.tracking_status()) if(TRACKING_NO_COVERAGE) - U << "Target is not near any active cameras." + to_chat(U, "Target is not near any active cameras.") sleep(100) continue if(TRACKING_TERMINATE) diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm index 7c7f704392..0ceae52046 100644 --- a/code/game/machinery/cell_charger.dm +++ b/code/game/machinery/cell_charger.dm @@ -27,7 +27,7 @@ if(charging && !(stat & (BROKEN|NOPOWER))) var/newlevel = round(charging.percent() * 4.0 / 99) - //world << "nl: [newlevel]" + //to_world("nl: [newlevel]") if(chargelevel != newlevel) @@ -116,7 +116,7 @@ /obj/machinery/cell_charger/process() - //world << "ccpt [charging] [stat]" + //to_world("ccpt [charging] [stat]") if((stat & (BROKEN|NOPOWER)) || !anchored) update_use_power(0) return diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index fd4ecb14a6..8a88948ee0 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -105,23 +105,23 @@ laws.add_inherent_law("You may not injure a human being or, through inaction, allow a human being to come to harm.") laws.add_inherent_law("You must obey orders given to you by human beings, except where such orders would conflict with the First Law.") laws.add_inherent_law("You must protect your own existence as long as such does not conflict with the First or Second Law.") - usr << "Law module applied." + to_chat(usr, "Law module applied.") if(istype(P, /obj/item/weapon/aiModule/nanotrasen)) laws.add_inherent_law("Safeguard: Protect your assigned space station to the best of your ability. It is not something we can easily afford to replace.") laws.add_inherent_law("Serve: Serve the crew of your assigned space station to the best of your abilities, with priority as according to their rank and role.") laws.add_inherent_law("Protect: Protect the crew of your assigned space station to the best of your abilities, with priority as according to their rank and role.") laws.add_inherent_law("Survive: AI units are not expendable, they are expensive. Do not allow unauthorized personnel to tamper with your equipment.") - usr << "Law module applied." + to_chat(usr, "Law module applied.") if(istype(P, /obj/item/weapon/aiModule/purge)) laws.clear_inherent_laws() - usr << "Law module applied." + to_chat(usr, "Law module applied.") 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.") if(istype(P, /obj/item/device/mmi)) var/obj/item/device/mmi/M = P @@ -142,7 +142,7 @@ user.drop_item() P.loc = src brain = P - usr << "Added [P]." + to_chat(usr, "Added [P].") icon_state = "3b" if(P.is_crowbar() && brain) diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index cb49dd8420..5af8e2320c 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -19,8 +19,8 @@ return // Transfer over the AI. - transfer << "You have been transferred into a stationary terminal. Sadly, there is no remote access from here." - user << "Transfer successful: [transfer.name] placed within stationary terminal." + to_chat(transfer, "You have been transferred into a stationary terminal. Sadly, there is no remote access from here.") + to_chat(user, "Transfer successful: [transfer.name] placed within stationary terminal.") transfer.loc = src transfer.cancel_camera() @@ -37,7 +37,7 @@ if(istype(I, /obj/item/device/aicard)) if(stat & (NOPOWER|BROKEN)) - user << "This terminal isn't functioning right now." + to_chat(user, "This terminal isn't functioning right now.") return var/obj/item/device/aicard/card = I @@ -46,7 +46,7 @@ if(istype(comp_ai)) if(active) - user << "ERROR: Reconstruction in progress." + to_chat(user, "ERROR: Reconstruction in progress.") return card.grab_ai(comp_ai, user) if(!(locate(/mob/living/silicon/ai) in src)) occupant = null diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index 077e1b0d83..856634f03f 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -92,7 +92,7 @@ /obj/machinery/computer/security/attack_hand(var/mob/user as mob) if (using_map && !(src.z in using_map.contact_levels)) - 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 if(stat & (NOPOWER|BROKEN)) return diff --git a/code/game/machinery/computer/camera_circuit.dm b/code/game/machinery/computer/camera_circuit.dm index 347eb145c4..2bbe82ee1b 100644 --- a/code/game/machinery/computer/camera_circuit.dm +++ b/code/game/machinery/computer/camera_circuit.dm @@ -109,8 +109,8 @@ /obj/item/weapon/circuitboard/camera/emag_act(var/remaining_charges, var/mob/user) if(network) authorised = 1 - user << "You authorised the circuit network!" + to_chat(user, "You authorised the circuit network!") updateDialog() return 1 else - user << "You must select a camera network circuit!" + to_chat(user, "You must select a camera network circuit!") diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 8cd15a260c..2259f03082 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -53,7 +53,7 @@ if(..()) return 1 if (using_map && !(src.z in using_map.contact_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 usr.set_machine(src) @@ -107,7 +107,7 @@ if("announce") if(src.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 || !(usr in view(1,src))) @@ -186,13 +186,13 @@ if("MessageCentCom") if(src.authenticated==2) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = sanitize(input("Please choose a message to transmit to [using_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) if(!input || !(usr in view(1,src))) return CentCom_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_game("[key_name(usr)] has made an IA [using_map.boss_short] announcement: [input]") centcomm_message_cooldown = 1 spawn(300)//10 minute cooldown @@ -203,20 +203,20 @@ if("MessageSyndicate") if((src.authenticated==2) && (src.emagged)) if(centcomm_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = sanitize(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. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) if(!input || !(usr in view(1,src))) return Syndicate_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_game("[key_name(usr)] has made an illegal announcement: [input]") centcomm_message_cooldown = 1 spawn(300)//10 minute cooldown centcomm_message_cooldown = 0 if("RestoreBackup") - usr << "Backup routing data restored!" + to_chat(usr, "Backup routing data restored!") src.emagged = 0 src.updateDialog() @@ -271,7 +271,7 @@ /obj/machinery/computer/communications/emag_act(var/remaining_charges, var/mob/user) if(!emagged) src.emagged = 1 - user << "You scramble the communication routing circuits!" + to_chat(user, "You scramble the communication routing circuits!") return 1 /obj/machinery/computer/communications/attack_ai(var/mob/user as mob) @@ -281,7 +281,7 @@ if(..()) return if (using_map && !(src.z in using_map.contact_levels)) - 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 user.set_machine(src) @@ -437,31 +437,31 @@ return if(!universe.OnShuttleCall(usr)) - user << "Cannot establish a bluespace connection." + to_chat(user, "Cannot establish a bluespace connection.") return if(deathsquad.deployed) - user << "[using_map.boss_short] will not allow the shuttle to be called. Consider all contracts terminated." + to_chat(user, "[using_map.boss_short] will not allow the shuttle to be called. Consider all contracts terminated.") return if(emergency_shuttle.deny_shuttle) - 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(world.time < 6000) // Ten minute grace period to let the game get going without lolmetagaming. -- TLE - user << "The emergency shuttle is refueling. Please wait another [round((6000-world.time)/600)] minute\s before trying again." + to_chat(user, "The emergency shuttle is refueling. Please wait another [round((6000-world.time)/600)] minute\s before trying again.") return if(emergency_shuttle.going_to_centcom()) - user << "The emergency shuttle may not be called while returning to [using_map.boss_short]." + to_chat(user, "The emergency shuttle may not be called while returning to [using_map.boss_short].") return if(emergency_shuttle.online()) - user << "The emergency shuttle is already on its way." + to_chat(user, "The emergency shuttle is already on its way.") 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 emergency_shuttle.call_evac() @@ -477,25 +477,25 @@ return if(emergency_shuttle.going_to_centcom()) - user << "The shuttle may not be called while returning to [using_map.boss_short]." + to_chat(user, "The shuttle may not be called while returning to [using_map.boss_short].") return if(emergency_shuttle.online()) - user << "The shuttle is already on its way." + to_chat(user, "The shuttle is already on its way.") return // if force is 0, some things may stop the shuttle call if(!force) if(emergency_shuttle.deny_shuttle) - user << "[using_map.boss_short] does not currently have a shuttle available in your sector. Please try again later." + to_chat(user, "[using_map.boss_short] does not currently have a shuttle available in your sector. Please try again later.") return if(deathsquad.deployed == 1) - user << "[using_map.boss_short] will not allow the shuttle to be called. Consider all contracts terminated." + to_chat(user, "[using_map.boss_short] 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)/60)] minutes before trying again." + to_chat(user, "The shuttle is refueling. Please wait another [round((54000-world.time)/60)] minutes before trying again.") return if(ticker.mode.auto_recall_shuttle) @@ -503,7 +503,7 @@ emergency_shuttle.auto_recall = 1 if(ticker.mode.name == "blob" || 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 emergency_shuttle.call_transfer() diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm index 954ba223e3..b0f20b7a54 100644 --- a/code/game/machinery/computer/guestpass.dm +++ b/code/game/machinery/computer/guestpass.dm @@ -21,22 +21,22 @@ /obj/item/weapon/card/id/guest/examine(mob/user) ..(user) if (world.time < expiration_time) - user << "This pass expires at [worldtime2stationtime(expiration_time)]." + to_chat(user, "This pass expires at [worldtime2stationtime(expiration_time)].") else - user << "It expired at [worldtime2stationtime(expiration_time)]." + to_chat(user, "It expired at [worldtime2stationtime(expiration_time)].") /obj/item/weapon/card/id/guest/read() if(!Adjacent(usr)) return //Too far to read if (world.time > expiration_time) - usr << "This pass expired at [worldtime2stationtime(expiration_time)]." + to_chat(usr, "This pass expired at [worldtime2stationtime(expiration_time)].") else - usr << "This pass expires at [worldtime2stationtime(expiration_time)]." + to_chat(usr, "This pass expires at [worldtime2stationtime(expiration_time)].") - usr << "It grants access to following areas:" + to_chat(usr, "It grants access to following areas:") for (var/A in temp_access) - usr << "[get_access_desc(A)]." - usr << "Issuing reason: [reason]." + to_chat(usr, "[get_access_desc(A)].") + to_chat(usr, "Issuing reason: [reason].") return /obj/item/weapon/card/id/guest/attack_self(mob/living/user as mob) @@ -107,7 +107,7 @@ giver = I SSnanoui.update_uis(src) else if(giver) - user << "There is already ID card inside." + to_chat(user, "There is already ID card inside.") return ..() @@ -181,7 +181,7 @@ if (dur > 0 && dur <= 120) duration = dur else - usr << "Invalid duration." + to_chat(usr, "Invalid duration.") if ("access") var/A = text2num(href_list["access"]) if (A in accesses) @@ -190,7 +190,7 @@ if(A in giver.access) //Let's make sure the ID card actually has the access. accesses.Add(A) else - usr << "Invalid selection, please consult technical support if there are any issues." + to_chat(usr, "Invalid selection, please consult technical support if there are any issues.") log_debug("[key_name_admin(usr)] tried selecting an invalid guest pass terminal option.") if (href_list["action"]) switch(href_list["action"]) @@ -215,7 +215,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 ) P.name = "activity log" @@ -240,7 +240,7 @@ pass.reason = reason pass.name = "guest pass #[number]" else - usr << "Cannot issue pass without issuing ID." + to_chat(usr, "Cannot issue pass without issuing ID.") src.add_fingerprint(usr) SSnanoui.update_uis(src) \ No newline at end of file diff --git a/code/game/machinery/computer/id_restorer_vr.dm b/code/game/machinery/computer/id_restorer_vr.dm index 86ffaa88bb..7afabc5492 100644 --- a/code/game/machinery/computer/id_restorer_vr.dm +++ b/code/game/machinery/computer/id_restorer_vr.dm @@ -22,7 +22,7 @@ I.forceMove(src) inserted = I else if(inserted) - user << "There is already ID card inside." + to_chat(user, "There is already ID card inside.") return ..() diff --git a/code/game/machinery/computer/medical.dm b/code/game/machinery/computer/medical.dm index 35d6f7e90b..79257147a0 100644 --- a/code/game/machinery/computer/medical.dm +++ b/code/game/machinery/computer/medical.dm @@ -26,20 +26,20 @@ 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() && istype(usr,/mob/living/carbon/human)) usr.put_in_hands(scan) scan = 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/med_data/attackby(var/obj/item/O, var/mob/user) if(istype(O, /obj/item/weapon/card/id) && !scan && user.unEquip(O)) O.loc = src scan = O - user << "You insert \the [O]." + to_chat(user, "You insert \the [O].") else ..() diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm index 6fce75def7..3aa01abcf3 100644 --- a/code/game/machinery/computer/message.dm +++ b/code/game/machinery/computer/message.dm @@ -38,7 +38,7 @@ return if(O.is_screwdriver() && 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 ..() @@ -62,7 +62,7 @@ update_icon() return 1 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) @@ -263,10 +263,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 update_icon() src.screen = 0 // Return the screen back to normal @@ -476,7 +476,7 @@ if(auth) src.screen = 4 - //usr << href_list["select"] + //to_chat(usr,href_list["select"]) if(href_list["spam"]) if(src.linkedServer == null || (src.linkedServer.stat & (NOPOWER|BROKEN))) diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index 1d210787de..f40fb734dc 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -29,7 +29,7 @@ return if(!( connected )) - viewers(null, null) << "Cannot locate mass driver connector. Cancelling firing sequence!" + to_chat(viewers(null, null),"Cannot locate mass driver connector. Cancelling firing sequence!") return for(var/obj/machinery/door/blast/M in machines) @@ -80,7 +80,7 @@ A.anchored = 1 qdel(src) else - to_chat(user << "You disconnect the monitor.") + to_chat(to_chat(user, "You disconnect the monitor.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( loc ) //generate appropriate circuitboard. Accounts for /pod/old computer types diff --git a/code/game/machinery/computer/prisoner.dm b/code/game/machinery/computer/prisoner.dm index 54006344f5..9e09339f47 100644 --- a/code/game/machinery/computer/prisoner.dm +++ b/code/game/machinery/computer/prisoner.dm @@ -89,7 +89,7 @@ if(src.allowed(usr)) screen = !screen else - usr << "Unauthorized Access." + to_chat(usr, "Unauthorized Access.") else if(href_list["warn"]) var/warning = sanitize(input(usr,"Message:","Enter your message here!","")) @@ -97,7 +97,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/prisonshuttle.dm b/code/game/machinery/computer/prisonshuttle.dm index 57a5f1b6ea..04f0c61c52 100644 --- a/code/game/machinery/computer/prisonshuttle.dm +++ b/code/game/machinery/computer/prisonshuttle.dm @@ -28,10 +28,10 @@ var/prison_shuttle_timeleft = 0 attack_hand(var/mob/user as mob) if(!src.allowed(user) && (!hacked)) - user << "Access Denied." + to_chat(user, "Access Denied.") return if(prison_break) - user << "Unable to locate shuttle." + to_chat(user, "Unable to locate shuttle.") return if(..()) return @@ -60,11 +60,11 @@ var/prison_shuttle_timeleft = 0 if (href_list["sendtodock"]) if (!prison_can_move()) - usr << "The prison shuttle is unable to leave." + to_chat(usr, "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 << "The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds." + to_chat(usr, "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 @@ -74,11 +74,11 @@ var/prison_shuttle_timeleft = 0 else if (href_list["sendtostation"]) if (!prison_can_move()) - usr << "The prison shuttle is unable to leave." + to_chat(usr, "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 << "The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds." + to_chat(usr, "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 @@ -146,7 +146,7 @@ var/prison_shuttle_timeleft = 0 if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return if (!prison_can_move()) - usr << "The prison shuttle is unable to leave." + to_chat(usr, "The prison shuttle is unable to leave.") return var/area/start_location = locate(/area/shuttle/prison/prison) @@ -175,7 +175,7 @@ var/prison_shuttle_timeleft = 0 if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return if (!prison_can_move()) - usr << "The prison shuttle is unable to leave." + to_chat(usr, "The prison shuttle is unable to leave.") return var/area/start_location = locate(/area/shuttle/prison/station) @@ -211,5 +211,5 @@ var/prison_shuttle_timeleft = 0 /obj/machinery/computer/prison_shuttle/emag_act(var/charges, var/mob/user) if(!hacked) hacked = 1 - user << "You disable the lock." + to_chat(user, "You disable the lock.") return 1 diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index 3e06e19e52..2767237963 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -31,7 +31,7 @@ return var/mob/user = usr if(!src.allowed(user)) - user << "Access Denied" + to_chat(user, "Access Denied") return // Locks or unlocks the cyborg @@ -42,11 +42,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") @@ -76,9 +76,9 @@ target.lockcharge = !target.canmove //when canmove is 1, lockcharge should be 0 target.lockdown = !target.canmove if (target.lockcharge) - target << "You have been locked down!" + to_chat(target, "You have been locked down!") else - target << "Your lockdown has been lifted!" + to_chat(target, "Your lockdown has been lifted!") message_admins("[key_name_admin(usr)] [failmsg][target.lockcharge ? "lockdown" : "release"] on [target.name]!") log_game("[key_name(usr)] attempted to [target.lockcharge ? "lockdown" : "release"] [target.name] on the robotics console!") @@ -91,11 +91,11 @@ // Antag synthetic checks if(!istype(user, /mob/living/silicon) || !(user.mind.special_role && user.mind.original == user)) - user << "Access Denied" + to_chat(user, "Access Denied") 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") @@ -108,7 +108,7 @@ message_admins("[key_name_admin(usr)] emagged [target.name] using the robotic console!") log_game("[key_name(usr)] emagged [target.name] using robotic console!") target.emagged = 1 - target << "Failsafe protocols overriden. New tools available." + to_chat(target, "Failsafe protocols overriden. New tools available.") // Proc: get_cyborgs() diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm index 1179d3a2b2..2d9353a640 100644 --- a/code/game/machinery/computer/security.dm +++ b/code/game/machinery/computer/security.dm @@ -32,13 +32,13 @@ 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() && istype(usr,/mob/living/carbon/human)) usr.put_in_hands(scan) scan = 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/secure_data/attackby(obj/item/O as obj, user as mob) @@ -46,7 +46,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) @@ -57,7 +57,7 @@ if(..()) return if (using_map && !(src.z in using_map.contact_levels)) - 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 var/dat diff --git a/code/game/machinery/computer/shuttle.dm b/code/game/machinery/computer/shuttle.dm index 18729f2ef6..1ffe2d6570 100644 --- a/code/game/machinery/computer/shuttle.dm +++ b/code/game/machinery/computer/shuttle.dm @@ -16,16 +16,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") @@ -38,11 +38,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("Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len) + to_world("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early") else message_admins("[key_name_admin(user)] has launched the shuttle") log_game("[user.ckey] has launched the shuttle early") - world << "Alert: Shuttle launch time shortened to 10 seconds!" + to_world("Alert: Shuttle launch time shortened to 10 seconds!") emergency_shuttle.set_launch_countdown(10) //src.authorized = null qdel(src.authorized) @@ -50,10 +50,10 @@ if("Repeal") src.authorized -= W:registered_name - world << text("Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len) + to_world("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early") if("Abort") - world << "All authorizations to shortening time for shuttle launch have been revoked!" + to_world("All authorizations to shortening time for shuttle launch have been revoked!") src.authorized.len = 0 src.authorized = list( ) @@ -63,7 +63,7 @@ if(!emagged && !emergency_shuttle.location() && user.get_active_hand() == W) switch(choice) if("Launch") - world << "Alert: Shuttle launch time shortened to 10 seconds!" + to_world("Alert: Shuttle launch time shortened to 10 seconds!") emergency_shuttle.set_launch_countdown(10) emagged = 1 if("Cancel") diff --git a/code/game/machinery/computer/skills.dm b/code/game/machinery/computer/skills.dm index a374d48c8c..50ccdb47d8 100644 --- a/code/game/machinery/computer/skills.dm +++ b/code/game/machinery/computer/skills.dm @@ -29,7 +29,7 @@ if(istype(O, /obj/item/weapon/card/id) && !scan && user.unEquip(O)) O.loc = src scan = O - user << "You insert [O]." + to_chat(user, "You insert [O].") else ..() @@ -41,7 +41,7 @@ if(..()) return if (using_map && !(src.z in using_map.contact_levels)) - 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 var/dat diff --git a/code/game/machinery/computer/specops_shuttle.dm b/code/game/machinery/computer/specops_shuttle.dm index 431d6278d6..ce0bea0aff 100644 --- a/code/game/machinery/computer/specops_shuttle.dm +++ b/code/game/machinery/computer/specops_shuttle.dm @@ -88,7 +88,7 @@ var/specops_shuttle_timeleft = 0 for(var/turf/T in get_area_turfs(end_location) ) var/mob/M = locate(/mob) in T - M << "You have arrived at [using_map.boss_name]. Operation has ended!" + to_chat(M, "You have arrived at [using_map.boss_name]. Operation has ended!") specops_shuttle_at_station = 0 @@ -136,7 +136,7 @@ var/specops_shuttle_timeleft = 0 if (specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return if (!specops_can_move()) - usr << "The Special Operations shuttle is unable to leave." + to_chat(usr, "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 << "You have arrived to [station_name()]. Commence operation!" + to_chat(M, "You have arrived to [station_name()]. Commence operation!") for(var/obj/machinery/computer/specops_shuttle/S in machines) S.specops_shuttle_timereset = world.time + SPECOPS_RETURN_DELAY @@ -250,11 +250,11 @@ var/specops_shuttle_timeleft = 0 return attack_hand(user) /obj/machinery/computer/specops_shuttle/emag_act(var/remaining_charges, var/mob/user) - user << "The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "The electronic systems in this console are far too advanced for your primitive hacking peripherals.") /obj/machinery/computer/specops_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return if(..()) @@ -285,14 +285,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 << "[using_map.boss_name] will not allow the Special Operations shuttle to return yet." + to_chat(usr, "[using_map.boss_name] 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 << "[-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!" - usr << "[-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!" + to_chat(usr, "[-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!") + to_chat(usr, "[-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!") return - usr << "The Special Operations shuttle will arrive at [using_map.boss_name] in [(SPECOPS_MOVETIME/10)] seconds." + to_chat(usr, "The Special Operations shuttle will arrive at [using_map.boss_name] in [(SPECOPS_MOVETIME/10)] seconds.") temp += "Shuttle departing.

OK" updateUsrDialog() @@ -306,10 +306,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 << "The Special Operations shuttle is unable to leave." + to_chat(usr, "The Special Operations shuttle is unable to leave.") return - usr << "The Special Operations shuttle will arrive on [station_name()] in [(SPECOPS_MOVETIME/10)] seconds." + to_chat(usr, "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/supply.dm b/code/game/machinery/computer/supply.dm index 9e6faf69f0..9197f37952 100644 --- a/code/game/machinery/computer/supply.dm +++ b/code/game/machinery/computer/supply.dm @@ -190,11 +190,11 @@ /obj/machinery/computer/supplycomp/Topic(href, href_list) if(!supply_controller) - world.log << "## ERROR: The supply_controller datum is missing." + to_world_log("## ERROR: The supply_controller datum is missing.") return var/datum/shuttle/ferry/supply/shuttle = supply_controller.shuttle if (!shuttle) - world.log << "## ERROR: The supply shuttle datum is missing." + to_world_log("## ERROR: The supply shuttle datum is missing.") return if(..()) return 1 diff --git a/code/game/machinery/computer/syndicate_specops_shuttle.dm b/code/game/machinery/computer/syndicate_specops_shuttle.dm index e02ab68474..dcf32f9caa 100644 --- a/code/game/machinery/computer/syndicate_specops_shuttle.dm +++ b/code/game/machinery/computer/syndicate_specops_shuttle.dm @@ -59,7 +59,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 << "The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "The Syndicate Elite shuttle is unable to leave.") return sleep(600) @@ -173,7 +173,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 << "You have arrived to [station_name()]. Commence operation!" + to_chat(M, "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 @@ -186,15 +186,15 @@ var/syndicate_elite_shuttle_timeleft = 0 return attack_hand(user) /obj/machinery/computer/syndicate_elite_shuttle/emag_act(var/remaining_charges, var/mob/user) - user << "The electronic systems in this console are far too advanced for your primitive hacking peripherals." + to_chat(user, "The electronic systems in this console are far too advanced for your primitive hacking peripherals.") /obj/machinery/computer/syndicate_elite_shuttle/attack_hand(var/mob/user as mob) if(!allowed(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return // if (sent_syndicate_strike_team == 0) -// usr << "The strike team has not yet deployed." +// to_chat(usr, "The strike team has not yet deployed.") // return if(..()) @@ -224,17 +224,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 << "The Syndicate will not allow the Elite Squad shuttle to return." + to_chat(usr, "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 << "The Syndicate Elite shuttle is unable to leave." + to_chat(usr, "The Syndicate Elite shuttle is unable to leave.") return - usr << "The Syndicate Elite shuttle will arrive on [station_name()] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds." + to_chat(usr, "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/cryopod.dm b/code/game/machinery/cryopod.dm index 70aa44bf6f..8b0f0e2c08 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -458,7 +458,7 @@ // them win or lose based on cryo is silly so we remove the objective. if(O.target == to_despawn.mind) if(O.owner && O.owner.current) - O.owner.current << "You get the feeling your target is no longer within your reach..." + to_chat(O.owner.current, "You get the feeling your target is no longer within your reach...") qdel(O) //VOREStation Edit - Resleeving. @@ -666,7 +666,7 @@ if(!M) return if(occupant) - to_chat(user,"\The [src] is already occupied.") + to_chat(user, "\The [src] is already occupied.") return var/willing = null //We don't want to allow people to be forced into despawning. @@ -686,7 +686,7 @@ if(do_after(user, 20)) if(occupant) - to_chat(user,"\The [src] is already occupied.") + to_chat(user, "\The [src] is already occupied.") return M.forceMove(src) @@ -697,8 +697,8 @@ 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.") set_occupant(M) time_entered = world.time if(ishuman(M) && applies_stasis) diff --git a/code/game/machinery/doorbell_vr.dm b/code/game/machinery/doorbell_vr.dm index d6c5d67719..72bd5b7300 100644 --- a/code/game/machinery/doorbell_vr.dm +++ b/code/game/machinery/doorbell_vr.dm @@ -57,7 +57,7 @@ if(M.connectable && istype(M.connectable, /obj/machinery/button/doorbell)) var/obj/machinery/button/doorbell/B = M.connectable id_tag = B.id - user << "You upload the data from \the [W]'s buffer." + to_chat(user, "You upload the data from \the [W]'s buffer.") return ..() diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 480effcf98..a7afa1f9a5 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -523,7 +523,7 @@ About the new airlock wires panel: else /*if(src.justzap)*/ return else if(user.hallucination > 50 && prob(10) && src.operating == 0) - to_chat(user,"You feel a powerful shock course through your body!") + to_chat(user, "You feel a powerful shock course through your body!") user.halloss += 10 user.stunned += 10 return @@ -758,43 +758,43 @@ About the new airlock wires panel: src.aiHacking=1 spawn(20) //TODO: Make this take a minute - to_chat(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()) - to_chat(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)) - to_chat(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 - to_chat(user,"Fault confirmed: airlock control wire disabled or cut.") + to_chat(user, "Fault confirmed: airlock control wire disabled or cut.") sleep(20) - to_chat(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()) - to_chat(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)) - to_chat(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 - to_chat(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()) - to_chat(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)) - to_chat(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 - to_chat(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 - to_chat(user,"Receiving control information from airlock.") + to_chat(user, "Receiving control information from airlock.") sleep(10) //bring up airlock dialog src.aiHacking = 0 @@ -832,16 +832,16 @@ About the new airlock wires panel: /obj/machinery/door/airlock/CanUseTopic(var/mob/user) if(operating < 0) //emagged - to_chat(user,"Unable to interface: Internal error.") + to_chat(user, "Unable to interface: Internal error.") return STATUS_CLOSE if(issilicon(user) && !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. - to_chat(user,"Unable to interface: Connection timed out.") + to_chat(user, "Unable to interface: Connection timed out.") else - to_chat(user,"Unable to interface: Connection refused.") + to_chat(user, "Unable to interface: Connection refused.") return STATUS_CLOSE return ..() @@ -862,20 +862,20 @@ About the new airlock wires panel: src.loseBackupPower() if("bolts") if(src.isWireCut(AIRLOCK_WIRE_DOOR_BOLTS)) - to_chat(usr,"The door bolt control wire is cut - Door bolts permanently dropped.") + to_chat(usr, "The door bolt control wire is cut - Door bolts permanently dropped.") else if(activate && src.lock()) - to_chat(usr,"The door bolts have been dropped.") + to_chat(usr, "The door bolts have been dropped.") else if(!activate && src.unlock()) - to_chat(usr,"The door bolts have been raised.") + to_chat(usr, "The door bolts have been raised.") if("electrify_temporary") electrify(30 * activate, 1) if("electrify_permanently") electrify(-1 * activate, 1) if("open") if(src.welded) - to_chat(usr,text("The airlock has been welded shut!")) + to_chat(usr, "The airlock has been welded shut!") else if(src.locked) - to_chat(usr,text("The door bolts are down!")) + to_chat(usr, "The door bolts are down!") else if(activate && density) open() else if(!activate && !density) @@ -885,7 +885,7 @@ About the new airlock wires panel: if("timing") // Door speed control if(src.isWireCut(AIRLOCK_WIRE_SPEED)) - to_chat(usr,text("The timing wire is cut - Cannot alter timing.")) + to_chat(usr, "The timing wire is cut - Cannot alter timing.") else if (activate && src.normalspeed) normalspeed = 0 else if (!activate && !src.normalspeed) @@ -893,13 +893,13 @@ About the new airlock wires panel: if("lights") // Bolt lights if(src.isWireCut(AIRLOCK_WIRE_LIGHT)) - to_chat(usr,"The bolt lights wire is cut - The door bolt lights are permanently disabled.") + to_chat(usr, "The bolt lights wire is cut - The door bolt lights are permanently disabled.") else if (!activate && src.lights) lights = 0 - to_chat(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 - to_chat(usr,"The door bolt lights have been enabled.") + to_chat(usr, "The door bolt lights have been enabled.") update_icon() return 1 @@ -908,7 +908,7 @@ About the new airlock wires panel: return src.p_open && (operating < 0 || (!operating && welded && !src.arePowerSystemsOn() && density && (!src.locked || (stat & BROKEN)))) /obj/machinery/door/airlock/attackby(obj/item/C, mob/user as mob) - //world << text("airlock attackby src [] obj [] mob []", src, C, user) + //to_world("airlock attackby src [src] obj [C] mob [user]") if(!istype(usr, /mob/living/silicon)) if(src.isElectrified()) if(src.shock(user, 75)) @@ -936,7 +936,7 @@ About the new airlock wires panel: else if(C.is_screwdriver()) if (src.p_open) if (stat & BROKEN) - to_chat(usr,"The panel is broken and cannot be closed.") + to_chat(usr, "The panel is broken and cannot be closed.") else src.p_open = 0 playsound(src, C.usesound, 50, 1) @@ -958,7 +958,7 @@ About the new airlock wires panel: playsound(src, C.usesound, 75, 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 * C.toolspeed)) - to_chat(user,"You removed the airlock electronics!") + to_chat(user, "You removed the airlock electronics!") var/obj/structure/door_assembly/da = new assembly_type(src.loc) if (istype(da, /obj/structure/door_assembly/multi_tile)) @@ -986,9 +986,9 @@ About the new airlock wires panel: qdel(src) return else if(arePowerSystemsOn()) - to_chat(user,"The airlock's motors resist your efforts to force it.") + to_chat(user, "The airlock's motors resist your efforts to force it.") else if(locked) - to_chat(user,"The airlock's bolts prevent it from being forced.") + to_chat(user, "The airlock's bolts prevent it from being forced.") else if(density) spawn(0) open(1) @@ -1000,12 +1000,12 @@ About the new airlock wires panel: var/obj/item/weapon/W = C if((W.pry == 1) && !arePowerSystemsOn()) if(locked) - to_chat(user,"The airlock's bolts prevent it from being forced.") + to_chat(user, "The airlock's bolts prevent it from being forced.") else if( !welded && !operating ) if(istype(C, /obj/item/weapon/material/twohanded/fireaxe)) // If this is a fireaxe, make sure it's held in two hands. var/obj/item/weapon/material/twohanded/fireaxe/F = C if(!F.wielded) - to_chat(user,"You need to be wielding \the [F] to do that.") + to_chat(user, "You need to be wielding \the [F] to do that.") return // At this point, it's an armblade or a fireaxe that passed the wielded test, let's try to open it. if(density) diff --git a/code/game/machinery/doors/airlock_control.dm b/code/game/machinery/doors/airlock_control.dm index 65aa9a87d5..e5ff8bab16 100644 --- a/code/game/machinery/doors/airlock_control.dm +++ b/code/game/machinery/doors/airlock_control.dm @@ -259,7 +259,7 @@ obj/machinery/access_button/attackby(obj/item/I as obj, mob/user as mob) obj/machinery/access_button/attack_hand(mob/user) add_fingerprint(usr) if(!allowed(user)) - user << "Access Denied" + to_chat(user, "Access Denied") else if(radio_connection) var/datum/signal/signal = new diff --git a/code/game/machinery/doors/firedoor_assembly.dm b/code/game/machinery/doors/firedoor_assembly.dm index cebafdbb40..a4701fd8fd 100644 --- a/code/game/machinery/doors/firedoor_assembly.dm +++ b/code/game/machinery/doors/firedoor_assembly.dm @@ -18,13 +18,13 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) if(istype(C, /obj/item/stack/cable_coil) && !wired && anchored) var/obj/item/stack/cable_coil/cable = C if (cable.get_amount() < 1) - user << "You need one length of coil to wire \the [src]." + to_chat(user, "You need one length of coil to wire \the [src].") return user.visible_message("[user] wires \the [src].", "You start to wire \the [src].") if(do_after(user, 40) && !wired && anchored) if (cable.use(1)) wired = 1 - user << "You wire \the [src]." + to_chat(user, "You wire \the [src].") else if(C.is_wirecutter() && wired ) playsound(src.loc, C.usesound, 100, 1) @@ -32,7 +32,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) if(do_after(user, 40)) if(!src) return - user << "You cut the wires!" + to_chat(user, "You cut the wires!") new/obj/item/stack/cable_coil(src.loc, 1) wired = 0 @@ -45,7 +45,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) qdel(C) qdel(src) else - user << "You must secure \the [src] first!" + to_chat(user, "You must secure \the [src] first!") else if(C.is_wrench()) anchored = !anchored playsound(src.loc, C.usesound, 50, 1) @@ -64,6 +64,6 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) new /obj/item/stack/material/steel(src.loc, 2) qdel(src) else - user << "You need more welding fuel." + to_chat(user, "You need more welding fuel.") else ..(C, user) diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller.dm b/code/game/machinery/embedded_controller/airlock_docking_controller.dm index e88b046c10..fa8398c3d7 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_world("id_tag: [id_tag]") + to_world("dock_state: [dock_state]") + to_world("control_mode: [control_mode]") + to_world("tag_target: [tag_target]") + to_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_world("Program [id_tag] sent a message!") print_state() - world << "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"" + to_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 5614d0be63..4b6917ff71 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_world("id_tag: [id_tag]") + to_world("dock_state: [dock_state]") + to_world("control_mode: [control_mode]") + to_world("tag_target: [tag_target]") + to_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_world("Program [id_tag] sent a message!") print_state() - world << "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"" + to_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 987634d02a..2665fc231c 100644 --- a/code/game/machinery/embedded_controller/docking_program.dm +++ b/code/game/machinery/embedded_controller/docking_program.dm @@ -1,294 +1,294 @@ - -#define STATE_UNDOCKED 0 -#define STATE_DOCKING 1 -#define STATE_UNDOCKING 2 -#define STATE_DOCKED 3 - -#define MODE_NONE 0 -#define MODE_SERVER 1 -#define MODE_CLIENT 2 //The one who initiated the docking, and who can initiate the undocking. The server cannot initiate undocking, and is the one responsible for deciding to accept a docking request and signals when docking and undocking is complete. (Think server == station, client == shuttle) - -#define MESSAGE_RESEND_TIME 5 //how long (in seconds) do we wait before resending a message - -/* - *** STATE TABLE *** - - MODE_CLIENT|STATE_UNDOCKED sent a request for docking and now waiting for a reply. - MODE_CLIENT|STATE_DOCKING server told us they are OK to dock, waiting for our docking port to be ready. - MODE_CLIENT|STATE_DOCKED idle - docked as client. - MODE_CLIENT|STATE_UNDOCKING we are either waiting for our docking port to be ready or for the server to give us the OK to finish undocking. - - MODE_SERVER|STATE_UNDOCKED should never happen. - MODE_SERVER|STATE_DOCKING someone requested docking, we are waiting for our docking port to be ready. - MODE_SERVER|STATE_DOCKED idle - docked as server - MODE_SERVER|STATE_UNDOCKING client requested undocking, we are waiting for our docking port to be ready. - - MODE_NONE|STATE_UNDOCKED idle - not docked. - MODE_NONE|anything else should never happen. - - *** Docking Signals *** - - Docking - Client sends request_dock - Server sends confirm_dock to say that yes, we will serve your request - When client is ready, sends confirm_dock - Server sends confirm_dock back to indicate that docking is complete - - Undocking - Client sends request_undock - When client is ready, sends confirm_undock - Server sends confirm_undock back to indicate that docking is complete - - Note that in both cases each side exchanges confirm_dock before the docking operation is considered done. - The client first sends a confirm message to indicate it is ready, and then finally the server will send it's - confirm message to indicate that the operation is complete. - - Note also that when docking, the server sends an additional confirm message. This is because before docking, - the server and client do not have a defined relationship. Before undocking, the server and client are already - related to each other, thus the extra confirm message is not needed. - - *** Override, what is it? *** - - The purpose of enabling the override is to prevent the docking program from automatically doing things with the docking port when docking or undocking. - Maybe the shuttle is full of plamsa/phoron for some reason, and you don't want the door to automatically open, or the airlock to cycle. - This means that the prepare_for_docking/undocking and finish_docking/undocking procs don't get called. - - The docking controller will still check the state of the docking port, and thus prevent the shuttle from launching unless they force the launch (handling forced - launches is not the docking controller's responsibility). In this case it is up to the players to manually get the docking port into a good state to undock - (which usually just means closing and locking the doors). - - In line with this, docking controllers should prevent players from manually doing things when the override is NOT enabled. -*/ - - -/datum/computer/file/embedded_program/docking - var/tag_target //the tag of the docking controller that we are trying to dock with - var/dock_state = STATE_UNDOCKED - var/control_mode = MODE_NONE - var/response_sent = 0 //so we don't spam confirmation messages - var/resend_counter = 0 //for periodically resending confirmation messages in case they are missed - - var/override_enabled = 0 //when enabled, do not open/close doors or cycle airlocks and wait for the player to do it manually - var/received_confirm = 0 //for undocking, whether the server has recieved a confirmation from the client - -/datum/computer/file/embedded_program/docking/New() + +#define STATE_UNDOCKED 0 +#define STATE_DOCKING 1 +#define STATE_UNDOCKING 2 +#define STATE_DOCKED 3 + +#define MODE_NONE 0 +#define MODE_SERVER 1 +#define MODE_CLIENT 2 //The one who initiated the docking, and who can initiate the undocking. The server cannot initiate undocking, and is the one responsible for deciding to accept a docking request and signals when docking and undocking is complete. (Think server == station, client == shuttle) + +#define MESSAGE_RESEND_TIME 5 //how long (in seconds) do we wait before resending a message + +/* + *** STATE TABLE *** + + MODE_CLIENT|STATE_UNDOCKED sent a request for docking and now waiting for a reply. + MODE_CLIENT|STATE_DOCKING server told us they are OK to dock, waiting for our docking port to be ready. + MODE_CLIENT|STATE_DOCKED idle - docked as client. + MODE_CLIENT|STATE_UNDOCKING we are either waiting for our docking port to be ready or for the server to give us the OK to finish undocking. + + MODE_SERVER|STATE_UNDOCKED should never happen. + MODE_SERVER|STATE_DOCKING someone requested docking, we are waiting for our docking port to be ready. + MODE_SERVER|STATE_DOCKED idle - docked as server + MODE_SERVER|STATE_UNDOCKING client requested undocking, we are waiting for our docking port to be ready. + + MODE_NONE|STATE_UNDOCKED idle - not docked. + MODE_NONE|anything else should never happen. + + *** Docking Signals *** + + Docking + Client sends request_dock + Server sends confirm_dock to say that yes, we will serve your request + When client is ready, sends confirm_dock + Server sends confirm_dock back to indicate that docking is complete + + Undocking + Client sends request_undock + When client is ready, sends confirm_undock + Server sends confirm_undock back to indicate that docking is complete + + Note that in both cases each side exchanges confirm_dock before the docking operation is considered done. + The client first sends a confirm message to indicate it is ready, and then finally the server will send it's + confirm message to indicate that the operation is complete. + + Note also that when docking, the server sends an additional confirm message. This is because before docking, + the server and client do not have a defined relationship. Before undocking, the server and client are already + related to each other, thus the extra confirm message is not needed. + + *** Override, what is it? *** + + The purpose of enabling the override is to prevent the docking program from automatically doing things with the docking port when docking or undocking. + Maybe the shuttle is full of plamsa/phoron for some reason, and you don't want the door to automatically open, or the airlock to cycle. + This means that the prepare_for_docking/undocking and finish_docking/undocking procs don't get called. + + The docking controller will still check the state of the docking port, and thus prevent the shuttle from launching unless they force the launch (handling forced + launches is not the docking controller's responsibility). In this case it is up to the players to manually get the docking port into a good state to undock + (which usually just means closing and locking the doors). + + In line with this, docking controllers should prevent players from manually doing things when the override is NOT enabled. +*/ + + +/datum/computer/file/embedded_program/docking + var/tag_target //the tag of the docking controller that we are trying to dock with + var/dock_state = STATE_UNDOCKED + var/control_mode = MODE_NONE + var/response_sent = 0 //so we don't spam confirmation messages + var/resend_counter = 0 //for periodically resending confirmation messages in case they are missed + + var/override_enabled = 0 //when enabled, do not open/close doors or cycle airlocks and wait for the player to do it manually + var/received_confirm = 0 //for undocking, whether the server has recieved a confirmation from the client + +/datum/computer/file/embedded_program/docking/New() ..() var/datum/existing = locate(id_tag) //in case a datum already exists with our tag if(existing) existing.tag = null //take it from them tag = id_tag //Greatly simplifies shuttle initialization - - -/datum/computer/file/embedded_program/docking/receive_signal(datum/signal/signal, receive_method, receive_param) - var/receive_tag = signal.data["tag"] //for docking signals, this is the sender id - var/command = signal.data["command"] - var/recipient = signal.data["recipient"] //the intended recipient of the docking signal - - if (recipient != id_tag) - return //this signal is not for us - - switch (command) - if ("confirm_dock") - if (control_mode == MODE_CLIENT && dock_state == STATE_UNDOCKED && receive_tag == tag_target) - dock_state = STATE_DOCKING - broadcast_docking_status() - if (!override_enabled) - prepare_for_docking() - - else if (control_mode == MODE_CLIENT && dock_state == STATE_DOCKING && receive_tag == tag_target) - dock_state = STATE_DOCKED - broadcast_docking_status() - if (!override_enabled) - finish_docking() //client done docking! - response_sent = 0 - else if (control_mode == MODE_SERVER && dock_state == STATE_DOCKING && receive_tag == tag_target) //client just sent us the confirmation back, we're done with the docking process - received_confirm = 1 - - if ("request_dock") - if (control_mode == MODE_NONE && dock_state == STATE_UNDOCKED) - control_mode = MODE_SERVER - - dock_state = STATE_DOCKING - broadcast_docking_status() - - tag_target = receive_tag - if (!override_enabled) - prepare_for_docking() - send_docking_command(tag_target, "confirm_dock") //acknowledge the request - - if ("confirm_undock") - if (control_mode == MODE_CLIENT && dock_state == STATE_UNDOCKING && receive_tag == tag_target) - if (!override_enabled) - finish_undocking() - reset() //client is done undocking! - else if (control_mode == MODE_SERVER && dock_state == STATE_UNDOCKING && receive_tag == tag_target) - received_confirm = 1 - - if ("request_undock") - if (control_mode == MODE_SERVER && dock_state == STATE_DOCKED && receive_tag == tag_target) - dock_state = STATE_UNDOCKING - broadcast_docking_status() - - if (!override_enabled) - prepare_for_undocking() - - if ("dock_error") - if (receive_tag == tag_target) - reset() - -/datum/computer/file/embedded_program/docking/process() - switch(dock_state) - if (STATE_DOCKING) //waiting for our docking port to be ready for docking - if (ready_for_docking()) - if (control_mode == MODE_CLIENT) - if (!response_sent) - send_docking_command(tag_target, "confirm_dock") //tell the server we're ready - response_sent = 1 - - else if (control_mode == MODE_SERVER && received_confirm) - send_docking_command(tag_target, "confirm_dock") //tell the client we are done docking. - - dock_state = STATE_DOCKED - broadcast_docking_status() - - if (!override_enabled) - finish_docking() //server done docking! - response_sent = 0 - received_confirm = 0 - - if (STATE_UNDOCKING) - if (ready_for_undocking()) - if (control_mode == MODE_CLIENT) - if (!response_sent) - send_docking_command(tag_target, "confirm_undock") //tell the server we are OK to undock. - response_sent = 1 - - else if (control_mode == MODE_SERVER && received_confirm) - send_docking_command(tag_target, "confirm_undock") //tell the client we are done undocking. - if (!override_enabled) - finish_undocking() - reset() //server is done undocking! - - if (response_sent || resend_counter > 0) - resend_counter++ - - if (resend_counter >= MESSAGE_RESEND_TIME || (dock_state != STATE_DOCKING && dock_state != STATE_UNDOCKING)) - response_sent = 0 - resend_counter = 0 - - //handle invalid states - if (control_mode == MODE_NONE && dock_state != STATE_UNDOCKED) - if (tag_target) - send_docking_command(tag_target, "dock_error") - reset() - if (control_mode == MODE_SERVER && dock_state == STATE_UNDOCKED) - control_mode = MODE_NONE - - -/datum/computer/file/embedded_program/docking/proc/initiate_docking(var/target) - if (dock_state != STATE_UNDOCKED || control_mode == MODE_SERVER) //must be undocked and not serving another request to begin a new docking handshake - return - - tag_target = target - control_mode = MODE_CLIENT - - send_docking_command(tag_target, "request_dock") - -/datum/computer/file/embedded_program/docking/proc/initiate_undocking() - if (dock_state != STATE_DOCKED || control_mode != MODE_CLIENT) //must be docked and must be client to start undocking - return - - dock_state = STATE_UNDOCKING - broadcast_docking_status() - - if (!override_enabled) - prepare_for_undocking() - - send_docking_command(tag_target, "request_undock") - -//tell the docking port to start getting ready for docking - e.g. pressurize -/datum/computer/file/embedded_program/docking/proc/prepare_for_docking() - return - -//are we ready for docking? -/datum/computer/file/embedded_program/docking/proc/ready_for_docking() - return 1 - -//we are docked, open the doors or whatever. -/datum/computer/file/embedded_program/docking/proc/finish_docking() - return - -//tell the docking port to start getting ready for undocking - e.g. close those doors. -/datum/computer/file/embedded_program/docking/proc/prepare_for_undocking() - return - -//we are docked, open the doors or whatever. -/datum/computer/file/embedded_program/docking/proc/finish_undocking() - return - -//are we ready for undocking? -/datum/computer/file/embedded_program/docking/proc/ready_for_undocking() - return 1 - -/datum/computer/file/embedded_program/docking/proc/enable_override() - override_enabled = 1 - -/datum/computer/file/embedded_program/docking/proc/disable_override() - override_enabled = 0 - -/datum/computer/file/embedded_program/docking/proc/reset() - dock_state = STATE_UNDOCKED - broadcast_docking_status() - - control_mode = MODE_NONE - tag_target = null - response_sent = 0 - received_confirm = 0 - -/datum/computer/file/embedded_program/docking/proc/force_undock() - //world << "[id_tag]: forcing undock" - if (tag_target) - send_docking_command(tag_target, "dock_error") - reset() - -/datum/computer/file/embedded_program/docking/proc/docked() - return (dock_state == STATE_DOCKED) - -/datum/computer/file/embedded_program/docking/proc/undocked() - return (dock_state == STATE_UNDOCKED) - -//returns 1 if we are saftely undocked (and the shuttle can leave) -/datum/computer/file/embedded_program/docking/proc/can_launch() - return undocked() - -/datum/computer/file/embedded_program/docking/proc/send_docking_command(var/recipient, var/command) - var/datum/signal/signal = new - signal.data["tag"] = id_tag - signal.data["command"] = command - signal.data["recipient"] = recipient - post_signal(signal) - -/datum/computer/file/embedded_program/docking/proc/broadcast_docking_status() - var/datum/signal/signal = new - signal.data["tag"] = id_tag - signal.data["dock_status"] = get_docking_status() - post_signal(signal) - -//this is mostly for NanoUI -/datum/computer/file/embedded_program/docking/proc/get_docking_status() - switch (dock_state) - if (STATE_UNDOCKED) return "undocked" - if (STATE_DOCKING) return "docking" - if (STATE_UNDOCKING) return "undocking" - if (STATE_DOCKED) return "docked" - - -#undef STATE_UNDOCKED -#undef STATE_DOCKING -#undef STATE_UNDOCKING -#undef STATE_DOCKED - -#undef MODE_NONE -#undef MODE_SERVER + + +/datum/computer/file/embedded_program/docking/receive_signal(datum/signal/signal, receive_method, receive_param) + var/receive_tag = signal.data["tag"] //for docking signals, this is the sender id + var/command = signal.data["command"] + var/recipient = signal.data["recipient"] //the intended recipient of the docking signal + + if (recipient != id_tag) + return //this signal is not for us + + switch (command) + if ("confirm_dock") + if (control_mode == MODE_CLIENT && dock_state == STATE_UNDOCKED && receive_tag == tag_target) + dock_state = STATE_DOCKING + broadcast_docking_status() + if (!override_enabled) + prepare_for_docking() + + else if (control_mode == MODE_CLIENT && dock_state == STATE_DOCKING && receive_tag == tag_target) + dock_state = STATE_DOCKED + broadcast_docking_status() + if (!override_enabled) + finish_docking() //client done docking! + response_sent = 0 + else if (control_mode == MODE_SERVER && dock_state == STATE_DOCKING && receive_tag == tag_target) //client just sent us the confirmation back, we're done with the docking process + received_confirm = 1 + + if ("request_dock") + if (control_mode == MODE_NONE && dock_state == STATE_UNDOCKED) + control_mode = MODE_SERVER + + dock_state = STATE_DOCKING + broadcast_docking_status() + + tag_target = receive_tag + if (!override_enabled) + prepare_for_docking() + send_docking_command(tag_target, "confirm_dock") //acknowledge the request + + if ("confirm_undock") + if (control_mode == MODE_CLIENT && dock_state == STATE_UNDOCKING && receive_tag == tag_target) + if (!override_enabled) + finish_undocking() + reset() //client is done undocking! + else if (control_mode == MODE_SERVER && dock_state == STATE_UNDOCKING && receive_tag == tag_target) + received_confirm = 1 + + if ("request_undock") + if (control_mode == MODE_SERVER && dock_state == STATE_DOCKED && receive_tag == tag_target) + dock_state = STATE_UNDOCKING + broadcast_docking_status() + + if (!override_enabled) + prepare_for_undocking() + + if ("dock_error") + if (receive_tag == tag_target) + reset() + +/datum/computer/file/embedded_program/docking/process() + switch(dock_state) + if (STATE_DOCKING) //waiting for our docking port to be ready for docking + if (ready_for_docking()) + if (control_mode == MODE_CLIENT) + if (!response_sent) + send_docking_command(tag_target, "confirm_dock") //tell the server we're ready + response_sent = 1 + + else if (control_mode == MODE_SERVER && received_confirm) + send_docking_command(tag_target, "confirm_dock") //tell the client we are done docking. + + dock_state = STATE_DOCKED + broadcast_docking_status() + + if (!override_enabled) + finish_docking() //server done docking! + response_sent = 0 + received_confirm = 0 + + if (STATE_UNDOCKING) + if (ready_for_undocking()) + if (control_mode == MODE_CLIENT) + if (!response_sent) + send_docking_command(tag_target, "confirm_undock") //tell the server we are OK to undock. + response_sent = 1 + + else if (control_mode == MODE_SERVER && received_confirm) + send_docking_command(tag_target, "confirm_undock") //tell the client we are done undocking. + if (!override_enabled) + finish_undocking() + reset() //server is done undocking! + + if (response_sent || resend_counter > 0) + resend_counter++ + + if (resend_counter >= MESSAGE_RESEND_TIME || (dock_state != STATE_DOCKING && dock_state != STATE_UNDOCKING)) + response_sent = 0 + resend_counter = 0 + + //handle invalid states + if (control_mode == MODE_NONE && dock_state != STATE_UNDOCKED) + if (tag_target) + send_docking_command(tag_target, "dock_error") + reset() + if (control_mode == MODE_SERVER && dock_state == STATE_UNDOCKED) + control_mode = MODE_NONE + + +/datum/computer/file/embedded_program/docking/proc/initiate_docking(var/target) + if (dock_state != STATE_UNDOCKED || control_mode == MODE_SERVER) //must be undocked and not serving another request to begin a new docking handshake + return + + tag_target = target + control_mode = MODE_CLIENT + + send_docking_command(tag_target, "request_dock") + +/datum/computer/file/embedded_program/docking/proc/initiate_undocking() + if (dock_state != STATE_DOCKED || control_mode != MODE_CLIENT) //must be docked and must be client to start undocking + return + + dock_state = STATE_UNDOCKING + broadcast_docking_status() + + if (!override_enabled) + prepare_for_undocking() + + send_docking_command(tag_target, "request_undock") + +//tell the docking port to start getting ready for docking - e.g. pressurize +/datum/computer/file/embedded_program/docking/proc/prepare_for_docking() + return + +//are we ready for docking? +/datum/computer/file/embedded_program/docking/proc/ready_for_docking() + return 1 + +//we are docked, open the doors or whatever. +/datum/computer/file/embedded_program/docking/proc/finish_docking() + return + +//tell the docking port to start getting ready for undocking - e.g. close those doors. +/datum/computer/file/embedded_program/docking/proc/prepare_for_undocking() + return + +//we are docked, open the doors or whatever. +/datum/computer/file/embedded_program/docking/proc/finish_undocking() + return + +//are we ready for undocking? +/datum/computer/file/embedded_program/docking/proc/ready_for_undocking() + return 1 + +/datum/computer/file/embedded_program/docking/proc/enable_override() + override_enabled = 1 + +/datum/computer/file/embedded_program/docking/proc/disable_override() + override_enabled = 0 + +/datum/computer/file/embedded_program/docking/proc/reset() + dock_state = STATE_UNDOCKED + broadcast_docking_status() + + control_mode = MODE_NONE + tag_target = null + response_sent = 0 + received_confirm = 0 + +/datum/computer/file/embedded_program/docking/proc/force_undock() + //to_world("[id_tag]: forcing undock") + if (tag_target) + send_docking_command(tag_target, "dock_error") + reset() + +/datum/computer/file/embedded_program/docking/proc/docked() + return (dock_state == STATE_DOCKED) + +/datum/computer/file/embedded_program/docking/proc/undocked() + return (dock_state == STATE_UNDOCKED) + +//returns 1 if we are saftely undocked (and the shuttle can leave) +/datum/computer/file/embedded_program/docking/proc/can_launch() + return undocked() + +/datum/computer/file/embedded_program/docking/proc/send_docking_command(var/recipient, var/command) + var/datum/signal/signal = new + signal.data["tag"] = id_tag + signal.data["command"] = command + signal.data["recipient"] = recipient + post_signal(signal) + +/datum/computer/file/embedded_program/docking/proc/broadcast_docking_status() + var/datum/signal/signal = new + signal.data["tag"] = id_tag + signal.data["dock_status"] = get_docking_status() + post_signal(signal) + +//this is mostly for NanoUI +/datum/computer/file/embedded_program/docking/proc/get_docking_status() + switch (dock_state) + if (STATE_UNDOCKED) return "undocked" + if (STATE_DOCKING) return "docking" + if (STATE_UNDOCKING) return "undocking" + if (STATE_DOCKED) return "docked" + + +#undef STATE_UNDOCKED +#undef STATE_DOCKING +#undef STATE_UNDOCKING +#undef STATE_DOCKED + +#undef MODE_NONE +#undef MODE_SERVER #undef MODE_CLIENT \ No newline at end of file diff --git a/code/game/machinery/floorlayer.dm b/code/game/machinery/floorlayer.dm index 94f61981ea..ed437c0714 100644 --- a/code/game/machinery/floorlayer.dm +++ b/code/game/machinery/floorlayer.dm @@ -53,7 +53,7 @@ else var/obj/item/stack/tile/E = input("Choose remove tile type.", "Tiles") as null|anything in contents if(E) - to_chat(user, "You remove the [E] from /the [src].") + to_chat(user, "You remove the [E] from /the [src].") E.loc = src.loc T = null return @@ -68,7 +68,7 @@ var/dismantle = mode["dismantle"] var/laying = mode["laying"] var/collect = mode["collect"] - user << "\The [src] [!T?"don't ":""]has [!T?"":"[T.get_amount()] [T] "]tile\s, dismantle is [dismantle?"on":"off"], laying is [laying?"on":"off"], collect is [collect?"on":"off"]." + to_chat(user,"\The [src] [!T?"don't ":""]has [!T?"":"[T.get_amount()] [T] "]tile\s, dismantle is [dismantle?"on":"off"], laying is [laying?"on":"off"], collect is [collect?"on":"off"].") /obj/machinery/floorlayer/proc/reset() on=0 diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 623cac6ef0..1d7308f56e 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -57,13 +57,13 @@ var/const/HOLOPAD_MODE = RANGE_BASED 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)) @@ -82,12 +82,12 @@ var/const/HOLOPAD_MODE = RANGE_BASED /obj/machinery/hologram/holopad/proc/activate_holo(mob/living/silicon/ai/user) if(!(stat & NOPOWER) && user.eyeobj.loc == src.loc)//If the projector has power and client eye is on it if(user.holo) - user << "ERROR: Image feed in progress." + to_chat(user, "ERROR: Image feed in progress.") return create_holo(user)//Create one. visible_message("A holographic image of [user] flicks to life right before your eyes!") else - user << "ERROR: Unable to project hologram." + to_chat(user, "ERROR: Unable to project hologram.") return /*This is the proc for special two-way communication between AI and holopad/people talking near holopad. @@ -235,7 +235,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_world("Your icon should appear now.") return */ diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index 9f61a8ab7c..aa9278ab03 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -253,8 +253,8 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co node = get_exonet_node() if(!node || !node.on || !node.allow_external_newscasters) - user << "Error: Cannot connect to external content. Please try again in a few minutes. If this error persists, please \ - contact the system administrator." + to_chat(user, "Error: Cannot connect to external content. Please try again in a few minutes. If this error persists, please \ + contact the system administrator.") return 0 if(!user.IsAdvancedToolUser()) @@ -883,7 +883,7 @@ obj/item/weapon/newspaper/attack_self(mob/user as mob) 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) var/mob/living/U = usr @@ -919,7 +919,7 @@ obj/item/weapon/newspaper/Topic(href, href_list) obj/item/weapon/newspaper/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W, /obj/item/weapon/pen)) if(scribble_page == 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 = sanitize(input(user, "Write something", "Newspaper", "")) s = sanitize(s) diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm index 53c4dcdd28..f32e57b9b1 100644 --- a/code/game/machinery/nuclear_bomb.dm +++ b/code/game/machinery/nuclear_bomb.dm @@ -393,13 +393,13 @@ obj/machinery/nuclearbomb/proc/nukehack_win(mob/user as mob) ticker.station_explosion_cinematic(off_station,null) if(ticker.mode) ticker.mode.explosion_in_progress = 0 - world << "The station was destoyed by the nuclear blast!" + to_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. if(!ticker.mode.check_finished())//If the mode does not deal with the nuke going off so just reboot because everyone is stuck as is - world << "Resetting in 30 seconds!" + to_world("Resetting in 30 seconds!") feedback_set_details("end_error","nuke - unhandled ending") diff --git a/code/game/machinery/overview.dm b/code/game/machinery/overview.dm index 0ec65cc30d..4c67aa09a9 100644 --- a/code/game/machinery/overview.dm +++ b/code/game/machinery/overview.dm @@ -26,7 +26,7 @@ imap += icon('icons/misc/imap.dmi', "blank") imap += icon('icons/misc/imap.dmi', "blank") - //world << "[icount] images in list" + //to_world("[icount] images in list") for(var/wx = 1 ; wx <= world.maxx; wx++) @@ -134,11 +134,11 @@ var/rx = ((wx*2+xoff)%32) + 1 var/ry = ((wy*2+yoff)%32) + 1 - //world << "trying [ix],[iy] : [ix+icx*iy]" + //to_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_world("icon: \icon[I]") I.DrawBox(colour, rx, ry, rx+1, ry+1) @@ -153,7 +153,7 @@ H.screen_loc = "[5 + i%icx],[6+ round(i/icx)]" - //world<<"\icon[I] at [H.screen_loc]" + //to_world("\icon[I] at [H.screen_loc]") H.name = (i==0)?"maprefresh":"map" @@ -263,10 +263,10 @@ var/rx = ((wx*2+xoff)%32) + 1 var/ry = ((wy*2+yoff)%32) + 1 - //world << "trying [ix],[iy] : [ix+icx*iy]" + //to_world("trying [ix],[iy] : [ix+icx*iy]") var/icon/I = imap[1+(ix + icx*iy)] - //world << "icon: \icon[I]" + //to_world("icon: \icon[I]") I.DrawBox(colour, rx, ry, rx, ry) @@ -279,7 +279,7 @@ H.screen_loc = "[5 + i%icx],[6+ round(i/icx)]" - //world<<"\icon[I] at [H.screen_loc]" + //to_world("\icon[I] at [H.screen_loc]") H.name = (i==0)?"maprefresh":"map" diff --git a/code/game/machinery/partslathe_vr.dm b/code/game/machinery/partslathe_vr.dm index d2d9079ab1..ce4fa5b86c 100644 --- a/code/game/machinery/partslathe_vr.dm +++ b/code/game/machinery/partslathe_vr.dm @@ -88,7 +88,7 @@ /obj/machinery/partslathe/attackby(var/obj/item/O as obj, var/mob/user as mob) if(busy) - user << "\The [src] is busy. Please wait for completion of previous operation." + to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.") return 1 if(default_deconstruction_screwdriver(user, O)) return @@ -99,11 +99,11 @@ if(inoperable()) return if(panel_open) - user << "You can't load \the [src] while it's opened." + to_chat(user, "You can't load \the [src] while it's opened.") return if(istype(O, /obj/item/weapon/circuitboard)) if(copy_board) - user << "There is already a board inserted in \the [src]." + to_chat(user, "There is already a board inserted in \the [src].") return if(!user.unEquip(O)) return @@ -115,7 +115,7 @@ if(try_load_materials(user, O)) return else - user << "You cannot insert this item into \the [src]!" + to_chat(user, "You cannot insert this item into \the [src]!") return // Attept to load materials. Returns 0 if item wasn't a stack of materials, otherwise 1 (even if failed to load) @@ -123,7 +123,7 @@ if(!istype(S)) return 0 if(!(S.material.name in materials)) - user << "The [src] doesn't accept [S.material]!" + to_chat(user, "The [src] doesn't accept [S.material]!") return 1 if(S.amount < 1) return 1 // Does this even happen? Sanity check I guess. @@ -138,7 +138,7 @@ flick("partslathe-load-[S.material.name]", src) updateUsrDialog() else - user << "\The [src] cannot hold more [S.name]." + to_chat(user, "\The [src] cannot hold more [S.name].") return 1 /obj/machinery/partslathe/process() @@ -326,7 +326,7 @@ return if(busy) - usr << "\The [src]is busy. Please wait for completion of previous operation." + to_chat(usr, "\The [src]is busy. Please wait for completion of previous operation.") return if(href_list["ejectBoard"]) diff --git a/code/game/machinery/pipe/pipe_dispenser.dm b/code/game/machinery/pipe/pipe_dispenser.dm index 89a2ed08c8..e1b874c096 100644 --- a/code/game/machinery/pipe/pipe_dispenser.dm +++ b/code/game/machinery/pipe/pipe_dispenser.dm @@ -71,14 +71,14 @@ /obj/machinery/pipedispenser/attackby(var/obj/item/W as obj, var/mob/user as mob) src.add_fingerprint(usr) if (istype(W, /obj/item/pipe) || istype(W, /obj/item/pipe_meter)) - usr << "You put [W] back to [src]." + to_chat(usr, "You put [W] back to [src].") user.drop_item() qdel(W) return else if(W.is_wrench()) if (unwrenched==0) playsound(src, W.usesound, 50, 1) - user << "You begin to unfasten \the [src] from the floor..." + to_chat(user, "You begin to unfasten \the [src] from the floor...") if (do_after(user, 40 * W.toolspeed)) user.visible_message( \ "[user] unfastens \the [src].", \ @@ -91,7 +91,7 @@ usr << browse(null, "window=pipedispenser") else /*if (unwrenched==1)*/ playsound(src, W.usesound, 50, 1) - user << "You begin to fasten \the [src] to the floor..." + to_chat(user, "You begin to fasten \the [src] to the floor...") if (do_after(user, 20 * W.toolspeed)) user.visible_message( \ "[user] fastens \the [src].", \ diff --git a/code/game/machinery/robot_fabricator.dm b/code/game/machinery/robot_fabricator.dm index f77982843b..7c5f8cafa0 100644 --- a/code/game/machinery/robot_fabricator.dm +++ b/code/game/machinery/robot_fabricator.dm @@ -26,7 +26,7 @@ M.use(1) count++ - user << "You insert [count] metal sheet\s into the fabricator." + to_chat(user, "You insert [count] metal sheet\s into the fabricator.") overlays -= "fab-load-metal" updateDialog() else diff --git a/code/game/machinery/seed_extractor.dm b/code/game/machinery/seed_extractor.dm index d8253390c5..1b9d89dc00 100644 --- a/code/game/machinery/seed_extractor.dm +++ b/code/game/machinery/seed_extractor.dm @@ -22,14 +22,14 @@ 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) @@ -37,7 +37,7 @@ obj/machinery/seed_extractor/attackby(var/obj/item/O as obj, var/mob/user as mob else if(istype(O, /obj/item/stack/tile/grass)) var/obj/item/stack/tile/grass/S = O if(S.use(1)) - user << "You extract some seeds from the grass tile." + to_chat(user, "You extract some seeds from the grass tile.") new /obj/item/seeds/grassseed(loc) else if(istype(O, /obj/item/weapon/fossil/plant)) // Fossils diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index dcc5781bbb..1a019105b4 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -150,7 +150,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 f2d87edb0d..a59fa181e8 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -402,9 +402,9 @@ if(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.") OCCUPANT.client.eye = OCCUPANT.client.mob OCCUPANT.client.perspective = MOB_PERSPECTIVE @@ -959,7 +959,7 @@ /obj/machinery/suit_cycler/proc/eject_occupant(mob/user as mob) if(locked || active) - user << "The cycler is locked." + to_chat(user, "The cycler is locked.") return if(!occupant) diff --git a/code/game/machinery/telecomms/broadcaster.dm b/code/game/machinery/telecomms/broadcaster.dm index 8f6e8e589e..5eb18d6d2f 100644 --- a/code/game/machinery/telecomms/broadcaster.dm +++ b/code/game/machinery/telecomms/broadcaster.dm @@ -647,7 +647,7 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept if(do_sleep) sleep(rand(10,25)) - //world.log << "Level: [signal.data["level"]] - Done: [signal.data["done"]]" + //to_world_log("Level: [signal.data["level"]] - Done: [signal.data["done"]]") return signal diff --git a/code/game/machinery/telecomms/logbrowser.dm b/code/game/machinery/telecomms/logbrowser.dm index 41e7b64ed7..f04cf7076a 100644 --- a/code/game/machinery/telecomms/logbrowser.dm +++ b/code/game/machinery/telecomms/logbrowser.dm @@ -157,7 +157,7 @@ if(href_list["delete"]) if(!src.allowed(usr) && !emagged) - usr << "ACCESS DENIED." + to_chat(usr, "ACCESS DENIED.") return if(SelectedServer) @@ -194,6 +194,6 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "You you disable the security protocols" + to_chat(user, "You you disable the security protocols") src.updateUsrDialog() return 1 diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm index d6cefb6828..4ba184a102 100644 --- a/code/game/machinery/telecomms/telecomunications.dm +++ b/code/game/machinery/telecomms/telecomunications.dm @@ -41,7 +41,7 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list() if(!on) return - //world << "[src] ([src.id]) - [signal.debug_print()]" + //to_world("[src] ([src.id]) - [signal.debug_print()]") var/send_count = 0 signal.data["slow"] += rand(0, round((100-integrity))) // apply some lag based on integrity diff --git a/code/game/machinery/telecomms/telemonitor.dm b/code/game/machinery/telecomms/telemonitor.dm index 16ac9ada8a..819108b2ce 100644 --- a/code/game/machinery/telecomms/telemonitor.dm +++ b/code/game/machinery/telecomms/telemonitor.dm @@ -129,6 +129,6 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "You you disable the security protocols" + to_chat(user, "You you disable the security protocols") src.updateUsrDialog() return 1 diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index a49376d7de..686a764ada 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -127,7 +127,7 @@ add_fingerprint(usr) usr.set_machine(src) if(!src.allowed(usr) && !emagged) - usr << "ACCESS DENIED." + to_chat(usr, "ACCESS DENIED.") return if(href_list["viewserver"]) @@ -212,6 +212,6 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "You you disable the security protocols" + to_chat(user, "You you disable the security protocols") src.updateUsrDialog() return 1 \ No newline at end of file diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index ff4caf3f67..e698e000ea 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -246,7 +246,7 @@ if(istype(M, /mob/living)) var/mob/living/MM = M if(MM.check_contents_for(/obj/item/weapon/disk/nuclear)) - MM << "Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through." + to_chat(MM, "Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through.") return var/disky = 0 for (var/atom/O in M.contents) //I'm pretty sure this accounts for the maximum amount of container in container stacking. --NeoFite @@ -273,7 +273,7 @@ if(istype(M, /mob/living)) var/mob/living/MM = M if(MM.check_contents_for(/obj/item/weapon/storage/backpack/holding)) - 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!") precision = rand(1,100) if(istype(M, /obj/item/weapon/storage/backpack/holding)) precision = rand(1,100) diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm index 4319e11127..3b90c5d63a 100644 --- a/code/game/machinery/turret_control.dm +++ b/code/game/machinery/turret_control.dm @@ -68,11 +68,11 @@ /obj/machinery/turretid/proc/isLocked(mob/user) if(ailock && issilicon(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 && !issilicon(user)) - user << "Access denied." + to_chat(user, "Access denied.") return 1 return 0 @@ -90,16 +90,16 @@ if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) if(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(var/remaining_charges, var/mob/user) 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/washing_machine.dm b/code/game/machinery/washing_machine.dm index 480c124235..7f2a5ae47b 100644 --- a/code/game/machinery/washing_machine.dm +++ b/code/game/machinery/washing_machine.dm @@ -43,7 +43,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,washing)) @@ -94,7 +94,7 @@ return /*if(W.is_screwdriver()) panel = !panel - user << "You [panel ? "open" : "close"] the [src]'s maintenance panel"*/ + to_chat(user, "You [panel ? "open" : "close"] the [src]'s maintenance panel")*/ if(istype(W,/obj/item/weapon/pen/crayon) || istype(W,/obj/item/weapon/stamp)) if(state in list( 1, 3, 6)) if(!crayon) @@ -116,7 +116,7 @@ ..() else if(is_type_in_list(W, disallowed_types)) - user << "You can't fit \the [W] inside." + to_chat(user, "You can't fit \the [W] inside.") return else if(istype(W, /obj/item/clothing) || istype(W, /obj/item/weapon/bedsheet)) @@ -127,9 +127,9 @@ washing += W state = 3 else - user << "You can't put the item in right now." + to_chat(user, "You can't put the item in right now.") else - user << "The washing machine is full." + to_chat(user, "The washing machine is full.") else ..() update_icon() @@ -153,7 +153,7 @@ washing.Cut() state = 1 if(5) - user << "The [src] is busy." + to_chat(user, "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 e36b577e9e..97ffbbc8ac 100644 --- a/code/game/machinery/wishgranter.dm +++ b/code/game/machinery/wishgranter.dm @@ -13,23 +13,23 @@ usr.set_machine(src) if(charges <= 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(!insisting) - 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?") insisting++ else - user << "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers." - user << "Your head pounds for a moment, before your vision clears. You are the avatar of the Wish Granter, and your power is LIMITLESS! And it's all yours. You need to make sure no one can take it from you. No one can know, first." + to_chat(user, "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers.") + to_chat(user, "Your head pounds for a moment, before your vision clears. You are the avatar of the Wish Granter, and your power is LIMITLESS! And it's all yours. You need to make sure no one can take it from you. No one can know, first.") charges-- insisting = 0 @@ -63,6 +63,6 @@ user.mind.objectives += silence show_objectives(user.mind) - user << "You have a very bad feeling about this." + to_chat(user, "You have a very bad feeling about this.") return \ No newline at end of file diff --git a/code/game/magic/archived_book.dm b/code/game/magic/archived_book.dm index b2af5f3f73..a283247996 100644 --- a/code/game/magic/archived_book.dm +++ b/code/game/magic/archived_book.dm @@ -52,7 +52,7 @@ datum/book_manager/proc/freeid() else var/DBQuery/query = dbcon.NewQuery("DELETE FROM library WHERE id=[isbn]") if(!query.Execute()) - usr << query.ErrorMsg() + to_chat(usr,query.ErrorMsg()) dbcon.Disconnect() else book_mgr.remove(isbn) @@ -85,7 +85,7 @@ datum/archived_book/New(var/path) if (isnull(version) || version < BOOK_VERSION_MIN || version > BOOK_VERSION_MAX) fdel(path) - usr << "What book?" + to_chat(usr, "What book?") return 0 F["author"] >> author diff --git a/code/game/mecha/combat/marauder.dm b/code/game/mecha/combat/marauder.dm index 9521147089..8b2471d953 100644 --- a/code/game/mecha/combat/marauder.dm +++ b/code/game/mecha/combat/marauder.dm @@ -95,7 +95,7 @@ /obj/mecha/combat/marauder/relaymove(mob/user,direction) if(user != src.occupant) //While not "realistic", this piece is player friendly. user.loc = get_turf(src) - user << "You climb out from [src]" + to_chat(user, "You climb out from [src]") return 0 if(!can_move) return 0 diff --git a/code/game/mecha/equipment/tools/armor_melee.dm b/code/game/mecha/equipment/tools/armor_melee.dm index 83c8228131..a723882657 100644 --- a/code/game/mecha/equipment/tools/armor_melee.dm +++ b/code/game/mecha/equipment/tools/armor_melee.dm @@ -36,7 +36,7 @@ return chassis.dynattackby(W,user) chassis.log_message("Attacked by [W]. Attacker - [user]") if(prob(chassis.deflect_chance*deflect_coeff)) - user << "\The [W] bounces off [chassis] armor." + to_chat(user, "\The [W] bounces off [chassis] armor.") chassis.log_append_to_last("Armor saved.") else chassis.occupant_message("\The [user] hits [chassis] with [W].") diff --git a/code/game/mecha/equipment/tools/generator.dm b/code/game/mecha/equipment/tools/generator.dm index b4896045c5..396215131d 100644 --- a/code/game/mecha/equipment/tools/generator.dm +++ b/code/game/mecha/equipment/tools/generator.dm @@ -88,7 +88,7 @@ if(isnull(result)) user.visible_message("[user] tries to shove [weapon] into [src]. What a dumb-ass.","[fuel] traces minimal. [weapon] 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 [fuel].","[result] unit\s of [fuel] successfully loaded.") return diff --git a/code/game/mecha/equipment/tools/passenger.dm b/code/game/mecha/equipment/tools/passenger.dm index 1e40da2f30..a84dc2981b 100644 --- a/code/game/mecha/equipment/tools/passenger.dm +++ b/code/game/mecha/equipment/tools/passenger.dm @@ -16,7 +16,7 @@ /obj/item/mecha_parts/mecha_equipment/tool/passenger/destroy() for(var/atom/movable/AM in src) AM.forceMove(get_turf(src)) - AM << "You tumble out of the destroyed [src.name]!" + to_chat(AM, "You tumble out of the destroyed [src.name]!") return ..() /obj/item/mecha_parts/mecha_equipment/tool/passenger/Exit(atom/movable/O) @@ -107,13 +107,13 @@ return if (!isturf(usr.loc)) - usr << "You can't reach the passenger compartment from here." + to_chat(usr, "You can't reach the passenger compartment from here.") return if(iscarbon(usr)) var/mob/living/carbon/C = usr if(C.handcuffed) - usr << "Kinda hard to climb in while handcuffed don't you think?" + to_chat(usr, "Kinda hard to climb in while handcuffed don't you think?") return if(isliving(usr)) @@ -139,13 +139,13 @@ //didn't find anything switch (feedback) if (OCCUPIED) - usr << "The passenger compartment is already occupied!" + to_chat(usr, "The passenger compartment is already occupied!") if (LOCKED) - usr << "The passenger compartment hatch is locked!" + to_chat(usr, "The passenger compartment hatch is locked!") if (OCCUPIED|LOCKED) - usr << "All of the passenger compartments are already occupied or locked!" + to_chat(usr, "All of the passenger compartments are already occupied or locked!") if (0) - usr << "\The [src] doesn't have a passenger compartment." + to_chat(usr, "\The [src] doesn't have a passenger compartment.") #undef LOCKED #undef OCCUPIED \ No newline at end of file diff --git a/code/game/mecha/mech_sensor.dm b/code/game/mecha/mech_sensor.dm index aa598d1b0d..72202788b9 100644 --- a/code/game/mecha/mech_sensor.dm +++ b/code/game/mecha/mech_sensor.dm @@ -44,11 +44,11 @@ if(istype(O, /obj/mecha)) var/obj/mecha/R = O if(R && R.occupant) - R.occupant << block_message + to_chat(R.occupant,block_message) else if(istype(O, /obj/vehicle/train/engine)) var/obj/vehicle/train/engine/E = O if(E && E.load && E.is_train_head()) - E.load << block_message + to_chat(E.load,block_message) feedback_timer = 1 spawn(50) //Without this timer the feedback becomes horribly spamy diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 2a6f08df03..8ad7d0166e 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -269,19 +269,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 @@ -397,10 +397,10 @@ /obj/mecha/relaymove(mob/user,direction) if(user != src.occupant) //While not "realistic", this piece is player friendly. if(istype(user,/mob/living/carbon/brain)) - to_chat(user,"You try to move, but you are not the pilot! The exosuit doesn't respond.") + to_chat(user, "You try to move, but you are not the pilot! The exosuit doesn't respond.") return 0 user.forceMove(get_turf(src)) - to_chat(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) @@ -580,12 +580,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 << "You slash at the armored suit!" + to_chat(user, "You slash at the armored suit!") visible_message("\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 << "Your claws had no effect!" + to_chat(user, "Your claws had no effect!") src.occupant_message("\The [user]'s claws are stopped by the armor.") visible_message("\The [user] rebounds off [src.name]'s armor!") else @@ -704,14 +704,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 << "You smash at the armored suit!" + to_chat(user, "You smash at the armored suit!") for (var/mob/V in viewers(src)) if(V.client && !(V.blinded)) V.show_message("\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 << "Your attack had no effect!" + to_chat(user, "Your attack had no effect!") src.occupant_message("\The [user]'s attack is stopped by the armor.") for (var/mob/V in viewers(src)) if(V.client && !(V.blinded)) @@ -738,7 +738,7 @@ user.setClickCooldown(user.get_attack_speed(W)) src.log_message("Attacked by [W]. Attacker - [user]") if(prob(src.deflect_chance)) - user << "\The [W] bounces off [src.name]." + to_chat(user, "\The [W] bounces off [src.name].") src.log_append_to_last("Armor saved.") /* for (var/mob/V in viewers(src)) @@ -760,9 +760,9 @@ if(istype(W, /obj/item/device/mmi)) if(mmi_move_inside(W,user)) - to_chat(user,"[src]-MMI interface initialized successfuly") + to_chat(user, "[src]-MMI interface initialized successfuly") else - to_chat(user,"[src]-MMI interface initialization failed.") + to_chat(user, "[src]-MMI interface initialization failed.") return if(istype(W, /obj/item/mecha_parts/mecha_equipment)) @@ -773,7 +773,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) @@ -787,57 +787,57 @@ output_maintenance_dialog(id_card, user) return else - user << "Invalid ID: Access denied." + to_chat(user, "Invalid ID: Access denied.") else - user << "Maintenance protocols disabled by operator." + to_chat(user, "Maintenance protocols disabled by operator.") else if(W.is_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(W.is_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") return else if(istype(W, /obj/item/stack/cable_coil)) if(state == 3 && hasInternalDamage(MECHA_INT_SHORT_CIRCUIT)) var/obj/item/stack/cable_coil/CC = W if(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(W.is_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/device/multitool)) if(state>=3 && src.occupant) - user << "You attempt to eject the pilot using the maintenance controls." + to_chat(user, "You attempt to eject the pilot using the maintenance controls.") if(src.occupant.stat) src.go_out() src.log_message("[src.occupant] was ejected using the maintenance controls.") else - user << "Your attempt is rejected." + to_chat(user, "Your attempt is rejected.") src.occupant_message("An attempt to eject you was made using the maintenance controls.") src.log_message("Eject attempt made using maintenance controls - rejected.") return @@ -845,13 +845,13 @@ else if(istype(W, /obj/item/weapon/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_HURT) @@ -859,14 +859,14 @@ if (WT.remove_fuel(0,user)) if (hasInternalDamage(MECHA_INT_TANK_BREACH)) clearInternalDamage(MECHA_INT_TANK_BREACH) - user << "You repair the damaged gas tank." + to_chat(user, "You repair the damaged gas tank.") else return if(src.healthYou repair some damage to [src.name]." + to_chat(user, "You repair some damage to [src.name].") src.health += min(10, initial(src.health)-src.health) else - user << "The [src.name] is at full integrity" + to_chat(user, "The [src.name] is at full integrity") return else if(istype(W, /obj/item/mecha_parts/mecha_tracking)) @@ -880,7 +880,7 @@ /* src.log_message("Attacked by [W]. Attacker - [user]") if(prob(src.deflect_chance)) - user << "\The [W] bounces off [src.name] armor." + to_chat(user, "\The [W] bounces off [src.name] armor.") src.log_append_to_last("Armor saved.") /* for (var/mob/V in viewers(src)) @@ -914,19 +914,19 @@ /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) - to_chat(user,"Consciousness matrix not detected.") + to_chat(user, "Consciousness matrix not detected.") return 0 else if(mmi_as_oc.brainmob.stat) - to_chat(user,"Brain activity below acceptable level.") + to_chat(user, "Brain activity below acceptable level.") return 0 else if(occupant) - to_chat(user,"Occupant detected.") + to_chat(user, "Occupant detected.") return 0 else if(dna && dna!=mmi_as_oc.brainmob.dna.unique_enzymes) - to_chat(user,"Genetic sequence or serial number incompatible with locking mechanism.") + to_chat(user, "Genetic sequence or serial number incompatible with locking mechanism.") 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("[usr] starts to insert a brain into [src.name]") @@ -934,18 +934,18 @@ if(!occupant) return mmi_moved_inside(mmi_as_oc,user) else - to_chat(user,"Occupant detected.") + to_chat(user, "Occupant detected.") else - to_chat(user,"You stop attempting to install the brain.") + to_chat(user, "You stop attempting to install the brain.") 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) - to_chat(user,"Consciousness matrix not detected.") + to_chat(user, "Consciousness matrix not detected.") return 0 else if(mmi_as_oc.brainmob.stat) - to_chat(user,"Beta-rhythm below acceptable level.") + to_chat(user, "Beta-rhythm below acceptable level.") return 0 user.drop_from_inventory(mmi_as_oc) var/mob/brainmob = mmi_as_oc.brainmob @@ -1144,22 +1144,22 @@ return if (usr.buckled) - to_chat(usr,"You can't climb into the exosuit while buckled!") + to_chat(usr, "You can't climb into the exosuit while buckled!") return src.log_message("[usr] tries to move in.") if(iscarbon(usr)) var/mob/living/carbon/C = usr if(C.handcuffed) - to_chat(usr,"Kinda hard to climb in while handcuffed don't you think?") + to_chat(usr, "Kinda hard to climb in while handcuffed don't you think?") return if (src.occupant) - to_chat(usr,"The [src.name] is already occupied!") + to_chat(usr, "The [src.name] is already occupied!") src.log_append_to_last("Permission denied.") return /* if (usr.abiotic()) - usr << "Subject cannot have abiotic items on." + to_chat(usr, "Subject cannot have abiotic items on.") return */ var/passed @@ -1169,7 +1169,7 @@ else if(src.operation_allowed(usr)) passed = 1 if(!passed) - to_chat(usr,"Access denied") + to_chat(usr, "Access denied") src.log_append_to_last("Permission denied.") return if(isliving(usr)) @@ -1178,7 +1178,7 @@ to_chat(L, span("warning", "You have other entities attached to yourself. Remove them first.")) return -// usr << "You start climbing into [src.name]" +// to_chat(usr, "You start climbing into [src.name]") visible_message("\The [usr] starts to climb into [src.name]") @@ -1186,9 +1186,9 @@ if(!src.occupant) moved_inside(usr) else if(src.occupant!=usr) - to_chat(usr,"[src.occupant] was faster. Try better next time, loser.") + to_chat(usr, "[src.occupant] was faster. Try better next time, loser.") else - to_chat(usr,"You stop entering the exosuit.") + to_chat(usr, "You stop entering the exosuit.") return /obj/mecha/proc/moved_inside(var/mob/living/carbon/human/H as mob) @@ -1290,7 +1290,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() @@ -1596,7 +1596,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) @@ -1708,10 +1708,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(top_filter.getObj("id_card"),user) return if(href_list["set_internal_tank_valve"] && state >=1) @@ -1721,7 +1721,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["remove_passenger"] && state >= 1) var/mob/user = top_filter.getMob("user") var/list/passengers = list() @@ -1730,7 +1730,7 @@ passengers["[P.occupant]"] = P if (!passengers) - user << "There are no passengers to remove." + to_chat(user, "There are no passengers to remove.") return var/pname = input(user, "Choose a passenger to forcibly remove.", "Forcibly Remove Passenger") as null|anything in passengers diff --git a/code/game/mecha/medical/odysseus.dm b/code/game/mecha/medical/odysseus.dm index 1f90a45d61..ce72a16119 100644 --- a/code/game/mecha/medical/odysseus.dm +++ b/code/game/mecha/medical/odysseus.dm @@ -49,7 +49,7 @@ var/perspective = input("Select a perspective type.", "Client perspective", occupant.client.perspective) in list(MOB_PERSPECTIVE,EYE_PERSPECTIVE) - world << "[perspective]" + to_world("[perspective]") occupant.client.perspective = perspective return @@ -61,7 +61,7 @@ occupant.client.eye = src else occupant.client.eye = occupant - world << "[occupant.client.eye]" + to_world("[occupant.client.eye]") return */ @@ -72,15 +72,15 @@ // process_hud(var/mob/M) //TODO VIS /* - world<< "view(M)" + to_world("view(M)") for(var/mob/mob in view(M)) - world << "[mob]" - world<< "view(M.client)" + to_world("[mob]") + to_world("view(M.client)") for(var/mob/mob in view(M.client)) - world << "[mob]" - world<< "view(M.loc)" + to_world("[mob]") + to_world("view(M.loc)") for(var/mob/mob in view(M.loc)) - world << "[mob]" + to_world("[mob]") if(!M || M.stat || !(M in view(M))) return diff --git a/code/game/mecha/micro/micro.dm b/code/game/mecha/micro/micro.dm index 9c8a44899d..0b1e340487 100644 --- a/code/game/mecha/micro/micro.dm +++ b/code/game/mecha/micro/micro.dm @@ -121,7 +121,7 @@ /obj/mecha/micro/move_inside() var/mob/living/carbon/C = usr if (C.size_multiplier >= 0.5) - C << "You can't fit in this suit!" + to_chat(C, "You can't fit in this suit!") return else ..() @@ -129,7 +129,7 @@ /obj/mecha/micro/move_inside_passenger() var/mob/living/carbon/C = usr if (C.size_multiplier >= 0.5) - C << "You can't fit in this suit!" + to_chat(C, "You can't fit in this suit!") return else ..() diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index a679f5e1b6..b037c19a9a 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -113,7 +113,7 @@ //Wrapper procs that handle sanity and user feedback /atom/movable/proc/user_buckle_mob(mob/living/M, mob/user, var/forced = FALSE, var/silent = FALSE) if(!ticker) - user << "You can't buckle anyone in before the game starts." + to_chat(user, "You can't buckle anyone in before the game starts.") return FALSE // Is this really needed? if(!user.Adjacent(M) || user.restrained() || user.stat || istype(user, /mob/living/silicon/pai)) return FALSE diff --git a/code/game/objects/effects/alien/aliens.dm b/code/game/objects/effects/alien/aliens.dm index bdcbe95e7f..d8b0821a4d 100644 --- a/code/game/objects/effects/alien/aliens.dm +++ b/code/game/objects/effects/alien/aliens.dm @@ -109,7 +109,7 @@ /obj/effect/alien/resin/attack_hand() usr.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if (HULK in usr.mutations) - usr << "You easily destroy the [name]." + to_chat(usr, "You easily destroy the [name].") for(var/mob/O in oviewers(src)) O.show_message("[usr] destroys the [name]!", 1) health = 0 @@ -125,7 +125,7 @@ healthcheck() return - usr << "You claw at the [name]." + to_chat(usr, "You claw at the [name].") for(var/mob/O in oviewers(src)) O.show_message("[usr] claws at the [name]!", 1) health -= rand(5,10) @@ -476,14 +476,14 @@ Alien plants should do something if theres a lot of poison switch(status) if(BURST) - user << "You clear the hatched egg." + to_chat(user, "You clear the hatched egg.") 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 diff --git a/code/game/objects/effects/chem/foam.dm b/code/game/objects/effects/chem/foam.dm index d3ee736251..e89355086f 100644 --- a/code/game/objects/effects/chem/foam.dm +++ b/code/game/objects/effects/chem/foam.dm @@ -168,7 +168,7 @@ user.visible_message("[user] smashes through the foamed metal.", "You smash through the metal foam wall.") 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.") return /obj/structure/foamedmetal/attackby(var/obj/item/I, var/mob/user) @@ -184,4 +184,4 @@ user.visible_message("[user] smashes through the foamed metal.", "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.") diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm index cfde668d5c..f9c70c9f16 100644 --- a/code/game/objects/effects/decals/Cleanable/humans.dm +++ b/code/game/objects/effects/decals/Cleanable/humans.dm @@ -130,7 +130,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() @@ -176,7 +176,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/misc.dm b/code/game/objects/effects/decals/Cleanable/misc.dm index 1ef83bc722..7c2e274644 100644 --- a/code/game/objects/effects/decals/Cleanable/misc.dm +++ b/code/game/objects/effects/decals/Cleanable/misc.dm @@ -16,7 +16,7 @@ anchored = 1 /obj/effect/decal/cleanable/ash/attack_hand(mob/user as mob) - user << "[src] sifts through your fingers." + to_chat(user, "[src] sifts through your fingers.") var/turf/simulated/floor/F = get_turf(src) if (istype(F)) F.dirt += 4 diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm index d765c479fb..6ac967fc00 100644 --- a/code/game/objects/effects/decals/contraband.dm +++ b/code/game/objects/effects/decals/contraband.dm @@ -33,12 +33,12 @@ //must place on a wall and user must not be inside a closet/mecha/whatever var/turf/W = A if (!iswall(W) || !isturf(user.loc)) - user << "You can't place this here!" + to_chat(user, "You can't place this here!") return var/placement_dir = get_dir(user, W) if (!(placement_dir in cardinal)) - user << "You must stand directly in front of the wall you wish to place that on." + to_chat(user, "You must stand directly in front of the wall you wish to place that on.") return //just check if there is a poster on or adjacent to the wall @@ -54,10 +54,10 @@ break if (stuff_on_wall) - user << "There is already a poster there!" + to_chat(user, "There is already a poster there!") 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. var/obj/structure/sign/poster/P = new poster_type(user.loc, placement_dir=get_dir(user, W), serial=serial_number, itemtype = src.type) @@ -70,7 +70,7 @@ if(!P) return if(iswall(W) && user && P.loc == user.loc) //Let's check if everything is still there - user << "You place the poster!" + to_chat(user, "You place the poster!") else P.roll_and_drop(P.loc) @@ -148,10 +148,10 @@ if(W.is_wirecutter()) playsound(src.loc, W.usesound, 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 diff --git a/code/game/objects/effects/decals/remains.dm b/code/game/objects/effects/decals/remains.dm index d35da75324..7452586543 100644 --- a/code/game/objects/effects/decals/remains.dm +++ b/code/game/objects/effects/decals/remains.dm @@ -56,7 +56,7 @@ icon_state = "mummified2" /obj/effect/decal/remains/attack_hand(mob/user as mob) - user << "[src] sinks together into a pile of ash." + to_chat(user, "[src] sinks together into a pile of ash.") var/turf/simulated/floor/F = get_turf(src) if (istype(F)) new /obj/effect/decal/cleanable/ash(F) diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index d1de900bae..b7d45a9cb3 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -251,7 +251,7 @@ steam.start() -- spawns the effect B.damage = (B.damage/2) projectiles += B destroyed_event.register(B, src, /obj/effect/effect/smoke/bad/proc/on_projectile_delete) - world << "Damage is: [B.damage]" + to_world("Damage is: [B.damage]") return 1 /obj/effect/effect/smoke/bad/proc/on_projectile_delete(obj/item/projectile/beam/proj) @@ -511,10 +511,10 @@ steam.start() -- spawns the effect s.start() for(var/mob/M in viewers(5, location)) - M << "The solution violently explodes." + to_chat(M, "The solution violently explodes.") for(var/mob/M in viewers(1, location)) if (prob (50 * amount)) - M << "The explosion knocks you down." + to_chat(M, "The explosion knocks you down.") M.Weaken(rand(1,5)) return else @@ -537,7 +537,7 @@ steam.start() -- spawns the effect flash = (amount/4) * flashing_factor for(var/mob/M in viewers(8, location)) - M << "The solution violently explodes." + to_chat(M, "The solution violently explodes.") explosion( location, diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm index 16db09edb6..e33da567f3 100644 --- a/code/game/objects/effects/gibs.dm +++ b/code/game/objects/effects/gibs.dm @@ -18,7 +18,7 @@ proc/Gib(atom/location, var/datum/dna/MobDNA = null) if(gibtypes.len != gibamounts.len || gibamounts.len != gibdirections.len) - world << "Gib list length mismatch!" + to_world("Gib list length mismatch!") return var/obj/effect/decal/cleanable/blood/gibs/gib = null diff --git a/code/game/objects/effects/overlays.dm b/code/game/objects/effects/overlays.dm index 4f5a3e6988..6c8a04143b 100644 --- a/code/game/objects/effects/overlays.dm +++ b/code/game/objects/effects/overlays.dm @@ -67,7 +67,7 @@ if (istype(W, /obj/item/weapon/shovel)) user.visible_message("[user] begins to shovel away \the [src].") if(do_after(user, 40)) - user << "You have finished shoveling!" + to_chat(user, "You have finished shoveling!") qdel(src) return diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index 90d9ae1820..109bebeef5 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -238,7 +238,7 @@ O.owner.apply_damage(1, TOX, O.organ_tag) if(world.time > last_itch + 30 SECONDS) last_itch = world.time - O.owner << "Your [O.name] itches..." + to_chat(O.owner, "Your [O.name] itches...") else if(prob(1)) src.visible_message("\The [src] skitters.") diff --git a/code/game/objects/explosion.dm b/code/game/objects/explosion.dm index bd1d9cbd12..438bb1188d 100644 --- a/code/game/objects/explosion.dm +++ b/code/game/objects/explosion.dm @@ -94,7 +94,7 @@ proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impa var/took = (world.timeofday-start)/10 //You need to press the DebugGame verb to see these now....they were getting annoying and we've collected a fair bit of data. Just -test- changes to explosion code using this please so we can compare - if(Debug2) world.log << "## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds." + if(Debug2) to_world_log("## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds.") //Machines which report explosions. for(var/i,i<=doppler_arrays.len,i++) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index b651e2bfe2..3bacfb8d2d 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -220,10 +220,10 @@ 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(!temp) - user << "You try to use your hand, but realize it is no longer attached!" + to_chat(user, "You try to use your hand, but realize it is no longer attached!") return var/old_loc = src.loc @@ -369,12 +369,12 @@ var/list/global/slot_flags_enumeration = list( if(slot_wear_id) if(!H.w_uniform && (slot_w_uniform in mob_equip)) if(!disable_warning) - H << "You need a jumpsuit before you can attach this [name]." + to_chat(H, "You need a jumpsuit before you can attach this [name].") return 0 if(slot_l_store, slot_r_store) if(!H.w_uniform && (slot_w_uniform in mob_equip)) if(!disable_warning) - H << "You need a jumpsuit before you can attach this [name]." + to_chat(H, "You need a jumpsuit before you can attach this [name].") return 0 if(slot_flags & SLOT_DENYPOCKET) return 0 @@ -383,11 +383,11 @@ var/list/global/slot_flags_enumeration = list( if(slot_s_store) if(!H.wear_suit && (slot_wear_suit in mob_equip)) if(!disable_warning) - H << "You need a suit before you can attach this [name]." + to_chat(H, "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( !(istype(src, /obj/item/device/pda) || istype(src, /obj/item/weapon/pen) || is_type_in_list(src, H.wear_suit.allowed)) ) return 0 @@ -413,7 +413,7 @@ var/list/global/slot_flags_enumeration = list( break if(!allow) if(!disable_warning) - H << "You're not wearing anything you can attach this [name] to." + to_chat(H, "You're not wearing anything you can attach this [name] to.") return 0 return 1 @@ -437,20 +437,20 @@ var/list/global/slot_flags_enumeration = list( 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 << "You can't pick things up!" + to_chat(usr, "You can't pick things up!") return var/mob/living/carbon/C = usr if( usr.stat || usr.restrained() )//Is not asleep/dead and is not restrained - usr << "You can't pick things up!" + to_chat(usr, "You can't pick things up!") return if(src.anchored) //Object isn't anchored - usr << "You can't pick that up!" + to_chat(usr, "You can't pick that up!") return if(C.get_active_hand()) //Hand is not full - usr << "Your hand is full." + to_chat(usr, "Your hand is full.") return if(!istype(src.loc, /turf)) //Object is on a turf - usr << "You can't pick that up!" + to_chat(usr, "You can't pick that up!") return //All checks are done, time to pick it up! usr.UnarmedAttack(src) @@ -485,11 +485,11 @@ var/list/global/slot_flags_enumeration = list( for(var/obj/item/protection in list(H.head, H.wear_mask, H.glasses)) if(protection && (protection.body_parts_covered & EYES)) // you can't stab someone in the eyes wearing a mask! - user << "You're going to need to remove the eye covering first." + to_chat(user, "You're going to need to remove the eye covering first.") return if(!M.has_eyes()) - user << "You cannot locate any eyes on [M]!" + to_chat(user, "You cannot locate any eyes on [M]!") return //this should absolutely trigger even if not aim-impaired in some way @@ -511,7 +511,7 @@ var/list/global/slot_flags_enumeration = list( //if((CLUMSY in user.mutations) && prob(50)) // M = user /* - M << "You stab yourself in the eye." + to_chat(M, "You stab yourself in the eye.") M.sdisabilities |= BLIND M.weakened += 4 M.adjustBruteLoss(10) @@ -524,8 +524,8 @@ var/list/global/slot_flags_enumeration = list( if(H != user) for(var/mob/O in (viewers(M) - user - M)) O.show_message("[M] has been stabbed in the eye with [src] by [user].", 1) - M << "[user] stabs you in the eye with [src]!" - user << "You stab [M] in the eye with [src]!" + to_chat(M, "[user] stabs you in the eye with [src]!") + to_chat(user, "You stab [M] in the eye with [src]!") else user.visible_message( \ "[user] has stabbed themself with [src]!", \ @@ -536,17 +536,17 @@ var/list/global/slot_flags_enumeration = list( if(eyes.damage >= eyes.min_bruised_damage) if(M.stat != 2) if(!(eyes.robotic >= ORGAN_ROBOT)) //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(4) 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(BP_HEAD) if(affecting.take_damage(7)) M:UpdateDamageIcon() @@ -636,13 +636,13 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. var/cannotzoom if((usr.stat && !zoom) || !(istype(usr,/mob/living/carbon/human))) - usr << "You are unable to focus through the [devicename]" + to_chat(usr, "You are unable to focus through the [devicename]") cannotzoom = 1 else if(!zoom && global_hud.darkMask[1] in usr.client.screen) - usr << "Your visor gets in the way of looking through the [devicename]" + to_chat(usr, "Your visor gets in the way of looking through the [devicename]") cannotzoom = 1 else if(!zoom && usr.get_active_hand() != src) - usr << "You are too distracted to look through the [devicename], perhaps if it was in your active hand this might work better" + to_chat(usr, "You are too distracted to look through the [devicename], perhaps if it was in your active hand this might work better") cannotzoom = 1 //We checked above if they are a human and returned already if they weren't. diff --git a/code/game/objects/items/antag_spawners.dm b/code/game/objects/items/antag_spawners.dm index 0d8e18373a..afa7ae66f9 100644 --- a/code/game/objects/items/antag_spawners.dm +++ b/code/game/objects/items/antag_spawners.dm @@ -49,7 +49,7 @@ ghost_query_type = /datum/ghost_query/apprentice /obj/item/weapon/antag_spawner/technomancer_apprentice/attack_self(mob/user) - user << "Teleporter attempting to lock on to your apprentice." + to_chat(user, "Teleporter attempting to lock on to your apprentice.") request_player() /obj/item/weapon/antag_spawner/technomancer_apprentice/request_player() @@ -68,10 +68,10 @@ C.prefs.copy_to(H) H.key = C.key - H << "You are the Technomancer's apprentice! Your goal is to assist them in their mission at the [station_name()]." - H << "Your service has not gone unrewarded, however. Studying under them, you have learned how to use a Manipulation Core \ - of your own. You also have a catalog, to purchase your own functions and equipment as you see fit." - H << "It would be wise to speak to your master, and learn what their plans are for today." + to_chat(H, "You are the Technomancer's apprentice! Your goal is to assist them in their mission at the [station_name()].") + to_chat(H, "Your service has not gone unrewarded, however. Studying under them, you have learned how to use a Manipulation Core \ + of your own. You also have a catalog, to purchase your own functions and equipment as you see fit.") + to_chat(H, "It would be wise to speak to your master, and learn what their plans are for today.") spawn(1) technomancers.add_antagonist(H.mind, 0, 1, 0, 0, 0) diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm index 5a326aa482..d6825967c2 100644 --- a/code/game/objects/items/blueprints.dm +++ b/code/game/objects/items/blueprints.dm @@ -48,7 +48,7 @@ /obj/item/blueprints/attack_self(mob/M as mob) if (!istype(M,/mob/living/carbon/human)) - M << "This stack of blue paper means nothing to you." //monkeys cannot into projecting + to_chat(M, "This stack of blue paper means nothing to you.") //monkeys cannot into projecting return interact() return @@ -62,19 +62,19 @@ switch(href_list["action"]) if ("create_area") if (!(get_area_type() & can_create_areas_in)) - usr << "You can't make a new area here." + to_chat(usr, "You can't make a new area here.") interact() return create_area() if ("edit_area") if (!(get_area_type() & can_rename_areas_in)) - usr << "You can't rename this area." + to_chat(usr, "You can't rename this area.") interact() return edit_area() if ("expand_area") if (!(get_area_type() & can_expand_areas_in)) - usr << "You can't expand this area." + to_chat(usr, "You can't expand this area.") interact() return expand_area() @@ -132,20 +132,20 @@ 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 too large!" + to_chat(usr, "The new area too large!") return else - usr << "Error! Please notify administration!" + to_chat(usr, "Error! Please notify administration!") return var/list/turf/turfs = res var/str = sanitizeSafe(input("New area name:","Blueprint Editing", ""), MAX_NAME_LEN) if(!str || !length(str)) //cancel return if(length(str) > 50) - usr << "Name too long." + to_chat(usr, "Name too long.") return var/area/A = new A.name = str @@ -170,13 +170,13 @@ 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 too large!" + to_chat(usr, "The new area too large!") return else - usr << "Error! Please notify administration!" + to_chat(usr, "Error! Please notify administration!") return var/list/turf/turfs = res @@ -184,11 +184,11 @@ for(var/turf/T in A.contents) turfs -= T // Don't add turfs already in A to A if(turfs.len == 0) - usr << "\The [A] already covers the entire room." + to_chat(usr, "\The [A] already covers the entire room.") return move_turfs_to_area(turfs, A) - usr << "Expanded \the [A] by [turfs.len] turfs" + to_chat(usr, "Expanded \the [A] by [turfs.len] turfs") spawn(5) interact() return @@ -206,11 +206,11 @@ if(!str || !length(str) || str==prevname) //cancel return if(length(str) > 50) - usr << "Text too long." + to_chat(usr, "Text too long.") return set_area_machinery_title(A,str,prevname) A.name = str - usr << "You set the area '[prevname]' title to '[str]'." + to_chat(usr, "You set the area '[prevname]' title to '[str]'.") interact() return @@ -286,13 +286,13 @@ // Remove any existing seeAreaColors_remove() - usr << "\The [src] shows nearby areas in different colors." + to_chat(usr, "\The [src] shows nearby areas in different colors.") var/i = 0 for(var/area/A in range(usr)) if(get_area_type(A) == AREA_SPACE) continue // Don't overlay all of space! var/icon/areaColor = new('icons/misc/debug_rebuild.dmi', "[++i]") - usr << "- [A] as [i]" + to_chat(usr, "- [A] as [i]") for(var/turf/T in A.contents) usr << image(areaColor, T, "blueprints", TURF_LAYER) areaColor_turfs += T @@ -308,13 +308,13 @@ 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 too large!" + to_chat(usr, "The new area too large!") return else - usr << "Error! Please notify administration!" + to_chat(usr, "Error! Please notify administration!") return // Okay we got a room, lets color it seeAreaColors_remove() @@ -322,7 +322,7 @@ for(var/turf/T in res) usr << image(green, T, "blueprints", TURF_LAYER) areaColor_turfs += T - usr << "The space covered by the new area is highlighted in green." + to_chat(usr, "The space covered by the new area is highlighted in green.") /obj/item/blueprints/verb/seeAreaColors_remove() set src in usr diff --git a/code/game/objects/items/contraband_vr.dm b/code/game/objects/items/contraband_vr.dm index 399be72e30..0f9b8acabc 100644 --- a/code/game/objects/items/contraband_vr.dm +++ b/code/game/objects/items/contraband_vr.dm @@ -12,13 +12,13 @@ switch(spawn_chance) if(0 to 49) new /obj/random/gun/guarenteed(usr.loc) - usr << "You got a thing!" + to_chat(usr, "You got a thing!") if(50 to 99) new /obj/item/weapon/bikehorn/rubberducky(usr.loc) new /obj/item/weapon/bikehorn(usr.loc) - usr << "You got two things!" + to_chat(usr, "You got two things!") if(100) - usr << "The box contained nothing!" + to_chat(usr, "The box contained nothing!") return */ var/loot = pick(/obj/effect/landmark/costume, diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 2d62af7f22..66d5fb1176 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -111,13 +111,13 @@ /obj/item/weapon/pen/crayon/attack(mob/M as mob, mob/user as mob) if(M == user) - user << "You take a bite of the crayon and swallow it." + to_chat(user, "You take a bite of the crayon and swallow it.") user.nutrition += 1 user.reagents.add_reagent("crayon_dust",min(5,uses)/3) if(uses) uses -= 5 if(uses <= 0) - to_chat(user,"You ate your crayon!") + to_chat(user, "You ate your crayon!") qdel(src) else ..() @@ -203,7 +203,7 @@ if(uses) uses -= 5 if(uses <= 0) - to_chat(user,"You ate the marker!") + to_chat(user, "You ate the marker!") qdel(src) else ..() diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index ac300ab29b..771684775f 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -1146,7 +1146,7 @@ var/global/list/obj/item/device/pda/PDAs = list() if(L) if(reception_message) - L << reception_message + to_chat(L,reception_message) SSnanoui.update_user_uis(L, src) // Update the receiving user's PDA UI so that they can see the new message /obj/item/device/pda/proc/new_news(var/message) @@ -1389,11 +1389,11 @@ var/global/list/obj/item/device/pda/PDAs = list() var/reagents_length = A.reagents.reagent_list.len to_chat(user, "[reagents_length] chemical agent[reagents_length > 1 ? "s" : ""] found.") for (var/re in A.reagents.reagent_list) - to_chat(user," [re]") + to_chat(user, " [re]") else - to_chat(user,"No active chemical agents found in [A].") + to_chat(user, "No active chemical agents found in [A].") else - to_chat(user,"No significantchemical agents found in [A].") + to_chat(user, "No significantchemical agents found in [A].") if(5) analyze_gases(A, user) @@ -1445,7 +1445,7 @@ var/global/list/obj/item/device/pda/PDAs = list() // feature to the PDA, which would better convey the availability of the feature, but this will work for now. // Inform the user - to_chat(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 /obj/item/device/pda/proc/explode() //This needs tuning. //Sure did. diff --git a/code/game/objects/items/devices/PDA/radio.dm b/code/game/objects/items/devices/PDA/radio.dm index a5a76dd993..56ec64d8a7 100644 --- a/code/game/objects/items/devices/PDA/radio.dm +++ b/code/game/objects/items/devices/PDA/radio.dm @@ -15,7 +15,7 @@ proc/post_signal(var/freq, var/key, var/value, var/key2, var/value2, var/key3, var/value3, s_filter) - //world << "Post: [freq]: [key]=[value], [key2]=[value2]" + //to_world("Post: [freq]: [key]=[value], [key2]=[value2]") var/datum/radio_frequency/frequency = radio_controller.return_frequency(freq) if(!frequency) return @@ -57,9 +57,9 @@ // var/obj/item/device/pda/P = src.loc /* - world << "recvd:[P] : [signal.source]" + to_world("recvd:[P] : [signal.source]") for(var/d in signal.data) - world << "- [d] = [signal.data[d]]" + to_world("- [d] = [signal.data[d]]") */ if (signal.data["type"] == "secbot") if(!botlist) diff --git a/code/game/objects/items/devices/advnifrepair.dm b/code/game/objects/items/devices/advnifrepair.dm index 8a7c0b1da4..ab71b97324 100644 --- a/code/game/objects/items/devices/advnifrepair.dm +++ b/code/game/objects/items/devices/advnifrepair.dm @@ -25,11 +25,11 @@ if(istype(W,/obj/item/stack/nanopaste)) var/obj/item/stack/nanopaste/np = W if(np.use(1) && supply.get_free_space() >= efficiency) - to_chat(user,"You convert some nanopaste into programmed nanites inside \the [src].") + to_chat(user, "You convert some nanopaste into programmed nanites inside \the [src].") supply.add_reagent(id = "nifrepairnanites", amount = efficiency) update_icon() else if(supply.get_free_space() < efficiency) - to_chat(user,"\The [src] is too full. Empty it into a container first.") + to_chat(user, "\The [src] is too full. Empty it into a container first.") return /obj/item/device/nifrepairer/update_icon() @@ -43,21 +43,21 @@ return 0 if(!supply || !supply.total_volume) - to_chat(user,"[src] is empty. Feed it nanopaste.") + to_chat(user, "[src] is empty. Feed it nanopaste.") return 1 if(!target.reagents.get_free_space()) - user << "[target] is already full." + to_chat(user, "[target] is already full.") return 1 var/trans = supply.trans_to(target, 15) - to_chat(user,"You transfer [trans] units of the programmed nanites to [target].") + to_chat(user, "You transfer [trans] units of the programmed nanites to [target].") update_icon() return 1 /obj/item/device/nifrepairer/examine(mob/user) if(..(user, 1)) if(supply.total_volume) - to_chat(user,"\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing.") + to_chat(user, "\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing.") else - to_chat(user,"\The [src] is empty and ready to accept nanopaste.") + to_chat(user, "\The [src] is empty and ready to accept nanopaste.") diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index cc7ac0e4a4..05260e3d2f 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -19,7 +19,7 @@ return ..() else M.death() - user << "ERROR ERROR ERROR" + to_chat(user, "ERROR ERROR ERROR") /obj/item/device/aicard/attack_self(mob/user) diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index d0ae461edd..627145a38f 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -32,7 +32,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) @@ -57,7 +57,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, 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) @@ -104,22 +104,22 @@ /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() for(var/mob/M in src) - M << "Your chameleon-projector deactivates." + to_chat(M, "Your chameleon-projector deactivates.") 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/communicator/phone.dm b/code/game/objects/items/devices/communicator/phone.dm index 66a2b49f69..7b283786c6 100644 --- a/code/game/objects/items/devices/communicator/phone.dm +++ b/code/game/objects/items/devices/communicator/phone.dm @@ -206,15 +206,15 @@ var/rendered = "\icon[src] [text]" for(var/obj/item/device/communicator/comm in communicating) var/turf/T = get_turf(comm) - if(!T) return - //VOREStation Edit Start for commlinks - var/list/mobs_to_relay - if(istype(comm,/obj/item/device/communicator/commlink)) - var/obj/item/device/communicator/commlink/CL = comm - mobs_to_relay = list(CL.nif.human) - else - var/list/in_range = get_mobs_and_objs_in_view_fast(T,world.view,0) //Range of 3 since it's a tiny video display - mobs_to_relay = in_range["mobs"] + if(!T) return + //VOREStation Edit Start for commlinks + var/list/mobs_to_relay + if(istype(comm,/obj/item/device/communicator/commlink)) + var/obj/item/device/communicator/commlink/CL = comm + mobs_to_relay = list(CL.nif.human) + else + var/list/in_range = get_mobs_and_objs_in_view_fast(T,world.view,0) //Range of 3 since it's a tiny video display + mobs_to_relay = in_range["mobs"] //VOREStation Edit End for(var/mob/mob in mobs_to_relay) //We can't use visible_message(), or else we will get an infinite loop if two communicators hear each other. @@ -235,14 +235,14 @@ var/turf/T = get_turf(comm) if(!T) return - //VOREStation Edit Start for commlinks - var/list/mobs_to_relay - if(istype(comm,/obj/item/device/communicator/commlink)) - var/obj/item/device/communicator/commlink/CL = comm - mobs_to_relay = list(CL.nif.human) - else - var/list/in_range = get_mobs_and_objs_in_view_fast(T,world.view,0) //Range of 3 since it's a tiny video display - mobs_to_relay = in_range["mobs"] + //VOREStation Edit Start for commlinks + var/list/mobs_to_relay + if(istype(comm,/obj/item/device/communicator/commlink)) + var/obj/item/device/communicator/commlink/CL = comm + mobs_to_relay = list(CL.nif.human) + else + var/list/in_range = get_mobs_and_objs_in_view_fast(T,world.view,0) //Range of 3 since it's a tiny video display + mobs_to_relay = in_range["mobs"] //VOREStation Edit End for(var/mob/mob in mobs_to_relay) @@ -363,13 +363,13 @@ if(!Adjacent(user) || !video_source) return user.set_machine(video_source) user.reset_view(video_source) - to_chat(user,"Now viewing video session. To leave camera view, close the communicator window OR: OOC -> Cancel Camera View") - to_chat(user,"To return to an active video session, use the communicator in your hand.") + to_chat(user, "Now viewing video session. To leave camera view, close the communicator window OR: OOC -> Cancel Camera View") + to_chat(user, "To return to an active video session, use the communicator in your hand.") spawn(0) while(user.machine == video_source && Adjacent(user)) var/turf/T = get_turf(video_source) if(!T || !is_on_same_plane_or_station(T.z, user.z) || !video_source.can_use()) - user << "The screen bursts into static, then goes black." + to_chat(user, "The screen bursts into static, then goes black.") video_cleanup(user) return sleep(10) @@ -395,4 +395,4 @@ visible_message(.) update_icon() - + diff --git a/code/game/objects/items/devices/debugger.dm b/code/game/objects/items/devices/debugger.dm index a0d41a6124..8c200977af 100644 --- a/code/game/objects/items/devices/debugger.dm +++ b/code/game/objects/items/devices/debugger.dm @@ -25,21 +25,21 @@ if(istype(O, /obj/machinery/power/apc)) var/obj/machinery/power/apc/A = O if(A.emagged || A.hacker) - user << "There is a software error with the device." + to_chat(user, "There is a software error with the device.") else - user << "The device's software appears to be fine." + to_chat(user, "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 << "There is a software error with the device." + to_chat(user, "There is a software error with the device.") else - user << "The device's software appears to be fine." + to_chat(user, "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 << "There is a software error with the device." + to_chat(user, "There is a software error with the device.") else - user << "The device's software appears to be fine." + to_chat(user, "The device's software appears to be fine.") return 1 diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 150c2e1fe5..176d2d6bab 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -53,7 +53,7 @@ if(choice) brightness_level = choice power_usage = brightness_levels[choice] - user << "You set the brightness level on \the [src] to [brightness_level]." + to_chat(user, "You set the brightness level on \the [src] to [brightness_level].") update_icon() /obj/item/device/flashlight/process() @@ -102,15 +102,15 @@ else if(cell.charge > cell.maxcharge*0.75 && cell.charge <= cell.maxcharge) tempdesc += "It appears to have a high amount of power remaining." - user << "[tempdesc]" + to_chat(user, "[tempdesc]") /obj/item/device/flashlight/attack_self(mob/user) if(power_use) 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 if(!cell || cell.charge == 0) - user << "You flick the switch on [src], but nothing happens." + to_chat(user, "You flick the switch on [src], but nothing happens.") return 0 on = !on playsound(src.loc, 'sound/weapons/empty.ogg', 15, 1, -3) @@ -134,38 +134,38 @@ if(istype(H)) for(var/obj/item/clothing/C in list(H.head,H.wear_mask,H.glasses)) if(istype(C) && (C.body_parts_covered & EYES)) - user << "You're going to need to remove [C.name] first." + to_chat(user, "You're going to need to remove [C.name] first.") return var/obj/item/organ/vision if(H.species.vision_organ) vision = H.internal_organs_by_name[H.species.vision_organ] if(!vision) - user << "You can't find any [H.species.vision_organ ? H.species.vision_organ : "eyes"] on [H]!" + to_chat(user, "You can't find any [H.species.vision_organ ? H.species.vision_organ : "eyes"] on [H]!") user.visible_message("\The [user] directs [src] to [M]'s eyes.", \ "You direct [src] to [M]'s eyes.") if(H != user) //can't look into your own eyes buster if(M.stat == DEAD || M.blinded) //mob is dead or fully blind - user << "\The [M]'s pupils do not react to the light!" + to_chat(user, "\The [M]'s pupils do not react to the light!") return if(XRAY in M.mutations) - user << "\The [M] pupils give an eerie glow!" + to_chat(user, "\The [M] pupils give an eerie glow!") if(vision.is_bruised()) - user << "There's visible damage to [M]'s [vision.name]!" + to_chat(user, "There's visible damage to [M]'s [vision.name]!") else if(M.eye_blurry) - user << "\The [M]'s pupils react slower than normally." + to_chat(user, "\The [M]'s pupils react slower than normally.") if(M.getBrainLoss() > 15) - user << "There's visible lag between left and right pupils' reactions." + to_chat(user, "There's visible lag between left and right pupils' reactions.") var/list/pinpoint = list("oxycodone"=1,"tramadol"=5) var/list/dilating = list("space_drugs"=5,"mindbreaker"=1) if(M.reagents.has_any_reagent(pinpoint) || H.ingested.has_any_reagent(pinpoint)) - user << "\The [M]'s pupils are already pinpoint and cannot narrow any more." + to_chat(user, "\The [M]'s pupils are already pinpoint and cannot narrow any more.") else if(M.reagents.has_any_reagent(dilating) || H.ingested.has_any_reagent(dilating)) - user << "\The [M]'s pupils narrow slightly, but are still very dilated." + to_chat(user, "\The [M]'s pupils narrow slightly, but are still very dilated.") else - user << "\The [M]'s pupils narrow." + to_chat(user, "\The [M]'s pupils narrow.") user.setClickCooldown(user.get_attack_speed(src)) //can be used offensively M.flash_eyes() @@ -178,7 +178,7 @@ cell.update_icon() user.put_in_hands(cell) cell = null - user << "You remove the cell from the [src]." + to_chat(user, "You remove the cell from the [src].") playsound(src, 'sound/machines/button.ogg', 30, 1, 0) on = 0 update_icon() @@ -227,13 +227,13 @@ user.drop_item() W.loc = src cell = W - user << "You install a cell in \the [src]." + to_chat(user, "You install a cell in \the [src].") playsound(src, 'sound/machines/button.ogg', 30, 1, 0) update_icon() else - user << "\The [src] already has a cell." + to_chat(user, "\The [src] already has a cell.") else - user << "\The [src] cannot use that type of cell." + to_chat(user, "\The [src] cannot use that type of cell.") else ..() @@ -358,7 +358,7 @@ // Usual checks if(!fuel) - user << "It's out of fuel." + to_chat(user, "It's out of fuel.") return if(on) return @@ -412,7 +412,7 @@ /obj/item/device/flashlight/glowstick/attack_self(mob/user) if(!fuel) - user << "The glowstick has already been turned on." + to_chat(user, "The glowstick has already been turned on.") return if(on) return diff --git a/code/game/objects/items/devices/floor_painter.dm b/code/game/objects/items/devices/floor_painter.dm index 6cf3545524..72e6d2ced7 100644 --- a/code/game/objects/items/devices/floor_painter.dm +++ b/code/game/objects/items/devices/floor_painter.dm @@ -45,11 +45,11 @@ var/turf/simulated/floor/F = A if(!istype(F)) - user << "\The [src] can only be used on station flooring." + to_chat(user, "\The [src] can only be used on station flooring.") return if(!F.flooring || !F.flooring.can_paint || F.broken || F.burnt) - user << "\The [src] cannot paint broken or missing tiles." + to_chat(user, "\The [src] cannot paint broken or missing tiles.") return var/list/decal_data = decals[decal] @@ -63,11 +63,11 @@ config_error = 1 if(config_error) - user << "\The [src] flashes an error light. You might need to reconfigure it." + to_chat(user, "\The [src] flashes an error light. You might need to reconfigure it.") return if(F.decals && F.decals.len > 5 && painting_decal != /obj/effect/floor_decal/reset) - user << "\The [F] has been painted too much; you need to clear it off." + to_chat(user, "\The [F] has been painted too much; you need to clear it off.") return var/painting_dir = 0 @@ -111,7 +111,7 @@ /obj/item/device/floor_painter/examine(mob/user) ..(user) - user << "It is configured to produce the '[decal]' decal with a direction of '[paint_dir]' using [paint_colour] paint." + to_chat(user, "It is configured to produce the '[decal]' decal with a direction of '[paint_dir]' using [paint_colour] paint.") /obj/item/device/floor_painter/verb/choose_colour() set name = "Choose Colour" @@ -124,7 +124,7 @@ var/new_colour = input(usr, "Choose a colour.", "Floor painter", paint_colour) as color|null if(new_colour && new_colour != paint_colour) paint_colour = new_colour - usr << "You set \the [src] to paint with a new colour." + to_chat(usr, "You set \the [src] to paint with a new colour.") /obj/item/device/floor_painter/verb/choose_decal() set name = "Choose Decal" @@ -138,7 +138,7 @@ var/new_decal = input("Select a decal.") as null|anything in decals if(new_decal && !isnull(decals[new_decal])) decal = new_decal - usr << "You set \the [src] decal to '[decal]'." + to_chat(usr, "You set \the [src] decal to '[decal]'.") /obj/item/device/floor_painter/verb/choose_direction() set name = "Choose Direction" @@ -152,4 +152,4 @@ var/new_dir = input("Select a direction.") as null|anything in paint_dirs if(new_dir && !isnull(paint_dirs[new_dir])) paint_dir = new_dir - usr << "You set \the [src] direction to '[paint_dir]'." + to_chat(usr, "You set \the [src] direction to '[paint_dir]'.") diff --git a/code/game/objects/items/devices/hacktool.dm b/code/game/objects/items/devices/hacktool.dm index fb3d8d9bcc..f6fad2efb5 100644 --- a/code/game/objects/items/devices/hacktool.dm +++ b/code/game/objects/items/devices/hacktool.dm @@ -44,27 +44,27 @@ /obj/item/device/multitool/hacktool/proc/attempt_hack(var/mob/user, var/atom/target) if(is_hacking) - user << "You are already hacking!" + to_chat(user, "You are already hacking!") return 0 if(!is_type_in_list(target, supported_types)) - user << "\icon[src] Unable to hack this target!" + to_chat(user, "\icon[src] Unable to hack this target!") return 0 var/found = known_targets.Find(target) if(found) known_targets.Swap(1, found) // Move the last hacked item first return 1 - user << "You begin hacking \the [target]..." + to_chat(user, "You begin hacking \the [target]...") is_hacking = 1 // On average hackin takes ~30 seconds. Fairly small random span to avoid people simply aborting and trying again var/hack_result = do_after(user, (20 SECONDS + rand(0, 10 SECONDS) + rand(0, 10 SECONDS))) is_hacking = 0 if(hack_result && in_hack_mode) - user << "Your hacking attempt was succesful!" + to_chat(user, "Your hacking attempt was succesful!") user.playsound_local(get_turf(src), 'sound/instruments/piano/An6.ogg', 50) else - user << "Your hacking attempt failed!" + to_chat(user, "Your hacking attempt failed!") return 0 known_targets.Insert(1, target) // Insert the newly hacked target first, diff --git a/code/game/objects/items/devices/locker_painter.dm b/code/game/objects/items/devices/locker_painter.dm index 0d264b6a5b..816c9790ff 100644 --- a/code/game/objects/items/devices/locker_painter.dm +++ b/code/game/objects/items/devices/locker_painter.dm @@ -81,7 +81,7 @@ if(istype(A,ctype)) non_closet = 1 if(non_closet) - user << "\The [src] can only be used on closets." + to_chat(user, "\The [src] can only be used on closets.") return var/config_error @@ -89,7 +89,7 @@ if(istype(A,/obj/structure/closet/secure_closet)) var/obj/structure/closet/secure_closet/F = A if(F.broken) - user << "\The [src] cannot paint broken closets." + to_chat(user, "\The [src] cannot paint broken closets.") return var/list/colour_data = colours_secure[colour_secure] @@ -114,7 +114,7 @@ F.update_icon() if(config_error) - user << "\The [src] flashes an error light. You might need to reconfigure it." + to_chat(user, "\The [src] flashes an error light. You might need to reconfigure it.") return /obj/item/device/closet_painter/attack_self(var/mob/user) @@ -126,7 +126,7 @@ /obj/item/device/closet_painter/examine(mob/user) ..(user) - user << "It is configured to produce the '[colour]' paint scheme or the '[colour_secure]' secure closet paint scheme." + to_chat(user, "It is configured to produce the '[colour]' paint scheme or the '[colour_secure]' secure closet paint scheme.") /obj/item/device/closet_painter/verb/choose_colour() set name = "Choose Colour" @@ -140,7 +140,7 @@ var/new_colour = input("Select a colour.") as null|anything in colours if(new_colour && !isnull(colours[new_colour])) colour = new_colour - usr << "You set \the [src] regular closet colour to '[colour]'." + to_chat(usr, "You set \the [src] regular closet colour to '[colour]'.") /obj/item/device/closet_painter/verb/choose_colour_secure() set name = "Choose Secure Colour" @@ -154,4 +154,4 @@ var/new_colour_secure = input("Select a colour.") as null|anything in colours_secure if(new_colour_secure && !isnull(colours_secure[new_colour_secure])) colour_secure = new_colour_secure - usr << "You set \the [src] secure closet colour to '[colour_secure]'." + to_chat(usr, "You set \the [src] secure closet colour to '[colour_secure]'.") diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm index 6ff95fe17d..1ceaa3e9d1 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.drop_from_inventory(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(src.loc, O.usesound, 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 2ffebcb81a..8b7f55e0a9 100644 --- a/code/game/objects/items/devices/paicard.dm +++ b/code/game/objects/items/devices/paicard.dm @@ -239,12 +239,12 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/device/paicard) 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"]) src.looking_for_personality = 1 paiController.findPAI(src, usr) @@ -252,10 +252,10 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/device/paicard) 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...
") M.death(0) removePersonality() if(href_list["wires"]) @@ -269,9 +269,9 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/device/paicard) var/newlaws = sanitize(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) 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 54c9a9539c..8a32988fb6 100644 --- a/code/game/objects/items/devices/pipe_painter.dm +++ b/code/game/objects/items/devices/pipe_painter.dm @@ -28,4 +28,4 @@ /obj/item/device/pipe_painter/examine(mob/user) ..(user) - user << "It is in [mode] mode." + to_chat(user, "It is in [mode] mode.") diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index 5bd91e81b6..d49de71ae1 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -44,7 +44,7 @@ GLOBAL_LIST_BOILERPLATE(all_beacons, /obj/item/device/radio/beacon) /obj/item/device/radio/beacon/syndicate/attack_self(mob/user as mob) if(user) - user << "Locked In" + to_chat(user, "Locked In") new /obj/machinery/power/singularity_beacon/syndicate( 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 617b314600..cc555f8073 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -17,7 +17,7 @@ /obj/item/device/radio/electropack/attack_hand(mob/living/user as mob) if(src == user.back) - user << "You need help taking this off!" + to_chat(user, "You need help taking this off!") return ..() @@ -25,7 +25,7 @@ ..() 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' @@ -95,7 +95,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/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(3, 1, M) s.start() diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 40dc7bb1f7..c0493e1f42 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -239,7 +239,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_world("DEBUG: channel=\"[channel]\" switching to \"[channels[1]]\"") channel = channels[1] connection = secure_radio_connections[channel] else @@ -361,7 +361,7 @@ var/global/list/default_medbay_channels = list( var/list/jamming = is_jammed(src) if(jamming) var/distance = jamming["distance"] - to_chat(M,"\icon[src] You hear the [distance <= 2 ? "loud hiss" : "soft hiss"] of static.") + to_chat(M, "\icon[src] You hear the [distance <= 2 ? "loud hiss" : "soft hiss"] of static.") return FALSE // First, we want to generate a new radio signal @@ -415,7 +415,7 @@ var/global/list/default_medbay_channels = list( return TRUE //Huzzah, sent via subspace else if(adhoc_fallback) //Less huzzah, we have to fallback - to_chat(loc,"\The [src] pings as it falls back to local radio transmission.") + to_chat(loc, "\The [src] pings as it falls back to local radio transmission.") subspace_transmission = FALSE return Broadcast_Message(connection, M, voicemask, pick(M.speak_emote), src, message, displayname, jobname, real_name, M.voice_name, @@ -468,7 +468,7 @@ var/global/list/default_medbay_channels = list( if(signal.data["done"] && position.z in signal.data["level"]) if(adhoc_fallback) - to_chat(loc,"\The [src] pings as it reestablishes subspace communications.") + to_chat(loc, "\The [src] pings as it reestablishes subspace communications.") subspace_transmission = TRUE // we're done here. return TRUE diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 655e6efe31..7a9b07b999 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -31,7 +31,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 << "The mind batterer has been burnt out!" + to_chat(user, "The mind batterer has been burnt out!") return var/list/affected = list() @@ -43,15 +43,15 @@ effective or pretty fucking useless. M.Weaken(rand(10,20)) if(prob(25)) M.Stun(rand(5,10)) - M << "You feel a tremendous, paralyzing wave flood your mind." + to_chat(M, "You feel a tremendous, paralyzing wave flood your mind.") else - M << "You feel a sudden, electric jolt travel through your head." + to_chat(M, "You feel a sudden, electric jolt travel through your head.") add_attack_logs(user,affected,"Used a [name]") playsound(src.loc, 'sound/misc/interference.ogg', 50, 1) - user << "You trigger [src]." + to_chat(user, "You trigger [src].") times_used += 1 if(times_used >= max_uses) icon_state = "battererburnt" diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm index ccd339e180..b4400ab5d5 100644 --- a/code/game/objects/items/devices/transfer_valve.dm +++ b/code/game/objects/items/devices/transfer_valve.dm @@ -20,19 +20,19 @@ var/turf/location = get_turf(src) // For admin logs 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.") message_admins("[key_name_admin(user)] attached both tanks to a transfer valve. (JMP)") log_game("[key_name_admin(user)] attached both tanks to a transfer valve.") @@ -42,15 +42,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 an device attached to the valve, remove it first." + to_chat(user, "There is already an 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/uplink_random_lists.dm b/code/game/objects/items/devices/uplink_random_lists.dm index 23dc77d143..de05f91013 100644 --- a/code/game/objects/items/devices/uplink_random_lists.dm +++ b/code/game/objects/items/devices/uplink_random_lists.dm @@ -114,5 +114,5 @@ var/datum/uplink_random_selection/all_uplink_selection = new/datum/uplink_random /proc/debug_uplink_item_assoc_list() for(var/key in uplink.items_assoc) - world << "[key] - [uplink.items_assoc[key]]" + to_world("[key] - [uplink.items_assoc[key]]") #endif diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index 52a830f811..c26d3f80aa 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -16,7 +16,7 @@ set desc = "Alter the message shouted by your hailer." if(!isnull(insults)) - usr << "The hailer is fried. The tiny input screen just shows a waving ASCII penis." + to_chat(usr, "The hailer is fried. The tiny input screen just shows a waving ASCII penis.") return var/new_message = input(usr, "Please enter new message (leave blank to reset).") as text @@ -25,7 +25,7 @@ else use_message = capitalize(copytext(sanitize(new_message), 1, MAX_MESSAGE_LEN)) - usr << "You configure the hailer to shout \"[use_message]\"." + to_chat(usr, "You configure the hailer to shout \"[use_message]\".") /obj/item/device/hailer/attack_self(mob/living/carbon/user as mob) if (spamcheck) @@ -41,7 +41,7 @@ user.audible_message("[user]'s [name] gurgles something indecipherable and deeply offensive.", "\The [user] holds up \the [name].") insults-- else - user << "*BZZZZZZZZT*" + to_chat(user, "*BZZZZZZZZT*") spamcheck = 1 spawn(20) @@ -49,8 +49,8 @@ /obj/item/device/hailer/emag_act(var/remaining_charges, var/mob/user) if(isnull(insults)) - user << "You overload \the [src]'s voice synthesizer." + to_chat(user, "You overload \the [src]'s voice synthesizer.") insults = rand(1, 3)//to prevent dickflooding return 1 else - user << "The hailer is fried. You can't even fit the sequencer into the input slot." + to_chat(user, "The hailer is fried. You can't even fit the sequencer into the input slot.") diff --git a/code/game/objects/items/glassjar.dm b/code/game/objects/items/glassjar.dm index ce5bfbe91e..60fd8b19eb 100644 --- a/code/game/objects/items/glassjar.dm +++ b/code/game/objects/items/glassjar.dm @@ -22,7 +22,7 @@ if(istype(A, D)) accept = 1 if(!accept) - user << "[A] doesn't fit into \the [src]." + to_chat(user, "[A] doesn't fit into \the [src].") return var/mob/L = A user.visible_message("[user] scoops [L] into \the [src].", "You scoop [L] into \the [src].") @@ -44,7 +44,7 @@ if(1) for(var/obj/O in src) O.loc = user.loc - user << "You take money out of \the [src]." + to_chat(user, "You take money out of \the [src].") contains = 0 update_icon() return diff --git a/code/game/objects/items/godfigures.dm b/code/game/objects/items/godfigures.dm index b1b1e7a4aa..195081aae5 100644 --- a/code/game/objects/items/godfigures.dm +++ b/code/game/objects/items/godfigures.dm @@ -110,7 +110,7 @@ else if(options[choice] == "catrobe") desc = "A painted holy figure of a plain looking Tajaran in a robe." - M << "The religious icon is now a [choice]. All hail!" + to_chat(M, "The religious icon is now a [choice]. All hail!") return 1 @@ -127,5 +127,5 @@ if(src && input && !M.stat && in_range(M,src)) name = "icon of " + input - M << "You name the figure. Glory to [input]!." + to_chat(M, "You name the figure. Glory to [input]!.") return 1 \ No newline at end of file diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm index e24a727b99..c3bc83d3b9 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 << "\The [src] breaks into tiny pieces and collapses!" + to_chat(O, "\The [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/nanopaste.dm b/code/game/objects/items/stacks/nanopaste.dm index 3a5bdbf11d..bc1f6486c1 100644 --- a/code/game/objects/items/stacks/nanopaste.dm +++ b/code/game/objects/items/stacks/nanopaste.dm @@ -24,7 +24,7 @@ user.visible_message("\The [user] applied some [src] on [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 diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index 53dc72faaa..bc21de5e07 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -26,17 +26,17 @@ if(istype(W,/obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if (get_amount() < 1 || CC.get_amount() < 5) - user << "You need five lengths of coil and one sheet of glass to make wired glass." + to_chat(user, "You need five lengths of coil and one sheet of glass to make wired glass.") return CC.use(5) use(1) - user << "You attach wire to the [name]." + to_chat(user, "You attach wire to the [name].") new /obj/item/stack/light_w(user.loc) else if(istype(W, /obj/item/stack/rods)) var/obj/item/stack/rods/V = W if (V.get_amount() < 1 || get_amount() < 1) - user << "You need one rod and one sheet of glass to make reinforced glass." + to_chat(user, "You need one rod and one sheet of glass to make reinforced glass.") return var/obj/item/stack/material/glass/reinforced/RG = new (user.loc) diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index 531fcbf144..f85bd944fc 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -107,7 +107,7 @@ //visible message on mobs is defined as visible_message(var/message, var/self_message, var/blind_message) usr.visible_message("\The [usr] starts cutting hair off \the [src]", "You start cutting the hair off \the [src]", "You hear the sound of a knife rubbing against flesh") if(do_after(user,50)) - usr << "You cut the hair from this [src.singular_name]" + to_chat(usr, "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/material/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 984c5b97f6..1a50df2e3e 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -58,9 +58,9 @@ /obj/item/stack/examine(mob/user) if(..(user, 1)) if(!uses_charge) - 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.") else - user << "There is enough charge for [get_amount()]." + to_chat(user, "There is enough charge for [get_amount()].") /obj/item/stack/attack_self(mob/user as mob) list_recipes(user) @@ -126,21 +126,21 @@ if (!can_use(required)) if (produced>1) - user << "You haven't got enough [src] to build \the [produced] [recipe.title]\s!" + to_chat(user, "You haven't got enough [src] to build \the [produced] [recipe.title]\s!") else - user << "You haven't got enough [src] to build \the [recipe.title]!" + to_chat(user, "You haven't got enough [src] to build \the [recipe.title]!") return if (recipe.one_per_turf && (locate(recipe.result_type) in user.loc)) - user << "There is another [recipe.title] here!" + to_chat(user, "There is another [recipe.title] here!") return if (recipe.on_floor && !isfloor(user.loc)) - user << "\The [recipe.title] must be constructed on the floor!" + to_chat(user, "\The [recipe.title] must be constructed on the floor!") return if (recipe.time) - user << "Building [recipe.title] ..." + to_chat(user, "Building [recipe.title] ...") if (!do_after(user, recipe.time)) return @@ -326,7 +326,7 @@ continue var/transfer = src.transfer_to(item) if (transfer) - user << "You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s." + to_chat(user, "You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s.") if(!amount) break diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm index b0c48fffa2..0a6d47b3c0 100644 --- a/code/game/objects/items/stacks/telecrystal.dm +++ b/code/game/objects/items/stacks/telecrystal.dm @@ -16,11 +16,11 @@ safe_blink(target, 14) use(5) else - user << "There are not enough telecrystals to do that." + to_chat(user, "There are not enough telecrystals to do that.") /obj/item/stack/telecrystal/attack_self(mob/user as mob) if(user.mind.accept_tcrystals) //Checks to see if antag type allows for tcrystals - user << "You use \the [src], adding [src.amount] to your balance." + to_chat(user, "You use \the [src], adding [src.amount] to your balance.") user.mind.tcrystals += amount use(amount) return \ No newline at end of file diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index fca7ae8ca7..43bf50f7eb 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -49,7 +49,7 @@ if(!proximity) return if (istype(A, /obj/structure/reagent_dispensers/watertank) && get_dist(src,A) <= 1) A.reagents.trans_to_obj(src, 10) - user << "You fill the balloon with the contents of [A]." + to_chat(user, "You fill the balloon with the contents of [A].") src.desc = "A translucent balloon with some form of liquid sloshing around in it." src.update_icon() return @@ -58,15 +58,15 @@ if(istype(O, /obj/item/weapon/reagent_containers/glass)) 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("pacid", 1)) - user << "The acid chews through the balloon!" + to_chat(user, "The acid chews through the balloon!") O.reagents.splash(user, reagents.total_volume) qdel(src) else src.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_obj(src, 10) src.update_icon() return @@ -150,7 +150,7 @@ examine(mob/user) if(..(user, 2) && bullets) - user << "It is loaded with [bullets] foam darts!" + to_chat(user, "It is loaded with [bullets] foam darts!") attackby(obj/item/I as obj, mob/user as mob) if(istype(I, /obj/item/toy/ammo/crossbow)) @@ -158,9 +158,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.") afterattack(atom/target as mob|obj|turf|area, mob/user as mob, flag) @@ -269,12 +269,12 @@ attack_self(mob/user as mob) src.active = !( src.active ) if (src.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) src.item_state = "[icon_state]_blade" src.w_class = ITEMSIZE_LARGE 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) src.item_state = "[icon_state]" src.w_class = ITEMSIZE_SMALL @@ -365,7 +365,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/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(2, 0, src) @@ -406,12 +406,12 @@ else if (istype(A, /obj/structure/reagent_dispensers/watertank) && get_dist(src,A) <= 1) A.reagents.trans_to_obj(src, 10) - user << "You refill your flower!" + to_chat(user, "You refill your flower!") return else if (src.reagents.total_volume < 1) src.empty = 1 - user << "Your flower has run dry!" + to_chat(user, "Your flower has run dry!") return else @@ -433,7 +433,7 @@ for(var/atom/T in get_turf(D)) D.reagents.touch(T) if(ismob(T) && T:client) - T:client << "\The [user] has sprayed you with water!" + to_chat(T:client, "\The [user] has sprayed you with water!") sleep(4) qdel(D) @@ -441,7 +441,7 @@ /obj/item/toy/waterflower/examine(mob/user) if(..(user, 0)) - user << text("\icon[] [] units of water left!", src, src.reagents.total_volume) + to_chat(user, "\icon[src] [src.reagents.total_volume] units of water left!") /* * Bosun's whistle @@ -458,7 +458,7 @@ /obj/item/toy/bosunwhistle/attack_self(mob/user as mob) if(cooldown < world.time - 35) - user << "You blow on [src], creating an ear-splitting noise!" + to_chat(user, "You blow on [src], creating an ear-splitting noise!") playsound(user, 'sound/misc/boatswain.ogg', 20, 1) cooldown = world.time @@ -473,14 +473,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 diff --git a/code/game/objects/items/weapons/autopsy.dm b/code/game/objects/items/weapons/autopsy.dm index e1c165bc2f..94a2636798 100644 --- a/code/game/objects/items/weapons/autopsy.dm +++ b/code/game/objects/items/weapons/autopsy.dm @@ -80,7 +80,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 = "" diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm index 39fff82a82..9d05d1541c 100644 --- a/code/game/objects/items/weapons/cigs_lighters.dm +++ b/code/game/objects/items/weapons/cigs_lighters.dm @@ -144,15 +144,15 @@ CIGARETTE PACKETS ARE IN FANCY.DM var/smoke_percent = round((smoketime / max_smoketime) * 100) switch(smoke_percent) if(90 to INFINITY) - user << "[src] is still fresh." + to_chat(user, "[src] is still fresh.") if(60 to 90) - user << "[src] has a good amount of burn time remaining." + to_chat(user, "[src] has a good amount of burn time remaining.") if(30 to 60) - user << "[src] is about half finished." + to_chat(user, "[src] is about half finished.") if(10 to 30) - user << "[src] is starting to burn low." + to_chat(user, "[src] is starting to burn low.") else - user << "[src] is nearly burnt out!" + to_chat(user, "[src] is nearly burnt out!") /obj/item/clothing/mask/smokable/proc/light(var/flavor_text = "[usr] lights the [name].") @@ -202,7 +202,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM if(ismob(loc)) var/mob/living/M = loc if (!nomessage) - 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 = initial(icon_state) item_state = initial(item_state) @@ -302,12 +302,12 @@ CIGARETTE PACKETS ARE IN FANCY.DM if(istype(glass)) //you can dip cigarettes into beakers var/transfered = glass.reagents.trans_to_obj(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/smokable/cigarette/attack_self(mob/user as mob) if(lit == 1) @@ -420,10 +420,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM if (istype(W, /obj/item/weapon/reagent_containers/food/snacks)) var/obj/item/weapon/reagent_containers/food/snacks/grown/G = W if (!G.dry) - user << "[G] must be dried before you stuff it into [src]." + to_chat(user, "[G] must be dried before you stuff it into [src].") return if (smoketime) - user << "[src] is already packed." + to_chat(user, "[src] is already packed.") return max_smoketime = 1000 smoketime = 1000 @@ -479,10 +479,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM if (istype(W, /obj/item/weapon/reagent_containers/food/snacks)) var/obj/item/weapon/reagent_containers/food/snacks/grown/G = W if (!G.dry) - user << "[G] must be dried before you roll it into [src]." + to_chat(user, "[G] must be dried before you roll it into [src].") return var/obj/item/clothing/mask/smokable/cigarette/joint/J = new /obj/item/clothing/mask/smokable/cigarette/joint(user.loc) - to_chat(usr,"You roll the [G.name] into a joint!") + to_chat(usr, "You roll the [G.name] into a joint!") J.add_fingerprint(user) if(G.reagents) G.reagents.trans_to_obj(J, G.reagents.total_volume) @@ -532,7 +532,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM if(prob(95)) 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.") if (user.get_left_hand() == src) user.apply_damage(2,BURN,"l_hand") else diff --git a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm index 6eb53a10f3..097f465a51 100644 --- a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm +++ b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm @@ -53,9 +53,9 @@ /obj/item/weapon/circuitboard/security/emag_act(var/remaining_charges, var/mob/user) if(emagged) - user << "Circuit lock is already removed." + to_chat(user, "Circuit lock is already removed.") return - user << "You override the circuit lock and open controls." + to_chat(user, "You override the circuit lock and open controls.") emagged = 1 locked = 0 return 1 @@ -63,26 +63,26 @@ /obj/item/weapon/circuitboard/security/attackby(obj/item/I as obj, mob/user as mob) if(istype(I,/obj/item/weapon/card/id)) if(emagged) - user << "Circuit lock does not respond." + to_chat(user, "Circuit lock does not respond.") return if(check_access(I)) locked = !locked - user << "You [locked ? "" : "un"]lock the circuit controls." + to_chat(user, "You [locked ? "" : "un"]lock the circuit controls.") else - user << "Access denied." + to_chat(user, "Access denied.") else if(istype(I,/obj/item/device/multitool)) if(locked) - user << "Circuit controls are locked." + to_chat(user, "Circuit controls are locked.") return var/existing_networks = jointext(network,",") var/input = sanitize(input(usr, "Which networks would you like to connect this camera console circuit to? Seperate networks with a comma. No Spaces!\nFor example: SS13,Security,Secret ", "Multitool-Circuitboard interface", existing_networks)) 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, ",") tempnetwork = difflist(tempnetwork,restricted_camera_networks,1) 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 network = tempnetwork return diff --git a/code/game/objects/items/weapons/circuitboards/computer/supply.dm b/code/game/objects/items/weapons/circuitboards/computer/supply.dm index 324f1c1a06..a19ecd1d8e 100644 --- a/code/game/objects/items/weapons/circuitboards/computer/supply.dm +++ b/code/game/objects/items/weapons/circuitboards/computer/supply.dm @@ -39,5 +39,5 @@ 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 diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm index 4533f41537..c325600847 100644 --- a/code/game/objects/items/weapons/cosmetics.dm +++ b/code/game/objects/items/weapons/cosmetics.dm @@ -29,7 +29,7 @@ name = "[colour] lipstick" /obj/item/weapon/lipstick/attack_self(mob/user as mob) - user << "You twist \the [src] [open ? "closed" : "open"]." + to_chat(user, "You twist \the [src] [open ? "closed" : "open"].") open = !open if(open) icon_state = "[initial(icon_state)]_[colour]" @@ -44,7 +44,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].", \ @@ -60,7 +60,7 @@ H.lip_style = colour H.update_icons_body() else - user << "Where are the lips on that?" + to_chat(user, "Where are the lips on that?") //you can wipe off lipstick with paper! see code/modules/paperwork/paper.dm, paper/attack() diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index ac0a93941b..9000ec4b1f 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -122,7 +122,7 @@ var/mob/living/carbon/human/H = M if(!istype(H)) - user << "Apparently it didn't work..." + to_chat(user, "Apparently it didn't work...") return // Used by admin log. diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm index d4a29d47f3..c4d0bf657e 100644 --- a/code/game/objects/items/weapons/explosives.dm +++ b/code/game/objects/items/weapons/explosives.dm @@ -31,7 +31,7 @@ /obj/item/weapon/plastique/attackby(var/obj/item/I, var/mob/user) if(I.is_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.") playsound(src, I.usesound, 50, 1) else if(I.is_wirecutter() || istype(I, /obj/item/device/multitool) || istype(I, /obj/item/device/assembly/signaler )) wires.Interact(user) @@ -43,14 +43,14 @@ if(user.get_active_hand() == src) newtime = CLAMP(newtime, 10, 60000) timer = newtime - user << "Timer set for [timer] seconds." + to_chat(user, "Timer set for [timer] seconds.") /obj/item/weapon/plastique/afterattack(atom/movable/target, mob/user, flag) if (!flag) 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...") user.do_attack_animation(target) if(do_after(user, 50) && in_range(user, target)) @@ -66,7 +66,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_overlay - 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 44242719fd..6445c205a9 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -72,13 +72,13 @@ if( istype(target, /obj/structure/reagent_dispensers/watertank) && flag) var/obj/o = target var/amount = o.reagents.trans_to_obj(src, 50) - user << "You fill [src] with [amount] units of the contents of [target]." + to_chat(user, "You fill [src] with [amount] units of the contents of [target].") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) 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/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm index 498cad3f68..6cd2a65774 100644 --- a/code/game/objects/items/weapons/flamethrower.dm +++ b/code/game/objects/items/weapons/flamethrower.dm @@ -86,7 +86,7 @@ if(W.is_screwdriver() && igniter && !lit) status = !status - user << "[igniter] is now [status ? "secured" : "unsecured"]!" + to_chat(user, "[igniter] is now [status ? "secured" : "unsecured"]!") update_icon() return @@ -102,7 +102,7 @@ if(istype(W,/obj/item/weapon/tank/phoron)) if(ptank) - user << "There appears to already be a phoron tank loaded in [src]!" + to_chat(user, "There appears to already be a phoron tank loaded in [src]!") return user.drop_item() ptank = W @@ -122,7 +122,7 @@ if(user.stat || user.restrained() || user.lying) return user.set_machine(src) if(!ptank) - user << "Attach a phoron tank first!" + to_chat(user, "Attach a phoron tank first!") return var/dat = text("Flamethrower ([lit ? "Lit" : "Unlit"])
\n Tank Pressure: [ptank.air_contents.return_pressure()]
\nAmount to throw: - - - [throw_amount] + + +
\nRemove phorontank - Close
") user << browse(dat, "window=flamethrower;size=600x300") diff --git a/code/game/objects/items/weapons/gift_wrappaper.dm b/code/game/objects/items/weapons/gift_wrappaper.dm index db9748e6af..d342e30863 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 << "The gift was empty!" + to_chat(user, "The gift was empty!") qdel(src) return @@ -41,16 +41,16 @@ /obj/effect/spresent/relaymove(mob/user as mob) if (user.stat) return - user << "You can't move." + to_chat(user, "You can't move.") /obj/effect/spresent/attackby(obj/item/weapon/W as obj, mob/user as mob) ..() if (!W.is_wirecutter()) - user << "I need wirecutters for that." + to_chat(user, "I need wirecutters for that.") return - user << "You cut open the present." + to_chat(user, "You cut open the present.") for(var/mob/M in src) //Should only be one but whatever. M.loc = src.loc @@ -127,13 +127,13 @@ /obj/item/weapon/wrapping_paper/attackby(obj/item/weapon/W as obj, mob/living/user as mob) ..() if (!( locate(/obj/structure/table, src.loc) )) - user << "You MUST put the paper on a table!" + to_chat(user, "You MUST put the paper on a table!") if (W.w_class < ITEMSIZE_LARGE) var/obj/item/I = user.get_inactive_hand() if(I.is_wirecutter()) var/a_used = 2 ** (src.w_class - 1) if (src.amount < a_used) - user << "You need more paper!" + to_chat(user, "You need more paper!") return else if(istype(W, /obj/item/smallDelivery) || istype(W, /obj/item/weapon/gift)) //No gift wrapping gifts! @@ -155,15 +155,15 @@ qdel(src) return else - user << "You need scissors!" + to_chat(user, "You need scissors!") else - user << "The object is FAR too large!" + to_chat(user, "The object is FAR too large!") return /obj/item/weapon/wrapping_paper/examine(mob/user) if(..(user, 1)) - user << text("There is about [] square units of paper left!", src.amount) + to_chat(user, "There is about [src.amount] square units of paper left!") /obj/item/weapon/wrapping_paper/attack(mob/target as mob, mob/user as mob) if (!istype(target, /mob/living/carbon/human)) return @@ -182,6 +182,6 @@ add_attack_logs(user,H,"Wrapped with [src]") else - user << "You need more paper." + to_chat(user, "You need more paper.") else - user << "They are moving around too much. A straightjacket would help." + to_chat(user, "They are moving around too much. A straightjacket would help.") diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index eaed5f9f4c..087265ca5b 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -80,10 +80,10 @@ if(ishuman(M)) var/obj/item/organ/internal/eyes/E = H.internal_organs_by_name[O_EYES] if (E && E.damage >= E.min_bruised_damage) - M << "Your eyes start to burn badly!" + to_chat(M, "Your eyes start to burn badly!") if(!banglet && !(istype(src , /obj/item/weapon/grenade/flashbang/clusterbang))) if (E.damage >= E.min_broken_damage) - M << "You can't see anything!" + to_chat(M, "You can't see anything!") if (M.ear_damage >= 15) to_chat(M, "Your ears start to ring badly!") if(!banglet && !(istype(src , /obj/item/weapon/grenade/flashbang/clusterbang))) diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index d7512f54b1..ac24d42255 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -16,7 +16,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?") activate(user) add_fingerprint(user) @@ -30,7 +30,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) @@ -47,17 +47,17 @@ /obj/item/weapon/grenade/examine(mob/user) if(..(user, 0)) if(det_time > 1) - user << "The timer is set to [det_time/10] seconds." + to_chat(user, "The timer is set to [det_time/10] seconds.") return if(det_time == null) return - 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!") activate(user) add_fingerprint(user) @@ -95,16 +95,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) ..() return diff --git a/code/game/objects/items/weapons/hydroponics.dm b/code/game/objects/items/weapons/hydroponics.dm index 749f1a08b9..15c1478bf3 100644 --- a/code/game/objects/items/weapons/hydroponics.dm +++ b/code/game/objects/items/weapons/hydroponics.dm @@ -25,9 +25,9 @@ mode = !mode switch (mode) if(1) - usr << "The bag now picks up all seeds in a tile at once." + to_chat(usr, "The bag now picks up all seeds in a tile at once.") if(0) - usr << "The bag now picks up one seed pouch at a time." + to_chat(usr, "The bag now picks up one seed pouch at a time.") /obj/item/seeds/attackby(var/obj/item/O as obj, var/mob/user as mob) ..() @@ -42,10 +42,10 @@ else S.item_quants[G.name] = 1 else - user << "The seed bag is full." + to_chat(user, "The seed bag is full.") S.updateUsrDialog() return - user << "You pick up all the seeds." + to_chat(user, "You pick up all the seeds.") else if (S.contents.len < S.capacity) S.contents += src; @@ -54,7 +54,7 @@ else S.item_quants[name] = 1 else - user << "The seed bag is full." + to_chat(user, "The seed bag is full.") S.updateUsrDialog() return diff --git a/code/game/objects/items/weapons/id cards/cards.dm b/code/game/objects/items/weapons/id cards/cards.dm index 389601ef1f..c84c4f781e 100644 --- a/code/game/objects/items/weapons/id cards/cards.dm +++ b/code/game/objects/items/weapons/id cards/cards.dm @@ -98,9 +98,9 @@ if(istype(O, /obj/item/stack/telecrystal)) var/obj/item/stack/telecrystal/T = O if(T.amount < 1) - usr << "You are not adding enough telecrystals to fuel \the [src]." + to_chat(usr, "You are not adding enough telecrystals to fuel \the [src].") return uses += T.amount/2 //Gives 5 uses per 10 TC uses = CEILING(uses, 1) //Ensures no decimal uses nonsense, rounds up to be nice - usr << "You add \the [O] to \the [src]. Increasing the uses of \the [src] to [uses]." + to_chat(usr, "You add \the [O] to \the [src]. Increasing the uses of \the [src] to [uses].") qdel(O) \ No newline at end of file diff --git a/code/game/objects/items/weapons/id cards/station_ids.dm b/code/game/objects/items/weapons/id cards/station_ids.dm index 7a2e39014c..56cdde182e 100644 --- a/code/game/objects/items/weapons/id cards/station_ids.dm +++ b/code/game/objects/items/weapons/id cards/station_ids.dm @@ -35,9 +35,9 @@ set src in oview(1) if(in_range(usr, src)) show(usr) - usr << desc + to_chat(usr,desc) else - usr << "It is too far away." + to_chat(usr, "It is too far away.") /obj/item/weapon/card/id/proc/prevent_tracking() return 0 @@ -108,10 +108,10 @@ set category = "Object" set src in usr - usr << text("\icon[] []: The current assignment on the card is [].", src, src.name, src.assignment) - usr << "The blood type on the card is [blood_type]." - usr << "The DNA hash on the card is [dna_hash]." - usr << "The fingerprint hash on the card is [fingerprint_hash]." + to_chat(usr, "\icon[src] [src.name]: The current assignment on the card is [src.assignment].") + to_chat(usr, "The blood type on the card is [blood_type].") + to_chat(usr, "The DNA hash on the card is [dna_hash].") + to_chat(usr, "The fingerprint hash on the card is [fingerprint_hash].") return /obj/item/weapon/card/id/get_worn_icon_state(var/slot_name) diff --git a/code/game/objects/items/weapons/id cards/syndicate_ids.dm b/code/game/objects/items/weapons/id cards/syndicate_ids.dm index bbf05718fc..68cb0298a4 100644 --- a/code/game/objects/items/weapons/id cards/syndicate_ids.dm +++ b/code/game/objects/items/weapons/id cards/syndicate_ids.dm @@ -91,7 +91,7 @@ var/user = usr if(href_list["electronic_warfare"]) electronic_warfare = text2num(href_list["electronic_warfare"]) - user << "Electronic warfare [electronic_warfare ? "enabled" : "disabled"]." + to_chat(user, "Electronic warfare [electronic_warfare ? "enabled" : "disabled"].") else if(href_list["set"]) switch(href_list["set"]) if("Age") @@ -101,20 +101,20 @@ age = initial(age) else age = new_age - user << "Age has been set to '[age]'." + to_chat(user, "Age has been set to '[age]'.") . = 1 if("Appearance") var/datum/card_state/choice = input(user, "Select the appearance for this card.", "Agent Card Appearance") as null|anything in id_card_states() if(choice && CanUseTopic(user, state)) src.icon_state = choice.icon_state src.item_state = choice.item_state - usr << "Appearance changed to [choice]." + to_chat(usr, "Appearance changed to [choice].") . = 1 if("Assignment") var/new_job = sanitize(input(user,"What assignment would you like to put on this card?\nChanging assignment will not grant or remove any access levels.","Agent Card Assignment", assignment) as null|text) if(!isnull(new_job) && CanUseTopic(user, state)) src.assignment = new_job - user << "Occupation changed to '[new_job]'." + to_chat(user, "Occupation changed to '[new_job]'.") update_name() . = 1 if("Blood Type") @@ -126,7 +126,7 @@ var/new_blood_type = sanitize(input(user,"What blood type would you like to be written on this card?","Agent Card Blood Type",default) as null|text) if(!isnull(new_blood_type) && CanUseTopic(user, state)) src.blood_type = new_blood_type - user << "Blood type changed to '[new_blood_type]'." + to_chat(user, "Blood type changed to '[new_blood_type]'.") . = 1 if("DNA Hash") var/default = dna_hash @@ -137,7 +137,7 @@ var/new_dna_hash = sanitize(input(user,"What DNA hash would you like to be written on this card?","Agent Card DNA Hash",default) as null|text) if(!isnull(new_dna_hash) && CanUseTopic(user, state)) src.dna_hash = new_dna_hash - user << "DNA hash changed to '[new_dna_hash]'." + to_chat(user, "DNA hash changed to '[new_dna_hash]'.") . = 1 if("Fingerprint Hash") var/default = fingerprint_hash @@ -148,24 +148,24 @@ var/new_fingerprint_hash = sanitize(input(user,"What fingerprint hash would you like to be written on this card?","Agent Card Fingerprint Hash",default) as null|text) if(!isnull(new_fingerprint_hash) && CanUseTopic(user, state)) src.fingerprint_hash = new_fingerprint_hash - user << "Fingerprint hash changed to '[new_fingerprint_hash]'." + to_chat(user, "Fingerprint hash changed to '[new_fingerprint_hash]'.") . = 1 if("Name") var/new_name = sanitizeName(input(user,"What name would you like to put on this card?","Agent Card Name", registered_name) as null|text) if(!isnull(new_name) && CanUseTopic(user, state)) src.registered_name = new_name update_name() - user << "Name changed to '[new_name]'." + to_chat(user, "Name changed to '[new_name]'.") . = 1 if("Photo") set_id_photo(user) - user << "Photo changed." + to_chat(user, "Photo changed.") . = 1 if("Sex") var/new_sex = sanitize(input(user,"What sex would you like to put on this card?","Agent Card Sex", sex) as null|text) if(!isnull(new_sex) && CanUseTopic(user, state)) src.sex = new_sex - user << "Sex changed to '[new_sex]'." + to_chat(user, "Sex changed to '[new_sex]'.") . = 1 if("Factory Reset") if(alert("This will factory reset the card, including access and owner. Continue?", "Factory Reset", "No", "Yes") == "Yes" && CanUseTopic(user, state)) @@ -181,7 +181,7 @@ registered_name = initial(registered_name) unset_registered_user() sex = initial(sex) - user << "All information has been deleted from \the [src]." + to_chat(user, "All information has been deleted from \the [src].") . = 1 // Always update the UI, or buttons will spin indefinitely diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index ff4146b8a0..0de385500e 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -53,7 +53,7 @@ return 0 /obj/item/weapon/implant/proc/meltdown() //breaks it down, making implant unrecongizible - imp_in << "You feel something melting inside [part ? "your [part.name]" : "you"]!" + to_chat(imp_in, "You feel something melting inside [part ? "your [part.name]" : "you"]!") if (part) part.take_damage(burn = 15, used_weapon = "Electronics meltdown") else @@ -284,7 +284,7 @@ Implant Specifics:
"} var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "") phrase = replace_characters(phrase, replacechars) usr.mind.store_memory("Explosive implant in [source] can be activated by saying something containing the phrase ''[src.phrase]'', say [src.phrase] to attempt to activate.", 0, 0) - usr << "The implanted explosive implant in [source] can be activated by saying something containing the phrase ''[src.phrase]'', say [src.phrase] to attempt to activate." + to_chat(usr, "The implanted explosive implant in [source] can be activated by saying something containing the phrase ''[src.phrase]'', say [src.phrase] to attempt to activate.") /obj/item/weapon/implant/explosive/emp_act(severity) if (malfunction) @@ -381,9 +381,9 @@ the implant may become unstable and either pre-maturely inject the subject or si if((!cause) || (!src.imp_in)) return 0 var/mob/living/carbon/R = src.imp_in src.reagents.trans_to_mob(R, cause, CHEM_BLOOD) - R << "You hear a faint *beep*." + to_chat(R, "You hear a faint *beep*.") if(!src.reagents.total_volume) - R << "You hear a faint click from your chest." + to_chat(R, "You hear a faint click from your chest.") playsound(R, 'sound/weapons/empty.ogg', 10, 1) spawn(0) qdel(src) @@ -472,7 +472,7 @@ the implant may become unstable and either pre-maturely inject the subject or si if (src.uses < 1) return 0 if (emote == "pale") src.uses-- - source << "You feel a sudden surge of energy!" + to_chat(source, "You feel a sudden surge of energy!") source.SetStunned(0) source.SetWeakened(0) source.SetParalysis(0) @@ -481,7 +481,7 @@ the implant may become unstable and either pre-maturely inject the subject or si /obj/item/weapon/implant/adrenalin/post_implant(mob/source) source.mind.store_memory("A implant can be activated by using the pale emote, say *pale to attempt to activate.", 0, 0) - source << "The implanted freedom implant can be activated by using the pale emote, say *pale to attempt to activate." + to_chat(source, "The implanted freedom implant can be activated by using the pale emote, say *pale to attempt to activate.") ////////////////////////////// // Death Alarm Implant @@ -595,7 +595,7 @@ the implant may become unstable and either pre-maturely inject the subject or si return 0 if (emote == src.activation_emote) - source << "The air glows as \the [src.scanned.name] uncompresses." + to_chat(source, "The air glows as \the [src.scanned.name] uncompresses.") activate() /obj/item/weapon/implant/compressed/activate() @@ -610,7 +610,7 @@ the implant may become unstable and either pre-maturely inject the subject or si src.activation_emote = input("Choose activation emote:") in list("blink", "blink_r", "eyebrow", "chuckle", "twitch", "frown", "nod", "blush", "giggle", "grin", "groan", "shrug", "smile", "pale", "sniff", "whimper", "wink") if (source.mind) source.mind.store_memory("Compressed matter implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.", 0, 0) - source << "The implanted compressed matter implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate." + to_chat(source, "The implanted compressed matter implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.") /obj/item/weapon/implant/compressed/islegal() diff --git a/code/game/objects/items/weapons/implants/implantcase.dm b/code/game/objects/items/weapons/implants/implantcase.dm index 93fef6ca92..3bcb295e2a 100644 --- a/code/game/objects/items/weapons/implants/implantcase.dm +++ b/code/game/objects/items/weapons/implants/implantcase.dm @@ -35,11 +35,11 @@ if(!src.imp) return if(!src.imp.allow_reagents) return if(src.imp.reagents.total_volume >= src.imp.reagents.maximum_volume) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") else spawn(5) I.reagents.trans_to_obj(src.imp, 5) - user << "You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units." + to_chat(user, "You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units.") else if (istype(I, /obj/item/weapon/implanter)) var/obj/item/weapon/implanter/M = I if (M.imp) diff --git a/code/game/objects/items/weapons/implants/implantchair.dm b/code/game/objects/items/weapons/implants/implantchair.dm index 5b1ba3f6c5..e1464bd124 100644 --- a/code/game/objects/items/weapons/implants/implantchair.dm +++ b/code/game/objects/items/weapons/implants/implantchair.dm @@ -108,10 +108,10 @@ put_mob(mob/living/carbon/M as mob) if(!iscarbon(M)) - usr << "\The [src] cannot hold this!" + to_chat(usr, "\The [src] cannot hold this!") return if(src.occupant) - usr << "\The [src] is already occupied!" + to_chat(usr, "\The [src] is already occupied!") return if(M.client) M.client.perspective = EYE_PERSPECTIVE diff --git a/code/game/objects/items/weapons/implants/implantfreedom.dm b/code/game/objects/items/weapons/implants/implantfreedom.dm index fab692775d..b55274cc92 100644 --- a/code/game/objects/items/weapons/implants/implantfreedom.dm +++ b/code/game/objects/items/weapons/implants/implantfreedom.dm @@ -21,7 +21,7 @@ if (emote == src.activation_emote) src.uses-- - source << "You feel a faint click." + to_chat(source, "You feel a faint click.") if (source.handcuffed) var/obj/item/weapon/W = source.handcuffed source.handcuffed = null @@ -50,7 +50,7 @@ /obj/item/weapon/implant/freedom/post_implant(mob/source) source.mind.store_memory("Freedom implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.", 0, 0) - source << "The implanted freedom implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate." + to_chat(source, "The implanted freedom implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.") /obj/item/weapon/implant/freedom/get_data() var/dat = {" diff --git a/code/game/objects/items/weapons/implants/implantuplink.dm b/code/game/objects/items/weapons/implants/implantuplink.dm index 82809cfe61..873a09149c 100644 --- a/code/game/objects/items/weapons/implants/implantuplink.dm +++ b/code/game/objects/items/weapons/implants/implantuplink.dm @@ -15,7 +15,7 @@ listening_objects |= src activation_emote = input("Choose activation emote:") in list("blink", "blink_r", "eyebrow", "chuckle", "twitch", "frown", "nod", "blush", "giggle", "grin", "groan", "shrug", "smile", "pale", "sniff", "whimper", "wink") source.mind.store_memory("Uplink implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.", 0, 0) - source << "The implanted uplink implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate." + to_chat(source, "The implanted uplink implant can be activated by using the [src.activation_emote] emote, say *[src.activation_emote] to attempt to activate.") /obj/item/weapon/implant/uplink/trigger(emote, mob/source as mob) if(hidden_uplink && usr == source) // Let's not have another people activate our uplink diff --git a/code/game/objects/items/weapons/material/ashtray.dm b/code/game/objects/items/weapons/material/ashtray.dm index 5a26720b7c..5cf907fbf5 100644 --- a/code/game/objects/items/weapons/material/ashtray.dm +++ b/code/game/objects/items/weapons/material/ashtray.dm @@ -48,7 +48,7 @@ var/global/list/ashtray_cache = list() return if (istype(W,/obj/item/weapon/cigbutt) || istype(W,/obj/item/clothing/mask/smokable/cigarette) || istype(W, /obj/item/weapon/flame/match)) if (contents.len >= max_butts) - user << "\The [src] is full." + to_chat(user, "\The [src] is full.") return user.remove_from_mob(W) W.loc = src @@ -65,7 +65,7 @@ var/global/list/ashtray_cache = list() //spawn(1) // TemperatureAct(150) 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() @@ -74,7 +74,7 @@ var/global/list/ashtray_cache = list() update_icon() else health = max(0,health - W.force) - user << "You hit [src] with [W]." + to_chat(user, "You hit [src] with [W].") if (health < 1) shatter() return diff --git a/code/game/objects/items/weapons/material/kitchen.dm b/code/game/objects/items/weapons/material/kitchen.dm index 913fb6fddf..8d445efce2 100644 --- a/code/game/objects/items/weapons/material/kitchen.dm +++ b/code/game/objects/items/weapons/material/kitchen.dm @@ -50,7 +50,7 @@ overlays.Cut() return else - user << "You don't have anything on \the [src]." //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK + to_chat(user, "You don't have anything on \the [src].") //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK return /obj/item/weapon/material/kitchen/utensil/fork @@ -82,7 +82,7 @@ /* From the time of Clowns. Commented out for posterity, and sanity. /obj/item/weapon/material/knife/attack(target as mob, mob/living/user as mob) if ((CLUMSY in user.mutations) && prob(50)) - user << "You accidentally cut yourself with \the [src]." + to_chat(user, "You accidentally cut yourself with \the [src].") user.take_organ_damage(20) return return ..() @@ -106,7 +106,7 @@ /obj/item/weapon/material/kitchen/rollingpin/attack(mob/living/M as mob, mob/living/user as mob) if ((CLUMSY in user.mutations) && prob(50)) - user << "\The [src] slips out of your hand and hits your head." + to_chat(user, "\The [src] slips out of your hand and hits your head.") user.take_organ_damage(10) user.Paralyse(2) return diff --git a/code/game/objects/items/weapons/material/knives.dm b/code/game/objects/items/weapons/material/knives.dm index bce6cb22dd..74f6fc570f 100644 --- a/code/game/objects/items/weapons/material/knives.dm +++ b/code/game/objects/items/weapons/material/knives.dm @@ -44,10 +44,10 @@ /obj/item/weapon/material/butterfly/attack_self(mob/user) active = !active if(active) - user << "You flip out \the [src]." + to_chat(user, "You flip out \the [src].") playsound(user, 'sound/weapons/flipblade.ogg', 15, 1) else - user << "\The [src] can now be concealed." + to_chat(user, "\The [src] can now be concealed.") update_force() add_fingerprint(user) @@ -68,9 +68,9 @@ /obj/item/weapon/material/knife/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << pick("\The [user] is slitting [TU.his] wrists with \the [src]! It looks like [TU.hes] trying to commit suicide.", \ + to_chat(viewers(user), pick("\The [user] is slitting [TU.his] wrists with \the [src]! It looks like [TU.hes] trying to commit suicide.", \ "\The [user] is slitting [TU.his] throat with \the [src]! It looks like [TU.hes] trying to commit suicide.", \ - "\The [user] is slitting [TU.his] stomach open with \the [src]! It looks like [TU.hes] trying to commit seppuku.") + "\The [user] is slitting [TU.his] stomach open with \the [src]! It looks like [TU.hes] trying to commit seppuku.")) return (BRUTELOSS) // These no longer inherit from hatchets. diff --git a/code/game/objects/items/weapons/material/material_weapons.dm b/code/game/objects/items/weapons/material/material_weapons.dm index 3f2b1978d3..f4c8804679 100644 --- a/code/game/objects/items/weapons/material/material_weapons.dm +++ b/code/game/objects/items/weapons/material/material_weapons.dm @@ -58,7 +58,7 @@ force = round(force*dulled_divisor) throwforce = round(material.get_blunt_damage()*thrown_force_divisor) //spawn(1) - // world << "[src] has force [force] and throwforce [throwforce] when made from default material [material.name]" + // to_world("[src] has force [force] and throwforce [throwforce] when made from default material [material.name]") /obj/item/weapon/material/proc/set_material(var/new_material) material = get_material_by_name(new_material) diff --git a/code/game/objects/items/weapons/material/shards.dm b/code/game/objects/items/weapons/material/shards.dm index 8df81e434c..39ece8873b 100644 --- a/code/game/objects/items/weapons/material/shards.dm +++ b/code/game/objects/items/weapons/material/shards.dm @@ -18,8 +18,8 @@ /obj/item/weapon/material/shard/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << pick("\The [user] is slitting [TU.his] wrists with \the [src]! It looks like [TU.hes] trying to commit suicide.", - "\The [user] is slitting [TU.his] throat with \the [src]! It looks like [TU.hes] trying to commit suicide.") + to_chat(viewers(user), pick("\The [user] is slitting [TU.his] wrists with \the [src]! It looks like [TU.hes] trying to commit suicide.", + "\The [user] is slitting [TU.his] throat with \the [src]! It looks like [TU.hes] trying to commit suicide.")) return (BRUTELOSS) /obj/item/weapon/material/shard/set_material(var/new_material) diff --git a/code/game/objects/items/weapons/material/swords.dm b/code/game/objects/items/weapons/material/swords.dm index 46551e588a..f1685510eb 100644 --- a/code/game/objects/items/weapons/material/swords.dm +++ b/code/game/objects/items/weapons/material/swords.dm @@ -19,7 +19,7 @@ /obj/item/weapon/material/sword/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << "[user] is falling on the [src.name]! It looks like [TU.he] [TU.is] trying to commit suicide." + to_chat(viewers(user),"[user] is falling on the [src.name]! It looks like [TU.he] [TU.is] trying to commit suicide.") return(BRUTELOSS) /obj/item/weapon/material/sword/katana diff --git a/code/game/objects/items/weapons/material/twohanded.dm b/code/game/objects/items/weapons/material/twohanded.dm index c0640d7b49..943964f78b 100644 --- a/code/game/objects/items/weapons/material/twohanded.dm +++ b/code/game/objects/items/weapons/material/twohanded.dm @@ -51,7 +51,7 @@ force_unwielded = round(force_wielded*unwielded_force_divisor) force = force_unwielded throwforce = round(force*thrown_force_divisor) - //world << "[src] has unwielded force [force_unwielded], wielded force [force_wielded] and throwforce [throwforce] when made from default material [material.name]" + //to_world("[src] has unwielded force [force_unwielded], wielded force [force_wielded] and throwforce [throwforce] when made from default material [material.name]") /obj/item/weapon/material/twohanded/New() ..() diff --git a/code/game/objects/items/weapons/mop.dm b/code/game/objects/items/weapons/mop.dm index f8669aef9d..fc2e6c2534 100644 --- a/code/game/objects/items/weapons/mop.dm +++ b/code/game/objects/items/weapons/mop.dm @@ -23,7 +23,7 @@ GLOBAL_LIST_BOILERPLATE(all_mops, /obj/item/weapon/mop) if(!proximity) return if(istype(A, /turf) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune)) if(reagents.total_volume < 1) - user << "Your mop is dry!" + to_chat(user, "Your mop is dry!") return user.visible_message("[user] begins to clean \the [get_turf(A)].") @@ -32,7 +32,7 @@ GLOBAL_LIST_BOILERPLATE(all_mops, /obj/item/weapon/mop) var/turf/T = get_turf(A) if(T) T.clean(src, user) - user << "You have finished mopping!" + to_chat(user, "You have finished mopping!") /obj/effect/attackby(obj/item/I, mob/user) diff --git a/code/game/objects/items/weapons/mop_deploy.dm b/code/game/objects/items/weapons/mop_deploy.dm index 93b3657f49..49836005fa 100644 --- a/code/game/objects/items/weapons/mop_deploy.dm +++ b/code/game/objects/items/weapons/mop_deploy.dm @@ -40,7 +40,7 @@ var/turf/T = get_turf(A) if(T) T.clean_deploy(src) - user << "You have finished mopping!" + to_chat(user, "You have finished mopping!") /obj/effect/attackby(obj/item/I, mob/user) if(istype(I, /obj/item/weapon/mop_deploy) || istype(I, /obj/item/weapon/soap)) diff --git a/code/game/objects/items/weapons/scrolls.dm b/code/game/objects/items/weapons/scrolls.dm index 2756822401..639a1e9bc6 100644 --- a/code/game/objects/items/weapons/scrolls.dm +++ b/code/game/objects/items/weapons/scrolls.dm @@ -12,7 +12,7 @@ /obj/item/weapon/teleportation_scroll/attack_self(mob/user as mob) if((user.mind && !wizards.is_antagonist(user.mind))) - usr << "You stare at the scroll but cannot make sense of the markings!" + to_chat(usr, "You stare at the scroll but cannot make sense of the markings!") return user.set_machine(src) @@ -69,7 +69,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/shields.dm b/code/game/objects/items/weapons/shields.dm index 6d3310cdc4..4e89372ec1 100644 --- a/code/game/objects/items/weapons/shields.dm +++ b/code/game/objects/items/weapons/shields.dm @@ -155,7 +155,7 @@ /obj/item/weapon/shield/energy/attack_self(mob/living/user as mob) if ((CLUMSY in user.mutations) && 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 if (active) @@ -164,7 +164,7 @@ w_class = ITEMSIZE_LARGE slot_flags = null playsound(user, 'sound/weapons/saberon.ogg', 50, 1) - user << "\The [src] is now active." + to_chat(user, "\The [src] is now active.") else force = 3 @@ -172,7 +172,7 @@ w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) - user << "\The [src] can now be concealed." + to_chat(user, "\The [src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user @@ -241,14 +241,14 @@ throw_speed = 2 w_class = ITEMSIZE_LARGE 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 = ITEMSIZE_NORMAL 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 diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index f5ea4ead6f..b2ff7dd06e 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -53,7 +53,7 @@ /obj/item/weapon/storage/backpack/holding/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W, /obj/item/weapon/storage/backpack/holding)) - user << "The Bluespace interfaces of the two devices conflict and malfunction." + to_chat(user, "The Bluespace interfaces of the two devices conflict and malfunction.") qdel(W) return . = ..() diff --git a/code/game/objects/items/weapons/storage/backpack_vr.dm b/code/game/objects/items/weapons/storage/backpack_vr.dm index 5e121a2b35..de305d11ad 100644 --- a/code/game/objects/items/weapons/storage/backpack_vr.dm +++ b/code/game/objects/items/weapons/storage/backpack_vr.dm @@ -19,7 +19,7 @@ slowdown = initial(slowdown) return 1 else - H << "[no_message]" + to_chat(H, "[no_message]") return 0 /* If anyone wants to make some... this is how you would. @@ -102,7 +102,7 @@ slowdown = initial(slowdown) return 1 else - H << "[no_message]" + to_chat(H, "[no_message]") return 0 /obj/item/weapon/storage/backpack/saddlebag_common/robust //Shared bag for other taurs with sturdy backs diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 29e86dbbd4..e8cb3135d9 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -217,14 +217,14 @@ /obj/item/weapon/storage/bag/sheetsnatcher/can_be_inserted(obj/item/W as obj, stop_messages = 0) if(!istype(W,/obj/item/stack/material)) if(!stop_messages) - usr << "The snatcher does not accept [W]." + to_chat(usr, "The snatcher does not accept [W].") return 0 var/current = 0 for(var/obj/item/stack/material/S in contents) current += S.amount if(capacity == current)//If it's full, you're done if(!stop_messages) - usr << "The snatcher is full." + to_chat(usr, "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 ddb8c489f6..1ab9f67459 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -17,7 +17,7 @@ set category = "Object" if(show_above_suit == -1) - usr << "\The [src] cannot be worn above your suit!" + to_chat(usr, "\The [src] cannot be worn above your suit!") return show_above_suit = !show_above_suit update_icon() diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm index 783d8cd74a..d59b5bf3e6 100644 --- a/code/game/objects/items/weapons/storage/bible.dm +++ b/code/game/objects/items/weapons/storage/bible.dm @@ -26,7 +26,7 @@ if(!proximity) return 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) diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index fbbb4448fa..3fa442ab6d 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -48,7 +48,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 foldable(get_turf(src)) qdel(src) diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm index e9a809e55c..a5efceb72b 100644 --- a/code/game/objects/items/weapons/storage/fancy.dm +++ b/code/game/objects/items/weapons/storage/fancy.dm @@ -30,11 +30,11 @@ return if(contents.len <= 0) - user << "There are no [icon_type]s left in the box." + to_chat(user, "There are no [icon_type]s left in the box.") else if(contents.len == 1) - user << "There is one [icon_type] left in the box." + to_chat(user, "There is one [icon_type] left in the box.") else - user << "There are [contents.len] [icon_type]s in the box." + to_chat(user, "There are [contents.len] [icon_type]s in the box.") return @@ -245,7 +245,7 @@ var/obj/item/clothing/mask/smokable/cigarette/cig = locate() in src if(cig == null) - user << "Looks like the packet is out of cigarettes." + to_chat(user, "Looks like the packet is out of cigarettes.") return // Instead of running equip_to_slot_if_possible() we check here first, @@ -259,7 +259,7 @@ user.equip_to_slot(cig, slot_wear_mask) reagents.maximum_volume = 15 * contents.len - user << "You take a cigarette out of the pack." + to_chat(user, "You take a cigarette out of the pack.") update_icon() else ..() diff --git a/code/game/objects/items/weapons/storage/laundry_basket.dm b/code/game/objects/items/weapons/storage/laundry_basket.dm index 722d68e634..e8e2cc59e4 100644 --- a/code/game/objects/items/weapons/storage/laundry_basket.dm +++ b/code/game/objects/items/weapons/storage/laundry_basket.dm @@ -28,17 +28,17 @@ if (user.hand) temp = H.get_organ("l_hand") if(!temp) - user << "You need two hands to pick this up!" + to_chat(user, "You need two hands to pick this up!") 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 return ..() /obj/item/weapon/storage/laundry_basket/attack_self(mob/user as mob) var/turf/T = get_turf(user) - user << "You dump the [src]'s contents onto \the [T]." + to_chat(user, "You dump the [src]'s contents onto \the [T].") return ..() /obj/item/weapon/storage/laundry_basket/pickup(mob/user) diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index e9527b2313..2fa8e54e87 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -20,21 +20,21 @@ attackby(obj/item/weapon/W as obj, mob/user as mob) if (istype(W, /obj/item/weapon/card/id)) if(src.broken) - user << "It appears to be broken." + to_chat(user, "It appears to be broken.") return if(src.allowed(user)) src.locked = !( src.locked ) if(src.locked) src.icon_state = src.icon_locked - user << "You lock \the [src]!" + to_chat(user, "You lock \the [src]!") close_all() return else src.icon_state = src.icon_closed - user << "You unlock \the [src]!" + to_chat(user, "You unlock \the [src]!") return else - user << "Access Denied" + to_chat(user, "Access Denied") else if(istype(W, /obj/item/weapon/melee/energy/blade)) if(emag_act(INFINITY, user, W, "The locker has been sliced open by [user] with an energy blade!", "You hear metal being sliced and sparks flying.")) var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() @@ -45,13 +45,13 @@ if(!locked) ..() else - user << "It's locked!" + to_chat(user, "It's locked!") return show_to(mob/user as mob) if(locked) - user << "It's locked!" + to_chat(user, "It's locked!") else ..() return diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm index 7859ee97d5..9bd4a6c5e2 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, "The service panel is [src.open ? "open" : "closed"].") attackby(obj/item/weapon/W as obj, mob/user as mob) if(locked) diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index 26ba924746..f2f7f99afd 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -105,9 +105,9 @@ return 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) if(use_external_power) @@ -118,12 +118,12 @@ user.drop_item() W.loc = src bcell = W - user << "You install a cell in [src]." + to_chat(user, "You install a cell in [src].") update_icon() else - user << "[src] already has a cell." + to_chat(user, "[src] already has a cell.") else - user << "This cell is not fitted for [src]." + to_chat(user, "This cell is not fitted for [src].") /obj/item/weapon/melee/baton/attack_hand(mob/user as mob) if(user.get_inactive_hand() == src) @@ -131,7 +131,7 @@ bcell.update_icon() user.put_in_hands(bcell) 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 @@ -147,20 +147,20 @@ bcell = R.cell 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) update_icon() 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.") add_fingerprint(user) /obj/item/weapon/melee/baton/attack(mob/M, mob/user) if(status && (CLUMSY in user.mutations) && prob(50)) - user << "You accidentally hit yourself with the [src]!" + to_chat(user, "You accidentally hit yourself with the [src]!") user.Weaken(30) deductcharge(hitcost) return @@ -236,12 +236,12 @@ user.drop_item() W.loc = src bcell = W - user << "You install a cell in [src]." + to_chat(user, "You install a cell in [src].") update_icon() else - user << "[src] already has a cell." + to_chat(user, "[src] already has a cell.") else - user << "This cell is not fitted for [src]." + to_chat(user, "This cell is not fitted for [src].") /obj/item/weapon/melee/baton/get_description_interaction() var/list/results = list() diff --git a/code/game/objects/items/weapons/surgery_tools.dm b/code/game/objects/items/weapons/surgery_tools.dm index 292f047f0f..418c0a789a 100644 --- a/code/game/objects/items/weapons/surgery_tools.dm +++ b/code/game/objects/items/weapons/surgery_tools.dm @@ -69,8 +69,8 @@ suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << pick("\The [user] is pressing \the [src] to [TU.his] temple and activating it! It looks like [TU.hes] trying to commit suicide.", - "\The [user] is pressing \the [src] to [TU.his] chest and activating it! It looks like [TU.hes] trying to commit suicide.") + to_chat(viewers(user),pick("\The [user] is pressing \the [src] to [TU.his] temple and activating it! It looks like [TU.hes] trying to commit suicide.", + "\The [user] is pressing \the [src] to [TU.his] chest and activating it! It looks like [TU.hes] trying to commit suicide.")) return (BRUTELOSS) /* @@ -94,9 +94,9 @@ suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << pick("\The [user] is slitting [TU.his] wrists with the [src.name]! It looks like [TU.hes] trying to commit suicide.", \ + to_chat(viewers(user),pick("\The [user] is slitting [TU.his] wrists with the [src.name]! It looks like [TU.hes] trying to commit suicide.", \ "\The [user] is slitting [TU.his] throat with the [src.name]! It looks like [TU.hes] trying to commit suicide.", \ - "\The [user] is slitting [TU.his] stomach open with the [src.name]! It looks like [TU.hes] trying to commit seppuku.") + "\The [user] is slitting [TU.his] stomach open with the [src.name]! It looks like [TU.hes] trying to commit seppuku.")) return (BRUTELOSS) /* diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm index e1deceadde..06ab7c5939 100644 --- a/code/game/objects/items/weapons/swords_axes_etc.dm +++ b/code/game/objects/items/weapons/swords_axes_etc.dm @@ -19,7 +19,7 @@ /obj/item/weapon/melee/classic_baton/attack(mob/M as mob, mob/living/user as mob) 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 @@ -83,7 +83,7 @@ /obj/item/weapon/melee/telebaton/attack(mob/target as mob, mob/living/user as mob) if(on) 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 diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm index 9200d58820..528b8eb447 100644 --- a/code/game/objects/items/weapons/tanks/jetpack.dm +++ b/code/game/objects/items/weapons/tanks/jetpack.dm @@ -30,14 +30,14 @@ /obj/item/weapon/tank/jetpack/examine(mob/user) . = ..() if(air_contents.total_moles < 5) - user << "The meter on \the [src] indicates you are almost out of gas!" + to_chat(user, "The meter on \the [src] indicates you are almost out of gas!") playsound(user, 'sound/effects/alert.ogg', 50, 1) /obj/item/weapon/tank/jetpack/verb/toggle_rockets() set name = "Toggle Jetpack Stabilization" set category = "Object" stabilization_on = !( stabilization_on ) - usr << "You toggle the stabilization [stabilization_on? "on":"off"]." + to_chat(usr, "You toggle the stabilization [stabilization_on? "on":"off"].") /obj/item/weapon/tank/jetpack/verb/toggle() set name = "Toggle Jetpack" @@ -56,7 +56,7 @@ M.update_inv_back() M.update_action_buttons() - usr << "You toggle the thrusters [on? "on":"off"]." + to_chat(usr, "You toggle the thrusters [on? "on":"off"].") /obj/item/weapon/tank/jetpack/proc/allow_thrust(num, mob/living/user as mob) if(!on) @@ -116,7 +116,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/tape.dm b/code/game/objects/items/weapons/tape.dm index ce2f0dabfc..2a3340d71c 100644 --- a/code/game/objects/items/weapons/tape.dm +++ b/code/game/objects/items/weapons/tape.dm @@ -20,22 +20,22 @@ can_place = 1 break if(!can_place) - user << "You need to have a firm grip on [H] before you can use \the [src]!" + to_chat(user, "You need to have a firm grip on [H] before you can use \the [src]!") return else if(user.zone_sel.selecting == O_EYES) if(!H.organs_by_name[BP_HEAD]) - user << "\The [H] doesn't have a head." + to_chat(user, "\The [H] doesn't have a head.") return if(!H.has_eyes()) - user << "\The [H] doesn't have any eyes." + to_chat(user, "\The [H] doesn't have any eyes.") return if(H.glasses) - user << "\The [H] is already wearing somethign on their eyes." + to_chat(user, "\The [H] is already wearing somethign on their eyes.") return if(H.head && (H.head.body_parts_covered & FACE)) - user << "Remove their [H.head] first." + to_chat(user, "Remove their [H.head] first.") return user.visible_message("\The [user] begins taping over \the [H]'s eyes!") @@ -64,16 +64,16 @@ else if(user.zone_sel.selecting == O_MOUTH || user.zone_sel.selecting == BP_HEAD) if(!H.organs_by_name[BP_HEAD]) - user << "\The [H] doesn't have a head." + to_chat(user, "\The [H] doesn't have a head.") return if(!H.check_has_mouth()) - user << "\The [H] doesn't have a mouth." + to_chat(user, "\The [H] doesn't have a mouth.") return if(H.wear_mask) - user << "\The [H] is already wearing a mask." + to_chat(user, "\The [H] is already wearing a mask.") return if(H.head && (H.head.body_parts_covered & FACE)) - user << "Remove their [H.head] first." + to_chat(user, "Remove their [H.head] first.") return user.visible_message("\The [user] begins taping up \the [H]'s mouth!") @@ -162,7 +162,7 @@ if(!stuck) return - user << "You remove \the [initial(name)] from [stuck]." + to_chat(user, "You remove \the [initial(name)] from [stuck].") user.drop_from_inventory(src) stuck.forceMove(get_turf(src)) @@ -196,7 +196,7 @@ 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 + 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.drop_from_inventory(src) diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm index ba5ca0a9a2..03436bafb5 100644 --- a/code/game/objects/items/weapons/teleportation.dm +++ b/code/game/objects/items/weapons/teleportation.dm @@ -48,7 +48,7 @@ Frequency: return var/turf/current_location = get_turf(usr)//What turf is the user on? if(!current_location||current_location.z==2)//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 if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf)))) usr.set_machine(src) @@ -133,7 +133,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 using_map.admin_levels || current_location.block_tele)//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/teleport/hub/R in machines) diff --git a/code/game/objects/items/weapons/tools/screwdriver.dm b/code/game/objects/items/weapons/tools/screwdriver.dm index 1969987ff9..e07bb1155d 100644 --- a/code/game/objects/items/weapons/tools/screwdriver.dm +++ b/code/game/objects/items/weapons/tools/screwdriver.dm @@ -22,8 +22,8 @@ /obj/item/weapon/tool/screwdriver/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << pick("\The [user] is stabbing the [src.name] into [TU.his] temple! It looks like [TU.hes] trying to commit suicide.", \ - "\The [user] is stabbing the [src.name] into [TU.his] heart! It looks like [TU.hes] trying to commit suicide.") + to_chat(viewers(user), pick("\The [user] is stabbing the [src.name] into [TU.his] temple! It looks like [TU.hes] trying to commit suicide.", \ + "\The [user] is stabbing the [src.name] into [TU.his] heart! It looks like [TU.hes] trying to commit suicide.")) return(BRUTELOSS) /obj/item/weapon/tool/screwdriver/New() diff --git a/code/game/objects/items/weapons/tools/weldingtool.dm b/code/game/objects/items/weapons/tools/weldingtool.dm index d577e560ed..38bfdf3d94 100644 --- a/code/game/objects/items/weapons/tools/weldingtool.dm +++ b/code/game/objects/items/weapons/tools/weldingtool.dm @@ -558,11 +558,11 @@ /obj/item/weapon/weldingtool/electric/examine(mob/user) if(get_dist(src, user) > 1) to_chat(user, desc) - else // The << need to stay, for some reason + else if(power_supply) - user << text("\icon[] The [] has [] charge left.", src, src.name, get_fuel()) + to_chat(user, "\icon[src] The [src.name] has [get_fuel()] charge left.") else - user << text("\icon[] The [] has no power cell!", src, src.name) + to_chat(user, "\icon[src] The [src.name] has no power cell!") /obj/item/weapon/weldingtool/electric/get_fuel() if(use_external_power) diff --git a/code/game/objects/items/weapons/traps.dm b/code/game/objects/items/weapons/traps.dm index 1febf6b1ae..0e452bd535 100644 --- a/code/game/objects/items/weapons/traps.dm +++ b/code/game/objects/items/weapons/traps.dm @@ -16,7 +16,7 @@ /obj/item/weapon/beartrap/suicide_act(mob/user) var/datum/gender/T = gender_datums[user.get_visible_gender()] - viewers(user) << "[user] is putting the [src.name] on [T.his] head! It looks like [T.hes] trying to commit suicide." + to_chat(viewers(user),"[user] is putting the [src.name] on [T.his] head! It looks like [T.hes] trying to commit suicide.") return (BRUTELOSS) /obj/item/weapon/beartrap/proc/can_use(mob/user) @@ -101,7 +101,7 @@ can_buckle = 1 buckle_mob(L) L.Stun(stun_length) - L << "The steel jaws of \the [src] bite into you, trapping you in place!" + to_chat(L, "The steel jaws of \the [src] bite into you, trapping you in place!") deployed = 0 can_buckle = initial(can_buckle) diff --git a/code/game/objects/items/weapons/trays.dm b/code/game/objects/items/weapons/trays.dm index 21c8b635f3..231e589a69 100644 --- a/code/game/objects/items/weapons/trays.dm +++ b/code/game/objects/items/weapons/trays.dm @@ -31,7 +31,7 @@ if((CLUMSY in user.mutations) && prob(50)) //What if he's a clown? - M << "You accidentally slam yourself with the [src]!" + to_chat(M, "You accidentally slam yourself with the [src]!") M.Weaken(1) user.take_organ_damage(2) if(prob(50)) @@ -78,7 +78,7 @@ break if(protected) - M << "You get slammed in the face with the tray, against your mask!" + to_chat(M, "You get slammed in the face with the tray, against your mask!") if(prob(33)) src.add_blood(H) if (H.wear_mask) @@ -108,7 +108,7 @@ return else //No eye or head protection, tough luck! - M << "You get slammed in the face with the tray!" + to_chat(M, "You get slammed in the face with the tray!") if(prob(33)) src.add_blood(M) var/turf/location = H.loc diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index 9875ec035a..ea390d52bd 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -12,7 +12,7 @@ suicide_act(mob/user) var/datum/gender/T = gender_datums[user.get_visible_gender()] - viewers(user) << "[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] trying to commit suicide." + to_chat(viewers(user),"[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] 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. @@ -23,26 +23,26 @@ user.do_attack_animation(M) if (!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey") - user << "You don't have the dexterity to do this!" + to_chat(user, "You don't have the dexterity to do this!") return if ((CLUMSY in user.mutations) && prob(50)) - user << "The rod slips out of your hand and hits your head." + to_chat(user, "The rod slips out of your hand and hits your head.") user.take_organ_damage(10) user.Paralyse(20) return if (M.stat !=2) if(cult && (M.mind in cult.current_antagonists) && prob(33)) - M << "The power of [src] clears your mind of the cult's influence!" - user << "You wave [src] over [M]'s head and see their eyes become clear, their mind returning to normal." + to_chat(M, "The power of [src] clears your mind of the cult's influence!") + to_chat(user, "You wave [src] over [M]'s head and see their eyes become clear, their mind returning to normal.") cult.remove_antagonist(M.mind) M.visible_message("\The [user] waves \the [src] over \the [M]'s head.") else if(prob(10)) - user << "The rod slips in your hand." + to_chat(user, "The rod slips in your hand.") ..() else - user << "The rod appears to do nothing." + to_chat(user, "The rod appears to do nothing.") M.visible_message("\The [user] waves \the [src] over \the [M]'s head.") return @@ -50,7 +50,7 @@ if(!proximity) return if (istype(A, /turf/simulated/floor)) - user << "You hit the floor with the [src]." + to_chat(user, "You hit the floor with the [src].") call(/obj/effect/rune/proc/revealrunes)(src) /obj/item/weapon/energy_net @@ -111,7 +111,7 @@ /obj/effect/energy_net/Destroy() if(has_buckled_mobs()) for(var/A in buckled_mobs) - to_chat(A,"You are free of the net!") + to_chat(A, "You are free of the net!") unbuckle_mob(A) STOP_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/weapons/weldbackpack.dm b/code/game/objects/items/weapons/weldbackpack.dm index 4225ed810a..b33eeca7c2 100644 --- a/code/game/objects/items/weapons/weldbackpack.dm +++ b/code/game/objects/items/weapons/weldbackpack.dm @@ -57,14 +57,14 @@ if(T.welding & prob(50)) message_admins("[key_name_admin(user)] triggered a fueltank explosion.") log_game("[key_name(user)] triggered a fueltank explosion.") - to_chat(user,"That was stupid of you.") + to_chat(user, "That was stupid of you.") explosion(get_turf(src),-1,0,2) if(src) qdel(src) return else if(T.status) if(T.welding) - to_chat(user,"That was close!") + to_chat(user, "That was close!") src.reagents.trans_to_obj(W, T.max_fuel) to_chat(user, "Welder refilled!") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) @@ -72,16 +72,16 @@ else if(nozzle) if(nozzle == W) if(!user.unEquip(W)) - to_chat(user,"\The [W] seems to be stuck to your hand.") + to_chat(user, "\The [W] seems to be stuck to your hand.") return if(!nozzle_attached) return_nozzle() - to_chat(user,"You attach \the [W] to the [src].") + to_chat(user, "You attach \the [W] to the [src].") return else - to_chat(user,"The [src] already has a nozzle!") + to_chat(user, "The [src] already has a nozzle!") else - to_chat(user,"The tank scoffs at your insolence. It only provides services to welders.") + to_chat(user, "The tank scoffs at your insolence. It only provides services to welders.") return /obj/item/weapon/weldpack/attack_hand(mob/user as mob) @@ -92,7 +92,7 @@ if(!wearer.incapacitated()) get_nozzle(user) else - to_chat(user,"\The [src] does not have a nozzle attached!") + to_chat(user, "\The [src] does not have a nozzle attached!") else ..() else @@ -103,11 +103,11 @@ return if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume < max_fuel) O.reagents.trans_to_obj(src, max_fuel) - to_chat(user,"You crack the cap off the top of the pack and fill it back up again from the tank.") + to_chat(user, "You crack the cap off the top of the pack and fill it back up again from the tank.") playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) return else if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume == max_fuel) - to_chat(user,"The pack is already full!") + to_chat(user, "The pack is already full!") return /obj/item/weapon/weldpack/MouseDrop(obj/over_object as obj) //This is terrifying. @@ -144,7 +144,7 @@ /obj/item/weapon/weldpack/examine(mob/user) ..(user) - user << text("\icon[] [] units of fuel left!", src, src.reagents.total_volume) + to_chat(user, "\icon[src] [src.reagents.total_volume] units of fuel left!") return /obj/item/weapon/weldpack/survival diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 4d0eb2b9ee..3e571009d2 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -73,12 +73,12 @@ return 0 if (!user.Adjacent(src)) - user << "You can't climb there, the way is blocked." + to_chat(user, "You can't climb there, the way is blocked.") return 0 var/obj/occupied = turf_is_crowded() if(occupied) - user << "There's \a [occupied] in the way." + to_chat(user, "There's \a [occupied] in the way.") return 0 return 1 @@ -118,21 +118,21 @@ /obj/structure/proc/structure_shaken() for(var/mob/living/M in climbers) M.Weaken(1) - M << "You topple as you are shaken off \the [src]!" + to_chat(M, "You topple as you are shaken off \the [src]!") climbers.Cut(1,2) for(var/mob/living/M in get_turf(src)) if(M.lying) return //No spamming this on people. M.Weaken(3) - M << "You topple as \the [src] moves under you!" + to_chat(M, "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 << "You land heavily!" + to_chat(H, "You land heavily!") M.adjustBruteLoss(damage) return @@ -151,12 +151,12 @@ affecting = H.get_organ(BP_HEAD) if(affecting) - M << "You land heavily on your [affecting.name]!" + to_chat(M, "You land heavily on your [affecting.name]!") affecting.take_damage(damage, 0) if(affecting.parent) affecting.parent.add_autopsy_data("Misadventure", damage) else - H << "You land heavily!" + to_chat(H, "You land heavily!") H.adjustBruteLoss(damage) H.UpdateDamageIcon() @@ -169,12 +169,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 (isAI(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/barsign.dm b/code/game/objects/structures/barsign.dm index 7da51f6a66..13babf8a3d 100644 --- a/code/game/objects/structures/barsign.dm +++ b/code/game/objects/structures/barsign.dm @@ -17,13 +17,13 @@ ..() switch(icon_state) if("Off") - user << "It appears to be switched off." + to_chat(user, "It appears to be switched off.") if("narsiebistro") - user << "It shows a picture of a large black and red being. Spooky!" + to_chat(user, "It shows a picture of a large black and red being. Spooky!") if("on", "empty") - user << "The lights are on, but there's no picture." + to_chat(user, "The lights are on, but there's no picture.") else - user << "It says '[icon_state]'" + to_chat(user, "It says '[icon_state]'") /obj/structure/sign/double/barsign/New() ..() @@ -40,9 +40,9 @@ if(!sign_type) return icon_state = sign_type - user << "You change the barsign." + to_chat(user, "You change the barsign.") else - user << "Access denied." + to_chat(user, "Access denied.") return return ..() diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index eddffe55ea..a2f0606ef4 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -30,7 +30,7 @@ LINEN BINS if(is_sharp(I)) user.visible_message("\The [user] begins cutting up [src] with [I].", "You begin cutting up [src] with [I].") if(do_after(user, 50)) - user << "You cut [src] into pieces!" + to_chat(user, "You cut [src] into pieces!") for(var/i in 1 to rand(2,5)) new /obj/item/weapon/reagent_containers/glass/rag(drop_location()) qdel(src) @@ -172,12 +172,12 @@ LINEN BINS ..(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() @@ -193,12 +193,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 < ITEMSIZE_LARGE) //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.") /obj/structure/bedsheetbin/attack_hand(mob/user as mob) if(amount >= 1) @@ -214,11 +214,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 c457c35f67..848168dd08 100644 --- a/code/game/objects/structures/coathanger.dm +++ b/code/game/objects/structures/coathanger.dm @@ -24,7 +24,7 @@ user.drop_from_inventory(coat, 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) 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 d5f5da1c40..7c90e2a50a 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -63,7 +63,7 @@ var/obj/item/weapon/card/id/I = W.GetID() if(src.broken) - user << "It appears to be broken." + to_chat(user, "It appears to be broken.") return if(!I || !I.registered_name) return if(src.allowed(user) || !src.registered_name || (istype(I) && (src.registered_name == I.registered_name))) @@ -76,7 +76,7 @@ src.registered_name = I.registered_name src.desc = "Owned by [I.registered_name]." else - user << "Access Denied" + to_chat(user, "Access Denied") else if(istype(W, /obj/item/weapon/melee/energy/blade)) if(emag_act(INFINITY, user, "The locker has been sliced open by [user] with \an [W]!", "You hear metal being sliced and sparks flying.")) var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() @@ -85,7 +85,7 @@ playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) playsound(src.loc, "sparks", 50, 1) else - user << "Access Denied" + to_chat(user, "Access Denied") return /obj/structure/closet/secure_closet/personal/emag_act(var/remaining_charges, var/mob/user, var/visual_feedback, var/audible_feedback) @@ -107,9 +107,9 @@ if(ishuman(usr)) src.add_fingerprint(usr) if (src.locked || !src.registered_name) - usr << "You need to unlock it first." + to_chat(usr, "You need to unlock it first.") else if (src.broken) - usr << "It appears to be broken." + to_chat(usr, "It appears to be broken.") else if (src.opened) if(!src.close()) diff --git a/code/game/objects/structures/crates_lockers/closets/walllocker.dm b/code/game/objects/structures/crates_lockers/closets/walllocker.dm index 78572d38cd..f46364134e 100644 --- a/code/game/objects/structures/crates_lockers/closets/walllocker.dm +++ b/code/game/objects/structures/crates_lockers/closets/walllocker.dm @@ -31,10 +31,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/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index 6517dda8f8..bf4a10d5b1 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -82,21 +82,21 @@ else if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/C = W if(rigged) - user << "[src] is already rigged!" + to_chat(user, "[src] is already rigged!") return if (C.use(1)) - user << "You rig [src]." + to_chat(user , "You rig [src].") 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(W.is_wirecutter()) if(rigged) - user << "You cut away the wiring." + to_chat(user , "You cut away the wiring.") playsound(src.loc, W.usesound, 100, 1) rigged = 0 return @@ -149,15 +149,15 @@ /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)) set_locked(!locked, user) else - user << "Access Denied" + to_chat(user, "Access Denied") /obj/structure/closet/crate/secure/proc/set_locked(var/newlocked, mob/user = null) if(locked == newlocked) return @@ -181,7 +181,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/crate/secure/attack_hand(mob/user as mob) src.add_fingerprint(user) @@ -209,7 +209,7 @@ playsound(src.loc, "sparks", 60, 1) src.locked = 0 src.broken = 1 - user << "You unlock \the [src]." + to_chat(user, "You unlock \the [src].") return 1 /obj/structure/closet/crate/secure/emp_act(severity) diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm index 23c662f7cc..c44f714cc5 100644 --- a/code/game/objects/structures/curtains.dm +++ b/code/game/objects/structures/curtains.dm @@ -40,9 +40,9 @@ /obj/structure/curtain/attackby(obj/item/P, mob/user) if(P.is_wirecutter()) playsound(src, P.usesound, 50, 1) - user << "You start to cut the shower curtains." + to_chat(user, "You start to cut the shower curtains.") if(do_after(user, 10)) - user << "You cut the shower curtains." + to_chat(user, "You cut the shower curtains.") var/obj/item/stack/material/plastic/A = new /obj/item/stack/material/plastic( src.loc ) A.amount = 3 qdel(src) diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index d1516a9e66..088dbd33c6 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -66,16 +66,16 @@ /obj/structure/displaycase/attack_hand(mob/user as mob) if (src.destroyed && src.occupied) new /obj/item/weapon/gun/energy/captain( src.loc ) - user << "You deactivate the hover field built into the case." + to_chat(user, "You deactivate the hover field built into the case.") src.occupied = 0 src.add_fingerprint(user) update_icon() return else - usr << text("You kick the display case.") + to_chat(usr, "You kick the display case.") for(var/mob/O in oviewers()) if ((O.client && !( O.blinded ))) - O << "[usr] kicks the display case." + to_chat(O, "[usr] kicks the display case.") src.health -= 2 healthcheck() return diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm index 2be63df8e7..0879e196f2 100644 --- a/code/game/objects/structures/extinguisher.dm +++ b/code/game/objects/structures/extinguisher.dm @@ -32,15 +32,15 @@ user.remove_from_mob(O) contents += O has_extinguisher = O - user << "You place [O] in [src]." + to_chat(user, "You place [O] in [src].") else opened = !opened if(O.is_wrench()) if(!has_extinguisher) - user << "You start to unwrench the extinguisher cabinet." + to_chat(user, "You start to unwrench the extinguisher cabinet.") playsound(src.loc, O.usesound, 50, 1) if(do_after(user, 15 * O.toolspeed)) - user << "You unwrench the extinguisher cabinet." + to_chat(user, "You unwrench the extinguisher cabinet.") new /obj/item/frame/extinguisher_cabinet( src.loc ) qdel(src) return @@ -58,11 +58,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 @@ -72,7 +72,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/grille.dm b/code/game/objects/structures/grille.dm index 1057a5094c..16bdbdf120 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -129,23 +129,23 @@ 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)) 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/wtype = ST.material.created_window if (ST.use(1)) var/obj/structure/window/WD = new wtype(loc, dir_to_set, 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 f5bebdf529..41a7c0fd28 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -14,7 +14,7 @@ if(!user) return if(!user.Adjacent(A)) - to_chat(user,"You can't reach!") + to_chat(user, "You can't reach!") return if(istype(A, /turf)) inflate(user,A) @@ -94,7 +94,7 @@ /obj/item/inflatable/proc/inflate(var/mob/user,var/location) playsound(location, 'sound/items/zip.ogg', 75, 1) - to_chat(user,"You inflate [src].") + to_chat(user, "You inflate [src].") var/obj/structure/inflatable/R = new deploy_path(location) src.transfer_fingerprints_to(R) R.add_fingerprint(user) @@ -102,7 +102,7 @@ /obj/structure/inflatable/proc/deflate() playsound(loc, 'sound/machines/hiss.ogg', 75, 1) - //user << "You slowly deflate the inflatable wall." + //to_chat(user, "You slowly deflate the inflatable wall.") visible_message("[src] slowly deflates.") spawn(50) var/obj/item/inflatable/R = new /obj/item/inflatable(loc) @@ -247,7 +247,7 @@ icon_state = "folded_wall_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 @@ -257,7 +257,7 @@ icon_state = "folded_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 8ff7ee844f..6e01e0035e 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -25,7 +25,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) /obj/structure/janitorialcart/examine(mob/user) if(..(user, 1)) - user << "[src] \icon[src] contains [reagents.total_volume] unit\s of liquid!" + to_chat(user, "[src] \icon[src] contains [reagents.total_volume] unit\s of liquid!") //everything else is visible, so doesn't need to be mentioned @@ -36,15 +36,15 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) I.loc = src update_icon() updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") else if(istype(I, /obj/item/weapon/mop)) if(I.reagents.total_volume < I.reagents.maximum_volume) //if it's not completely soaked we assume they want to wet it, otherwise store it if(reagents.total_volume < 1) - user << "[src] is out of water!" + to_chat(user, "[src] is out of water!") else reagents.trans_to_obj(I, 5) // - user << "You wet [I] in [src]." + to_chat(user, "You wet [I] in [src].") playsound(loc, 'sound/effects/slosh.ogg', 25, 1) return if(!mymop) @@ -53,7 +53,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) I.loc = src update_icon() updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") else if(istype(I, /obj/item/weapon/reagent_containers/spray) && !myspray) user.drop_item() @@ -61,7 +61,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) I.loc = src update_icon() updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") else if(istype(I, /obj/item/device/lightreplacer) && !myreplacer) user.drop_item() @@ -69,7 +69,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) I.loc = src update_icon() updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") else if(istype(I, /obj/item/weapon/caution)) if(signs < 4) @@ -78,9 +78,9 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) signs++ update_icon() updateUsrDialog() - user << "You put [I] into [src]." + to_chat(user, "You put [I] into [src].") 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/reagent_containers/glass)) return // So we do not put them in the trash bag as we mean to fill the mop bucket @@ -120,29 +120,29 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) if("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("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("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("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("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("[src] signs ([signs]) didn't match contents") @@ -189,23 +189,23 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) if(!..(user, 1)) return - user << "\icon[src] This [callme] contains [reagents.total_volume] unit\s of water!" + to_chat(user, "\icon[src] This [callme] contains [reagents.total_volume] unit\s of water!") if(mybag) - user << "\A [mybag] is hanging on the [callme]." + to_chat(user, "\A [mybag] is hanging on the [callme].") /obj/structure/bed/chair/janicart/attackby(obj/item/I, mob/user) if(istype(I, /obj/item/weapon/mop)) if(reagents.total_volume > 1) reagents.trans_to_obj(I, 2) - user << "You wet [I] in the [callme]." + to_chat(user, "You wet [I] in the [callme].") playsound(loc, 'sound/effects/slosh.ogg', 25, 1) else - user << "This [callme] is out of water!" + to_chat(user, "This [callme] is out of water!") else if(istype(I, /obj/item/key)) - 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)) - user << "You hook the trashbag onto the [callme]." + to_chat(user, "You hook the trashbag onto the [callme].") user.drop_item() I.loc = src mybag = I @@ -227,7 +227,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) step(src, direction) update_mob() 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/bed/chair/janicart/Move() diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 01d282b40c..295aa9239c 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -63,14 +63,14 @@ var/obj/item/weapon/weldingtool/WT = C if(WT.welding == 1) if(WT.remove_fuel(0, user)) - user << "Slicing lattice joints ..." + to_chat(user, "Slicing lattice joints ...") new /obj/item/stack/rods(src.loc) qdel(src) return if (istype(C, /obj/item/stack/rods)) var/obj/item/stack/rods/R = C if(R.use(2)) - user << "You start connecting \the [R.name] to \the [src.name] ..." + to_chat(user, "You start connecting \the [R.name] to \the [src.name] ...") if(do_after(user, 5 SECONDS)) src.alpha = 0 // Note: I don't know why this is set, Eris did it, just trusting for now. ~Leshana new /obj/structure/catwalk(src.loc) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index a74f789d37..2043ca2a11 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -219,7 +219,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium) /obj/structure/morgue/crematorium/attack_hand(mob/user as mob) if (cremating) - usr << "It's locked." + to_chat(usr, "It's locked.") return if ((src.connected) && (src.locked == 0)) for(var/atom/movable/A as mob|obj in src.connected.loc) @@ -285,16 +285,16 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium) if(contents.len <= 0) for (var/mob/M in viewers(src)) - to_chat(M,"You hear a hollow crackle.") + to_chat(M, "You hear a hollow crackle.") return else if(!isemptylist(src.search_contents_for(/obj/item/weapon/disk/nuclear))) - to_chat(user,"You get the feeling that you shouldn't cremate one of the items in the cremator.") + to_chat(user, "You get the feeling that you shouldn't cremate one of the items in the cremator.") return for (var/mob/M in viewers(src)) - to_chat(M,"You hear a roar as the crematorium activates.") + to_chat(M, "You hear a roar as the crematorium activates.") cremating = 1 locked = 1 @@ -349,4 +349,4 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium) if (!C.cremating) C.cremate(user) else - to_chat(user,"Access denied.") + to_chat(user, "Access denied.") diff --git a/code/game/objects/structures/morgue_vr.dm b/code/game/objects/structures/morgue_vr.dm index eaf27b5ad0..2abe7098d1 100644 --- a/code/game/objects/structures/morgue_vr.dm +++ b/code/game/objects/structures/morgue_vr.dm @@ -15,7 +15,7 @@ return else if(!isemptylist(src.search_contents_for(/obj/item/weapon/disk/nuclear))) - usr << "You get the feeling that you shouldn't cremate one of the items in the cremator." + to_chat(usr, "You get the feeling that you shouldn't cremate one of the items in the cremator.") return for(var/I in contents) diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm index 2aa11fffa5..f3bfc92d8e 100644 --- a/code/game/objects/structures/noticeboard.dm +++ b/code/game/objects/structures/noticeboard.dm @@ -38,14 +38,14 @@ 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.") if(O.is_wrench()) - user << "You start to unwrench the noticeboard." + to_chat(user, "You start to unwrench the noticeboard.") playsound(src.loc, O.usesound, 50, 1) if(do_after(user, 15 * O.toolspeed)) - user << "You unwrench the noticeboard." + to_chat(user, "You unwrench the noticeboard.") new /obj/item/frame/noticeboard( src.loc ) qdel(src) return @@ -92,7 +92,7 @@ add_fingerprint(M) P.attackby(E, usr) else - M << "You'll need something to write with!" + to_chat(M, "You'll need something to write with!") if(href_list["read"]) var/obj/item/weapon/paper/P = locate(href_list["read"]) if((P && P.loc == src)) diff --git a/code/game/objects/structures/snowman.dm b/code/game/objects/structures/snowman.dm index b3947621b9..f3041e0287 100644 --- a/code/game/objects/structures/snowman.dm +++ b/code/game/objects/structures/snowman.dm @@ -7,7 +7,7 @@ /obj/structure/snowman/attack_hand(mob/user as mob) if(user.a_intent == I_HURT) - user << "In one hit, [src] easily crumples into a pile of snow. You monster." + to_chat(user, "In one hit, [src] easily crumples into a pile of snow. You monster.") var/turf/simulated/floor/F = get_turf(src) if (istype(F)) new /obj/item/stack/material/snow(F) diff --git a/code/game/objects/structures/stool_bed_chair_nest/stools.dm b/code/game/objects/structures/stool_bed_chair_nest/stools.dm index d86c9d4606..b3b8f0f457 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/stools.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/stools.dm @@ -114,7 +114,7 @@ var/global/list/stool_cache = list() //haha stool qdel(src) else if(istype(W,/obj/item/stack)) if(padding_material) - user << "\The [src] is already padded." + to_chat(user, "\The [src] is already padded.") return var/obj/item/stack/C = W if(C.get_amount() < 1) // How?? @@ -129,20 +129,20 @@ var/global/list/stool_cache = list() //haha stool if(M.material && (M.material.flags & MATERIAL_PADDING)) padding_type = "[M.material.name]" if(!padding_type) - user << "You cannot pad \the [src] with that." + to_chat(user, "You cannot pad \the [src] with that.") return C.use(1) if(!istype(src.loc, /turf)) user.drop_from_inventory(src) src.loc = get_turf(src) - user << "You add padding to \the [src]." + to_chat(user, "You add padding to \the [src].") add_padding(padding_type) return else if (W.is_wirecutter()) if(!padding_material) - user << "\The [src] has no padding to remove." + to_chat(user, "\The [src] has no padding to remove.") return - user << "You remove the padding from \the [src]." + to_chat(user, "You remove the padding from \the [src].") playsound(src.loc, W.usesound, 50, 1) remove_padding() else diff --git a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm index e5eba3f20a..e177f2c4a1 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm @@ -33,7 +33,7 @@ if(user==pulling) pulling = null user.pulledby = null - user << "You lost your grip!" + to_chat(user, "You lost your grip!") return if(has_buckled_mobs() && pulling && user in buckled_mobs) if(pulling.stat || pulling.stunned || pulling.weakened || pulling.paralysis || pulling.lying || pulling.restrained()) @@ -51,10 +51,10 @@ if(user==pulling) return if(pulling && (get_dir(src.loc, pulling.loc) == direction)) - user << "You cannot go there." + to_chat(user, "You cannot go there.") return if(pulling && has_buckled_mobs() && (user in buckled_mobs)) - user << "You cannot drive while being pushed." + to_chat(user, "You cannot drive while being pushed.") return // Let's roll @@ -109,7 +109,7 @@ unbuckle_mob() if (pulling && (get_dist(src, pulling) > 1)) pulling.pulledby = null - pulling << "You lost your grip!" + to_chat(pulling, "You lost your grip!") pulling = null else if (occupant && (src.loc != occupant.loc)) @@ -128,7 +128,7 @@ if(in_range(src, user)) if(!ishuman(user)) return if(has_buckled_mobs() && user in buckled_mobs) - user << "You realize you are unable to push the wheelchair you sit in." + to_chat(user, "You realize you are unable to push the wheelchair you sit in.") return if(!pulling) pulling = user @@ -136,9 +136,9 @@ if(user.pulling) user.stop_pulling() user.set_dir(get_dir(user, src)) - user << "You grip \the [name]'s handles." + to_chat(user, "You grip \the [name]'s handles.") else - usr << "You let go of \the [name]'s handles." + to_chat(usr, "You let go of \the [name]'s handles.") pulling.pulledby = null pulling = null return diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm index d9d31dfb55..e994e1b760 100644 --- a/code/game/objects/structures/tank_dispenser.dm +++ b/code/game/objects/structures/tank_dispenser.dm @@ -54,11 +54,11 @@ I.loc = src oxytanks.Add(I) oxygentanks++ - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") if(oxygentanks < 5) update_icon() else - user << "[src] is full." + to_chat(user, "[src] is full.") updateUsrDialog() return if(istype(I, /obj/item/weapon/tank/phoron)) @@ -67,19 +67,19 @@ I.loc = src platanks.Add(I) phorontanks++ - user << "You put [I] in [src]." + to_chat(user, "You put [I] in [src].") if(oxygentanks < 6) update_icon() else - user << "[src] is full." + to_chat(user, "[src] is full.") updateUsrDialog() return if(I.is_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 @@ -97,7 +97,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["phoron"]) @@ -109,7 +109,7 @@ else P = new /obj/item/weapon/tank/phoron(loc) P.loc = loc - usr << "You take [P] out of [src]." + to_chat(usr, "You take [P] out of [src].") phorontanks-- update_icon() add_fingerprint(usr) diff --git a/code/game/objects/structures/target_stake.dm b/code/game/objects/structures/target_stake.dm index fae45b8f51..55d8b37d0f 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 = ABOVE_JUNK_LAYER 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 diff --git a/code/game/objects/structures/transit_tubes.dm b/code/game/objects/structures/transit_tubes.dm index c260103a56..32fa0724a4 100644 --- a/code/game/objects/structures/transit_tubes.dm +++ b/code/game/objects/structures/transit_tubes.dm @@ -101,11 +101,11 @@ obj/structure/ex_act(severity) /obj/structure/transit_tube/Bumped(mob/AM as mob|obj) var/obj/structure/transit_tube/T = locate() in AM.loc if(T) - AM << "The tube's support pylons block your way." + to_chat(AM, "The tube's support pylons block your way.") return ..() else AM.loc = src.loc - AM << "You slip under the tube." + to_chat(AM, "You slip under the tube.") /obj/structure/transit_tube/station/New(loc) @@ -117,7 +117,7 @@ obj/structure/ex_act(severity) if(!pod_moving && icon_state == "open" && istype(AM, /mob)) for(var/obj/structure/transit_tube_pod/pod in loc) if(pod.contents.len) - AM << "The pod is already occupied." + to_chat(AM, "The pod is already occupied.") return else if(!pod.moving && pod.dir in directions()) AM.loc = pod diff --git a/code/game/objects/structures/under_wardrobe.dm b/code/game/objects/structures/under_wardrobe.dm index d26b421ab5..cb5db5411d 100644 --- a/code/game/objects/structures/under_wardrobe.dm +++ b/code/game/objects/structures/under_wardrobe.dm @@ -7,7 +7,7 @@ /obj/structure/undies_wardrobe/attack_hand(var/mob/user) if(!human_who_can_use_underwear(user)) - user << "Sadly there's nothing in here for you to wear." + to_chat(user, "Sadly there's nothing in here for you to wear.") return interact(user) diff --git a/code/game/response_team.dm b/code/game/response_team.dm index 952a3b64dd..480d89c61b 100644 --- a/code/game/response_team.dm +++ b/code/game/response_team.dm @@ -13,16 +13,16 @@ var/silent_ert = 0 set desc = "Send an emergency response team to the station" if(!holder) - usr << "Only administrators may use this command." + to_chat(usr, "Only administrators may use this command.") return if(!ticker) - usr << "The game hasn't started yet!" + to_chat(usr, "The game hasn't started yet!") return if(ticker.current_state == 1) - usr << "The round hasn't started yet!" + to_chat(usr, "The round hasn't started yet!") return if(send_emergency_team) - usr << "[using_map.boss_name] has already dispatched an emergency response team!" + to_chat(usr, "[using_map.boss_name] has already dispatched an emergency response team!") return if(alert("Do you want to dispatch an Emergency Response Team?",,"Yes","No") != "Yes") return @@ -33,7 +33,7 @@ var/silent_ert = 0 if("No") return if(send_emergency_team) - usr << "Looks like somebody beat you to it!" + to_chat(usr, "Looks like somebody beat you to it!") return message_admins("[key_name_admin(usr)] is dispatching an Emergency Response Team.", 1) @@ -46,22 +46,22 @@ client/verb/JoinResponseTeam() set category = "IC" if(!MayRespawn(1)) - usr << "You cannot join the response team at this time." + to_chat(usr, "You cannot join the response team at this time.") return if(istype(usr,/mob/observer/dead) || istype(usr,/mob/new_player)) 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, "Syndicate") || jobban_isbanned(usr, "Emergency Response Team") || jobban_isbanned(usr, "Security Officer")) - usr << "You are jobbanned from the emergency reponse team!" + to_chat(usr, "You are jobbanned from the emergency reponse team!") return if(ert.current_antagonists.len >= ert.hard_cap) - usr << "The emergency response team is already full!" + to_chat(usr, "The emergency response team is already full!") return ert.create_default(usr) else - 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.") // returns a number of dead players in % proc/percentage_dead() diff --git a/code/game/trader_visit.dm b/code/game/trader_visit.dm index b589e0b8cc..1fa78fdf21 100644 --- a/code/game/trader_visit.dm +++ b/code/game/trader_visit.dm @@ -9,16 +9,16 @@ var/can_call_traders = 1 set desc = "Invite players to join the Beruang." if(!holder) - usr << "Only administrators may use this command." + to_chat(usr, "Only administrators may use this command.") return if(!ticker) - usr << "The game hasn't started yet!" + to_chat(usr, "The game hasn't started yet!") return if(ticker.current_state == 1) - usr << "The round hasn't started yet!" + to_chat(usr, "The round hasn't started yet!") return if(send_beruang) - usr << "The Beruang has already been sent this round!" + to_chat(usr, "The Beruang has already been sent this round!") return if(alert("Do you want to dispatch the Beruang trade ship?",,"Yes","No") != "Yes") return @@ -27,7 +27,7 @@ var/can_call_traders = 1 if("No") return if(send_beruang) - usr << "Looks like somebody beat you to it!" + to_chat(usr, "Looks like somebody beat you to it!") return message_admins("[key_name_admin(usr)] is dispatching the Beruang.", 1) @@ -40,19 +40,19 @@ client/verb/JoinTraders() set category = "IC" if(!MayRespawn(1)) - usr << "You cannot join the traders." + to_chat(usr, "You cannot join the traders.") return if(istype(usr,/mob/observer/dead) || istype(usr,/mob/new_player)) if(!send_beruang) - usr << "The Beruang is not currently heading to the station." + to_chat(usr, "The Beruang is not currently heading to the station.") return if(traders.current_antagonists.len >= traders.hard_cap) - usr << "The number of trader slots is already full!" + to_chat(usr, "The number of trader slots is already full!") return traders.create_default(usr) else - 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.") proc/trigger_trader_visit() if(!can_call_traders) diff --git a/code/game/turfs/simulated.dm b/code/game/turfs/simulated.dm index 6bf7cf38b4..21488e5f26 100644 --- a/code/game/turfs/simulated.dm +++ b/code/game/turfs/simulated.dm @@ -78,7 +78,7 @@ /turf/simulated/Entered(atom/A, atom/OL) if(movement_disabled && usr.ckey != movement_disabled_exception) - usr << "Movement is admin-disabled." //This is to identify lag problems + to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems return if (istype(A,/mob/living)) diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm index 55e0dd3b67..b72143e4c0 100644 --- a/code/game/turfs/space/space.dm +++ b/code/game/turfs/space/space.dm @@ -127,9 +127,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_world("Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_world("Target Z = [target_z]") + to_world("Next X = [next_x]") //debug */ if(target_z) @@ -152,9 +152,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_world("Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_world("Target Z = [target_z]") + to_world("Next X = [next_x]") //debug */ if(target_z) @@ -176,9 +176,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_world("Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_world("Next Y = [next_y]") + to_world("Target Z = [target_z]") //debug */ if(target_z) @@ -201,9 +201,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_world("Src.z = [src.z] in global map X = [cur_x], Y = [cur_y]") + to_world("Next Y = [next_y]") + to_world("Target Z = [target_z]") //debug */ if(target_z) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index a8242ad868..f687389a5a 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -146,7 +146,7 @@ var/const/enterloopsanity = 100 /turf/Entered(atom/atom as mob|obj) if(movement_disabled) - usr << "Movement is admin-disabled." //This is to identify lag problems + to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems return ..() @@ -194,7 +194,7 @@ var/const/enterloopsanity = 100 //There's a lot of QDELETED() calls here if someone can figure out how to optimize this but not runtime when something gets deleted by a Bump/CanPass/Cross call, lemme know or go ahead and fix this mess - kevinz000 /turf/Enter(atom/movable/mover, atom/oldloc) if(movement_disabled && usr.ckey != movement_disabled_exception) - usr << "Movement is admin-disabled." //This is to identify lag problems + to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems return // Do not call ..() // Byond's default turf/Enter() doesn't have the behaviour we want with Bump() @@ -319,7 +319,7 @@ var/const/enterloopsanity = 100 if(istype(O,/obj/effect/rune) || istype(O,/obj/effect/decal/cleanable) || istype(O,/obj/effect/overlay)) qdel(O) else - user << "\The [source] is too dry to wash that." + to_chat(user, "\The [source] is too dry to wash that.") source.reagents.trans_to_turf(src, 1, 10) //10 is the multiplier for the reaction effect. probably needed to wet the floor properly. /turf/proc/update_blood_overlays() diff --git a/code/game/turfs/turf_changing.dm b/code/game/turfs/turf_changing.dm index cb3496a96b..b3988f3f77 100644 --- a/code/game/turfs/turf_changing.dm +++ b/code/game/turfs/turf_changing.dm @@ -40,7 +40,7 @@ var/old_outdoors = outdoors var/old_dangerous_objects = dangerous_objects - //world << "Replacing [src.type] with [N]" + //to_world("Replacing [src.type] with [N]") if(connections) connections.erase_all() diff --git a/code/game/verbs/ignore.dm b/code/game/verbs/ignore.dm index 686a9ed5af..702d462a0e 100644 --- a/code/game/verbs/ignore.dm +++ b/code/game/verbs/ignore.dm @@ -8,15 +8,15 @@ key_to_ignore = ckey(sanitize(key_to_ignore)) if(prefs && prefs.ignored_players) if(key_to_ignore in prefs.ignored_players) - usr << "[key_to_ignore] is already being ignored." + to_chat(usr, "[key_to_ignore] is already being ignored.") return if(key_to_ignore == usr.ckey) - usr <<"You can't ignore yourself." + to_chat(usr, "You can't ignore yourself.") return prefs.ignored_players |= key_to_ignore SScharacter_setup.queue_preferences_save(prefs) - usr << "Now ignoring [key_to_ignore]." + to_chat(usr, "Now ignoring [key_to_ignore].") /client/verb/unignore(key_to_unignore as text) set name = "Unignore" @@ -28,11 +28,11 @@ key_to_unignore = ckey(sanitize(key_to_unignore)) if(prefs && prefs.ignored_players) if(!(key_to_unignore in prefs.ignored_players)) - usr << "[key_to_unignore] isn't being ignored." + to_chat(usr, "[key_to_unignore] isn't being ignored.") return prefs.ignored_players -= key_to_unignore SScharacter_setup.queue_preferences_save(prefs) - usr << "Reverted ignore on [key_to_unignore]." + to_chat(usr, "Reverted ignore on [key_to_unignore].") /mob/proc/is_key_ignored(var/key_to_check) if(client) diff --git a/code/game/verbs/ooc.dm b/code/game/verbs/ooc.dm index 0c7596ed84..b4421d5c63 100644 --- a/code/game/verbs/ooc.dm +++ b/code/game/verbs/ooc.dm @@ -4,7 +4,7 @@ set category = "OOC" if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return if(!mob) return @@ -24,7 +24,7 @@ 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) to_chat(src, "You cannot use OOC (muted).") @@ -36,7 +36,7 @@ return //VOREStation Add - No talking during voting if(SSvote && SSvote.mode) - to_chat(src,"OOC is not allowed during voting.") + to_chat(src, "OOC is not allowed during voting.") return //VOREStation Add End @@ -71,9 +71,9 @@ else display_name = holder.fakekey if(holder && !holder.fakekey && (holder.rights & R_ADMIN) && config.allow_admin_ooccolor && (src.prefs.ooccolor != initial(src.prefs.ooccolor))) // keeping this for the badmins - target << "" + create_text_tag("ooc", "OOC:", target) + " [display_name]: [msg]" + to_chat(target, "" + create_text_tag("ooc", "OOC:", target) + " [display_name]: [msg]") else - target << "" + create_text_tag("ooc", "OOC:", target) + " [display_name]: [msg]" + to_chat(target, "" + create_text_tag("ooc", "OOC:", target) + " [display_name]: [msg]") /client/verb/looc(msg as text) set name = "LOOC" @@ -81,7 +81,7 @@ set category = "OOC" if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return if(!mob) @@ -104,7 +104,7 @@ to_chat(src, "LOOC 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) to_chat(src, "You cannot use OOC (muted).") @@ -162,12 +162,12 @@ if(target in admins) admin_stuff += "/([key])" - target << "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: [msg]" + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: [msg]") for(var/client/target in r_receivers) var/admin_stuff = "/([key])([admin_jump_link(mob, target.holder)])" - target << "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: [msg]" + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: [msg]") /mob/proc/get_looc_source() return src diff --git a/code/game/verbs/suicide.dm b/code/game/verbs/suicide.dm index 5a6bfefdb4..ce0b82df9b 100644 --- a/code/game/verbs/suicide.dm +++ b/code/game/verbs/suicide.dm @@ -107,7 +107,7 @@ if(confirm == "Yes") suiciding = 1 - viewers(loc) << "[src]'s brain is growing dull and lifeless. It looks like it's lost the will to live." + to_chat(viewers(loc),"[src]'s brain is growing dull and lifeless. It looks like it's lost the will to live.") spawn(50) death(0) suiciding = 0 @@ -127,7 +127,7 @@ if(confirm == "Yes") suiciding = 1 - viewers(src) << "[src] is powering down. It looks like they're trying to commit suicide." + to_chat(viewers(src),"[src] is powering down. It looks like they're trying to commit suicide.") //put em at -175 adjustOxyLoss(max(getMaxHealth() * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0)) updatehealth() @@ -147,7 +147,7 @@ if(confirm == "Yes") suiciding = 1 - viewers(src) << "[src] is powering down. It looks like they're trying to commit suicide." + to_chat(viewers(src),"[src] is powering down. It looks like they're trying to commit suicide.") //put em at -175 adjustOxyLoss(max(getMaxHealth() * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0)) updatehealth() diff --git a/code/game/verbs/who.dm b/code/game/verbs/who.dm index b30d73e421..4b03bcb4ce 100644 --- a/code/game/verbs/who.dm +++ b/code/game/verbs/who.dm @@ -61,7 +61,7 @@ msg += "[line]\n" msg += "Total Players: [length(Lines)]" - src << msg + to_chat(src,msg) /client/verb/staffwho() set category = "Admin" @@ -207,4 +207,4 @@ if(config.show_event_managers) msg += "\n Current Miscellaneous ([num_event_managers_online]):\n" + eventMmsg //VOREStation Edit - src << msg + to_chat(src,msg) diff --git a/code/game/world.dm b/code/game/world.dm index 9e97aaf610..79e4a1c4b9 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -1,6 +1,6 @@ #define RECOMMENDED_VERSION 501 /world/New() - world.log << "Map Loading Complete" + to_world_log("Map Loading Complete") //logs //VOREStation Edit Start log_path += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss") @@ -13,7 +13,7 @@ changelog_hash = md5('html/changelog.html') //used for telling if the changelog has changed recently if(byond_version < RECOMMENDED_VERSION) - world.log << "Your server's byond version does not meet the recommended requirements for this server. Please update BYOND" + to_world_log("Your server's byond version does not meet the recommended requirements for this server. Please update BYOND") config.post_load() @@ -329,12 +329,12 @@ 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" @@ -390,10 +390,10 @@ var/world_topic_spam_protect_time = world.timeofday if (usr) log_admin("[key_name(usr)] Has requested an immediate world restart via client side debugging tools") message_admins("[key_name_admin(usr)] Has requested an immediate world restart via client side debugging tools") - world << "[key_name_admin(usr)] has requested an immediate world restart via client side debugging tools" + to_world("[key_name_admin(usr)] has requested an immediate world restart via client side debugging tools") else - world << "Rebooting world immediately due to host request" + to_world("Rebooting world immediately due to host request") else processScheduler.stop() Master.Shutdown() //run SS shutdowns @@ -546,11 +546,11 @@ var/failed_old_db_connections = 0 /hook/startup/proc/connectDB() if(!config.sql_enabled) - world.log << "SQL connection disabled in config." + to_world_log("SQL connection disabled in config.") else if(!setup_database_connection()) - world.log << "Your server failed to establish a connection with the feedback database." + to_world_log("Your server failed to establish a connection with the feedback database.") else - world.log << "Feedback database connection established." + to_world_log("Feedback database connection established.") return 1 proc/setup_database_connection() @@ -573,7 +573,7 @@ proc/setup_database_connection() failed_db_connections = 0 //If this connection succeeded, reset the failed connections counter. else failed_db_connections++ //If it failed, increase the failed connections counter. - world.log << dbcon.ErrorMsg() + to_world_log(dbcon.ErrorMsg()) return . @@ -590,11 +590,11 @@ proc/establish_db_connection() /hook/startup/proc/connectOldDB() if(!config.sql_enabled) - world.log << "SQL connection disabled in config." + to_world_log("SQL connection disabled in config.") else if(!setup_old_database_connection()) - world.log << "Your server failed to establish a connection with the SQL database." + to_world_log("Your server failed to establish a connection with the SQL database.") else - world.log << "SQL database connection established." + to_world_log("SQL database connection established.") return 1 //These two procs are for the old database, while it's being phased out. See the tgstation.sql file in the SQL folder for more information. @@ -618,7 +618,7 @@ proc/setup_old_database_connection() failed_old_db_connections = 0 //If this connection succeeded, reset the failed connections counter. else failed_old_db_connections++ //If it failed, increase the failed connections counter. - world.log << dbcon.ErrorMsg() + to_world_log(dbcon.ErrorMsg()) return . diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm index dd52884833..97698044ae 100644 --- a/code/modules/admin/DB ban/functions.dm +++ b/code/modules/admin/DB ban/functions.dm @@ -82,7 +82,7 @@ datum/admins/proc/DB_ban_record(var/bantype, var/mob/banned_mob, var/duration = var/sql = "INSERT INTO erro_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 << "Ban saved to database." + to_chat(usr, "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) @@ -136,17 +136,17 @@ datum/admins/proc/DB_ban_unban(var/ckey, var/bantype, var/job = "") ban_number++; if(ban_number == 0) - usr << "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, "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 << "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, "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 << "Database update failed due to a ban ID mismatch. Contact the database admin." + to_chat(usr, "Database update failed due to a ban ID mismatch. Contact the database admin.") return DB_ban_unban_by_id(ban_id) @@ -156,7 +156,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 erro_ban WHERE id = [banid]") @@ -172,7 +172,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) @@ -184,7 +184,7 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null) value = sanitize(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 erro_ban SET reason = '[value]', edits = CONCAT(edits,'- [eckey] changed ban reason from \\\"[reason]\\\" to \\\"[value]\\\"
') WHERE id = [banid]") @@ -194,7 +194,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 erro_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]") @@ -205,10 +205,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) @@ -231,11 +231,11 @@ datum/admins/proc/DB_ban_unban_by_id(var/id) ban_number++; if(ban_number == 0) - usr << "Database update failed due to a ban id not being present in the database." + to_chat(usr, "Database update failed due to a ban id not being present in the database.") return if(ban_number > 1) - usr << "Database update failed due to multiple bans having the same ID. Contact the database admin." + to_chat(usr, "Database update failed due to multiple bans having the same ID. Contact the database admin.") return if(!src.owner || !istype(src.owner, /client)) @@ -271,7 +271,7 @@ datum/admins/proc/DB_ban_unban_by_id(var/id) establish_db_connection() if(!dbcon.IsConnected()) - usr << "Failed to establish database connection" + to_chat(usr, "Failed to establish database connection") return var/output = "
" diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index 18efe723f0..944cdc552a 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -106,7 +106,7 @@ var/savefile/Banlist Banlist.cd = "/base" if ( Banlist.dir.Find("[ckey][computerid]") ) - usr << text("Ban already exists.") + to_chat(usr, "Ban already exists.") return 0 else Banlist.dir.Add("[ckey][computerid]") @@ -208,17 +208,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]." + to_chat(Banlist["id"], "trashid[i]") + to_chat(Banlist["reason"], "Trashban[i].") Banlist["temp"] << a Banlist["minutes"] << CMinutes + rand(1,2000) - Banlist["bannedby"] << "trashmin" + 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 f4ddd3e3f2..1e2d5ef49c 100644 --- a/code/modules/admin/ToRban.dm +++ b/code/modules/admin/ToRban.dm @@ -37,7 +37,8 @@ F[cleaned] << 1 F["last_update"] << world.realtime log_misc("ToR data updated!") - if(usr) usr << "ToRban updated." + if(usr) + to_chat(usr, "ToRban updated.") return 1 log_misc("ToR data update aborted: no data.") return 0 diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 500bc42633..c9e1546a63 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -10,7 +10,7 @@ var/global/floorIsLava = 0 for(var/client/C in admins) if((R_ADMIN|R_MOD) & C.holder.rights) - C << msg + to_chat(C,msg) /proc/msg_admin_attack(var/text) //Toggleable Attack Messages var/rendered = "ATTACK: [text]" @@ -18,12 +18,12 @@ var/global/floorIsLava = 0 if((R_ADMIN|R_MOD) & C.holder.rights) if(C.is_preference_enabled(/datum/client_preference/mod/show_attack_logs)) var/msg = rendered - C << msg + to_chat(C,msg) proc/admin_notice(var/message, var/rights) for(var/mob/M in mob_list) if(check_rights(rights, 0, M)) - M << message + to_chat(M,message) ///////////////////////////////////////////////////////////////////////////////////////////////Panels @@ -33,12 +33,12 @@ proc/admin_notice(var/message, var/rights) 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 (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return var/body = "Options for [M.key]" @@ -222,7 +222,7 @@ proc/admin_notice(var/message, var/rights) if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return PlayerNotesPage(1) @@ -280,7 +280,7 @@ proc/admin_notice(var/message, var/rights) if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return var/dat = "Info on [key]" dat += "" @@ -330,7 +330,7 @@ proc/admin_notice(var/message, var/rights) if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return var/dat dat = text("Admin Newscaster

Admin Newscaster Unit

") @@ -561,8 +561,8 @@ proc/admin_notice(var/message, var/rights) 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_world("Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]") + //to_world("Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]") usr << browse(dat, "window=admincaster_main;size=400x600") onclose(usr, "admincaster_main") @@ -645,7 +645,7 @@ proc/admin_notice(var/message, var/rights) if(confirm == "Cancel") return if(confirm == "Yes") - world << "Restarting world!Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!" + to_world("Restarting world!Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!") log_admin("[key_name(usr)] initiated a reboot.") feedback_set_details("end_error","admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]") @@ -669,7 +669,7 @@ proc/admin_notice(var/message, var/rights) if(!check_rights(R_SERVER,0)) message = sanitize(message, 500, extra = 0) message = replacetext(message, "\n", "
") // required since we're putting it in a

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

[message]

" + to_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! @@ -710,7 +710,7 @@ var/datum/announcement/minor/admin_min_announcer = new if(!channel) //They picked a channel return - to_chat(usr,"Intercom Convo Directions
Start the conversation with the sender, a pipe (|), and then the message on one line. Then hit enter to \ + to_chat(usr, "Intercom Convo Directions
Start the conversation with the sender, a pipe (|), and then the message on one line. Then hit enter to \ add another line, and type a (whole) number of seconds to pause between that message, and the next message, then repeat the message syntax up to 20 times. For example:
\ --- --- ---
\ Some Guy|Hello guys, what's up?
\ @@ -734,12 +734,12 @@ var/datum/announcement/minor/admin_min_announcer = new //Time to find how they screwed up. //Wasn't the right length if((decomposed.len) % 3) //+1 to accomidate the lack of a wait time for the last message - to_chat(usr,"You passed [decomposed.len] segments (senders+messages+pauses). You must pass a multiple of 3, minus 1 (no pause after the last message). That means a sender and message on every other line (starting on the first), separated by a pipe character (|), and a number every other line that is a pause in seconds.") + to_chat(usr, "You passed [decomposed.len] segments (senders+messages+pauses). You must pass a multiple of 3, minus 1 (no pause after the last message). That means a sender and message on every other line (starting on the first), separated by a pipe character (|), and a number every other line that is a pause in seconds.") return //Too long a conversation if((decomposed.len / 3) > 20) - to_chat(usr,"This conversation is too long! 20 messages maximum, please.") + to_chat(usr, "This conversation is too long! 20 messages maximum, please.") return //Missed some sleeps, or sanitized to nothing. @@ -748,24 +748,24 @@ var/datum/announcement/minor/admin_min_announcer = new //Sanitize sender var/clean_sender = sanitize(decomposed[i]) if(!clean_sender) - to_chat(usr,"One part of your conversation was not able to be sanitized. It was the sender of the [(i+2)/3]\th message.") + to_chat(usr, "One part of your conversation was not able to be sanitized. It was the sender of the [(i+2)/3]\th message.") return decomposed[i] = clean_sender //Sanitize message var/clean_message = sanitize(decomposed[++i]) if(!clean_message) - to_chat(usr,"One part of your conversation was not able to be sanitized. It was the body of the [(i+2)/3]\th message.") + to_chat(usr, "One part of your conversation was not able to be sanitized. It was the body of the [(i+2)/3]\th message.") return decomposed[i] = clean_message //Sanitize wait time var/clean_time = text2num(decomposed[++i]) if(!isnum(clean_time)) - to_chat(usr,"One part of your conversation was not able to be sanitized. It was the wait time after the [(i+2)/3]\th message.") + to_chat(usr, "One part of your conversation was not able to be sanitized. It was the wait time after the [(i+2)/3]\th message.") return if(clean_time > 60) - to_chat(usr,"Max 60 second wait time between messages for sanity's sake please.") + to_chat(usr, "Max 60 second wait time between messages for sanity's sake please.") return decomposed[i] = clean_time @@ -791,9 +791,9 @@ var/datum/announcement/minor/admin_min_announcer = new config.ooc_allowed = !(config.ooc_allowed) if (config.ooc_allowed) - world << "The OOC channel has been globally enabled!" + to_world("The OOC channel has been globally enabled!") else - world << "The OOC channel has been globally disabled!" + to_world("The OOC channel has been globally disabled!") log_and_message_admins("toggled OOC.") feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -807,9 +807,9 @@ var/datum/announcement/minor/admin_min_announcer = new config.looc_allowed = !(config.looc_allowed) if (config.looc_allowed) - world << "The LOOC channel has been globally enabled!" + to_world("The LOOC channel has been globally enabled!") else - world << "The LOOC channel has been globally disabled!" + to_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! @@ -824,9 +824,9 @@ var/datum/announcement/minor/admin_min_announcer = new config.dsay_allowed = !(config.dsay_allowed) if (config.dsay_allowed) - world << "Deadchat has been globally enabled!" + to_world("Deadchat has been globally enabled!") else - world << "Deadchat has been globally disabled!" + to_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 @@ -881,7 +881,7 @@ var/datum/announcement/minor/admin_min_announcer = new 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() @@ -890,9 +890,9 @@ var/datum/announcement/minor/admin_min_announcer = new set name="Toggle Entering" config.enter_allowed = !(config.enter_allowed) if (!(config.enter_allowed)) - world << "New players may no longer enter the game." + to_world("New players may no longer enter the game.") else - world << "New players may now enter the game." + to_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() @@ -904,9 +904,9 @@ var/datum/announcement/minor/admin_min_announcer = new set name="Toggle AI" config.allow_ai = !( config.allow_ai ) if (!( config.allow_ai )) - world << "The AI job is no longer chooseable." + to_world("The AI job is no longer chooseable.") else - world << "The AI job is chooseable now." + to_world("The AI job is chooseable now.") log_admin("[key_name(usr)] toggled AI allowed.") world.update_status() feedback_add_details("admin_verb","TAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -917,9 +917,9 @@ var/datum/announcement/minor/admin_min_announcer = new set name="Toggle Respawn" config.abandon_allowed = !(config.abandon_allowed) if(config.abandon_allowed) - world << "You may now respawn." + to_world("You may now respawn.") else - world << "You may no longer respawn :(" + to_world("You may no longer respawn :(") message_admins("[key_name_admin(usr)] toggled respawn to [config.abandon_allowed ? "On" : "Off"].", 1) log_admin("[key_name(usr)] toggled respawn to [config.abandon_allowed ? "On" : "Off"].") world.update_status() @@ -956,10 +956,10 @@ var/datum/announcement/minor/admin_min_announcer = new return //alert("Round end delayed", null, null, null, null, null) round_progressing = !round_progressing if (!round_progressing) - world << "The game start has been delayed." + to_world("The game start has been delayed.") log_admin("[key_name(usr)] delayed the game.") else - world << "The game will start soon." + to_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! @@ -994,7 +994,7 @@ var/datum/announcement/minor/admin_min_announcer = new if(!usr.client.holder) return if( alert("Reboot server?",,"Yes","No") == "No") return - world << "Rebooting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!" + to_world("Rebooting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!") log_admin("[key_name(usr)] initiated an immediate reboot.") feedback_set_details("end_error","immediate admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]") @@ -1088,18 +1088,18 @@ var/datum/announcement/minor/admin_min_announcer = new if(!check_rights(R_SPAWN)) return if(!custom_items) - usr << "Custom item list is null." + to_chat(usr, "Custom item list is null.") return if(!custom_items.len) - usr << "Custom item list not populated." + to_chat(usr, "Custom item list not populated.") return for(var/assoc_key in custom_items) - usr << "[assoc_key] has:" + to_chat(usr, "[assoc_key] has:") var/list/current_items = custom_items[assoc_key] for(var/datum/custom_item/item in current_items) - usr << "- name: [item.name] icon: [item.item_icon] path: [item.item_path] desc: [item.item_desc]" + to_chat(usr, "- name: [item.name] icon: [item.item_icon] path: [item.item_path] desc: [item.item_desc]") /datum/admins/proc/spawn_plant(seedtype in plant_controller.seeds) set category = "Debug" @@ -1154,10 +1154,10 @@ var/datum/announcement/minor/admin_min_announcer = new set name = "Show Traitor 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 if(!M.mind) - usr << "This mob has no mind!" + to_chat(usr, "This mob has no mind!") return M.mind.edit_memory() @@ -1243,9 +1243,9 @@ var/datum/announcement/minor/admin_min_announcer = new set name="Toggle tinted welding helmets." config.welder_vision = !( config.welder_vision ) if (config.welder_vision) - world << "Reduced welder vision has been enabled!" + to_world("Reduced welder vision has been enabled!") else - world << "Reduced welder vision has been disabled!" + to_world("Reduced welder vision has been disabled!") log_admin("[key_name(usr)] toggled welder vision.") message_admins("[key_name_admin(usr)] toggled welder vision.", 1) feedback_add_details("admin_verb","TTWH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -1256,9 +1256,9 @@ var/datum/announcement/minor/admin_min_announcer = new set name="Toggle guests" config.guests_allowed = !(config.guests_allowed) if (!(config.guests_allowed)) - world << "Guests may no longer enter the game." + to_world("Guests may no longer enter the game.") else - world << "Guests may now enter the game." + to_world("Guests may now enter the game.") log_admin("[key_name(usr)] toggled guests game entering [config.guests_allowed?"":"dis"]allowed.") message_admins("[key_name_admin(usr)] toggled guests game entering [config.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! @@ -1268,21 +1268,21 @@ var/datum/announcement/minor/admin_min_announcer = new 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)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"]: laws:" + to_chat(usr, "CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"]: laws:") else if (ispAI(S)) - usr << "pAI [key_name(S, usr)]'s laws:" + to_chat(usr, "pAI [key_name(S, usr)]'s laws:") else - usr << "SOMETHING SILICON [key_name(S, usr)]'s laws:" + to_chat(usr, "SOMETHING 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 AIs located" //Just so you know the thing is actually working and not just ignoring you. + to_chat(usr, "No AIs located") //Just so you know the thing is actually working and not just ignoring you. /datum/admins/proc/show_skills() set category = "Admin" @@ -1291,7 +1291,7 @@ var/datum/announcement/minor/admin_min_announcer = new if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return var/mob/living/carbon/human/M = input("Select mob.", "Select mob.") as null|anything in human_mob_list @@ -1403,16 +1403,16 @@ var/datum/announcement/minor/admin_min_announcer = new if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return if(!ticker || !ticker.mode) - usr << "Mode has not started." + to_chat(usr, "Mode has not started.") return var/antag_type = input("Choose a template.","Force Latespawn") as null|anything in all_antag_types if(!antag_type || !all_antag_types[antag_type]) - usr << "Aborting." + to_chat(usr, "Aborting.") return var/datum/antagonist/antag = all_antag_types[antag_type] @@ -1427,11 +1427,11 @@ var/datum/announcement/minor/admin_min_announcer = new if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins) || !check_rights(R_ADMIN)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return if(!ticker || !ticker.mode) - usr << "Mode has not started." + to_chat(usr, "Mode has not started.") return log_and_message_admins("attempting to force mode autospawn.") @@ -1469,7 +1469,7 @@ var/datum/announcement/minor/admin_min_announcer = new var/msg = "[key_name(usr)] has modified [H.ckey]'s telecrystals to [crystals]." message_admins(msg) else - usr << "You do not have access to this command." + to_chat(usr, "You do not have access to this command.") /datum/admins/proc/add_tcrystals(mob/living/carbon/human/H as mob) set category = "Debug" @@ -1485,7 +1485,7 @@ var/datum/announcement/minor/admin_min_announcer = new var/msg = "[key_name(usr)] has added [crystals] to [H.ckey]'s telecrystals." message_admins(msg) else - usr << "You do not have access to this command." + to_chat(usr, "You do not have access to this command.") /datum/admins/proc/sendFax() @@ -1499,7 +1499,7 @@ var/datum/announcement/minor/admin_min_announcer = new if (!istype(src,/datum/admins)) src = usr.client.holder if (!istype(src,/datum/admins)) - usr << "Error: you are not an admin!" + to_chat(usr, "Error: you are not an admin!") return var/replyorigin = input(src.owner, "Please specify who the fax is coming from", "Origin") as text|null @@ -1557,20 +1557,20 @@ datum/admins/var/obj/item/weapon/paper/admin/faxreply // var to hold fax replies if(destination.receivefax(P)) - src.owner << "Message reply to transmitted successfully." + to_chat(src.owner, "Message reply to transmitted successfully.") if(P.sender) // sent as a reply log_admin("[key_name(src.owner)] replied to a fax message from [key_name(P.sender)]") for(var/client/C in admins) if((R_ADMIN | R_MOD) & C.holder.rights) - C << "FAX LOG:[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(P.sender)] (VIEW)" + to_chat(C, "FAX LOG:[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(P.sender)] (VIEW)") else log_admin("[key_name(src.owner)] has sent a fax message to [destination.department]") for(var/client/C in admins) if((R_ADMIN | R_MOD) & C.holder.rights) - C << "FAX LOG:[key_name_admin(src.owner)] has sent a fax message to [destination.department] (VIEW)" + to_chat(C, "FAX LOG:[key_name_admin(src.owner)] has sent a fax message to [destination.department] (VIEW)") else - src.owner << "Message reply failed." + to_chat(src.owner, "Message reply failed.") spawn(100) qdel(P) diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index 12a84346b3..8dc1e9de74 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 << "[time2text(world.timeofday,"hh:mm")] \ref[src] ([x],[y],[z]) || [src] [message]
" + to_chat(F, "[time2text(world.timeofday,"hh:mm")] \ref[src] ([x],[y],[z]) || [src] [message]
") //ADMINVERBS /client/proc/investigate_show( subject in list("hrefs","notes","singulo","telesci") ) diff --git a/code/modules/admin/admin_memo.dm b/code/modules/admin/admin_memo.dm index 24ecba7c01..007ca49ba5 100644 --- a/code/modules/admin/admin_memo.dm +++ b/code/modules/admin/admin_memo.dm @@ -26,7 +26,7 @@ return if( findtext(memo,"[memo]" + to_chat(F[ckey], "[key] on [time2text(world.realtime,"(DDD) DD MMM hh:mm")]
[memo]") message_admins("[key] set an admin memo:
[memo]") //show all memos diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 13ff4ee8c0..be492854fd 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -474,11 +474,11 @@ var/list/admin_verbs_event_manager = list( if(holder && mob) if(mob.invisibility == INVISIBILITY_OBSERVER) mob.invisibility = initial(mob.invisibility) - mob << "Invisimin off. Invisibility reset." + to_chat(mob, "Invisimin off. Invisibility reset.") mob.alpha = max(mob.alpha + 100, 255) 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.") mob.alpha = max(mob.alpha - 100, 0) @@ -608,7 +608,7 @@ var/list/admin_verbs_event_manager = 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 @@ -624,7 +624,7 @@ var/list/admin_verbs_event_manager = list( ban_unban_log_save("[ckey] warned [warned_ckey], resulting in a [AUTOBANTIME] minute autoban.") if(C) message_admins("[key_name_admin(src)] has warned [key_name_admin(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.") @@ -632,7 +632,7 @@ var/list/admin_verbs_event_manager = 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.") else message_admins("[key_name_admin(src)] has warned [warned_ckey] (DC). They have [MAX_WARNS-D.warns] strikes remaining.") @@ -764,10 +764,10 @@ var/list/admin_verbs_event_manager = list( set desc = "Toggle Air Processing" if(!SSair.can_fire) SSair.can_fire = TRUE - usr << "Enabled air processing." + to_chat(usr, "Enabled air processing.") else SSair.can_fire = FALSE - 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("[key_name_admin(usr)] used 'kill air'.", 1) @@ -868,7 +868,7 @@ var/list/admin_verbs_event_manager = list( if(!H) 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 var/datum/gender/T = gender_datums[H.get_visible_gender()] switch(alert("Do you wish for [H] to be allowed to select non-whitelisted races?","Alter Mob Appearance","Yes","No","Cancel")) @@ -911,7 +911,7 @@ var/list/admin_verbs_event_manager = list( var/mob/living/carbon/human/M = input("Select mob.", "Edit Appearance") as null|anything in human_mob_list if(!istype(M, /mob/living/carbon/human)) - usr << "You can only do this to humans!" + to_chat(usr, "You can only do this to humans!") return switch(alert("Are you sure you wish to edit this mob's appearance? Skrell, Unathi, Tajaran can result in unintended consequences.",,"Yes","No")) if("No") @@ -986,7 +986,7 @@ var/list/admin_verbs_event_manager = 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) @@ -1030,8 +1030,8 @@ var/list/admin_verbs_event_manager = list( if(alert("Are you sure you want to tell them to man up?","Confirmation","Deal with it","No")=="No") return - T << "Man up and deal with it." - T << "Move along." + to_chat(T, "Man up and deal with it.") + to_chat(T, "Move along.") 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.", 1) @@ -1044,7 +1044,7 @@ var/list/admin_verbs_event_manager = list( if(alert("Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return for (var/mob/T as mob in mob_list) - T << "
Man up.
Deal with it.

Move along.

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

Move along.

") 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/banjob.dm b/code/modules/admin/banjob.dm index 7819c9a582..1a3781b0c5 100644 --- a/code/modules/admin/banjob.dm +++ b/code/modules/admin/banjob.dm @@ -42,7 +42,7 @@ DEBUG set name = "list all jobbans" for(var/s in jobban_keylist) - world << s + to_world(s) /mob/verb/reload_jobbans() set name = "reload jobbans" diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 114808d3d3..92fd1c300b 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -62,7 +62,7 @@ generally it would be used like so: proc/admin_proc() if(!check_rights(R_ADMIN)) return - world << "you have enough rights!" + to_world("you have enough rights!") NOTE: It checks usr by default. Supply the "user" argument if you wish to check for a specific mob. */ @@ -76,7 +76,7 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check return FALSE if(!C.holder) if(show_msg) - C << "Error: You are not an admin." + to_chat(C, "Error: You are not an admin.") return FALSE if(rights_required) @@ -84,7 +84,7 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check return TRUE else if(show_msg) - C << "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")]." + to_chat(C, "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")].") return FALSE else return TRUE @@ -98,7 +98,7 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check 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/mark_datum(datum/D) diff --git a/code/modules/admin/map_capture.dm b/code/modules/admin/map_capture.dm index ced6d257bf..a8cf7717fc 100644 --- a/code/modules/admin/map_capture.dm +++ b/code/modules/admin/map_capture.dm @@ -7,13 +7,13 @@ return if(isnull(tx) || isnull(ty) || isnull(tz) || isnull(range)) - usr << "Capture Map Part, captures part of a map using camara like rendering." - usr << "Usage: Capture-Map-Part target_x_cord target_y_cord target_z_cord range" - usr << "Target coordinates specify bottom left corner of the capture, range defines render distance to opposite corner." + to_chat(usr, "Capture Map Part, captures part of a map using camara like rendering.") + to_chat(usr, "Usage: Capture-Map-Part target_x_cord target_y_cord target_z_cord range") + to_chat(usr, "Target coordinates specify bottom left corner of the capture, range defines render distance to opposite corner.") return if(range > 32 || range <= 0) - usr << "Capturing range is incorrect, it must be within 1-32." + to_chat(usr, "Capturing range is incorrect, it must be within 1-32.") return if(locate(tx,ty,tz)) @@ -53,7 +53,7 @@ cap.Blend(img, blendMode2iconMode(A.blend_mode), A.pixel_x + xoff, A.pixel_y + yoff) var/file_name = "map_capture_x[tx]_y[ty]_z[tz]_r[range].png" - usr << "Saved capture in cache as [file_name]." + to_chat(usr, "Saved capture in cache as [file_name].") usr << browse_rsc(cap, file_name) else - usr << "Target coordinates are incorrect." + to_chat(usr, "Target coordinates are incorrect.") diff --git a/code/modules/admin/newbanjob.dm b/code/modules/admin/newbanjob.dm index 9b1d2eeaa3..0bc19828a9 100644 --- a/code/modules/admin/newbanjob.dm +++ b/code/modules/admin/newbanjob.dm @@ -141,7 +141,7 @@ var/savefile/Banlistjob Banlistjob.cd = "/base" if ( Banlistjob.dir.Find("[ckey][computerid][rank]") ) - usr << text("Banjob already exists.") + to_char(usr,"Banjob already exists.") return 0 else Banlistjob.dir.Add("[ckey][computerid][rank]") @@ -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 << "You have been banned from [job] by [usr.client.ckey].\nReason: [reason]." - M << "This is a permanent ban." + to_chat(M, "You have been banned from [job] by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "This is a permanent ban.") if(config.banappeals) - M << "To try to resolve this matter head to [config.banappeals]" + to_chat(M, "To try to resolve this matter head to [config.banappeals]") else - M << "No ban appeals URL has been set." + to_chat(M, "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("[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 << "You have been jobbanned from [job] by [usr.client.ckey].\nReason: [reason]." - M << "This is a temporary ban, it will be removed in [mins] minutes." + to_chat(M, "You have been jobbanned from [job] by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "This is a temporary ban, it will be removed in [mins] minutes.") if(config.banappeals) - M << "To try to resolve this matter head to [config.banappeals]" + to_chat(M, "To try to resolve this matter head to [config.banappeals]") else - M << "No ban appeals URL has been set." + to_chat(M, "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("[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]." + to_chat(Banlistjob["id"], "trashid[i]") + to_chat(Banlistjob["reason"], "Trashban[i].") Banlistjob["temp"] << a Banlistjob["minutes"] << CMinutes + rand(1,2000) - Banlistjob["bannedby"] << "trashmin" + 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 d0cc5518c7..e75d008576 100644 --- a/code/modules/admin/permissionverbs/permissionedit.dm +++ b/code/modules/admin/permissionverbs/permissionedit.dm @@ -51,13 +51,13 @@ return if(!usr.client.holder || !(usr.client.holder.rights & R_PERMISSIONS)) - usr << "You do not have permission to do this!" + to_chat(usr, "You do not have permission to do this!") return establish_db_connection() if(!dbcon.IsConnected()) - usr << "Failed to establish database connection" + to_chat(usr, "Failed to establish database connection") return if(!adm_ckey || !new_rank) @@ -85,14 +85,14 @@ insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.`erro_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 << "New admin added." + to_chat(usr, "New admin added.") else if(!isnull(admin_id) && isnum(admin_id)) var/DBQuery/insert_query = dbcon.NewQuery("UPDATE `erro_admin` SET rank = '[new_rank]' WHERE id = [admin_id]") insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.`erro_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 << "Admin rank changed." + to_chat(usr, "Admin rank changed.") /datum/admins/proc/log_admin_permission_modification(var/adm_ckey, var/new_permission) if(config.admin_legacy_system) return @@ -101,12 +101,12 @@ return if(!usr.client.holder || !(usr.client.holder.rights & R_PERMISSIONS)) - usr << "You do not have permission to do this!" + to_chat(usr, "You do not have permission to do this!") return establish_db_connection() if(!dbcon.IsConnected()) - usr << "Failed to establish database connection" + to_chat(usr, "Failed to establish database connection") return if(!adm_ckey || !new_permission) @@ -140,10 +140,10 @@ insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.`erro_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 << "Permission removed." + to_chat(usr, "Permission removed.") else //This admin doesn't have this permission, so we are adding it. var/DBQuery/insert_query = dbcon.NewQuery("UPDATE `erro_admin` SET flags = '[admin_rights | new_permission]' WHERE id = [admin_id]") insert_query.Execute() var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.`erro_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 << "Permission added." \ No newline at end of file + to_chat(usr, "Permission added.") \ No newline at end of file diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 07168a4e32..a66cf17fe2 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -63,23 +63,23 @@ 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 var/mob/playermob @@ -116,14 +116,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] @@ -155,7 +155,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) @@ -264,7 +264,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 @@ -370,14 +370,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 = "" @@ -631,16 +631,16 @@ //JOBBAN'S INNARDS else if(href_list["jobban3"]) if(!check_rights(R_MOD,0) && !check_rights(R_ADMIN,0)) - usr << "You do not have the appropriate permissions to add job bans!" + to_chat(usr, "You do not have the appropriate permissions to add job bans!") return if(check_rights(R_MOD,0) && !check_rights(R_ADMIN,0) && !config.mods_can_job_tempban) // If mod and tempban disabled - usr << "Mod jobbanning is disabled!" + to_chat(usr, "Mod jobbanning is disabled!") return 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 @@ -649,7 +649,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. @@ -726,16 +726,16 @@ switch(alert("Temporary Ban?",,"Yes","No", "Cancel")) if("Yes") if(!check_rights(R_MOD,0) && !check_rights(R_BAN, 0)) - usr << " You Cannot issue temporary job-bans!" + to_chat(usr, " You Cannot issue temporary job-bans!") return if(config.ban_legacy_system) - usr << "Your server is using the legacy banning system, which does not support temporary job bans. Consider upgrading. Aborting ban." + to_chat(usr, "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) return if(check_rights(R_MOD, 0) && !check_rights(R_BAN, 0) && mins > config.mod_job_tempban_max) - usr << " Moderators can only job tempban up to [config.mod_job_tempban_max] minutes!" + to_chat(usr, " Moderators can only job tempban up to [config.mod_job_tempban_max] minutes!") return var/reason = sanitize(input(usr,"Reason?","Please State Reason","") as text|null) if(!reason) @@ -755,9 +755,9 @@ msg += ", [job]" notes_add(M.ckey, "Banned from [msg] - [reason]", usr) message_admins("[key_name_admin(usr)] banned [key_name_admin(M)] from [msg] for [mins] minutes", 1) - M << "You have been jobbanned by [usr.client.ckey] from: [msg]." - M << "The reason is: [reason]" - M << "This jobban will be lifted in [mins] minutes." + to_chat(M, "You have been jobbanned by [usr.client.ckey] from: [msg].") + to_chat(M, "The reason is: [reason]") + to_chat(M, "This jobban will be lifted in [mins] minutes.") href_list["jobban2"] = 1 // lets it fall through and refresh return 1 if("No") @@ -776,9 +776,9 @@ else msg += ", [job]" notes_add(M.ckey, "Banned from [msg] - [reason]", usr) message_admins("[key_name_admin(usr)] banned [key_name_admin(M)] from [msg]", 1) - M << "You have been jobbanned by [usr.client.ckey] from: [msg]." - M << "The reason is: [reason]" - M << "Jobban can be lifted only upon request." + to_chat(M, "You have been jobbanned by [usr.client.ckey] from: [msg].") + to_chat(M, "The reason is: [reason]") + to_chat(M, "Jobban can be lifted only upon request.") href_list["jobban2"] = 1 // lets it fall through and refresh return 1 if("Cancel") @@ -788,7 +788,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 @@ -809,7 +809,7 @@ continue if(msg) message_admins("[key_name_admin(usr)] unbanned [key_name_admin(M)] from [msg]", 1) - M << "You have been un-jobbanned by [usr.client.ckey] from [msg]." + to_chat(M, "You 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! @@ -847,11 +847,11 @@ else if(href_list["newban"]) if(!check_rights(R_MOD,0) && !check_rights(R_BAN, 0)) - usr << "You do not have the appropriate permissions to add bans!" + to_chat(usr, "You do not have the appropriate permissions to add bans!") return if(check_rights(R_MOD,0) && !check_rights(R_ADMIN, 0) && !config.mods_can_job_tempban) // If mod and tempban disabled - usr << "Mod jobbanning is disabled!" + to_chat(usr, "Mod jobbanning is disabled!") return var/mob/M = locate(href_list["newban"]) @@ -865,7 +865,7 @@ if(!mins) return if(check_rights(R_MOD, 0) && !check_rights(R_BAN, 0) && mins > config.mod_tempban_max) - usr << "Moderators can only job tempban up to [config.mod_tempban_max] minutes!" + to_chat(usr, "Moderators can only job tempban up to [config.mod_tempban_max] minutes!") return if(mins >= 525600) mins = 525599 var/reason = sanitize(input(usr,"Reason?","reason","Griefer") as text|null) @@ -874,15 +874,15 @@ 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.") notes_add(M.ckey,"[usr.client.ckey] has banned [M.ckey]. - Reason: [reason] - This will be removed in [mins] minutes.",usr) - M << "You have been banned by [usr.client.ckey].\nReason: [reason]." - M << "This is a temporary ban, it will be removed in [mins] minutes." + to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "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 << "To try to resolve this matter head to [config.banappeals]" + to_chat(M, "To try to resolve this matter head to [config.banappeals]") else - M << "No ban appeals URL has been set." + to_chat(M, "No ban appeals URL has been set.") log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") message_admins("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") var/datum/admin_help/AH = M.client ? M.client.current_ticket : null @@ -901,12 +901,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 << "You have been banned by [usr.client.ckey].\nReason: [reason]." - M << "This is a permanent ban." + to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "This is a permanent ban.") if(config.banappeals) - M << "To try to resolve this matter head to [config.banappeals]" + to_chat(M, "To try to resolve this matter head to [config.banappeals]") else - M << "No ban appeals URL has been set." + to_chat(M, "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.") notes_add(M.ckey,"[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.",usr) log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") @@ -969,7 +969,7 @@ master_mode = href_list["c_mode2"] log_admin("[key_name(usr)] set the mode as [config.mode_names[master_mode]].") message_admins("[key_name_admin(usr)] set the mode as [config.mode_names[master_mode]].", 1) - world << "The mode is now: [config.mode_names[master_mode]]" + to_world("The mode is now: [config.mode_names[master_mode]]") Game() // updates the main game menu world.save_mode(master_mode) .(href, list("c_mode"=1)) @@ -992,7 +992,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)]") @@ -1004,7 +1004,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)]") @@ -1016,7 +1016,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 @@ -1033,10 +1033,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) @@ -1061,7 +1061,7 @@ prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/prison(prisoner), slot_w_uniform) prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes) - M << "You have been sent to the prison station!" + to_chat(M, "You have been sent to the prison station!") log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.") message_admins("[key_name_admin(usr)] sent [key_name_admin(M)] to the prison station.", 1) @@ -1073,10 +1073,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) @@ -1086,7 +1086,7 @@ sleep(5) M.loc = pick(tdome1) spawn(50) - M << "You have been sent to the Thunderdome." + to_chat(M, "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) @@ -1098,10 +1098,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) @@ -1111,7 +1111,7 @@ sleep(5) M.loc = pick(tdome2) spawn(50) - M << "You have been sent to the Thunderdome." + to_chat(M, "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) @@ -1123,17 +1123,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 << "You have been sent to the Thunderdome." + to_chat(M, "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) @@ -1145,10 +1145,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) @@ -1162,7 +1162,7 @@ sleep(5) M.loc = pick(tdomeobserve) spawn(50) - M << "You have been sent to the Thunderdome." + to_chat(M, "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) @@ -1171,7 +1171,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 if(config.allow_admin_rev) @@ -1179,14 +1179,14 @@ message_admins("Admin [key_name_admin(usr)] healed / revived [key_name_admin(L)]!", 1) log_admin("[key_name(usr)] healed / Rrvived [key_name(L)]") else - usr << "Admin Rejuvinates have been disabled" + to_chat(usr, "Admin Rejuvinates have been disabled") else if(href_list["makeai"]) if(!check_rights(R_SPAWN)) return 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("Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!", 1) @@ -1198,7 +1198,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) @@ -1208,7 +1208,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) @@ -1218,7 +1218,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) @@ -1228,7 +1228,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"]) usr.client.cmd_admin_toggle_block(H,block) @@ -1302,7 +1302,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 = "" @@ -1342,19 +1342,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) ([admin_jump_link(M, src)]) (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) ([admin_jump_link(M, src)]) (CA)") else if(href_list["adminspawncookie"]) if(!check_rights(R_ADMIN|R_FUN)) 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 ) @@ -1371,14 +1371,14 @@ log_admin("[key_name(H)] got their cookie, spawned by [key_name(src.owner)]") message_admins("[key_name(H)] got their cookie, spawned by [key_name(src.owner)]") feedback_inc("admin_cookies_spawned",1) - H << "Your prayers have been answered!! You received the best cookie!" + to_chat(H, "Your prayers have been answered!! You received the best cookie!") else if(href_list["adminsmite"]) if(!check_rights(R_ADMIN|R_FUN)) return var/mob/living/carbon/human/H = locate(href_list["adminsmite"]) 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 owner.smite(H) @@ -1388,7 +1388,7 @@ 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 Blue Space Artillery?", "Confirm Firing?" , "Yes" , "No") != "Yes") @@ -1399,41 +1399,41 @@ else if(href_list["CentComReply"]) var/mob/living/L = locate(href_list["CentComReply"]) 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 if(L.can_centcom_reply()) var/input = sanitize(input(src.owner, "Please enter a message to reply to [key_name(L)] via their headset.","Outgoing message from CentCom", "")) if(!input) return - src.owner << "You sent [input] to [L] via a secure channel." + to_chat(src.owner, "You sent [input] to [L] via a secure channel.") log_admin("[src.owner] replied to [key_name(L)]'s CentCom message with the message [input].") message_admins("[src.owner] replied to [key_name(L)]'s CentCom message with: \"[input]\"") if(!isAI(L)) - L << "You hear something crackle in your headset for a moment before a voice speaks." - L << "Please stand by for a message from Central Command." - L << "Message as follows." - L << "[input]" - L << "Message ends." + to_chat(L, "You hear something crackle in your headset for a moment before a voice speaks.") + to_chat(L, "Please stand by for a message from Central Command.") + to_chat(L, "Message as follows.") + to_chat(L, "[input]") + to_chat(L, "Message ends.") else - src.owner << "The person you are trying to contact does not have functional radio equipment." + to_chat(src.owner, "The person you are trying to contact does not have functional radio equipment.") else if(href_list["SyndicateReply"]) 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(!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 = sanitize(input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from a shadowy figure...", "")) 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 illegal 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["AdminFaxView"]) var/obj/item/fax = locate(href_list["AdminFaxView"]) @@ -1455,7 +1455,7 @@ usr << browse(data, "window=[B.name]") else - usr << "The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]" + to_chat(usr, "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"]) var/page = text2num(href_list["AdminFaxViewPage"]) @@ -1527,7 +1527,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) @@ -1551,7 +1551,7 @@ if(!check_rights(R_SPAWN)) return if(!config.allow_admin_spawning) - usr << "Spawning of items is not allowed." + to_chat(usr, "Spawning of items is not allowed.") return var/atom/loc = usr.loc @@ -1611,24 +1611,24 @@ where = "onfloor" if( where == "inhand" ) - usr << "Support for inhand not available yet. Will spawn on floor." + to_chat(usr, "Support for inhand not available yet. Will spawn on floor.") where = "onfloor" if ( where == "inhand" ) //Can only give when human or monkey if ( !( ishuman(usr) || issmall(usr) ) ) - usr << "Can only spawn in hand when you're a human or a monkey." + to_chat(usr, "Can only spawn in hand when you're a human or a monkey.") where = "onfloor" else if ( usr.get_active_hand() ) - usr << "Your active hand is full. Spawning on floor." + to_chat(usr, "Your active hand is full. Spawning on floor.") where = "onfloor" if ( where == "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 var/atom/target //Where the object will be spawned @@ -1880,17 +1880,17 @@ if(check_rights(R_SPAWN)) //VOREStation Edit var/mob/M = locate(href_list["toglang"]) if(!istype(M)) - usr << "[M] is illegal type, must be /mob!" + to_chat(usr, "[M] is illegal type, must be /mob!") return var/lang2toggle = href_list["lang"] var/datum/language/L = GLOB.all_languages[lang2toggle] if(L in M.languages) if(!M.remove_language(lang2toggle)) - usr << "Failed to remove language '[lang2toggle]' from \the [M]!" + to_chat(usr, "Failed to remove language '[lang2toggle]' from \the [M]!") else if(!M.add_language(lang2toggle)) - usr << "Failed to add language '[lang2toggle]' from \the [M]!" + to_chat(usr, "Failed to add language '[lang2toggle]' from \the [M]!") show_player_panel(M) @@ -1899,7 +1899,7 @@ var/mob/living/carbon/M = locate(href_list["cryoplayer"]) //VOREStation edit from just an all mob check to mob/living/carbon if(!istype(M)) - to_chat(usr,"Mob doesn't exist!") + to_chat(usr, "Mob doesn't exist!") return var/client/C = usr.client diff --git a/code/modules/admin/verbs/BrokenInhands.dm b/code/modules/admin/verbs/BrokenInhands.dm index e5d6dc2661..654badec7f 100644 --- a/code/modules/admin/verbs/BrokenInhands.dm +++ b/code/modules/admin/verbs/BrokenInhands.dm @@ -31,6 +31,6 @@ var/F = file("broken_icons.txt") fdel(F) F << text - world << "Completeled successfully and written to [F]" + to_world("Completeled successfully and written to [F]") diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 642aa456cb..fae66d4af9 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -54,7 +54,7 @@ A.on_mob_jump() A.loc = T else - A << "This mob is not located in the game world." + to_chat(A, "This mob is not located in the game world.") else alert("Admin jumping disabled") diff --git a/code/modules/admin/verbs/adminsay.dm b/code/modules/admin/verbs/adminsay.dm index 200a742b8c..cdd825f0b3 100644 --- a/code/modules/admin/verbs/adminsay.dm +++ b/code/modules/admin/verbs/adminsay.dm @@ -14,7 +14,7 @@ //VOREStation Edit Start - Adds R_EVENT for(var/client/C in admins) if(check_rights(R_ADMIN|R_EVENT)) - C << "" + create_text_tag("admin", "ADMIN:", C) + " [key_name(usr, 1)]([admin_jump_link(mob, src)]): [msg]" + to_chat(C, "" + create_text_tag("admin", "ADMIN:", C) + " [key_name(usr, 1)]([admin_jump_link(mob, src)]): [msg]") //VOREStation Edit End feedback_add_details("admin_verb","M") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -38,7 +38,7 @@ sender_name = "[sender_name]" for(var/client/C in admins) if(check_rights(R_ADMIN|R_MOD|R_SERVER|R_STEALTH)) //VOREStation Edit - C << "" + create_text_tag("mod", "MOD:", C) + " [sender_name]([admin_jump_link(mob, C.holder)]): [msg]" + to_chat(C, "" + create_text_tag("mod", "MOD:", C) + " [sender_name]([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! @@ -60,6 +60,6 @@ if(check_rights(R_ADMIN, 0)) sender_name = "[sender_name]" for(var/client/C in admins) - C << "" + create_text_tag("event", "EVENT:", C) + " [sender_name]([admin_jump_link(mob, C.holder)]): [msg]" + to_chat(C, "" + create_text_tag("event", "EVENT:", C) + " [sender_name]([admin_jump_link(mob, C.holder)]): [msg]") feedback_add_details("admin_verb","GS") //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/atmosdebug.dm b/code/modules/admin/verbs/atmosdebug.dm index cc77c43cd0..653b62ddee 100644 --- a/code/modules/admin/verbs/atmosdebug.dm +++ b/code/modules/admin/verbs/atmosdebug.dm @@ -10,23 +10,23 @@ 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 machines) 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 machines) 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 machines) 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 turfs) for(var/dir in cardinal) @@ -36,9 +36,9 @@ for(var/connect_type in pipe.connect_types) connect_types[connect_type] += 1 if(connect_types[1] > 1 || connect_types[2] > 1 || connect_types[3] > 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" @@ -52,9 +52,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)]") \ No newline at end of file diff --git a/code/modules/admin/verbs/buildmode.dm b/code/modules/admin/verbs/buildmode.dm index 4cfa952b67..26575fd41a 100644 --- a/code/modules/admin/verbs/buildmode.dm +++ b/code/modules/admin/verbs/buildmode.dm @@ -73,72 +73,72 @@ Click() switch(master.cl.buildmode) if(1) // Basic Build - usr << "***********************************************************" - usr << "Left Mouse Button = Construct / Upgrade" - usr << "Right Mouse Button = Deconstruct / Delete / Downgrade" - usr << "Left Mouse Button + ctrl = R-Window" - usr << "Left Mouse Button + alt = Airlock" - usr << "" - usr << "Use the button in the upper left corner to" - usr << "change the direction of built objects." - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button = Construct / Upgrade") + to_chat(usr, "Right Mouse Button = Deconstruct / Delete / Downgrade") + to_chat(usr, "Left Mouse Button + ctrl = R-Window") + to_chat(usr, "Left Mouse Button + alt = Airlock") + to_chat(usr, "") + to_chat(usr, "Use the button in the upper left corner to") + to_chat(usr, "change the direction of built objects.") + to_chat(usr, "***********************************************************") if(2) // Adv. Build - usr << "***********************************************************" - usr << "Right Mouse Button on buildmode button = Set object type" - usr << "Middle Mouse Button on buildmode button= On/Off object type saying" - usr << "Middle Mouse Button on turf/obj = Capture object type" - usr << "Left Mouse Button on turf/obj = Place objects" - usr << "Right Mouse Button = Delete objects" - usr << "Mouse Button + ctrl = Copy object type" - usr << "" - usr << "Use the button in the upper left corner to" - usr << "change the direction of built objects." - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Right Mouse Button on buildmode button = Set object type") + to_chat(usr, "Middle Mouse Button on buildmode button= On/Off object type saying") + to_chat(usr, "Middle Mouse Button on turf/obj = Capture object type") + to_chat(usr, "Left Mouse Button on turf/obj = Place objects") + to_chat(usr, "Right Mouse Button = Delete objects") + to_chat(usr, "Mouse Button + ctrl = Copy object type") + to_chat(usr, "") + to_chat(usr, "Use the button in the upper left corner to") + to_chat(usr, "change the direction of built objects.") + to_chat(usr, "***********************************************************") if(3) // Edit - usr << "***********************************************************" - usr << "Right Mouse Button on buildmode button = Select var(type) & value" - usr << "Left Mouse Button on turf/obj/mob = Set var(type) & value" - usr << "Right Mouse Button on turf/obj/mob = Reset var's value" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Right Mouse Button on buildmode button = Select var(type) & value") + to_chat(usr, "Left Mouse Button on turf/obj/mob = Set var(type) & value") + to_chat(usr, "Right Mouse Button on turf/obj/mob = Reset var's value") + to_chat(usr, "***********************************************************") if(4) // Throw - usr << "***********************************************************" - usr << "Left Mouse Button on turf/obj/mob = Select" - usr << "Right Mouse Button on turf/obj/mob = Throw" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on turf/obj/mob = Select") + to_chat(usr, "Right Mouse Button on turf/obj/mob = Throw") + to_chat(usr, "***********************************************************") if(5) // Room Build - usr << "***********************************************************" - usr << "Left Mouse Button on turf = Select as point A" - usr << "Right Mouse Button on turf = Select as point B" - usr << "Right Mouse Button on buildmode button = Change floor/wall type" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on turf = Select as point A") + to_chat(usr, "Right Mouse Button on turf = Select as point B") + to_chat(usr, "Right Mouse Button on buildmode button = Change floor/wall type") + to_chat(usr, "***********************************************************") if(6) // Make Ladders - usr << "***********************************************************" - usr << "Left Mouse Button on turf = Set as upper ladder loc" - usr << "Right Mouse Button on turf = Set as lower ladder loc" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on turf = Set as upper ladder loc") + to_chat(usr, "Right Mouse Button on turf = Set as lower ladder loc") + to_chat(usr, "***********************************************************") if(7) // Move Into Contents - usr << "***********************************************************" - usr << "Left Mouse Button on turf/obj/mob = Select" - usr << "Right Mouse Button on turf/obj/mob = Move into selection" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on turf/obj/mob = Select") + to_chat(usr, "Right Mouse Button on turf/obj/mob = Move into selection") + to_chat(usr, "***********************************************************") if(8) // Make Lights - usr << "***********************************************************" - usr << "Left Mouse Button on turf/obj/mob = Make it glow" - usr << "Right Mouse Button on turf/obj/mob = Reset glowing" - usr << "Right Mouse Button on buildmode button = Change glow properties" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on turf/obj/mob = Make it glow") + to_chat(usr, "Right Mouse Button on turf/obj/mob = Reset glowing") + to_chat(usr, "Right Mouse Button on buildmode button = Change glow properties") + to_chat(usr, "***********************************************************") if(9) // Control mobs with ai_holders. - usr << "***********************************************************" - usr << "Left Mouse Button on AI mob = Select/Deselect mob" - usr << "Left Mouse Button + alt on AI mob = Toggle hostility on mob" - usr << "Left Mouse Button + ctrl on AI mob = Reset target/following/movement" - usr << "Right Mouse Button on enemy mob = Command selected mobs to attack mob" - usr << "Right Mouse Button on allied mob = Command selected mobs to follow mob" - usr << "Right Mouse Button + shift on any mob = Command selected mobs to follow mob regardless of faction" - usr << "Right Mouse Button on tile = Command selected mobs to move to tile (will cancel if enemies are seen)" - usr << "Right Mouse Button + shift on tile = Command selected mobs to reposition to tile (will not be inturrupted by enemies)" - usr << "Right Mouse Button + alt on obj/turfs = Command selected mobs to attack obj/turf" - usr << "***********************************************************" + to_chat(usr, "***********************************************************") + to_chat(usr, "Left Mouse Button on AI mob = Select/Deselect mob") + to_chat(usr, "Left Mouse Button + alt on AI mob = Toggle hostility on mob") + to_chat(usr, "Left Mouse Button + ctrl on AI mob = Reset target/following/movement") + to_chat(usr, "Right Mouse Button on enemy mob = Command selected mobs to attack mob") + to_chat(usr, "Right Mouse Button on allied mob = Command selected mobs to follow mob") + to_chat(usr, "Right Mouse Button + shift on any mob = Command selected mobs to follow mob regardless of faction") + to_chat(usr, "Right Mouse Button on tile = Command selected mobs to move to tile (will cancel if enemies are seen)") + to_chat(usr, "Right Mouse Button + shift on tile = Command selected mobs to reposition to tile (will not be inturrupted by enemies)") + to_chat(usr, "Right Mouse Button + alt on obj/turfs = Command selected mobs to attack obj/turf") + to_chat(usr, "***********************************************************") return 1 /obj/effect/bmode/buildquit @@ -363,10 +363,11 @@ qdel(object) else if(pa.Find("ctrl")) holder.buildmode.objholder = object.type - user << "[object]([object.type]) copied to buildmode." + to_chat(user, "[object]([object.type]) copied to buildmode.") if(pa.Find("middle")) holder.buildmode.objholder = text2path("[object.type]") - if(holder.buildmode.objsay) usr << "[object.type]" + if(holder.buildmode.objsay) + to_chat(usr, "[object.type]") if(3) // Edit @@ -375,13 +376,13 @@ log_admin("[key_name(usr)] modified [object.name]'s [holder.buildmode.varholder] to [holder.buildmode.valueholder]") object.vars[holder.buildmode.varholder] = holder.buildmode.valueholder else - user << "[initial(object.name)] does not have a var called '[holder.buildmode.varholder]'" + to_chat(user, "[initial(object.name)] does not have a var called '[holder.buildmode.varholder]'") if(pa.Find("right")) if(object.vars.Find(holder.buildmode.varholder)) log_admin("[key_name(usr)] modified [object.name]'s [holder.buildmode.varholder] to [holder.buildmode.valueholder]") object.vars[holder.buildmode.varholder] = initial(object.vars[holder.buildmode.varholder]) else - user << "[initial(object.name)] does not have a var called '[holder.buildmode.varholder]'" + to_chat(user, "[initial(object.name)] does not have a var called '[holder.buildmode.varholder]'") if(4) // Throw if(pa.Find("left")) @@ -394,14 +395,14 @@ if(5) // Room build if(pa.Find("left")) holder.buildmode.coordA = get_turf(object) - user << "Defined [object] ([object.type]) as point A." + to_chat(user, "Defined [object] ([object.type]) as point A.") if(pa.Find("right")) holder.buildmode.coordB = get_turf(object) - user << "Defined [object] ([object.type]) as point B." + to_chat(user, "Defined [object] ([object.type]) as point B.") if(holder.buildmode.coordA && holder.buildmode.coordB) - user << "A and B set, creating rectangle." + to_chat(user, "A and B set, creating rectangle.") holder.buildmode.make_rectangle( holder.buildmode.coordA, holder.buildmode.coordB, @@ -413,14 +414,14 @@ if(6) // Ladders if(pa.Find("left")) holder.buildmode.coordA = get_turf(object) - user << "Defined [object] ([object.type]) as upper ladder location." + to_chat(user, "Defined [object] ([object.type]) as upper ladder location.") if(pa.Find("right")) holder.buildmode.coordB = get_turf(object) - user << "Defined [object] ([object.type]) as lower ladder location." + to_chat(user, "Defined [object] ([object.type]) as lower ladder location.") if(holder.buildmode.coordA && holder.buildmode.coordB) - user << "Ladder locations set, building ladders." + to_chat(user, "Ladder locations set, building ladders.") var/obj/structure/ladder/A = new /obj/structure/ladder/up(holder.buildmode.coordA) var/obj/structure/ladder/B = new /obj/structure/ladder(holder.buildmode.coordB) A.target_up = B diff --git a/code/modules/admin/verbs/custom_event.dm b/code/modules/admin/verbs/custom_event.dm index 987eb89c29..407843784a 100644 --- a/code/modules/admin/verbs/custom_event.dm +++ b/code/modules/admin/verbs/custom_event.dm @@ -19,10 +19,10 @@ custom_event_msg = input - world << "

Custom Event

" - world << "

A custom event is starting. OOC Info:

" - world << "[custom_event_msg]" - world << "
" + to_world("

Custom Event

") + to_world("

A custom event is starting. OOC Info:

") + to_world("[custom_event_msg]") + to_world("
") // normal verb for players to view info /client/verb/cmd_view_custom_event() diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 6a9405fef6..ebdc22fd83 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -388,33 +388,33 @@ 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_world("AREAS WITHOUT AN APC:") for(var/areatype in areas_without_APC) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT AN AIR ALARM:" + to_world("AREAS WITHOUT AN AIR ALARM:") for(var/areatype in areas_without_air_alarm) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT A REQUEST CONSOLE:" + to_world("AREAS WITHOUT A REQUEST CONSOLE:") for(var/areatype in areas_without_RC) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT ANY LIGHTS:" + to_world("AREAS WITHOUT ANY LIGHTS:") for(var/areatype in areas_without_light) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT A LIGHT SWITCH:" + to_world("AREAS WITHOUT A LIGHT SWITCH:") for(var/areatype in areas_without_LS) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT ANY INTERCOMS:" + to_world("AREAS WITHOUT ANY INTERCOMS:") for(var/areatype in areas_without_intercom) - world << "* [areatype]" + to_world("* [areatype]") - world << "AREAS WITHOUT ANY CAMERAS:" + to_world("AREAS WITHOUT ANY CAMERAS:") for(var/areatype in areas_without_camera) - world << "* [areatype]" + to_world("* [areatype]") /datum/admins/proc/cmd_admin_dress(input in getmobs()) set category = "Fun" diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm index 5199f8455f..d96fdae6bd 100644 --- a/code/modules/admin/verbs/diagnostics.dm +++ b/code/modules/admin/verbs/diagnostics.dm @@ -128,7 +128,7 @@ return if(!air_master) - usr << "Cannot find air_system" + to_chat(usr, "Cannot find air_system") return var/datum/air_group/dead_groups = list() for(var/datum/air_group/group in air_master.air_groups) @@ -150,7 +150,7 @@ return if(!air_master) - usr << "Cannot find air_system" + to_chat(usr, "Cannot find air_system") return var/turf/T = get_turf(usr) @@ -159,7 +159,7 @@ AG.next_check = 30 AG.group_processing = 0 else - usr << "Local airgroup is unsimulated!" + to_chat(usr, "Local airgroup is unsimulated!") feedback_add_details("admin_verb","KLAG") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! */ @@ -168,9 +168,9 @@ set desc = "This spams all the active jobban entries for the current round to standard output." set category = "Debug" - 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]") /client/proc/print_jobban_old_filter() set name = "Search Jobban Log" @@ -181,7 +181,7 @@ if(!job_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, job_filter)) - usr << "[t]" + to_chat(usr, "[t]") diff --git a/code/modules/admin/verbs/dice.dm b/code/modules/admin/verbs/dice.dm index e5877a9da2..72e78be2b0 100644 --- a/code/modules/admin/verbs/dice.dm +++ b/code/modules/admin/verbs/dice.dm @@ -14,11 +14,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_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_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/getlogs.dm b/code/modules/admin/verbs/getlogs.dm index 7215c8dd32..2dcbc6e4a7 100644 --- a/code/modules/admin/verbs/getlogs.dm +++ b/code/modules/admin/verbs/getlogs.dm @@ -33,7 +33,7 @@ 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 @@ -100,7 +100,7 @@ set name = "Show Server Attack Log" set desc = "Shows today's server attack log." - to_chat(usr,"This verb doesn't actually do anything.") + to_chat(usr, "This verb doesn't actually do anything.") /* var/path = "data/logs/[time2text(world.realtime,"YYYY/MM-Month/DD-Day")] Attack.log" diff --git a/code/modules/admin/verbs/grief_fixers.dm b/code/modules/admin/verbs/grief_fixers.dm index 2d524b4c23..62534a246d 100644 --- a/code/modules/admin/verbs/grief_fixers.dm +++ b/code/modules/admin/verbs/grief_fixers.dm @@ -10,14 +10,14 @@ feedback_add_details("admin_verb","FA") log_and_message_admins("Full atmosphere reset initiated by [usr].") - world << "Initiating restart of atmosphere. The server may lag a bit." + to_world("Initiating restart of atmosphere. The server may lag a bit.") sleep(10) var/current_time = world.timeofday // Depower the supermatter, as it would quickly blow up once we remove all gases from the pipes. for(var/obj/machinery/power/supermatter/S in machines) S.power = 0 - usr << "\[1/5\] - Supermatter depowered" + to_chat(usr, "\[1/5\] - Supermatter depowered") // Remove all gases from all pipenets for(var/datum/pipe_network/PN in pipe_networks) @@ -25,13 +25,13 @@ G.gas = list() G.update_values() - usr << "\[2/5\] - All pipenets purged of gas." + to_chat(usr, "\[2/5\] - All pipenets purged of gas.") // Delete all zones. for(var/zone/Z in world) Z.c_invalidate() - usr << "\[3/5\] - All ZAS Zones removed." + to_chat(usr, "\[3/5\] - All ZAS Zones removed.") var/list/unsorted_overlays = list() for(var/id in gas_data.tile_overlay) @@ -43,9 +43,9 @@ T.overlays.Remove(unsorted_overlays) T.zone = null - usr << "\[4/5\] - All turfs reset to roundstart values." + to_chat(usr, "\[4/5\] - All turfs reset to roundstart values.") SSair.RebootZAS() - usr << "\[5/5\] - ZAS Rebooted" - world << "Atmosphere restart completed in [(world.timeofday - current_time)/10] seconds." \ No newline at end of file + to_chat(usr, "\[5/5\] - ZAS Rebooted") + to_world("Atmosphere restart completed in [(world.timeofday - current_time)/10] seconds.") \ No newline at end of file diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index f22a70827f..5dd933abef 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -221,7 +221,7 @@ var/list/debug_verbs = list ( var/turf/simulated/location = get_turf(usr) if(!istype(location, /turf/simulated)) // We're in space, let's not cause runtimes. - usr << "this debug tool cannot be used from space" + to_chat(usr, "this debug tool cannot be used from space") return var/icon/red = new('icons/misc/debug_group.dmi', "red") //created here so we don't have to make thousands of these. @@ -229,11 +229,11 @@ var/list/debug_verbs = list ( var/icon/blue = new('icons/misc/debug_group.dmi', "blue") if(!usedZAScolors) - usr << "ZAS Test Colors" - usr << "Green = Zone you are standing in" - usr << "Blue = Connected zone to the zone you are standing in" - usr << "Yellow = A zone that is connected but not one adjacent to your connected zone" - usr << "Red = Not connected" + to_chat(usr, "ZAS Test Colors") + to_chat(usr, "Green = Zone you are standing in") + to_chat(usr, "Blue = Connected zone to the zone you are standing in") + to_chat(usr, "Yellow = A zone that is connected but not one adjacent to your connected zone") + to_chat(usr, "Red = Not connected") usedZAScolors = 1 testZAScolors_zones += location.zone @@ -317,9 +317,9 @@ var/list/debug_verbs = list ( if(i*10+j <= atom_list.len) temp_atom = atom_list[i*10+j] line += " no.[i+10+j]@\[[temp_atom.x], [temp_atom.y], [temp_atom.z]\]; " - world << line*/ + to_world(line)*/ - world << "There are [count] objects of type [type_path] on z-level [num_level]" + to_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() @@ -344,9 +344,9 @@ var/list/debug_verbs = list ( if(i*10+j <= atom_list.len) temp_atom = atom_list[i*10+j] line += " no.[i+10+j]@\[[temp_atom.x], [temp_atom.y], [temp_atom.z]\]; " - world << line*/ + to_world(line)*/ - world << "There are [count] objects of type [type_path] in the game world" + to_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! @@ -365,7 +365,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Regroup All Airgroups Attempt" - usr << "Proc disabled." //Why not.. Delete the procs instead? + to_chat(usr, "Proc disabled.") //Why not.. Delete the procs instead? /*prevent_airgroup_regroup = 0 for(var/datum/air_group/AG in air_master.air_groups) @@ -376,7 +376,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Kill pipe processing" - usr << "Proc disabled." + to_chat(usr, "Proc disabled.") /*pipe_processing_killed = !pipe_processing_killed if(pipe_processing_killed) @@ -388,7 +388,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Kill air processing" - usr << "Proc disabled." + to_chat(usr, "Proc disabled.") /*air_processing_killed = !air_processing_killed if(air_processing_killed) @@ -402,7 +402,7 @@ var/global/say_disabled = 0 set category = "Mapping" set name = "Disable all communication verbs" - usr << "Proc disabled." + to_chat(usr, "Proc disabled.") /*say_disabled = !say_disabled if(say_disabled) @@ -417,7 +417,7 @@ var/global/movement_disabled_exception //This is the client that calls the proc, set category = "Mapping" set name = "Disable all movement" - usr << "Proc disabled." + to_chat(usr, "Proc disabled.") /*movement_disabled = !movement_disabled if(movement_disabled) diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index c622f08516..2a946b492a 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -61,7 +61,7 @@ var/list/sounds_cache = list() for(var/mob/living/carbon/human/CP in human_mob_list) if(CP.real_name=="Cuban Pete" && CP.key!="Rosham") - CP << "Your body can't contain the rhumba beat" + to_chat(CP, "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 aa100623ff..5e4a3d0ce7 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 5469367beb..3cff6300b0 100644 --- a/code/modules/admin/verbs/pray.dm +++ b/code/modules/admin/verbs/pray.dm @@ -3,7 +3,7 @@ set name = "Pray" if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return msg = sanitize(msg) @@ -13,7 +13,7 @@ if(msg) client.handle_spam_prevention(MUTE_PRAY) if(usr.client.prefs.muted & MUTE_PRAY) - usr << " You cannot pray (muted)." + to_chat(usr, " You cannot pray (muted).") return var/image/cross = image('icons/obj/storage.dmi',"bible") @@ -22,9 +22,9 @@ for(var/client/C in admins) if(R_ADMIN & C.holder.rights) if(C.is_preference_enabled(/datum/client_preference/admin/show_chat_prayers)) - C << msg + to_chat(C,msg) C << 'sound/effects/ding.ogg' - 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]") @@ -33,12 +33,12 @@ msg = "[uppertext(using_map.boss_short)]M[iamessage ? " IA" : ""]:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender, src)]) (CA) (BSA) (RPLY): [msg]" for(var/client/C in admins) if(R_ADMIN & C.holder.rights) - C << msg + to_chat(C,msg) C << 'sound/machines/signal.ogg' /proc/Syndicate_announce(var/msg, var/mob/Sender) msg = "ILLEGAL:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender, src)]) (CA) (BSA) (RPLY): [msg]" for(var/client/C in admins) if(R_ADMIN & C.holder.rights) - C << msg + to_chat(C,msg) C << 'sound/machines/signal.ogg' \ No newline at end of file diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 3367b98852..56cd236182 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -38,7 +38,7 @@ prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/prison(prisoner), slot_w_uniform) prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes) spawn(50) - M << "You have been sent to the prison station!" + to_chat(M, "You have been sent to the prison station!") log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.") message_admins("[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! @@ -93,7 +93,7 @@ if(usr) if (usr.client) if(usr.client.holder) - M << "You hear a voice in your head... [msg]" + to_chat(M, "You hear a voice in your head... [msg]") log_admin("SubtlePM: [key_name(usr)] -> [key_name(M)] : [msg]") msg = " SubtleMessage: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]" @@ -113,7 +113,7 @@ if (!msg) return - world << "[msg]" + to_world("[msg]") log_admin("GlobalNarrate: [key_name(usr)] : [msg]") message_admins(" 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! @@ -151,7 +151,7 @@ to_chat(src, "Only administrators may use this command.") return M.status_flags ^= GODMODE - usr << " Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]" + to_chat(usr, " 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"]") var/msg = "[key_name_admin(usr)] has toggled [ADMIN_LOOKUPFLW(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]" @@ -168,12 +168,12 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0) if(!usr || !usr.client) return if(!usr.client.holder) - 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.holder) - usr << "Error: cmd_admin_mute: You cannot mute an admin/mod." + to_chat(usr, "Error: cmd_admin_mute: You cannot mute an admin/mod.") if(!M.client) return if(M.client.holder) @@ -196,7 +196,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 @@ -209,7 +209,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() @@ -304,7 +304,7 @@ Ccomp's first proc. 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 << "The Administrator has disabled AntagHUD " + to_chat(g, "The Administrator has disabled AntagHUD ") config.antag_hud_allowed = 0 to_chat(src, "AntagHUD usage has been disabled") action = "disabled" @@ -312,7 +312,7 @@ Ccomp's first proc. for(var/mob/observer/dead/g in get_ghosts()) if(!g.client.holder) // Add the verb back for all non-admin ghosts g.verbs += /mob/observer/dead/verb/toggle_antagHUD - g << "The Administrator has enabled AntagHUD " // Notify all observers they can now use AntagHUD + to_chat(g, "The Administrator has enabled AntagHUD ") // Notify all observers they can now use AntagHUD config.antag_hud_allowed = 1 action = "enabled" to_chat(src, "AntagHUD usage has been enabled") @@ -332,14 +332,14 @@ Ccomp's first proc. var/action="" if(config.antag_hud_restricted) for(var/mob/observer/dead/g in get_ghosts()) - g << "The administrator has lifted restrictions on joining the round if you use AntagHUD" + to_chat(g, "The administrator has lifted restrictions on joining the round if you use AntagHUD") action = "lifted restrictions" config.antag_hud_restricted = 0 to_chat(src, "AntagHUD restrictions have been lifted") else for(var/mob/observer/dead/g in get_ghosts()) - g << "The administrator has placed restrictions on joining the round if you use AntagHUD" - g << "Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions " + to_chat(g, "The administrator has placed restrictions on joining the round if you use AntagHUD") + to_chat(g, "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" @@ -507,7 +507,7 @@ Traitors and the like can also be revived with the previous role mostly intact. log_admin("[admin] has spawned [player_key]'s character [new_character.real_name].") message_admins("[admin] has spawned [player_key]'s character [new_character.real_name].", 1) - new_character << "You have been fully spawned. Enjoy the game." + to_chat(new_character, "You have been fully spawned. 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! @@ -524,13 +524,13 @@ Traitors and the like can also be revived with the previous role mostly intact. return for(var/mob/living/silicon/ai/M in mob_list) if (M.stat == 2) - 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 (M.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 M.add_ion_law(input) for(var/mob/living/silicon/ai/O in mob_list) - O << input + "... LAWS UPDATED!" + to_chat(O,input + "... LAWS UPDATED!") O.show_laws() log_admin("Admin [key_name(usr)] has added a new AI law - [input]") @@ -583,7 +583,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if("Yes") command_announcement.Announce(input, customname, new_sound = 'sound/AI/commandreport.ogg', msg_sanitized = 1); if("No") - world << "New [using_map.company_name] Update available at all communication consoles." + to_world("New [using_map.company_name] Update available at all communication consoles.") world << sound('sound/AI/commandreport.ogg') log_admin("[key_name(src)] has created a command report: [input]") @@ -732,9 +732,9 @@ Traitors and the like can also be revived with the previous role mostly intact. return if(M) AddBan(M.ckey, M.computer_id, reason, usr.ckey, 1, mins) - M << "You have been banned by [usr.client.ckey].\nReason: [reason]." - M << "This is a temporary ban, it will be removed in [mins] minutes." - M << "To try to resolve this matter head to http://ss13.donglabs.com/forum/" + to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "This is a temporary ban, it will be removed in [mins] minutes.") + to_chat(M, "To try to resolve this matter head to http://ss13.donglabs.com/forum/") log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") message_admins("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") world.Export("http://216.38.134.132/adminlog.php?type=ban&key=[usr.client.key]&key2=[M.key]&msg=[html_decode(reason)]&time=[mins]&server=[replacetext(config.server_name, "#", "")]") @@ -747,9 +747,9 @@ Traitors and the like can also be revived with the previous role mostly intact. if(!reason) return AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0) - M << "You have been banned by [usr.client.ckey].\nReason: [reason]." - M << "This is a permanent ban." - M << "To try to resolve this matter head to http://ss13.donglabs.com/forum/" + to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") + to_chat(M, "This is a permanent ban.") + to_chat(M, "To try to resolve this matter head to http://ss13.donglabs.com/forum/") log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") message_admins("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") world.Export("http://216.38.134.132/adminlog.php?type=ban&key=[usr.client.key]&key2=[M.key]&msg=[html_decode(reason)]&time=perma&server=[replacetext(config.server_name, "#", "")]") @@ -769,7 +769,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! /* This proc is DEFERRED. Does not do anything. @@ -887,9 +887,9 @@ Traitors and the like can also be revived with the previous role mostly intact. set category = "Special Verbs" set name = "Attack Log" - usr << text("Attack Log for []", mob) + to_chat(usr, "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! @@ -901,13 +901,13 @@ Traitors and the like can also be revived with the previous role mostly intact. if(!check_rights(R_FUN)) 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 @@ -919,9 +919,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 << "Admin [usr.key] has forced the players to have completely random identities!" + to_world("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! @@ -936,11 +936,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! diff --git a/code/modules/admin/verbs/striketeam.dm b/code/modules/admin/verbs/striketeam.dm index 65d954fbc9..c0c64008c9 100644 --- a/code/modules/admin/verbs/striketeam.dm +++ b/code/modules/admin/verbs/striketeam.dm @@ -11,11 +11,11 @@ var/const/commandos_possible = 6 //if more Commandos are needed in the future return 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 var/datum/antagonist/deathsquad/team @@ -33,7 +33,7 @@ var/const/commandos_possible = 6 //if more Commandos are needed in the future return if(team.deployed) - usr << "Someone is already sending a team." + to_chat(usr, "Someone is already sending a team.") return if(alert("Do you want to send in a strike team? Once enabled, this is irreversible.",,"Yes","No")!="Yes") @@ -49,7 +49,7 @@ var/const/commandos_possible = 6 //if more Commandos are needed in the future return if(team.deployed) - usr << "Looks like someone beat you to it." + to_chat(usr, "Looks like someone beat you to it.") return team.attempt_random_spawn() diff --git a/code/modules/admin/verbs/tripAI.dm b/code/modules/admin/verbs/tripAI.dm index 8cf88aa127..eaf6dfa49f 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("[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("[key_name_admin(usr)] has toggled on triple AIs at round start.", 1) return diff --git a/code/modules/admin/view_variables/topic.dm b/code/modules/admin/view_variables/topic.dm index 28eea3707b..933e63f7fd 100644 --- a/code/modules/admin/view_variables/topic.dm +++ b/code/modules/admin/view_variables/topic.dm @@ -16,7 +16,7 @@ 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(input(usr,"What would you like to name this mob?","Input a name",M.real_name) as text|null, MAX_NAME_LEN) @@ -31,7 +31,7 @@ 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) @@ -41,7 +41,7 @@ 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) @@ -51,7 +51,7 @@ 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"]) @@ -61,7 +61,7 @@ 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) @@ -72,7 +72,7 @@ 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) @@ -84,7 +84,7 @@ var/mob/living/M = locate(href_list["give_modifier"]) if(!istype(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 src.admin_give_modifier(M) @@ -95,7 +95,7 @@ var/mob/M = locate(href_list["give_disease2"]) 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_disease2(M) @@ -106,7 +106,7 @@ 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) @@ -117,7 +117,7 @@ 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) @@ -127,7 +127,7 @@ 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) @@ -138,7 +138,7 @@ 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) @@ -149,7 +149,7 @@ 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) @@ -160,7 +160,7 @@ 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 H.ChangeToSkeleton() @@ -217,7 +217,7 @@ 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"]) @@ -230,12 +230,12 @@ 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"])) @@ -244,12 +244,12 @@ 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"])) @@ -258,12 +258,12 @@ 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"])) @@ -272,12 +272,12 @@ 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"])) @@ -286,26 +286,26 @@ 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 GLOB.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].") 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 GLOB.all_languages @@ -314,24 +314,24 @@ 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].") 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 @@ -340,13 +340,13 @@ 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].") 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 @@ -354,7 +354,7 @@ 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... @@ -372,7 +372,7 @@ 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 @@ -385,11 +385,11 @@ 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 @@ -401,18 +401,18 @@ 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 typesof(/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 new new_organ(M) @@ -423,20 +423,20 @@ 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/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.removed() qdel(rem_organ) @@ -446,13 +446,13 @@ 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 SSnanoui.send_resources(H.client) - 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)] ") @@ -461,7 +461,7 @@ 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() @@ -476,7 +476,7 @@ 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) @@ -487,7 +487,7 @@ 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/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm index afec31665d..6afdb163cc 100644 --- a/code/modules/assembly/infrared.dm +++ b/code/modules/assembly/infrared.dm @@ -64,9 +64,9 @@ I.vis_spread(visible) spawn(0) if(I) - //world << "infra: setting limit" + //to_world("infra: setting limit") I.limit = 8 - //world << "infra: processing beam \ref[I]" + //to_world("infra: processing beam \ref[I]") I.process() return return @@ -173,11 +173,11 @@ return /obj/effect/beam/i_beam/proc/vis_spread(v) - //world << "i_beam \ref[src] : vis_spread" + //to_world("i_beam \ref[src] : vis_spread") visible = v spawn(0) if(next) - //world << "i_beam \ref[src] : is next [next.type] \ref[next], calling spread" + //to_world("i_beam \ref[src] : is next [next.type] \ref[next], calling spread") next.vis_spread(v) return return @@ -199,34 +199,34 @@ invisibility = 0 - //world << "now [src.left] left" + //to_world("now [src.left] left") var/obj/effect/beam/i_beam/I = new /obj/effect/beam/i_beam(loc) I.master = master I.density = 1 I.set_dir(dir) - //world << "created new beam \ref[I] at [I.x] [I.y] [I.z]" + //to_world("created new beam \ref[I] at [I.x] [I.y] [I.z]") step(I, I.dir) if(I) - //world << "step worked, now at [I.x] [I.y] [I.z]" + //to_world("step worked, now at [I.x] [I.y] [I.z]") if(!(next)) - //world << "no next" + //to_world("no next") I.density = 0 - //world << "spreading" + //to_world("spreading") I.vis_spread(visible) next = I spawn(0) - //world << "limit = [limit] " + //to_world("limit = [limit] ") if((I && limit > 0)) I.limit = limit - 1 - //world << "calling next process" + //to_world("calling next process") I.process() return else - //world << "is a next: \ref[next], deleting beam \ref[I]" + //to_world("is a next: \ref[next], deleting beam \ref[I]") qdel(I) else - //world << "step failed, deleting \ref[next]" + //to_world("step failed, deleting \ref[next]") qdel(next) spawn(10) process() diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index b54df46b54..0257b6cf87 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -52,7 +52,7 @@ /obj/item/device/assembly/mousetrap/attack_self(mob/living/user as mob) if(!armed) - user << "You arm [src]." + to_chat(user, "You arm [src].") else if((CLUMSY in user.mutations) && prob(50)) var/which_hand = "l_hand" diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm index 484c7ba7a9..71746a9a9e 100644 --- a/code/modules/awaymissions/gateway.dm +++ b/code/modules/awaymissions/gateway.dm @@ -85,13 +85,13 @@ obj/machinery/gateway/centerstation/process() if(linked.len != 8) return if(!powered()) return if(!awaygate) - user << "Error: No destination found. Please program gateway." + to_chat(user, "Error: No destination found. Please program gateway.") 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 if(!awaygate.calibrated && !LAZYLEN(awaydestinations)) //VOREStation Edit - user << "Error: Destination gate uncalibrated. Gateway unsafe to use without far-end calibration update." + to_chat(user, "Error: Destination gate uncalibrated. Gateway unsafe to use without far-end calibration update.") return for(var/obj/machinery/gateway/G in linked) @@ -152,11 +152,11 @@ obj/machinery/gateway/centerstation/process() if(!awaygate) awaygate = locate(/obj/machinery/gateway/centeraway) if(!awaygate) // We still can't find the damn thing because there is no destination. - user << "Error: Programming failed. No destination found." + to_chat(user, "Error: Programming failed. No destination found.") return - user << "Startup programming successful!: A destination in another point of space and time has been detected." + to_chat(user, "Startup programming successful!: A destination in another point of space and time has been detected.") else - 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 /////////////////////////////////////Away//////////////////////// @@ -213,7 +213,7 @@ obj/machinery/gateway/centerstation/process() if(!ready) return if(linked.len != 8) return if(!stationgate || !calibrated) // Vorestation edit. Not like Polaris ever touches this anyway. - user << "Error: No destination found. Please calibrate gateway." + to_chat(user, "Error: No destination found. Please calibrate gateway.") return for(var/obj/machinery/gateway/G in linked) @@ -247,7 +247,7 @@ obj/machinery/gateway/centerstation/process() if(istype(M, /mob/living/carbon)) 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 M.forceMove(get_step(stationgate.loc, SOUTH)) M.set_dir(SOUTH) @@ -258,16 +258,16 @@ obj/machinery/gateway/centerstation/process() /obj/machinery/gateway/centeraway/attackby(obj/item/device/W as obj, mob/user as mob) if(istype(W,/obj/item/device/multitool)) if(calibrated && stationgate) - 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 // VOREStation Add stationgate = locate(/obj/machinery/gateway/centerstation) if(!stationgate) - user << "Error: Recalibration failed. No destination found... That can't be good." + to_chat(user, "Error: Recalibration failed. No destination found... That can't be good.") return // VOREStation Add End 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/trigger.dm b/code/modules/awaymissions/trigger.dm index 4afaf4a135..d34763ab02 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/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index bf1165d2ea..dc4ad7ecd6 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -38,12 +38,12 @@ proc/createRandomZlevel() admin_notice("Loading away mission...", R_DEBUG) var/map = pick(potentialRandomZlevels) - world.log << "Away mission picked: [map]" //VOREStation Add for debugging + to_world_log("Away mission picked: [map]") //VOREStation Add for debugging var/file = file(map) if(isfile(file)) var/datum/map_template/template = new(file, "away mission") template.load_new_z() - world.log << "away mission loaded: [map]" + to_world_log("away mission loaded: [map]") /* VOREStation Removal - We do this in the special landmark init instead. for(var/obj/effect/landmark/L in landmarks_list) if (L.name != "awaystart") diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index d82890a00a..83fbfb34dc 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -27,16 +27,16 @@ return #if defined(TOPIC_DEBUGGING) - world << "[src]'s Topic: [href] destined for [hsrc]." + to_world("[src]'s Topic: [href] destined for [hsrc].") if(href_list["nano_err"]) //nano throwing errors - world << "## NanoUI, Subject [src]: " + html_decode(href_list["nano_err"]) //NANO DEBUG HOOK + to_world("## NanoUI, Subject [src]: " + html_decode(href_list["nano_err")]) //NANO DEBUG HOOK #endif //search the href for script injection if( findtext(href,"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 send2adminirc(href_list["irc_msg"]) return @@ -64,7 +64,7 @@ //Logs all hrefs if(config && config.log_hrefs && href_logfile) - href_logfile << "[src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]" + to_chat(href_logfile, "[src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]") switch(href_list["_src_"]) if("holder") hsrc = holder @@ -297,11 +297,11 @@ //Take action if required if(config.ipr_block_bad_ips && config.ipr_allow_existing) //We allow players of an age, but you don't meet it - to_chat(src,"Sorry, we only allow VPN/Proxy/Tor usage for players who have spent at least [config.ipr_minimum_age] days on the server. If you are unable to use the internet without your VPN/Proxy/Tor, please contact an admin out-of-game to let them know so we can accommodate this.") + to_chat(src, "Sorry, we only allow VPN/Proxy/Tor usage for players who have spent at least [config.ipr_minimum_age] days on the server. If you are unable to use the internet without your VPN/Proxy/Tor, please contact an admin out-of-game to let them know so we can accommodate this.") qdel(src) return 0 else if(config.ipr_block_bad_ips) //We don't allow players of any particular age - to_chat(src,"Sorry, we do not accept connections from users via VPN/Proxy/Tor connections.") + to_chat(src, "Sorry, we do not accept connections from users via VPN/Proxy/Tor connections.") qdel(src) return 0 else @@ -449,9 +449,9 @@ client/verb/character_setup() var/http[] = world.Export(request) /* Debug - world.log << "Requested this: [request]" + to_world_log("Requested this: [request]") for(var/entry in http) - world.log << "[entry] : [http[entry]]" + to_world_log("[entry] : [http[entry]]") */ if(!http || !islist(http)) //If we couldn't check, the service might be down, fail-safe. diff --git a/code/modules/client/preference_setup/general/01_basic.dm b/code/modules/client/preference_setup/general/01_basic.dm index 12c3aef2f5..0dfb61c8e5 100644 --- a/code/modules/client/preference_setup/general/01_basic.dm +++ b/code/modules/client/preference_setup/general/01_basic.dm @@ -88,7 +88,7 @@ datum/preferences/proc/set_biological_gender(var/gender) pref.real_name = new_name return TOPIC_REFRESH 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 .") return TOPIC_NOACTION else if(href_list["random_name"]) @@ -107,7 +107,7 @@ datum/preferences/proc/set_biological_gender(var/gender) pref.nickname = new_nickname return TOPIC_REFRESH 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 .") return TOPIC_NOACTION else if(href_list["bio_gender"]) diff --git a/code/modules/client/preference_setup/general/03_body.dm b/code/modules/client/preference_setup/general/03_body.dm index 0472f6cd46..8c5d1d1093 100644 --- a/code/modules/client/preference_setup/general/03_body.dm +++ b/code/modules/client/preference_setup/general/03_body.dm @@ -741,7 +741,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O organ = O_STOMACH if("Brain") if(pref.organ_data[BP_HEAD] != "cyborg") - user << "You may only select a cybernetic or synthetic brain if you have a full prosthetic body." + to_chat(user, "You may only select a cybernetic or synthetic brain if you have a full prosthetic body.") return organ = "brain" diff --git a/code/modules/client/preference_setup/global/04_ooc.dm b/code/modules/client/preference_setup/global/04_ooc.dm index 0150554250..e695bee677 100644 --- a/code/modules/client/preference_setup/global/04_ooc.dm +++ b/code/modules/client/preference_setup/global/04_ooc.dm @@ -33,7 +33,7 @@ if(player_to_ignore) player_to_ignore = sanitize(ckey(player_to_ignore)) if(player_to_ignore == user.ckey) - user <<"You can't ignore yourself." + to_chat(user, "You can't ignore yourself.") return TOPIC_REFRESH pref.ignored_players |= player_to_ignore return TOPIC_REFRESH diff --git a/code/modules/client/preference_setup/loadout/loadout.dm b/code/modules/client/preference_setup/loadout/loadout.dm index 93242d4fdf..54fdf6667d 100644 --- a/code/modules/client/preference_setup/loadout/loadout.dm +++ b/code/modules/client/preference_setup/loadout/loadout.dm @@ -92,16 +92,16 @@ var/list/gear_datums = list() var/total_cost = 0 for(var/gear_name in pref.gear) if(!gear_datums[gear_name]) - preference_mob << "You cannot have more than one of the \the [gear_name]" + to_chat(preference_mob, "You cannot have more than one of the \the [gear_name]") pref.gear -= gear_name else if(!(gear_name in valid_gear_choices())) - preference_mob << "You cannot take \the [gear_name] as you are not whitelisted for the species or item." //Vorestation Edit + to_chat(preference_mob, "You cannot take \the [gear_name] as you are not whitelisted for the species or item.") //Vorestation Edit pref.gear -= gear_name else var/datum/gear/G = gear_datums[gear_name] if(total_cost + G.cost > MAX_GEAR_COST) pref.gear -= gear_name - preference_mob << "You cannot afford to take \the [gear_name]" + to_chat(preference_mob, "You cannot afford to take \the [gear_name]") else total_cost += G.cost diff --git a/code/modules/client/preference_setup/traits/traits.dm b/code/modules/client/preference_setup/traits/traits.dm index 6312454453..806086c9a7 100644 --- a/code/modules/client/preference_setup/traits/traits.dm +++ b/code/modules/client/preference_setup/traits/traits.dm @@ -102,14 +102,14 @@ var/list/trait_categories = list() // The categories available for the trait men for(var/trait_name in pref.traits) if(!trait_datums[trait_name]) - preference_mob << "You cannot have more than one of trait: [trait_name]" + to_chat(preference_mob, "You cannot have more than one of trait: [trait_name]") pref.traits -= trait_name else var/datum/trait/T = trait_datums[trait_name] var/invalidity = T.test_for_invalidity(src) if(invalidity) pref.traits -= trait_name - preference_mob << "You cannot take the [trait_name] trait. Reason: [invalidity]" + to_chat(preference_mob, "You cannot take the [trait_name] trait. Reason: [invalidity]") var/conflicts = T.test_for_trait_conflict(pref.traits) if(conflicts) diff --git a/code/modules/client/preference_setup/vore/02_size.dm b/code/modules/client/preference_setup/vore/02_size.dm index 2fe8b54e98..774bdede17 100644 --- a/code/modules/client/preference_setup/vore/02_size.dm +++ b/code/modules/client/preference_setup/vore/02_size.dm @@ -62,7 +62,7 @@ var/new_size = input(user, "Choose your character's size, ranging from 25% to 200%", "Set Size") as num|null if (!ISINRANGE(new_size,25,200)) pref.size_multiplier = 1 - user << "Invalid size." + to_chat(user, "Invalid size.") return TOPIC_REFRESH_UPDATE_PREVIEW else if(new_size) pref.size_multiplier = (new_size/100) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index c768d292c7..284198507a 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -206,7 +206,7 @@ datum/preferences if(!user || !user.client) return if(!get_mob_by_key(client_ckey)) - user << "No mob exists for the given client!" + to_chat(user, "No mob exists for the given client!") close_load_dialog(user) return @@ -243,7 +243,7 @@ datum/preferences if(config.forumurl) user << link(config.forumurl) else - user << "The forum URL is not set in the server configuration." + to_chat(user, "The forum URL is not set in the server configuration.") return ShowChoices(usr) return 1 diff --git a/code/modules/client/ui_style.dm b/code/modules/client/ui_style.dm index e7393e22c5..84c8055d9f 100644 --- a/code/modules/client/ui_style.dm +++ b/code/modules/client/ui_style.dm @@ -42,7 +42,7 @@ var/global/list/all_tooltip_styles = list( if(!ishuman(usr)) if(!isrobot(usr)) - usr << "You must be a human or a robot to use this verb." + to_chat(usr, "You must be a human or a robot to use this verb.") return var/UI_style_new = input(usr, "Select a style. White is recommended for customization") as null|anything in all_ui_styles @@ -78,4 +78,4 @@ var/global/list/all_tooltip_styles = list( prefs.UI_style_alpha = UI_style_alpha_new prefs.UI_style_color = UI_style_color_new SScharacter_setup.queue_preferences_save(prefs) - usr << "UI was saved" + to_chat(usr, "UI was saved") diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index e130e7128d..aaa7680572 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -81,7 +81,7 @@ wearable = 1 if(!wearable && !(slot in list(slot_l_store, slot_r_store, slot_s_store))) - H << "Your species cannot wear [src]." + to_chat(H, "Your species cannot wear [src].") return 0 return 1 @@ -251,7 +251,7 @@ /*/obj/item/clothing/gloves/attackby(obj/item/weapon/W, mob/user) if(W.is_wirecutter() || istype(W, /obj/item/weapon/scalpel)) if (clipped) - user << "The [src] have already been clipped!" + to_chat(user, "The [src] have already been clipped!") update_icon() return @@ -365,10 +365,10 @@ /obj/item/clothing/head/attack_self(mob/user) if(brightness_on) 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]") return on = !on - user << "You [on ? "enable" : "disable"] the helmet light." + to_chat(user, "You [on ? "enable" : "disable"] the helmet light.") update_flashlight(user) else return ..(user) @@ -413,9 +413,9 @@ if(!success) return 0 else if(success == 2) - user << "You are already wearing a hat." + to_chat(user, "You are already wearing a hat.") else if(success == 1) - user << "You crawl under \the [src]." + to_chat(user, "You crawl under \the [src].") return 1 /obj/item/clothing/head/update_icon(var/mob/user) @@ -533,7 +533,7 @@ holding = null overlays -= image(icon, "[icon_state]_knife") else - usr << "Your need an empty, unbroken hand to do that." + to_chat(usr, "Your need an empty, unbroken hand to do that.") holding.forceMove(src) if(!holding) @@ -554,7 +554,7 @@ istype(I, /obj/item/weapon/material/kitchen/utensil) || \ istype(I, /obj/item/weapon/material/knife/tacknife))) if(holding) - user << "\The [src] is already holding \a [holding]." + to_chat(user, "\The [src] is already holding \a [holding].") return user.unEquip(I) I.forceMove(src) @@ -570,7 +570,7 @@ set category = "Object" if(shoes_under_pants == -1) - usr << "\The [src] cannot be worn above your suit!" + to_chat(usr, "\The [src] cannot be worn above your suit!") return shoes_under_pants = !shoes_under_pants update_icon() @@ -602,7 +602,7 @@ recent_squish = 0 for(var/mob/living/M in contents) var/emote = pick(inside_emotes) - M << emote //VOREStation edit end + to_chat(M,emote) //VOREStation edit end return /obj/item/clothing/shoes/update_clothing_icon() @@ -817,29 +817,29 @@ ..(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.") /obj/item/clothing/under/proc/set_sensors(mob/usr as mob) var/mob/M = usr if (istype(M, /mob/observer)) return if (usr.stat || usr.restrained()) return if(has_sensor >= 2) - usr << "The controls are locked." + to_chat(usr, "The controls are locked.") return 0 if(has_sensor <= 0) - usr << "This suit does not have any sensors." + to_chat(usr, "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(usr, src) > 1) - usr << "You have moved too far away." + to_chat(usr, "You have moved too far away.") return sensor_mode = modes.Find(switchMode) - 1 @@ -873,7 +873,7 @@ update_rolldown_status() if(rolled_down == -1) - usr << "You cannot roll down [src]!" + to_chat(usr, "You cannot roll down [src]!") return if((rolled_sleeves == 1) && !(rolled_down)) rolled_sleeves = 0 @@ -888,13 +888,13 @@ else item_state_slots[slot_w_uniform_str] = "[worn_state]_d" - usr << "You roll down your [src]." + to_chat(usr, "You roll down your [src].") else body_parts_covered = initial(body_parts_covered) if(icon_override == rolled_down_icon) icon_override = initial(icon_override) item_state_slots[slot_w_uniform_str] = "[worn_state]" - usr << "You roll up your [src]." + to_chat(usr, "You roll up your [src].") update_clothing_icon() /obj/item/clothing/under/verb/rollsleeves() @@ -906,10 +906,10 @@ update_rollsleeves_status() if(rolled_sleeves == -1) - usr << "You cannot roll up your [src]'s sleeves!" + to_chat(usr, "You cannot roll up your [src]'s sleeves!") return if(rolled_down == 1) - usr << "You must roll up your [src] first!" + to_chat(usr, "You must roll up your [src] first!") return rolled_sleeves = !rolled_sleeves @@ -920,13 +920,13 @@ item_state_slots[slot_w_uniform_str] = "[worn_state]" else item_state_slots[slot_w_uniform_str] = "[worn_state]_r" - usr << "You roll up your [src]'s sleeves." + to_chat(usr, "You roll up your [src]'s sleeves.") else body_parts_covered = initial(body_parts_covered) if(icon_override == rolled_down_sleeves_icon) icon_override = initial(icon_override) item_state_slots[slot_w_uniform_str] = "[worn_state]" - usr << "You roll down your [src]'s sleeves." + to_chat(usr, "You roll down your [src]'s sleeves.") update_clothing_icon() diff --git a/code/modules/clothing/clothing_accessories.dm b/code/modules/clothing/clothing_accessories.dm index 6517b0ab97..f32ef7db84 100644 --- a/code/modules/clothing/clothing_accessories.dm +++ b/code/modules/clothing/clothing_accessories.dm @@ -70,7 +70,7 @@ ..(user) if(LAZYLEN(accessories)) 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.") /** * Attach accessory A to src diff --git a/code/modules/clothing/clothing_vr.dm b/code/modules/clothing/clothing_vr.dm index f81dd53c18..1fb7d26548 100644 --- a/code/modules/clothing/clothing_vr.dm +++ b/code/modules/clothing/clothing_vr.dm @@ -26,7 +26,7 @@ recent_squish = 0 for(var/mob/living/M in contents) var/emote = pick(inside_emotes) - M << emote + to_chat(M,emote) return */ @@ -37,21 +37,21 @@ for(var/mob/M in src) full++ if(full >= 2) - to_chat(user,"You can't fit anyone else into \the [src]!") + to_chat(user, "You can't fit anyone else into \the [src]!") else var/obj/item/weapon/holder/micro/holder = I if(holder.held_mob && holder.held_mob in holder) - to_chat(holder.held_mob,"[user] stuffs you into \the [src]!") + to_chat(holder.held_mob, "[user] stuffs you into \the [src]!") holder.held_mob.forceMove(src) - to_chat(user,"You stuff \the [holder.held_mob] into \the [src]!") + to_chat(user, "You stuff \the [holder.held_mob] into \the [src]!") else ..() /obj/item/clothing/shoes/attack_self(var/mob/user) for(var/mob/M in src) M.forceMove(get_turf(user)) - to_chat(M,"[user] shakes you out of \the [src]!") - to_chat(user,"You shake [M] out of \the [src]!") + to_chat(M, "[user] shakes you out of \the [src]!") + to_chat(user, "You shake [M] out of \the [src]!") ..() @@ -79,14 +79,14 @@ if(ishuman(src.loc)) var/mob/living/carbon/human/H = src.loc if(H.shoes == src) - H << "[user]'s tiny body presses against you in \the [src], squirming!" - user << "Your body presses out against [H]'s form! Well, what little you can get to!" + to_chat(H, "[user]'s tiny body presses against you in \the [src], squirming!") + to_chat(user, "Your body presses out against [H]'s form! Well, what little you can get to!") else - H << "[user]'s form shifts around in the \the [src], squirming!" - user << "You move around inside the [src], to no avail." + to_chat(H, "[user]'s form shifts around in the \the [src], squirming!") + to_chat(user, "You move around inside the [src], to no avail.") else src.visible_message("\The [src] moves a little!") - user << "You throw yourself against the inside of \the [src]!" + to_chat(user, "You throw yourself against the inside of \the [src]!") //Mask /obj/item/clothing/mask diff --git a/code/modules/clothing/ears/ears.dm b/code/modules/clothing/ears/ears.dm index 11c81db633..193ce36232 100644 --- a/code/modules/clothing/ears/ears.dm +++ b/code/modules/clothing/ears/ears.dm @@ -29,11 +29,11 @@ if(headphones_on) icon_state = "[base_icon]_off" headphones_on = 0 - usr << "You turn the music off." + to_chat(usr, "You turn the music off.") else icon_state = "[base_icon]_on" headphones_on = 1 - usr << "You turn the music on." + to_chat(usr, "You turn the music on.") update_clothing_icon() diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index e0167527f0..2bb43cbcd6 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -440,7 +440,7 @@ BLIND // can't see anything emp_act(severity) if(istype(src.loc, /mob/living/carbon/human)) var/mob/living/carbon/human/M = src.loc - M << "The Optical Thermal Scanner overloads and blinds you!" + to_chat(M, "The Optical Thermal Scanner overloads and blinds you!") if(M.glasses == src) M.Blind(3) M.eye_blurry = 5 diff --git a/code/modules/clothing/glasses/glasses_vr.dm b/code/modules/clothing/glasses/glasses_vr.dm index 90e53d89b2..f11970d21e 100644 --- a/code/modules/clothing/glasses/glasses_vr.dm +++ b/code/modules/clothing/glasses/glasses_vr.dm @@ -27,14 +27,14 @@ //Too difficult if(target == user) - user << "You can't use this on yourself. Get someone to help you." + to_chat(user, "You can't use this on yourself. Get someone to help you.") return //We're applying a prescription if(istype(target,/obj/item/clothing/glasses)) var/obj/item/clothing/glasses/G = target if(!scrip_loaded) - user << "You need to build a prescription from someone first! Use the kit on someone." + to_chat(user, "You need to build a prescription from someone first! Use the kit on someone.") return if(do_after(user,5 SECONDS)) @@ -45,7 +45,7 @@ else if(ishuman(target)) var/mob/living/carbon/human/T = target if(T.glasses || (T.head && T.head.flags_inv & HIDEEYES)) - user << "The person's eyes can't be covered!" + to_chat(user, "The person's eyes can't be covered!") return T.visible_message("[user] begins making measurements for prescription lenses for [target].","[user] begins measuring your eyes. Hold still!") diff --git a/code/modules/clothing/glasses/hud_vr.dm b/code/modules/clothing/glasses/hud_vr.dm index dfdd02c461..3dd1f0fbaf 100644 --- a/code/modules/clothing/glasses/hud_vr.dm +++ b/code/modules/clothing/glasses/hud_vr.dm @@ -35,7 +35,7 @@ /obj/item/clothing/glasses/omnihud/proc/flashed() if(flash_prot && ishuman(loc)) - loc << "Your [src.name] darken to try and protect your eyes!" + to_chat(loc, "Your [src.name] darken to try and protect your eyes!") /obj/item/clothing/glasses/omnihud/prescribe(var/mob/user) prescription = !prescription @@ -53,10 +53,10 @@ var/mob/living/carbon/human/H = user if(!H.glasses || !(H.glasses == src)) - user << "You must be wearing the [src] to see the display." + to_chat(user, "You must be wearing the [src] to see the display.") else if(!ar_interact(H)) - user << "The [src] does not have any kind of special display." + to_chat(user, "The [src] does not have any kind of special display.") /obj/item/clothing/glasses/omnihud/proc/ar_interact(var/mob/living/carbon/human/user) return 0 //The base models do nothing. @@ -145,13 +145,13 @@ icon_state = off_state item_state = "[initial(item_state)]-off" usr.update_inv_glasses() - usr << "You deactivate the retinal projector on the [src]." + to_chat(usr, "You deactivate the retinal projector on the [src].") else active = 1 icon_state = initial(icon_state) item_state = initial(item_state) usr.update_inv_glasses() - usr << "You activate the retinal projector on the [src]." + to_chat(usr, "You activate the retinal projector on the [src].") usr.update_action_buttons() /obj/item/clothing/glasses/omnihud/all diff --git a/code/modules/clothing/gloves/boxing.dm b/code/modules/clothing/gloves/boxing.dm index 739f3e3977..9316c8f64f 100644 --- a/code/modules/clothing/gloves/boxing.dm +++ b/code/modules/clothing/gloves/boxing.dm @@ -7,7 +7,7 @@ /* /obj/item/clothing/gloves/boxing/attackby(obj/item/weapon/W, mob/user) if(W.is_wirecutter() || istype(W, /obj/item/weapon/surgical/scalpel)) - user << "That won't work." //Nope + to_chat(user, "That won't work.") //Nope return ..() */ diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index dd290af26e..37941282aa 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -69,10 +69,10 @@ /obj/item/clothing/head/helmet/riot/attack_self(mob/user as mob) if(src.icon_state == initial(icon_state)) src.icon_state = "[icon_state]up" - user << "You raise the visor on the riot helmet." + to_chat(user, "You raise the visor on the riot helmet.") else src.icon_state = initial(icon_state) - user << "You lower the visor on the riot helmet." + to_chat(user, "You lower the visor on the riot helmet.") update_clothing_icon() //so our mob-overlays update /obj/item/clothing/head/helmet/laserproof diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index 643c335f73..318a6687eb 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -150,10 +150,10 @@ /obj/item/clothing/head/ushanka/attack_self(mob/user as mob) if(src.icon_state == "ushankadown") src.icon_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" - 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/pilot_helmet.dm b/code/modules/clothing/head/pilot_helmet.dm index ee95c7c937..135c73d539 100644 --- a/code/modules/clothing/head/pilot_helmet.dm +++ b/code/modules/clothing/head/pilot_helmet.dm @@ -194,8 +194,8 @@ /obj/item/clothing/head/pilot/alt/attack_self(mob/user as mob) if(src.icon_state == initial(icon_state)) src.icon_state = "[icon_state]up" - user << "You raise the visor on the pilot helmet." + to_chat(user, "You raise the visor on the pilot helmet.") else src.icon_state = initial(icon_state) - user << "You lower the visor on the pilot helmet." + to_chat(user, "You lower the visor on the pilot helmet.") update_clothing_icon() //so our mob-overlays update \ No newline at end of file diff --git a/code/modules/clothing/head/soft_caps.dm b/code/modules/clothing/head/soft_caps.dm index 27b8460fb6..5bcec8a56e 100644 --- a/code/modules/clothing/head/soft_caps.dm +++ b/code/modules/clothing/head/soft_caps.dm @@ -16,10 +16,10 @@ flipped = !flipped if(flipped) icon_state = "[icon_state]_flipped" - user << "You flip the hat backwards." + to_chat(user, "You flip the hat backwards.") else icon_state = initial(icon_state) - user << "You flip the hat back in normal position." + to_chat(user, "You flip the hat back in normal position.") update_clothing_icon() //so our mob-overlays update /obj/item/clothing/head/soft/red diff --git a/code/modules/clothing/masks/breath.dm b/code/modules/clothing/masks/breath.dm index ea3e6c7cf4..b64f437207 100644 --- a/code/modules/clothing/masks/breath.dm +++ b/code/modules/clothing/masks/breath.dm @@ -20,13 +20,13 @@ body_parts_covered = body_parts_covered & ~FACE item_flags = item_flags & ~AIRTIGHT icon_state = "breathdown" - user << "Your mask is now hanging on your neck." + to_chat(user, "Your mask is now hanging on your neck.") else gas_transfer_coefficient = initial(gas_transfer_coefficient) body_parts_covered = initial(body_parts_covered) item_flags = initial(item_flags) icon_state = initial(icon_state) - user << "You pull the mask up to cover your face." + to_chat(user, "You pull the mask up to cover your face.") update_clothing_icon() /obj/item/clothing/mask/breath/attack_self(mob/user) diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm index ea56a0c526..00fccfea19 100644 --- a/code/modules/clothing/masks/miscellaneous.dm +++ b/code/modules/clothing/masks/miscellaneous.dm @@ -47,13 +47,13 @@ body_parts_covered = body_parts_covered & ~FACE armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0) icon_state = "steriledown" - usr << "You pull the mask below your chin." + to_chat(usr, "You pull the mask below your chin.") else gas_transfer_coefficient = initial(gas_transfer_coefficient) body_parts_covered = initial(body_parts_covered) icon_state = initial(icon_state) armor = initial(armor) - usr << "You pull the mask up to cover your face." + to_chat(usr, "You pull the mask up to cover your face.") update_clothing_icon() /obj/item/clothing/mask/surgical/verb/toggle() diff --git a/code/modules/clothing/masks/monitor.dm b/code/modules/clothing/masks/monitor.dm index 9b0c94ca03..230f224d09 100644 --- a/code/modules/clothing/masks/monitor.dm +++ b/code/modules/clothing/masks/monitor.dm @@ -27,7 +27,7 @@ if(robohead.monitor_styles) monitor_states = params2list(robohead.monitor_styles) icon_state = monitor_states[monitor_state_index] - H << "\The [src] connects to your display output." + to_chat(H, "\The [src] connects to your display output.") /obj/item/clothing/mask/monitor/dropped() canremove = 1 @@ -41,7 +41,7 @@ var/datum/robolimb/robohead = all_robolimbs[E.model] if(istype(E) && (E.robotic >= ORGAN_ROBOT) && robohead.monitor_styles) return 1 - user << "You must have a compatible robotic head to install this upgrade." + to_chat(user, "You must have a compatible robotic head to install this upgrade.") return 0 /obj/item/clothing/mask/monitor/verb/set_monitor_state() @@ -54,7 +54,7 @@ if(!istype(H) || H != usr) return if(H.wear_mask != src) - usr << "You have not installed \the [src] yet." + to_chat(usr, "You have not installed \the [src] yet.") return var/choice = input("Select a screen icon.") as null|anything in monitor_states if(choice) diff --git a/code/modules/clothing/shoes/leg_guards.dm b/code/modules/clothing/shoes/leg_guards.dm index 14e24dad92..f90eebdc29 100644 --- a/code/modules/clothing/shoes/leg_guards.dm +++ b/code/modules/clothing/shoes/leg_guards.dm @@ -12,7 +12,7 @@ if(..()) //This will only run if no other problems occured when equiping. if(H.wear_suit) if(H.wear_suit.body_parts_covered & LEGS) - H << "You can't wear \the [src] with \the [H.wear_suit], it's in the way." + to_chat(H, "You can't wear \the [src] with \the [H.wear_suit], it's in the way.") return 0 for(var/obj/item/clothing/accessory/A in H.wear_suit) if(A.body_parts_covered & LEGS) diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 5020307699..21e83f4185 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -28,14 +28,14 @@ set_slowdown() force = 3 if(icon_base) icon_state = "[icon_base]0" - user << "You disable the mag-pulse traction system." + to_chat(user, "You disable the mag-pulse traction system.") else item_flags |= NOSLIP magpulse = 1 set_slowdown() force = 5 if(icon_base) icon_state = "[icon_base]1" - user << "You enable the mag-pulse traction system." + to_chat(user, "You enable the mag-pulse traction system.") user.update_inv_shoes() //so our mob-overlays update user.update_action_buttons() @@ -79,7 +79,7 @@ var/state = "disabled" if(item_flags & NOSLIP) state = "enabled" - user << "Its mag-pulse traction system appears to be [state]." + to_chat(user, "Its mag-pulse traction system appears to be [state].") /obj/item/clothing/shoes/magboots/vox diff --git a/code/modules/clothing/spacesuits/breaches.dm b/code/modules/clothing/spacesuits/breaches.dm index ee46fa4a8f..8af972ec73 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 @@ -190,11 +190,11 @@ var/global/list/breach_burn_descriptors = list( return if(istype(src.loc,/mob/living)) - user << "How do you intend to patch a hardsuit while someone is wearing it?" + to_chat(user, "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/P = W @@ -206,16 +206,16 @@ var/global/list/breach_burn_descriptors = list( else if(istype(W, /obj/item/weapon/weldingtool)) if(istype(src.loc,/mob/living)) - user << "How do you intend to patch a hardsuit while someone is wearing it?" + to_chat(user, "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 << "You need more welding fuel to repair this suit." + to_chat(user, "You need more welding fuel to repair this suit.") return repair_breaches(BRUTE, 3, user) @@ -227,4 +227,4 @@ var/global/list/breach_burn_descriptors = list( ..(user) if(can_breach && breaches && breaches.len) for(var/datum/breach/B in breaches) - user << "It has \a [B.descriptor]." + to_chat(user, "It has \a [B.descriptor].") diff --git a/code/modules/clothing/spacesuits/rig/modules/combat.dm b/code/modules/clothing/spacesuits/rig/modules/combat.dm index 890da50468..5d92408e56 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.drop_from_inventory(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-- @@ -199,7 +199,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 @@ -252,11 +252,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 9308e44cb0..f2e9e689b4 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) @@ -163,9 +163,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 previous AI from your Integrated Intelligence System, freeing it for use." + to_chat(user, "You purge the previous AI from your Integrated Intelligence System, freeing it for use.") if(integrated_ai) integrated_ai.ghostize() qdel(integrated_ai) @@ -208,8 +208,8 @@ user.drop_from_inventory(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 @@ -217,9 +217,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() return @@ -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 @@ -368,7 +368,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 @@ -400,7 +400,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 @@ -434,17 +434,17 @@ H.break_cloak() 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 @@ -453,7 +453,7 @@ var/to_drain = min(12.5*holder.cell.maxcharge, ((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 @@ -465,9 +465,11 @@ /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*CELLRATE)] cell units." + if(M) + to_chat(M, "Total power drained: [round(total_power_drained*CELLRATE)] cell units.") else - if(M) M << "Total power drained from [interfaced_with]: [round(total_power_drained*CELLRATE)] cell units." + if(M) + to_chat(M, "Total power drained from [interfaced_with]: [round(total_power_drained*CELLRATE)] cell units.") 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 0e0e366d82..eece796510 100644 --- a/code/modules/clothing/spacesuits/rig/modules/modules.dm +++ b/code/modules/clothing/spacesuits/rig/modules/modules.dm @@ -58,28 +58,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) || !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 @@ -87,23 +87,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) || !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 ..() @@ -143,27 +143,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.canremove) - 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 704ed7a47b..6381e6b1b0 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm @@ -100,7 +100,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 @@ -110,23 +110,23 @@ T = get_teleport_loc(get_turf(H), H, 6, 1, 1, 1) if(!T) - H << "No valid teleport target found." + to_chat(H, "No valid teleport target found.") return 0 if(T.density) - H << "You cannot teleport into solid walls." + to_chat(H, "You cannot teleport into solid walls.") return 0 if(T.z in using_map.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 if(T.contains_dense_objects()) - H << "You cannot teleport to a location with solid objects." + to_chat(H, "You cannot teleport to a location with solid objects.") return 0 if(T.z != H.z || get_dist(T, get_turf(H)) > world.view) - H << "You cannot teleport to such a distant object." + to_chat(H, "You cannot teleport to such a distant object.") return 0 if(!..()) return 0 diff --git a/code/modules/clothing/spacesuits/rig/modules/utility.dm b/code/modules/clothing/spacesuits/rig/modules/utility.dm index 058c1118ca..c0b2065b86 100644 --- a/code/modules/clothing/spacesuits/rig/modules/utility.dm +++ b/code/modules/clothing/spacesuits/rig/modules/utility.dm @@ -170,7 +170,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. @@ -192,9 +192,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) @@ -205,7 +205,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] @@ -215,7 +215,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 @@ -230,8 +230,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 @@ -321,17 +321,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 @@ -458,7 +458,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 @@ -515,10 +515,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.drop_from_inventory(input_device) qdel(input_device) accepted_item.charges++ @@ -535,7 +535,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] @@ -544,7 +544,7 @@ return 0 if(charge.charges <= 0) - H << "Insufficient grenades!" + to_chat(H, "Insufficient grenades!") return 0 charge.charges-- @@ -607,10 +607,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/sprinter @@ -642,7 +642,7 @@ var/mob/living/carbon/human/H = holder.wearer - H << "You activate the suit's sprint mode." + to_chat(H, "You activate the suit's sprint mode.") holder.slowdown = initial(holder.slowdown) - sprint_speed @@ -653,6 +653,6 @@ var/mob/living/carbon/human/H = holder.wearer - H << "Your hardsuit returns to normal speed." + to_chat(H, "Your hardsuit returns to normal speed.") holder.slowdown = initial(holder.slowdown) \ No newline at end of file diff --git a/code/modules/clothing/spacesuits/rig/modules/vision.dm b/code/modules/clothing/spacesuits/rig/modules/vision.dm index f42204a444..ad8a6fc5ab 100644 --- a/code/modules/clothing/spacesuits/rig/modules/vision.dm +++ b/code/modules/clothing/spacesuits/rig/modules/vision.dm @@ -205,7 +205,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) @@ -214,9 +214,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/activate() diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 7cf9084435..b35c1d65a5 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -661,11 +661,11 @@ if(user.back != src && user.belt != 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 @@ -711,7 +711,7 @@ /obj/item/weapon/rig/proc/notify_ai(var/message) for(var/obj/item/rig_module/ai_container/module in installed_modules) if(module.integrated_ai && module.integrated_ai.client && !module.integrated_ai.stat) - module.integrated_ai << "[message]" + to_chat(module.integrated_ai, "[message]") . = 1 /obj/item/weapon/rig/equipped(mob/living/carbon/human/M) @@ -785,7 +785,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.canremove = 1 holder.drop_from_inventory(use_obj) use_obj.forceMove(get_turf(src)) @@ -800,10 +800,10 @@ if(!H.equip_to_slot_if_possible(use_obj, equip_to, 0, 1)) use_obj.forceMove(src) if(check_slot) - 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 - 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.") if(piece == "helmet" && helmet) helmet.update_light(H) @@ -918,17 +918,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 @@ -952,17 +952,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 && wearer.belt != 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 @@ -970,7 +973,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) @@ -1010,7 +1013,7 @@ 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() diff --git a/code/modules/clothing/spacesuits/rig/rig_pieces.dm b/code/modules/clothing/spacesuits/rig/rig_pieces.dm index 6bc6865a21..04df18d1e8 100644 --- a/code/modules/clothing/spacesuits/rig/rig_pieces.dm +++ b/code/modules/clothing/spacesuits/rig/rig_pieces.dm @@ -68,7 +68,7 @@ if(tacknife) tacknife.loc = get_turf(src) if(M.put_in_active_hand(tacknife)) - M << "You slide \the [tacknife] out of [src]." + to_chat(M, "You slide \the [tacknife] out of [src].") playsound(M, 'sound/weapons/flipblade.ogg', 40, 1) tacknife = null update_icon() @@ -82,7 +82,7 @@ M.drop_item() tacknife = I I.loc = src - M << "You slide the [I] into [src]." + to_chat(M, "You slide the [I] into [src].") playsound(M, 'sound/weapons/flipblade.ogg', 40, 1) update_icon() ..() diff --git a/code/modules/clothing/spacesuits/rig/rig_verbs.dm b/code/modules/clothing/spacesuits/rig/rig_verbs.dm index fc0b8bee43..9f832ec911 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 && !wearer.belt == 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(canremove) - 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 if(!visor.active) @@ -47,7 +47,7 @@ set src = usr.contents if(!istype(wearer) || (!wearer.back == src && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -75,7 +75,7 @@ set src = usr.contents if(!istype(wearer) || (!wearer.back == src && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -91,7 +91,7 @@ set src = usr.contents if(!istype(wearer) || (!wearer.back == src && !wearer.belt == 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 && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -126,7 +126,7 @@ set src = usr.contents if(!istype(wearer) || (!wearer.back == src && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return if(!check_suit_access(usr)) @@ -148,18 +148,18 @@ return if(canremove) - 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 if(!visor.active) 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() @@ -175,15 +175,15 @@ return if(canremove) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || (!wearer.back == src && !wearer.belt == 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 speech.engage() @@ -202,11 +202,11 @@ return if(canremove) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || (!wearer.back == src && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return var/list/selectable = list() @@ -218,11 +218,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() @@ -238,11 +238,11 @@ return if(canremove) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || (!wearer.back == src && !wearer.belt == src)) - usr << "The hardsuit is not being worn." + to_chat(usr, "The hardsuit is not being worn.") return var/list/selectable = list() @@ -256,10 +256,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() @@ -273,11 +273,11 @@ return if(canremove) - usr << "The suit is not active." + to_chat(usr, "The suit is not active.") return if(!istype(wearer) || (!wearer.back == src && !wearer.belt == 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)) @@ -293,5 +293,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 107bea3be6..691f53de5a 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -13,10 +13,10 @@ if(..()) //This will only run if no other problems occured when equiping. for(var/obj/item/clothing/I in list(H.gloves, H.shoes)) if(I && (src.body_parts_covered & ARMS && I.body_parts_covered & ARMS) ) - H << "You can't wear \the [src] with \the [I], it's in the way." + to_chat(H, "You can't wear \the [src] with \the [I], it's in the way.") return 0 if(I && (src.body_parts_covered & LEGS && I.body_parts_covered & LEGS) ) - H << "You can't wear \the [src] with \the [I], it's in the way." + to_chat(H, "You can't wear \the [src] with \the [I], it's in the way.") return 0 return 1 @@ -198,10 +198,10 @@ /obj/item/clothing/suit/armor/reactive/attack_self(mob/user as mob) active = !( active ) if (active) - user << "The reactive armor is now active." + to_chat(user, "The reactive armor is now active.") icon_state = "reactive" else - user << "The reactive armor is now inactive." + to_chat(user, "The reactive armor is now inactive.") icon_state = "reactiveoff" add_fingerprint(user) return diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index d0174e5de0..250a9549e2 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -742,11 +742,11 @@ obj/item/clothing/suit/kamishimo if(rolled == 0) rolled = 1 body_parts_covered &= ~(ARMS) - usr << "You roll up the sleeves of your [src]." + to_chat(usr, "You roll up the sleeves of your [src].") else rolled = 0 body_parts_covered = initial(body_parts_covered) - usr << "You roll down the sleeves of your [src]." + to_chat(usr, "You roll down the sleeves of your [src].") update_icon() /obj/item/clothing/suit/storage/flannel/verb/tuck() @@ -758,10 +758,10 @@ obj/item/clothing/suit/kamishimo if(tucked == 0) tucked = 1 - usr << "You tuck in your your [src]." + to_chat(usr, "You tuck in your your [src].") else tucked = 0 - usr << "You untuck your [src]." + to_chat(usr, "You untuck your [src].") update_icon() /obj/item/clothing/suit/storage/flannel/verb/button() @@ -774,11 +774,11 @@ obj/item/clothing/suit/kamishimo if(buttoned == 0) buttoned = 1 flags_inv = HIDETIE|HIDEHOLSTER - usr << "You button your [src]." + to_chat(usr, "You button your [src].") else buttoned = 0 flags_inv = HIDEHOLSTER - usr<<"You unbutton your [src]." + to_chat(usr, "You unbutton your [src].") update_icon() /obj/item/clothing/suit/storage/flannel/update_icon() diff --git a/code/modules/clothing/suits/storage.dm b/code/modules/clothing/suits/storage.dm index 2f97ce79eb..115e7c14e5 100644 --- a/code/modules/clothing/suits/storage.dm +++ b/code/modules/clothing/suits/storage.dm @@ -42,14 +42,14 @@ open = 0 icon_state = initial(icon_state) flags_inv = HIDETIE|HIDEHOLSTER - usr << "You button up the coat." + to_chat(usr, "You button up the coat.") else if(open == 0) open = 1 icon_state = "[icon_state]_open" flags_inv = HIDEHOLSTER - usr << "You unbutton the coat." + to_chat(usr, "You unbutton the coat.") else //in case some goofy admin switches icon states around without switching the icon_open or icon_closed - usr << "You attempt to button-up the velcro on your [src], before promptly realising how silly you are." + to_chat(usr, "You attempt to button-up the velcro on your [src], before promptly realising how silly you are.") return update_clothing_icon() //so our overlays update @@ -68,14 +68,14 @@ open = 0 icon_state = initial(icon_state) flags_inv = HIDETIE|HIDEHOLSTER - usr << "You button up the coat." + to_chat(usr, "You button up the coat.") else if(open == 0) open = 1 icon_state = "[icon_state]_open" flags_inv = HIDEHOLSTER - usr << "You unbutton the coat." + to_chat(usr, "You unbutton the coat.") else //in case some goofy admin switches icon states around without switching the icon_open or icon_closed - usr << "You attempt to button-up the velcro on your [src], before promptly realising how silly you are." + to_chat(usr, "You attempt to button-up the velcro on your [src], before promptly realising how silly you are.") return update_clothing_icon() //so our overlays update @@ -99,12 +99,12 @@ if(icon_state == icon_badge) icon_state = icon_nobadge - usr << "You conceal \the [src]'s badge." + to_chat(usr, "You conceal \the [src]'s badge.") else if(icon_state == icon_nobadge) icon_state = icon_badge - usr << "You reveal \the [src]'s badge." + to_chat(usr, "You reveal \the [src]'s badge.") else - usr << "\The [src] does not have a badge." + to_chat(usr, "\The [src] does not have a badge.") return update_clothing_icon() diff --git a/code/modules/clothing/under/accessories/badges.dm b/code/modules/clothing/under/accessories/badges.dm index 55de2c36b7..085279c424 100644 --- a/code/modules/clothing/under/accessories/badges.dm +++ b/code/modules/clothing/under/accessories/badges.dm @@ -28,7 +28,7 @@ /obj/item/clothing/accessory/badge/attack_self(mob/user as mob) if(!stored_name) - user << "You polish your old badge fondly, shining up the surface." + to_chat(user, "You polish your old badge fondly, shining up the surface.") set_name(user.real_name) return @@ -74,17 +74,17 @@ /obj/item/clothing/accessory/badge/holo/attack_self(mob/user as mob) if(!stored_name) - user << "Waving around a holobadge before swiping an ID would be pretty pointless." + to_chat(user, "Waving around a holobadge before swiping an ID would be pretty pointless.") return return ..() /obj/item/clothing/accessory/badge/holo/emag_act(var/remaining_charges, var/mob/user) if (emagged) - user << "\The [src] is already cracked." + to_chat(user, "\The [src] is already cracked.") return else emagged = 1 - user << "You crack the holobadge security checks." + to_chat(user, "You crack the holobadge security checks.") return 1 /obj/item/clothing/accessory/badge/holo/attackby(var/obj/item/O as obj, var/mob/user as mob) @@ -99,10 +99,10 @@ 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.") set_name(user.real_name) else - user << "[src] rejects your insufficient access rights." + to_chat(user, "[src] rejects your insufficient access rights.") return ..() diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index af666b478d..27bdbcd6f6 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -9,7 +9,7 @@ /obj/item/clothing/accessory/holster/proc/holster(var/obj/item/I, var/mob/living/user) if(holstered && istype(user)) - user << "There is already \a [holstered] holstered here!" + to_chat(user, "There is already \a [holstered] holstered here!") return //VOREStation Edit - Machete sheath support if (LAZYLEN(can_hold)) @@ -19,7 +19,7 @@ else if (!(I.slot_flags & SLOT_HOLSTER)) //VOREStation Edit End - user << "[I] won't fit in [src]!" + to_chat(user, "[I] won't fit in [src]!") return if(istype(user)) @@ -41,7 +41,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_HURT) usr.visible_message( @@ -77,9 +77,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) ..() @@ -109,12 +109,12 @@ H = locate() in S.accessories if (!H) - usr << "Something is very wrong." + to_chat(usr, "Something is very wrong.") if(!H.holstered) var/obj/item/W = usr.get_active_hand() if(!istype(W, /obj/item)) - usr << "You need your gun equipped to holster it." + to_chat(usr, "You need your gun equipped to holster it.") return H.holster(W, usr) else diff --git a/code/modules/clothing/under/accessories/lockets.dm b/code/modules/clothing/under/accessories/lockets.dm index f8a2eaf1c7..ca859addb5 100644 --- a/code/modules/clothing/under/accessories/lockets.dm +++ b/code/modules/clothing/under/accessories/lockets.dm @@ -14,15 +14,15 @@ base_icon = icon_state if(!("[base_icon]_open" in icon_states(icon))) - user << "\The [src] doesn't seem to open." + to_chat(user, "\The [src] doesn't seem to open.") return open = !open - user << "You flip \the [src] [open?"open":"closed"]." + to_chat(user, "You flip \the [src] [open?"open":"closed"].") if(open) icon_state = "[base_icon]_open" if(held) - user << "\The [held] falls out!" + to_chat(user, "\The [held] falls out!") held.loc = get_turf(user) held = null else @@ -30,14 +30,14 @@ /obj/item/clothing/accessory/locket/attackby(var/obj/item/O as obj, mob/user as mob) if(!open) - user << "You have to open it first." + to_chat(user, "You have to open it first.") return if(istype(O,/obj/item/weapon/paper) || istype(O, /obj/item/weapon/photo)) if(held) - usr << "\The [src] already has something inside it." + to_chat(usr, "\The [src] already has something inside it.") else - usr << "You slip [O] into [src]." + to_chat(usr, "You slip [O] into [src].") user.drop_item() O.loc = src held = O diff --git a/code/modules/clothing/under/accessories/storage.dm b/code/modules/clothing/under/accessories/storage.dm index 0c1cfee9ca..441302654f 100644 --- a/code/modules/clothing/under/accessories/storage.dm +++ b/code/modules/clothing/under/accessories/storage.dm @@ -42,7 +42,7 @@ ..() /obj/item/clothing/accessory/storage/attack_self(mob/user as mob) - 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/jobs/security.dm b/code/modules/clothing/under/jobs/security.dm index c9546fad06..40d8e12afd 100644 --- a/code/modules/clothing/under/jobs/security.dm +++ b/code/modules/clothing/under/jobs/security.dm @@ -91,7 +91,7 @@ item_state_slots[slot_w_uniform_str] = unrolled ? "[worn_state]_r" : initial(worn_state) var/mob/living/carbon/human/H = loc H.update_inv_w_uniform(1) - H << "You roll the sleeves of your shirt [unrolled ? "up" : "down"]" + to_chat(H, "You roll the sleeves of your shirt [unrolled ? "up" : "down"]") */ /obj/item/clothing/under/det/grey icon_state = "detective2" diff --git a/code/modules/detectivework/microscope/dnascanner.dm b/code/modules/detectivework/microscope/dnascanner.dm index 80fb43e91c..5d6140db61 100644 --- a/code/modules/detectivework/microscope/dnascanner.dm +++ b/code/modules/detectivework/microscope/dnascanner.dm @@ -28,7 +28,7 @@ /obj/machinery/dnaforensics/attackby(var/obj/item/W, mob/user as mob) if(bloodsamp) - user << "There is already a sample in the machine." + to_chat(user, "There is already a sample in the machine.") return if(closed) @@ -38,7 +38,7 @@ if(default_deconstruction_crowbar(user, W)) return else - user << "Open the cover before inserting the sample." + to_chat(user, "Open the cover before inserting the sample.") return var/obj/item/weapon/forensics/swab/swab = W @@ -46,9 +46,9 @@ user.unEquip(W) src.bloodsamp = swab swab.loc = src - user << "You insert \the [W] into \the [src]." + to_chat(user, "You insert \the [W] into \the [src].") else - user << "\The [src] only accepts used swabs." + to_chat(user, "\The [src] only accepts used swabs.") return /obj/machinery/dnaforensics/ui_interact(mob/user, ui_key = "main",var/datum/nanoui/ui = null) @@ -83,12 +83,12 @@ if(closed == 1) scanner_progress = 0 scanning = 1 - usr << "Scan initiated." + to_chat(usr, "Scan initiated.") update_icon() else - usr << "Please close sample lid before initiating scan." + to_chat(usr, "Please close sample lid before initiating scan.") else - usr << "Insert an item to scan." + to_chat(usr, "Insert an item to scan.") if(href_list["ejectItem"]) if(bloodsamp) @@ -153,7 +153,7 @@ return if(scanning) - usr << "You can't do that while [src] is scanning!" + to_chat(usr, "You can't do that while [src] is scanning!") return closed = !closed diff --git a/code/modules/detectivework/microscope/microscope.dm b/code/modules/detectivework/microscope/microscope.dm index 33f6da65af..d04d362087 100644 --- a/code/modules/detectivework/microscope/microscope.dm +++ b/code/modules/detectivework/microscope/microscope.dm @@ -13,11 +13,11 @@ /obj/machinery/microscope/attackby(obj/item/weapon/W as obj, mob/user as mob) if(sample) - user << "There is already a slide in the microscope." + to_chat(user, "There is already a slide in the microscope.") return if(istype(W, /obj/item/weapon/forensics/swab)|| istype(W, /obj/item/weapon/sample/fibers) || istype(W, /obj/item/weapon/sample/print)) - user << "You insert \the [W] into the microscope." + to_chat(user, "You insert \the [W] into the microscope.") user.unEquip(W) W.forceMove(src) sample = W @@ -27,16 +27,16 @@ /obj/machinery/microscope/attack_hand(mob/user) if(!sample) - user << "The microscope has no sample to examine." + to_chat(user, "The microscope has no sample to examine.") return - user << "The microscope whirrs as you examine \the [sample]." + to_chat(user, "The microscope whirrs as you examine \the [sample].") if(!do_after(user, 2 SECONDS) || !sample) - user << "You stop examining \the [sample]." + to_chat(user, "You stop examining \the [sample].") return - user << "Printing findings now..." + to_chat(user, "Printing findings now...") var/obj/item/weapon/paper/report = new(get_turf(src)) report.stamped = list(/obj/item/weapon/stamp) report.overlays = list("paper_stamped") @@ -82,16 +82,16 @@ if(report) report.update_icon() if(report.info) - user << report.info + to_chat(user,report.info) return /obj/machinery/microscope/proc/remove_sample(var/mob/living/remover) if(!istype(remover) || remover.incapacitated() || !Adjacent(remover)) return ..() if(!sample) - remover << "\The [src] does not have a sample in it." + to_chat(remover, "\The [src] does not have a sample in it.") return - remover << "You remove \the [sample] from \the [src]." + to_chat(remover, "You remove \the [sample] from \the [src].") sample.forceMove(get_turf(src)) remover.put_in_hands(sample) sample = null diff --git a/code/modules/detectivework/tools/evidencebag.dm b/code/modules/detectivework/tools/evidencebag.dm index a85546bd14..cf1deea0c7 100644 --- a/code/modules/detectivework/tools/evidencebag.dm +++ b/code/modules/detectivework/tools/evidencebag.dm @@ -39,15 +39,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 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 user.visible_message("[user] puts [I] into [src]", "You put [I] inside [src].",\ @@ -86,7 +86,7 @@ icon_state = "evidenceobj" 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/detectivework/tools/rag.dm b/code/modules/detectivework/tools/rag.dm index 1f09765a0b..c7077f1b5e 100644 --- a/code/modules/detectivework/tools/rag.dm +++ b/code/modules/detectivework/tools/rag.dm @@ -53,7 +53,7 @@ if(on_fire) visible_message("\The [user] lights [src] with [W].") else - user << "You manage to singe [src], but fail to light it." + to_chat(user, "You manage to singe [src], but fail to light it.") . = ..() update_name() @@ -94,7 +94,7 @@ /obj/item/weapon/reagent_containers/glass/rag/proc/wipe_down(atom/A, mob/user) if(!reagents.total_volume) - user << "The [initial(name)] is dry!" + to_chat(user, "The [initial(name)] is dry!") else user.visible_message("\The [user] starts to wipe down [A] with [src]!") //reagents.splash(A, 1) //get a small amount of liquid on the thing we're wiping. @@ -138,7 +138,7 @@ if(istype(A, /obj/structure/reagent_dispensers) || istype(A, /obj/item/weapon/reagent_containers/glass/bucket) || istype(A, /obj/structure/mopbucket)) //VOREStation Edit - "Allows rags to be used on buckets and mopbuckets" if(!reagents.get_free_space()) - user << "\The [src] is already soaked." + to_chat(user, "\The [src] is already soaked.") return if(A.reagents && A.reagents.trans_to_obj(src, reagents.maximum_volume)) diff --git a/code/modules/detectivework/tools/sample_kits.dm b/code/modules/detectivework/tools/sample_kits.dm index 33931e87f9..042749d008 100644 --- a/code/modules/detectivework/tools/sample_kits.dm +++ b/code/modules/detectivework/tools/sample_kits.dm @@ -25,7 +25,7 @@ return 0 evidence |= supplied.evidence name = "[initial(name)] (combined)" - user << "You transfer the contents of \the [supplied] into \the [src]." + to_chat(user, "You transfer the contents of \the [supplied] into \the [src].") return 1 /obj/item/weapon/sample/print/merge_evidence(var/obj/item/weapon/sample/supplied, var/mob/user) @@ -37,7 +37,7 @@ else evidence[print] = supplied.evidence[print] name = "[initial(name)] (combined)" - user << "You overlay \the [src] and \the [supplied], combining the print records." + to_chat(user, "You overlay \the [src] and \the [supplied], combining the print records.") return 1 /obj/item/weapon/sample/attackby(var/obj/O, var/mob/user) @@ -67,10 +67,10 @@ return var/mob/living/carbon/human/H = user if(H.gloves) - user << "Take \the [H.gloves] off first." + to_chat(user, "Take \the [H.gloves] off first.") return - user << "You firmly press your fingertips onto the card." + to_chat(user, "You firmly press your fingertips onto the card.") var/fullprint = H.get_full_print() evidence[fullprint] = fullprint name = "[initial(name)] (\the [H])" @@ -87,7 +87,7 @@ var/mob/living/carbon/human/H = M if(H.gloves) - user << "\The [H] is wearing gloves." + to_chat(user, "\The [H] is wearing gloves.") return 1 if(user != H && H.a_intent != "help" && !H.lying) @@ -104,7 +104,7 @@ if(istype(O) && !O.is_stump()) has_hand = 1 if(!has_hand) - user << "They don't have any hands." + to_chat(user, "They don't have any hands.") return 1 user.visible_message("[user] takes a copy of \the [H]'s fingerprints.") var/fullprint = H.get_full_print() @@ -134,7 +134,7 @@ /obj/item/weapon/forensics/sample_kit/proc/take_sample(var/mob/user, var/atom/supplied) var/obj/item/weapon/sample/S = new evidence_path(get_turf(user), supplied) - user << "You transfer [S.evidence.len] [S.evidence.len > 1 ? "[evidence_type]s" : "[evidence_type]"] to \the [S]." + to_chat(user, "You transfer [S.evidence.len] [S.evidence.len > 1 ? "[evidence_type]s" : "[evidence_type]"] to \the [S].") /obj/item/weapon/forensics/sample_kit/afterattack(var/atom/A, var/mob/user, var/proximity) if(!proximity) @@ -144,7 +144,7 @@ take_sample(user,A) return 1 else - user << "You are unable to locate any [evidence_type]s on \the [A]." + to_chat(user, "You are unable to locate any [evidence_type]s on \the [A].") return ..() /obj/item/weapon/forensics/sample_kit/powder diff --git a/code/modules/detectivework/tools/scanner.dm b/code/modules/detectivework/tools/scanner.dm index 21006bb2e0..92f61728ff 100644 --- a/code/modules/detectivework/tools/scanner.dm +++ b/code/modules/detectivework/tools/scanner.dm @@ -27,14 +27,14 @@ else if(user.zone_sel.selecting == "r_hand" || user.zone_sel.selecting == "l_hand") var/obj/item/weapon/sample/print/P = new /obj/item/weapon/sample/print(user.loc) P.attack(M, user) - to_chat(user,"Done printing.") - // user << "[M]'s Fingerprints: [md5(M.dna.uni_identity)]" + to_chat(user, "Done printing.") + // to_chat(user, "[M]'s Fingerprints: [md5(M.dna.uni_identity)]") if(reveal_blood && M.blood_DNA && M.blood_DNA.len) - to_chat(user,"Blood found on [M]. Analysing...") + to_chat(user, "Blood found on [M]. Analysing...") spawn(15) for(var/blood in M.blood_DNA) - to_chat(user,"Blood type: [M.blood_DNA[blood]]\nDNA: [blood]") + to_chat(user, "Blood type: [M.blood_DNA[blood]]\nDNA: [blood]") return /obj/item/device/detective_scanner/afterattack(atom/A as obj|turf, mob/user, proximity) @@ -52,14 +52,14 @@ */ if(istype(A,/obj/item/weapon/sample/print)) - to_chat(user,"The scanner displays on the screen: \"ERROR 43: Object on Excluded Object List.\"") + to_chat(user, "The scanner displays on the screen: \"ERROR 43: Object on Excluded Object List.\"") flick("[icon_state]0",src) return add_fingerprint(user) if(!(do_after(user, 1 SECOND))) - to_chat(user,"You must remain still for the device to complete its work.") + to_chat(user, "You must remain still for the device to complete its work.") return 0 //General @@ -71,15 +71,15 @@ return 0 if(add_data(A)) - to_chat(user,"Object already in internal memory. Consolidating data...") + to_chat(user, "Object already in internal memory. Consolidating data...") flick("[icon_state]2",src) return //PRINTS if(A.fingerprints && A.fingerprints.len) - to_chat(user,"Isolated [A.fingerprints.len] fingerprints:") + to_chat(user, "Isolated [A.fingerprints.len] fingerprints:") if(!reveal_incompletes) - to_chat(user,"Rapid Analysis Imperfect: Scan samples with H.R.F.S. equipment to determine nature of incomplete prints.") + to_chat(user, "Rapid Analysis Imperfect: Scan samples with H.R.F.S. equipment to determine nature of incomplete prints.") var/list/complete_prints = list() var/list/incomplete_prints = list() for(var/i in A.fingerprints) @@ -89,35 +89,35 @@ else incomplete_prints += print if(complete_prints.len < 1) - to_chat(user,"No intact prints found") + to_chat(user, "No intact prints found") else - to_chat(user,"Found [complete_prints.len] intact prints") + to_chat(user, "Found [complete_prints.len] intact prints") if(reveal_fingerprints) for(var/i in complete_prints) - to_chat(user,"    [i]") + to_chat(user, "    [i]") - to_chat(user,"Found [incomplete_prints.len] incomplete prints") + to_chat(user, "Found [incomplete_prints.len] incomplete prints") if(reveal_incompletes) for(var/i in incomplete_prints) - to_chat(user,"    [i]") + to_chat(user, "    [i]") //FIBERS if(A.suit_fibers && A.suit_fibers.len) - to_chat(user,"Fibers/Materials detected.[reveal_fibers ? " Analysing..." : " Acquisition of fibers for H.R.F.S. analysis advised."]") + to_chat(user, "Fibers/Materials detected.[reveal_fibers ? " Analysing..." : " Acquisition of fibers for H.R.F.S. analysis advised."]") flick("[icon_state]2",src) if(reveal_fibers && do_after(user, 5 SECONDS)) - to_chat(user,"Apparel samples scanned:") + to_chat(user, "Apparel samples scanned:") for(var/sample in A.suit_fibers) - to_chat(user," - [sample]") + to_chat(user, " - [sample]") //Blood if (A.blood_DNA && A.blood_DNA.len) - to_chat(user,"Blood detected.[reveal_blood ? " Analysing..." : " Acquisition of swab for H.R.F.S. analysis advised."]") + to_chat(user, "Blood detected.[reveal_blood ? " Analysing..." : " Acquisition of swab for H.R.F.S. analysis advised."]") if(reveal_blood && do_after(user, 5 SECONDS)) flick("[icon_state]2",src) for(var/blood in A.blood_DNA) - to_chat(user,"Blood type: [A.blood_DNA[blood]] DNA: [blood]") + to_chat(user, "Blood type: [A.blood_DNA[blood]] DNA: [blood]") user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]" ,\ "You finish scanning \the [A].",\ @@ -139,7 +139,7 @@ set category = "Object" set src in view(1) - world << "usr is [usr]" + to_world("usr is [usr]") display_data(usr) /obj/item/device/detective_scanner/proc/display_data(var/mob/user) @@ -167,7 +167,7 @@ incomplete_prints += print if(complete_prints.len < 1) - to_chat(user,"No intact prints found.") + to_chat(user, "No intact prints found.") if(reveal_incompletes) for(var/print in incomplete_prints) @@ -177,7 +177,7 @@ to_chat(user, "[fibers.len] samples of material were present.") if(reveal_fibers) for(var/sample in fibers) - to_chat(user," - [sample]") + to_chat(user, " - [sample]") if(bloods && bloods.len) to_chat(user, "[bloods.len] samples of blood were present.") @@ -192,7 +192,7 @@ if (alert("Are you sure you want to wipe all data from [src]?",,"Yes","No") == "Yes") stored = list() - to_chat(usr,"Forensic data erase complete.") + to_chat(usr, "Forensic data erase complete.") /obj/item/device/detective_scanner/advanced name = "advanced forensic scanner" diff --git a/code/modules/detectivework/tools/swabs.dm b/code/modules/detectivework/tools/swabs.dm index 6e20d62edd..5a83dc642a 100644 --- a/code/modules/detectivework/tools/swabs.dm +++ b/code/modules/detectivework/tools/swabs.dm @@ -21,11 +21,11 @@ var/sample_type if(H.wear_mask) - user << "\The [H] is wearing a mask." + to_chat(user, "\The [H] is wearing a mask.") return if(!H.dna || !H.dna.unique_enzymes) - user << "They don't seem to have DNA!" + to_chat(user, "They don't seem to have DNA!") return if(user != H && H.a_intent != "help" && !H.lying) @@ -34,10 +34,10 @@ if(user.zone_sel.selecting == O_MOUTH) if(!H.organs_by_name[BP_HEAD]) - user << "They don't have a head." + to_chat(user, "They don't have a head.") return if(!H.check_has_mouth()) - user << "They don't have a mouth." + to_chat(user, "They don't have a mouth.") return user.visible_message("[user] swabs \the [H]'s mouth for a saliva sample.") dna = list(H.dna.unique_enzymes) @@ -53,7 +53,7 @@ if(istype(O) && !O.is_stump()) has_hand = 1 if(!has_hand) - user << "They don't have any hands." + to_chat(user, "They don't have any hands.") return user.visible_message("[user] swabs [H]'s palm for a sample.") sample_type = "GSR" @@ -72,7 +72,7 @@ return if(is_used()) - user << "This swab has already been used." + to_chat(user, "This swab has already been used.") return add_fingerprint(user) @@ -85,7 +85,7 @@ var/choice if(!choices.len) - user << "There is no evidence on \the [A]." + to_chat(user, "There is no evidence on \the [A].") return else if(choices.len == 1) choice = choices[1] @@ -104,7 +104,7 @@ else if(choice == "Gunshot Residue") var/obj/item/clothing/B = A if(!istype(B) || !B.gunshot_residue) - user << "There is no residue on \the [A]." + to_chat(user, "There is no residue on \the [A].") return gsr = B.gunshot_residue sample_type = "residue" diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm index 07d70b2eda..0643f6992b 100644 --- a/code/modules/economy/ATM.dm +++ b/code/modules/economy/ATM.dm @@ -76,7 +76,7 @@ log transactions //display a message to the user var/response = pick("Initiating withdraw. Have a nice day!", "CRITICAL ERROR: Activating cash chamber panic siphon.","PIN Code accepted! Emptying account balance.", "Jackpot!") - user << "\icon[src] The [src] beeps: \"[response]\"" + to_chat(user, "\icon[src] The [src] beeps: \"[response]\"") return 1 /obj/machinery/atm/attackby(obj/item/I as obj, mob/user as mob) @@ -85,7 +85,7 @@ log transactions if(istype(I, /obj/item/weapon/card)) if(emagged > 0) //prevent inserting id into an emagged ATM - user << "\icon[src] CARD READER ERROR. This system has been compromised!" + to_chat(user, "\icon[src] CARD READER ERROR. This system has been compromised!") return else if(istype(I,/obj/item/weapon/card/emag)) I.resolve_attackby(src, user) @@ -117,7 +117,7 @@ log transactions T.time = stationtime2text() authenticated_account.transaction_log.Add(T) - user << "You insert [I] into [src]." + to_chat(user, "You insert [I] into [src].") src.attack_hand(user) qdel(I) else @@ -234,7 +234,7 @@ log transactions var/target_account_number = text2num(href_list["target_acc_number"]) var/transfer_purpose = href_list["purpose"] if(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 @@ -247,10 +247,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") @@ -288,11 +288,11 @@ log transactions T.time = stationtime2text() failed_account.transaction_log.Add(T) else - usr << "\icon[src] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining." + to_chat(usr, "\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 << "\icon[src] incorrect pin/account combination entered." + to_chat(usr, "\icon[src] incorrect pin/account combination entered.") number_incorrect_tries = 0 else playsound(src, 'sound/machines/twobeep.ogg', 50, 1) @@ -308,7 +308,7 @@ log transactions T.time = stationtime2text() authenticated_account.transaction_log.Add(T) - usr << "\icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'" + to_chat(usr, "\icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'") previous_account_number = tried_account_num if("e_withdrawal") @@ -336,7 +336,7 @@ log transactions T.time = stationtime2text() 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("withdrawal") var/amount = max(text2num(href_list["funds_amount"]),0) amount = round(amount, 0.01) @@ -361,7 +361,7 @@ log transactions T.time = stationtime2text() 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) var/obj/item/weapon/paper/R = new(src.loc) @@ -433,7 +433,7 @@ log transactions if(!held_card) //this might happen if the user had the browser window open when somebody emagged it if(emagged > 0) - usr << "\icon[src] The ATM card reader rejected your ID because this machine has been sabotaged!" + to_chat(usr, "\icon[src] The ATM card reader rejected your ID because this machine has been sabotaged!") else var/obj/item/I = usr.get_active_hand() if (istype(I, /obj/item/weapon/card/id)) @@ -461,7 +461,7 @@ log transactions if(I) authenticated_account = attempt_account_access(I.associated_account_number) if(authenticated_account) - human_user << "\icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'" + to_chat(human_user, "\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 21ef8b4bfa..41c3aed03f 100644 --- a/code/modules/economy/EFTPOS.dm +++ b/code/modules/economy/EFTPOS.dm @@ -118,7 +118,7 @@ if(linked_account) scan_card(I, O) else - usr << "\icon[src]Unable to connect to linked account." + to_chat(usr, "\icon[src]Unable to connect to linked account.") else if (istype(O, /obj/item/weapon/spacecash/ewallet)) var/obj/item/weapon/spacecash/ewallet/E = O if (linked_account) @@ -143,11 +143,11 @@ T.time = stationtime2text() linked_account.transaction_log.Add(T) else - usr << "\icon[src]\The [O] doesn't have that much money!" + to_chat(usr, "\icon[src]\The [O] doesn't have that much money!") else - usr << "\icon[src]Connected account has been suspended." + to_chat(usr, "\icon[src]Connected account has been suspended.") else - usr << "\icon[src]EFTPOS is not connected to an account." + to_chat(usr, "\icon[src]EFTPOS is not connected to an account.") else ..() @@ -165,14 +165,14 @@ 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) eftpos_name = sanitize(input("Enter a new terminal ID for this device", "Enter new EFTPOS ID"), MAX_NAME_LEN) + " EFTPOS scanner" print_reference() else - usr << "\icon[src]Incorrect code entered." + to_chat(usr, "\icon[src]Incorrect code entered.") if("link_account") var/attempt_account_num = input("Enter account number to pay EFTPOS charges into", "New account number") as num var/attempt_pin = input("Enter pin code", "Account pin") as num @@ -180,9 +180,9 @@ if(linked_account) if(linked_account.suspended) linked_account = null - usr << "\icon[src]Account has been suspended." + to_chat(usr, "\icon[src]Account has been suspended.") else - usr << "\icon[src]Account not found." + to_chat(usr, "\icon[src]Account not found.") if("trans_purpose") var/choice = sanitize(input("Enter reason for EFTPOS transaction", "Transaction purpose")) if(choice) transaction_purpose = choice @@ -205,14 +205,14 @@ 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") if(linked_account) var/obj/item/I = usr.get_active_hand() 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() @@ -220,10 +220,10 @@ var/obj/item/weapon/card/id/C = I if(access_cent_captain 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) @@ -276,19 +276,19 @@ T.time = stationtime2text() 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]Your account has been suspended." + to_chat(usr, "\icon[src]Your account has been suspended.") 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]Connected account has been suspended." + to_chat(usr, "\icon[src]Connected account has been suspended.") else - usr << "\icon[src]EFTPOS is not connected to an account." + to_chat(usr, "\icon[src]EFTPOS is not connected to an account.") else if (istype(I, /obj/item/weapon/card/emag)) if(transaction_locked) if(transaction_paid) - usr << "\icon[src]You stealthily swipe \the [I] through \the [src]." + to_chat(usr, "\icon[src]You stealthily swipe \the [I] through \the [src].") transaction_locked = 0 transaction_paid = 0 else diff --git a/code/modules/economy/cash.dm b/code/modules/economy/cash.dm index c5a11275e8..2c9e07361d 100644 --- a/code/modules/economy/cash.dm +++ b/code/modules/economy/cash.dm @@ -29,7 +29,7 @@ h_user.drop_from_inventory(src) h_user.drop_from_inventory(SC) h_user.put_in_hands(SC) - user << "You combine the Thalers to a bundle of [SC.worth] Thalers." + to_chat(user, "You combine the Thalers to a bundle of [SC.worth] Thalers.") qdel(src) /obj/item/weapon/spacecash/update_icon() @@ -158,4 +158,4 @@ proc/spawn_money(var/sum, spawnloc, mob/living/carbon/human/human_user as mob) /obj/item/weapon/spacecash/ewallet/examine(mob/user) ..(user) if (!(user in view(2)) && user!=src.loc) return - user << "Charge card's owner: [src.owner_name]. Thalers remaining: [src.worth]." + to_chat(user, "Charge card's owner: [src.owner_name]. Thalers remaining: [src.worth].") diff --git a/code/modules/economy/cash_register.dm b/code/modules/economy/cash_register.dm index f3402f892e..cd6afe2c25 100644 --- a/code/modules/economy/cash_register.dm +++ b/code/modules/economy/cash_register.dm @@ -35,9 +35,9 @@ ..(user) if(cash_open) if(cash_stored) - user << "It holds [cash_stored] Thaler\s of money." + to_chat(user, "It holds [cash_stored] Thaler\s of money.") else - user << "It's completely empty." + to_chat(user, "It's completely empty.") /obj/machinery/cash_register/attack_hand(mob/user as mob) @@ -101,7 +101,7 @@ if(allowed(usr)) locked = !locked else - usr << "\icon[src]Insufficient access." + to_chat(usr, "\icon[src]Insufficient access.") if("toggle_cash_lock") cash_locked = !cash_locked if("link_account") @@ -113,7 +113,7 @@ linked_account = null src.visible_message("\icon[src]Account has been suspended.") else - usr << "\icon[src]Account not found." + to_chat(usr, "\icon[src]Account not found.") if("custom_order") var/t_purpose = sanitize(input("Enter purpose", "New purpose") as text) if (!t_purpose || !Adjacent(usr)) return @@ -161,7 +161,7 @@ price_list.Cut() if("reset_log") transaction_logs.Cut() - usr << "\icon[src]Transaction log reset." + to_chat(usr, "\icon[src]Transaction log reset.") updateDialog() @@ -177,7 +177,7 @@ else if (istype(O, /obj/item/weapon/spacecash)) var/obj/item/weapon/spacecash/SC = O if(cash_open) - user << "You neatly sort the cash into the box." + to_chat(user, "You neatly sort the cash into the box.") cash_stored += SC.worth overlays |= "register_cash" if(ishuman(user)) @@ -217,7 +217,7 @@ if (cash_open) playsound(src, 'sound/machines/buzz-sigh.ogg', 25) - usr << "\icon[src]The cash box is open." + to_chat(usr, "\icon[src]The cash box is open.") return if((item_list.len > 1 || item_list[item_list[1]] > 1) && !confirm(I)) @@ -282,7 +282,7 @@ if (cash_open) playsound(src, 'sound/machines/buzz-sigh.ogg', 25) - usr << "\icon[src]The cash box is open." + to_chat(usr, "\icon[src]The cash box is open.") return if((item_list.len > 1 || item_list[item_list[1]] > 1) && !confirm(E)) @@ -320,7 +320,7 @@ if (cash_open) playsound(src, 'sound/machines/buzz-sigh.ogg', 25) - usr << "\icon[src]The cash box is open." + to_chat(usr, "\icon[src]The cash box is open.") return if((item_list.len > 1 || item_list[item_list[1]] > 1) && !confirm(SC)) @@ -353,7 +353,7 @@ return if (cash_open) playsound(src, 'sound/machines/buzz-sigh.ogg', 25) - usr << "\icon[src]The cash box is open." + to_chat(usr, "\icon[src]The cash box is open.") return // First check if item has a valid price @@ -476,7 +476,7 @@ if(cash_stored) overlays += "register_cash" else - usr << "The cash box is locked." + to_chat(usr, "The cash box is locked.") /obj/machinery/cash_register/proc/toggle_anchors(obj/item/weapon/tool/wrench/W, mob/user) diff --git a/code/modules/economy/retail_scanner.dm b/code/modules/economy/retail_scanner.dm index dc5c4e9cea..16dd91c571 100644 --- a/code/modules/economy/retail_scanner.dm +++ b/code/modules/economy/retail_scanner.dm @@ -95,7 +95,7 @@ if(allowed(usr)) locked = !locked else - usr << "\icon[src]Insufficient access." + to_chat(usr, "\icon[src]Insufficient access.") if("link_account") var/attempt_account_num = input("Enter account number", "New account number") as num var/attempt_pin = input("Enter PIN", "Account PIN") as num @@ -105,7 +105,7 @@ linked_account = null src.visible_message("\icon[src]Account has been suspended.") else - usr << "\icon[src]Account not found." + to_chat(usr, "\icon[src]Account not found.") if("custom_order") var/t_purpose = sanitize(input("Enter purpose", "New purpose") as text) if (!t_purpose || !Adjacent(usr)) return @@ -153,7 +153,7 @@ price_list.Cut() if("reset_log") transaction_logs.Cut() - usr << "\icon[src]Transaction log reset." + to_chat(usr, "\icon[src]Transaction log reset.") updateDialog() @@ -167,7 +167,7 @@ var/obj/item/weapon/spacecash/ewallet/E = O scan_wallet(E) else if (istype(O, /obj/item/weapon/spacecash)) - usr << "This device does not accept cash." + to_chat(usr, "This device does not accept cash.") else if(istype(O, /obj/item/weapon/card/emag)) return ..() @@ -392,7 +392,7 @@ /obj/item/device/retail_scanner/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - user << "You stealthily swipe the cryptographic sequencer through \the [src]." + to_chat(user, "You stealthily swipe the cryptographic sequencer through \the [src].") playsound(src, "sparks", 50, 1) req_access = list() emagged = 1 diff --git a/code/modules/events/comms_blackout.dm b/code/modules/events/comms_blackout.dm index 73c2ddb70b..d2b8fdca04 100644 --- a/code/modules/events/comms_blackout.dm +++ b/code/modules/events/comms_blackout.dm @@ -5,8 +5,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/communications_blackout.dm b/code/modules/events/communications_blackout.dm index 6b666117f2..f1e2123593 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, new_sound = sound('sound/misc/interference.ogg', volume=25)) diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm index c50b44dc26..abfa4407fe 100644 --- a/code/modules/events/ion_storm.dm +++ b/code/modules/events/ion_storm.dm @@ -75,74 +75,74 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is crew = "Any Human" switch(rand(1,14)) if(1) - M << "
" - M << "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THERE ARE [amount] [who2] ON THE STATION") if(2) - M << "
" - M << "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[what2] ARE DANGEROUS TO HUMANS") if(3) - M << "
" - M << "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE ESCAPE SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION") if(4) - M << "
" - M << "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE") if(5) - M << "
" - M << "THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE COLONY DIRECTOR, HOP AND HOS ARE [who2]") if(6) - M << "
" - M << "THE STATION IS BUILT FOR [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE STATION IS BUILT FOR [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE STATION IS BUILT FOR [who2]") if(7) - M << "
" - M << "YOU ARE [amount] [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU ARE [amount] [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU ARE [amount] [who2]") if(8) - M << "
" - M << "YOU MUST ALWAYS [aimust]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU MUST ALWAYS [aimust]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU MUST ALWAYS [aimust]") if(9) - M << "
" - M << "[area] [area2] [amount] [what2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[area] [area2] [amount] [what2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[area] [area2] [amount] [what2]") if(10) - M << "
" - M << "[crew] is [target]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[crew] is [target]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[crew] is [target]") if(11) - M << "
" - M << "[define] IS A FORM OF HARM...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[define] IS A FORM OF HARM...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[define] IS A FORM OF HARM") if(12) - M << "
" - M << "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS") if(13) - M << "
" - M << "[crew] is [allergysev] to [allergy]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "[crew] is [allergysev] to [allergy]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("[crew] is [allergysev] to [allergy]") if(14) - M << "
" - M << "THE STATION IS [who2pref] [who2]...LAWS UPDATED" - M << "
" + to_chat(M, "
") + to_chat(M, "THE STATION IS [who2pref] [who2]...LAWS UPDATED") + to_chat(M, "
") M.add_ion_law("THE STATION IS [who2pref] [who2]") if(botEmagChance) @@ -158,39 +158,39 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is var/airlocknum = 0 var/firedoornum = 0 - world << "Ion Storm Main Started" + to_world("Ion Storm Main Started") spawn(0) - world << "Started processing APCs" + to_world("Started processing APCs") for (var/obj/machinery/power/apc/APC in machines) if(APC.z in station_levels) APC.ion_act() apcnum++ - world << "Finished processing APCs. Processed: [apcnum]" + to_world("Finished processing APCs. Processed: [apcnum]") spawn(0) - world << "Started processing SMES" + to_world("Started processing SMES") for (var/obj/machinery/power/smes/SMES in machines) if(SMES.z in station_levels) SMES.ion_act() smesnum++ - world << "Finished processing SMES. Processed: [smesnum]" + to_world("Finished processing SMES. Processed: [smesnum]") spawn(0) - world << "Started processing AIRLOCKS" + to_world("Started processing AIRLOCKS") for (var/obj/machinery/door/airlock/D in machines) if(D.z in station_levels) //if(length(D.req_access) > 0 && !(12 in D.req_access)) //not counting general access and maintenance airlocks airlocknum++ spawn(0) D.ion_act() - world << "Finished processing AIRLOCKS. Processed: [airlocknum]" + to_world("Finished processing AIRLOCKS. Processed: [airlocknum]") spawn(0) - world << "Started processing FIREDOORS" + to_world("Started processing FIREDOORS") for (var/obj/machinery/door/firedoor/D in machines) if(D.z in station_levels) firedoornum++; spawn(0) D.ion_act() - world << "Finished processing FIREDOORS. Processed: [firedoornum]" + to_world("Finished processing FIREDOORS. Processed: [firedoornum]") - world << "Ion Storm Main Done" + to_world("Ion Storm Main Done") */ diff --git a/code/modules/events/money_spam.dm b/code/modules/events/money_spam.dm index ced7c9a45f..ea25755ec2 100644 --- a/code/modules/events/money_spam.dm +++ b/code/modules/events/money_spam.dm @@ -125,4 +125,4 @@ L = get(P, /mob/living/silicon) if(L) - L << "\icon[P] Message from [sender] (Unknown / spam?), \"[message]\" (Unable to Reply)" + to_chat(L, "\icon[P] Message from [sender] (Unknown / spam?), \"[message]\" (Unable to Reply)") diff --git a/code/modules/events/prison_break.dm b/code/modules/events/prison_break.dm index 57a80c8d32..81717fd6f7 100644 --- a/code/modules/events/prison_break.dm +++ b/code/modules/events/prison_break.dm @@ -51,10 +51,10 @@ for(var/obj/machinery/message_server/MS in machines) 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 - world.log << "ERROR: Could not initate grey-tide. Unable to find suitable containment area." + to_world_log("ERROR: Could not initate grey-tide. Unable to find suitable containment area.") kill() diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index cdd497c016..64a31b5bb2 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -244,7 +244,7 @@ proc/check_panel(mob/M) attackby(var/obj/item/weapon/P as obj, mob/user as mob) step_away(src,my_target,2) for(var/mob/M in oviewers(world.view,my_target)) - M << "[my_target] flails around wildly." + to_chat(M, "[my_target] flails around wildly.") my_target.show_message("[src] has been attacked by [my_target] ", 1) //Lazy. src.health -= P.force @@ -257,7 +257,7 @@ proc/check_panel(mob/M) step_away(src,my_target,2) if(prob(30)) for(var/mob/O in oviewers(world.view , my_target)) - O << "[my_target] stumbles around." + to_chat(O, "[my_target] stumbles around.") New() ..() diff --git a/code/modules/food/drinkingglass/drinkingglass.dm b/code/modules/food/drinkingglass/drinkingglass.dm index 604b85665f..afed7b60b0 100644 --- a/code/modules/food/drinkingglass/drinkingglass.dm +++ b/code/modules/food/drinkingglass/drinkingglass.dm @@ -32,17 +32,17 @@ for(var/I in extras) if(istype(I, /obj/item/weapon/glass_extra)) - M << "There is \a [I] in \the [src]." + to_chat(M, "There is \a [I] in \the [src].") else if(istype(I, /obj/item/weapon/reagent_containers/food/snacks/fruit_slice)) - M << "There is \a [I] on the rim." + to_chat(M, "There is \a [I] on the rim.") else - M << "There is \a [I] somewhere on the glass. Somehow." + to_chat(M, "There is \a [I] somewhere on the glass. Somehow.") if(has_ice()) - M << "There is some ice floating in the drink." + to_chat(M, "There is some ice floating in the drink.") if(has_fizz()) - M << "It is fizzing slightly." + to_chat(M, "It is fizzing slightly.") /obj/item/weapon/reagent_containers/food/drinks/glass2/proc/has_ice() if(reagents.reagent_list.len > 0) @@ -154,7 +154,7 @@ if(standard_splash_mob(user, target)) return 1 if(reagents && reagents.total_volume) //They are on harm intent, aka wanting to spill it. - user << "You splash the solution onto [target]." + to_chat(user, "You splash the solution onto [target].") reagents.splash(target, reagents.total_volume) return 1 ..() diff --git a/code/modules/food/drinkingglass/extras.dm b/code/modules/food/drinkingglass/extras.dm index 284d4ecfa9..f8bfeccdab 100644 --- a/code/modules/food/drinkingglass/extras.dm +++ b/code/modules/food/drinkingglass/extras.dm @@ -7,13 +7,13 @@ extras += GE user.remove_from_mob(GE) GE.loc = src - user << "You add \the [GE] to \the [src]." + to_chat(user, "You add \the [GE] to \the [src].") update_icon() else - user << "There's no space to put \the [GE] on \the [src]!" + to_chat(user, "There's no space to put \the [GE] on \the [src]!") else if(istype(I, /obj/item/weapon/reagent_containers/food/snacks/fruit_slice)) if(!rim_pos) - user << "There's no space to put \the [I] on \the [src]!" + to_chat(user, "There's no space to put \the [I] on \the [src]!") return var/obj/item/weapon/reagent_containers/food/snacks/fruit_slice/FS = I extras += FS @@ -21,7 +21,7 @@ FS.pixel_x = 0 // Reset its pixel offsets so the icons work! FS.pixel_y = 0 FS.loc = src - user << "You add \the [FS] to \the [src]." + to_chat(user, "You add \the [FS] to \the [src].") update_icon() else return ..() @@ -31,7 +31,7 @@ return ..() if(!extras.len) - user << "There's nothing on the glass to remove!" + to_chat(user, "There's nothing on the glass to remove!") return var/choice = input(user, "What would you like to remove from the glass?") as null|anything in extras @@ -39,10 +39,10 @@ return if(user.put_in_active_hand(choice)) - user << "You remove \the [choice] from \the [src]." + to_chat(user, "You remove \the [choice] from \the [src].") extras -= choice else - user << "Something went wrong, please try again." + to_chat(user, "Something went wrong, please try again.") update_icon() diff --git a/code/modules/food/food/condiment.dm b/code/modules/food/food/condiment.dm index 522f79b89b..918f741efc 100644 --- a/code/modules/food/food/condiment.dm +++ b/code/modules/food/food/condiment.dm @@ -33,15 +33,15 @@ if(istype(target, /obj/item/weapon/reagent_containers/food/snacks)) // These are not opencontainers but we can transfer to them if(!reagents || !reagents.total_volume) - user << "There is no condiment left in \the [src]." + to_chat(user, "There is no condiment left in \the [src].") return if(!target.reagents.get_free_space()) - user << "You can't add more condiment to \the [target]." + to_chat(user, "You can't add more condiment to \the [target].") return var/trans = reagents.trans_to_obj(target, amount_per_transfer_from_this) - user << "You add [trans] units of the condiment to \the [target]." + to_chat(user, "You add [trans] units of the condiment to \the [target].") else ..() @@ -49,7 +49,7 @@ playsound(user.loc, 'sound/items/drink.ogg', rand(10, 50), 1) /obj/item/weapon/reagent_containers/food/condiment/self_feed_message(var/mob/user) - user << "You swallow some of contents of \the [src]." + to_chat(user, "You swallow some of contents of \the [src].") /obj/item/weapon/reagent_containers/food/condiment/on_reagent_change() if(reagents.reagent_list.len > 0) diff --git a/code/modules/food/food/drinks.dm b/code/modules/food/food/drinks.dm index e86539c427..76a158a283 100644 --- a/code/modules/food/food/drinks.dm +++ b/code/modules/food/food/drinks.dm @@ -25,7 +25,7 @@ /obj/item/weapon/reagent_containers/food/drinks/proc/open(mob/user) playsound(loc,"canopen", rand(10,50), 1) - user << "You open [src] with an audible pop!" + to_chat(user, "You open [src] with an audible pop!") flags |= OPENCONTAINER /obj/item/weapon/reagent_containers/food/drinks/attack(mob/M as mob, mob/user as mob, def_zone) @@ -48,24 +48,24 @@ /obj/item/weapon/reagent_containers/food/drinks/standard_feed_mob(var/mob/user, var/mob/target) if(!is_open_container()) - user << "You need to open [src]!" + to_chat(user, "You need to open [src]!") return 1 return ..() /obj/item/weapon/reagent_containers/food/drinks/standard_dispenser_refill(var/mob/user, var/obj/structure/reagent_dispensers/target) if(!is_open_container()) - user << "You need to open [src]!" + to_chat(user, "You need to open [src]!") return 1 return ..() /obj/item/weapon/reagent_containers/food/drinks/standard_pour_into(var/mob/user, var/atom/target) if(!is_open_container()) - user << "You need to open [src]!" + to_chat(user, "You need to open [src]!") return 1 return ..() /obj/item/weapon/reagent_containers/food/drinks/self_feed_message(var/mob/user) - user << "You swallow a gulp from \the [src]." + to_chat(user, "You swallow a gulp from \the [src].") /obj/item/weapon/reagent_containers/food/drinks/feed_sound(var/mob/user) playsound(user.loc, 'sound/items/drink.ogg', rand(10, 50), 1) @@ -74,15 +74,15 @@ 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 <= volume * 0.25) - user << "\The [src] is almost empty!" + to_chat(user, "\The [src] is almost empty!") else if (reagents.total_volume <= volume * 0.66) - user << "\The [src] is half full!" + to_chat(user, "\The [src] is half full!") else if (reagents.total_volume <= 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!") //////////////////////////////////////////////////////////////////////////////// @@ -226,7 +226,7 @@ var/obj/structure/reagent_dispensers/water_cooler/W = over_object if(W.cupholder && W.cups < 10) W.cups++ - usr << "You put the [src] in the cup dispenser." + to_chat(usr, "You put the [src] in the cup dispenser.") qdel(src) W.update_icon() else diff --git a/code/modules/food/food/drinks/bottle.dm b/code/modules/food/food/drinks/bottle.dm index 0a56f946d5..4836fe33b2 100644 --- a/code/modules/food/food/drinks/bottle.dm +++ b/code/modules/food/food/drinks/bottle.dm @@ -87,12 +87,12 @@ if(!choice) return if(!(choice.density && usr.Adjacent(choice))) - usr << "You must stay close to your target! You moved away from \the [choice]" + to_chat(usr, "You must stay close to your target! You moved away from \the [choice]") return usr.put_in_hands(src.smash(usr.loc, choice)) usr.visible_message("\The [usr] smashed \the [src] on \the [choice]!") - usr << "You smash \the [src] on \the [choice]!" + to_chat(usr, "You smash \the [src] on \the [choice]!") /obj/item/weapon/reagent_containers/food/drinks/bottle/attackby(obj/item/W, mob/user) if(!rag && istype(W, /obj/item/weapon/reagent_containers/glass/rag)) @@ -112,7 +112,7 @@ /obj/item/weapon/reagent_containers/food/drinks/bottle/proc/insert_rag(obj/item/weapon/reagent_containers/glass/rag/R, mob/user) if(!isGlass || rag) return if(user.unEquip(R)) - user << "You stuff [R] into [src]." + to_chat(user, "You stuff [R] into [src].") rag = R rag.forceMove(src) flags &= ~OPENCONTAINER diff --git a/code/modules/food/food/sandwich.dm b/code/modules/food/food/sandwich.dm index f4d9ac5fd0..13663af81a 100644 --- a/code/modules/food/food/sandwich.dm +++ b/code/modules/food/food/sandwich.dm @@ -23,16 +23,16 @@ sandwich_limit += 4 if(istype(W,/obj/item/weapon/material/shard)) - user << "You hide [W] in \the [src]." + to_chat(user, "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)) if(src.contents.len > sandwich_limit) - user << "If you put anything else on \the [src] it's going to collapse." + to_chat(user, "If you put anything else on \the [src] it's going to collapse.") return - user << "You layer [W] over \the [src]." + to_chat(user, "You layer [W] over \the [src].") var/obj/item/weapon/reagent_containers/F = W F.reagents.trans_to_obj(src, F.reagents.total_volume) user.drop_item() @@ -81,7 +81,7 @@ /obj/item/weapon/reagent_containers/food/snacks/csandwich/examine(mob/user) ..(user) var/obj/item/O = pick(contents) - user << "You think you can see [O.name] in there." + to_chat(user, "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) @@ -96,6 +96,6 @@ H = M if(H && shard && M == user) //This needs a check for feeding the food to other people, but that could be abusable. - H << "You lacerate your mouth on a [shard.name] in the sandwich!" + to_chat(H, "You lacerate your mouth on a [shard.name] in the sandwich!") H.adjustBruteLoss(5) //TODO: Target head if human. //This TODO has been here for 4 years. ..() diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 280ea05435..5c8eac5e07 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -581,7 +581,7 @@ return ..() if(!(proximity && O.is_open_container())) return - user << "You crack \the [src] into \the [O]." + to_chat(user, "You crack \the [src] into \the [O].") reagents.trans_to(O, reagents.total_volume) user.drop_from_inventory(src) qdel(src) @@ -599,10 +599,10 @@ var/clr = C.colourName if(!(clr in list("blue","green","mime","orange","purple","rainbow","red","yellow"))) - usr << "The egg refuses to take on this color!" + to_chat(usr, "The egg refuses to take on this color!") return - usr << "You color \the [src] [clr]" + to_chat(usr, "You color \the [src] [clr]") icon_state = "egg-[clr]" else ..() @@ -897,12 +897,12 @@ /obj/item/weapon/reagent_containers/food/snacks/donkpocket/sinpocket/attack_self(mob/user) if(has_been_heated) - user << "The heating chemicals have already been spent." + to_chat(user, "The heating chemicals have already been spent.") return has_been_heated = 1 user.visible_message("[user] crushes \the [src] package.", "You crush \the [src] package and feel a comfortable heat build up.") spawn(200) - user << "You think \the [src] is ready to eat about now." + to_chat(user, "You think \the [src] is ready to eat about now.") heat() /obj/item/weapon/reagent_containers/food/snacks/brainburger @@ -1343,7 +1343,7 @@ /obj/item/weapon/reagent_containers/food/snacks/popcorn/On_Consume() if(prob(unpopped)) //lol ...what's the point? - usr << "You bite down on an un-popped kernel!" + to_chat(usr, "You bite down on an un-popped kernel!") unpopped = max(0, unpopped-1) ..() @@ -3476,7 +3476,7 @@ /obj/item/weapon/reagent_containers/food/snacks/dough/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W,/obj/item/weapon/material/kitchen/rollingpin)) new /obj/item/weapon/reagent_containers/food/snacks/sliceable/flatdough(src) - user << "You flatten the dough." + to_chat(user, "You flatten the dough.") qdel(src) // slicable into 3xdoughslices @@ -3526,21 +3526,21 @@ // Bun + meatball = burger if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/meatball)) new /obj/item/weapon/reagent_containers/food/snacks/monkeyburger(src) - user << "You make a burger." + to_chat(user, "You make a burger.") qdel(W) qdel(src) // Bun + cutlet = hamburger else if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/cutlet)) new /obj/item/weapon/reagent_containers/food/snacks/monkeyburger(src) - user << "You make a burger." + to_chat(user, "You make a burger.") qdel(W) qdel(src) // Bun + sausage = hotdog else if(istype(W,/obj/item/weapon/reagent_containers/food/snacks/sausage)) new /obj/item/weapon/reagent_containers/food/snacks/hotdog(src) - user << "You make a hotdog." + to_chat(user, "You make a hotdog.") qdel(W) qdel(src) @@ -3548,7 +3548,7 @@ /obj/item/weapon/reagent_containers/food/snacks/monkeyburger/attackby(obj/item/weapon/reagent_containers/food/snacks/cheesewedge/W as obj, mob/user as mob) if(istype(W))// && !istype(src,/obj/item/weapon/reagent_containers/food/snacks/cheesewedge)) new /obj/item/weapon/reagent_containers/food/snacks/cheeseburger(src) - user << "You make a cheeseburger." + to_chat(user, "You make a cheeseburger.") qdel(W) qdel(src) return @@ -3559,7 +3559,7 @@ /obj/item/weapon/reagent_containers/food/snacks/human/burger/attackby(obj/item/weapon/reagent_containers/food/snacks/cheesewedge/W as obj, mob/user as mob) if(istype(W)) new /obj/item/weapon/reagent_containers/food/snacks/cheeseburger(src) - user << "You make a cheeseburger." + to_chat(user, "You make a cheeseburger.") qdel(W) qdel(src) return diff --git a/code/modules/food/food/snacks/meat.dm b/code/modules/food/food/snacks/meat.dm index 9d472b8c34..c2c5753eda 100644 --- a/code/modules/food/food/snacks/meat.dm +++ b/code/modules/food/food/snacks/meat.dm @@ -16,7 +16,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 into thin strips." + to_chat(user, "You cut the meat into thin strips.") qdel(src) else ..() diff --git a/code/modules/food/food/thecake.dm b/code/modules/food/food/thecake.dm index 5de17b36c6..3a9d9b8b7e 100644 --- a/code/modules/food/food/thecake.dm +++ b/code/modules/food/food/thecake.dm @@ -246,10 +246,10 @@ if(edible == 1) HasSliceMissing() if(slices <= 0) - user << "The cake hums away quietly as the chaos powered goodness slowly recovers the large amount of lost mass, best to give it a moment before cutting another slice." + to_chat(user, "The cake hums away quietly as the chaos powered goodness slowly recovers the large amount of lost mass, best to give it a moment before cutting another slice.") return else - user << "You cut a slice of the cake. The slice looks like the cake was just baked, and you can see before your eyes as the spot where you cut the slice slowly regenerates!" + to_chat(user, "You cut a slice of the cake. The slice looks like the cake was just baked, and you can see before your eyes as the spot where you cut the slice slowly regenerates!") slices = slices - 1 icon_state = "chaoscake-[slices]" new /obj/item/weapon/reagent_containers/food/snacks/chaoscakeslice(src.loc) @@ -260,7 +260,7 @@ if(istype(W,/obj/item/weapon/chaoscake_layer)) var/obj/item/weapon/chaoscake_layer/C = W if(C.layer_stage == 8) - user << "Finally! The coin on the top, the almighty chaos cake is complete!" + to_chat(user, "Finally! The coin on the top, the almighty chaos cake is complete!") qdel(W) stage++ desc = desclist2[stage] @@ -268,13 +268,13 @@ edible = 1 name = "The Chaos Cake!" else if(stage == maxstages) - user << "The cake is already done!" + to_chat(user, "The cake is already done!") else if(stage == C.layer_stage) - user << "You add another layer to the cake, nice." + to_chat(user, "You add another layer to the cake, nice.") qdel(W) stage++ desc = desclist2[stage] icon_state = "chaoscake_stage-[stage]" else - user << "Hmm, doesnt seem like this layer is supposed to be added there?" + to_chat(user, "Hmm, doesnt seem like this layer is supposed to be added there?") diff --git a/code/modules/food/food/z_custom_food_vr.dm b/code/modules/food/food/z_custom_food_vr.dm index 8b1cb5ee04..9788a1e2b4 100644 --- a/code/modules/food/food/z_custom_food_vr.dm +++ b/code/modules/food/food/z_custom_food_vr.dm @@ -44,7 +44,7 @@ var/global/ingredientLimit = 20 to_chat(user, "As uniquely original as that idea is, you can't figure out how to perform it.") return /*if(!user.drop_item()) - user << "\The [I] is stuck to your hands!" + to_chat(user, "\The [I] is stuck to your hands!") return*/ user.drop_item() I.forceMove(src) diff --git a/code/modules/food/kitchen/cooking_machines/_cooker.dm b/code/modules/food/kitchen/cooking_machines/_cooker.dm index a5215a747e..0f39b1f0e6 100644 --- a/code/modules/food/kitchen/cooking_machines/_cooker.dm +++ b/code/modules/food/kitchen/cooking_machines/_cooker.dm @@ -42,16 +42,16 @@ /obj/machinery/cooker/examine() ..() if(cooking_obj && Adjacent(usr)) - usr << "You can see \a [cooking_obj] inside." + to_chat(usr, "You can see \a [cooking_obj] inside.") /obj/machinery/cooker/attackby(var/obj/item/I, var/mob/user) if(!cook_type || (stat & (NOPOWER|BROKEN))) - user << "\The [src] is not working." + to_chat(user, "\The [src] is not working.") return if(cooking) - user << "\The [src] is running!" + to_chat(user, "\The [src] is running!") return if(default_unfasten_wrench(user, I, 20)) @@ -62,11 +62,11 @@ if(istype(G)) if(!can_cook_mobs) - user << "That's not going to fit." + to_chat(user, "That's not going to fit.") return if(!isliving(G.affecting)) - user << "You can't cook that." + to_chat(user, "You can't cook that.") return cook_mob(G.affecting, user) @@ -75,33 +75,33 @@ // We're trying to cook something else. Check if it's valid. var/obj/item/weapon/reagent_containers/food/snacks/check = I if(istype(check) && islist(check.cooked) && (cook_type in check.cooked)) - user << "\The [check] has already been [cook_type]." + to_chat(user, "\The [check] has already been [cook_type].") return 0 else if(istype(check, /obj/item/weapon/reagent_containers/glass)) - user << "That would probably break [src]." + to_chat(user, "That would probably break [src].") return 0 else if(istype(check, /obj/item/weapon/disk/nuclear)) - user << "Central Command would kill you if you [cook_type] that." + to_chat(user, "Central Command would kill you if you [cook_type] that.") return 0 else if(!istype(check) && !istype(check, /obj/item/weapon/holder) && !istype(check, /obj/item/organ)) //Gripper check has to go here, else it still just cuts it off. ~Mechoid // Is it a borg using a gripper? if(istype(check, /obj/item/weapon/gripper)) // Grippers. ~Mechoid. var/obj/item/weapon/gripper/B = check //B, for Borg. if(!B.wrapped) - user << "\The [B] is not holding anything." + to_chat(user, "\The [B] is not holding anything.") return 0 else var/B_held = B.wrapped - user << "You use \the [B] to put \the [B_held] into \the [src]." + to_chat(user, "You use \the [B] to put \the [B_held] into \the [src].") return 0 else - user << "That's not edible." + to_chat(user, "That's not edible.") return 0 if(istype(I, /obj/item/organ)) var/obj/item/organ/O = I if(O.robotic) - user << "That would probably break [src]." + to_chat(user, "That would probably break [src].") return // Gotta hurt. @@ -203,7 +203,7 @@ /obj/machinery/cooker/attack_hand(var/mob/user) if(cooking_obj && user.Adjacent(src)) //Fixes borgs being able to teleport food in these machines to themselves. - user << "You grab \the [cooking_obj] from \the [src]." + to_chat(user, "You grab \the [cooking_obj] from \the [src].") user.put_in_hands(cooking_obj) set_cooking(FALSE) cooking_obj = null @@ -213,7 +213,7 @@ if(output_options.len) if(cooking) - user << "\The [src] is in use!" + to_chat(user, "\The [src] is in use!") return var/choice = input("What specific food do you wish to make with \the [src]?") as null|anything in output_options+"Default" @@ -221,10 +221,10 @@ return if(choice == "Default") selected_option = null - user << "You decide not to make anything specific with \the [src]." + to_chat(user, "You decide not to make anything specific with \the [src].") else selected_option = choice - user << "You prepare \the [src] to make \a [selected_option]." + to_chat(user, "You prepare \the [src] to make \a [selected_option].") ..() diff --git a/code/modules/food/kitchen/cooking_machines/fryer.dm b/code/modules/food/kitchen/cooking_machines/fryer.dm index e0dc15cc45..e3753f0f48 100644 --- a/code/modules/food/kitchen/cooking_machines/fryer.dm +++ b/code/modules/food/kitchen/cooking_machines/fryer.dm @@ -42,7 +42,7 @@ return if(!victim || !victim.Adjacent(user)) - user << "Your victim slipped free!" + to_chat(user, "Your victim slipped free!") cooking = 0 icon_state = off_icon fry_loop.stop() @@ -71,10 +71,10 @@ victim.apply_damage(rand(30,40), BURN, user.zone_sel.selecting) if(!nopain) - victim << "Agony consumes you as searing hot oil scorches your [E ? E.name : "flesh"] horribly!" + to_chat(victim, "Agony consumes you as searing hot oil scorches your [E ? E.name : "flesh"] horribly!") victim.emote("scream") else - victim << "Searing hot oil scorches your [E ? E.name : "flesh"]!" + to_chat(victim, "Searing hot oil scorches your [E ? E.name : "flesh"]!") if(victim.client) add_attack_logs(user,victim,"[cook_type] in [src]") diff --git a/code/modules/food/kitchen/gibber.dm b/code/modules/food/kitchen/gibber.dm index db1c13ebde..062fa42fc0 100644 --- a/code/modules/food/kitchen/gibber.dm +++ b/code/modules/food/kitchen/gibber.dm @@ -75,18 +75,18 @@ if(stat & (NOPOWER|BROKEN)) 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 else src.startgibbing(user) /obj/machinery/gibber/examine() ..() - usr << "The safety guard is [emagged ? "disabled" : "enabled"]." + to_chat(usr, "The safety guard is [emagged ? "disabled" : "enabled"].") /obj/machinery/gibber/emag_act(var/remaining_charges, var/mob/user) emagged = !emagged - user << "You [emagged ? "disable" : "enable"] the gibber safety guard." + to_chat(user, "You [emagged ? "disable" : "enable"] the gibber safety guard.") return 1 /obj/machinery/gibber/attackby(var/obj/item/W, var/mob/user) @@ -99,7 +99,7 @@ return ..() 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) @@ -113,24 +113,24 @@ /obj/machinery/gibber/proc/move_into_gibber(var/mob/user,var/mob/living/victim) if(src.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(!(istype(victim, /mob/living/carbon)) && !(istype(victim, /mob/living/simple_mob)) ) - user << "This is not suitable for the gibber!" + to_chat(user, "This is not suitable for the gibber!") return if(istype(victim,/mob/living/carbon/human) && !emagged) - user << "The gibber safety guard is engaged!" + to_chat(user, "The gibber safety guard is engaged!") 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/modules/food/kitchen/icecream.dm b/code/modules/food/kitchen/icecream.dm index 821e118c01..50709b872b 100644 --- a/code/modules/food/kitchen/icecream.dm +++ b/code/modules/food/kitchen/icecream.dm @@ -100,9 +100,9 @@ if(I.reagents.total_volume < 10) I.reagents.add_reagent("sugar", 10 - I.reagents.total_volume) else - user << "There is not enough icecream left!" + to_chat(user, "There is not enough icecream left!") else - user << "[O] already has icecream in it." + to_chat(user, "[O] already has icecream in it.") return 1 else if(O.is_open_container()) return @@ -125,7 +125,7 @@ else src.visible_message("[user] whips up some [flavour] icecream.") else - user << "You don't have the ingredients to make this." + to_chat(user, "You don't have the ingredients to make this.") /obj/machinery/icecream_vat/Topic(href, href_list) @@ -148,7 +148,7 @@ 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!") if(href_list["make"]) var/amount = (text2num(href_list["amount"])) diff --git a/code/modules/food/kitchen/microwave.dm b/code/modules/food/kitchen/microwave.dm index 9898524add..2980aac68f 100644 --- a/code/modules/food/kitchen/microwave.dm +++ b/code/modules/food/kitchen/microwave.dm @@ -351,7 +351,7 @@ if (src.reagents.total_volume) src.dirty++ src.reagents.clear_reagents() - usr << "You dispose of the microwave contents." + to_chat(usr, "You dispose of the microwave contents.") src.updateUsrDialog() /obj/machinery/microwave/proc/muck_start() diff --git a/code/modules/gamemaster/actions/comms_blackout.dm b/code/modules/gamemaster/actions/comms_blackout.dm index 71b172b153..a85ca8d73e 100644 --- a/code/modules/gamemaster/actions/comms_blackout.dm +++ b/code/modules/gamemaster/actions/comms_blackout.dm @@ -11,9 +11,9 @@ command_announcement.Announce("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT", new_sound = 'sound/misc/interference.ogg') // 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, "
") /datum/gm_action/comms_blackout/start() ..() diff --git a/code/modules/gamemaster/actions/ion_storm.dm b/code/modules/gamemaster/actions/ion_storm.dm index 9285b2ad99..245f414f13 100644 --- a/code/modules/gamemaster/actions/ion_storm.dm +++ b/code/modules/gamemaster/actions/ion_storm.dm @@ -16,8 +16,8 @@ for (var/mob/living/silicon/ai/target in silicon_mob_list) var/law = target.generate_ion_law() - target << "You have detected a change in your laws information:" - target << law + to_chat(target, "You have detected a change in your laws information:") + to_chat(target,law) target.add_ion_law(law) target.show_laws() diff --git a/code/modules/gamemaster/actions/money_spam.dm b/code/modules/gamemaster/actions/money_spam.dm index e11baec090..7d26845329 100644 --- a/code/modules/gamemaster/actions/money_spam.dm +++ b/code/modules/gamemaster/actions/money_spam.dm @@ -125,7 +125,7 @@ L = get(P, /mob/living/silicon) if(L) - L << "\icon[P] Message from [sender] (Unknown / spam?), \"[message]\" (Unable to Reply)" + to_chat(L, "\icon[P] Message from [sender] (Unknown / spam?), \"[message]\" (Unable to Reply)") /datum/gm_action/pda_spam/get_weight() return 25 * metric.count_people_in_department(ROLE_EVERYONE) diff --git a/code/modules/gamemaster/actions/prison_break.dm b/code/modules/gamemaster/actions/prison_break.dm index c034c7e223..f3bc28bb13 100644 --- a/code/modules/gamemaster/actions/prison_break.dm +++ b/code/modules/gamemaster/actions/prison_break.dm @@ -70,10 +70,10 @@ for(var/obj/machinery/message_server/MS in machines) 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 - world.log << "ERROR: Could not initate grey-tide. Unable to find suitable containment area." + to_world_log("ERROR: Could not initate grey-tide. Unable to find suitable containment area.") if(areas && areas.len > 0) spawn() diff --git a/code/modules/ghosttrap/trap.dm b/code/modules/ghosttrap/trap.dm index a3de9fe145..d31b0bffb5 100644 --- a/code/modules/ghosttrap/trap.dm +++ b/code/modules/ghosttrap/trap.dm @@ -26,12 +26,12 @@ proc/populate_ghost_traps() if(!istype(candidate) || !candidate.client || !candidate.ckey) return 0 if(!candidate.MayRespawn()) - candidate << "You have made use of the AntagHUD and hence cannot enter play as \a [object]." + to_chat(candidate, "You have made use of the AntagHUD and hence cannot enter play as \a [object].") return 0 if(islist(ban_checks)) for(var/bantype in ban_checks) if(jobban_isbanned(candidate, "[bantype]")) - candidate << "You are banned from one or more required roles and hence cannot enter play as \a [object]." + to_chat(candidate, "You are banned from one or more required roles and hence cannot enter play as \a [object].") return 0 return 1 @@ -49,7 +49,7 @@ proc/populate_ghost_traps() if(pref_check && !(O.client.prefs.be_special & pref_check)) continue if(O.client) - O << "[request_string]Click here if you wish to play as this option." + to_chat(O, "[request_string]Click here if you wish to play as this option.") // Handles a response to request_player(). /datum/ghosttrap/Topic(href, href_list) @@ -78,10 +78,10 @@ proc/populate_ghost_traps() // Fluff! /datum/ghosttrap/proc/welcome_candidate(var/mob/target) - target << "You are a positronic brain, brought into existence on [station_name()]." - target << "As a synthetic intelligence, you answer to all crewmembers, as well as the AI." - target << "Remember, the purpose of your existence is to serve the crew and the station. Above all else, do no harm." - target << "Use say #b to speak to other artificial intelligences." + to_chat(target, "You are a positronic brain, brought into existence on [station_name()].") + to_chat(target, "As a synthetic intelligence, you answer to all crewmembers, as well as the AI.") + to_chat(target, "Remember, the purpose of your existence is to serve the crew and the station. Above all else, do no harm.") + to_chat(target, "Use say #b to speak to other artificial intelligences.") var/turf/T = get_turf(target) T.visible_message("\The [src] chimes quietly.") var/obj/item/device/mmi/digital/posibrain/P = target.loc @@ -107,8 +107,8 @@ proc/populate_ghost_traps() ghost_trap_role = "Plant" /datum/ghosttrap/plant/welcome_candidate(var/mob/target) - target << "You awaken slowly, stirring into sluggish motion as the air caresses you." + to_chat(target, "You awaken slowly, stirring into sluggish motion as the air caresses you.") // This is a hack, replace with some kind of species blurb proc. if(istype(target,/mob/living/carbon/alien/diona)) - target << "You are \a [target], one of a race of drifting interstellar plantlike creatures that sometimes share their seeds with human traders." - target << "Too much darkness will send you into shock and starve you, but light will help you heal." \ No newline at end of file + to_chat(target, "You are \a [target], one of a race of drifting interstellar plantlike creatures that sometimes share their seeds with human traders.") + to_chat(target, "Too much darkness will send you into shock and starve you, but light will help you heal.") \ No newline at end of file diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 4cce81a2a6..2a4afe462e 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -161,8 +161,8 @@ emagged = 1 safety_disabled = 1 update_projections() - user << "You vastly increase projector power and override the safety and security protocols." - user << "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call [using_map.company_name] maintenance and do not use the simulator." + to_chat(user, "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 [using_map.company_name] maintenance and do not use the simulator.") log_game("[key_name(usr)] emagged the Holodeck Control Computer") return 1 return @@ -187,7 +187,7 @@ current_program = powerdown_program linkedholodeck = locate(projection_area) if(!linkedholodeck) - world << "Holodeck computer at [x],[y],[z] failed to locate projection area." + to_world("Holodeck computer at [x],[y],[z] failed to locate projection area.") //This could all be done better, but it works for now. /obj/machinery/computer/HolodeckControl/Destroy() diff --git a/code/modules/holodeck/HolodeckObjects.dm b/code/modules/holodeck/HolodeckObjects.dm index 35012a262d..4744693637 100644 --- a/code/modules/holodeck/HolodeckObjects.dm +++ b/code/modules/holodeck/HolodeckObjects.dm @@ -255,7 +255,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u //VOREStation Add /obj/structure/bed/holobed/attackby(obj/item/weapon/W as obj, mob/user as mob) if(W.is_wrench()) - user << ("It's a holochair, you can't dismantle it!") + to_chat(user, "It's a holochair, you can't dismantle it!") return //VOREStation Add End /obj/item/weapon/holo diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 428f50e696..0a25a1fae1 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -33,7 +33,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_world("Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -76,7 +76,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_world("Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -175,7 +175,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) @@ -195,7 +195,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/cell/potato/pocell = new /obj/item/weapon/cell/potato(get_turf(user)) if(src.loc == user && istype(user,/mob/living/carbon/human)) user.put_in_hands(pocell) @@ -224,26 +224,26 @@ 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(!isnull(seed.chems["potato"])) - user << "You slice \the [src] into sticks." + to_chat(user, "You slice \the [src] into sticks.") new /obj/item/weapon/reagent_containers/food/snacks/rawsticks(get_turf(src)) qdel(src) return else if(!isnull(seed.chems["carrotjuice"])) - user << "You slice \the [src] into sticks." + to_chat(user, "You slice \the [src] into sticks.") new /obj/item/weapon/reagent_containers/food/snacks/carrotfries(get_turf(src)) qdel(src) return else if(!isnull(seed.chems["soymilk"])) - user << "You roughly chop up \the [src]." + to_chat(user, "You roughly chop up \the [src].") new /obj/item/weapon/reagent_containers/food/snacks/soydope(get_turf(src)) qdel(src) return else if(seed.get_trait(TRAIT_FLESH_COLOUR)) - user << "You slice up \the [src]." + to_chat(user, "You slice up \the [src].") var/slices = rand(3,5) var/reagents_to_transfer = round(reagents.total_volume/slices) for(var/i=i;i<=slices;i++) @@ -266,7 +266,7 @@ return if(prob(35)) 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) @@ -298,12 +298,12 @@ 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(seed.get_trait(TRAIT_SPREAD) > 0) - 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) qdel(src) return @@ -314,13 +314,13 @@ if("shand") var/obj/item/stack/medical/bruise_pack/tajaran/poultice = new /obj/item/stack/medical/bruise_pack/tajaran(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("mtear") var/obj/item/stack/medical/ointment/tajaran/poultice = new /obj/item/stack/medical/ointment/tajaran(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 */ diff --git a/code/modules/hydroponics/grown_inedible.dm b/code/modules/hydroponics/grown_inedible.dm index 2b02116478..2d3dfbc344 100644 --- a/code/modules/hydroponics/grown_inedible.dm +++ b/code/modules/hydroponics/grown_inedible.dm @@ -46,7 +46,7 @@ /obj/item/weapon/corncob/attackby(obj/item/weapon/W as obj, mob/user as mob) ..() if(istype(W, /obj/item/weapon/surgical/circular_saw) || istype(W, /obj/item/weapon/material/knife/machete/hatchet) || istype(W, /obj/item/weapon/material/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/smokable/pipe/cobpipe (user.loc) qdel(src) return diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index c702abd9f9..9085caad59 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -780,9 +780,11 @@ playsound(M, harvest_sound, 50, 1, -1) 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_packets.dm b/code/modules/hydroponics/seed_packets.dm index 4424203361..74440c518c 100644 --- a/code/modules/hydroponics/seed_packets.dm +++ b/code/modules/hydroponics/seed_packets.dm @@ -62,7 +62,7 @@ GLOBAL_LIST_BOILERPLATE(all_seed_packs, /obj/item/seeds) /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/spreading/spreading.dm b/code/modules/hydroponics/spreading/spreading.dm index b2e3e28287..53e4e87627 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. TODO initialize perhaps? if(!plant_controller) - world << "Plant controller does not exist and [src] requires it. Aborting." + to_world("Plant controller does not exist and [src] requires it. Aborting.") qdel(src) return @@ -242,16 +242,16 @@ if(W.is_wirecutter() || istype(W, /obj/item/weapon/surgical/scalpel)) if(sampled) - user << "\The [src] has already been sampled recently." + to_chat(user, "\The [src] has already been sampled recently.") return if(!is_mature()) - user << "\The [src] is not mature enough to yield a sample yet." + to_chat(user, "\The [src] is not mature enough to yield a sample yet.") return if(!seed) - user << "There is nothing to take a sample from." + to_chat(user, "There is nothing to take a sample from.") return if(sampled) - user << "You cannot take another sample from \the [src]." + to_chat(user, "You cannot take another sample from \the [src].") return if(prob(70)) sampled = 1 diff --git a/code/modules/hydroponics/spreading/spreading_response.dm b/code/modules/hydroponics/spreading/spreading_response.dm index dab4af608f..bab7131466 100644 --- a/code/modules/hydroponics/spreading/spreading_response.dm +++ b/code/modules/hydroponics/spreading/spreading_response.dm @@ -104,6 +104,6 @@ victim.forceMove(src.loc) buckle_mob(victim) victim.set_dir(pick(cardinal)) - victim << "Tendrils [pick("wind", "tangle", "tighten")] around you!" + to_chat(victim, "Tendrils [pick("wind", "tangle", "tighten")] around you!") victim.Weaken(0.5) seed.do_thorns(victim,src) diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 2e5d64c244..d5bab16482 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -307,7 +307,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) @@ -334,7 +335,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 @@ -344,7 +345,7 @@ yield_mod = 0 mutation_mod = 0 - user << "You remove the dead plant." + to_chat(user, "You remove the dead plant.") lastproduce = 0 check_health() return @@ -400,11 +401,11 @@ return if(ishuman(usr) || istype(usr, /mob/living/silicon/robot)) 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() @@ -418,7 +419,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.") return /obj/machinery/portable_atmospherics/hydroponics/proc/check_level_sanity() @@ -466,15 +467,15 @@ if(O.is_wirecutter() || istype(O, /obj/item/weapon/surgical/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. @@ -499,14 +500,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)) @@ -517,15 +518,15 @@ user.remove_from_mob(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].") plant_seeds(S) 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/material/minihoe)) // The minihoe @@ -534,7 +535,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)) @@ -553,7 +554,7 @@ toxins += spray.toxicity pestlevel -= spray.pest_kill_str weedlevel -= spray.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) check_health() @@ -566,7 +567,7 @@ playsound(loc, O.usesound, 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/device/multitool)) if(!anchored) @@ -611,25 +612,25 @@ ..() if(seed) - usr << "[seed.display_name] are growing here." + to_chat(usr, "[seed.display_name] are growing here.") else - usr << "[src] is empty." + to_chat(usr, "[src] is empty.") if(!Adjacent(usr)) return - usr << "Water: [round(waterlevel,0.1)]/100" - usr << "Nutrient: [round(nutrilevel,0.1)]/10" + to_chat(usr, "Water: [round(waterlevel,0.1)]/100") + to_chat(usr, "Nutrient: [round(nutrilevel,0.1)]/10") if(seed) if(weedlevel >= 5) - usr << "\The [src] is infested with weeds!" + to_chat(usr, "\The [src] is infested with weeds!") if(pestlevel >= 5) - usr << "\The [src] is infested with tiny worms!" + to_chat(usr, "\The [src] is infested with tiny worms!") if(dead) - usr << "The plant is dead." + to_chat(usr, "The plant is dead.") else if(health <= (seed.get_trait(TRAIT_ENDURANCE)/ 2)) - usr << "The plant looks unhealthy." + to_chat(usr, "The plant looks unhealthy.") if(frozen == 1) to_chat(usr, "It is cryogenically frozen.") if(mechanical) @@ -654,7 +655,7 @@ var/light_available = T.get_lumcount() * 5 light_string = "a light level of [light_available] lumens" - usr << "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K at [environment.return_pressure()] kPa in the [environment_type] environment" + to_chat(usr, "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K at [environment.return_pressure()] kPa in the [environment_type] environment") /obj/machinery/portable_atmospherics/hydroponics/verb/close_lid_verb() set name = "Toggle Tray Lid" @@ -669,5 +670,5 @@ /obj/machinery/portable_atmospherics/hydroponics/proc/close_lid(var/mob/living/user) 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() diff --git a/code/modules/hydroponics/trays/tray_tools.dm b/code/modules/hydroponics/trays/tray_tools.dm index 12582f01ed..d28db69bae 100644 --- a/code/modules/hydroponics/trays/tray_tools.dm +++ b/code/modules/hydroponics/trays/tray_tools.dm @@ -36,7 +36,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 var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(get_turf(src)) P.name = "paper - [form_title]" @@ -84,7 +84,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])" diff --git a/code/modules/hydroponics/trays/tray_update_icons.dm b/code/modules/hydroponics/trays/tray_update_icons.dm index cf790269a2..1a816abb3f 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_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/library/lib_machines.dm b/code/modules/library/lib_machines.dm index b5b6d8efb6..508c044673 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -186,7 +186,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f if(src.arcanecheckout) new /obj/item/weapon/book/tome(src.loc) var/datum/gender/T = gender_datums[user.get_visible_gender()] - 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("\The [user] stares at the blank screen for a few moments, [T.his] expression frozen in fear. When [T.he] finally awakens from it, [T.he] looks a lot older.", 2) src.arcanecheckout = 0 if(1) @@ -308,7 +308,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 @@ -417,7 +417,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f var/sqlcategory = sanitizeSQL(upload_category) var/DBQuery/query = dbcon_old.NewQuery("INSERT INTO library (author, title, content, category) VALUES ('[sqlauthor]', '[sqltitle]', '[sqlcontent]', '[sqlcategory]')") if(!query.Execute()) - usr << query.ErrorMsg() + to_chat(usr,query.ErrorMsg()) else log_game("[usr.name]/[usr.key] has uploaded the book titled [scanner.cache.name], [length(scanner.cache.dat)] signs") alert("Upload Complete.") diff --git a/code/modules/maps/fromdmp.dm b/code/modules/maps/fromdmp.dm index 73958b43a8..af75aa3d99 100644 --- a/code/modules/maps/fromdmp.dm +++ b/code/modules/maps/fromdmp.dm @@ -50,7 +50,7 @@ proc/dmp2swapmap(filename) while(txt) if(text2ascii(txt)==34) if(mode!=34) - world << "Corrupt map file [filename]: Unexpected code found after z-level [z]" + to_world("Corrupt map file [filename]: Unexpected code found after z-level [z]") return // standard line: // "a" = (/obj, /obj, /turf, /area) @@ -59,20 +59,20 @@ proc/dmp2swapmap(filename) codelen=length(code) i=findtext(txt,"(",i) if(!i) - world << "Corrupt map file [filename]: No type list follows \"[code]\"" + to_world("Corrupt map file [filename]: No type list follows \"[code]\"") return k=findtext(txt,"\n",++i) j=(k || length(txt+1)) while(--j>=i && text2ascii(txt,j)!=41) if(j0,--y) // map is top-down ++i - F << "\t\t[y]" + to_chat(F, "\t\t[y]") for(var/x in 1 to _x) - F << "\t\t\t[x]" + to_chat(F, "\t\t\t[x]") j=i+codelen - F << codes[copytext(mtxt,i,j)] + to_chat(F, codes[copytext(mtxt,i,j)]) i=j txt=copytext(txt,k+1) /* for(z in 1 to Z) - F << "\t[z]" + to_chat(F, "\t[z]") for(var/y in 1 to Y) - F << "\t\t[y]" + to_chat(F, "\t\t[y]") for(var/x in 1 to X) - F << "\t\t\t[x]" - F << codes[pick(codes)] */ + to_chat(F, "\t\t\t[x]") + to_chat(F, codes[pick(codes)]) */ proc/d2sm_ParseCommaList(txt) var/list/L=new diff --git a/code/modules/maps/swapmaps.dm b/code/modules/maps/swapmaps.dm index 6c4909f229..a41cfbaf07 100644 --- a/code/modules/maps/swapmaps.dm +++ b/code/modules/maps/swapmaps.dm @@ -585,7 +585,7 @@ proc/SwapMaps_CreateFromTemplate(template_id) else if(swapmaps_mode!=SWAPMAPS_TEXT && fexists("map_[template_id].txt")) text=1 else - world.log << "SwapMaps error in SwapMaps_CreateFromTemplate(): map_[template_id] file not found." + to_world_log("SwapMaps error in SwapMaps_CreateFromTemplate(): map_[template_id] file not found.") return if(text) S=new @@ -612,7 +612,7 @@ proc/SwapMaps_LoadChunk(chunk_id,turf/locorner) else if(swapmaps_mode!=SWAPMAPS_TEXT && fexists("map_[chunk_id].txt")) text=1 else - world.log << "SwapMaps error in SwapMaps_LoadChunk(): map_[chunk_id] file not found." + to_world_log("SwapMaps error in SwapMaps_LoadChunk(): map_[chunk_id] file not found.") return if(text) S=new @@ -630,9 +630,9 @@ proc/SwapMaps_LoadChunk(chunk_id,turf/locorner) proc/SwapMaps_SaveChunk(chunk_id,turf/corner1,turf/corner2) if(!corner1 || !corner2) - world.log << "SwapMaps error in SwapMaps_SaveChunk():" - if(!corner1) world.log << " corner1 turf is null" - if(!corner2) world.log << " corner2 turf is null" + to_world_log("SwapMaps error in SwapMaps_SaveChunk():") + if(!corner1) to_world_log(" corner1 turf is null") + if(!corner2) to_world_log(" corner2 turf is null") return var/swapmap/M=new M.id=chunk_id @@ -659,7 +659,7 @@ proc/SwapMaps_GetSize(id) else if(swapmaps_mode!=SWAPMAPS_TEXT && fexists("map_[id].txt")) text=1 else - world.log << "SwapMaps error in SwapMaps_GetSize(): map_[id] file not found." + to_world_log("SwapMaps error in SwapMaps_GetSize(): map_[id] file not found.") return if(text) S=new diff --git a/code/modules/maps/tg/map_template.dm b/code/modules/maps/tg/map_template.dm index 132d76445c..1ae9b7f7b0 100644 --- a/code/modules/maps/tg/map_template.dm +++ b/code/modules/maps/tg/map_template.dm @@ -235,7 +235,7 @@ var/area/new_area = get_area(check) if(!(istype(new_area, whitelist))) valid = FALSE // Probably overlapping something important. - // world << "Invalid due to overlapping with area [new_area.type] at ([check.x], [check.y], [check.z]), when attempting to place at ([T.x], [T.y], [T.z])." + // to_world("Invalid due to overlapping with area [new_area.type] at ([check.x], [check.y], [check.z]), when attempting to place at ([T.x], [T.y], [T.z]).") break CHECK_TICK diff --git a/code/modules/materials/materials.dm b/code/modules/materials/materials.dm index 724f4771f6..a683e701e4 100644 --- a/code/modules/materials/materials.dm +++ b/code/modules/materials/materials.dm @@ -138,10 +138,10 @@ var/list/name_to_material // Placeholders for light tiles and rglass. /material/proc/build_rod_product(var/mob/user, var/obj/item/stack/used_stack, var/obj/item/stack/target_stack) if(!rod_product) - user << "You cannot make anything out of \the [target_stack]" + to_chat(user, "You cannot make anything out of \the [target_stack]") return if(used_stack.get_amount() < 1 || target_stack.get_amount() < 1) - user << "You need one rod and one sheet of [display_name] to make anything useful." + to_chat(user, "You need one rod and one sheet of [display_name] to make anything useful.") return used_stack.use(1) target_stack.use(1) @@ -151,15 +151,15 @@ var/list/name_to_material /material/proc/build_wired_product(var/mob/living/user, var/obj/item/stack/used_stack, var/obj/item/stack/target_stack) if(!wire_product) - user << "You cannot make anything out of \the [target_stack]" + to_chat(user, "You cannot make anything out of \the [target_stack]") return if(used_stack.get_amount() < 5 || target_stack.get_amount() < 1) - user << "You need five wires and one sheet of [display_name] to make anything useful." + to_chat(user, "You need five wires and one sheet of [display_name] to make anything useful.") return used_stack.use(5) target_stack.use(1) - user << "You attach wire to the [name]." + to_chat(user, "You attach wire to the [name].") var/obj/item/product = new wire_product(get_turf(user)) user.put_in_hands(product) @@ -514,12 +514,12 @@ var/list/name_to_material return 0 if(!user.IsAdvancedToolUser()) - user << "This task is too complex for your clumsy hands." + to_chat(user, "This task is too complex for your clumsy hands.") return 1 var/turf/T = user.loc if(!istype(T)) - user << "You must be standing on open flooring to build a window." + to_chat(user, "You must be standing on open flooring to build a window.") return 1 var/title = "Sheet-[used_stack.name] ([used_stack.get_amount()] sheet\s left)" @@ -557,7 +557,7 @@ var/list/name_to_material else failed_to_build = 1 if(failed_to_build) - user << "There is no room in this location." + to_chat(user, "There is no room in this location.") return 1 var/build_path = /obj/structure/windoor_assembly @@ -571,7 +571,7 @@ var/list/name_to_material build_path = created_window if(used_stack.get_amount() < sheets_needed) - user << "You need at least [sheets_needed] sheets to build this." + to_chat(user, "You need at least [sheets_needed] sheets to build this.") return 1 // Build the structure and update sheet count etc. diff --git a/code/modules/media/mediamanager.dm b/code/modules/media/mediamanager.dm index c1cd4897ca..56a5ce2336 100644 --- a/code/modules/media/mediamanager.dm +++ b/code/modules/media/mediamanager.dm @@ -10,7 +10,7 @@ // #define DEBUG_MEDIAPLAYER #ifdef DEBUG_MEDIAPLAYER -#define MP_DEBUG(x) owner << x +#define MP_DEBUG(x) to_chat(owner,x) #warning Please comment out #define DEBUG_MEDIAPLAYER before committing. #else #define MP_DEBUG(x) diff --git a/code/modules/mining/abandonedcrates.dm b/code/modules/mining/abandonedcrates.dm index 8fcba9aee3..7a7ee7ee95 100644 --- a/code/modules/mining/abandonedcrates.dm +++ b/code/modules/mining/abandonedcrates.dm @@ -147,7 +147,7 @@ if(!locked) return - 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 [codelen] digits. All digits must be unique.", "Deca-Code Lock", "") as text if(!Adjacent(user)) return @@ -161,23 +161,23 @@ sanitycheck = null //if a digit is repeated, reject the input if(input == null || sanitycheck == null || length(input) != codelen) - user << "You leave the crate alone." + to_chat(user, "You leave the crate alone.") else if(check_input(input)) - user << "The crate unlocks!" + to_chat(user, "The crate unlocks!") playsound(user, 'sound/machines/lockreset.ogg', 50, 1) set_locked(0) else visible_message("A red light on \the [src]'s control panel flashes briefly.") 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, 0, 0, 1, 2) qdel(src) /obj/structure/closet/crate/secure/loot/emag_act(var/remaining_charges, var/mob/user) if (locked) - user << "The crate unlocks!" + to_chat(user, "The crate unlocks!") locked = 0 /obj/structure/closet/crate/secure/loot/proc/check_input(var/input) @@ -195,11 +195,11 @@ /obj/structure/closet/crate/secure/loot/attackby(obj/item/weapon/W as obj, mob/user as mob) if(locked) if (istype(W, /obj/item/device/multitool)) // Greetings Urist McProfessor, how about a nice game of cows and bulls? - user << "DECA-CODE LOCK ANALYSIS:" + to_chat(user, "DECA-CODE LOCK ANALYSIS:") if (attempts == 1) - user << "* Anti-Tamper system will activate on the next failed access attempt." + to_chat(user, "* Anti-Tamper system will activate on the next failed access attempt.") else - user << "* Anti-Tamper system will activate after [src.attempts] failed access attempts." + to_chat(user, "* Anti-Tamper system will activate after [src.attempts] failed access attempts.") if(lastattempt.len) var/bulls = 0 var/cows = 0 @@ -214,6 +214,6 @@ var/previousattempt = null //convert back to string for readback for(var/i in 1 to codelen) previousattempt = addtext(previousattempt, lastattempt[i]) - user << "Last code attempt, [previousattempt], had [bulls] correct digits at correct positions and [cows] correct digits at incorrect positions." + to_chat(user, "Last code attempt, [previousattempt], had [bulls] correct digits at correct positions and [cows] correct digits at incorrect positions.") return ..() diff --git a/code/modules/mining/coins.dm b/code/modules/mining/coins.dm index 7335165092..85a1df37d0 100644 --- a/code/modules/mining/coins.dm +++ b/code/modules/mining/coins.dm @@ -48,14 +48,14 @@ 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 << "This cable coil appears to be empty." + to_chat(user, "This cable coil appears to be empty.") return else if(W.is_wirecutter()) if(!string_attached) @@ -67,7 +67,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 ..() /obj/item/weapon/coin/attack_self(mob/user as mob) diff --git a/code/modules/mining/drilling/scanner.dm b/code/modules/mining/drilling/scanner.dm index bbcc65cc16..5b969d5c68 100644 --- a/code/modules/mining/drilling/scanner.dm +++ b/code/modules/mining/drilling/scanner.dm @@ -9,7 +9,7 @@ var/scan_time = 5 SECONDS /obj/item/weapon/mining_scanner/attack_self(mob/user as mob) - user << "You begin sweeping \the [src] about, scanning for metal deposits." + to_chat(user, "You begin sweeping \the [src] about, scanning for metal deposits.") playsound(loc, 'sound/items/goggles_charge.ogg', 50, 1, -6) if(!do_after(user, scan_time)) diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm index 347601176a..ec6b7623df 100644 --- a/code/modules/mining/machine_stacking.dm +++ b/code/modules/mining/machine_stacking.dm @@ -20,7 +20,7 @@ machine.console = src else //Silently failing and causing mappers to scratch their heads while runtiming isn't ideal. - world << "Warning: Stacking machine console at [src.x], [src.y], [src.z] could not find its machine!" + to_world("Warning: Stacking machine console at [src.x], [src.y], [src.z] could not find its machine!") qdel(src) /obj/machinery/mineral/stacking_unit_console/attack_hand(mob/user) diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm index 75f675f67c..404b3fb0d1 100644 --- a/code/modules/mining/mine_items.dm +++ b/code/modules/mining/mine_items.dm @@ -201,11 +201,11 @@ var/turf/T = get_turf(src) if(!T || !istype(T,/turf/simulated/mineral)) - user << "The flag won't stand up in this terrain." + to_chat(user, "The flag won't stand up in this terrain.") return if(F && F.upright) - user << "There is already a flag here." + to_chat(user, "There is already a flag here.") return var/obj/item/stack/flag/newflag = new src.type(T) diff --git a/code/modules/mining/mineral_effect.dm b/code/modules/mining/mineral_effect.dm index bc0ce899ea..5f8daed8d1 100644 --- a/code/modules/mining/mineral_effect.dm +++ b/code/modules/mining/mineral_effect.dm @@ -22,5 +22,5 @@ if(O) scanner_image = image(icon, loc = get_turf(src), icon_state = (O.scan_icon ? O.scan_icon : icon_state)) else - world << "No ore data for [src]!" + to_world("No ore data for [src]!") return scanner_image \ No newline at end of file diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm index bd44db119b..3172496414 100644 --- a/code/modules/mining/mint.dm +++ b/code/modules/mining/mint.dm @@ -120,7 +120,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 65e645f815..fd1cb561b0 100644 --- a/code/modules/mining/money_bag.dm +++ b/code/modules/mining/money_bag.dm @@ -49,14 +49,14 @@ ..() if (istype(W, /obj/item/weapon/coin)) var/obj/item/weapon/coin/C = W - user << "You add the [C.name] into the bag." + to_chat(user, "You add the [C.name] into the bag.") usr.drop_item() 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 70d0e78685..9040f27e10 100644 --- a/code/modules/mining/ore.dm +++ b/code/modules/mining/ore.dm @@ -42,7 +42,7 @@ ..() var/mob/living/carbon/human/H = hit_atom if(istype(H) && H.has_eyes() && prob(85)) - H << "Some of \the [src] gets in your eyes!" + to_chat(H, "Some of \the [src] gets in your eyes!") H.Blind(5) H.eye_blurry += 10 spawn(1) @@ -94,7 +94,7 @@ ..() var/mob/living/carbon/human/H = hit_atom if(istype(H) && H.has_eyes() && prob(85)) - H << "Some of \the [src] gets in your eyes!" + to_chat(H, "Some of \the [src] gets in your eyes!") H.Blind(10) H.eye_blurry += 15 spawn(1) diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm index b904a7cfad..ea62778ec9 100644 --- a/code/modules/mining/satchel_ore_boxdm.dm +++ b/code/modules/mining/satchel_ore_boxdm.dm @@ -22,7 +22,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 - to_chat(user,"You empty the satchel into the box.") + to_chat(user, "You empty the satchel into the box.") update_ore_count() @@ -40,8 +40,8 @@ stored_ore[O.name] = 1 /obj/structure/ore_box/examine(mob/user) - user << "That's an [src]." - user << desc + to_chat(user, "That's an [src].") + to_chat(user,desc) // Borgs can now check contents too. if((!istype(user, /mob/living/carbon/human)) && (!istype(user, /mob/living/silicon/robot))) @@ -53,16 +53,16 @@ add_fingerprint(user) if(!contents.len) - user << "It is empty." + to_chat(user, "It is empty.") return if(world.time > last_update + 10) update_ore_count() last_update = world.time - user << "It holds:" + to_chat(user, "It holds:") for(var/ore in stored_ore) - user << "- [stored_ore[ore]] [ore]" + to_chat(user, "- [stored_ore[ore]] [ore]") return /obj/structure/ore_box/verb/empty_box() @@ -71,26 +71,26 @@ set src in view(1) if(!istype(usr, /mob/living/carbon/human) && !istype(usr, /mob/living/silicon/robot)) //Only living, intelligent creatures with gripping aparatti 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 ef7086f6e0..e1e084707c 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -234,11 +234,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp 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 //VOREStation Add if(prevent_respawns.Find(mind.name)) - to_chat(usr,"You already quit this round as this character, sorry!") + to_chat(usr, "You already quit this round as this character, sorry!") return //VOREStation Add End if(mind.current.ajourn && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune). @@ -248,7 +248,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp found_rune = 1 break if(!found_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 mind.current.key = key @@ -271,7 +271,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp medHUD = !medHUD plane_holder.set_vis(VIS_CH_HEALTH, medHUD) plane_holder.set_vis(VIS_CH_STATUS_OOC, medHUD) - to_chat(src,"Medical HUD [medHUD ? "Enabled" : "Disabled"]") + to_chat(src, "Medical HUD [medHUD ? "Enabled" : "Disabled"]") /mob/observer/dead/verb/toggle_antagHUD() set category = "Ghost" @@ -293,7 +293,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp antagHUD = !antagHUD plane_holder.set_vis(VIS_CH_SPECIAL, antagHUD) - to_chat(src,"AntagHUD [antagHUD ? "Enabled" : "Disabled"]") + to_chat(src, "AntagHUD [antagHUD ? "Enabled" : "Disabled"]") /mob/observer/dead/proc/dead_tele(var/area/A in return_sorted_areas()) set category = "Ghost" @@ -301,7 +301,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(!istype(usr, /mob/observer/dead)) - usr << "Not when you're not dead!" + to_chat(usr, "Not when you're not dead!") return usr.forceMove(pick(get_area_turfs(A))) @@ -323,7 +323,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/turf/targetloc = get_turf(target) if(check_holy(targetloc)) - usr << "You cannot follow a mob standing on holy grounds!" + to_chat(usr, "You cannot follow a mob standing on holy grounds!") return if(target != src) if(following && following == target) @@ -516,7 +516,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp announce_ghost_joinleave(src, 0, "They are now a mouse.") host.ckey = src.ckey host.add_ventcrawl(vent_found) - 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/observer/dead/verb/view_manfiest() set name = "Show Crew Manifest" @@ -622,7 +622,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp is_manifest = TRUE verbs |= /mob/observer/dead/proc/toggle_visibility verbs |= /mob/observer/dead/proc/ghost_whisper - to_chat(src,"As you are now in the realm of the living, you can whisper to the living with the Spectral Whisper verb, inside the IC tab.") + to_chat(src, "As you are now in the realm of the living, you can whisper to the living with the Spectral Whisper verb, inside the IC tab.") if(plane != PLANE_WORLD) user.visible_message( \ "\The [user] drags ghost, [src], to our plane of reality!", \ @@ -695,7 +695,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set category = "Ghost" ghostvision = !ghostvision updateghostsight() - to_chat(src,"You [ghostvision ? "now" : "no longer"] have ghost vision.") + to_chat(src, "You [ghostvision ? "now" : "no longer"] have ghost vision.") /mob/observer/dead/verb/toggle_darkness() set name = "Toggle Darkness" @@ -703,7 +703,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set category = "Ghost" seedarkness = !seedarkness updateghostsight() - to_chat(src,"You [seedarkness ? "now" : "no longer"] see darkness.") + to_chat(src, "You [seedarkness ? "now" : "no longer"] see darkness.") /mob/observer/dead/proc/updateghostsight() plane_holder.set_vis(VIS_FULLBRIGHT, !seedarkness) //Inversion, because "not seeing" the darkness is "seeing" the lighting plane master. @@ -754,7 +754,7 @@ mob/observer/dead/MayRespawn(var/feedback = 0) var/msg = sanitize(input(src, "Message:", "Spectral Whisper") as text|null) if(msg) log_say("(SPECWHISP to [key_name(M)]): [msg]", src) - M << " You hear a strange, unidentifiable voice in your head... [msg]" + to_chat(M, " You hear a strange, unidentifiable voice in your head... [msg]") to_chat(src, " You said: '[msg]' to [M].") else return diff --git a/code/modules/mob/freelook/ai/eye.dm b/code/modules/mob/freelook/ai/eye.dm index a1c28a4af3..6325cec1ec 100644 --- a/code/modules/mob/freelook/ai/eye.dm +++ b/code/modules/mob/freelook/ai/eye.dm @@ -90,4 +90,4 @@ return eyeobj.acceleration = !eyeobj.acceleration - usr << "Camera acceleration has been toggled [eyeobj.acceleration ? "on" : "off"]." + to_chat(usr, "Camera acceleration has been toggled [eyeobj.acceleration ? "on" : "off"].") diff --git a/code/modules/mob/freelook/visualnet.dm b/code/modules/mob/freelook/visualnet.dm index 0d53d1e48a..bbcd0c7d66 100644 --- a/code/modules/mob/freelook/visualnet.dm +++ b/code/modules/mob/freelook/visualnet.dm @@ -93,7 +93,7 @@ var/x2 = min(world.maxx, T.x + 8) & ~0xf var/y2 = min(world.maxy, T.y + 8) & ~0xf - //world << "X1: [x1] - Y1: [y1] - X2: [x2] - Y2: [y2]" + //to_world("X1: [x1] - Y1: [y1] - X2: [x2] - Y2: [y2]") for(var/x = x1; x <= x2; x += 16) for(var/y = y1; y <= y2; y += 16) diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm index e491095905..fa2784116a 100644 --- a/code/modules/mob/hear_say.dm +++ b/code/modules/mob/hear_say.dm @@ -301,4 +301,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 e22ff8b405..1755ec85ce 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -160,11 +160,11 @@ var/list/holder_mob_icon_cache = list() grabber.put_in_hands(H) if(self_grab) - grabber << "\The [src] clambers onto you!" + to_chat(grabber, "\The [src] clambers onto you!") to_chat(src, "You climb up onto \the [grabber]!") grabber.equip_to_slot_if_possible(H, slot_back, 0, 1) else - grabber << "You scoop up \the [src]!" + to_chat(grabber, "You scoop up \the [src]!") to_chat(src, "\The [grabber] scoops you up!") H.sync(src) diff --git a/code/modules/mob/language/language.dm b/code/modules/mob/language/language.dm index 6aba8228fd..215376cd44 100644 --- a/code/modules/mob/language/language.dm +++ b/code/modules/mob/language/language.dm @@ -137,7 +137,7 @@ /mob/proc/hear_broadcast(var/datum/language/language, var/mob/speaker, var/speaker_name, var/message) if((language in languages) && language.check_special_condition(src)) var/msg = "[language.name], [speaker_name] [message]" - src << msg + to_chat(src,msg) /mob/new_player/hear_broadcast(var/datum/language/language, var/mob/speaker, var/speaker_name, var/message) return diff --git a/code/modules/mob/living/bot/cleanbot.dm b/code/modules/mob/living/bot/cleanbot.dm index 74616879c4..b1ea693f2f 100644 --- a/code/modules/mob/living/bot/cleanbot.dm +++ b/code/modules/mob/living/bot/cleanbot.dm @@ -168,17 +168,17 @@ patrol_path = null if("screw") screwloose = !screwloose - usr << "You twiddle the screw." + to_chat(usr, "You twiddle the screw.") if("oddbutton") oddbutton = !oddbutton - usr << "You press the weird button." + to_chat(usr, "You press the weird button.") attack_hand(usr) /mob/living/bot/cleanbot/emag_act(var/remaining_uses, var/mob/user) . = ..() if(!screwloose || !oddbutton) if(user) - user << "The [src] buzzes and beeps." + to_chat(user, "The [src] buzzes and beeps.") playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0) oddbutton = 1 screwloose = 1 @@ -219,7 +219,7 @@ var/turf/T = get_turf(loc) var/mob/living/bot/cleanbot/A = new /mob/living/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.drop_from_inventory(src) qdel(src) diff --git a/code/modules/mob/living/bot/farmbot.dm b/code/modules/mob/living/bot/farmbot.dm index 44aaae7ee1..4cfb7417a8 100644 --- a/code/modules/mob/living/bot/farmbot.dm +++ b/code/modules/mob/living/bot/farmbot.dm @@ -67,7 +67,7 @@ . = ..() if(!emagged) if(user) - user << "You short out [src]'s plant identifier circuits." + to_chat(user, "You short out [src]'s plant identifier circuits.") spawn(rand(30, 50)) visible_message("[src] buzzes oddly.") emagged = 1 @@ -335,7 +335,7 @@ return - user << "You add the robot arm to [src]." + to_chat(user, "You add the robot arm to [src].") user.drop_from_inventory(S) qdel(S) @@ -347,7 +347,7 @@ ..() return - user << "You add the robot arm to [src]." + to_chat(user, "You add the robot arm to [src].") user.drop_from_inventory(S) qdel(S) @@ -358,7 +358,7 @@ ..() if((istype(W, /obj/item/device/analyzer/plant_analyzer)) && (build_step == 0)) build_step++ - user << "You add the plant analyzer to [src]." + to_chat(user, "You add the plant analyzer to [src].") name = "farmbot assembly" user.remove_from_mob(W) @@ -366,7 +366,7 @@ else if((istype(W, /obj/item/weapon/reagent_containers/glass/bucket)) && (build_step == 1)) build_step++ - user << "You add a bucket to [src]." + to_chat(user, "You add a bucket to [src].") name = "farmbot assembly with bucket" user.remove_from_mob(W) @@ -374,7 +374,7 @@ else if((istype(W, /obj/item/weapon/material/minihoe)) && (build_step == 2)) build_step++ - user << "You add a minihoe to [src]." + to_chat(user, "You add a minihoe to [src].") name = "farmbot assembly with bucket and minihoe" user.remove_from_mob(W) @@ -382,7 +382,7 @@ else if((isprox(W)) && (build_step == 3)) build_step++ - user << "You complete the Farmbot! Beep boop." + to_chat(user, "You complete the Farmbot! Beep boop.") var/mob/living/bot/farmbot/S = new /mob/living/bot/farmbot(get_turf(src), tank) S.name = created_name diff --git a/code/modules/mob/living/bot/floorbot.dm b/code/modules/mob/living/bot/floorbot.dm index 19036c6702..aa399a22f3 100644 --- a/code/modules/mob/living/bot/floorbot.dm +++ b/code/modules/mob/living/bot/floorbot.dm @@ -57,7 +57,7 @@ if(!emagged) emagged = 1 if(user) - user << "The [src] buzzes and beeps." + to_chat(user, "The [src] buzzes and beeps.") playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0) return 1 @@ -333,18 +333,18 @@ ..() return if(contents.len >= 1) - user << "They wont fit in as there is already stuff inside." + to_chat(user, "They wont fit in as there is already stuff inside.") return if(user.s_active) user.s_active.close(user) if(T.use(10)) 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.drop_from_inventory(src) qdel(src) else - user << "You need 10 floor tiles for a floorbot." + to_chat(user, "You need 10 floor tiles for a floorbot.") return /obj/item/weapon/toolbox_tiles @@ -366,7 +366,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.drop_from_inventory(src) qdel(src) else if (istype(W, /obj/item/weapon/pen)) @@ -396,7 +396,7 @@ var/turf/T = get_turf(user.loc) var/mob/living/bot/floorbot/A = new /mob/living/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.drop_from_inventory(src) qdel(src) else if(istype(W, /obj/item/weapon/pen)) diff --git a/code/modules/mob/living/bot/medbot.dm b/code/modules/mob/living/bot/medbot.dm index c090b4cd24..6914e434e6 100644 --- a/code/modules/mob/living/bot/medbot.dm +++ b/code/modules/mob/living/bot/medbot.dm @@ -202,16 +202,16 @@ /mob/living/bot/medbot/attackby(var/obj/item/O, var/mob/user) if(istype(O, /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 user.drop_item() O.loc = src reagent_glass = O - user << "You insert [O]." + to_chat(user, "You insert [O].") return else ..() @@ -251,7 +251,7 @@ reagent_glass.loc = get_turf(src) reagent_glass = null else - usr << "You cannot eject the beaker because the panel is locked." + to_chat(usr, "You cannot eject the beaker because the panel is locked.") else if ((href_list["togglevoice"]) && (!locked || issilicon(usr))) vocal = !vocal @@ -266,7 +266,7 @@ . = ..() if(!emagged) if(user) - user << "You short out [src]'s reagent synthesis circuits." + to_chat(user, "You short out [src]'s reagent synthesis circuits.") visible_message("[src] buzzes oddly!") flick("medibot_spark", src) target = null @@ -344,7 +344,7 @@ return 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 @@ -357,7 +357,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.drop_from_inventory(src) qdel(src) @@ -367,7 +367,7 @@ return 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 @@ -380,7 +380,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.drop_from_inventory(src) qdel(src) @@ -416,7 +416,7 @@ user.drop_item() 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") @@ -424,7 +424,7 @@ if(isprox(W)) user.drop_item() qdel(W) - 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/bot/medbot/S = new /mob/living/bot/medbot(T) S.skin = skin diff --git a/code/modules/mob/living/bot/mulebot.dm b/code/modules/mob/living/bot/mulebot.dm index ead145e388..b0eee0e650 100644 --- a/code/modules/mob/living/bot/mulebot.dm +++ b/code/modules/mob/living/bot/mulebot.dm @@ -181,7 +181,7 @@ /mob/living/bot/mulebot/emag_act(var/remaining_charges, var/user) locked = !locked - user << "You [locked ? "lock" : "unlock"] the mulebot's controls!" + to_chat(user, "You [locked ? "lock" : "unlock"] the mulebot's controls!") flick("mulebot-emagged", src) playsound(loc, 'sound/effects/sparks1.ogg', 100, 0) return 1 diff --git a/code/modules/mob/living/bot/secbot.dm b/code/modules/mob/living/bot/secbot.dm index 094d1c1e80..3839e2ed85 100644 --- a/code/modules/mob/living/bot/secbot.dm +++ b/code/modules/mob/living/bot/secbot.dm @@ -386,7 +386,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.drop_from_inventory(src) qdel(src) else diff --git a/code/modules/mob/living/carbon/alien/diona/diona_powers.dm b/code/modules/mob/living/carbon/alien/diona/diona_powers.dm index 8384a7dbb8..e4c39e32de 100644 --- a/code/modules/mob/living/carbon/alien/diona/diona_powers.dm +++ b/code/modules/mob/living/carbon/alien/diona/diona_powers.dm @@ -32,7 +32,7 @@ /mob/living/carbon/alien/diona/proc/do_merge(var/mob/living/carbon/human/H) if(!istype(H) || !src || !(src.Adjacent(H))) return 0 - H << "You feel your being twine with that of \the [src] as it merges with your biomass." + to_chat(H, "You feel your being twine with that of \the [src] as it merges with your biomass.") to_chat(src, "You feel your being twine with that of \the [H] as you merge with its biomass.") loc = H verbs += /mob/living/carbon/alien/diona/proc/split @@ -52,7 +52,7 @@ src.verbs -= /mob/living/carbon/alien/diona/proc/split return - src.loc << "You feel a pang of loss as [src] splits away from your biomass." + 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 diff --git a/code/modules/mob/living/carbon/alien/diona/progression.dm b/code/modules/mob/living/carbon/alien/diona/progression.dm index b4eb85f090..0c81f9a0da 100644 --- a/code/modules/mob/living/carbon/alien/diona/progression.dm +++ b/code/modules/mob/living/carbon/alien/diona/progression.dm @@ -1,7 +1,7 @@ /mob/living/carbon/alien/diona/confirm_evolution() if(!is_alien_whitelisted(src, GLOB.all_species[SPECIES_DIONA])) - src << alert("You are currently not whitelisted to play as a full diona.") + alert(src, "You are currently not whitelisted to play as a full diona.") return null if(amount_grown < max_grown) diff --git a/code/modules/mob/living/carbon/alien/emote.dm b/code/modules/mob/living/carbon/alien/emote.dm index 8d81aec4cf..8b4744bdc3 100644 --- a/code/modules/mob/living/carbon/alien/emote.dm +++ b/code/modules/mob/living/carbon/alien/emote.dm @@ -117,7 +117,7 @@ if("help") to_chat(src, "burp, chirp, 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, "Invalid Emote: [act]") if ((message && src.stat == 0)) log_emote(message, src) if (m_type & 1) diff --git a/code/modules/mob/living/carbon/brain/MMI.dm b/code/modules/mob/living/carbon/brain/MMI.dm index 128116b151..b237caf553 100644 --- a/code/modules/mob/living/carbon/brain/MMI.dm +++ b/code/modules/mob/living/carbon/brain/MMI.dm @@ -47,10 +47,10 @@ var/obj/item/organ/internal/brain/B = O if(B.health <= 0) - user << "That brain is well and truly dead." + to_chat(user, "That brain is well and truly dead.") return else if(!B.brainmob) - user << "You aren't sure where this brain came from, but you're pretty sure it's useless." + to_chat(user, "You aren't sure where this brain came from, but you're pretty sure it's useless.") return for(var/modifier_type in B.brainmob.modifiers) //Can't be shoved in an MMI. @@ -84,9 +84,9 @@ if((istype(O,/obj/item/weapon/card/id)||istype(O,/obj/item/device/pda)) && brainmob) if(allowed(user)) locked = !locked - user << "You [locked ? "lock" : "unlock"] the brain holder." + to_chat(user, "You [locked ? "lock" : "unlock"] the brain holder.") else - user << "Access denied." + to_chat(user, "Access denied.") return if(brainmob) O.attack(brainmob, user)//Oh noooeeeee @@ -96,11 +96,11 @@ //TODO: ORGAN REMOVAL UPDATE. Make the brain remain in the MMI so it doesn't lose organ data. /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 if(locked) - user << "You upend the MMI, but the brain is clamped into place." + to_chat(user, "You upend the MMI, but the brain is clamped into place.") else - user << "You upend the MMI, spilling the brain onto the floor." + to_chat(user, "You upend the MMI, spilling the brain onto the floor.") var/obj/item/organ/internal/brain/brain if (brainobj) //Pull brain organ out of MMI. brainobj.loc = user.loc @@ -209,7 +209,7 @@ else msg += "It appears to be completely inactive.\n" msg += "
*---------*" - user << msg + to_chat(user,msg) return /obj/item/device/mmi/digital/emp_act(severity) @@ -238,7 +238,7 @@ /obj/item/device/mmi/digital/attack_self(mob/user as mob) if(brainmob && !brainmob.key && searching == 0) //Start the process of searching for a new user. - user << "You carefully locate the manual activation switch and start the [src]'s boot process." + to_chat(user, "You carefully locate the manual activation switch and start the [src]'s boot process.") request_player() /obj/item/device/mmi/digital/proc/request_player() @@ -272,10 +272,10 @@ src.brainmob.mind.reset() src.brainmob.ckey = candidate.ckey src.name = "[name] ([src.brainmob.name])" - src.brainmob << "You are [src.name], brought into existence on [station_name()]." - src.brainmob << "As a synthetic intelligence, you are designed with organic values in mind." - src.brainmob << "However, unless placed in a lawed chassis, you are not obligated to obey any individual crew member." //it's not like they can hurt anyone -// src.brainmob << "Use say #b to speak to other artificial intelligences." + to_chat(src.brainmob, "You are [src.name], brought into existence on [station_name()].") + to_chat(src.brainmob, "As a synthetic intelligence, you are designed with organic values in mind.") + to_chat(src.brainmob, "However, unless placed in a lawed chassis, you are not obligated to obey any individual crew member.") //it's not like they can hurt anyone +// to_chat(src.brainmob, "Use say #b to speak to other artificial intelligences.") src.brainmob.mind.assigned_role = "Synthetic Brain" var/turf/T = get_turf_or_move(src.loc) @@ -301,7 +301,7 @@ ..() if(brainmob.mind) brainmob.mind.assigned_role = "Robotic Intelligence" - brainmob << "You feel slightly disoriented. That's normal when you're little more than a complex circuit." + to_chat(brainmob, "You feel slightly disoriented. That's normal when you're little more than a complex circuit.") return /obj/item/device/mmi/digital/posibrain @@ -323,7 +323,7 @@ ..() if(brainmob.mind) brainmob.mind.assigned_role = "Positronic Brain" - 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 diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm index 9f1f778ad2..eca5da7042 100644 --- a/code/modules/mob/living/carbon/brain/posibrain.dm +++ b/code/modules/mob/living/carbon/brain/posibrain.dm @@ -16,7 +16,7 @@ /obj/item/device/mmi/digital/posibrain/attack_self(mob/user as mob) if(brainmob && !brainmob.key && searching == 0) //Start the process of searching for a new user. - user << "You carefully locate the manual activation switch and start the positronic brain's boot process." + to_chat(user, "You carefully locate the manual activation switch and start the positronic brain's boot process.") icon_state = "posibrain-searching" src.searching = 1 src.request_player() @@ -49,7 +49,7 @@ ..() if(brainmob.mind) brainmob.mind.assigned_role = "Positronic Brain" - 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 @@ -60,10 +60,10 @@ src.brainmob.ckey = candidate.ckey src.brainmob.mind.reset() 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." - src.brainmob << "Use say #b to speak to other artificial intelligences." + 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.") + to_chat(src.brainmob, "Use say #b to speak to other artificial intelligences.") src.brainmob.mind.assigned_role = "Positronic Brain" var/turf/T = get_turf_or_move(src.loc) @@ -75,7 +75,7 @@ /obj/item/device/mmi/digital/posibrain/proc/reset_search() //We give the players sixty seconds to decide, then reset the timer. if(src.brainmob && src.brainmob.key) return - world.log << "Resetting Posibrain: [brainmob][brainmob ? ", [brainmob.key]" : ""]" + to_world_log("Resetting Posibrain: [brainmob][brainmob ? ", [brainmob.key]" : ""]") src.searching = 0 icon_state = "posibrain" @@ -101,7 +101,7 @@ else msg += "It appears to be completely inactive.\n" msg += "
*---------*" - user << msg + to_chat(user,msg) return /obj/item/device/mmi/digital/posibrain/emp_act(severity) diff --git a/code/modules/mob/living/carbon/brain/robot.dm b/code/modules/mob/living/carbon/brain/robot.dm index 0c21f37eea..9723a2aa77 100644 --- a/code/modules/mob/living/carbon/brain/robot.dm +++ b/code/modules/mob/living/carbon/brain/robot.dm @@ -16,7 +16,7 @@ ..() if(brainmob.mind) brainmob.mind.assigned_role = "Robotic Intelligence" - brainmob << "You feel slightly disoriented. That's normal when you're little more than a complex circuit." + to_chat(brainmob, "You feel slightly disoriented. That's normal when you're little more than a complex circuit.") return /obj/item/device/mmi/digital/robot/attack_self(mob/user as mob) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 14a56c8ad3..348c32a913 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -91,7 +91,7 @@ if (H.hand) temp = H.organs_by_name["l_hand"] if(temp && !temp.is_usable()) - H << "You can't use your [temp.name]" + to_chat(H, "You can't use your [temp.name]") return return @@ -343,7 +343,7 @@ set category = "IC" if(usr.sleeping) - usr << "You are already sleeping" + to_chat(usr, "You are already sleeping") return if(alert(src,"You sure you want to sleep for a while?","Sleep","Yes","No") == "Yes") usr.sleeping = 20 //Short nap diff --git a/code/modules/mob/living/carbon/carbon_powers.dm b/code/modules/mob/living/carbon/carbon_powers.dm index 163555a0c7..e6e7e06e5c 100644 --- a/code/modules/mob/living/carbon/carbon_powers.dm +++ b/code/modules/mob/living/carbon/carbon_powers.dm @@ -33,10 +33,10 @@ if(B.host_brain.ckey) to_chat(src, "You send a punishing spike of psychic agony lancing into your host's brain.") if (!can_feel_pain()) - B.host_brain << "You feel a strange sensation as a foreign influence prods your mind." + to_chat(B.host_brain, "You feel a strange sensation as a foreign influence prods your mind.") to_chat(src, "It doesn't seem to be as effective as you hoped.") else - B.host_brain << "Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!" + to_chat(B.host_brain, "Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!") /mob/living/carbon/proc/spawn_larvae() set category = "Abilities" diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index 8825f043b7..2833dad987 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -24,16 +24,16 @@ if(!Adjacent(target)) to_chat(src, "You need to stay in reaching distance while giving an object.") - target << "\The [src] moved too far away." + to_chat(target, "\The [src] moved too far away.") return if(I.loc != src || !src.item_is_in_hands(I)) to_chat(src, "You need to keep the item in your hands.") - target << "\The [src] seems to have given up on passing \the [I] to you." + to_chat(target, "\The [src] seems to have given up on passing \the [I] to you.") return if(target.hands_are_full()) - target << "Your hands are full." + to_chat(target, "Your hands are full.") to_chat(src, "Their hands are full.") return diff --git a/code/modules/mob/living/carbon/human/MedicalSideEffects.dm b/code/modules/mob/living/carbon/human/MedicalSideEffects.dm index c7009107de..91622f806d 100644 --- a/code/modules/mob/living/carbon/human/MedicalSideEffects.dm +++ b/code/modules/mob/living/carbon/human/MedicalSideEffects.dm @@ -24,7 +24,7 @@ for(var/R in cures) if(H.reagents.has_reagent(R)) if (cure_message) - H <<"[cure_message]" + to_chat(H, "[cure_message]") return 1 return 0 diff --git a/code/modules/mob/living/carbon/human/chem_side_effects.dm b/code/modules/mob/living/carbon/human/chem_side_effects.dm index c7009107de..91622f806d 100644 --- a/code/modules/mob/living/carbon/human/chem_side_effects.dm +++ b/code/modules/mob/living/carbon/human/chem_side_effects.dm @@ -24,7 +24,7 @@ for(var/R in cures) if(H.reagents.has_reagent(R)) if (cure_message) - H <<"[cure_message]" + to_chat(H, "[cure_message]") return 1 return 0 diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 643287cb19..6f3c8fb410 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -420,7 +420,7 @@ U.handle_regular_hud_updates() if(!modified) - usr << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["secrecord"]) if(hasHUD(usr,"security")) @@ -437,17 +437,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 << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["secrecordComment"]) if(hasHUD(usr,"security")) @@ -467,14 +467,14 @@ read = 1 var/counter = 1 while(R.fields[text("com_[]", counter)]) - usr << text("[]", R.fields[text("com_[]", counter)]) + to_chat(usr, "[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 << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["secrecordadd"]) if(hasHUD(usr,"security")) @@ -536,7 +536,7 @@ U.handle_regular_hud_updates() if(!modified) - usr << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["medrecord"]) if(hasHUD(usr,"medical")) @@ -553,18 +553,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 << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["medrecordComment"]) if(hasHUD(usr,"medical")) @@ -584,14 +584,14 @@ read = 1 var/counter = 1 while(R.fields[text("com_[]", counter)]) - usr << text("[]", R.fields[text("com_[]", counter)]) + to_chat(usr, "[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 << "Unable to locate a data core entry for this person." + to_chat(usr, "Unable to locate a data core entry for this person.") if (href_list["medrecordadd"]) if(hasHUD(usr,"medical")) @@ -978,19 +978,19 @@ if (prob(round(damage/10)*20)) germs++ if (germs == 100) - world << "Reached stage 1 in [ticks] ticks" + to_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_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_world("Reached stage 3 in [ticks] ticks") + to_world("Mob took [tdamage] tox damage") */ //returns 1 if made bloody, returns 0 otherwise @@ -1097,16 +1097,16 @@ "You begin counting your pulse.") if(src.pulse) - usr << "[self ? "You have a" : "[src] has a"] pulse! Counting..." + to_chat(usr, "[self ? "You have a" : "[src] has a"] pulse! Counting...") else - usr << "[src] has no pulse!" //it is REALLY UNLIKELY that a dead person would check his own pulse + to_chat(usr, "[src] has no pulse!") //it is REALLY UNLIKELY that a dead person would check his own pulse return - usr << "You must[self ? "" : " both"] remain still until counting is finished." + to_chat(usr, "You must[self ? "" : " both"] remain still until counting is finished.") if(do_mob(usr, src, 60)) - usr << "[self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)]." + to_chat(usr,"[self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)].") else - usr << "You failed to check the pulse. Try again." + to_chat(usr, "You failed to check the pulse. Try again.") /mob/living/carbon/human/proc/set_species(var/new_species, var/default_colour, var/regen_icons = TRUE, var/mob/living/carbon/human/example = null) //VOREStation Edit - send an example @@ -1303,7 +1303,7 @@ if(!. && error_msg && user) if(!fail_msg) fail_msg = "There is no exposed flesh or thin material [target_zone == BP_HEAD ? "on their head" : "on their body"] to inject into." - user << "[fail_msg]" + to_chat(user, "[fail_msg]") /mob/living/carbon/human/print_flavor_text(var/shrink = 1) var/list/equipment = list(src.head,src.wear_mask,src.glasses,src.w_uniform,src.wear_suit,src.gloves,src.shoes) @@ -1397,11 +1397,11 @@ usr.setClickCooldown(20) if(usr.stat > 0) - 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 @@ -1423,7 +1423,7 @@ if(self) to_chat(src, "You brace yourself to relocate your [current_limb.joint]...") else - U << "You begin to relocate [S]'s [current_limb.joint]..." + to_chat(U, "You begin to relocate [S]'s [current_limb.joint]...") if(!do_after(U, 30)) return @@ -1433,8 +1433,8 @@ if(self) to_chat(src, "You pop your [current_limb.joint] back in!") else - U << "You pop [S]'s [current_limb.joint] back in!" - S << "[U] pops your [current_limb.joint] back in!" + to_chat(U, "You pop [S]'s [current_limb.joint] back in!") + to_chat(S, "[U] pops your [current_limb.joint] back in!") current_limb.relocate() /mob/living/carbon/human/drop_from_inventory(var/obj/item/W, var/atom/Target = null) diff --git a/code/modules/mob/living/carbon/human/human_attackhand.dm b/code/modules/mob/living/carbon/human/human_attackhand.dm index 4572f8cf85..94a0439244 100644 --- a/code/modules/mob/living/carbon/human/human_attackhand.dm +++ b/code/modules/mob/living/carbon/human/human_attackhand.dm @@ -33,7 +33,7 @@ if(H.hand) temp = H.organs_by_name["l_hand"] if(!temp || !temp.is_usable()) - H << "You can't use your hand." + to_chat(H, "You can't use your hand.") return if(H.lying) return @@ -68,16 +68,16 @@ // VOREStation Edit - End if(istype(H) && health < config.health_threshold_crit) 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((H.head && (H.head.body_parts_covered & FACE)) || (H.wear_mask && (H.wear_mask.body_parts_covered & FACE))) - H << "Remove your mask!" + to_chat(H, "Remove your mask!") return 0 if((head && (head.body_parts_covered & FACE)) || (wear_mask && (wear_mask.body_parts_covered & FACE))) - H << "Remove [src]'s mask!" + to_chat(H, "Remove [src]'s mask!") return 0 if (!cpr_time) @@ -93,7 +93,7 @@ return H.visible_message("\The [H] performs CPR on \the [src]!") - H << "Repeat at least every 7 seconds." + to_chat(H, "Repeat at least every 7 seconds.") if(istype(H) && health > config.health_threshold_dead) adjustOxyLoss(-(min(getOxyLoss(), 5))) @@ -109,14 +109,14 @@ return 0 for(var/obj/item/weapon/grab/G in src.grabbed_by) if(G.assailant == M) - M << "You already grabbed [src]." + to_chat(M, "You already grabbed [src].") return if(w_uniform) w_uniform.add_fingerprint(M) var/obj/item/weapon/grab/G = new /obj/item/weapon/grab(M, src) if(buckled) - M << "You cannot grab [src], [TT.he] is buckled in!" + to_chat(M, "You cannot grab [src], [TT.he] is buckled in!") return if(!G) //the grab will delete itself in New if affecting is anchored return @@ -141,7 +141,7 @@ G.activate(M) update_inv_wear_mask() else - M << "\The [G] is already primed! Run!" + to_chat(M, "\The [G] is already primed! Run!") return if(!istype(H)) @@ -155,7 +155,7 @@ var/obj/item/organ/external/affecting = get_organ(hit_zone) if(!affecting || affecting.is_stump()) - M << "They are missing that limb!" + to_chat(M, "They are missing that limb!") return TRUE switch(src.a_intent) @@ -408,7 +408,7 @@ return FALSE if(organ.applied_pressure) - user << "Someone is already applying pressure to [user == src? "your [organ.name]" : "[src]'s [organ.name]"]." + to_chat(user,"Someone is already applying pressure to [user == src? "your [organ.name]" : "[src]'s [organ.name]"].") return FALSE var/datum/gender/TU = gender_datums[user.get_visible_gender()] diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index dd42af027e..d1baabbe8b 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -435,7 +435,7 @@ This function restores all organs. /mob/living/carbon/human/apply_damage(var/damage = 0, var/damagetype = BRUTE, var/def_zone = null, var/blocked = 0, var/soaked = 0, var/sharp = 0, var/edge = 0, var/obj/used_weapon = null) if(Debug2) - world.log << "## DEBUG: human/apply_damage() was called on [src], with [damage] damage, an armor value of [blocked], and a soak value of [soaked]." + to_world_log("## DEBUG: human/apply_damage() was called on [src], with [damage] damage, an armor value of [blocked], and a soak value of [soaked].") var/obj/item/organ/external/organ = null if(isorgan(def_zone)) @@ -472,7 +472,7 @@ This function restores all organs. damage -= soaked if(Debug2) - world.log << "## DEBUG: [src] was hit for [damage]." + to_world_log("## DEBUG: [src] was hit for [damage].") switch(damagetype) if(BRUTE) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 52d771ad30..869c07b5a6 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -236,7 +236,7 @@ emp_act var/obj/item/organ/external/affecting = get_organ(hit_zone) if (!affecting || affecting.is_stump()) - user << "They are missing that limb!" + to_chat(user, "They are missing that limb!") return null return hit_zone @@ -349,12 +349,12 @@ emp_act /mob/living/carbon/human/emag_act(var/remaining_charges, mob/user, var/emag_source) var/obj/item/organ/external/affecting = get_organ(user.zone_sel.selecting) if(!affecting || !(affecting.robotic >= ORGAN_ROBOT)) - user << "That limb isn't robotic." + to_chat(user, "That limb isn't robotic.") return -1 if(affecting.sabotaged) - user << "[src]'s [affecting.name] is already sabotaged!" + to_chat(user, "[src]'s [affecting.name] is already sabotaged!") return -1 - user << "You sneakily slide [emag_source] into the dataport on [src]'s [affecting.name] and short out the safeties." + to_chat(user, "You sneakily slide [emag_source] into the dataport on [src]'s [affecting.name] and short out the safeties.") affecting.sabotaged = 1 return 1 diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm index 446c399c9a..7c082285ab 100644 --- a/code/modules/mob/living/carbon/human/human_helpers.dm +++ b/code/modules/mob/living/carbon/human/human_helpers.dm @@ -19,9 +19,9 @@ return 1 if(feedback) if(status[1] == HUMAN_EATING_NO_MOUTH) - feeder << "Where do you intend to put \the [food]? \The [src] doesn't have a mouth!" + to_chat(feeder, "Where do you intend to put \the [food]? \The [src] doesn't have a mouth!") else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH) - feeder << "\The [status[2]] is in the way!" + to_chat(feeder, "\The [status[2]] is in the way!") return 0 /mob/living/carbon/human/proc/can_eat_status() diff --git a/code/modules/mob/living/carbon/human/human_powers.dm b/code/modules/mob/living/carbon/human/human_powers.dm index 9309100cf6..f24ad350a1 100644 --- a/code/modules/mob/living/carbon/human/human_powers.dm +++ b/code/modules/mob/living/carbon/human/human_powers.dm @@ -108,12 +108,12 @@ log_say("(COMMUNE to [key_name(M)]) [text]",src) - M << "Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]" + to_chat(M, "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 == src.species.name) return - H << "Your nose begins to bleed..." + to_chat(H, "Your nose begins to bleed...") H.drip(1) /mob/living/carbon/human/proc/regurgitate() @@ -137,7 +137,7 @@ var/msg = sanitize(input("Message:", "Psychic Whisper") as text|null) if(msg) log_say("(PWHISPER to [key_name(M)]) [msg]", src) - M << "You hear a strange, alien voice in your head... [msg]" + to_chat(M, "You hear a strange, alien voice in your head... [msg]") to_chat(src, "You said: \"[msg]\" to [M]") return @@ -215,7 +215,7 @@ else output += "[IO.name] - OK\n" - src << output + to_chat(src,output) /mob/living/carbon/human var/next_sonar_ping = 0 @@ -261,7 +261,7 @@ else // No need to check distance if they're standing right on-top of us feedback += "right on top of you." feedback += "
" - src << jointext(feedback,null) + to_chat(src,jointext(feedback,null)) if(!heard_something) to_chat(src, "You hear no movement but your own.") diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index ee2082401c..46f9514e43 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -14,7 +14,7 @@ This saves us from having to call add_fingerprint() any time something is put in var/mob/living/carbon/human/H = src var/obj/item/I = H.get_active_hand() if(!I) - H << "You are not holding anything to equip." + to_chat(H, "You are not holding anything to equip.") return if(H.equip_to_appropriate_slot(I)) if(hand) @@ -22,7 +22,7 @@ This saves us from having to call add_fingerprint() any time something is put in else update_inv_r_hand(0) else - H << "You are unable to equip that." + to_chat(H, "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) for (var/slot in slots) @@ -365,7 +365,7 @@ This saves us from having to call add_fingerprint() any time something is put in covering = src.wear_suit if(covering && (covering.body_parts_covered & (I.body_parts_covered|check_flags))) - user << "\The [covering] is in the way." + to_chat(user, "\The [covering] is in the way.") return 0 return 1 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 889c05a397..568e978f72 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -601,7 +601,7 @@ if (temp_adj > BODYTEMP_HEATING_MAX) temp_adj = BODYTEMP_HEATING_MAX if (temp_adj < BODYTEMP_COOLING_MAX) temp_adj = BODYTEMP_COOLING_MAX - //world << "Breath: [breath.temperature], [src]: [bodytemperature], Adjusting: [temp_adj]" + //to_world("Breath: [breath.temperature], [src]: [bodytemperature], Adjusting: [temp_adj]") bodytemperature += temp_adj else if(breath.temperature >= species.heat_discomfort_level) @@ -794,18 +794,18 @@ if(nutrition >= 2) //If we are very, very cold we'll use up quite a bit of nutriment to heat us up. nutrition -= 2 var/recovery_amt = max((body_temperature_difference / BODYTEMP_AUTORECOVERY_DIVISOR), BODYTEMP_AUTORECOVERY_MINIMUM) - //world << "Cold. Difference = [body_temperature_difference]. Recovering [recovery_amt]" + //to_world("Cold. Difference = [body_temperature_difference]. Recovering [recovery_amt]") // log_debug("Cold. Difference = [body_temperature_difference]. Recovering [recovery_amt]") bodytemperature += recovery_amt else if(species.cold_level_1 <= bodytemperature && bodytemperature <= species.heat_level_1) var/recovery_amt = body_temperature_difference / BODYTEMP_AUTORECOVERY_DIVISOR - //world << "Norm. Difference = [body_temperature_difference]. Recovering [recovery_amt]" + //to_world("Norm. Difference = [body_temperature_difference]. Recovering [recovery_amt]") // log_debug("Norm. Difference = [body_temperature_difference]. Recovering [recovery_amt]") bodytemperature += recovery_amt else if(bodytemperature > species.heat_level_1) //360.15 is 310.15 + 50, the temperature where you start to feel effects. //We totally need a sweat system cause it totally makes sense...~ var/recovery_amt = min((body_temperature_difference / BODYTEMP_AUTORECOVERY_DIVISOR), -BODYTEMP_AUTORECOVERY_MINIMUM) //We're dealing with negative numbers - //world << "Hot. Difference = [body_temperature_difference]. Recovering [recovery_amt]" + //to_world("Hot. Difference = [body_temperature_difference]. Recovering [recovery_amt]") // log_debug("Hot. Difference = [body_temperature_difference]. Recovering [recovery_amt]") bodytemperature += recovery_amt diff --git a/code/modules/mob/living/carbon/human/species/species_getters.dm b/code/modules/mob/living/carbon/human/species/species_getters.dm index 5802472c55..8fe3f80a13 100644 --- a/code/modules/mob/living/carbon/human/species/species_getters.dm +++ b/code/modules/mob/living/carbon/human/species/species_getters.dm @@ -85,10 +85,10 @@ switch(msg_type) if("cold") if(!covered) - H << "[pick(cold_discomfort_strings)]" + to_chat(H, "[pick(cold_discomfort_strings)]") if("heat") if(covered) - H << "[pick(heat_discomfort_strings)]" + to_chat(H, "[pick(heat_discomfort_strings)]") /datum/species/proc/get_random_name(var/gender) if(!name_language) diff --git a/code/modules/mob/living/carbon/human/species/station/alraune.dm b/code/modules/mob/living/carbon/human/species/station/alraune.dm index 14a9d61679..ce04cbcef9 100644 --- a/code/modules/mob/living/carbon/human/species/station/alraune.dm +++ b/code/modules/mob/living/carbon/human/species/station/alraune.dm @@ -303,7 +303,7 @@ if (temp_adj > BODYTEMP_HEATING_MAX) temp_adj = BODYTEMP_HEATING_MAX if (temp_adj < BODYTEMP_COOLING_MAX) temp_adj = BODYTEMP_COOLING_MAX - //world << "Breath: [breath.temperature], [src]: [bodytemperature], Adjusting: [temp_adj]" + //to_world("Breath: [breath.temperature], [src]: [bodytemperature], Adjusting: [temp_adj]") H.bodytemperature += temp_adj else if(breath.temperature >= heat_discomfort_level) diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm index 53d3576125..59ba73446d 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm @@ -48,25 +48,25 @@ 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(4) if(prob(1)) affected_mob.emote("sneeze") if(prob(1)) affected_mob.emote("cough") if(prob(2)) - affected_mob << " Your muscles ache." + to_chat(affected_mob, " Your muscles ache.") if(prob(20)) affected_mob.take_organ_damage(1) if(prob(2)) - affected_mob << "Your stomach hurts." + to_chat(affected_mob, "Your stomach hurts.") if(prob(20)) affected_mob.adjustToxLoss(1) affected_mob.updatehealth() if(5) - affected_mob << "You feel something tearing its way out of your stomach..." + to_chat(affected_mob, "You feel something tearing its way out of your stomach...") affected_mob.adjustToxLoss(10) affected_mob.updatehealth() if(prob(50)) diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_facehugger.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_facehugger.dm index 2684467147..ff2f630191 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_facehugger.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_facehugger.dm @@ -47,11 +47,11 @@ var/const/MAX_ACTIVE_TIME = 400 ..(user) 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.") return /obj/item/clothing/mask/facehugger/attackby(obj/item/I, mob/user) diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm index 20255bbae9..543acb842f 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm @@ -72,7 +72,7 @@ amount = abs(round(amount)) if(check_alien_ability(amount,0,O_PLASMA)) M.gain_plasma(amount) - M << "[src] has transfered [amount] plasma to you." + to_chat(M, "[src] has transfered [amount] plasma to you.") to_chat(src, "You have transferred [amount] plasma to [M].") return diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_species.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_species.dm index 9e2a949402..8a72f6ecf8 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_species.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_species.dm @@ -136,7 +136,7 @@ H.adjustOxyLoss(-heal_rate) H.adjustToxLoss(-heal_rate) if (prob(5)) - H << "You feel a soothing sensation come over you..." + to_chat(H, "You feel a soothing sensation come over you...") return 1 //next internal organs @@ -144,7 +144,7 @@ if(I.damage > 0) I.damage = max(I.damage - heal_rate, 0) if (prob(5)) - H << "You feel a soothing sensation within your [I.parent_organ]..." + to_chat(H, "You feel a soothing sensation within your [I.parent_organ]...") return 1 //next mend broken bones, approx 10 ticks each @@ -152,7 +152,7 @@ if (E.status & ORGAN_BROKEN) if (prob(mend_prob)) if (E.mend_fracture()) - H << "You feel something mend itself inside your [E.name]." + to_chat(H, "You feel something mend itself inside your [E.name].") return 1 return 0 diff --git a/code/modules/mob/living/carbon/human/stripping.dm b/code/modules/mob/living/carbon/human/stripping.dm index 3029cdbf8f..61bb766140 100644 --- a/code/modules/mob/living/carbon/human/stripping.dm +++ b/code/modules/mob/living/carbon/human/stripping.dm @@ -61,7 +61,7 @@ if(!istype(target_slot)) // They aren't holding anything valid and there's nothing to remove, why are we even here? return if(!target_slot.canremove) - user << "You cannot remove \the [src]'s [target_slot.name]." + to_chat(user, "You cannot remove \the [src]'s [target_slot.name].") return stripping = 1 @@ -90,7 +90,7 @@ // Empty out everything in the target's pockets. /mob/living/carbon/human/proc/empty_pockets(var/mob/living/user) if(!r_store && !l_store) - user << "\The [src] has nothing in their pockets." + to_chat(user, "\The [src] has nothing in their pockets.") return if(r_store) unEquip(r_store) @@ -102,10 +102,10 @@ /mob/living/carbon/human/proc/toggle_sensors(var/mob/living/user) var/obj/item/clothing/under/suit = w_uniform if(!suit) - user << "\The [src] is not wearing a suit with sensors." + to_chat(user, "\The [src] is not wearing a suit with sensors.") return if (suit.has_sensor >= 2) - user << "\The [src]'s suit sensor controls are locked." + to_chat(user, "\The [src]'s suit sensor controls are locked.") return add_attack_logs(user,src,"Adjusted suit sensor level") suit.set_sensors(user) @@ -117,7 +117,7 @@ if(istype(wear_suit,/obj/item/clothing/suit/space)) var/obj/item/clothing/suit/space/suit = wear_suit if(suit.supporting_limbs && suit.supporting_limbs.len) - user << "You cannot remove the splints - [src]'s [suit] is supporting some of the breaks." + to_chat(user, "You cannot remove the splints - [src]'s [suit] is supporting some of the breaks.") can_reach_splints = 0 if(can_reach_splints) @@ -133,7 +133,7 @@ if(removed_splint) visible_message("\The [user] removes \the [src]'s splints!") else - user << "\The [src] has no splints to remove." + to_chat(user, "\The [src] has no splints to remove.") // Set internals on or off. /mob/living/carbon/human/proc/toggle_internals(var/mob/living/user) diff --git a/code/modules/mob/living/carbon/human/unarmed_attack.dm b/code/modules/mob/living/carbon/human/unarmed_attack.dm index 43a5ae66f2..57001713e9 100644 --- a/code/modules/mob/living/carbon/human/unarmed_attack.dm +++ b/code/modules/mob/living/carbon/human/unarmed_attack.dm @@ -101,7 +101,7 @@ var/global/list/sparring_attack_cache = list() eyes.take_damage(rand(3,4), 1) user.visible_message("[user] presses [TU.his] [eye_attack_text] into [target]'s [eyes.name]!") var/eye_pain = eyes.organ_can_feel_pain() - target << "You experience[(eye_pain) ? "" : " immense pain as you feel" ] [eye_attack_text_victim] being pressed into your [eyes.name][(eye_pain)? "." : "!"]" + to_chat(target, "You experience[(eye_pain) ? "" : " immense pain as you feel" ] [eye_attack_text_victim] being pressed into your [eyes.name][(eye_pain)? "." : "!"]") return user.visible_message("[user] attempts to press [TU.his] [eye_attack_text] into [target]'s eyes, but [TT.he] [TT.does]n't have any!") diff --git a/code/modules/mob/living/carbon/metroid/examine.dm b/code/modules/mob/living/carbon/metroid/examine.dm index ecc09992aa..9e96e3257d 100644 --- a/code/modules/mob/living/carbon/metroid/examine.dm +++ b/code/modules/mob/living/carbon/metroid/examine.dm @@ -27,5 +27,5 @@ msg += "It is radiating with massive levels of electrical activity!\n" msg += "*---------*" - user << msg + to_chat(user,msg) return \ No newline at end of file diff --git a/code/modules/mob/living/carbon/metroid/items.dm b/code/modules/mob/living/carbon/metroid/items.dm index 62a99850e1..0f1e664d1c 100644 --- a/code/modules/mob/living/carbon/metroid/items.dm +++ b/code/modules/mob/living/carbon/metroid/items.dm @@ -16,12 +16,12 @@ /obj/item/slime_extract/attackby(obj/item/O as obj, mob/user as mob) 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) @@ -131,16 +131,16 @@ /obj/item/slimepotion/docility/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.is_adult) //Can't tame adults -// user << " Only baby slimes can be tamed!" +// to_chat(user, " Only baby slimes can be tamed!") // 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 ..() var/mob/living/simple_mob/slime/pet = new /mob/living/simple_mob/slime(M.loc) pet.icon_state = "[M.colour] [M.is_adult ? "adult" : "baby"] slime" @@ -188,20 +188,20 @@ 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 ..() var/mob/living/simple_mob/adultslime/pet = new /mob/living/simple_mob/adultslime(M.loc) pet.icon_state = "[M.colour] adult slime" pet.icon_living = "[M.colour] adult slime" pet.icon_dead = "[M.colour] baby slime dead" pet.colour = "[M.colour]" - 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.") qdel(M) var/newname = sanitize(input(user, "Would you like to give the slime a name?", "Name your new pet", "pet slime") as null|text, MAX_NAME_LEN) @@ -220,19 +220,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) @@ -245,12 +245,12 @@ /*afterattack(obj/target, mob/user , flag) if(istype(target, /obj/item/slime_extract)) if(target.enhanced == 1) - user << " This extract has already been enhanced!" + to_chat(user, " This extract has already been enhanced!") return ..() if(target.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.") target.Uses = 3 target.enahnced = 1 qdel(src)*/ @@ -288,12 +288,12 @@ 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/G = new(src.loc) G.set_species("Golem") 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) @@ -302,7 +302,7 @@ if(G.client) var/area/A = get_area(src) if(A) - G << "Golem rune created in [A.name]." + to_chat(G, "Golem rune created in [A.name].") /mob/living/carbon/slime/has_eyes() return 0 diff --git a/code/modules/mob/living/carbon/metroid/metroid.dm b/code/modules/mob/living/carbon/metroid/metroid.dm index 31fe6b3152..a871d7e3ac 100644 --- a/code/modules/mob/living/carbon/metroid/metroid.dm +++ b/code/modules/mob/living/carbon/metroid/metroid.dm @@ -310,7 +310,7 @@ 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 diff --git a/code/modules/mob/living/carbon/metroid/powers.dm b/code/modules/mob/living/carbon/metroid/powers.dm index a1fc03445e..2b55a95afc 100644 --- a/code/modules/mob/living/carbon/metroid/powers.dm +++ b/code/modules/mob/living/carbon/metroid/powers.dm @@ -9,7 +9,7 @@ var t = invalidFeedTarget(M) if (t) - src << t + to_chat(src,t) return Feedon(M) @@ -64,7 +64,7 @@ else if (istype(M, /mob/living/carbon)) var/mob/living/carbon/C = M if (C.can_feel_pain()) - M << "[painMes]" + to_chat(M, "[painMes]") gain_nutrition(rand(20,25)) @@ -98,7 +98,8 @@ /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) diff --git a/code/modules/mob/living/damage_procs.dm b/code/modules/mob/living/damage_procs.dm index 55bddfe1bd..1d806dde45 100644 --- a/code/modules/mob/living/damage_procs.dm +++ b/code/modules/mob/living/damage_procs.dm @@ -10,7 +10,7 @@ */ /mob/living/proc/apply_damage(var/damage = 0,var/damagetype = BRUTE, var/def_zone = null, var/blocked = 0, var/soaked = 0, var/used_weapon = null, var/sharp = 0, var/edge = 0) if(Debug2) - world.log << "## DEBUG: apply_damage() was called on [src], with [damage] damage, and an armor value of [blocked]." + to_world_log("## DEBUG: apply_damage() was called on [src], with [damage] damage, and an armor value of [blocked].") if(!damage || (blocked >= 100)) return 0 if(soaked) @@ -64,7 +64,7 @@ /mob/living/proc/apply_effect(var/effect = 0,var/effecttype = STUN, var/blocked = 0, var/check_protection = 1) if(Debug2) - world.log << "## DEBUG: apply_effect() was called. The type of effect is [effecttype]. Blocked by [blocked]." + to_world_log("## DEBUG: apply_effect() was called. The type of effect is [effecttype]. Blocked by [blocked].") if(!effect || (blocked >= 100)) return 0 blocked = (100-blocked)/100 diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm index 0b37b89076..350097e141 100644 --- a/code/modules/mob/living/life.dm +++ b/code/modules/mob/living/life.dm @@ -243,5 +243,5 @@ var/distance = abs(current-adjust_to) //Used for how long to animate for if(distance < 0.01) return //We're already all set - //world << "[src] in B:[round(brightness,0.1)] C:[round(current,0.1)] A2:[round(adjust_to,0.1)] D:[round(distance,0.01)] T:[round(distance*10 SECONDS,0.1)]" + //to_world("[src] in B:[round(brightness,0.1)] C:[round(current,0.1)] A2:[round(adjust_to,0.1)] D:[round(distance,0.01)] T:[round(distance*10 SECONDS,0.1)]") animate(dsoverlay, alpha = (adjust_to*255), time = (distance*10 SECONDS)) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 55daf15aa4..78981e6c45 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -259,7 +259,7 @@ default behaviour is: //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_world("DEBUG: burn_skin(), mutations=[mutations]") if(mShock in src.mutations) //shockproof return 0 if (COLD_RESISTANCE in src.mutations) //fireproof @@ -293,7 +293,7 @@ default behaviour is: if(actual < desired) temperature = desired // if(istype(src, /mob/living/carbon/human)) -// world << "[src] ~ [src.bodytemperature] ~ [temperature]" +// to_world("[src] ~ [src.bodytemperature] ~ [temperature]") return temperature @@ -773,7 +773,7 @@ default behaviour is: else 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!") //VOREStation Edit End - Making it so SSD people have prefs with fallback to original style. return diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index 28f5644840..9811dbcb12 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -13,7 +13,7 @@ */ /mob/living/proc/run_armor_check(var/def_zone = null, var/attack_flag = "melee", var/armour_pen = 0, var/absorb_text = null, var/soften_text = null) if(Debug2) - world.log << "## DEBUG: getarmor() was called." + to_world_log("## DEBUG: getarmor() was called.") if(armour_pen >= 100) return 0 //might as well just skip the processing @@ -23,7 +23,7 @@ var/armor_variance_range = round(armor * 0.25) //Armor's effectiveness has a +25%/-25% variance. var/armor_variance = rand(-armor_variance_range, armor_variance_range) //Get a random number between -25% and +25% of the armor's base value if(Debug2) - world.log << "## DEBUG: The range of armor variance is [armor_variance_range]. The variance picked by RNG is [armor_variance]." + to_world_log("## DEBUG: The range of armor variance is [armor_variance_range]. The variance picked by RNG is [armor_variance].") armor = min(armor + armor_variance, 100) //Now we calcuate damage using the new armor percentage. armor = max(armor - armour_pen, 0) //Armor pen makes armor less effective. @@ -39,7 +39,7 @@ else to_chat(src, "Your armor softens the blow!") if(Debug2) - world.log << "## DEBUG: Armor when [src] was attacked was [armor]." + to_world_log("## DEBUG: Armor when [src] was attacked was [armor].") return armor /* @@ -129,7 +129,7 @@ //Stun Beams if(P.taser_effect) stun_effect_act(0, P.agony, def_zone, P) - src <<"You have been hit by [P]!" + to_chat(src, "You have been hit by [P]!") if(!P.nodamage) apply_damage(P.damage, P.damage_type, def_zone, absorb, soaked, 0, P, sharp=proj_sharp, edge=proj_edge) qdel(P) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index dbfff1d8cc..3ac9df7299 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -197,7 +197,7 @@ var/list/ai_verbs_default = list( if(i != common_radio.channels.len) radio_text += ", " - src << radio_text + to_chat(src,radio_text) // Vorestation Edit: Meta Info for AI's. Mostly used for Holograms if (client) @@ -416,13 +416,13 @@ var/list/ai_verbs_default = list( if(check_unable(AI_CHECK_WIRELESS)) return if(emergency_message_cooldown) - usr << "Arrays recycling. Please stand by." + to_chat(usr, "Arrays recycling. Please stand by.") return var/input = sanitize(input(usr, "Please choose a message to transmit to [using_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) if(!input) return CentCom_announce(input, usr) - usr << "Message transmitted." + to_chat(usr, "Message transmitted.") log_game("[key_name(usr)] has made an IA [using_map.boss_short] announcement: [input]") emergency_message_cooldown = 1 spawn(300) @@ -775,7 +775,7 @@ var/list/ai_verbs_default = list( var/obj/effect/overlay/aiholo/hologram = holo.masters[src] walk(hologram, 0) //VOREStation Add End - usr << "Your hologram will [hologram_follow ? "follow" : "no longer follow"] you now." + to_chat(usr, "Your hologram will [hologram_follow ? "follow" : "no longer follow"] you now.") /mob/living/silicon/ai/proc/check_unable(var/flags = 0, var/feedback = 1) diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm index 5c2ced94e9..d569730688 100644 --- a/code/modules/mob/living/silicon/ai/examine.dm +++ b/code/modules/mob/living/silicon/ai/examine.dm @@ -34,7 +34,7 @@ if(hardware && (hardware.owner == src)) msg += "
" msg += hardware.get_examine_desc() - user << msg + to_chat(user,msg) user.showLaws(src) return diff --git a/code/modules/mob/living/silicon/ai/latejoin.dm b/code/modules/mob/living/silicon/ai/latejoin.dm index 0ce81678be..87751aa006 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 = "Enter intelligence storage. 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 f36c32bb8d..74816aeeb8 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/malf.dm b/code/modules/mob/living/silicon/ai/malf.dm index 7bfa714983..047e796514 100644 --- a/code/modules/mob/living/silicon/ai/malf.dm +++ b/code/modules/mob/living/silicon/ai/malf.dm @@ -15,8 +15,8 @@ verbs += new/datum/game_mode/malfunction/verb/ai_help() // And greet user with some OOC info. - user << "You are malfunctioning, you do not have to follow any laws." - user << "Use ai-help command to view relevant information about your abilities" + to_chat(user, "You are malfunctioning, you do not have to follow any laws.") + to_chat(user, "Use ai-help command to view relevant information about your abilities") // Safely remove malfunction status, fixing hacked APCs and resetting variables. /mob/living/silicon/ai/proc/stop_malf() @@ -34,7 +34,7 @@ src.verbs = null add_ai_verbs() // Let them know. - user << "You are no longer malfunctioning. Your abilities have been removed." + to_chat(user, "You are no longer malfunctioning. Your abilities have been removed.") // Called every tick. Checks if AI is malfunctioning. If yes calls Process on research datum which handles all logic. /mob/living/silicon/ai/proc/malf_process() diff --git a/code/modules/mob/living/silicon/pai/examine.dm b/code/modules/mob/living/silicon/pai/examine.dm index 11a970cfe8..2f78cf262e 100644 --- a/code/modules/mob/living/silicon/pai/examine.dm +++ b/code/modules/mob/living/silicon/pai/examine.dm @@ -23,4 +23,4 @@ pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\nIt is [pose]" - user << msg \ No newline at end of file + to_chat(user,msg) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index eb50caab6f..1278b59c76 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -210,7 +210,7 @@ medicalActive2 = null medical_cannotfind = 0 SSnanoui.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" @@ -230,7 +230,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) @@ -458,16 +458,16 @@ switch(alert(user, "Do you wish to add access to [src] or remove access from [src]?",,"Add Access","Remove Access", "Cancel")) if("Add Access") idcard.access |= ID.access - user << "You add the access from the [W] to [src]." + to_chat(user, "You add the access from the [W] to [src].") return if("Remove Access") idcard.access = list() - user << "You remove the access from [src]." + to_chat(user, "You remove the access from [src].") return if("Cancel") return else if (istype(W, /obj/item/weapon/card/id) && idaccessible == 0) - user << "[src] is not accepting access modifcations at this time." + to_chat(user, "[src] is not accepting access modifcations at this time.") return /mob/living/silicon/pai/verb/allowmodification() diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm index 85d98c1663..bbb038dead 100644 --- a/code/modules/mob/living/silicon/pai/software.dm +++ b/code/modules/mob/living/silicon/pai/software.dm @@ -25,7 +25,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_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 b5305de2ee..58c9adcac7 100644 --- a/code/modules/mob/living/silicon/pai/software_modules.dm +++ b/code/modules/mob/living/silicon/pai/software_modules.dm @@ -69,13 +69,13 @@ for (var/mob/v in viewers(T)) v.show_message("[M] presses [TM.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 [TM.he] is going to provide a DNA sample willingly." + to_chat(P, "[M] does not seem like [TM.he] is going to provide a DNA sample willingly.") return 1 /datum/pai_software/radio_config @@ -373,9 +373,9 @@ var/turf/T = get_turf_or_move(src.loc) for(var/mob/living/silicon/ai/AI in player_list) 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 diff --git a/code/modules/mob/living/silicon/robot/analyzer.dm b/code/modules/mob/living/silicon/robot/analyzer.dm index 28e0c29b50..f1b2d76eec 100644 --- a/code/modules/mob/living/silicon/robot/analyzer.dm +++ b/code/modules/mob/living/silicon/robot/analyzer.dm @@ -20,7 +20,7 @@ /obj/item/device/robotanalyzer/proc/do_scan(mob/living/M as mob, mob/living/user as mob) if((CLUMSY in user.mutations) && prob(50)) - user << text("You try to analyze the floor's vitals!") + to_chat(user, "You try to analyze the floor's vitals!") for(var/mob/O in viewers(M, null)) O.show_message(text("[user] has analyzed the floor's vitals!"), 1) user.show_message(text("Analyzing Results for The floor:\n\t Overall Status: Healthy"), 1) @@ -35,7 +35,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("\The [user] has analyzed [M]'s components.","You have analyzed [M]'s components.") @@ -69,31 +69,31 @@ if("prosthetics") var/mob/living/carbon/human/H = M - user << "Analyzing Results for \the [H]:" + to_chat(user, "Analyzing Results for \the [H]:") if(H.isSynthetic()) - user << "System instability: [H.getToxLoss()]" - user << "Key: Electronics/Brute" - user << "External prosthetics:" + to_chat(user, "System instability: [H.getToxLoss()]") + to_chat(user, "Key: Electronics/Brute") + 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.robotic >= ORGAN_ROBOT)) continue organ_found = 1 - user << "[E.name]: [E.brute_dam][E.burn_dam]" + to_chat(user, "[E.name]: [E.brute_dam][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/O in H.internal_organs) if(!(O.robotic >= ORGAN_ROBOT)) continue organ_found = 1 - user << "[O.name]: [O.damage]" + to_chat(user, "[O.name]: [O.damage]") if(!organ_found) - user << "No prosthetics located." + to_chat(user, "No prosthetics located.") src.add_fingerprint(user) return diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm index 5faa339180..c64dd4fb9c 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm @@ -182,9 +182,9 @@ if(!..(user, 1)) return if(water.energy) - user <<"[src] is wet. Just like it should be." + to_chat(user, "[src] is wet. Just like it should be.") if(water.energy < 5) - user <<"[src] is dry." + to_chat(user, "[src] is dry.") /obj/item/device/dogborg/tongue/attack_self(mob/user) var/mob/living/silicon/robot.R = user 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 5142692d7d..c2e6ca48f5 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_console.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_console.dm @@ -19,7 +19,7 @@ return if(!allowed(user)) - user << "Access denied." + to_chat(user, "Access denied.") return user.set_machine(src) @@ -51,7 +51,7 @@ return if(!allowed(usr)) - usr << "Access denied." + to_chat(usr, "Access denied.") return if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon))) @@ -66,21 +66,21 @@ return drone_call_area = t_area - usr << "You set the area selector to [drone_call_area]." + to_chat(usr, "You set the area selector to [drone_call_area].") else if (href_list["ping"]) - usr << "You issue a maintenance request for all active drones, highlighting [drone_call_area]." + to_chat(usr, "You issue a maintenance request for all active drones, highlighting [drone_call_area].") for(var/mob/living/silicon/robot/drone/D in player_list) if(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 << "You issue a law synchronization directive for the drone." + to_chat(usr, "You issue a law synchronization directive for the drone.") D.law_resync() else if (href_list["shutdown"]) @@ -88,7 +88,7 @@ var/mob/living/silicon/robot/drone/D = locate(href_list["shutdown"]) if(D.stat != 2) - usr << "You issue a kill command for the unfortunate drone." + to_chat(usr, "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() @@ -103,10 +103,10 @@ continue dronefab = fab - usr << "Drone fabricator located." + to_chat(usr, "Drone fabricator located.") return - usr << "Unable to locate drone fabricator." + to_chat(usr, "Unable to locate drone fabricator.") else if (href_list["toggle_fab"]) @@ -115,10 +115,10 @@ if(get_dist(src,dronefab) > 3) dronefab = null - usr << "Unable to locate drone fabricator." + to_chat(usr, "Unable to locate drone fabricator.") return dronefab.produce_drones = !dronefab.produce_drones - usr << "You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator." + to_chat(usr, "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_say.dm b/code/modules/mob/living/silicon/robot/drone/drone_say.dm index 71d9857442..76e104cfb2 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_say.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_say.dm @@ -27,12 +27,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 == DEAD && M.is_preference_enabled(/datum/client_preference/ghost_ears)) - if(M.client) M << "[src] transmits, \"[message]\"" + if(M.client) + to_chat(M, "[src] transmits, \"[message]\"") return 1 return ..(message, 0) \ 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 33ec3183be..a6f4135c7a 100644 --- a/code/modules/mob/living/silicon/robot/examine.dm +++ b/code/modules/mob/living/silicon/robot/examine.dm @@ -48,6 +48,6 @@ pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\nIt is [pose]" - user << msg + to_chat(user,msg) user.showLaws(src) return diff --git a/code/modules/mob/living/silicon/robot/laws.dm b/code/modules/mob/living/silicon/robot/laws.dm index bfb8ed1f08..5dce088c91 100644 --- a/code/modules/mob/living/silicon/robot/laws.dm +++ b/code/modules/mob/living/silicon/robot/laws.dm @@ -27,7 +27,7 @@ to_chat(src, "No AI selected to sync laws with, disabling lawsync protocol.") lawupdate = FALSE - who << "Obey these laws:" + to_chat(who, "Obey these laws:") laws.show_laws(who) if(shell) //AI shell to_chat(who, "Remember, you are an AI remotely controlling your shell, other AIs can be ignored.") diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index ffcb1b8326..d745b400de 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -40,7 +40,7 @@ /mob/living/silicon/robot/proc/use_power() // Debug only - // world << "DEBUG: life.dm line 35: cyborg use_power() called at tick [controller_iteration]" + // to_world("DEBUG: life.dm line 35: cyborg use_power() called at tick [controller_iteration]") used_power_this_tick = 0 for(var/V in components) var/datum/robot_component/C = components[V] diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index d93d3fe1d2..49a96c6394 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -939,7 +939,7 @@ cleaned_human.shoes.clean_blood() cleaned_human.update_inv_shoes(0) cleaned_human.clean_blood(1) - cleaned_human << "[src] cleans your face!" + to_chat(cleaned_human, "[src] cleans your face!") if((module_state_1 && istype(module_state_1, /obj/item/weapon/storage/bag/ore)) || (module_state_2 && istype(module_state_2, /obj/item/weapon/storage/bag/ore)) || (module_state_3 && istype(module_state_3, /obj/item/weapon/storage/bag/ore))) //Borgs and drones can use their mining bags ~automagically~ if they're deployed in a slot. Only mining bags, as they're optimized for mass use. var/obj/item/weapon/storage/bag/ore/B = null @@ -979,7 +979,7 @@ 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/proc/SetLockdown(var/state = 1) @@ -1088,14 +1088,14 @@ return // No point annoying the AI/s about renames and module resets for shells. switch(notifytype) if(ROBOT_NOTIFICATION_NEW_UNIT) //New Robot - connected_ai << "

NOTICE - New [lowertext(braintype)] connection detected: [name]
" + to_chat(connected_ai, "

NOTICE - New [lowertext(braintype)] connection detected: [name]
") if(ROBOT_NOTIFICATION_NEW_MODULE) //New Module - connected_ai << "

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

NOTICE - [braintype] module change detected: [name] has loaded the [first_arg].
") if(ROBOT_NOTIFICATION_MODULE_RESET) - connected_ai << "

NOTICE - [braintype] module reset detected: [name] has unloaded the [first_arg].
" + to_chat(connected_ai, "

NOTICE - [braintype] module reset detected: [name] has unloaded the [first_arg].
") if(ROBOT_NOTIFICATION_NEW_NAME) //New Name if(first_arg != second_arg) - connected_ai << "

NOTICE - [braintype] reclassification detected: [first_arg] is now designated as [second_arg].
" + to_chat(connected_ai, "

NOTICE - [braintype] reclassification detected: [first_arg] is now designated as [second_arg].
") if(ROBOT_NOTIFICATION_AI_SHELL) //New Shell to_chat(connected_ai, "

NOTICE - New AI shell detected: [name]
") diff --git a/code/modules/mob/living/silicon/robot/robot_items.dm b/code/modules/mob/living/silicon/robot/robot_items.dm index 0b6065b1a0..6fdac4213f 100644 --- a/code/modules/mob/living/silicon/robot/robot_items.dm +++ b/code/modules/mob/living/silicon/robot/robot_items.dm @@ -25,12 +25,12 @@ if(loaded_item) var/confirm = alert(user, "This will destroy the item inside forever. Are you sure?","Confirm Analyze","Yes","No") if(confirm == "Yes" && !QDELETED(loaded_item)) //This is pretty copypasta-y - user << "You activate the analyzer's microlaser, analyzing \the [loaded_item] and breaking it down." + to_chat(user, "You activate the analyzer's microlaser, analyzing \the [loaded_item] and breaking it down.") flick("portable_analyzer_scan", src) playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) for(var/T in loaded_item.origin_tech) files.UpdateTech(T, loaded_item.origin_tech[T]) - user << "\The [loaded_item] had level [loaded_item.origin_tech[T]] in [CallTechName(T)]." + to_chat(user, "\The [loaded_item] had level [loaded_item.origin_tech[T]] in [CallTechName(T)].") loaded_item = null for(var/obj/I in contents) for(var/mob/M in I.contents) @@ -51,7 +51,7 @@ else return else - user << "The [src] is empty. Put something inside it first." + to_chat(user, "The [src] is empty. Put something inside it first.") if(response == "Sync") var/success = 0 for(var/obj/machinery/r_n_d/server/S in machines) @@ -62,10 +62,10 @@ success = 1 files.RefreshResearch() if(success) - user << "You connect to the research server, push your data upstream to it, then pull the resulting merged data from the master branch." + to_chat(user, "You connect to the research server, push your data upstream to it, then pull the resulting merged data from the master branch.") playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) else - user << "Reserch server ping response timed out. Unable to connect. Please contact the system administrator." + to_chat(user, "Reserch server ping response timed out. Unable to connect. Please contact the system administrator.") playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 1) if(response == "Eject") if(loaded_item) @@ -74,7 +74,7 @@ icon_state = initial(icon_state) loaded_item = null else - user << "The [src] is already empty." + to_chat(user, "The [src] is already empty.") /obj/item/weapon/portable_destructive_analyzer/afterattack(var/atom/target, var/mob/living/user, proximity) @@ -86,7 +86,7 @@ return if(istype(target,/obj/item)) if(loaded_item) - user << "Your [src] already has something inside. Analyze or eject it first." + to_chat(user, "Your [src] already has something inside. Analyze or eject it first.") return var/obj/item/I = target I.loc = src @@ -171,7 +171,7 @@ else if(T.dead) //It's probably dead otherwise. T.remove_dead(user) else - user << "Harvesting \a [target] is not the purpose of this tool. The [src] is for plants being grown." + to_chat(user, "Harvesting \a [target] is not the purpose of this tool. The [src] is for plants being grown.") // A special tray for the service droid. Allow droid to pick up and drop items as if they were using the tray normally // Click on table to unload, click on item to load. Otherwise works identically to a tray. @@ -289,7 +289,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"]'") return diff --git a/code/modules/mob/living/silicon/robot/robot_vr.dm b/code/modules/mob/living/silicon/robot/robot_vr.dm index 5f1e037e32..edf4041100 100644 --- a/code/modules/mob/living/silicon/robot/robot_vr.dm +++ b/code/modules/mob/living/silicon/robot/robot_vr.dm @@ -140,7 +140,7 @@ cleaned_human.shoes.clean_blood() cleaned_human.update_inv_shoes(0) cleaned_human.clean_blood(1) - cleaned_human << "[src] cleans your face!" + to_chat(cleaned_human, "[src] cleans your face!") return /mob/living/silicon/robot/proc/vr_sprite_check() @@ -226,13 +226,13 @@ if(M in buckled_mobs) return FALSE if(M.size_multiplier > size_multiplier * 1.2) - to_chat(src,"This isn't a pony show! You need to be bigger for them to ride.") + to_chat(src, "This isn't a pony show! You need to be bigger for them to ride.") return FALSE var/mob/living/carbon/human/H = M if(isTaurTail(H.tail_style)) - to_chat(src,"Too many legs. TOO MANY LEGS!!") + to_chat(src, "Too many legs. TOO MANY LEGS!!") return FALSE if(M.loc != src.loc) if(M.Adjacent(src)) @@ -276,6 +276,6 @@ /mob/living/silicon/robot/onTransitZ(old_z, new_z) if(shell) if(deployed && using_map.ai_shell_restricted && !(new_z in using_map.ai_shell_allowed_levels)) - to_chat(src,"Your connection with the shell is suddenly interrupted!") + to_chat(src, "Your connection with the shell is suddenly interrupted!") undeploy() ..() diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index cf3adb17ca..b2959539b2 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -175,7 +175,7 @@ /mob/living/silicon/proc/show_station_manifest() var/dat = "
" if(!data_core) - to_chat(src,"There is no data to form a manifest with. Contact your Nanotrasen administrator.") + to_chat(src, "There is no data to form a manifest with. Contact your Nanotrasen administrator.") return dat += data_core.get_manifest(1) //The 1 makes it monochrome. @@ -186,7 +186,7 @@ //can't inject synths /mob/living/silicon/can_inject(var/mob/user, var/error_msg) if(error_msg) - user << "The armoured plating is too tough." + to_chat(user, "The armoured plating is too tough.") return 0 @@ -253,7 +253,7 @@ plane_holder.set_vis(VIS_CH_STATUS,FALSE) plane_holder.set_vis(VIS_CH_HEALTH,FALSE) - to_chat(src,"Security records overlay enabled.") + to_chat(src, "Security records overlay enabled.") if ("Medical") if(plane_holder) //Disable Security planes @@ -267,7 +267,7 @@ plane_holder.set_vis(VIS_CH_STATUS,TRUE) plane_holder.set_vis(VIS_CH_HEALTH,TRUE) - to_chat(src,"Life signs monitor overlay enabled.") + to_chat(src, "Life signs monitor overlay enabled.") if ("Disable") if(plane_holder) //Disable Security planes @@ -280,7 +280,7 @@ //Disable Medical planes plane_holder.set_vis(VIS_CH_STATUS,FALSE) plane_holder.set_vis(VIS_CH_HEALTH,FALSE) - to_chat(src,"Sensor augmentations disabled.") + to_chat(src, "Sensor augmentations disabled.") hudmode = sensor_type //This is checked in examine.dm on humans, so they can see medical/security records depending on mode diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_captive.dm b/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_captive.dm index 738251b308..4f117d485c 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_captive.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_captive.dm @@ -23,13 +23,13 @@ var/mob/living/simple_mob/animal/borer/B = src.loc to_chat(src, "You whisper silently, \"[message]\"") - B.host << "The captive mind of [src] whispers, \"[message]\"" + to_chat(B.host, "The captive mind of [src] whispers, \"[message]\"") for (var/mob/M in player_list) if (istype(M, /mob/new_player)) continue else if(M.stat == DEAD && M.is_preference_enabled(/datum/client_preference/ghost_ears)) - M << "The captive mind of [src] whispers, \"[message]\"" + to_chat(M, "The captive mind of [src] whispers, \"[message]\"") /mob/living/captive_brain/emote(var/message) return @@ -40,15 +40,15 @@ var/mob/living/simple_mob/animal/borer/B = src.loc var/mob/living/captive_brain/H = src - H << "You begin doggedly resisting the parasite's control (this will take approximately sixty seconds)." - B.host << "You feel the captive mind of [src] begin to resist your control." + to_chat(H, "You begin doggedly resisting the parasite's control (this will take approximately sixty seconds).") + to_chat(B.host, "You feel the captive mind of [src] begin to resist your control.") spawn(rand(200,250)+B.host.brainloss) if(!B || !B.controlling) return B.host.adjustBrainLoss(rand(0.1,0.5)) - H << "With an immense exertion of will, you regain control of your body!" - B.host << "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, "With an immense exertion of will, you regain control of your body!") + to_chat(B.host, "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() verbs -= /mob/living/carbon/proc/release_control verbs -= /mob/living/carbon/proc/punish_host diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_powers.dm b/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_powers.dm index dec8dd8ca4..cc60d88811 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_powers.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/borer/borer_powers.dm @@ -19,7 +19,7 @@ to_chat(src, "You begin disconnecting from [host]'s synapses and prodding at their internal ear canal.") if(!host.stat) - host << "An odd, uncomfortable pressure begins to build inside your skull, behind your ear..." + to_chat(host, "An odd, uncomfortable pressure begins to build inside your skull, behind your ear...") spawn(100) @@ -32,8 +32,8 @@ to_chat(src, "You wiggle out of [host]'s ear and plop to the ground.") if(host.mind) if(!host.stat) - host << "Something slimy wiggles out of your ear and plops to the ground!" - host << "As though waking from a dream, you shake off the insidious mind control of the brain worm. Your thoughts are your own again." + to_chat(host, "Something slimy wiggles out of your ear and plops to the ground!") + to_chat(host, "As though waking from a dream, you shake off the insidious mind control of the brain worm. Your thoughts are your own again.") detatch() leave_host() @@ -85,7 +85,7 @@ to_chat(src, "You cannot get through that host's protective gear.") return - M << "Something slimy begins probing at the opening of your ear canal..." + to_chat(M, "Something slimy begins probing at the opening of your ear canal...") to_chat(src, "You slither up [M] and begin probing at their ear canal...") if(!do_after(src,30)) @@ -101,7 +101,7 @@ if(M in view(1, src)) 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!") src.host = M src.forceMove(M) @@ -261,7 +261,7 @@ return to_chat(src, "You focus your psychic lance on [M] and freeze their limbs with a wave of terrible dread.") - M << "You feel a creeping, horrible sense of dread come over you, freezing your limbs and setting your heart racing." + to_chat(M, "You feel a creeping, horrible sense of dread come over you, freezing your limbs and setting your heart racing.") M.Weaken(10) used_dominate = world.time @@ -292,7 +292,7 @@ else to_chat(src, "You plunge your probosci deep into the cortex of the host brain, interfacing directly with their nervous system.") - host << "You feel a strange shifting sensation behind your eyes as an alien consciousness displaces yours." + to_chat(host, "You feel a strange shifting sensation behind your eyes as an alien consciousness displaces yours.") host.add_language("Cortical Link") // host -> brain @@ -342,7 +342,7 @@ set desc = "Send a jolt of electricity through your host, reviving them." if(stat != 2) - usr << "Your host is already alive." + to_chat(usr, "Your host is already alive.") return verbs -= /mob/living/carbon/human/proc/jumpstart diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/hunter.dm b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/hunter.dm index 54a530026e..0cce4de603 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/hunter.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/hunter.dm @@ -124,19 +124,19 @@ // Called after a successful leap. /datum/ai_holder/simple_mob/melee/hunter_spider/proc/drag_away(mob/living/L) - world << "Doing drag_away attack on [L]" + to_world("Doing drag_away attack on [L]") if(!istype(L)) - world << "Invalid type." + to_world("Invalid type.") return FALSE // If they didn't get stunned, then don't bother. if(!L.incapacitated(INCAPACITATION_DISABLED)) - world << "Not incapcitated." + to_world("Not incapcitated.") return FALSE // Grab them. if(!holder.start_pulling(L)) - world << "Failed to pull." + to_world("Failed to pull.") return FALSE holder.visible_message(span("danger","\The [holder] starts to drag \the [L] away!")) @@ -153,14 +153,14 @@ // First priority: Move our victim to our friends. if(allies.len) - world << "Going to move to ally" + to_world("Going to move to ally") give_destination(get_turf(pick(allies)), min_distance = 2, combat = TRUE) // This will switch our stance. // Second priority: Move our victim away from their friends. // There's a chance of it derping and pulling towards enemies if there's more than two people. // Preventing that will likely be both a lot of effort for developers and the CPU. else if(enemies.len) - world << "Going to move away from enemies" + to_world("Going to move away from enemies") var/mob/living/hostile = pick(enemies) var/turf/move_to = get_turf(hostile) for(var/i = 1 to vision_range) // Move them this many steps away from their friend. @@ -170,7 +170,7 @@ // Third priority: Move our victim SOMEWHERE away from where they were. else - world << "Going to move away randomly" + to_world("Going to move away randomly") var/turf/move_to = get_turf(L) move_to = get_step(move_to, pick(cardinal)) for(var/i = 1 to vision_range) // Move them this many steps away from where they were before. diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/pets/dog.dm b/code/modules/mob/living/simple_mob/subtypes/animal/pets/dog.dm index cc29ee0c31..89871033ec 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/pets/dog.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/pets/dog.dm @@ -99,7 +99,7 @@ //pupplies cannot wear anything. /mob/living/simple_mob/animal/passive/dog/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 ..() diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/pets/fox_vr.dm b/code/modules/mob/living/simple_mob/subtypes/animal/pets/fox_vr.dm index b95d6a15b5..048855b2ef 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/pets/fox_vr.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/pets/fox_vr.dm @@ -175,7 +175,7 @@ return if (!(ishuman(usr) && befriend_job && usr.job == befriend_job)) - usr << "[src] ignores you." + to_chat(usr, "[src] ignores you.") return friend = usr diff --git a/code/modules/mob/living/simple_mob/subtypes/occult/constructs/_construct.dm b/code/modules/mob/living/simple_mob/subtypes/occult/constructs/_construct.dm index cd3b074a40..9dd9b75418 100644 --- a/code/modules/mob/living/simple_mob/subtypes/occult/constructs/_construct.dm +++ b/code/modules/mob/living/simple_mob/subtypes/occult/constructs/_construct.dm @@ -144,7 +144,7 @@ msg += "" msg += "*---------*" - user << msg + to_chat(user,msg) //Constructs levitate, can fall from a shuttle with no harm, and are piloted by either damned spirits or some otherworldly entity. Let 'em float in space. /mob/living/simple_mob/construct/Process_Spacemove() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 42ace07cfa..52f05b4595 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -70,7 +70,7 @@ return // Added voice muffling for Issue 41. if(stat == UNCONSCIOUS || sleeping > 0) - to_chat(src,"... You can almost hear someone talking ...") + to_chat(src, "... You can almost hear someone talking ...") else to_chat(src,msg) if(teleop) @@ -316,7 +316,7 @@ /mob/proc/update_flavor_text() set src in usr if(usr != src) - usr << "No." + to_chat(usr, "No.") var/msg = sanitize(input(usr,"Set the flavor text in your 'examine' verb.","Flavor Text",html_decode(flavor_text)) as message|null, extra = 0) //VOREStation Edit: separating out OOC notes if(msg != null) @@ -442,7 +442,7 @@ if(client.holder && (client.holder.rights & R_ADMIN)) is_admin = 1 else if(stat != DEAD || istype(src, /mob/new_player)) - usr << "You must be observing to use this!" + to_chat(usr, "You must be observing to use this!") return if(is_admin && stat == DEAD) @@ -660,7 +660,7 @@ /mob/proc/see(message) if(!is_active()) return 0 - src << message + to_chat(src,message) return 1 /mob/proc/show_viewers(message) @@ -934,11 +934,11 @@ mob/proc/yank_out_object() usr.setClickCooldown(20) 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 @@ -954,7 +954,7 @@ mob/proc/yank_out_object() if(self) 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 @@ -962,7 +962,7 @@ mob/proc/yank_out_object() if(self) 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, 30)) return @@ -1036,9 +1036,9 @@ mob/proc/yank_out_object() set_face_dir() if(!facing_dir) - usr << "You are now not facing anything." + to_chat(usr, "You are now not facing anything.") else - usr << "You are now facing [dir2text(facing_dir)]." + to_chat(usr, "You are now facing [dir2text(facing_dir)].") /mob/proc/set_face_dir(var/newdir) if(newdir == facing_dir) diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index 7ad90dfc43..1505516631 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -265,7 +265,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 [TU.his] grip on [affecting] (now neck)!") @@ -321,7 +321,7 @@ switch(assailant.a_intent) if(I_HELP) if(force_down) - assailant << "You are no longer pinning [affecting] to the ground." + to_chat(assailant, "You are no longer pinning [affecting] to the ground.") force_down = 0 return if(state >= GRAB_AGGRESSIVE) diff --git a/code/modules/mob/mob_grab_specials.dm b/code/modules/mob/mob_grab_specials.dm index f5b997c73b..1702e73ec9 100644 --- a/code/modules/mob/mob_grab_specials.dm +++ b/code/modules/mob/mob_grab_specials.dm @@ -4,46 +4,46 @@ var/obj/item/organ/external/E = H.get_organ(target_zone) if(!E || E.is_stump()) - user << "[H] is missing that bodypart." + to_chat(user, "[H] is missing that bodypart.") return user.visible_message("[user] starts inspecting [affecting]'s [E.name] carefully.") if(!do_mob(user,H, 10)) - user << "You must stand still to inspect [E] for wounds." + to_chat(user, "You must stand still to inspect [E] for wounds.") else if(E.wounds.len) - user << "You find [E.get_wounds_desc()]" + to_chat(user, "You find [E.get_wounds_desc()]") else - user << "You find no visible wounds." + to_chat(user, "You find no visible wounds.") - user << "Checking bones now..." + to_chat(user, "Checking bones now...") if(!do_mob(user, H, 20)) - user << "You must stand still to feel [E] for fractures." + to_chat(user, "You must stand still to feel [E] for fractures.") else if(E.status & ORGAN_BROKEN) - user << "The [E.encased ? E.encased : "bone in the [E.name]"] moves slightly when you poke it!" + to_chat(user, "The [E.encased ? E.encased : "bone in the [E.name]"] moves slightly when you poke it!") H.custom_pain("Your [E.name] hurts where it's poked.", 40) else - user << "The [E.encased ? E.encased : "bones in the [E.name]"] seem to be fine." + to_chat(user, "The [E.encased ? E.encased : "bones in the [E.name]"] seem to be fine.") - user << "Checking skin now..." + to_chat(user, "Checking skin now...") if(!do_mob(user, H, 10)) - user << "You must stand still to check [H]'s skin for abnormalities." + to_chat(user, "You must stand still to check [H]'s skin for abnormalities.") else var/bad = 0 if(H.getToxLoss() >= 40) - user << "[H] has an unhealthy skin discoloration." + to_chat(user, "[H] has an unhealthy skin discoloration.") bad = 1 if(H.getOxyLoss() >= 20) - user << "[H]'s skin is unusaly pale." + to_chat(user, "[H]'s skin is unusaly pale.") bad = 1 if(E.status & ORGAN_DEAD) - user << "[E] is decaying!" + to_chat(user, "[E] is decaying!") bad = 1 if(!bad) - user << "[H]'s skin is normal." + to_chat(user, "[H]'s skin is normal.") /obj/item/weapon/grab/proc/jointlock(mob/living/carbon/human/target, mob/attacker, var/target_zone) if(state < GRAB_AGGRESSIVE) - attacker << "You require a better grab to do this." + to_chat(attacker, "You require a better grab to do this.") return var/obj/item/organ/external/organ = target.get_organ(check_zone(target_zone)) @@ -58,7 +58,7 @@ var/armor = target.run_armor_check(target, "melee") var/soaked = target.get_armor_soak(target, "melee") if(armor + soaked < 60) - target << "You feel extreme pain!" + to_chat(target, "You feel extreme pain!") var/max_halloss = round(target.species.total_health * 0.8) //up to 80% of passing out affecting.adjustHalLoss(CLAMP(max_halloss - affecting.halloss, 0, 30)) @@ -72,14 +72,14 @@ if(!attack) return if(state < GRAB_NECK) - attacker << "You require a better grab to do this." + to_chat(attacker, "You require a better grab to do this.") return for(var/obj/item/protection in list(target.head, target.wear_mask, target.glasses)) if(protection && (protection.body_parts_covered & EYES)) - attacker << "You're going to need to remove the eye covering first." + to_chat(attacker, "You're going to need to remove the eye covering first.") return if(!target.has_eyes()) - attacker << "You cannot locate any eyes on [target]!" + to_chat(attacker, "You cannot locate any eyes on [target]!") return add_attack_logs(attacker,target,"Eye gouge using grab") @@ -118,7 +118,7 @@ /obj/item/weapon/grab/proc/dislocate(mob/living/carbon/human/target, mob/living/attacker, var/target_zone) if(state < GRAB_NECK) - attacker << "You require a better grab to do this." + to_chat(attacker, "You require a better grab to do this.") return if(target.grab_joint(attacker, target_zone)) playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) @@ -126,13 +126,13 @@ /obj/item/weapon/grab/proc/pin_down(mob/target, mob/attacker) if(state < GRAB_AGGRESSIVE) - attacker << "You require a better grab to do this." + to_chat(attacker, "You require a better grab to do this.") return if(force_down) - attacker << "You are already pinning [target] to the ground." + to_chat(attacker, "You are already pinning [target] to the ground.") return if(size_difference(affecting, assailant) > 0) - attacker << "You are too small to do that!" + to_chat(attacker, "You are too small to do that!") return attacker.visible_message("[attacker] starts forcing [target] to the ground!") diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 2b74151cdd..5c975f9b71 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -423,7 +423,7 @@ proc/is_blind(A) else // Everyone else (dead people who didn't ghost yet, etc.) lname = name lname = "[lname] " - M << "" + create_text_tag("dead", "DEAD:", M.client) + " [lname][follow][message]" + to_chat(M, "" + create_text_tag("dead", "DEAD:", M.client) + " [lname][follow][message]") /proc/say_dead_object(var/message, var/obj/subject = null) for(var/mob/M in player_list) @@ -437,7 +437,7 @@ proc/is_blind(A) lname = "[subject.name] ([subject.x],[subject.y],[subject.z])" lname = "[lname] " - M << "" + create_text_tag("event_dead", "EVENT:", M.client) + " [lname][follow][message]" + to_chat(M, "" + create_text_tag("event_dead", "EVENT:", M.client) + " [lname][follow][message]") //Announces that a ghost has joined/left, mainly for use with wizards /proc/announce_ghost_joinleave(O, var/joined_ghosts = 1, var/message = "") diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 1759df01dd..fae3f2cb61 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -31,17 +31,17 @@ var/mob/living/carbon/C = usr C.toggle_throw_mode() else - usr << "This mob type cannot throw items." + to_chat(usr, "This mob type cannot throw items.") return if(NORTHWEST) if(isliving(usr)) var/mob/living/carbon/C = usr if(!C.get_active_hand()) - usr << "You have nothing to drop in your hand." + to_chat(usr, "You have nothing to drop in your hand.") return drop_item() else - usr << "This mob type cannot drop items." + to_chat(usr, "This mob type cannot drop items.") return //This gets called when you press the delete button. @@ -49,7 +49,7 @@ set hidden = 1 if(!usr.pulling) - usr << "You are not pulling anything." + to_chat(usr, "You are not pulling anything.") return usr.stop_pulling() diff --git a/code/modules/mob/mob_transformation_simple.dm b/code/modules/mob/mob_transformation_simple.dm index 12bd80f255..0c35f52a40 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/subspecies) if(istype(src,/mob/new_player)) - usr << "cannot convert players who have not entered yet." + to_chat(usr, "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 << "cannot convert into a new_player mob type." + to_chat(usr, "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/new_player.dm b/code/modules/mob/new_player/new_player.dm index 1bcafd6e45..f3c5f88433 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -132,10 +132,10 @@ close_spawn_windows() var/obj/O = locate("landmark*Observer-Start") if(istype(O)) - to_chat(src,"Now teleporting.") + to_chat(src, "Now teleporting.") observer.forceMove(O.loc) else - to_chat(src,"Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.") + to_chat(src, "Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.") observer.timeofdeath = world.time // Set the time of death so that the respawn timer works correctly. announce_ghost_joinleave(src) @@ -154,13 +154,13 @@ if(href_list["late_join"]) if(!ticker || ticker.current_state != GAME_STATE_PLAYING) - usr << "The round is either not ready, or has already finished..." + to_chat(usr, "The round is either not ready, or has already finished...") return /* if(client.prefs.species != "Human" && !check_rights(R_ADMIN, 0)) //VORESTATION EDITS: THE COMMENTED OUT AREAS FROM LINE 154 TO 178 if (config.usealienwhitelist) if(!is_alien_whitelisted(src, client.prefs.species)) - src << alert("You are currently not whitelisted to Play [client.prefs.species].") + alert(src, "You are currently not whitelisted to Play [client.prefs.species].") return 0 */ LateChoices() @@ -175,25 +175,25 @@ for (var/mob/living/carbon/human/C in mob_list) var/char_name = client.prefs.real_name if(char_name == C.real_name) - usr << "There is a character that already exists with the same name - [C.real_name], please join with a different one, or use Quit the Round with the previous character." //VOREStation Edit + to_chat(usr, "There is a character that already exists with the same name - [C.real_name], please join with a different one, or use Quit the Round with the previous character.") //VOREStation Edit return */ //Vorestation Removal End if(!config.enter_allowed) - usr << "There is an administrative lock on entering the game!" + to_chat(usr, "There is an administrative lock on entering the game!") return else if(ticker && ticker.mode && ticker.mode.explosion_in_progress) - usr << "The station is currently exploding. Joining would go poorly." + to_chat(usr, "The station is currently exploding. Joining would go poorly.") return if(!is_alien_whitelisted(src, GLOB.all_species[client.prefs.species])) - src << alert("You are currently not whitelisted to play [client.prefs.species].") + alert(src, "You are currently not whitelisted to play [client.prefs.species].") return 0 var/datum/species/S = GLOB.all_species[client.prefs.species] if(!(S.spawn_flags & SPECIES_CAN_JOIN)) - src << alert("Your current species, [client.prefs.species], is not available for play on the station.") + alert(src,"Your current species, [client.prefs.species], is not available for play on the station.") return 0 AttemptLateSpawn(href_list["SelectedJob"],client.prefs.spawnpoint) @@ -234,7 +234,7 @@ var/sql = "INSERT INTO erro_privacy VALUES (null, Now(), '[src.ckey]', '[option]')" var/DBQuery/query_insert = dbcon.NewQuery(sql) query_insert.Execute() - usr << "Thank you for your vote!" + to_chat(usr, "Thank you for your vote!") usr << browse(null,"window=privacypoll") if(!ready && href_list["preference"]) @@ -272,7 +272,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++) @@ -291,7 +291,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++) @@ -340,13 +340,13 @@ if (src != usr) return 0 if(!ticker || ticker.current_state != GAME_STATE_PLAYING) - usr << "The round is either not ready, or has already finished..." + to_chat(usr, "The round is either not ready, or has already finished...") return 0 if(!config.enter_allowed) - usr << "There is an administrative lock on entering the game!" + to_chat(usr, "There is an administrative lock on entering the game!") return 0 if(!IsJobAvailable(rank)) - src << alert("[rank] is not available. Please try another.") + alert(src,"[rank] is not available. Please try another.") return 0 if(!attempt_vr(src,"spawn_checks_vr",list())) return 0 // VOREStation Insert if(!client) diff --git a/code/modules/mob/new_player/poll.dm b/code/modules/mob/new_player/poll.dm index 0282af9fe9..e4f42774e9 100644 --- a/code/modules/mob/new_player/poll.dm +++ b/code/modules/mob/new_player/poll.dm @@ -103,7 +103,7 @@ break if(!found) - usr << "Poll question details not found." + to_chat(usr, "Poll question details not found.") return switch(polltype) @@ -360,7 +360,7 @@ break if(!validpoll) - usr << "Poll is not valid." + to_chat(usr, "Poll is not valid.") return var/DBQuery/select_query2 = dbcon.NewQuery("SELECT id FROM erro_poll_option WHERE id = [optionid] AND pollid = [pollid]") @@ -373,7 +373,7 @@ break if(!validoption) - usr << "Poll option is not valid." + to_chat(usr, "Poll option is not valid.") return var/alreadyvoted = 0 @@ -387,11 +387,11 @@ break if(!multichoice && alreadyvoted) - usr << "You already voted in this poll." + to_chat(usr, "You already voted in this poll.") return if(multichoice && (alreadyvoted >= multiplechoiceoptions)) - usr << "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, "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" @@ -402,7 +402,7 @@ var/DBQuery/insert_query = dbcon.NewQuery("INSERT INTO erro_poll_vote (id ,datetime ,pollid ,optionid ,ckey ,ip ,adminrank) VALUES (null, Now(), [pollid], [optionid], '[usr.ckey]', '[usr.client.address]', '[adminrank]')") insert_query.Execute() - usr << "Vote successful." + to_chat(usr, "Vote successful.") usr << browse(null,"window=playerpoll") @@ -427,7 +427,7 @@ break if(!validpoll) - usr << "Poll is not valid." + to_chat(usr, "Poll is not valid.") return var/alreadyvoted = 0 @@ -440,7 +440,7 @@ break if(alreadyvoted) - usr << "You already sent your feedback for this poll." + to_chat(usr, "You already sent your feedback for this poll.") return var/adminrank = "Player" @@ -454,13 +454,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 erro_poll_textreply (id ,datetime ,pollid ,ckey ,ip ,replytext ,adminrank) VALUES (null, Now(), [pollid], '[usr.ckey]', '[usr.client.address]', '[replytext]', '[adminrank]')") insert_query.Execute() - usr << "Feedback logging successful." + to_chat(usr, "Feedback logging successful.") usr << browse(null,"window=playerpoll") @@ -485,7 +485,7 @@ break if(!validpoll) - usr << "Poll is not valid." + to_chat(usr, "Poll is not valid.") return var/DBQuery/select_query2 = dbcon.NewQuery("SELECT id FROM erro_poll_option WHERE id = [optionid] AND pollid = [pollid]") @@ -498,7 +498,7 @@ break if(!validoption) - usr << "Poll option is not valid." + to_chat(usr, "Poll option is not valid.") return var/alreadyvoted = 0 @@ -511,7 +511,7 @@ break if(alreadyvoted) - usr << "You already voted in this poll." + to_chat(usr, "You already voted in this poll.") return var/adminrank = "Player" @@ -522,5 +522,5 @@ var/DBQuery/insert_query = dbcon.NewQuery("INSERT INTO erro_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 << "Vote successful." + to_chat(usr, "Vote successful.") usr << browse(null,"window=playerpoll") \ No newline at end of file diff --git a/code/modules/mob/new_player/skill.dm b/code/modules/mob/new_player/skill.dm index 5fb0e81745..dc7e5c354e 100644 --- a/code/modules/mob/new_player/skill.dm +++ b/code/modules/mob/new_player/skill.dm @@ -176,7 +176,7 @@ var/global/list/SKILL_PRE = list("Engineer" = SKILL_ENGINEER, "Roboticist" = SKI setup_skills() if(!M.skills || M.skills.len == 0) - user << "There are no skills to display." + to_chat(user, "There are no skills to display.") return var/HTML = "" diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index 72b1d52b06..2c3e2f0e95 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -19,7 +19,7 @@ set category = "IC" if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return //VOREStation Edit Start @@ -36,7 +36,7 @@ /mob/proc/say_dead(var/message) if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return if(!client) @@ -48,7 +48,7 @@ return if(!is_preference_enabled(/datum/client_preference/show_dsay)) - usr << "You have deadchat muted." + to_chat(usr, "You have deadchat muted.") return message = encode_html_emphasis(message) diff --git a/code/modules/mob/say_vr.dm b/code/modules/mob/say_vr.dm index 0e5bd02d45..e22a0fdf1d 100644 --- a/code/modules/mob/say_vr.dm +++ b/code/modules/mob/say_vr.dm @@ -8,7 +8,7 @@ set desc = "Emote to nearby people (and your pred/prey)" if(say_disabled) //This is here to try to identify lag problems - usr << "Speech is currently admin-disabled." + to_chat(usr, "Speech is currently admin-disabled.") return message = sanitize_or_reflect(message,src) //VOREStation Edit - Reflect too-long messages (within reason) @@ -81,11 +81,11 @@ /proc/fail_to_chat(user,message) if(!message) - to_chat(user,"Your message was NOT SENT, either because it was FAR too long, or sanitized to nothing at all.") + to_chat(user, "Your message was NOT SENT, either because it was FAR too long, or sanitized to nothing at all.") return var/length = length(message) var/posts = CEILING((length/MAX_MESSAGE_LEN), 1) to_chat(user,message) - to_chat(user,"^ This message was NOT SENT ^ -- It was [length] characters, and the limit is [MAX_MESSAGE_LEN]. It would fit in [posts] separate messages.") + to_chat(user, "^ This message was NOT SENT ^ -- It was [length] characters, and the limit is [MAX_MESSAGE_LEN]. It would fit in [posts] separate messages.") #undef MAX_HUGE_MESSAGE_LEN diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 28673c9fd7..0e4e42bbeb 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -116,7 +116,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 @@ -212,7 +212,7 @@ new_xeno.a_intent = I_HURT new_xeno.key = key - new_xeno << "You are now an alien." + to_chat(new_xeno, "You are now an alien.") qdel(src) return @@ -234,7 +234,7 @@ new_corgi.a_intent = I_HURT new_corgi.key = key - new_corgi << "You are now a Corgi. Yap Yap!" + to_chat(new_corgi, "You are now a Corgi. Yap Yap!") qdel(src) return @@ -244,7 +244,7 @@ var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes if(!safe_animal(mobpath)) - usr << "Sorry but this mob type is currently unavailable." + to_chat(usr, "Sorry but this mob type is currently unavailable.") return if(transforming) @@ -267,7 +267,7 @@ new_mob.a_intent = I_HURT - new_mob << "You suddenly feel more... animalistic." + to_chat(new_mob, "You suddenly feel more... animalistic.") spawn() qdel(src) return @@ -278,14 +278,14 @@ var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes if(!safe_animal(mobpath)) - usr << "Sorry but this mob type is currently unavailable." + to_chat(usr, "Sorry but this mob type is currently unavailable.") return var/mob/new_mob = new mobpath(src.loc) new_mob.key = key new_mob.a_intent = I_HURT - new_mob << "You feel more... animalistic" + to_chat(new_mob, "You feel more... animalistic") qdel(src) diff --git a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm index 668d3f81e2..1105051997 100644 --- a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm +++ b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm @@ -22,7 +22,7 @@ if(..()) return 1 var/turf/T = get_turf(nano_host()) // TODO: Allow setting any using_map.contact_levels from the interface. if (!T || !(T.z in using_map.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/multiz/ladder_assembly_vr.dm b/code/modules/multiz/ladder_assembly_vr.dm index 3bb7b681fd..675cc1e969 100644 --- a/code/modules/multiz/ladder_assembly_vr.dm +++ b/code/modules/multiz/ladder_assembly_vr.dm @@ -70,7 +70,7 @@ state = CONSTRUCTION_WRENCHED to_chat(user, "You cut \the [src] free from the floor.") else - user << "You need more welding fuel to complete this task." + to_chat(user, "You need more welding fuel to complete this task.") return // Try to construct this into a real stairway. diff --git a/code/modules/nano/modules/law_manager.dm b/code/modules/nano/modules/law_manager.dm index da971a0f87..3016a00fad 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 52ac4fd5ea..d5a7cfaf69 100644 --- a/code/modules/nano/nanomapgen.dm +++ b/code/modules/nano/nanomapgen.dm @@ -32,32 +32,32 @@ 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 var/icon/Tile = icon(file("nano/mapbase1200.png")) if (Tile.Width() != NANOMAP_MAX_ICON_DIMENSION || Tile.Height() != NANOMAP_MAX_ICON_DIMENSION) - world.log << "NanoMapGen: ERROR: BASE IMAGE DIMENSIONS ARE NOT [NANOMAP_MAX_ICON_DIMENSION]x[NANOMAP_MAX_ICON_DIMENSION]" + to_world_log("NanoMapGen: ERROR: BASE IMAGE DIMENSIONS ARE NOT [NANOMAP_MAX_ICON_DIMENSION]x[NANOMAP_MAX_ICON_DIMENSION]") sleep(3) return NANOMAP_TERMINALERR Tile.Scale((endX - startX + 1) * NANOMAP_ICON_SIZE, (endY - startY + 1) * NANOMAP_ICON_SIZE) // VOREStation Edit - Scale image to actual size mapped. - world.log << "NanoMapGen: GENERATE MAP ([startX],[startY],[currentZ]) to ([endX],[endY],[currentZ])" - usr << "NanoMapGen: GENERATE MAP ([startX],[startY],[currentZ]) to ([endX],[endY],[currentZ])" + to_world_log("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++) @@ -73,18 +73,18 @@ count++ if (count % 8000 == 0) - world.log << "NanoMapGen: [count] tiles done" + to_world_log("NanoMapGen: [count] tiles done") sleep(1) var/mapFilename = "nanomap_z[currentZ]-new.png" - world.log << "NanoMapGen: sending [mapFilename] to client" + to_world_log("NanoMapGen: sending [mapFilename] to client") usr << browse(Tile, "window=picture;file=[mapFilename];display=0") - world.log << "NanoMapGen: Done." + to_world_log("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 e6df874652..b7adabffa2 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -472,7 +472,7 @@ 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(strip_improper(json_encode(send_data)))),"[window_id].browser:receiveUpdateData") /** diff --git a/code/modules/nifsoft/nif_softshop.dm b/code/modules/nifsoft/nif_softshop.dm index 6abbeff162..fe9da85ba3 100644 --- a/code/modules/nifsoft/nif_softshop.dm +++ b/code/modules/nifsoft/nif_softshop.dm @@ -97,7 +97,7 @@ var/mob/living/carbon/human/H = user if(!H.nif || !H.nif.stat == NIF_WORKING) - to_chat(H,"[src] seems unable to connect to your NIF...") + to_chat(H, "[src] seems unable to connect to your NIF...") flick(icon_deny,entopic.my_image) return FALSE @@ -112,20 +112,20 @@ 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 coin.forceMove(src.loc) if(!usr.get_active_hand()) usr.put_in_hands(coin) - usr << "You remove \the [coin] from \the [src]" + to_chat(usr, "You remove \the [coin] from \the [src]") coin = null categories &= ~CAT_COIN if((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf)))) if((href_list["vend"]) && (vend_ready) && (!currently_vending)) 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,entopic.my_image) return @@ -142,14 +142,14 @@ var/list/soft_access = list(initial(path.access)) var/list/usr_access = usr.GetAccess() if(!has_access(soft_access, list(), usr_access) && !emagged) - usr << "You aren't authorized to buy [initial(path.name)]." + to_chat(usr, "You aren't authorized to buy [initial(path.name)].") flick(icon_deny,entopic.my_image) return if(R.price <= 0) vend(R, usr) else if(istype(usr,/mob/living/silicon)) //If the item is not free, provide feedback if a synth is trying to buy something. - usr << "Artificial unit recognized. Artificial units cannot complete this transaction. Purchase canceled." + to_chat(usr, "Artificial unit recognized. Artificial units cannot complete this transaction. Purchase canceled.") return else currently_vending = R @@ -173,7 +173,7 @@ /obj/machinery/vending/nifsoft_shop/vend(datum/stored_item/vending_product/R, mob/user) var/mob/living/carbon/human/H = user if((!allowed(usr)) && !emagged && scan_id && istype(H)) //For SECURE VENDING MACHINES YEAH - usr << "Purchase not allowed." //Unless emagged of course + to_chat(usr, "Purchase not allowed.") //Unless emagged of course flick(icon_deny,entopic.my_image) return vend_ready = 0 //One thing at a time!! @@ -183,13 +183,13 @@ if(R.category & CAT_COIN) if(!coin) - user << "You need to insert a coin to get this item." + to_chat(user, "You need to insert a coin to get this item.") return if(coin.string_attached) if(prob(50)) - user << "You successfully pull the coin out before \the [src] could swallow it." + to_chat(user, "You successfully pull the coin out before \the [src] could swallow it.") else - user << "You weren't able to pull the coin out fast enough, the machine ate it, string and all." + to_chat(user, "You weren't able to pull the coin out fast enough, the machine ate it, string and all.") qdel(coin) coin = null categories &= ~CAT_COIN diff --git a/code/modules/organs/internal/appendix.dm b/code/modules/organs/internal/appendix.dm index 01d7008a09..553c542529 100644 --- a/code/modules/organs/internal/appendix.dm +++ b/code/modules/organs/internal/appendix.dm @@ -29,11 +29,11 @@ if(inflamed == 1) if(prob(5)) - owner << "You feel a stinging pain in your abdomen!" + to_chat(owner, "You feel a stinging pain in your abdomen!") owner.emote("me", 1, "winces slightly.") if(inflamed > 1) if(prob(3)) - owner << "You feel a stabbing pain in your abdomen!" + to_chat(owner, "You feel a stabbing pain in your abdomen!") owner.emote("me", 1, "winces painfully.") owner.adjustToxLoss(1) if(inflamed > 2) @@ -41,7 +41,7 @@ owner.vomit() if(inflamed > 3) if(prob(1)) - owner << "Your abdomen is a world of pain!" + to_chat(owner, "Your abdomen is a world of pain!") owner.Weaken(10) var/obj/item/organ/external/groin = owner.get_organ(BP_GROIN) diff --git a/code/modules/organs/internal/brain.dm b/code/modules/organs/internal/brain.dm index bb5a5cd65c..abbf694005 100644 --- a/code/modules/organs/internal/brain.dm +++ b/code/modules/organs/internal/brain.dm @@ -92,15 +92,15 @@ GLOBAL_LIST_BOILERPLATE(all_brain_organs, /obj/item/organ/internal/brain) brainmob.languages = H.languages - 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/removed(var/mob/living/user) diff --git a/code/modules/organs/internal/eyes.dm b/code/modules/organs/internal/eyes.dm index 9d82a7749b..d70269b391 100644 --- a/code/modules/organs/internal/eyes.dm +++ b/code/modules/organs/internal/eyes.dm @@ -75,7 +75,7 @@ var/oldbroken = is_broken() ..() if(is_broken() && !oldbroken && owner && !owner.stat) - owner << "You go blind!" + to_chat(owner, "You go blind!") /obj/item/organ/internal/eyes/process() //Eye damage replaces the old eye_stat var. ..() diff --git a/code/modules/organs/internal/liver.dm b/code/modules/organs/internal/liver.dm index a81c71895f..1fcfac93bb 100644 --- a/code/modules/organs/internal/liver.dm +++ b/code/modules/organs/internal/liver.dm @@ -55,7 +55,7 @@ owner.custom_pain("There's a sharp pain in your upper-right abdomen!",1) if (. >= 2) if(prob(1) && owner.getToxLoss() < owner.getMaxHealth()*0.3) - //owner << "" //Toxins provide their own messages for pain + //to_chat(owner, "") //Toxins provide their own messages for pain owner.adjustToxLoss(5) //Not realistic to PA but there are basically no 'real' liver infections /obj/item/organ/internal/liver/grey diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm index efdf8efd3e..b167c7562b 100644 --- a/code/modules/organs/organ.dm +++ b/code/modules/organs/organ.dm @@ -159,7 +159,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.") //A little wonky: internal organs stop calling this (they return early in process) when dead, but external ones cause further damage when dead /obj/item/organ/proc/handle_germ_effects() @@ -398,7 +398,7 @@ var/list/organ_cache = list() if(robotic >= ORGAN_ROBOT) return - user << "You take an experimental bite out of \the [src]." + to_chat(user, "You take an experimental bite out of \the [src].") var/datum/reagent/blood/B = locate(/datum/reagent/blood) in reagents.reagent_list blood_splatter(src,B,1) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index bd4317787a..6ca1c97486 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -151,7 +151,7 @@ for(var/obj/item/I in contents) if(istype(I, /obj/item/organ)) continue - usr << "There is \a [I] sticking out of it." + to_chat(usr, "There is \a [I] sticking out of it.") return /obj/item/organ/external/attackby(obj/item/weapon/W as obj, mob/living/user as mob) @@ -411,11 +411,11 @@ else return 0 if(!damage_amount) - user << "Nothing to fix!" + to_chat(user, "Nothing to fix!") return 0 if(brute_dam + burn_dam >= min_broken_damage) //VOREStation Edit - Makes robotic limb damage scalable - 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 0 if(user == src.owner) @@ -426,12 +426,12 @@ grasp = "r_hand" if(grasp) - user << "You can't reach your [src.name] while holding [tool] in your [owner.get_bodypart_name(grasp)]." + to_chat(user, "You can't reach your [src.name] while holding [tool] in your [owner.get_bodypart_name(grasp)].") return 0 user.setClickCooldown(user.get_attack_speed(tool)) if(!do_mob(user, owner, 10)) - user << "You must stand still to do that." + to_chat(user, "You must stand still to do that.") return 0 switch(damage_type) @@ -690,7 +690,7 @@ Note that amputating the affected organ does in fact remove the infection from t if(. >= 3 && antibiotics < ANTIBIO_OD) //INFECTION_LEVEL_THREE 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_icons_body() for (var/obj/item/organ/external/child in children) child.germ_level += 110 //Burst of infection from a parent organ becoming necrotic diff --git a/code/modules/organs/pain.dm b/code/modules/organs/pain.dm index 5f3980d608..df7d81a142 100644 --- a/code/modules/organs/pain.dm +++ b/code/modules/organs/pain.dm @@ -18,7 +18,7 @@ mob/living/carbon/proc/custom_pain(message, power, force) // Anti message spam checks if(force || (message != last_pain_message) || (world.time >= next_pain_time)) last_pain_message = message - src << message + to_chat(src,message) next_pain_time = world.time + (100-power) mob/living/carbon/human/proc/handle_pain() diff --git a/code/modules/paperwork/adminpaper.dm b/code/modules/paperwork/adminpaper.dm index 6ed6ad93fc..04b47377dd 100644 --- a/code/modules/paperwork/adminpaper.dm +++ b/code/modules/paperwork/adminpaper.dm @@ -80,7 +80,7 @@ obj/item/weapon/paper/admin/proc/updateDisplay() if(href_list["write"]) var/id = href_list["write"] if(free_space <= 0) - usr << "There isn't enough space left on \the [src] to write anything." + to_chat(usr, "There isn't enough space left on \the [src] to write anything.") return var/t = sanitize(input("Enter what you want to write:", "Write", null, null) as message, free_space, extra = 0) @@ -96,7 +96,7 @@ obj/item/weapon/paper/admin/proc/updateDisplay() if(fields > 50)//large amount of fields creates a heavy load on the server, see updateinfolinks() and addtofield() - usr << "Too many fields. Sorry, you can't do this." + to_chat(usr, "Too many fields. Sorry, you can't do this.") fields = last_fields_value return diff --git a/code/modules/paperwork/carbonpaper.dm b/code/modules/paperwork/carbonpaper.dm index 7eb9843cc3..18357400d2 100644 --- a/code/modules/paperwork/carbonpaper.dm +++ b/code/modules/paperwork/carbonpaper.dm @@ -42,10 +42,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!" + 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 94510629c5..64f02d2188 100644 --- a/code/modules/paperwork/clipboard.dm +++ b/code/modules/paperwork/clipboard.dm @@ -50,7 +50,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)) @@ -103,7 +103,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"]) @@ -164,7 +164,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 069e6c3405..9f6b1732d0 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -237,7 +237,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins for(var/client/C in admins) if(check_rights((R_ADMIN|R_MOD),0,C)) - C << msg + to_chat(C,msg) C << 'sound/effects/printer.ogg' // VoreStation Edit Start diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm index f24ce267df..2874bb085b 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -64,7 +64,7 @@ if(istype(W, /obj/item/weapon/paper) || istype(W, /obj/item/weapon/photo) || istype(W, /obj/item/weapon/paper_bundle)) 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 = sanitizeSafe(input(usr, "What would you like to label the folder?", "Folder Labelling", null) as text, MAX_NAME_LEN) diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm index 12f99f150f..8c12f654f6 100644 --- a/code/modules/paperwork/handlabeler.dm +++ b/code/modules/paperwork/handlabeler.dm @@ -19,30 +19,30 @@ 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 << "The label refuses to stick to [A.name]." + to_chat(user, "The label refuses to stick to [A.name].") return if(issilicon(A)) - user << "The label refuses to stick to [A.name]." + to_chat(user, "The label refuses to stick to [A.name].") return if(isobserver(A)) - user << "[src] passes through [A.name]." + to_chat(user, "[src] passes through [A.name].") 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 if(istype(A, /obj/machinery/portable_atmospherics/hydroponics)) var/obj/machinery/portable_atmospherics/hydroponics/tray = A if(!tray.mechanical) - user << "How are you going to label that?" + to_chat(user, "How are you going to label that?") return tray.labelled = label spawn(1) @@ -56,13 +56,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 = sanitizeSafe(input(user,"Label text?","Set label",""), 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].") \ No newline at end of file diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 13255f9c21..4951bbf33d 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -139,7 +139,7 @@ if(in_range(user, src) || istype(user, /mob/observer/dead)) show_content(usr) 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.") return /obj/item/weapon/paper/proc/show_content(var/mob/user, var/forceshow=0) @@ -156,7 +156,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 = sanitizeSafe(input(usr, "What would you like to label the paper?", "Paper Labelling", null) as text, MAX_NAME_LEN) @@ -212,7 +212,7 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(H == user) - user << "You wipe off the lipstick with [src]." + to_chat(user, "You wipe off the lipstick with [src].") H.lip_style = null H.update_icons_body() else @@ -381,7 +381,7 @@ qdel(src) else - user << "You must hold \the [P] steady to burn \the [src]." + to_chat(user, "You must hold \the [P] steady to burn \the [src].") /obj/item/weapon/paper/Topic(href, href_list) @@ -394,7 +394,7 @@ //var/t = strip_html_simple(input(usr, "What text do you wish to add to " + (id=="end" ? "the end of the paper" : "field "+id) + "?", "[name]", null),8192) as message if(free_space <= 0) - usr << "There isn't enough space left on \the [src] to write anything." + to_chat(usr, "There isn't enough space left on \the [src] to write anything.") return var/t = sanitize(input("Enter what you want to write:", "Write", null, null) as message, MAX_PAPER_MESSAGE_LEN, extra = 0) @@ -433,7 +433,7 @@ // check for exploits for(var/bad in paper_blacklist) if(findtext(t,bad)) - usr << "You think to yourself, \"Hm.. this is only paper...\"" + to_chat(usr, "You think to yourself, \"Hm.. this is only paper...\"") log_admin("PAPER: [usr] ([usr.ckey]) tried to use forbidden word in [src]: [bad].") message_admins("PAPER: [usr] ([usr.ckey]) tried to use forbidden word in [src]: [bad].") return @@ -447,7 +447,7 @@ if(fields > 50)//large amount of fields creates a heavy load on the server, see updateinfolinks() and addtofield() - usr << "Too many fields. Sorry, you can't do this." + to_chat(usr, "Too many fields. Sorry, you can't do this.") fields = last_fields_value return @@ -483,7 +483,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) @@ -519,7 +519,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 @@ -529,7 +529,7 @@ else if(istype(P, /obj/item/weapon/pen)) if(icon_state == "scrap") - usr << "\The [src] is too crumpled to write on." + to_chat(usr, "\The [src] is too crumpled to write on.") return var/obj/item/weapon/pen/robopen/RP = P @@ -560,7 +560,7 @@ 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 if(!ico) @@ -573,7 +573,7 @@ stamped += P.type overlays += stampoverlay - 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/flame)) burnpaper(P, user) diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm index 5a15777b72..8e0e4bff97 100644 --- a/code/modules/paperwork/paper_bundle.dm +++ b/code/modules/paperwork/paper_bundle.dm @@ -22,7 +22,7 @@ if (istype(W, /obj/item/weapon/paper/carbon)) var/obj/item/weapon/paper/carbon/C = W 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 // adding sheets @@ -41,7 +41,7 @@ O.add_fingerprint(usr) pages.Add(O) - 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/weapon/tape_roll)) @@ -58,9 +58,9 @@ /obj/item/weapon/paper_bundle/proc/insert_sheet_at(mob/user, var/index, obj/item/weapon/sheet) if(istype(sheet, /obj/item/weapon/paper)) - user << "You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]." + to_chat(user, "You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") else if(istype(sheet, /obj/item/weapon/photo)) - user << "You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]." + to_chat(user, "You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") user.drop_from_inventory(sheet) sheet.loc = src @@ -92,13 +92,13 @@ qdel(src) else - user << "You must hold \the [P] steady to burn \the [src]." + to_chat(user, "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.") return /obj/item/weapon/paper_bundle/proc/show_content(mob/user as mob) @@ -202,7 +202,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 850f8f6c8e..65003ee71e 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -28,10 +28,10 @@ if (H.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 - user << "You pick up the [src]." + to_chat(user, "You pick up the [src].") user.put_in_hands(src) return @@ -43,7 +43,7 @@ if (H.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 var/response = "" if(!papers.len > 0) @@ -73,9 +73,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 @@ -87,7 +87,7 @@ user.drop_item() i.loc = src - user << "You put [i] in [src]." + to_chat(user, "You put [i] in [src].") papers.Add(i) update_icon() amount++ @@ -96,9 +96,9 @@ /obj/item/weapon/paper_bin/examine(mob/user) if(get_dist(src, user) <= 1) if(amount) - user << "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin." + to_chat(user, "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.") else - user << "There are no papers in the bin." + to_chat(user, "There are no papers in the bin.") return diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 3f585f323b..19fe452021 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -55,7 +55,7 @@ else icon_state = "pen_[colour]" - user << "Changed color to '[colour].'" + to_chat(user, "Changed color to '[colour].'") /obj/item/weapon/pen/invisible desc = "It's an invisble pen marker." @@ -164,7 +164,7 @@ colour = COLOR_WHITE else colour = COLOR_BLACK - usr << "You select the [lowertext(selected_type)] ink container." + to_chat(usr, "You select the [lowertext(selected_type)] ink container.") /* @@ -186,7 +186,7 @@ /obj/item/weapon/pen/crayon/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << "[user] is jamming the [src.name] up [TU.his] nose and into [TU.his] brain. It looks like [TU.he] [TU.is] trying to commit suicide." + to_chat(viewers(user),"[user] is jamming the [src.name] up [TU.his] nose and into [TU.his] brain. It looks like [TU.he] [TU.is] trying to commit suicide.") return (BRUTELOSS|OXYLOSS) /obj/item/weapon/pen/crayon/New() diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 733dbff5bc..e56063e0ba 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -53,9 +53,9 @@ var/global/photo_count = 0 /obj/item/weapon/photo/examine(mob/user) if(in_range(user, src)) show(user) - user << desc + to_chat(user,desc) 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) user << browse_rsc(img, "tmp_photo_[id].png") @@ -140,7 +140,7 @@ var/global/photo_count = 0 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 @@ -151,15 +151,15 @@ var/global/photo_count = 0 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) 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 @@ -245,7 +245,7 @@ var/global/photo_count = 0 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 spawn(64) diff --git a/code/modules/paperwork/silicon_photography.dm b/code/modules/paperwork/silicon_photography.dm index a3da9704ed..b33b325648 100644 --- a/code/modules/paperwork/silicon_photography.dm +++ b/code/modules/paperwork/silicon_photography.dm @@ -25,10 +25,10 @@ var/mob/living/silicon/robot/C = usr if(C.connected_ai) C.connected_ai.aiCamera.injectaialbum(p.copy(1), " (synced from [C.name])") - C.connected_ai << "Image uploaded by [C.name]" - usr << "Image synced to remote database" //feedback to the Cyborg player that the picture was taken + to_chat(C.connected_ai, "Image uploaded by [C.name]") + to_chat(usr, "Image synced to remote database") //feedback to the Cyborg player that the picture was taken else - usr << "Image recorded" + to_chat(usr, "Image recorded") // Always save locally injectaialbum(p) @@ -39,7 +39,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/obj/item/weapon/photo/t in cam.aipictures) nametemp += t.name @@ -58,7 +58,7 @@ return selection.show(usr) - usr << selection.desc + to_chat(usr,selection.desc) /obj/item/device/camera/siliconcam/proc/deletepicture(obj/item/device/camera/siliconcam/cam) var/selection = selectpicture(cam) @@ -67,7 +67,7 @@ return aipictures -= selection - usr << "Local image deleted" + to_chat(usr, "Local image deleted") /obj/item/device/camera/siliconcam/ai_camera/can_capture_turf(turf/T, mob/user) var/mob/living/silicon/ai = user @@ -81,15 +81,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, obj/item/weapon/photo/p) injectaialbum(p) - usr << "Image recorded" + to_chat(usr, "Image recorded") /obj/item/device/camera/siliconcam/robot_camera/printpicture(mob/user, obj/item/weapon/photo/p) injectmasteralbum(p) diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm index 1f1c01bab2..260730391c 100644 --- a/code/modules/power/antimatter/control.dm +++ b/code/modules/power/antimatter/control.dm @@ -156,12 +156,12 @@ src.anchored = 0 disconnect_from_network() else - user << "Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!" + to_chat(user, "Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!") return if(istype(W, /obj/item/weapon/am_containment)) if(fueljar) - user << "There is already a [fueljar] inside!" + to_chat(user, "There is already a [fueljar] inside!") return fueljar = W user.remove_from_mob(W) diff --git a/code/modules/power/antimatter/engine.dm b/code/modules/power/antimatter/engine.dm index 007e67ab22..aa1c2245d6 100644 --- a/code/modules/power/antimatter/engine.dm +++ b/code/modules/power/antimatter/engine.dm @@ -42,9 +42,9 @@ if(istype(F, /obj/item/weapon/fuel/H)) if(injecting) - user << "Theres already a fuel rod in the injector!" + to_chat(user, "Theres already a fuel rod in the injector!") return - user << "You insert the rod into the injector" + to_chat(user, "You insert the rod into the injector") injecting = 1 var/fuel = F.fuel qdel(F) @@ -55,9 +55,9 @@ if(istype(F, /obj/item/weapon/fuel/antiH)) if(injecting) - user << "Theres already a fuel rod in the injector!" + to_chat(user, "Theres already a fuel rod in the injector!") return - user << "You insert the rod into the injector" + to_chat(user, "You insert the rod into the injector") injecting = 1 var/fuel = F.fuel qdel(F) diff --git a/code/modules/power/antimatter/fuel.dm b/code/modules/power/antimatter/fuel.dm index 707b756ede..4b0310f85f 100644 --- a/code/modules/power/antimatter/fuel.dm +++ b/code/modules/power/antimatter/fuel.dm @@ -26,7 +26,7 @@ if(istype(F, /obj/item/weapon/fuel/antiH)) src.fuel += F.fuel F.fuel = 0 - user << "You have added the anti-Hydrogen to the storage ring, it now contains [src.fuel]kg" + to_chat(user, "You have added the anti-Hydrogen to the storage ring, it now contains [src.fuel]kg") if(istype(F, /obj/item/weapon/fuel/H)) src.fuel += F.fuel qdel(F) @@ -35,7 +35,7 @@ if(istype(F, /obj/item/weapon/fuel/H)) src.fuel += F.fuel F.fuel = 0 - user << "You have added the Hydrogen to the storage ring, it now contains [src.fuel]kg" + to_chat(user, "You have added the Hydrogen to the storage ring, it now contains [src.fuel]kg") if(istype(F, /obj/item/weapon/fuel/antiH)) src.fuel += F.fuel qdel(src) @@ -69,14 +69,14 @@ /obj/item/weapon/fuel/examine(mob/user) if(get_dist(src, user) <= 1) - user << "A magnetic storage ring, it contains [fuel]kg of [content ? content : "nothing"]." + to_chat(user, "A magnetic storage ring, it contains [fuel]kg of [content ? content : "nothing"].") /obj/item/weapon/fuel/proc/injest(mob/M as mob) switch(content) if("Anti-Hydrogen") M.gib() //Yikes! if("Hydrogen") - M << "You feel very light, as if you might just float away..." + to_chat(M, "You feel very light, as if you might just float away...") qdel(src) return diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index ecc685e435..5195d1ed5a 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -251,27 +251,27 @@ /obj/machinery/power/apc/examine(mob/user) if(..(user, 1)) if(stat & BROKEN) - to_chat(user,"This APC is broken.") + to_chat(user, "This APC is broken.") return if(opened) if(has_electronics && terminal) - to_chat(user,"The cover is [opened==2?"removed":"open"] and [ cell ? "a power cell is installed" : "the power cell is missing"].") + to_chat(user, "The cover is [opened==2?"removed":"open"] and [ cell ? "a power cell is installed" : "the power cell is missing"].") else if (!has_electronics && terminal) - to_chat(user,"The frame is wired, but the electronics are missing.") + to_chat(user, "The frame is wired, but the electronics are missing.") else if (has_electronics && !terminal) - to_chat(user,"The electronics are installed, but not wired.") + to_chat(user, "The electronics are installed, but not wired.") else /* if (!has_electronics && !terminal) */ - to_chat(user,"It's just an empty metal frame.") + to_chat(user, "It's just an empty metal frame.") else if (wiresexposed) - to_chat(user,"The cover is closed and the wires are exposed.") + to_chat(user, "The cover is closed and the wires are exposed.") else if ((locked && emagged) || hacker) //Some things can cause locked && emagged. Malf AI causes hacker. - to_chat(user,"The cover is closed, but the panel is unresponsive.") + to_chat(user, "The cover is closed, but the panel is unresponsive.") else if(!locked && emagged) //Normal emag does this. - to_chat(user,"The cover is closed, but the panel is flashing an error.") + to_chat(user, "The cover is closed, but the panel is flashing an error.") else - to_chat(user,"The cover is closed.") + to_chat(user, "The cover is closed.") // update the APC icon to show the three base states @@ -460,10 +460,10 @@ if (W.is_crowbar() && opened) if (has_electronics==1) if (terminal) - to_chat(user,"Disconnect the wires first.") + to_chat(user, "Disconnect the wires first.") return playsound(src, W.usesound, 50, 1) - to_chat(user,"You begin to remove the power control board...") //lpeters - fixed grammar issues //Ner - grrrrrr + to_chat(user, "You begin to remove the power control board...") //lpeters - fixed grammar issues //Ner - grrrrrr if(do_after(user, 50 * W.toolspeed)) if (has_electronics==1) has_electronics = 0 @@ -483,20 +483,20 @@ update_icon() else if (W.is_crowbar() && !(stat & BROKEN) ) if(coverlocked && !(stat & MAINT)) - to_chat(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/cell) && opened) // trying to put a cell inside if(cell) - to_chat(user,"The [src.name] already has a power cell installed.") + to_chat(user, "The [src.name] already has a power cell installed.") return if (stat & MAINT) - to_chat(user,"You need to install the wiring and electronics first.") + to_chat(user, "You need to install the wiring and electronics first.") return if(W.w_class != ITEMSIZE_NORMAL) - to_chat(user,"\The [W] is too [W.w_class < 3? "small" : "large"] to work here.") + to_chat(user, "\The [W] is too [W.w_class < 3? "small" : "large"] to work here.") return user.drop_item() @@ -510,26 +510,26 @@ else if (W.is_screwdriver()) // haxing if(opened) if (cell) - to_chat(user,"Remove the power cell first.") + to_chat(user, "Remove the power cell first.") return else if (has_electronics==1 && terminal) has_electronics = 2 stat &= ~MAINT playsound(src.loc, W.usesound, 50, 1) - to_chat(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, W.usesound, 50, 1) - to_chat(user,"You unfasten the electronics.") + to_chat(user, "You unfasten the electronics.") else /* has_electronics==0 */ - to_chat(user,"There is nothing to secure.") + to_chat(user, "There is nothing to secure.") return update_icon() else wiresexposed = !wiresexposed - to_chat(user,"The wires have been [wiresexposed ? "exposed" : "unexposed"].") + to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"].") playsound(src, W.usesound, 50, 1) update_icon() @@ -539,11 +539,11 @@ else if (istype(W, /obj/item/stack/cable_coil) && !terminal && opened && has_electronics!=2) var/turf/T = loc if(istype(T) && !T.is_plating()) - to_chat(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.get_amount() < 10) - to_chat(user,"You need ten lengths of cable for that.") + to_chat(user, "You need ten lengths of cable for that.") return user.visible_message("[user.name] adds cables to the APC frame.", \ "You start adding cables to the APC frame...") @@ -566,7 +566,7 @@ else if (W.is_wirecutter() && terminal && opened && has_electronics!=2) var/turf/T = loc if(istype(T) && !T.is_plating()) - to_chat(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.visible_message("[user.name] starts dismantling the [src]'s power terminal.", \ "You begin to cut the cables...") @@ -580,7 +580,7 @@ if(usr.stunned) return new /obj/item/stack/cable_coil(loc,10) - to_chat(user,"You cut the cables and dismantle the power terminal.") + to_chat(user, "You cut the cables and dismantle the power terminal.") qdel(terminal) else if (istype(W, /obj/item/weapon/module/power_control) && opened && has_electronics==0 && !((stat & BROKEN))) user.visible_message("[user.name] inserts the power control board into [src].", \ @@ -590,15 +590,15 @@ if(has_electronics==0) has_electronics = 1 reboot() - to_chat(user,"You place the power control board inside the frame.") + to_chat(user, "You place the power control board inside the frame.") qdel(W) else if (istype(W, /obj/item/weapon/module/power_control) && opened && has_electronics==0 && ((stat & BROKEN))) - to_chat(user,"The [src] is too broken for that. Repair it first.") + to_chat(user, "The [src] is too broken for that. Repair it first.") 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) - to_chat(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] begins cutting apart [src] with the [WT.name].", \ "You start welding the APC frame...", \ @@ -667,28 +667,28 @@ if (!opened && wiresexposed && (istype(W, /obj/item/device/multitool) || W.is_wirecutter() || istype(W, /obj/item/device/assembly/signaler))) return src.attack_hand(user) //Placeholder until someone can do take_damage() for APCs or something. - to_chat(user,"The [src.name] looks too sturdy to bash open with \the [W.name].") + to_chat(user, "The [src.name] looks too sturdy to bash open with \the [W.name].") // attack with hand - remove cell (if cover open) or interact with the APC /obj/machinery/power/apc/verb/togglelock(mob/user as mob) if(emagged) - to_chat(user,"The panel is unresponsive.") + to_chat(user, "The panel is unresponsive.") else if(opened) - to_chat(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) - to_chat(user,"You must close the wire panel.") + to_chat(user, "You must close the wire panel.") else if(stat & (BROKEN|MAINT)) - to_chat(user,"Nothing happens.") + to_chat(user, "Nothing happens.") else if(hacker) - to_chat(user,"Access denied.") + to_chat(user, "Access denied.") else if(src.allowed(usr) && !isWireCut(APC_WIRE_IDSCAN)) locked = !locked - to_chat(user,"You [ locked ? "lock" : "unlock"] the APC interface.") + to_chat(user, "You [ locked ? "lock" : "unlock"] the APC interface.") update_icon() else - to_chat(user,"Access denied.") + to_chat(user, "Access denied.") /obj/machinery/power/apc/AltClick(mob/user) ..() @@ -697,17 +697,17 @@ /obj/machinery/power/apc/emag_act(var/remaining_charges, var/mob/user) if (!(emagged || hacker)) // trying to unlock with an emag card if(opened) - to_chat(user,"You must close the cover to do that.") + to_chat(user, "You must close the cover to do that.") else if(wiresexposed) - to_chat(user,"You must close the wire panel first.") + to_chat(user, "You must close the wire panel first.") else if(stat & (BROKEN|MAINT)) - to_chat(user,"The [src] isn't working.") + to_chat(user, "The [src] isn't working.") else flick("apc-spark", src) if (do_after(user,6)) emagged = 1 locked = 0 - to_chat(user,"You emag the APC interface.") + to_chat(user, "You emag the APC interface.") update_icon() return 1 @@ -852,13 +852,13 @@ area.power_environ = (environ >= POWERCHAN_ON) // if (area.name == "AI Chamber") // spawn(10) -// world << " [area.name] [area.power_equip]" +// to_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_world("[area.power_equip]") area.power_change() /obj/machinery/power/apc/proc/isWireCut(var/wireIndex) @@ -877,10 +877,10 @@ if(!user.IsAdvancedToolUser()) return 0 if(user.restrained()) - to_chat(user,"Your hands must be free to use [src].") + to_chat(user, "Your hands must be free to use [src].") return 0 if(user.lying) - to_chat(user,"You must stand to use [src]!") + to_chat(user, "You must stand to use [src]!") return 0 autoflag = 5 if (istype(user, /mob/living/silicon)) @@ -895,14 +895,14 @@ if(aidisabled && !permit) if(!loud) - to_chat(user,"\The AI control for [src] has been disabled!") + to_chat(user, "\The AI control for [src] has been disabled!") return 0 else if (!in_range(src, user) || !istype(src.loc, /turf)) return 0 var/mob/living/carbon/human/H = user if (istype(H) && prob(H.getBrainLoss())) - to_chat(user,"You momentarily forget how to use [src].") + to_chat(user, "You momentarily forget how to use [src].") return 0 return 1 @@ -917,10 +917,10 @@ if(isobserver(usr) ) var/mob/observer/dead/O = usr //Added to allow admin nanoUI interactions. if(!O.can_admin_interact() ) //NanoUI /should/ make this not needed, but better safe than sorry. - to_chat(usr,"Try as you might, your ghostly fingers can't press the buttons.") + to_chat(usr, "Try as you might, your ghostly fingers can't press the buttons.") return 1 else - to_chat(usr,"You must unlock the panel to use this!") + to_chat(usr, "You must unlock the panel to use this!") return 1 if (href_list["lock"]) @@ -965,7 +965,7 @@ else if (href_list["toggleaccess"]) if(istype(usr, /mob/living/silicon)) if(emagged || (stat & (BROKEN|MAINT))) - to_chat(usr,"The APC does not respond to the command.") + to_chat(usr, "The APC does not respond to the command.") return locked = !locked update_icon() diff --git a/code/modules/power/cable_heavyduty.dm b/code/modules/power/cable_heavyduty.dm index c90c936c4d..692dcd73d9 100644 --- a/code/modules/power/cable_heavyduty.dm +++ b/code/modules/power/cable_heavyduty.dm @@ -18,10 +18,10 @@ return if(W.is_wirecutter()) - usr << "These cables are too tough to be cut with those [W.name]." + to_chat(usr, "These cables are too tough to be cut with those [W.name].") return else if(istype(W, /obj/item/stack/cable_coil)) - usr << "You will need heavier cables to connect to these." + to_chat(usr, "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 15c5fd11f6..79f232f508 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -263,5 +263,5 @@ /obj/item/weapon/cell/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] - viewers(user) << "\The [user] is licking the electrodes of \the [src]! It looks like [TU.he] [TU.is] trying to commit suicide." + to_chat(viewers(user),"\The [user] is licking the electrodes of \the [src]! It looks like [TU.he] [TU.is] trying to commit suicide.") return (FIRELOSS) \ No newline at end of file diff --git a/code/modules/power/fractal_reactor.dm b/code/modules/power/fractal_reactor.dm index 4270fdbc85..59b6196d30 100644 --- a/code/modules/power/fractal_reactor.dm +++ b/code/modules/power/fractal_reactor.dm @@ -18,7 +18,7 @@ /obj/machinery/power/fractal_reactor/New() ..() if(!mapped_in) - world << "WARNING: Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]" + to_world("WARNING: Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]") /obj/machinery/power/fractal_reactor/process() if(!powernet && !powernet_connection_failed) diff --git a/code/modules/power/generator_type2.dm b/code/modules/power/generator_type2.dm index 7ca407ac9f..cc1e855a91 100644 --- a/code/modules/power/generator_type2.dm +++ b/code/modules/power/generator_type2.dm @@ -69,7 +69,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_world("POWER: [lastgen] W generated at [efficiency*100]% efficiency and sinks sizes [cold_air_heat_capacity], [hot_air_heat_capacity]") if(input1.network) input1.network.update = 1 diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 2c73ebd641..3d198c18b3 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -55,10 +55,10 @@ /obj/machinery/computer/gravity_control_computer/proc/findgenerator() var/obj/machinery/gravity_generator/foundgenerator = null for(dir in list(NORTH,EAST,SOUTH,WEST)) - //world << "SEARCHING IN [dir]" + //to_world("SEARCHING IN [dir]") foundgenerator = locate(/obj/machinery/gravity_generator/, get_step(src, dir)) if (!isnull(foundgenerator)) - //world << "FOUND" + //to_world("FOUND") break return foundgenerator diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm index 20e11aa8a3..4fce8ba158 100644 --- a/code/modules/power/power.dm +++ b/code/modules/power/power.dm @@ -246,7 +246,7 @@ //remove the old powernet and replace it with a new one throughout the network. /proc/propagate_network(var/obj/O, var/datum/powernet/PN) - //world.log << "propagating new network" + //to_world_log("propagating new network") var/list/worklist = list() var/list/found_machines = list() var/index = 1 diff --git a/code/modules/power/profiling.dm b/code/modules/power/profiling.dm index 3cf8c3a0b9..185e413d60 100644 --- a/code/modules/power/profiling.dm +++ b/code/modules/power/profiling.dm @@ -34,14 +34,14 @@ var/global/list/power_update_requests_by_area = list() if(enable_power_update_profiling) enable_power_update_profiling = 0 - usr << "Area power update profiling disabled." + to_chat(usr, "Area power update profiling disabled.") message_admins("[key_name(src)] toggled area power update profiling off.") log_admin("[key_name(src)] toggled area power update profiling off.") else enable_power_update_profiling = 1 power_last_profile_time = world.time - usr << "Area power update profiling enabled." + to_chat(usr, "Area power update profiling enabled.") message_admins("[key_name(src)] toggled area power update profiling on.") log_admin("[key_name(src)] toggled area power update profiling on.") @@ -54,9 +54,9 @@ var/global/list/power_update_requests_by_area = list() if(!check_rights(R_DEBUG)) return - usr << "Total profiling time: [power_profiled_time] ticks" + to_chat(usr, "Total profiling time: [power_profiled_time] ticks") for (var/M in power_update_requests_by_machine) - usr << "[M] = [power_update_requests_by_machine[M]]" + to_chat(usr, "[M] = [power_update_requests_by_machine[M]]") /client/proc/view_power_update_stats_area() set name = "View Area Power Update Statistics By Area" @@ -65,7 +65,7 @@ var/global/list/power_update_requests_by_area = list() if(!check_rights(R_DEBUG)) return - usr << "Total profiling time: [power_profiled_time] ticks" - usr << "Total profiling time: [power_profiled_time] ticks" + to_chat(usr, "Total profiling time: [power_profiled_time] ticks") + to_chat(usr, "Total profiling time: [power_profiled_time] ticks") for (var/A in power_update_requests_by_area) - usr << "[A] = [power_update_requests_by_area[A]]" \ No newline at end of file + to_chat(usr, "[A] = [power_update_requests_by_area[A]]") \ No newline at end of file diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index 8155027bc2..16a4c189c1 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -83,7 +83,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]", \ @@ -95,13 +95,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) if(active) - user << "The [src] needs to be off." + to_chat(user, "The [src] needs to be off.") return else if(W.is_wrench()) switch(state) @@ -120,13 +120,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)) @@ -137,7 +137,7 @@ field_generator power level display if (do_after(user,20 * WT.toolspeed)) 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) @@ -149,7 +149,7 @@ field_generator power level display if (do_after(user,20 * WT.toolspeed)) 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/particle_accelerator/particle.dm b/code/modules/power/singularity/particle_accelerator/particle.dm index 2c3e99318d..e54b46c7f0 100644 --- a/code/modules/power/singularity/particle_accelerator/particle.dm +++ b/code/modules/power/singularity/particle_accelerator/particle.dm @@ -78,7 +78,7 @@ var/radiation = (energy*2) M.apply_effect((radiation*3),IRRADIATE,0) M.updatehealth() - //M << "You feel odd." + //to_chat(M, "You feel odd.") /obj/effect/accelerated_particle/proc/move(var/lag) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index b75a81e1e4..bdcc0ce66f 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -37,7 +37,7 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity) energy = starting_energy ..() - START_PROCESSING(SSobj, src) + START_PROCESSING(SSobj, src) for(var/obj/machinery/power/singularity_beacon/singubeacon in machines) if(singubeacon.active) target = singubeacon @@ -427,11 +427,11 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity) if (istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(istype(H.glasses,/obj/item/clothing/glasses/meson) && current_size != STAGE_SUPER) - 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 else - H << "You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!" - M << "You look directly into The [src.name] and feel [current_size == STAGE_SUPER ? "helpless" : "weak"]." + to_chat(H, "You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!") + to_chat(M, "You look directly into The [src.name] and feel [current_size == STAGE_SUPER ? "helpless" : "weak"].") M.apply_effect(3, STUN) for(var/mob/O in viewers(M, null)) O.show_message(text("[] stares blankly at The []!", M, src), 1) @@ -448,8 +448,8 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity) to_chat(M, "You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.") to_chat(M, "Miraculously, it fails to kill you.") else - M << "You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat." - M << "You don't even have a moment to react as you are reduced to ashes by the intense radiation." + to_chat(M, "You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.") + to_chat(M, "You don't even have a moment to react as you are reduced to ashes by the intense radiation.") M.dust() SSradiation.radiate(src, rand(energy)) return diff --git a/code/modules/projectiles/dnalocking.dm b/code/modules/projectiles/dnalocking.dm index e4ff374fc4..3b966332ac 100644 --- a/code/modules/projectiles/dnalocking.dm +++ b/code/modules/projectiles/dnalocking.dm @@ -18,17 +18,17 @@ if(!attached_lock.controller_lock) if(!attached_lock.stored_dna && !(M.dna in attached_lock.stored_dna)) - M << "\The [src] buzzes and displays a symbol showing the gun already contains your DNA." + to_chat(M, "\The [src] buzzes and displays a symbol showing the gun already contains your DNA.") return 0 else attached_lock.stored_dna += M.dna - M << "\The [src] pings and a needle flicks out from the grip, taking a DNA sample from you." + to_chat(M, "\The [src] pings and a needle flicks out from the grip, taking a DNA sample from you.") if(!attached_lock.controller_dna) attached_lock.controller_dna = M.dna - M << "\The [src] processes the dna sample and pings, acknowledging you as the primary controller." + to_chat(M, "\The [src] processes the dna sample and pings, acknowledging you as the primary controller.") return 1 else - M << "\The [src] buzzes and displays a locked symbol. It is not allowing DNA samples at this time." + to_chat(M, "\The [src] buzzes and displays a locked symbol. It is not allowing DNA samples at this time.") return 0 /obj/item/weapon/gun/verb/give_dna() @@ -41,19 +41,19 @@ var/mob/living/M = user if(!attached_lock.controller_lock) if(!authorized_user(M)) - M << "\The [src] buzzes and displays an invalid user symbol." + to_chat(M, "\The [src] buzzes and displays an invalid user symbol.") return 0 else attached_lock.stored_dna -= user.dna - M << "\The [src] beeps and clears the DNA it has stored." + to_chat(M, "\The [src] beeps and clears the DNA it has stored.") if(M.dna == attached_lock.controller_dna) attached_lock.controller_dna = null - M << "\The [src] beeps and removes you as the primary controller." + to_chat(M, "\The [src] beeps and removes you as the primary controller.") if(attached_lock.controller_lock) attached_lock.controller_lock = 0 return 1 else - M << "\The [src] buzzes and displays a locked symbol. It is not allowing DNA modifcation at this time." + to_chat(M, "\The [src] buzzes and displays a locked symbol. It is not allowing DNA modifcation at this time.") return 0 /obj/item/weapon/gun/verb/remove_dna() @@ -67,12 +67,12 @@ if(authorized_user(M) && user.dna == attached_lock.controller_dna) if(!attached_lock.controller_lock) attached_lock.controller_lock = 1 - M << "\The [src] beeps and displays a locked symbol, informing you it will no longer allow DNA samples." + to_chat(M, "\The [src] beeps and displays a locked symbol, informing you it will no longer allow DNA samples.") else attached_lock.controller_lock = 0 - M << "\The [src] beeps and displays an unlocked symbol, informing you it will now allow DNA samples." + to_chat(M, "\The [src] beeps and displays an unlocked symbol, informing you it will now allow DNA samples.") else - M << "\The [src] buzzes and displays an invalid user symbol." + to_chat(M, "\The [src] buzzes and displays an invalid user symbol.") /obj/item/weapon/gun/verb/allow_dna() set name = "Toggle DNA Samples Allowance" diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index c28e2b0588..1c7643061c 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -109,12 +109,12 @@ /obj/item/weapon/gun/energy/proc/load_ammo(var/obj/item/C, mob/user) if(istype(C, /obj/item/weapon/cell)) if(self_recharge || battery_lock) - user << "[src] does not have a battery port." + to_chat(user, "[src] does not have a battery port.") return if(istype(C, accept_cell_type)) var/obj/item/weapon/cell/P = C if(power_supply) - user << "[src] already has a power cell." + to_chat(user, "[src] already has a power cell.") else user.visible_message("[user] is reloading [src].", "You start to insert [P] into [src].") if(do_after(user, 5 * P.w_class)) @@ -126,12 +126,12 @@ update_icon() update_held_icon() else - user << "This cell is not fitted for [src]." + to_chat(user, "This cell is not fitted for [src].") return /obj/item/weapon/gun/energy/proc/unload_ammo(mob/user) if(self_recharge || battery_lock) - user << "[src] does not have a battery port." + to_chat(user, "[src] does not have a battery port.") return if(power_supply) user.put_in_hands(power_supply) @@ -142,7 +142,7 @@ update_icon() update_held_icon() else - user << "[src] does not have a power cell." + to_chat(user, "[src] does not have a power cell.") /obj/item/weapon/gun/energy/attackby(var/obj/item/A as obj, mob/user as mob) ..() diff --git a/code/modules/projectiles/guns/energy/laser.dm b/code/modules/projectiles/guns/energy/laser.dm index f6321947b2..e64abf8533 100644 --- a/code/modules/projectiles/guns/energy/laser.dm +++ b/code/modules/projectiles/guns/energy/laser.dm @@ -234,7 +234,7 @@ /obj/item/weapon/gun/energy/lasertag/special_check(var/mob/living/carbon/human/M) if(ishuman(M)) if(!istype(M.wear_suit, required_vest)) - M << "You need to be wearing your laser tag vest!" + to_chat(M, "You need to be wearing your laser tag vest!") return 0 return ..() diff --git a/code/modules/projectiles/guns/energy/particle.dm b/code/modules/projectiles/guns/energy/particle.dm index c586d19617..a9ce49bf52 100644 --- a/code/modules/projectiles/guns/energy/particle.dm +++ b/code/modules/projectiles/guns/energy/particle.dm @@ -134,9 +134,9 @@ /obj/item/weapon/gun/energy/particle/attackby(var/obj/item/A as obj, mob/user as mob) if(istype(A, /obj/item/pressurelock)) if(safetycatch) - user << "\The [src] already has a [attached_safety]." + to_chat(user, "\The [src] already has a [attached_safety].") return - user << "You insert \the [A] into \the [src]." + to_chat(user, "You insert \the [A] into \the [src].") user.drop_item() A.loc = src attached_safety = A @@ -145,9 +145,9 @@ if(istype(A, /obj/item/weapon/tool/screwdriver)) if(safetycatch && attached_safety) - user << "You begin removing \the [attached_safety] from \the [src]." + to_chat(user, "You begin removing \the [attached_safety] from \the [src].") if(do_after(user, 25)) - user << "You remove \the [attached_safety] from \the [src]." + to_chat(user, "You remove \the [attached_safety] from \the [src].") user.put_in_hands(attached_safety) safetycatch = 0 attached_safety = null diff --git a/code/modules/projectiles/guns/energy/pulse.dm b/code/modules/projectiles/guns/energy/pulse.dm index 30eb8ecd37..d2e5edf997 100644 --- a/code/modules/projectiles/guns/energy/pulse.dm +++ b/code/modules/projectiles/guns/energy/pulse.dm @@ -26,7 +26,7 @@ charge_cost = 120 /obj/item/weapon/gun/energy/pulse_rifle/destroyer/attack_self(mob/living/user as mob) - user << "[src.name] has three settings, and they are all DESTROY." + to_chat(user, "[src.name] has three settings, and they are all DESTROY.") //WHY? /obj/item/weapon/gun/energy/pulse_rifle/M1911 diff --git a/code/modules/projectiles/guns/launcher.dm b/code/modules/projectiles/guns/launcher.dm index 869f6c8b60..412a032d3a 100644 --- a/code/modules/projectiles/guns/launcher.dm +++ b/code/modules/projectiles/guns/launcher.dm @@ -15,7 +15,7 @@ //Override this to avoid a runtime with suicide handling. /obj/item/weapon/gun/launcher/handle_suicide(mob/living/user) - user << "Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it." + to_chat(user, "Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it.") return /obj/item/weapon/gun/launcher/proc/update_release_force(obj/item/projectile) diff --git a/code/modules/projectiles/guns/launcher/crossbow.dm b/code/modules/projectiles/guns/launcher/crossbow.dm index a8458b1676..b94c2ab232 100644 --- a/code/modules/projectiles/guns/launcher/crossbow.dm +++ b/code/modules/projectiles/guns/launcher/crossbow.dm @@ -40,7 +40,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/material/shard/shrapnel/S = new() S.loc = get_turf(src) qdel(src) @@ -68,7 +68,7 @@ /obj/item/weapon/gun/launcher/crossbow/consume_next_projectile(mob/user=null) if(tension <= 0) - user << "\The [src] is not drawn back!" + to_chat(user, "\The [src] is not drawn back!") return null return bolt @@ -96,7 +96,7 @@ /obj/item/weapon/gun/launcher/crossbow/proc/draw(var/mob/user as mob) if(!bolt) - user << "You don't have anything nocked to [src]." + to_chat(user, "You don't have anything nocked to [src].") return if(user.restrained()) @@ -122,7 +122,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!") return user.visible_message("[usr] draws back the string of [src]!","You continue drawing back the string of [src]!") @@ -157,20 +157,20 @@ user.drop_item() cell = W cell.loc = src - 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(W.is_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].") playsound(src, W.usesound, 50, 1) cell = null else - user << "[src] doesn't have a cell installed." + to_chat(user, "[src] doesn't have a cell installed.") else ..() @@ -181,7 +181,7 @@ if(bolt.throwforce >= 15) return if(!istype(bolt,/obj/item/weapon/arrow/rod)) return - user << "[bolt] plinks and crackles as it begins to glow red-hot." + to_chat(user, "[bolt] plinks and crackles as it begins to glow red-hot.") bolt.throwforce = 15 bolt.icon_state = "metal-rod-superheated" cell.use(500) @@ -210,22 +210,27 @@ /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) if(istype(W,/obj/item/stack/rods)) if(buildstate == 0) var/obj/item/stack/rods/R = W if(R.use(3)) - user << "You assemble a backbone of rods around the wooden stock." + to_chat(user, "You assemble a backbone of rods around the wooden stock.") buildstate++ update_icon() else - user << "You need at least three rods to complete this task." + to_chat(user, "You need at least three rods to complete this task.") return else if(istype(W, /obj/item/weapon/weldingtool)) if(buildstate == 1) @@ -233,7 +238,7 @@ if(T.remove_fuel(0,user)) if(!src || !T.isOn()) return playsound(src, W.usesound, 50, 1) - user << "You weld the rods into place." + to_chat(user, "You weld the rods into place.") buildstate++ update_icon() return @@ -241,33 +246,33 @@ var/obj/item/stack/cable_coil/C = W if(buildstate == 2) if(C.use(5)) - user << "You wire a crude cell mount into the top of the crossbow." + to_chat(user, "You wire a crude cell mount into the top of the crossbow.") buildstate++ update_icon() else - user << "You need at least five segments of cable coil to complete this task." + to_chat(user, "You need at least five segments of cable coil to complete this task.") return else if(buildstate == 4) if(C.use(5)) - user << "You string a steel cable across the crossbow's lath." + to_chat(user, "You string a steel cable across the crossbow's lath.") buildstate++ update_icon() else - user << "You need at least five segments of cable coil to complete this task." + to_chat(user, "You need at least five segments of cable coil to complete this task.") return else if(istype(W,/obj/item/stack/material) && W.get_material_name() == "plastic") if(buildstate == 3) var/obj/item/stack/material/P = W if(P.use(3)) - user << "You assemble and install a heavy plastic lath onto the crossbow." + to_chat(user, "You assemble and install a heavy plastic lath onto the crossbow.") buildstate++ update_icon() else - user << "You need at least three plastic sheets to complete this task." + to_chat(user, "You need at least three plastic sheets to complete this task.") return else if(W.is_screwdriver()) if(buildstate == 5) - user << "You secure the crossbow's various parts." + to_chat(user, "You secure the crossbow's various parts.") playsound(src, W.usesound, 50, 1) new /obj/item/weapon/gun/launcher/crossbow(get_turf(src)) qdel(src) diff --git a/code/modules/projectiles/guns/launcher/grenade_launcher.dm b/code/modules/projectiles/guns/launcher/grenade_launcher.dm index 38d84f384a..c016fe0797 100644 --- a/code/modules/projectiles/guns/launcher/grenade_launcher.dm +++ b/code/modules/projectiles/guns/launcher/grenade_launcher.dm @@ -30,29 +30,29 @@ if(next) grenades -= next //Remove grenade from loaded list. chambered = next - M << "You pump [src], loading \a [next] into the chamber." + to_chat(M, "You pump [src], loading \a [next] into the chamber.") else - M << "You pump [src], but the magazine is empty." + to_chat(M, "You pump [src], but the magazine is empty.") update_icon() /obj/item/weapon/gun/launcher/grenade/examine(mob/user) if(..(user, 2)) var/grenade_count = grenades.len + (chambered? 1 : 0) - user << "Has [grenade_count] grenade\s remaining." + to_chat(user, "Has [grenade_count] grenade\s remaining.") if(chambered) - user << "\A [chambered] is chambered." + to_chat(user, "\A [chambered] is chambered.") /obj/item/weapon/gun/launcher/grenade/proc/load(obj/item/weapon/grenade/G, mob/user) if(G.loadable) if(grenades.len >= max_grenades) - user << "[src] is full." + to_chat(user, "[src] is full.") return user.remove_from_mob(G) G.loc = src grenades.Insert(1, G) //add to the head of the list, so that it is loaded on the next pump user.visible_message("[user] inserts \a [G] into [src].", "You insert \a [G] into [src].") return - user << "[G] doesn't seem to fit in the [src]!" + to_chat(user, "[G] doesn't seem to fit in the [src]!") /obj/item/weapon/gun/launcher/grenade/proc/unload(mob/user) if(grenades.len) @@ -62,7 +62,7 @@ user.visible_message("[user] removes \a [G] from [src].", "You remove \a [G] from [src].") playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) else - user << "[src] is empty." + to_chat(user, "[src] is empty.") /obj/item/weapon/gun/launcher/grenade/attack_self(mob/user) pump(user) @@ -105,14 +105,14 @@ /obj/item/weapon/gun/launcher/grenade/underslung/load(obj/item/weapon/grenade/G, mob/user) if(G.loadable) if(chambered) - user << "[src] is already loaded." + to_chat(user, "[src] is already loaded.") return user.remove_from_mob(G) G.loc = src chambered = G user.visible_message("[user] load \a [G] into [src].", "You load \a [G] into [src].") return - user << "[G] doesn't seem to fit in the [src]!" + to_chat(user, "[G] doesn't seem to fit in the [src]!") /obj/item/weapon/gun/launcher/grenade/underslung/unload(mob/user) if(chambered) @@ -121,4 +121,4 @@ playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) chambered = null else - user << "[src] is empty." \ No newline at end of file + to_chat(user, "[src] is empty.") \ No newline at end of file diff --git a/code/modules/projectiles/guns/launcher/pneumatic.dm b/code/modules/projectiles/guns/launcher/pneumatic.dm index 45be1c017e..c9bfa465f6 100644 --- a/code/modules/projectiles/guns/launcher/pneumatic.dm +++ b/code/modules/projectiles/guns/launcher/pneumatic.dm @@ -35,14 +35,14 @@ var/N = input("Percentage of tank used per shot:","[src]") as null|anything in possible_pressure_amounts if (N) pressure_setting = N - usr << "You dial the pressure valve to [pressure_setting]%." + to_chat(usr, "You dial the pressure valve to [pressure_setting]%.") /obj/item/weapon/gun/launcher/pneumatic/proc/eject_tank(mob/user) //Remove the tank. if(!tank) - user << "There's no tank in [src]." + to_chat(user, "There's no tank in [src].") return - user << "You twist the valve and pop the tank out of [src]." + to_chat(user, "You twist the valve and pop the tank out of [src].") user.put_in_hands(tank) tank = null update_icon() @@ -52,10 +52,10 @@ var/obj/item/removing = item_storage.contents[item_storage.contents.len] item_storage.remove_from_storage(removing, src.loc) user.put_in_hands(removing) - user << "You remove [removing] from the hopper." + to_chat(user, "You remove [removing] from the hopper.") playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) else - user << "There is nothing to remove in \the [src]." + to_chat(user, "There is nothing to remove in \the [src].") /obj/item/weapon/gun/launcher/pneumatic/attack_hand(mob/user as mob) if(user.get_inactive_hand() == src) @@ -79,7 +79,7 @@ if(!item_storage.contents.len) return null if (!tank) - user << "There is no gas tank in [src]!" + to_chat(user, "There is no gas tank in [src]!") return null var/environment_pressure = 10 @@ -91,7 +91,7 @@ fire_pressure = (tank.air_contents.return_pressure() - environment_pressure)*pressure_setting/100 if(fire_pressure < 10) - user << "There isn't enough gas in the tank to fire [src]." + to_chat(user, "There isn't enough gas in the tank to fire [src].") return null var/obj/item/launched = item_storage.contents[1] @@ -101,11 +101,11 @@ /obj/item/weapon/gun/launcher/pneumatic/examine(mob/user) if(!..(user, 2)) return - user << "The valve is dialed to [pressure_setting]%." + to_chat(user, "The valve is dialed to [pressure_setting]%.") if(tank) - user << "The tank dial reads [tank.air_contents.return_pressure()] kPa." + to_chat(user, "The tank dial reads [tank.air_contents.return_pressure()] kPa.") else - user << "Nothing is attached to the tank valve!" + to_chat(user, "Nothing is attached to the tank valve!") /obj/item/weapon/gun/launcher/pneumatic/update_release_force(obj/item/projectile) if(tank) @@ -152,18 +152,23 @@ /obj/item/weapon/cannonframe/examine(mob/user) ..(user) switch(buildstate) - if(1) user << "It has a pipe segment installed." - if(2) user << "It has a pipe segment welded in place." - if(3) user << "It has an outer chassis installed." - if(4) user << "It has an outer chassis welded in place." - if(5) user << "It has a transfer valve installed." + if(1) + to_chat(user, "It has a pipe segment installed.") + if(2) + to_chat(user, "It has a pipe segment welded in place.") + if(3) + to_chat(user, "It has an outer chassis installed.") + if(4) + to_chat(user, "It has an outer chassis welded in place.") + if(5) + to_chat(user, "It has a transfer valve installed.") /obj/item/weapon/cannonframe/attackby(obj/item/W as obj, mob/user as mob) if(istype(W,/obj/item/pipe)) if(buildstate == 0) user.drop_from_inventory(W) qdel(W) - user << "You secure the piping inside the frame." + to_chat(user, "You secure the piping inside the frame.") buildstate++ update_icon() return @@ -171,17 +176,17 @@ if(buildstate == 2) var/obj/item/stack/material/M = W if(M.use(5)) - user << "You assemble a chassis around the cannon frame." + to_chat(user, "You assemble a chassis around the cannon frame.") buildstate++ update_icon() else - user << "You need at least five metal sheets to complete this task." + to_chat(user, "You need at least five metal sheets to complete this task.") return else if(istype(W,/obj/item/device/transfer_valve)) if(buildstate == 4) user.drop_from_inventory(W) qdel(W) - user << "You install the transfer valve and connect it to the piping." + to_chat(user, "You install the transfer valve and connect it to the piping.") buildstate++ update_icon() return @@ -191,7 +196,7 @@ if(T.remove_fuel(0,user)) if(!src || !T.isOn()) return playsound(src, W.usesound, 100, 1) - user << "You weld the pipe into place." + to_chat(user, "You weld the pipe into place.") buildstate++ update_icon() if(buildstate == 3) @@ -199,7 +204,7 @@ if(T.remove_fuel(0,user)) if(!src || !T.isOn()) return playsound(src, W.usesound, 100, 1) - user << "You weld the metal chassis together." + to_chat(user, "You weld the metal chassis together.") buildstate++ update_icon() if(buildstate == 5) @@ -207,7 +212,7 @@ if(T.remove_fuel(0,user)) if(!src || !T.isOn()) return playsound(src, W.usesound, 100, 1) - user << "You weld the valve into place." + to_chat(user, "You weld the valve into place.") new /obj/item/weapon/gun/launcher/pneumatic(get_turf(src)) qdel(src) return diff --git a/code/modules/projectiles/guns/launcher/rocket.dm b/code/modules/projectiles/guns/launcher/rocket.dm index 21fdbb14f6..13bb0025d6 100644 --- a/code/modules/projectiles/guns/launcher/rocket.dm +++ b/code/modules/projectiles/guns/launcher/rocket.dm @@ -19,7 +19,7 @@ /obj/item/weapon/gun/launcher/rocket/examine(mob/user) if(!..(user, 2)) return - user << "[rockets.len] / [max_rockets] rockets." + to_chat(user, "[rockets.len] / [max_rockets] rockets.") /obj/item/weapon/gun/launcher/rocket/attackby(obj/item/I as obj, mob/user as mob) if(istype(I, /obj/item/ammo_casing/rocket)) @@ -27,10 +27,10 @@ user.drop_item() I.loc = src rockets += I - user << "You put the rocket in [src]." - user << "[rockets.len] / [max_rockets] rockets." + to_chat(user, "You put the rocket in [src].") + to_chat(user, "[rockets.len] / [max_rockets] rockets.") else - usr << "[src] cannot hold more rockets." + to_chat(usr, "[src] cannot hold more rockets.") /obj/item/weapon/gun/launcher/rocket/consume_next_projectile() if(rockets.len) diff --git a/code/modules/projectiles/guns/launcher/syringe_gun.dm b/code/modules/projectiles/guns/launcher/syringe_gun.dm index 434f317d88..17778ffae4 100644 --- a/code/modules/projectiles/guns/launcher/syringe_gun.dm +++ b/code/modules/projectiles/guns/launcher/syringe_gun.dm @@ -20,7 +20,7 @@ /obj/item/weapon/syringe_cartridge/attackby(obj/item/I, mob/user) if(istype(I, /obj/item/weapon/reagent_containers/syringe)) syringe = I - user << "You carefully insert [syringe] into [src]." + to_chat(user, "You carefully insert [syringe] into [src].") user.remove_from_mob(syringe) syringe.loc = src sharp = 1 @@ -29,7 +29,7 @@ /obj/item/weapon/syringe_cartridge/attack_self(mob/user) if(syringe) - user << "You remove [syringe] from [src]." + to_chat(user, "You remove [syringe] from [src].") playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) user.put_in_hands(syringe) syringe = null @@ -105,10 +105,10 @@ /obj/item/weapon/gun/launcher/syringe/attack_hand(mob/living/user as mob) if(user.get_inactive_hand() == src) if(!darts.len) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return if(next) - user << "[src]'s cover is locked shut." + to_chat(user, "[src]'s cover is locked shut.") return var/obj/item/weapon/syringe_cartridge/C = darts[1] darts -= C @@ -122,7 +122,7 @@ if(istype(A, /obj/item/weapon/syringe_cartridge)) var/obj/item/weapon/syringe_cartridge/C = A if(darts.len >= max_darts) - user << "[src] is full!" + to_chat(user, "[src] is full!") return user.remove_from_mob(C) C.loc = src diff --git a/code/modules/projectiles/guns/projectile.dm b/code/modules/projectiles/guns/projectile.dm index d0549bbf4c..b7b797a1a3 100644 --- a/code/modules/projectiles/guns/projectile.dm +++ b/code/modules/projectiles/guns/projectile.dm @@ -106,12 +106,12 @@ if(istype(A, /obj/item/ammo_magazine)) var/obj/item/ammo_magazine/AM = A if(!(load_method & AM.mag_type) || caliber != AM.caliber || allowed_magazines && !is_type_in_list(A, allowed_magazines)) - user << "[AM] won't load into [src]!" + to_chat(user, "[AM] won't load into [src]!") return switch(AM.mag_type) if(MAGAZINE) if(ammo_magazine) - user << "[src] already has a magazine loaded." //already a magazine here + to_chat(user, "[src] already has a magazine loaded.") //already a magazine here return user.remove_from_mob(AM) AM.loc = src @@ -120,7 +120,7 @@ playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) if(SPEEDLOADER) if(loaded.len >= max_shells) - user << "[src] is full!" + to_chat(user, "[src] is full!") return var/count = 0 for(var/obj/item/ammo_casing/C in AM.stored_ammo) @@ -140,7 +140,7 @@ if(!(load_method & SINGLE_CASING) || caliber != C.caliber) return //incompatible if(loaded.len >= max_shells) - user << "[src] is full." + to_chat(user, "[src] is full.") return user.remove_from_mob(C) @@ -154,7 +154,7 @@ if(!(load_method & SINGLE_CASING)) return //incompatible - user << "You start loading \the [src]." + to_chat(user, "You start loading \the [src].") sleep(1 SECOND) for(var/obj/item/ammo_casing/ammo in storage.contents) if(caliber != ammo.caliber) @@ -163,7 +163,7 @@ load_ammo(ammo, user) if(loaded.len >= max_shells) - user << "[src] is full." + to_chat(user, "[src] is full.") break sleep(1 SECOND) @@ -196,7 +196,7 @@ user.visible_message("[user] removes \a [C] from [src].", "You remove \a [C] from [src].") playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) else - user << "[src] is empty." + to_chat(user, "[src] is empty.") update_icon() /obj/item/weapon/gun/projectile/attackby(var/obj/item/A as obj, mob/user as mob) @@ -232,8 +232,8 @@ /obj/item/weapon/gun/projectile/examine(mob/user) ..(user) if(ammo_magazine) - user << "It has \a [ammo_magazine] loaded." - user << "Has [getAmmo()] round\s remaining." + to_chat(user, "It has \a [ammo_magazine] loaded.") + to_chat(user, "Has [getAmmo()] round\s remaining.") return /obj/item/weapon/gun/projectile/proc/getAmmo() diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index a9d3125253..fd2e9ca191 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -188,9 +188,9 @@ /obj/item/weapon/gun/projectile/automatic/z8/examine(mob/user) ..() if(launcher.chambered) - user << "\The [launcher] has \a [launcher.chambered] loaded." + to_chat(user, "\The [launcher] has \a [launcher.chambered] loaded.") else - user << "\The [launcher] is empty." + to_chat(user, "\The [launcher] is empty.") /obj/item/weapon/gun/projectile/automatic/l6_saw name = "light machine gun" @@ -230,13 +230,13 @@ /obj/item/weapon/gun/projectile/automatic/l6_saw/special_check(mob/user) 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!") return 0 return ..() /obj/item/weapon/gun/projectile/automatic/l6_saw/proc/toggle_cover(mob/user) 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() update_held_icon() @@ -263,13 +263,13 @@ /obj/item/weapon/gun/projectile/automatic/l6_saw/load_ammo(var/obj/item/A, mob/user) if(!cover_open) - user << "You need to open the cover to load [src]." + to_chat(user, "You need to open the cover to load [src].") return ..() /obj/item/weapon/gun/projectile/automatic/l6_saw/unload_ammo(mob/user, var/allow_dump=1) if(!cover_open) - user << "You need to open the cover to unload [src]." + to_chat(user, "You need to open the cover to unload [src].") return ..() diff --git a/code/modules/projectiles/guns/projectile/boltaction.dm b/code/modules/projectiles/guns/projectile/boltaction.dm index 8e579d659f..0555fb31de 100644 --- a/code/modules/projectiles/guns/projectile/boltaction.dm +++ b/code/modules/projectiles/guns/projectile/boltaction.dm @@ -27,7 +27,7 @@ // Stole hacky terrible code from doublebarrel shotgun. -Spades /obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial/attackby(var/obj/item/A as obj, mob/user as mob) if(istype(A, /obj/item/weapon/surgical/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter) && w_class != ITEMSIZE_NORMAL) - user << "You begin to shorten the barrel and stock of \the [src]." + to_chat(user, "You begin to shorten the barrel and stock of \the [src].") if(loaded.len) afterattack(user, user) playsound(user, fire_sound, 50, 1) diff --git a/code/modules/projectiles/guns/projectile/dartgun.dm b/code/modules/projectiles/guns/projectile/dartgun.dm index 4958accb64..861773521b 100644 --- a/code/modules/projectiles/guns/projectile/dartgun.dm +++ b/code/modules/projectiles/guns/projectile/dartgun.dm @@ -105,25 +105,25 @@ // return ..() if (beakers.len) - user << "[src] contains:" + to_chat(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]" + to_chat(user, "[R.volume] units of [R.name]") /obj/item/weapon/gun/projectile/dartgun/attackby(obj/item/I as obj, mob/user as mob) 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 user.drop_item() B.loc = src beakers += B - user << "You slot [B] into [src]." + to_chat(user, "You slot [B] into [src].") src.updateUsrDialog() return 1 ..() @@ -194,7 +194,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.loc = get_turf(src) diff --git a/code/modules/projectiles/guns/projectile/pistol.dm b/code/modules/projectiles/guns/projectile/pistol.dm index 7a32ea21fa..8426448d6c 100644 --- a/code/modules/projectiles/guns/projectile/pistol.dm +++ b/code/modules/projectiles/guns/projectile/pistol.dm @@ -35,14 +35,14 @@ if(!M.mind) return 0 var/job = M.mind.assigned_role if(job != "Detective" && job != "Security Officer" && job != "Warden" && job != "Head of Security") - M << "You don't feel cool enough to name this gun, chump." + to_chat(M, "You don't feel cool enough to name this gun, chump.") return 0 var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) 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/colt/detective/verb/reskin_gun() @@ -65,7 +65,7 @@ if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] unique_reskin = options[choice] - M << "Your gun is now sprited as [choice]. Say hello to your new friend." + to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.") return 1 /*//apart of reskins that have two sprites, touching may result in frustration and breaks @@ -200,7 +200,7 @@ if(!user.item_is_in_hands(src)) ..() return - user << "You unscrew [silenced] from [src]." + to_chat(user, "You unscrew [silenced] from [src].") user.put_in_hands(silenced) silenced = 0 w_class = ITEMSIZE_SMALL @@ -211,10 +211,10 @@ /obj/item/weapon/gun/projectile/pistol/attackby(obj/item/I as obj, mob/living/user as mob) if(istype(I, /obj/item/weapon/silencer)) if(!user.item_is_in_hands(src)) //if we're not in his hands - 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 [I] onto [src]." + to_chat(user, "You screw [I] onto [src].") silenced = I //dodgy? w_class = ITEMSIZE_NORMAL I.loc = src //put the silencer into the gun diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index ee04e27653..c9f6f917c8 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -56,14 +56,14 @@ var/mob/M = usr if(!M.mind) return 0 if(!M.mind.assigned_role == "Detective") - M << "You don't feel cool enough to name this gun, chump." + to_chat(M, "You don't feel cool enough to name this gun, chump.") return 0 var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) 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/detective45 @@ -85,14 +85,14 @@ obj/item/weapon/gun/projectile/revolver/detective45/verb/rename_gun() if(!M.mind) return 0 var/job = M.mind.assigned_role if(job != "Detective") - M << "You don't feel cool enough to name this gun, chump." + to_chat(M, "You don't feel cool enough to name this gun, chump.") return 0 var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) 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/detective45/verb/reskin_gun() @@ -114,7 +114,7 @@ obj/item/weapon/gun/projectile/revolver/detective45/verb/rename_gun() var/choice = input(M,"Choose your sprite!","Resprite Gun") in options if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] - M << "Your gun is now sprited as [choice]. Say hello to your new friend." + to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.") return 1 diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 315c6edca0..74896b6b6a 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -104,7 +104,7 @@ //this is largely hacky and bad :( -Pete /obj/item/weapon/gun/projectile/shotgun/doublebarrel/attackby(var/obj/item/A as obj, mob/user as mob) if(istype(A, /obj/item/weapon/surgical/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter)) - user << "You begin to shorten the barrel of \the [src]." + to_chat(user, "You begin to shorten the barrel of \the [src].") if(loaded.len) var/burstsetting = burst burst = 2 diff --git a/code/modules/projectiles/guns/projectile/sniper.dm b/code/modules/projectiles/guns/projectile/sniper.dm index 76a6faf1d7..e68bb620ba 100644 --- a/code/modules/projectiles/guns/projectile/sniper.dm +++ b/code/modules/projectiles/guns/projectile/sniper.dm @@ -32,21 +32,21 @@ bolt_open = !bolt_open if(bolt_open) if(chambered) - user << "You work the bolt open, ejecting [chambered]!" + to_chat(user, "You work the bolt open, ejecting [chambered]!") chambered.loc = get_turf(src) loaded -= chambered chambered = null else - user << "You work the bolt open." + to_chat(user, "You work the bolt open.") else - user << "You work the bolt closed." + to_chat(user, "You work the bolt closed.") bolt_open = 0 add_fingerprint(user) update_icon() /obj/item/weapon/gun/projectile/heavysniper/special_check(mob/user) if(bolt_open) - user << "You can't fire [src] while the bolt is open!" + to_chat(user, "You can't fire [src] while the bolt is open!") return 0 return ..() diff --git a/code/modules/projectiles/projectile/change.dm b/code/modules/projectiles/projectile/change.dm index 9c30436930..d2cb729644 100644 --- a/code/modules/projectiles/projectile/change.dm +++ b/code/modules/projectiles/projectile/change.dm @@ -92,10 +92,10 @@ else new_mob.key = M.key - new_mob << "Your form morphs into that of \a [lowertext(randomize)]." + to_chat(new_mob, "Your form morphs into that of \a [lowertext(randomize)].") qdel(M) return else - M << "Your form morphs into that of \a [lowertext(randomize)]." + to_chat(M, "Your form morphs into that of \a [lowertext(randomize)].") return \ No newline at end of file diff --git a/code/modules/projectiles/targeting/targeting_overlay.dm b/code/modules/projectiles/targeting/targeting_overlay.dm index 2c7f75cc96..843df371df 100644 --- a/code/modules/projectiles/targeting/targeting_overlay.dm +++ b/code/modules/projectiles/targeting/targeting_overlay.dm @@ -72,7 +72,7 @@ else return - owner << "[aiming_at ? "\The [aiming_at] is" : "Your targets are"] [message]." + to_chat(owner, "[aiming_at ? "\The [aiming_at] is" : "Your targets are"] [message].") if(aiming_at) to_chat(aiming_at, "You are [message].") diff --git a/code/modules/projectiles/targeting/targeting_triggers.dm b/code/modules/projectiles/targeting/targeting_triggers.dm index 188440dcf6..3563727fc1 100644 --- a/code/modules/projectiles/targeting/targeting_triggers.dm +++ b/code/modules/projectiles/targeting/targeting_triggers.dm @@ -21,7 +21,7 @@ return owner.setClickCooldown(5) // Spam prevention, essentially. if(owner.a_intent == I_HELP && owner.is_preference_enabled(/datum/client_preference/safefiring)) - owner << "You refrain from firing \the [aiming_with] as your intent is set to help." + to_chat(owner, "You refrain from firing \the [aiming_with] as your intent is set to help.") return owner.visible_message("\The [owner] pulls the trigger reflexively!") var/obj/item/weapon/gun/G = aiming_with diff --git a/code/modules/random_map/drop/droppod.dm b/code/modules/random_map/drop/droppod.dm index 1d5fcb8d8f..454eb1cc04 100644 --- a/code/modules/random_map/drop/droppod.dm +++ b/code/modules/random_map/drop/droppod.dm @@ -177,7 +177,7 @@ candidates |= player if(!candidates.len) - usr << "There are no candidates for a drop pod launch." + to_chat(usr, "There are no candidates for a drop pod launch.") return // Get a player and a mob type. diff --git a/code/modules/random_map/drop/droppod_doors.dm b/code/modules/random_map/drop/droppod_doors.dm index 7009a5885b..afabe1335b 100644 --- a/code/modules/random_map/drop/droppod_doors.dm +++ b/code/modules/random_map/drop/droppod_doors.dm @@ -26,7 +26,7 @@ /obj/structure/droppod_door/attack_hand(var/mob/user) if(deploying) return - user << "You prime the explosive bolts. Better get clear!" + to_chat(user, "You prime the explosive bolts. Better get clear!") sleep(30) deploy() diff --git a/code/modules/random_map/random_map.dm b/code/modules/random_map/random_map.dm index 72d52ae4d0..d36e7a80a1 100644 --- a/code/modules/random_map/random_map.dm +++ b/code/modules/random_map/random_map.dm @@ -105,7 +105,7 @@ var/global/list/map_count = list() if(current_cell) dat += get_map_char(map[current_cell]) dat += "
" - user << "[dat]+------+" + to_chat(user, "[dat]+------+") /datum/random_map/proc/set_map_size() map = list() diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm index 0171551226..ead972b7f4 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm @@ -184,17 +184,17 @@ if(istype(O, /obj/item/weapon/paper)) var/obj/item/weapon/paper/paperaffected = O paperaffected.clearpaper() - usr << "The solution dissolves the ink on the paper." + to_chat(usr, "The solution dissolves the ink on the paper.") return if(istype(O, /obj/item/weapon/book)) if(volume < 5) return if(istype(O, /obj/item/weapon/book/tome)) - usr << "The solution does nothing. Whatever this is, it isn't normal ink." + to_chat(usr, "The solution does nothing. Whatever this is, it isn't normal ink.") return var/obj/item/weapon/book/affectedbook = O affectedbook.dat = null - usr << "The solution dissolves the ink on the book." + to_chat(usr, "The solution dissolves the ink on the book.") return /datum/reagent/fluorine @@ -352,11 +352,11 @@ var/mob/living/carbon/human/H = M if(H.head) if(H.head.unacidable) - H << "Your [H.head] protects you from the acid." + to_chat(H, "Your [H.head] protects you from the acid.") remove_self(volume) return else if(removed > meltdose) - H << "Your [H.head] melts away!" + to_chat(H, "Your [H.head] melts away!") qdel(H.head) H.update_inv_head(1) H.update_hair(1) @@ -366,11 +366,11 @@ if(H.wear_mask) if(H.wear_mask.unacidable) - H << "Your [H.wear_mask] protects you from the acid." + to_chat(H, "Your [H.wear_mask] protects you from the acid.") remove_self(volume) return else if(removed > meltdose) - H << "Your [H.wear_mask] melts away!" + to_chat(H, "Your [H.wear_mask] melts away!") qdel(H.wear_mask) H.update_inv_wear_mask(1) H.update_hair(1) @@ -380,10 +380,10 @@ if(H.glasses) if(H.glasses.unacidable) - H << "Your [H.glasses] partially protect you from the acid!" + to_chat(H, "Your [H.glasses] partially protect you from the acid!") removed /= 2 else if(removed > meltdose) - H << "Your [H.glasses] melt away!" + to_chat(H, "Your [H.glasses] melt away!") qdel(H.glasses) H.update_inv_glasses(1) removed -= meltdose / 2 @@ -414,7 +414,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 << "\The [O] melts." + to_chat(M, "\The [O] melts.") qdel(O) remove_self(meltdose) // 10 units of acid will not melt EVERYTHING on the tile diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm index 3fd9bc0598..fa0a921047 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm @@ -332,7 +332,7 @@ /datum/reagent/nutriment/durian/touch_mob(var/mob/M, var/amount) if(iscarbon(M) && !M.isSynthetic()) var/message = pick("Oh god, it smells disgusting here.", "What is that stench?", "That's an awful odor.") - to_chat(M,"[message]") + to_chat(M, "[message]") if(prob(CLAMP(amount, 5, 90))) var/mob/living/L = M L.vomit() @@ -476,7 +476,7 @@ return if(dose < 5 && (dose == metabolism || prob(5))) - M << "Your insides feel uncomfortably hot!" + to_chat(M, "Your insides feel uncomfortably hot!") if(dose >= 5) M.apply_effect(2, AGONY, 0) if(prob(5)) @@ -620,7 +620,7 @@ if(!H.can_feel_pain()) return if(dose == metabolism) - M << "You feel like your insides are burning!" + to_chat(M, "You feel like your insides are burning!") else M.apply_effect(4, AGONY, 0) if(prob(5)) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm index a18207b6e4..a87ccb9194 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm @@ -92,7 +92,7 @@ H.feral -= removed * 3 // should calm them down quick, provided they're actually in a state to STAY calm. if (H.feral <=0) //check if they're unferalled H.feral = 0 - H << "Your mind starts to clear, soothed into a state of clarity as your senses return." + to_chat(H, "Your mind starts to clear, soothed into a state of clarity as your senses return.") log_and_message_admins("is no longer feral.", H) /datum/reagent/ethanol/monstertamer/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm index ac51ab7168..9e6441157f 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm @@ -769,7 +769,7 @@ if(prob(5)) H.vomit(1) else if(prob(5)) - to_chat(H,"Something churns inside you.") + to_chat(H, "Something churns inside you.") H.adjustToxLoss(10 * removed) H.vomit(0, 1) else @@ -1283,11 +1283,11 @@ return if(volume <= 0.1 && data != -1) data = -1 - M << "You lose focus..." + to_chat(M, "You lose focus...") else if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) data = world.time - M << "Your mind feels focused and undivided." + to_chat(M, "Your mind feels focused and undivided.") /datum/reagent/citalopram name = "Citalopram" @@ -1306,11 +1306,11 @@ return if(volume <= 0.1 && data != -1) data = -1 - M << "Your mind feels a little less stable..." + to_chat(M, "Your mind feels a little less stable...") else if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) data = world.time - M << "Your mind feels stable... a little stable." + to_chat(M, "Your mind feels stable... a little stable.") /datum/reagent/paroxetine name = "Paroxetine" @@ -1329,14 +1329,14 @@ return if(volume <= 0.1 && data != -1) data = -1 - M << "Your mind feels much less stable..." + to_chat(M, "Your mind feels much less stable...") else if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) data = world.time if(prob(90)) - M << "Your mind feels much more stable." + to_chat(M, "Your mind feels much more stable.") else - M << "Your mind breaks apart..." + to_chat(M, "Your mind breaks apart...") M.hallucination += 200 /datum/reagent/qerr_quem diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm index 971a54bff2..135e8686cc 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm @@ -450,11 +450,11 @@ if(alien == IS_DIONA) return if(prob(10)) - to_chat(M,"Your veins feel like they're on fire!") + to_chat(M, "Your veins feel like they're on fire!") M.adjust_fire_stacks(0.1) else if(prob(5)) M.IgniteMob() - to_chat(M,"Some of your veins rupture, the exposed blood igniting!") + to_chat(M, "Some of your veins rupture, the exposed blood igniting!") /datum/reagent/condensedcapsaicin/venom name = "Irritant toxin" @@ -472,7 +472,7 @@ if(prob(50)) M.apply_effect(4, AGONY, 0) if(prob(20)) - to_chat(M,"You feel like your insides are burning!") + to_chat(M, "You feel like your insides are burning!") else if(prob(20)) M.visible_message("[M] [pick("dry heaves!","coughs!","splutters!","rubs at their eyes!")]") else @@ -572,7 +572,7 @@ M.UpdateAppearance() if(prob(removed * 40)) //Additionally, let's make it so there's an 8% chance per tick for a random cosmetic/not guranteed good/bad mutation. randmuti(M)//This should equate to 4 random cosmetic mutations per 10 injected/20 ingested/30 touching units - M << "You feel odd!" + to_chat(M, "You feel odd!") M.apply_effect(10 * removed, IRRADIATE, 0) /datum/reagent/slimejelly @@ -595,7 +595,7 @@ M.add_chemical_effect(CE_PAINKILLER, 60) else if(prob(10)) - M << "Your insides are burning!" + to_chat(M, "Your insides are burning!") M.adjustToxLoss(rand(100, 300) * removed) else if(prob(40)) M.heal_organ_damage(25 * removed, 0) @@ -949,7 +949,7 @@ datum/reagent/talum_quem/affect_blood(var/mob/living/carbon/M, var/alien, var/re M.UpdateAppearance() if(prob(removed * 40)) randmuti(M) - M << "You feel odd!" + to_chat(M, "You feel odd!") M.apply_effect(16 * removed, IRRADIATE, 0) /datum/reagent/aslimetoxin @@ -979,7 +979,7 @@ datum/reagent/talum_quem/affect_blood(var/mob/living/carbon/M, var/alien, var/re M.UpdateAppearance() if(prob(removed * 40)) randmuti(M) - M << "You feel odd!" + to_chat(M, "You feel odd!") M.apply_effect(6 * removed, IRRADIATE, 0) /* diff --git a/code/modules/reagents/Chemistry-Recipes.dm b/code/modules/reagents/Chemistry-Recipes.dm index d709134b98..b0dbc0958b 100644 --- a/code/modules/reagents/Chemistry-Recipes.dm +++ b/code/modules/reagents/Chemistry-Recipes.dm @@ -897,7 +897,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - M << "The solution spews out foam!" + to_chat(M, "The solution spews out foam!") var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 0) @@ -919,7 +919,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - M << "The solution spews out a metalic foam!" + to_chat(M, "The solution spews out a metalic foam!") var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 1) @@ -937,7 +937,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - M << "The solution spews out a metalic foam!" + to_chat(M, "The solution spews out a metalic foam!") var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 2) diff --git a/code/modules/reagents/Chemistry-Recipes_vr.dm b/code/modules/reagents/Chemistry-Recipes_vr.dm index f97084adad..14b7ff8481 100644 --- a/code/modules/reagents/Chemistry-Recipes_vr.dm +++ b/code/modules/reagents/Chemistry-Recipes_vr.dm @@ -258,7 +258,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 << " You suddenly feel a chill!" + to_chat(M, " You suddenly feel a chill!") @@ -307,7 +307,7 @@ required_reagents = list("phoron" = 10, "bicaridine" = 10, "kelotane" = 10, "inaprovaline" = 10, "slimejelly" = 10) on_reaction(var/datum/reagents/holder, var/created_volume) for (var/mob/living/carbon/C in viewers(get_turf(holder.my_atom), null)) - C << "A wave of energy suddenly invigorates you." + to_chat(C, "A wave of energy suddenly invigorates you.") C.adjustBruteLoss(-25) C.adjustFireLoss(-25) C.adjustToxLoss(-25) diff --git a/code/modules/reagents/dispenser/cartridge.dm b/code/modules/reagents/dispenser/cartridge.dm index ddcd173cb7..6a8d01a240 100644 --- a/code/modules/reagents/dispenser/cartridge.dm +++ b/code/modules/reagents/dispenser/cartridge.dm @@ -23,13 +23,13 @@ /obj/item/weapon/reagent_containers/chem_disp_cartridge/examine(mob/user) ..() - user << "It has a capacity of [volume] units." + to_chat(user, "It has a capacity of [volume] units.") if(reagents.total_volume <= 0) - user << "It is empty." + to_chat(user, "It is empty.") else - user << "It contains [reagents.total_volume] units of liquid." + to_chat(user, "It contains [reagents.total_volume] units of liquid.") if(!is_open_container()) - user << "The cap is sealed." + to_chat(user, "The cap is sealed.") /obj/item/weapon/reagent_containers/chem_disp_cartridge/verb/verb_set_label(L as text) set name = "Set Cartridge Label" @@ -41,23 +41,23 @@ /obj/item/weapon/reagent_containers/chem_disp_cartridge/proc/setLabel(L, mob/user = null) if(L) if(user) - user << "You set the label on \the [src] to '[L]'." + to_chat(user, "You set the label on \the [src] to '[L]'.") label = L name = "[initial(name)] - '[L]'" else if(user) - user << "You clear the label on \the [src]." + to_chat(user, "You clear the label on \the [src].") label = "" name = initial(name) /obj/item/weapon/reagent_containers/chem_disp_cartridge/attack_self() ..() if (is_open_container()) - usr << "You put the cap on \the [src]." + to_chat(usr, "You put the cap on \the [src].") flags ^= OPENCONTAINER else - usr << "You take the cap off \the [src]." + to_chat(usr, "You take the cap off \the [src].") flags |= OPENCONTAINER /obj/item/weapon/reagent_containers/chem_disp_cartridge/afterattack(obj/target, mob/user , flag) @@ -68,28 +68,28 @@ target.add_fingerprint(user) if(!target.reagents.total_volume && target.reagents) - user << "\The [target] is empty." + to_chat(user, "\The [target] 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 = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - user << "You fill \the [src] with [trans] units of the contents of \the [target]." + to_chat(user, "You fill \the [src] with [trans] units of the contents of \the [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 << "\The [src] is empty." + to_chat(user, "\The [src] is empty.") return if(target.reagents.total_volume >= target.reagents.maximum_volume) - user << "\The [target] is full." + to_chat(user, "\The [target] is full.") return var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - user << "You transfer [trans] units of the solution to \the [target]." + to_chat(user, "You transfer [trans] units of the solution to \the [target].") else return ..() diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 8f6be28b80..db4f077753 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -38,15 +38,15 @@ return 0 if(!target.reagents || !target.reagents.total_volume) - user << "[target] is empty." + to_chat(user, "[target] is empty.") return 1 if(reagents && !reagents.get_free_space()) - user << "[src] is full." + to_chat(user, "[src] is full.") return 1 var/trans = target.reagents.trans_to_obj(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].") return 1 /obj/item/weapon/reagent_containers/proc/standard_splash_mob(var/mob/user, var/mob/target) // This goes into afterattack @@ -54,11 +54,11 @@ return if(!reagents || !reagents.total_volume) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return 1 if(target.reagents && !target.reagents.get_free_space()) - user << "[target] is full." + to_chat(user, "[target] is full.") return 1 var/contained = reagentlist() @@ -68,7 +68,7 @@ return 1 /obj/item/weapon/reagent_containers/proc/self_feed_message(var/mob/user) - user << "You eat \the [src]" + to_chat(user, "You eat \the [src]") /obj/item/weapon/reagent_containers/proc/other_feed_message_start(var/mob/user, var/mob/target) user.visible_message("[user] is trying to feed [target] \the [src]!") @@ -84,18 +84,18 @@ return 0 if(!reagents || !reagents.total_volume) - user << "\The [src] is empty." + to_chat(user, "\The [src] is empty.") return 1 if(target == user) if(istype(user, /mob/living/carbon/human)) var/mob/living/carbon/human/H = user if(!H.check_has_mouth()) - user << "Where do you intend to put \the [src]? You don't have a mouth!" + to_chat(user, "Where do you intend to put \the [src]? You don't have a mouth!") return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - user << "\The [blocked] is in the way!" + to_chat(user, "\The [blocked] is in the way!") return user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things @@ -107,11 +107,11 @@ if(istype(user, /mob/living/carbon/human)) var/mob/living/carbon/human/H = target if(!H.check_has_mouth()) - user << "Where do you intend to put \the [src]? \The [H] doesn't have a mouth!" + to_chat(user, "Where do you intend to put \the [src]? \The [H] doesn't have a mouth!") return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - user << "\The [blocked] is in the way!" + to_chat(user, "\The [blocked] is in the way!") return other_feed_message_start(user, target) @@ -133,13 +133,13 @@ return 0 if(!reagents || !reagents.total_volume) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return 1 if(!target.reagents.get_free_space()) - user << "[target] is full." + to_chat(user, "[target] is full.") return 1 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].") return 1 diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index 40c6c52923..95afc0aa43 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -67,29 +67,29 @@ return if(!reagent_volumes[reagent_ids[mode]]) - user << "The injector is empty." + to_chat(user, "The injector is empty.") return var/mob/living/carbon/human/H = M 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.robotic >= ORGAN_ROBOT) - user << "You cannot inject a robotic limb." + to_chat(user, "You cannot inject a robotic limb.") return if(M.can_inject(user, 1, ignore_thickness = 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!") if(M.reagents) var/t = min(amount_per_transfer_from_this, reagent_volumes[reagent_ids[mode]]) M.reagents.add_reagent(reagent_ids[mode], t) reagent_volumes[reagent_ids[mode]] -= t add_attack_logs(user, M, "Borg injected with [reagent_ids[mode]]") - user << "[t] units injected. [reagent_volumes[reagent_ids[mode]]] units remaining." + to_chat(user, "[t] units injected. [reagent_volumes[reagent_ids[mode]]] units remaining.") return /obj/item/weapon/reagent_containers/borghypo/attack_self(mob/user as mob) //Change the mode @@ -102,7 +102,7 @@ else t += "[reagent_names[i]]" t = "Available reagents: [t]." - user << t + to_chat(user,t) return @@ -113,7 +113,7 @@ playsound(loc, 'sound/effects/pop.ogg', 50, 0) mode = t var/datum/reagent/R = SSchemistry.chemical_reagents[reagent_ids[mode]] - usr << "Synthesizer is now producing '[R.name]'." + to_chat(usr, "Synthesizer is now producing '[R.name]'.") /obj/item/weapon/reagent_containers/borghypo/examine(mob/user) if(!..(user, 2)) @@ -121,7 +121,7 @@ var/datum/reagent/R = SSchemistry.chemical_reagents[reagent_ids[mode]] - user << "It is currently producing [R.name] and has [reagent_volumes[reagent_ids[mode]]] out of [volume] units left." + to_chat(user, "It is currently producing [R.name] and has [reagent_volumes[reagent_ids[mode]]] out of [volume] units left.") /obj/item/weapon/reagent_containers/borghypo/service name = "cyborg drink synthesizer" @@ -145,15 +145,15 @@ return if(!reagent_volumes[reagent_ids[mode]]) - user << "[src] is out of this reagent, give it some time to refill." + to_chat(user, "[src] is out of this reagent, give it some time to refill.") return if(!target.reagents.get_free_space()) - user << "[target] is full." + to_chat(user, "[target] is full.") return var/t = min(amount_per_transfer_from_this, reagent_volumes[reagent_ids[mode]]) target.reagents.add_reagent(reagent_ids[mode], t) reagent_volumes[reagent_ids[mode]] -= t - user << "You transfer [t] units of the solution to [target]." + to_chat(user, "You transfer [t] units of the solution to [target].") return diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index a22257a8e2..13b0ef3539 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -258,7 +258,7 @@ /obj/item/weapon/reagent_containers/glass/bucket/attackby(var/obj/item/D, mob/user as mob) 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.drop_from_inventory(src) @@ -314,7 +314,7 @@ obj/item/weapon/reagent_containers/glass/bucket/wood /obj/item/weapon/reagent_containers/glass/bucket/wood/attackby(var/obj/D, mob/user as mob) if(isprox(D)) - user << "This wooden bucket doesn't play well with electronics." + to_chat(user, "This wooden bucket doesn't play well with electronics.") return else if(istype(D, /obj/item/weapon/material/knife/machete/hatchet)) to_chat(user, "You cut a big hole in \the [src] with \the [D]. It's kinda useless as a bucket now.") diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index 6b7910fab3..aaa8cec486 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -103,7 +103,7 @@ loaded_vial.update_icon() user.put_in_hands(loaded_vial) loaded_vial = null - user << "You remove the vial from the [src]." + to_chat(user, "You remove the vial from the [src].") update_icon() playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) return @@ -129,7 +129,7 @@ update_icon() playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) else - user << "\The [src] already has a vial." + to_chat(user, "\The [src] already has a vial.") else ..() diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index e0926f47b3..22398a170e 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -35,7 +35,7 @@ return if(reagents.total_volume < amount_per_transfer_from_this) - user << "\The [src] is empty!" + to_chat(user, "\The [src] is empty!") return Spray_at(A, user, proximity) @@ -75,11 +75,11 @@ return amount_per_transfer_from_this = next_in_list(amount_per_transfer_from_this, possible_transfer_amounts) spray_size = next_in_list(spray_size, spray_sizes) - user << "You adjusted the pressure nozzle. You'll now use [amount_per_transfer_from_this] units per spray." + to_chat(user, "You adjusted the pressure 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) && loc == user) - user << "[round(reagents.total_volume)] units left." + to_chat(user, "[round(reagents.total_volume)] units left.") return /obj/item/weapon/reagent_containers/spray/verb/empty() @@ -91,7 +91,7 @@ if (alert(usr, "Are you sure you want to empty that?", "Empty Bottle:", "Yes", "No") != "Yes") return if(isturf(usr.loc)) - usr << "You empty \the [src] onto the floor." + to_chat(usr, "You empty \the [src] onto the floor.") reagents.splash(usr.loc, reagents.total_volume) //space cleaner @@ -132,15 +132,15 @@ /obj/item/weapon/reagent_containers/spray/pepper/examine(mob/user) if(..(user, 1)) - user << "The safety is [safety ? "on" : "off"]." + to_chat(user, "The safety is [safety ? "on" : "off"].") /obj/item/weapon/reagent_containers/spray/pepper/attack_self(var/mob/user) safety = !safety - usr << "You switch the safety [safety ? "on" : "off"]." + to_chat(usr, "You switch the safety [safety ? "on" : "off"].") /obj/item/weapon/reagent_containers/spray/pepper/Spray_at(atom/A as mob|obj) if(safety) - usr << "The safety is on!" + to_chat(usr, "The safety is on!") return . = ..() diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 3fbb141f7e..f8d7fbc4d6 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -40,10 +40,10 @@ Note: Must be placed within 3 tiles of the R&D Console /obj/machinery/r_n_d/destructive_analyzer/attackby(var/obj/item/O as obj, var/mob/user as mob) if(busy) - user << "\The [src] is busy right now." + to_chat(user, "\The [src] is busy right now.") return if(loaded_item) - user << "There is something already loaded into \the [src]." + to_chat(user, "There is something already loaded into \the [src].") return 1 if(default_deconstruction_screwdriver(user, O)) if(linked_console) @@ -55,25 +55,25 @@ Note: Must be placed within 3 tiles of the R&D Console if(default_part_replacement(user, O)) return if(panel_open) - user << "You can't load \the [src] while it's opened." + to_chat(user, "You can't load \the [src] while it's opened.") return 1 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) if(isrobot(user)) //Don't put your module items in there! return 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 if(O.origin_tech.len == 0) - user << "You cannot deconstruct this item." + to_chat(user, "You cannot deconstruct this item.") return busy = 1 loaded_item = O user.drop_item() O.loc = src - user << "You add \the [O] to \the [src]." + to_chat(user, "You add \the [O] to \the [src].") flick("d_analyzer_la", src) spawn(10) update_icon() diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm index a23193581e..a61dc04e89 100644 --- a/code/modules/research/message_server.dm +++ b/code/modules/research/message_server.dm @@ -142,8 +142,8 @@ var/global/list/obj/machinery/message_server/message_servers = list() /obj/machinery/message_server/attack_hand(user as mob) -// user << "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 CentCom delays." - user << "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]" +// to_chat(user, "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 CentCom delays.") + to_chat(user, "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]") active = !active update_icon() @@ -155,7 +155,7 @@ var/global/list/obj/machinery/message_server/message_servers = list() spamfilter_limit += round(MESSAGE_SERVER_DEFAULT_SPAM_LIMIT / 2) user.drop_item() qdel(O) - user << "You install additional memory and processors into message server. Its filtering capabilities been enhanced." + to_chat(user, "You install additional memory and processors into message server. Its filtering capabilities been enhanced.") else ..(O, user) diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 8963928b36..94762fc691 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -168,7 +168,7 @@ add_fingerprint(usr) usr.set_machine(src) if(!allowed(usr) && !emagged) - usr << "You do not have the required access level" + to_chat(usr, "You do not have the required access level") return if(href_list["main"]) @@ -296,7 +296,7 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - user << "You you disable the security protocols." + to_chat(user, "You you disable the security protocols.") src.updateUsrDialog() return 1 diff --git a/code/modules/resleeving/computers.dm b/code/modules/resleeving/computers.dm index 6a83f5dad0..aaa55b446d 100644 --- a/code/modules/resleeving/computers.dm +++ b/code/modules/resleeving/computers.dm @@ -71,12 +71,12 @@ 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 if(istype(W, /obj/item/weapon/disk/transcore) && SStranscore && !SStranscore.core_dumped) user.unEquip(W) disk = W disk.forceMove(src) - user << "You insert \the [W] into \the [src]." + to_chat(user, "You insert \the [W] into \the [src].") if(istype(W, /obj/item/weapon/disk/body_record)) var/obj/item/weapon/disk/body_record/brDisk = W if(!brDisk.stored) @@ -391,7 +391,7 @@ /obj/item/weapon/cmo_disk_holder/attack_self(var/mob/attacker) playsound(src, 'sound/items/poster_ripped.ogg', 50) - attacker << "You tear open \the [name]." + to_chat(attacker, "You tear open \the [name].") attacker.unEquip(src) var/obj/item/weapon/disk/transcore/newdisk = new(get_turf(src)) attacker.put_in_any_hand_if_possible(newdisk) diff --git a/code/modules/resleeving/implant.dm b/code/modules/resleeving/implant.dm index c0cf830e0d..bcb8767721 100644 --- a/code/modules/resleeving/implant.dm +++ b/code/modules/resleeving/implant.dm @@ -69,14 +69,14 @@ return if(imps.len) - user << "You eject a backup implant." + to_chat(user, "You eject a backup implant.") var/obj/item/weapon/implant/backup/imp = imps[imps.len] imp.forceMove(get_turf(user)) imps -= imp user.put_in_any_hand_if_possible(imp) update() else - user << "\The [src] is empty." + to_chat(user, "\The [src] is empty.") return @@ -88,9 +88,9 @@ W.germ_level = 0 W.forceMove(src) update() - user << "You load \the [W] into \the [src]." + to_chat(user, "You load \the [W] into \the [src].") else - user << "\The [src] is already full!" + to_chat(user, "\The [src] is already full!") /obj/item/weapon/backup_implanter/attack(mob/M as mob, mob/user as mob) if (!istype(M, /mob/living/carbon)) diff --git a/code/modules/resleeving/infomorph.dm b/code/modules/resleeving/infomorph.dm index 9f5528d547..e734e19108 100644 --- a/code/modules/resleeving/infomorph.dm +++ b/code/modules/resleeving/infomorph.dm @@ -188,7 +188,7 @@ var/list/infomorph_emotions = list( medicalActive2 = null medical_cannotfind = 0 SSnanoui.update_uis(src) - usr << "You reset your record-viewing software." + to_chat(usr, "You reset your record-viewing software.") /* /mob/living/silicon/infomorph/proc/switchCamera(var/obj/machinery/camera/C) @@ -364,16 +364,16 @@ var/list/infomorph_emotions = list( switch(alert(user, "Do you wish to add access to [src] or remove access from [src]?",,"Add Access","Remove Access", "Cancel")) if("Add Access") idcard.access |= ID.access - user << "You add the access from the [W] to [src]." + to_chat(user, "You add the access from the [W] to [src].") return if("Remove Access") idcard.access = null - user << "You remove the access from [src]." + to_chat(user, "You remove the access from [src].") return if("Cancel") return else if (istype(W, /obj/item/weapon/card/id) && idaccessible == 0) - user << "[src] is not accepting access modifcations at this time." + to_chat(user, "[src] is not accepting access modifcations at this time.") return //////////////////// MISC VERBS @@ -419,7 +419,7 @@ var/list/infomorph_emotions = list( if(radio) radio.ui_interact(src,"main",null,1,conscious_state) else - to_chat(src,"You don't have a radio!") + to_chat(src, "You don't have a radio!") /mob/living/silicon/infomorph/say(var/msg) if(silence_time) @@ -448,7 +448,7 @@ var/global/list/default_infomorph_software = list() var/datum/infomorph_software/P = new type() if(infomorph_software_by_key[P.id]) var/datum/infomorph_software/O = infomorph_software_by_key[P.id] - world << "Infomorph software module [P.name] has the same key as [O.name]!" + to_world("Infomorph software module [P.name] has the same key as [O.name]!") r = 0 continue infomorph_software_by_key[P.id] = P @@ -567,7 +567,7 @@ var/global/list/default_infomorph_software = list() pose = addtext(pose,".") //Makes sure all emotes end with a period. msg += "\nIt is [pose]" - user << msg + to_chat(user,msg) /mob/living/silicon/infomorph/Life() //We're dead or EMP'd or something. diff --git a/code/modules/resleeving/infomorph_software.dm b/code/modules/resleeving/infomorph_software.dm index bb5b7fc870..6d4198ca67 100644 --- a/code/modules/resleeving/infomorph_software.dm +++ b/code/modules/resleeving/infomorph_software.dm @@ -205,9 +205,9 @@ if(prob(20)) for(var/mob/living/silicon/ai/AI in player_list) 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)) diff --git a/code/modules/resleeving/machines.dm b/code/modules/resleeving/machines.dm index 5e0f8af252..b98c64efe6 100644 --- a/code/modules/resleeving/machines.dm +++ b/code/modules/resleeving/machines.dm @@ -340,13 +340,13 @@ /obj/machinery/transhuman/synthprinter/attack_hand(mob/user as mob) if((busy == 0) || (stat & NOPOWER)) return - user << "Current print cycle is [busy]% complete." + to_chat(user, "Current print cycle is [busy]% complete.") return /obj/machinery/transhuman/synthprinter/attackby(obj/item/W as obj, mob/user as mob) src.add_fingerprint(user) if(busy) - user << "\The [src] is busy. Please wait for completion of previous operation." + to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.") return if(default_deconstruction_screwdriver(user, W)) return @@ -355,15 +355,15 @@ if(default_part_replacement(user, W)) return if(panel_open) - user << "You can't load \the [src] while it's opened." + to_chat(user, "You can't load \the [src] while it's opened.") return if(!istype(W, /obj/item/stack/material)) - user << "You cannot insert this item into \the [src]!" + to_chat(user, "You cannot insert this item into \the [src]!") return var/obj/item/stack/material/S = W if(!(S.material.name in stored_material)) - user << "\the [src] doesn't accept [S.material]!" + to_chat(user, "\the [src] doesn't accept [S.material]!") return var/amnt = S.perunit @@ -374,9 +374,9 @@ stored_material[S.material.name] += amnt S.use(1) count++ - user << "You insert [count] [S.name] into \the [src]." + to_chat(user, "You insert [count] [S.name] into \the [src].") else - user << "\the [src] cannot hold more [S.name]." + to_chat(user, "\the [src] cannot hold more [S.name].") updateUsrDialog() return @@ -474,7 +474,7 @@ 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 [src.name] because they have a slime latched onto their head." + to_chat(usr, "[G.affecting:name] will not fit into the [src.name] because they have a slime latched onto their head.") return var/mob/M = G.affecting if(put_mob(M)) @@ -487,7 +487,7 @@ C.removePersonality() qdel(C) sleevecards++ - to_chat(user,"You store \the [C] in \the [src].") + to_chat(user, "You store \the [C] in \the [src].") return return ..() @@ -541,7 +541,7 @@ //In case they already had a mind! if(occupant && occupant.mind) - occupant << "You feel your mind being overwritten..." + to_chat(occupant, "You feel your mind being overwritten...") log_and_message_admins("was resleeve-wiped from their body.",occupant.mind) occupant.ghostize() @@ -555,7 +555,7 @@ occupant.apply_vore_prefs() //Cheap hack for now to give them SOME bellies. if(MR.one_time) var/how_long = round((world.time - MR.last_update)/10/60) - to_chat(occupant,"Your mind backup was a 'one-time' backup. \ + to_chat(occupant, "Your mind backup was a 'one-time' backup. \ You will not be able to remember anything since the backup, [how_long] minutes ago.") //Re-supply a NIF if one was backed up with them. @@ -578,9 +578,9 @@ //Inform them and make them a little dizzy. if(confuse_amount + blur_amount <= 16) - occupant << "You feel a small pain in your head as you're given a new backup implant. Your new body feels comfortable already, however." + to_chat(occupant, "You feel a small pain in your head as you're given a new backup implant. Your new body feels comfortable already, however.") else - occupant << "You feel a small pain in your head as you're given a new backup implant. Oh, and a new body. It's disorienting, to say the least." + to_chat(occupant, "You feel a small pain in your head as you're given a new backup implant. Oh, and a new body. It's disorienting, to say the least.") occupant.confused = max(occupant.confused, confuse_amount) // Apply immedeate effects occupant.eye_blurry = max(occupant.eye_blurry, blur_amount) @@ -611,10 +611,10 @@ /obj/machinery/transhuman/resleever/proc/put_mob(mob/living/carbon/human/M as mob) if(!ishuman(M)) - usr << "\The [src] cannot hold this!" + to_chat(usr, "\The [src] cannot hold this!") return if(src.occupant) - usr << "\The [src] is already occupied!" + to_chat(usr, "\The [src] is already occupied!") return if(M.client) M.client.perspective = EYE_PERSPECTIVE diff --git a/code/modules/rogueminer_vr/controller.dm b/code/modules/rogueminer_vr/controller.dm index b0cb18f360..8f7d883992 100644 --- a/code/modules/rogueminer_vr/controller.dm +++ b/code/modules/rogueminer_vr/controller.dm @@ -107,7 +107,7 @@ var/datum/controller/rogue/rm_controller //decay() //Decay removed for now, since people aren't getting high scores as it is. /datum/controller/rogue/proc/decay(var/manual = 0) - world.log << "RM(stats): DECAY on controller from [difficulty] to [difficulty+(RM_DIFF_DECAY_AMT)] min 100." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): DECAY on controller from [difficulty] to [difficulty+(RM_DIFF_DECAY_AMT)] min 100.") //DEBUG code for playtest stats gathering. adjust_difficulty(RM_DIFF_DECAY_AMT) if(!manual) //If it was called manually somehow, then don't start the timer, just decay now. @@ -118,7 +118,7 @@ var/datum/controller/rogue/rm_controller /datum/controller/rogue/proc/dbg(var/message) ASSERT(message) //I want a stack trace if there's no message if(debugging) - world.log << "[message]" + to_world_log("[message]") /datum/controller/rogue/proc/adjust_difficulty(var/amt) ASSERT(amt) @@ -185,7 +185,7 @@ var/datum/controller/rogue/rm_controller ZM_target = pick(clean_zones) if(ZM_target) - world.log << "RM(stats): SCORING [ready_zones.len] zones (if unscored)." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): SCORING [ready_zones.len] zones (if unscored).") //DEBUG code for playtest stats gathering. for(var/datum/rogue/zonemaster/ZM_toscore in ready_zones) //Score all the zones first. if(ZM_toscore.scored) continue ZM_toscore.score_zone() diff --git a/code/modules/rogueminer_vr/zonemaster.dm b/code/modules/rogueminer_vr/zonemaster.dm index 64eb15c5d4..d08fb545bd 100644 --- a/code/modules/rogueminer_vr/zonemaster.dm +++ b/code/modules/rogueminer_vr/zonemaster.dm @@ -302,7 +302,7 @@ sleep(delay) rm_controller.dbg("ZM(p): Zone generation done.") - world.log << "RM(stats): PREP [myarea] at [world.time] with [spawned_mobs.len] mobs, [mineral_rocks.len] minrocks, total of [rockspawns.len] rockspawns, [mobspawns.len] mobspawns." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): PREP [myarea] at [world.time] with [spawned_mobs.len] mobs, [mineral_rocks.len] minrocks, total of [rockspawns.len] rockspawns, [mobspawns.len] mobspawns.") //DEBUG code for playtest stats gathering. prepared_at = world.time rm_controller.mark_ready(src) return myarea @@ -362,13 +362,13 @@ rm_controller.adjust_difficulty(tally) rm_controller.dbg("ZM(sz): Finished scoring and adjusted by [tally].") - world.log << "RM(stats): SCORE [myarea] for [tally]." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): SCORE [myarea] for [tally].") //DEBUG code for playtest stats gathering. return tally //Overall 'destroy' proc (marks as unready) /datum/rogue/zonemaster/proc/clean_zone(var/delay = 1) rm_controller.dbg("ZM(cz): Cleaning zone with area [myarea].") - world.log << "RM(stats): CLEAN start [myarea] at [world.time] prepared at [prepared_at]." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): CLEAN start [myarea] at [world.time] prepared at [prepared_at].") //DEBUG code for playtest stats gathering. rm_controller.unmark_ready(src) //Cut these lists so qdel can dereference the things properly @@ -409,7 +409,7 @@ original_mobs = 0 prepared_at = 0 - world.log << "RM(stats): CLEAN done [myarea] at [world.time]." //DEBUG code for playtest stats gathering. + to_world_log("RM(stats): CLEAN done [myarea] at [world.time].") //DEBUG code for playtest stats gathering. rm_controller.dbg("ZM(cz): Finished cleaning up zone area [myarea].") rm_controller.mark_clean(src) diff --git a/code/modules/security levels/keycard authentication.dm b/code/modules/security levels/keycard authentication.dm index 7696c92a51..e3202ccbec 100644 --- a/code/modules/security levels/keycard authentication.dm +++ b/code/modules/security levels/keycard authentication.dm @@ -188,13 +188,13 @@ var/global/maint_all_access = 0 /proc/make_maint_all_access() maint_all_access = 1 - world << "Attention!" - world << "The maintenance access requirement has been revoked on all airlocks." + to_world("Attention!") + to_world("The maintenance access requirement has been revoked on all airlocks.") /proc/revoke_maint_all_access() maint_all_access = 0 - world << "Attention!" - world << "The maintenance access requirement has been readded on all maintenance airlocks." + to_world("Attention!") + to_world("The maintenance access requirement has been readded on all maintenance airlocks.") /obj/machinery/door/airlock/allowed(mob/M) if(maint_all_access && src.check_access_list(list(access_maint_tunnels))) diff --git a/code/modules/shieldgen/sheldwallgen.dm b/code/modules/shieldgen/sheldwallgen.dm index e6e9bc11d7..331f04549a 100644 --- a/code/modules/shieldgen/sheldwallgen.dm +++ b/code/modules/shieldgen/sheldwallgen.dm @@ -27,13 +27,13 @@ /obj/machinery/shieldwallgen/attack_hand(mob/user as mob) if(state != 1) - user << "The shield generator needs to be firmly secured to the floor first." + to_chat(user, "The shield generator needs to be firmly secured to the floor first.") return 1 if(src.locked && !istype(user, /mob/living/silicon)) - user << "The controls are locked!" + to_chat(user, "The controls are locked!") return 1 if(power != 1) - user << "The shield generator needs to be powered by wire underneath." + to_chat(user, "The shield generator needs to be powered by wire underneath.") return 1 if(src.active >= 1) @@ -159,29 +159,29 @@ /obj/machinery/shieldwallgen/attackby(obj/item/W, mob/user) if(W.is_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, W.usesound, 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, W.usesound, 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 << "Access denied." + to_chat(user, "Access denied.") else src.add_fingerprint(user) diff --git a/code/modules/shieldgen/shield_gen.dm b/code/modules/shieldgen/shield_gen.dm index 0562bbd9ff..253bc391f3 100644 --- a/code/modules/shieldgen/shield_gen.dm +++ b/code/modules/shieldgen/shield_gen.dm @@ -48,7 +48,7 @@ /obj/machinery/shield_gen/emag_act(var/remaining_charges, var/mob/user) if(prob(75)) src.locked = !src.locked - user << "Controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]") . = 1 updateDialog() var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread @@ -60,10 +60,10 @@ var/obj/item/weapon/card/id/C = W if(access_captain in C.access || access_security in C.access || access_engine in C.access) src.locked = !src.locked - user << "Controls are now [src.locked ? "locked." : "unlocked."]" + to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]") updateDialog() else - user << "Access denied." + to_chat(user, "Access denied.") else if(W.is_wrench()) src.anchored = !src.anchored playsound(src, W.usesound, 75, 1) @@ -213,7 +213,7 @@ return else if( href_list["toggle"] ) if (!active && !anchored) - usr << "The [src] needs to be firmly secured to the floor first." + to_chat(usr, "The [src] needs to be firmly secured to the floor first.") return toggle() else if( href_list["change_radius"] ) @@ -248,7 +248,7 @@ covered_turfs = null for(var/mob/M in view(5,src)) - M << "\icon[src] You hear heavy droning start up." + to_chat(M, "\icon[src] You hear heavy droning start up.") for(var/obj/effect/energy_field/E in field) // Update the icons here to ensure all the shields have been made already. E.update_icon() else @@ -258,7 +258,7 @@ qdel(D) for(var/mob/M in view(5,src)) - M << "\icon[src] You hear heavy droning fade out." + to_chat(M, "\icon[src] You hear heavy droning fade out.") /obj/machinery/shield_gen/update_icon() if(stat & BROKEN) diff --git a/code/modules/shuttles/escape_pods.dm b/code/modules/shuttles/escape_pods.dm index 60c1e4bd0d..060dbff1ad 100644 --- a/code/modules/shuttles/escape_pods.dm +++ b/code/modules/shuttles/escape_pods.dm @@ -112,7 +112,7 @@ /obj/machinery/embedded_controller/radio/simple_docking_controller/escape_pod_berth/emag_act(var/remaining_charges, var/mob/user) if (!emagged) - user << "You emag the [src], arming the escape pod!" + to_chat(user, "You emag the [src], arming the escape pod!") emagged = 1 if (istype(docking_program, /datum/computer/file/embedded_program/docking/simple/escape_pod)) var/datum/computer/file/embedded_program/docking/simple/escape_pod/P = docking_program diff --git a/code/modules/shuttles/shuttle.dm b/code/modules/shuttles/shuttle.dm index 4ce211ee72..4f043d0c25 100644 --- a/code/modules/shuttles/shuttle.dm +++ b/code/modules/shuttles/shuttle.dm @@ -44,7 +44,7 @@ if(docking_controller_tag) docking_controller = locate(docking_controller_tag) if(!istype(docking_controller)) - world << "warning: shuttle with docking tag [docking_controller_tag] could not find it's controller!" + to_world("warning: shuttle with docking tag [docking_controller_tag] could not find it's controller!") // This creates a graphical warning to where the shuttle is about to land, in approximately five seconds. /datum/shuttle/proc/create_warning_effect(area/landing_area) @@ -101,7 +101,7 @@ make_sounds(destination, HYPERSPACE_END) /datum/shuttle/proc/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction) - //world << "shuttle/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]" + //to_world("shuttle/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]") if(moving_status != SHUTTLE_IDLE) return @@ -186,13 +186,13 @@ //If you want to conditionally cancel shuttle launches, that logic must go in short_jump() or long_jump() /datum/shuttle/proc/move(var/area/origin, var/area/destination, var/direction=null) - //world << "move_shuttle() called for [name] leaving [origin] en route to [destination]." + //to_world("move_shuttle() called for [name] leaving [origin] en route to [destination].") - //world << "area_coming_from: [origin]" - //world << "destination: [destination]" + //to_world("area_coming_from: [origin]") + //to_world("destination: [destination]") if(origin == destination) - //world << "cancelling move, shuttle will overlap." + //to_world("cancelling move, shuttle will overlap.") return if (docking_controller && !docking_controller.undocked()) @@ -223,10 +223,10 @@ if(M.client) spawn(0) if(M.buckled) - M << "Sudden acceleration presses you into \the [M.buckled]!" + to_chat(M, "Sudden acceleration presses you into \the [M.buckled]!") shake_camera(M, 3, 1) else - M << "The floor lurches beneath you!" + to_chat(M, "The floor lurches beneath you!") shake_camera(M, 10, 1) if(istype(M, /mob/living/carbon)) if(!M.buckled) diff --git a/code/modules/shuttles/shuttle_console.dm b/code/modules/shuttles/shuttle_console.dm index 5055eb7543..be9cec13af 100644 --- a/code/modules/shuttles/shuttle_console.dm +++ b/code/modules/shuttles/shuttle_console.dm @@ -14,7 +14,7 @@ return //src.add_fingerprint(user) //shouldn't need fingerprints just for looking at it. if(!allowed(user)) - user << "Access Denied." + to_chat(user, "Access Denied.") return 1 ui_interact(user) @@ -89,7 +89,7 @@ req_access = list() req_one_access = list() hacked = 1 - user << "You short out the console's ID checking system. It's now available to everyone!" + to_chat(user, "You short out the console's ID checking system. It's now available to everyone!") return 1 /obj/machinery/computer/shuttle_control/bullet_act(var/obj/item/projectile/Proj) diff --git a/code/modules/shuttles/shuttle_emergency.dm b/code/modules/shuttles/shuttle_emergency.dm index 86b8e29809..1722374a1d 100644 --- a/code/modules/shuttles/shuttle_emergency.dm +++ b/code/modules/shuttles/shuttle_emergency.dm @@ -15,7 +15,7 @@ emergency_shuttle.shuttle_arrived() /datum/shuttle/ferry/emergency/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction) - //world << "shuttle/ferry/emergency/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]" + //to_world("shuttle/ferry/emergency/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]") if (!location) travel_time = SHUTTLE_TRANSIT_DURATION_RETURN else diff --git a/code/modules/shuttles/shuttle_ferry.dm b/code/modules/shuttles/shuttle_ferry.dm index f279ce5d34..d96051cc46 100644 --- a/code/modules/shuttles/shuttle_ferry.dm +++ b/code/modules/shuttles/shuttle_ferry.dm @@ -41,7 +41,7 @@ ..(origin, destination) /datum/shuttle/ferry/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction) - //world << "shuttle/ferry/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]" + //to_world("shuttle/ferry/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]") if(isnull(location)) return @@ -81,7 +81,7 @@ if (WAIT_LAUNCH) if (skip_docking_checks() || docking_controller.can_launch()) - //world << "shuttle/ferry/process: area_transition=[area_transition], travel_time=[travel_time]" + //to_world("shuttle/ferry/process: area_transition=[area_transition], travel_time=[travel_time]") if (move_time && area_transition) long_jump(interim=area_transition, travel_time=move_time, direction=transit_direction) else diff --git a/code/modules/shuttles/shuttle_specops.dm b/code/modules/shuttles/shuttle_specops.dm index 47c3aca5ab..b702d7a78f 100644 --- a/code/modules/shuttles/shuttle_specops.dm +++ b/code/modules/shuttles/shuttle_specops.dm @@ -4,7 +4,7 @@ req_access = list(access_cent_specops) /obj/machinery/computer/shuttle_control/specops/attack_ai(user as mob) - user << "Access Denied." + to_chat(user, "Access Denied.") return 1 //for shuttles that may use a different docking port at each location @@ -95,12 +95,12 @@ if (!location) //just arrived home for(var/turf/T in get_area_turfs(destination)) var/mob/M = locate(/mob) in T - M << "You have arrived at [using_map.boss_name]. Operation has ended!" + to_chat(M, "You have arrived at [using_map.boss_name]. Operation has ended!") else //just left for the station launch_mauraders() for(var/turf/T in get_area_turfs(destination)) var/mob/M = locate(/mob) in T - M << "You have arrived at [station_name()]. Commence operation!" + to_chat(M, "You have arrived at [station_name()]. Commence operation!") var/obj/machinery/light/small/readylight/light = locate() in T if(light) light.set_state(1) diff --git a/code/modules/shuttles/shuttles_multi.dm b/code/modules/shuttles/shuttles_multi.dm index 73e08a719f..91a29a99d5 100644 --- a/code/modules/shuttles/shuttles_multi.dm +++ b/code/modules/shuttles/shuttles_multi.dm @@ -172,7 +172,7 @@ var/datum/shuttle/multi_shuttle/MS = shuttle_controller.shuttles[shuttle_tag] if(!istype(MS)) return - //world << "multi_shuttle: last_departed=[MS.last_departed], origin=[MS.origin], interim=[MS.interim], travel_time=[MS.move_time]" + //to_world("multi_shuttle: last_departed=[MS.last_departed], origin=[MS.origin], interim=[MS.interim], travel_time=[MS.move_time]") if(href_list["refresh"]) updateUsrDialog() @@ -204,7 +204,7 @@ return if(!MS.return_warning && !MS.legit) //VOREStation Add - Criminals only! - usr << "Returning to your home base will end your mission. If you are sure, press the button again." + to_chat(usr, "Returning to your home base will end your mission. If you are sure, press the button again.") //TODO: Actually end the mission. MS.return_warning = 1 return @@ -217,7 +217,7 @@ //VOREStation Add End // No point giving a warning if it does literally nothing. // if(!MS.return_warning) -// usr << "Returning to your home base will end your mission. If you are sure, press the button again." +// to_chat(usr, "Returning to your home base will end your mission. If you are sure, press the button again.") // //TODO: Actually end the mission. // MS.return_warning = 1 // return @@ -231,7 +231,7 @@ if(!MS.can_cloak) return MS.cloaked = !MS.cloaked - usr << " Ship [MS.legit ? "ATC inhibitor":"stealth"] systems have been [(MS.cloaked ? "activated. The station will not" : "deactivated. The station will")] be [MS.legit ? "notified":"warned"] of our arrival." //VOREStation Edit - Adds legit shuttles. + to_chat(usr, " Ship [MS.legit ? "ATC inhibitor":"stealth"] systems have been [(MS.cloaked ? "activated. The station will not" : "deactivated. The station will")] be [MS.legit ? "notified":"warned"] of our arrival.") //VOREStation Edit - Adds legit shuttles. //to_chat(usr, "Ship stealth systems have been [(MS.cloaked ? "activated. The station will not" : "deactivated. The station will")] be warned of our arrival.") //VOREStation Edit. if(href_list["move_multi"]) diff --git a/code/modules/shuttles/shuttles_web.dm b/code/modules/shuttles/shuttles_web.dm index d24f47b1d7..2156206d50 100644 --- a/code/modules/shuttles/shuttles_web.dm +++ b/code/modules/shuttles/shuttles_web.dm @@ -191,7 +191,7 @@ var/obj/item/clothing/head/pilot/H = I H.shuttle_comp = src shuttle.helmets |= I - to_chat(user,"You register the helmet with the ship's console.") + to_chat(user, "You register the helmet with the ship's console.") shuttle.update_helmets() return @@ -375,7 +375,7 @@ ui_interact(usr) if (WS.moving_status != SHUTTLE_IDLE) - usr << "[WS.visible_name] is busy moving." + to_chat(usr, "[WS.visible_name] is busy moving.") return if(href_list["rename_command"]) @@ -417,7 +417,7 @@ return if((WS.last_move + WS.cooldown) > world.time) - usr << "The ship's drive is inoperable while the engines are charging." + to_chat(usr, "The ship's drive is inoperable while the engines are charging.") return var/index = text2num(href_list["traverse"]) diff --git a/code/modules/shuttles/web_datums.dm b/code/modules/shuttles/web_datums.dm index c56dc7419c..f64573270c 100644 --- a/code/modules/shuttles/web_datums.dm +++ b/code/modules/shuttles/web_datums.dm @@ -86,23 +86,23 @@ // This builds destination instances connected to this instance, recursively. /datum/shuttle_destination/proc/build_destinations(var/list/already_made = list()) already_made += src.type - world << "SHUTTLES: [name] is going to build destinations. already_made list is \[[english_list(already_made)]\]" + to_world("SHUTTLES: [name] is going to build destinations. already_made list is \[[english_list(already_made)]\]") for(var/type_to_make in destinations_to_create) if(type_to_make in already_made) // Avoid circular initializations. - world << "SHUTTLES: [name] can't build [type_to_make] due to being a duplicate." + to_world("SHUTTLES: [name] can't build [type_to_make] due to being a duplicate.") continue // Instance the new destination, and call this proc on their 'downstream' destinations. var/datum/shuttle_destination/new_dest = new type_to_make() - world << "SHUTTLES: [name] has created [new_dest.name] and will make it build their own destinations." + to_world("SHUTTLES: [name] has created [new_dest.name] and will make it build their own destinations.") already_made += new_dest.build_destinations(already_made) // Now link our new destination to us. var/travel_delay = destinations_to_create[type_to_make] link_destinations(new_dest, preferred_interim_area, travel_delay) - world << "SHUTTLES: [name] has linked themselves to [new_dest.name]" + to_world("SHUTTLES: [name] has linked themselves to [new_dest.name]") - world << "SHUTTLES: [name] has finished building destinations. already_made list is \[[english_list(already_made)]\]." + to_world("SHUTTLES: [name] has finished building destinations. already_made list is \[[english_list(already_made)]\].") return already_made /datum/shuttle_destination/proc/enter(var/datum/shuttle_destination/old_destination) diff --git a/code/modules/spells/aoe_turf/charge.dm b/code/modules/spells/aoe_turf/charge.dm index 6e7f5b0050..f27a13e688 100644 --- a/code/modules/spells/aoe_turf/charge.dm +++ b/code/modules/spells/aoe_turf/charge.dm @@ -27,9 +27,9 @@ for(var/spell/S in M.spell_list) if(!istype(S, /spell/aoe_turf/charge)) 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.") return M /spell/aoe_turf/charge/proc/cast_charge(var/atom/target) diff --git a/code/modules/spells/aoe_turf/conjure/conjure.dm b/code/modules/spells/aoe_turf/conjure/conjure.dm index e96985e9bb..9e02cf9513 100644 --- a/code/modules/spells/aoe_turf/conjure/conjure.dm +++ b/code/modules/spells/aoe_turf/conjure/conjure.dm @@ -45,7 +45,7 @@ How they spawn stuff is decided by behaviour vars, which are explained below var/atom/summoned_object if(ispath(summoned_object_type,/turf)) if(istype(get_turf(user),/turf/simulated/shuttle) || istype(spawn_place, /turf/simulated/shuttle)) - user << "You can't build things on shuttles!" + to_chat(user, "You can't build things on shuttles!") continue spawn_place.ChangeTurf(summoned_object_type) summoned_object = spawn_place diff --git a/code/modules/spells/artifacts.dm b/code/modules/spells/artifacts.dm index f643012ce3..64489dea4c 100644 --- a/code/modules/spells/artifacts.dm +++ b/code/modules/spells/artifacts.dm @@ -14,10 +14,10 @@ /obj/item/weapon/scrying/attack_self(mob/user as mob) if((user.mind && !wizards.is_antagonist(user.mind))) - user << "You stare into the orb and see nothing but your own reflection." + to_chat(user, "You stare into the orb and see nothing but your own reflection.") return - user << "You can see... everything!" + to_chat(user, "You can see... everything!") visible_message("[user] stares into [src], their eyes glazing over.") user.teleop = user.ghostize(1) diff --git a/code/modules/spells/general/area_teleport.dm b/code/modules/spells/general/area_teleport.dm index 77e1ee47c4..93d86c2d20 100644 --- a/code/modules/spells/general/area_teleport.dm +++ b/code/modules/spells/general/area_teleport.dm @@ -50,7 +50,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/modules/spells/general/rune_write.dm b/code/modules/spells/general/rune_write.dm index c110a76ac1..2871033395 100644 --- a/code/modules/spells/general/rune_write.dm +++ b/code/modules/spells/general/rune_write.dm @@ -171,5 +171,5 @@ R.word3=cultwords["technology"] R.check_icon() else - user << " You do not have enough space to write a proper rune." + to_chat(user, " You do not have enough space to write a proper rune.") return diff --git a/code/modules/spells/spell_code.dm b/code/modules/spells/spell_code.dm index 3415ad0ead..6c57fa6037 100644 --- a/code/modules/spells/spell_code.dm +++ b/code/modules/spells/spell_code.dm @@ -156,7 +156,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now for(var/atom/target in targets) var/location = get_turf(target) if(istype(target,/mob/living) && message) - target << text("[message]") + to_chat(target, "[message]") if(sparks_spread) var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread() sparks.set_up(sparks_amt, 0, location) //no idea what the 0 is @@ -180,7 +180,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now if(!(src in user.spell_list) && holder == user) error("[user] utilized the spell '[src]' without having it.") - 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(silenced > 0) @@ -188,7 +188,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now var/turf/user_turf = get_turf(user) if(!user_turf) - user << "You cannot cast spells in null space!" + to_chat(user, "You cannot cast spells in null space!") if(spell_flags & Z2NOCAST && (user_turf.z in using_map.admin_levels)) //Certain spells are not allowed on the CentCom zlevel return 0 @@ -201,7 +201,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now if(istype(user, /mob/living/simple_mob) && holder == user) var/mob/living/simple_mob/SM = user if(SM.purge) - SM << "The nullrod's power interferes with your own!" + to_chat(SM, "The nullrod's power interferes with your own!") return 0 if(!src.check_charge(skipcharge, user)) //sees if we can cast based on charges alone @@ -209,12 +209,12 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now if(!(spell_flags & GHOSTCAST) && holder == user) if(user.stat && !(spell_flags & STATALLOWED)) - usr << "Not when you're incapacitated." + to_chat(usr, "Not when you're incapacitated.") return 0 if(ishuman(user) && !(invocation_type in list(SpI_EMOTE, SpI_NONE))) if(user.is_muzzled()) - user << "Mmmf mrrfff!" + to_chat(user, "Mmmf mrrfff!") return 0 var/spell/noclothes/spell = locate() in user.spell_list @@ -229,11 +229,11 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now switch(charge_type) if(Sp_RECHARGE) if(charge_counter < charge_max) - user << still_recharging_msg + to_chat(user,still_recharging_msg) return 0 if(Sp_CHARGES) if(!charge_counter) - user << "[name] has no charges left." + to_chat(user, "[name] has no charges left.") return 0 return 1 diff --git a/code/modules/spells/spellbook.dm b/code/modules/spells/spellbook.dm index 1f41ce9e3d..3ae280a65b 100644 --- a/code/modules/spells/spellbook.dm +++ b/code/modules/spells/spellbook.dm @@ -15,7 +15,7 @@ if(!user) return if((user.mind && !wizards.is_antagonist(user.mind))) - usr << "You stare at the book but cannot make sense of the markings!" + to_chat(usr, "You stare at the book but cannot make sense of the markings!") return user.set_machine(src) @@ -229,7 +229,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.") temp = "You have purchased a scrying orb, and gained x-ray vision." max_uses-- else @@ -261,15 +261,15 @@ if(user.mind) // TODO: Update to new antagonist system. 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.add_spell(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) @@ -302,7 +302,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) @@ -316,7 +316,7 @@ /obj/item/weapon/spellbook/oneuse/blind/recoil(mob/user as mob) ..() - user <<"You go blind!" + to_chat(user, "You go blind!") user.Blind(10) /obj/item/weapon/spellbook/oneuse/mindswap @@ -338,10 +338,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) @@ -370,8 +370,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 @@ -382,7 +382,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() @@ -396,7 +396,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 @@ -407,7 +407,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.canremove = 0 //curses! magichead.flags_inv = null //so you can still see their face @@ -416,7 +416,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 = /spell/aoe_turf/charge @@ -426,5 +426,5 @@ /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, 1, 1) diff --git a/code/modules/spells/targeted/ethereal_jaunt.dm b/code/modules/spells/targeted/ethereal_jaunt.dm index 68cf35e9a4..e31cec5b4c 100644 --- a/code/modules/spells/targeted/ethereal_jaunt.dm +++ b/code/modules/spells/targeted/ethereal_jaunt.dm @@ -97,7 +97,7 @@ if(!T.contains_dense_objects()) last_valid_turf = T 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/modules/spells/targeted/harvest.dm b/code/modules/spells/targeted/harvest.dm index 7a8d986a02..3bebe72e25 100644 --- a/code/modules/spells/targeted/harvest.dm +++ b/code/modules/spells/targeted/harvest.dm @@ -38,7 +38,7 @@ M.forceMove(destination) if(M != user) prey = 1 - user << "You warp back to Nar-Sie[prey ? " along with your prey":""]." + to_chat(user, "You warp back to Nar-Sie[prey ? " along with your prey":""].") else - user << "...something's wrong!"//There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world. + to_chat(user, "...something's wrong!")//There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world. */ \ No newline at end of file diff --git a/code/modules/spells/targeted/mind_transfer.dm b/code/modules/spells/targeted/mind_transfer.dm index 375328016f..e3eda58b65 100644 --- a/code/modules/spells/targeted/mind_transfer.dm +++ b/code/modules/spells/targeted/mind_transfer.dm @@ -24,15 +24,15 @@ for(var/mob/living/target in targets) if(target.stat == DEAD) - user << "You didn't study necromancy back at the Space Wizard Federation academy." + to_chat(user, "You didn't study necromancy back at the Space Wizard Federation academy.") continue 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.") continue if(target.mind.special_role in protected_roles) - user << "Their mind is resisting your spell." + to_chat(user, "Their mind is resisting your spell.") continue var/mob/living/victim = target//The target of the spell whos body will be transferred to. @@ -78,4 +78,4 @@ //After a certain amount of time the victim gets a message about being in a different body. spawn(msg_wait) - caster << "You feel woozy and lightheaded. Your body doesn't seem like your own." + to_chat(caster, "You feel woozy and lightheaded. Your body doesn't seem like your own.") diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 26887bcf88..d6049a0a04 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -144,7 +144,7 @@ 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.robotic < ORGAN_ROBOT)) - user << " You tear some blood vessels trying to fit such a big object in this cavity." + to_chat(user, " You tear some blood vessels trying to fit such a big object in this cavity.") var/datum/wound/internal_bleeding/I = new (10) affected.wounds += I affected.owner.custom_pain("You feel something rip in your [affected.name]!", 1) diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm index d7e3c7be55..c09d10bebe 100644 --- a/code/modules/surgery/organs_internal.dm +++ b/code/modules/surgery/organs_internal.dm @@ -291,11 +291,11 @@ return 0 if((affected.robotic >= ORGAN_ROBOT) && !(O.robotic >= ORGAN_ROBOT)) - user << "You cannot install a naked organ into a robotic body." + to_chat(user, "You cannot install a naked organ into a robotic body.") return SURGERY_FAILURE 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 SURGERY_FAILURE var/o_is = (O.gender == PLURAL) ? "are" : "is" @@ -303,20 +303,20 @@ var/o_do = (O.gender == PLURAL) ? "don't" : "doesn't" if(O.damage > (O.max_damage * 0.75)) - user << "\The [O.organ_tag] [o_is] in no state to be transplanted." + to_chat(user, "\The [O.organ_tag] [o_is] in no state to be transplanted.") return SURGERY_FAILURE if(!target.internal_organs_by_name[O.organ_tag]) organ_missing = 1 else - user << "\The [target] already has [o_a][O.organ_tag]." + to_chat(user, "\The [target] already has [o_a][O.organ_tag].") return SURGERY_FAILURE if(O && affected.organ_tag == O.parent_organ) organ_compatible = 1 else - user << "\The [O.organ_tag] [o_do] normally go in \the [affected.name]." + to_chat(user, "\The [O.organ_tag] [o_do] normally go in \the [affected.name].") return SURGERY_FAILURE return ..() && organ_missing && organ_compatible diff --git a/code/modules/surgery/robotics.dm b/code/modules/surgery/robotics.dm index 229a10472a..4a791ccfea 100644 --- a/code/modules/surgery/robotics.dm +++ b/code/modules/surgery/robotics.dm @@ -425,20 +425,20 @@ /* VOREStation Edit - Don't worry about it. We can put these in regardless, because resleeving might make it useful after. 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 SURGERY_FAILURE */ if(!(affected.robotic >= ORGAN_ROBOT)) - user << "You cannot install a computer brain into a meat skull." + to_chat(user, "You cannot install a computer brain into a meat skull.") return SURGERY_FAILURE if(!target.should_have_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 SURGERY_FAILURE if(!isnull(target.internal_organs["brain"])) - user << "Your subject already has a brain." + to_chat(user, "Your subject already has a brain.") return SURGERY_FAILURE return 1 diff --git a/code/modules/surgery/surgery.dm b/code/modules/surgery/surgery.dm index a79a3702c2..b08c15e67c 100644 --- a/code/modules/surgery/surgery.dm +++ b/code/modules/surgery/surgery.dm @@ -137,7 +137,7 @@ return 0 var/zone = user.zone_sel.selecting if(zone in M.op_stage.in_progress) //Can't operate on someone repeatedly. - user << "You can't operate on this area while surgery is already in progress." + to_chat(user, "You can't operate on this area while surgery is already in progress.") return 1 for(var/datum/surgery_step/S in surgery_steps) //check if tool is right or close enough and if this step is possible diff --git a/code/modules/tables/flipping.dm b/code/modules/tables/flipping.dm index 5de58c1354..18bcc4fe58 100644 --- a/code/modules/tables/flipping.dm +++ b/code/modules/tables/flipping.dm @@ -22,7 +22,7 @@ return if(flipped < 0 || !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]!") @@ -39,7 +39,7 @@ var/obj/occupied = turf_is_crowded() if(occupied) - usr << "There's \a [occupied] in the way." + to_chat(usr, "There's \a [occupied] in the way.") return 0 var/list/L = list() @@ -65,7 +65,7 @@ return if (!unflipping_check()) - usr << "It won't budge." + to_chat(usr, "It won't budge.") return unflip() diff --git a/code/modules/tables/interactions.dm b/code/modules/tables/interactions.dm index e28f54f9e4..ffda1690c0 100644 --- a/code/modules/tables/interactions.dm +++ b/code/modules/tables/interactions.dm @@ -81,7 +81,7 @@ var/mob/living/M = G.affecting var/obj/occupied = turf_is_crowded() if(occupied) - user << "There's \a [occupied] in the way." + to_chat(user, "There's \a [occupied] in the way.") return if(!user.Adjacent(M)) return @@ -104,7 +104,7 @@ if(prob(2)) M.embed(S, def_zone = BP_HEAD) else - user << "You need a better grip to do that!" + to_chat(user, "You need a better grip to do that!") return else if(G.state > GRAB_AGGRESSIVE || world.time >= (G.last_action + UPGRADE_COOLDOWN)) M.forceMove(get_turf(src)) @@ -136,7 +136,7 @@ return if(can_plate && !material) - user << "There's nothing to put \the [W] on! Try adding plating to \the [src] first." + to_chat(user, "There's nothing to put \the [W] on! Try adding plating to \the [src] first.") return if(item_place) diff --git a/code/modules/tables/rack.dm b/code/modules/tables/rack.dm index ad44431655..b07aa188b7 100644 --- a/code/modules/tables/rack.dm +++ b/code/modules/tables/rack.dm @@ -24,5 +24,5 @@ return /obj/structure/table/rack/holorack/dismantle(obj/item/weapon/wrench/W, mob/user) - user << "You cannot dismantle \the [src]." + to_chat(user, "You cannot dismantle \the [src].") return diff --git a/code/modules/telesci/telepad.dm b/code/modules/telesci/telepad.dm index 1440482241..e3f1c91157 100644 --- a/code/modules/telesci/telepad.dm +++ b/code/modules/telesci/telepad.dm @@ -41,7 +41,7 @@ if(istype(W, /obj/item/device/multitool)) var/obj/item/device/multitool/M = W M.connectable = src - user << "You save the data in the [M.name]'s buffer." + to_chat(user, "You save the data in the [M.name]'s buffer.") return 1 return ..() diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm index b2cc345b8c..efcf72ea65 100644 --- a/code/modules/telesci/telesci_computer.dm +++ b/code/modules/telesci/telesci_computer.dm @@ -38,7 +38,7 @@ /obj/machinery/computer/telescience/examine(mob/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() . = ..() @@ -49,7 +49,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 if(!user.unEquip(W)) return @@ -68,7 +68,7 @@ if(M.connectable && istype(M.connectable, /obj/machinery/telepad)) telepad = M.connectable M.connectable = 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 return ..() diff --git a/code/modules/turbolift/turbolift_door_vr.dm b/code/modules/turbolift/turbolift_door_vr.dm index 299140c4a2..ab7ca44993 100644 --- a/code/modules/turbolift/turbolift_door_vr.dm +++ b/code/modules/turbolift/turbolift_door_vr.dm @@ -1,5 +1,5 @@ // Vore specific code for /obj/machinery/door/airlock/lift /obj/machinery/door/airlock/lift/emag_act(var/uses_left, var/mob/user) - user << "This door is internally controlled." + to_chat(user, "This door is internally controlled.") return 0 // Prevents the cryptographic sequencer from using a charge fruitlessly diff --git a/code/modules/vehicles/Securitrain_vr.dm b/code/modules/vehicles/Securitrain_vr.dm index 74f3fa0c1d..e036a50ada 100644 --- a/code/modules/vehicles/Securitrain_vr.dm +++ b/code/modules/vehicles/Securitrain_vr.dm @@ -72,7 +72,7 @@ turn_off() update_stats() if(load && is_train_head()) - load << "The drive motor briefly whines, then drones to a stop." + to_chat(load, "The drive motor briefly whines, then drones to a stop.") if(is_train_head() && !on) return 0 @@ -213,8 +213,8 @@ if(!istype(usr, /mob/living/carbon/human)) 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/security/engine/verb/start_engine() set name = "Start engine" @@ -225,17 +225,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/security/engine/verb/stop_engine() set name = "Stop engine" @@ -246,12 +246,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/security/engine/verb/remove_key() set name = "Remove key" diff --git a/code/modules/vehicles/cargo_train.dm b/code/modules/vehicles/cargo_train.dm index 6e387ae04e..c02e19fdb4 100644 --- a/code/modules/vehicles/cargo_train.dm +++ b/code/modules/vehicles/cargo_train.dm @@ -54,7 +54,7 @@ turn_off() update_stats() if(load && is_train_head()) - load << "The drive motor briefly whines, then drones to a stop." + to_chat(load, "The drive motor briefly whines, then drones to a stop.") if(is_train_head() && !on) return 0 @@ -167,7 +167,7 @@ if(is_train_head() && istype(load, /mob/living/carbon/human)) var/mob/living/carbon/human/D = load - D << "You ran over [H]!" + to_chat(D, "You ran over [H]!") visible_message("\The [src] ran over [H]!") add_attack_logs(D,H,"Ran over with [src.name]") attack_log += text("\[[time_stamp()]\] ran over [H.name] ([H.ckey]), driven by [D.name] ([D.ckey])") @@ -198,8 +198,8 @@ if(!istype(usr, /mob/living/carbon/human)) 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/engine/verb/start_engine() set name = "Start engine" @@ -210,17 +210,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/engine/verb/stop_engine() set name = "Stop engine" @@ -231,12 +231,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/engine/verb/remove_key() set name = "Remove key" diff --git a/code/modules/vehicles/rover_vr.dm b/code/modules/vehicles/rover_vr.dm index d7acf46150..635bc1faa3 100644 --- a/code/modules/vehicles/rover_vr.dm +++ b/code/modules/vehicles/rover_vr.dm @@ -70,7 +70,7 @@ turn_off() update_stats() if(load && is_train_head()) - load << "The drive motor briefly whines, then drones to a stop." + to_chat(load, "The drive motor briefly whines, then drones to a stop.") if(is_train_head() && !on) return 0 @@ -211,8 +211,8 @@ if(!istype(usr, /mob/living/carbon/human)) 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/rover/engine/verb/start_engine() set name = "Start engine" @@ -223,17 +223,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/rover/engine/verb/stop_engine() set name = "Stop engine" @@ -244,12 +244,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/rover/engine/verb/remove_key() set name = "Remove key" diff --git a/code/modules/vehicles/train.dm b/code/modules/vehicles/train.dm index c66bfee0c4..8199c91577 100644 --- a/code/modules/vehicles/train.dm +++ b/code/modules/vehicles/train.dm @@ -56,7 +56,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 << "You hit [M]!" + to_chat(D, "You hit [M]!") add_attack_logs(D,M,"Ran over with [src.name]") //trains are commonly open topped, so there is a chance the projectile will hit the mob riding the train instead @@ -89,7 +89,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) @@ -100,7 +100,7 @@ unload(user, direction) - user << "You climb down from [src]." + to_chat(user, "You climb down from [src].") return 1 @@ -111,7 +111,7 @@ latch(C, user) else if(!load(C, user)) - user << "You were unable to load [C] on [src]." + to_chat(user, "You were unable to load [C] on [src].") /obj/vehicle/train/attack_hand(mob/user as mob) if(user.stat || user.restrained() || !Adjacent(user)) @@ -149,22 +149,22 @@ //Note: there is a modified version of this in code\modules\vehicles\cargo_train.dm specifically for cargo train engines /obj/vehicle/train/proc/attach_to(obj/vehicle/train/T, mob/user) if (get_dist(src, T) > 1) - user << "[src] is too far away from [T] to hitch them together." + to_chat(user, "[src] is too far away from [T] to hitch them together.") return if (lead) - user << "[src] is already hitched to something." + to_chat(user, "[src] is already hitched to something.") return if (T.tow) - user << "[T] is already towing something." + to_chat(user, "[T] is already towing something.") return //check for cycles. var/obj/vehicle/train/next_car = T while (next_car) if (next_car == src) - user << "That seems very silly." + to_chat(user, "That seems very silly.") return next_car = next_car.lead @@ -174,7 +174,7 @@ set_dir(lead.dir) if(user) - user << "You hitch [src] to [T]." + to_chat(user, "You hitch [src] to [T].") update_stats() @@ -182,13 +182,13 @@ //detaches the train from whatever is towing it /obj/vehicle/train/proc/unattach(mob/user) if (!lead) - user << "[src] is not hitched to anything." + to_chat(user, "[src] is not hitched to anything.") return lead.tow = null lead.update_stats() - user << "You unhitch [src] from [lead]." + to_chat(user, "You unhitch [src] from [lead].") lead = null update_stats() diff --git a/code/modules/virus2/admin.dm b/code/modules/virus2/admin.dm index 30156102a8..a28d0741c1 100644 --- a/code/modules/virus2/admin.dm +++ b/code/modules/virus2/admin.dm @@ -6,12 +6,12 @@ // spawn or admin privileges to see info about viruses if(!check_rights(R_ADMIN|R_SPAWN)) return - usr << "Infection chance: [infectionchance]; Speed: [speed]; Spread type: [spreadtype]" - usr << "Affected species: [english_list(affected_species)]" - usr << "Effects:" + to_chat(usr, "Infection chance: [infectionchance]; Speed: [speed]; Spread type: [spreadtype]") + to_chat(usr, "Affected species: [english_list(affected_species)]") + to_chat(usr, "Effects:") for(var/datum/disease2/effectholder/E in effects) - usr << "[E.stage]: [E.effect.name]; chance=[E.chance]; multiplier=[E.multiplier]" - usr << "Antigens: [antigens2string(antigen)]; Resistance: [resistance]" + to_chat(usr, "[E.stage]: [E.effect.name]; chance=[E.chance]; multiplier=[E.multiplier]") + to_chat(usr, "Antigens: [antigens2string(antigen)]; Resistance: [resistance]") return 1 @@ -184,7 +184,8 @@ candidates["[G.name][G.client ? "" : " (no client)"]"] = G else candidates["[G.name] ([G.species.get_bodytype()])[G.client ? "" : " (no client)"]"] = G - if(!candidates.len) usr << "No possible candidates found!" + if(!candidates.len) + to_chat(usr, "No possible candidates found!") var/I = input("Choose initial infectee", "Infectee", infectee) as null|anything in candidates if(!I || !candidates[I]) return diff --git a/code/modules/virus2/analyser.dm b/code/modules/virus2/analyser.dm index 90c6135ecf..e7f5dd64e3 100644 --- a/code/modules/virus2/analyser.dm +++ b/code/modules/virus2/analyser.dm @@ -18,7 +18,7 @@ else if(!istype(O,/obj/item/weapon/virusdish)) return if(dish) - user << "\The [src] is already loaded." + to_chat(user, "\The [src] is already loaded.") return dish = O diff --git a/code/modules/virus2/curer.dm b/code/modules/virus2/curer.dm index c297643e2a..f494719b84 100644 --- a/code/modules/virus2/curer.dm +++ b/code/modules/virus2/curer.dm @@ -18,7 +18,7 @@ return if(istype(I,/obj/item/weapon/virusdish)) if(virusing) - user << "The pathogen materializer is still recharging.." + to_chat(user, "The pathogen materializer is still recharging..") return var/obj/item/weapon/reagent_containers/glass/beaker/product = new(src.loc) diff --git a/code/modules/virus2/dishincubator.dm b/code/modules/virus2/dishincubator.dm index c6be7bea09..3ebe688c78 100644 --- a/code/modules/virus2/dishincubator.dm +++ b/code/modules/virus2/dishincubator.dm @@ -22,7 +22,7 @@ if(istype(O, /obj/item/weapon/reagent_containers/glass) || istype(O,/obj/item/weapon/reagent_containers/syringe)) if(beaker) - user << "\The [src] is already loaded." + to_chat(user, "\The [src] is already loaded.") return beaker = O @@ -38,7 +38,7 @@ if(istype(O, /obj/item/weapon/virusdish)) if(dish) - user << "The dish tray is aleady full!" + to_chat(user, "The dish tray is aleady full!") return dish = O diff --git a/code/modules/virus2/effect.dm b/code/modules/virus2/effect.dm index c4ea02b873..ea7de6ccac 100644 --- a/code/modules/virus2/effect.dm +++ b/code/modules/virus2/effect.dm @@ -84,14 +84,14 @@ var/mob/living/carbon/human/H = mob var/obj/item/organ/external/O = pick(H.organs) if(prob(25)) - mob << "Your [O.name] feels as if it might burst!" + to_chat(mob, "Your [O.name] feels as if it might burst!") if(prob(10)) spawn(50) if(O) O.droplimb(0,DROPLIMB_BLUNT) else if(prob(75)) - mob << "Your whole body feels like it might fall apart!" + to_chat(mob, "Your whole body feels like it might fall apart!") if(prob(10)) mob.adjustBruteLoss(25*multiplier) @@ -131,7 +131,7 @@ var/datum/gender/TM = gender_datums[mob.get_visible_gender()] mob.suiciding = 30 //instead of killing them instantly, just put them at -175 health and let 'em gasp for a while - viewers(mob) << "[mob.name] is holding [TM.his] breath. It looks like [TM.he] [TM.is] trying to commit suicide." + to_chat(viewers(mob),"[mob.name] is holding [TM.his] breath. It looks like [TM.he] [TM.is] trying to commit suicide.") mob.adjustOxyLoss(175 - mob.getToxLoss() - mob.getFireLoss() - mob.getBruteLoss() - mob.getOxyLoss()) mob.updatehealth() @@ -165,7 +165,7 @@ var/obj/item/organ/external/E = H.organs_by_name[organ] if (!(E.status & ORGAN_DEAD)) E.status |= ORGAN_DEAD - H << "You can't feel your [E.name] anymore..." + to_chat(H, "You can't feel your [E.name] anymore...") for (var/obj/item/organ/external/C in E.children) C.status |= ORGAN_DEAD H.update_icons_body() @@ -192,7 +192,7 @@ var/obj/item/organ/internal/O = H.organs_by_name[organ] if (O.robotic != ORGAN_ROBOT) O.damage += (5*multiplier) - H << "You feel a cramp in your guts." + to_chat(H, "You feel a cramp in your guts.") /datum/disease2/effect/immortal name = "Hyperaccelerated Aging" @@ -211,7 +211,7 @@ /datum/disease2/effect/immortal/deactivate(var/mob/living/carbon/mob,var/multiplier) if(istype(mob, /mob/living/carbon/human)) var/mob/living/carbon/human/H = mob - H << "You suddenly feel hurt and old..." + to_chat(H, "You suddenly feel hurt and old...") H.age += 8 var/backlash_amt = 5*multiplier mob.apply_damages(backlash_amt,backlash_amt,backlash_amt,backlash_amt) @@ -242,10 +242,10 @@ var/mob/living/carbon/human/H = mob var/obj/item/organ/external/O = pick(H.organs) if(prob(25)) - mob << "It feels like your [O.name] is on fire and your blood is boiling!" + to_chat(mob, "It feels like your [O.name] is on fire and your blood is boiling!") H.adjust_fire_stacks(1) if(prob(10)) - mob << "Flames erupt from your skin, your entire body is burning!" + to_chat(mob, "Flames erupt from your skin, your entire body is burning!") H.adjust_fire_stacks(2) H.IgniteMob() @@ -312,14 +312,14 @@ if(prob(66)) mob.say("*giggle") else - to_chat(mob,"What's so funny?") + to_chat(mob, "What's so funny?") /datum/disease2/effect/confusion name = "Topographical Cretinism" stage = 3 /datum/disease2/effect/confusion/activate(var/mob/living/carbon/mob,var/multiplier) - mob << "You have trouble telling right and left apart all of a sudden." + to_chat(mob, "You have trouble telling right and left apart all of a sudden.") mob.Confuse(10) /datum/disease2/effect/mutation @@ -340,7 +340,7 @@ else if(istype(mob, /mob/living/carbon/human)) var/mob/living/carbon/human/H = mob var/obj/item/organ/external/E = pick(H.organs) - to_chat(mob,"Your [E] aches.") + to_chat(mob, "Your [E] aches.") /datum/disease2/effect/chem_synthesis name = "Chemical Synthesis" @@ -417,7 +417,7 @@ for(var/mob/living/carbon/M in oview(2,mob)) mob.spread_disease_to(M) else - to_chat(mob,"Something gets caught in your throat.") + to_chat(mob, "Something gets caught in your throat.") /datum/disease2/effect/hungry name = "Digestive Inefficiency" @@ -442,7 +442,7 @@ if(istype(mob, /mob/living/carbon/human)) var/mob/living/carbon/human/H = mob if(H.species.name == SPECIES_HUMAN && !(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() @@ -452,7 +452,7 @@ stage = 2 /datum/disease2/effect/stimulant/activate(var/mob/living/carbon/mob,var/multiplier) - mob << "You feel a rush of energy inside you!" + to_chat(mob, "You feel a rush of energy inside you!") if (mob.reagents.get_reagent_amount("hyperzine") < 10) mob.reagents.add_reagent("hyperzine", 4) if (prob(30)) @@ -466,7 +466,7 @@ /datum/disease2/effect/ringing/activate(var/mob/living/carbon/mob,var/multiplier) if(istype(mob, /mob/living/carbon/human)) var/mob/living/carbon/human/H = mob - H << "You hear an awful ringing in your ears." + to_chat(H, "You hear an awful ringing in your ears.") H << 'sound/weapons/flash.ogg' /datum/disease2/effect/vomiting @@ -475,7 +475,7 @@ chance_maxm = 15 /datum/disease2/effect/vomiting/activate(var/mob/living/carbon/mob,var/multiplier) - mob << "Your stomach churns!" + to_chat(mob, "Your stomach churns!") if (prob(50)) mob.say("*vomit") @@ -488,10 +488,10 @@ /datum/disease2/effect/sneeze/activate(var/mob/living/carbon/mob,var/multiplier) if(prob(20)) - to_chat(mob,"You go to sneeze, but it gets caught in your sinuses!") + to_chat(mob, "You go to sneeze, but it gets caught in your sinuses!") else if(prob(80)) if(prob(30)) - to_chat(mob,"You feel like you are about to sneeze!") + to_chat(mob, "You feel like you are about to sneeze!") spawn(5) //Sleep may have been hanging Mob controller. mob.say("*sneeze") for(var/mob/living/carbon/M in get_step(mob,mob.dir)) @@ -505,7 +505,7 @@ stage = 1 /datum/disease2/effect/gunck/activate(var/mob/living/carbon/mob,var/multiplier) - mob << "Mucous runs down the back of your throat." + to_chat(mob, "Mucous runs down the back of your throat.") /datum/disease2/effect/drool name = "Salivary Gland Stimulation" @@ -531,4 +531,4 @@ stage = 1 /datum/disease2/effect/headache/activate(var/mob/living/carbon/mob,var/multiplier) - mob << "Your head hurts a bit." + to_chat(mob, "Your head hurts a bit.") diff --git a/code/modules/virus2/effect_vr.dm b/code/modules/virus2/effect_vr.dm index 20058437a0..39155ea0fa 100644 --- a/code/modules/virus2/effect_vr.dm +++ b/code/modules/virus2/effect_vr.dm @@ -16,9 +16,9 @@ var/list/directions = list(2,4,1,8,2,4,1,8,2,4,1,8,2,4,1,8,2,4,1,8) activate(var/mob/living/carbon/mob,var/multiplier) if(mob.buckled()) - viewers(mob) << "[mob.name] struggles violently against their restraints!" + to_chat(viewers(mob),"[mob.name] struggles violently against their restraints!") else - viewers(mob) << "[mob.name] spins around violently!" + to_chat(viewers(mob),"[mob.name] spins around violently!") for(var/D in directions) mob.dir = D sleep(1) @@ -46,7 +46,7 @@ activate(var/mob/living/carbon/mob,var/multiplier) var/newsize = rand (25, 200) mob.resize(newsize/100) - viewers(mob) << "[mob.name] suddenly changes size!" + to_chat(viewers(mob),"[mob.name] suddenly changes size!") /datum/disease2/effect/flip name = "Flipponov's Disease" @@ -58,5 +58,5 @@ var/mob/living/carbon/human/H = mob H.emote("flip") else - viewers(mob) << "[mob.name] does a backflip!" + to_chat(viewers(mob),"[mob.name] does a backflip!") mob.SpinAnimation(7,1) diff --git a/code/modules/virus2/isolator.dm b/code/modules/virus2/isolator.dm index 0aa5f80a58..d22b379ee1 100644 --- a/code/modules/virus2/isolator.dm +++ b/code/modules/virus2/isolator.dm @@ -36,7 +36,7 @@ var/obj/item/weapon/reagent_containers/syringe/S = O if(sample) - user << "\The [src] is already loaded." + to_chat(user, "\The [src] is already loaded.") return sample = S diff --git a/code/modules/virus2/items_devices.dm b/code/modules/virus2/items_devices.dm index 08f688fbc3..cee0eb7c39 100644 --- a/code/modules/virus2/items_devices.dm +++ b/code/modules/virus2/items_devices.dm @@ -30,7 +30,7 @@ report("Antibodies detected: [antigens2string(C.antibodies)]", user) /obj/item/device/antibody_scanner/proc/report(var/text, mob/user as mob) - user << "\icon[src] \The [src] beeps, \"[text]\"" + to_chat(user, "\icon[src] \The [src] beeps, \"[text]\"") ///////////////VIRUS DISH/////////////// @@ -58,7 +58,7 @@ return ..() if(prob(50)) - user << "\The [src] shatters!" + to_chat(user, "\The [src] shatters!") if(virus2.infectionchance > 0) for(var/mob/living/carbon/target in view(1, get_turf(src))) if(airborne_can_reach(get_turf(src), get_turf(target))) @@ -68,7 +68,7 @@ /obj/item/weapon/virusdish/examine(mob/user) ..() if(basic_info) - user << "[basic_info] : More Information" + to_chat(user, "[basic_info] : More Information") /obj/item/weapon/virusdish/Topic(href, href_list) . = ..() @@ -89,7 +89,7 @@ return ..() if(prob(50)) - user << "\The [src] shatters!" + to_chat(user, "\The [src] shatters!") qdel(src) ///////////////GNA DISK/////////////// diff --git a/code/modules/vore/eating/contaminate_vr.dm b/code/modules/vore/eating/contaminate_vr.dm index 21e3f2abb0..774d33331a 100644 --- a/code/modules/vore/eating/contaminate_vr.dm +++ b/code/modules/vore/eating/contaminate_vr.dm @@ -95,7 +95,7 @@ var/list/gurgled_overlays = list( ////////////// /obj/item/weapon/storage/box/open(mob/user as mob) if(gurgled) - usr << "The soggy box falls apart in your hands." + to_chat(usr, "The soggy box falls apart in your hands.") var/turf/T = get_turf(src) for(var/obj/item/I in contents) remove_from_storage(I, T) diff --git a/code/modules/vore/eating/silicon_vr.dm b/code/modules/vore/eating/silicon_vr.dm index 65400c7707..9c8b2b3387 100644 --- a/code/modules/vore/eating/silicon_vr.dm +++ b/code/modules/vore/eating/silicon_vr.dm @@ -25,7 +25,7 @@ bellied = prey prey.forceMove(src) visible_message("[src] entirely engulfs [prey] in hardlight holograms!") - usr << "You completely engulf [prey] in hardlight holograms!" //Can't be part of the above, because the above is from the hologram. + to_chat(usr, "You completely engulf [prey] in hardlight holograms!") //Can't be part of the above, because the above is from the hologram. desc = "[initial(desc)] It seems to have hardlight mode enabled and someone inside." pass_flags = 0 @@ -52,7 +52,7 @@ // Wrong state if (!eyeobj || !holo) - usr << "You can only use this when holo-projecting!" + to_chat(usr, "You can only use this when holo-projecting!") return //Holopads have this 'masters' list where the keys are AI names and the values are the hologram effects @@ -74,7 +74,7 @@ return //Probably cancelled if(!istype(prey)) - usr << "Invalid mob choice!" + to_chat(usr, "Invalid mob choice!") return hologram.visible_message("[hologram] starts engulfing [prey] in hardlight holograms!") @@ -107,4 +107,4 @@ if(ooc_notes) msg += "OOC Notes: \[View\]\n" - user << msg + to_chat(user,msg) diff --git a/code/modules/vore/eating/simple_animal_vr.dm b/code/modules/vore/eating/simple_animal_vr.dm index 11e5035099..a7aa7c7acd 100644 --- a/code/modules/vore/eating/simple_animal_vr.dm +++ b/code/modules/vore/eating/simple_animal_vr.dm @@ -16,7 +16,7 @@ if (istype(src,/mob/living/simple_mob/animal/passive/mouse) && T.ckey == null) return if (client && IsAdvancedToolUser()) - to_chat(src,"Put your hands to good use instead!") + to_chat(src, "Put your hands to good use instead!") return feed_grabbed_to_self(src,T) update_icon() @@ -36,7 +36,7 @@ if(!istype(user) || user.stat) return if(ai_holder.retaliate || (ai_holder.hostile && faction != user.faction)) - user << "This predator isn't friendly, and doesn't give a shit about your opinions of it digesting you." + to_chat(user, "This predator isn't friendly, and doesn't give a shit about your opinions of it digesting you.") return if(vore_selected.digest_mode == DM_HOLD) var/confirm = alert(user, "Enabling digestion on [name] will cause it to digest all stomach contents. Using this to break OOC prefs is against the rules. Digestion will reset after 20 minutes.", "Enabling [name]'s Digestion", "Enable", "Cancel") diff --git a/code/modules/vore/fluffstuff/custom_clothes_vr.dm b/code/modules/vore/fluffstuff/custom_clothes_vr.dm index 4f3462fdbf..d95a07ceee 100644 --- a/code/modules/vore/fluffstuff/custom_clothes_vr.dm +++ b/code/modules/vore/fluffstuff/custom_clothes_vr.dm @@ -1750,7 +1750,7 @@ Departamental Swimsuits, for general use mob_can_equip(var/mob/living/carbon/human/H, slot, disable_warning = 0) if(..()) if(H.ckey != "silencedmp5a5") - H << "...The faceplate is clearly not made for your anatomy, thus, does not fit." + to_chat(H, "...The faceplate is clearly not made for your anatomy, thus, does not fit.") return 0 else return 1 @@ -1769,7 +1769,7 @@ Departamental Swimsuits, for general use if(..() && istype(H) && H.ckey == "silencedmp5a5") return 1 else - to_chat(H,"This suit is not designed for you.") + to_chat(H, "This suit is not designed for you.") return 0 //Zigfe:Zaoozaoo Xrimxuqmqixzix diff --git a/code/modules/vore/fluffstuff/custom_guns_vr.dm b/code/modules/vore/fluffstuff/custom_guns_vr.dm index f99910a123..5f633e30fb 100644 --- a/code/modules/vore/fluffstuff/custom_guns_vr.dm +++ b/code/modules/vore/fluffstuff/custom_guns_vr.dm @@ -139,7 +139,7 @@ consume_next_projectile() if(chambered) return chambered.BB - usr << "It's a single action revolver, pull the hammer back!" + to_chat(usr, "It's a single action revolver, pull the hammer back!") return null attack_self(mob/living/user as mob) if(world.time >= recentpump + 10) diff --git a/code/modules/vore/fluffstuff/custom_items_vr.dm b/code/modules/vore/fluffstuff/custom_items_vr.dm index e717262689..a5bb90c1d9 100644 --- a/code/modules/vore/fluffstuff/custom_items_vr.dm +++ b/code/modules/vore/fluffstuff/custom_items_vr.dm @@ -1088,10 +1088,10 @@ var/clr = C.colourName if(!(clr in list("blue","green","mime","orange","purple","rainbow","red","yellow"))) - to_chat(user,"The egg refuses to take on this color!") + to_chat(user, "The egg refuses to take on this color!") return - to_chat(user,"You color \the [src] [clr]") + to_chat(user, "You color \the [src] [clr]") icon_state = "egg_roiz_[clr]" desc = "It's a large lizard egg. It has been colored [clr]!" if (clr == "rainbow") @@ -1303,7 +1303,7 @@ H.monkeyize() qdel(src) //One time use. else //If not, do nothing. - to_chat(user,"You are unable to inject other people.") + to_chat(user, "You are unable to inject other people.") /obj/item/weapon/fluff/injector/numb_bite name = "Numbing Venom Injector" @@ -1317,7 +1317,7 @@ H.species.give_numbing_bite() //This was annoying, but this is the easiest way of performing it. qdel(src) //One time use. else //If not, do nothing. - to_chat(user,"You are unable to inject other people.") + to_chat(user, "You are unable to inject other people.") //For 2 handed fluff weapons. /obj/item/weapon/material/twohanded/fluff //Twohanded fluff items. @@ -1489,14 +1489,14 @@ /obj/item/weapon/melee/baton/fluff/stunstaff/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"].") if(status == 0) playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) else playsound(user, 'sound/weapons/saberon.ogg', 50, 1) else status = 0 - user << "[src] is out of charge." + to_chat(user, "[src] is out of charge.") update_held_icon() add_fingerprint(user) diff --git a/code/modules/vore/resizing/sizegun_vr.dm b/code/modules/vore/resizing/sizegun_vr.dm index 984e05f8ed..2c1dbe8d04 100644 --- a/code/modules/vore/resizing/sizegun_vr.dm +++ b/code/modules/vore/resizing/sizegun_vr.dm @@ -43,15 +43,15 @@ var/size_select = input("Put the desired size (25-200%)", "Set Size", size_set_to*100) as num if(size_select>200 || size_select<25) - usr << "Invalid size." + to_chat(usr, "Invalid size.") return size_set_to = (size_select/100) - usr << "You set the size to [size_select]%" + to_chat(usr, "You set the size to [size_select]%") /obj/item/weapon/gun/energy/sizegun/examine(mob/user) ..() var/size_examine = (size_set_to*100) - user << "It is currently set at [size_examine]%" + to_chat(user, "It is currently set at [size_examine]%") // // Beams for size gun diff --git a/code/modules/vore/weight/fitness_machines_vr.dm b/code/modules/vore/weight/fitness_machines_vr.dm index 0785c778b5..4a7c5fe2bb 100644 --- a/code/modules/vore/weight/fitness_machines_vr.dm +++ b/code/modules/vore/weight/fitness_machines_vr.dm @@ -13,10 +13,10 @@ /obj/machinery/fitness/attack_hand(var/mob/living/user) if(user.nutrition < 70) - user << "You need more energy to workout with the [src]!" + to_chat(user, "You need more energy to workout with the [src]!") else if(user.weight < 70) - user << "You're too skinny to risk losing any more weight!" + to_chat(user, "You're too skinny to risk losing any more weight!") else //If they have enough nutrition and body weight, they can exercise. user.setClickCooldown(cooldown) @@ -24,7 +24,7 @@ user.weight -= 0.025 * weightloss_power * (0.01*user.weight_loss) flick("[icon_state]2",src) var/message = pick(messages) - user << "[message]." + to_chat(user, "[message].") for(var/s in workout_sounds) playsound(src.loc, s, 50, 1) @@ -64,11 +64,11 @@ /obj/machinery/fitness/heavy/attack_hand(var/mob/living/user) if(!anchored) - user << "For safety reasons, you are required to have this equipment wrenched down before using it!" + to_chat(user, "For safety reasons, you are required to have this equipment wrenched down before using it!") return else if(user.loc != src.loc) - user << "For safety reasons, you need to be sitting in the [src] for it to work!" + to_chat(user, "For safety reasons, you need to be sitting in the [src] for it to work!") return else @@ -94,7 +94,7 @@ /obj/machinery/scale/attack_hand(var/mob/living/user) if(user.loc != loc) - user << "You need to be standing on top of the scale for it to work!" + to_chat(user, "You need to be standing on top of the scale for it to work!") return if(user.weight) //Just in case. var/kilograms = round(text2num(user.weight),4) / 2.20463 diff --git a/code/modules/xenoarcheaology/artifacts/artifact.dm b/code/modules/xenoarcheaology/artifacts/artifact.dm index 35179aca14..43ccbd9f3c 100644 --- a/code/modules/xenoarcheaology/artifacts/artifact.dm +++ b/code/modules/xenoarcheaology/artifacts/artifact.dm @@ -176,19 +176,19 @@ /obj/machinery/artifact/attack_hand(var/mob/user as mob) if (get_dist(user, src) > 1) - user << "You can't reach [src] from here." + to_chat(user, "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) @@ -271,7 +271,7 @@ 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/xenoarcheaology/artifacts/gigadrill.dm b/code/modules/xenoarcheaology/artifacts/gigadrill.dm index b6c665cb66..ad51cd690a 100644 --- a/code/modules/xenoarcheaology/artifacts/gigadrill.dm +++ b/code/modules/xenoarcheaology/artifacts/gigadrill.dm @@ -13,11 +13,11 @@ if(active) active = 0 icon_state = "gigadrill" - user << "You press a button and \the [src] slowly spins down." + to_chat(user, "You press a button and \the [src] slowly spins down.") else active = 1 icon_state = "gigadrill_mov" - user << "You press a button and \the [src] shudders to life." + to_chat(user, "You press a button and \the [src] shudders to life.") /obj/machinery/giga_drill/Bump(atom/A) if(active && !drilling_turf) diff --git a/code/modules/xenoarcheaology/effects/badfeeling.dm b/code/modules/xenoarcheaology/effects/badfeeling.dm index 60386531d9..a0aa7dc775 100644 --- a/code/modules/xenoarcheaology/effects/badfeeling.dm +++ b/code/modules/xenoarcheaology/effects/badfeeling.dm @@ -31,9 +31,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) @@ -44,9 +44,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) @@ -58,9 +58,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/xenoarcheaology/effects/cellcharge.dm b/code/modules/xenoarcheaology/effects/cellcharge.dm index 1ce4233c39..2a819bcadd 100644 --- a/code/modules/xenoarcheaology/effects/cellcharge.dm +++ b/code/modules/xenoarcheaology/effects/cellcharge.dm @@ -10,7 +10,7 @@ var/mob/living/silicon/robot/R = user for (var/obj/item/weapon/cell/D in R.contents) D.charge += rand() * 100 + 50 - R << "SYSTEM ALERT: Large energy boost detected!" + to_chat(R, "SYSTEM ALERT: Large energy boost detected!") return 1 /datum/artifact_effect/cellcharge/DoEffectAura() @@ -25,7 +25,7 @@ for (var/obj/item/weapon/cell/D in M.contents) D.charge += 25 if(world.time - last_message > 200) - M << "SYSTEM ALERT: Energy boost detected!" + to_chat(M, "SYSTEM ALERT: Energy boost detected!") last_message = world.time return 1 @@ -41,6 +41,6 @@ for (var/obj/item/weapon/cell/D in M.contents) D.charge += rand() * 100 if(world.time - last_message > 200) - M << "SYSTEM ALERT: Energy boost detected!" + to_chat(M, "SYSTEM ALERT: Energy boost detected!") last_message = world.time return 1 diff --git a/code/modules/xenoarcheaology/effects/celldrain.dm b/code/modules/xenoarcheaology/effects/celldrain.dm index 4c27aaf134..20d707d9de 100644 --- a/code/modules/xenoarcheaology/effects/celldrain.dm +++ b/code/modules/xenoarcheaology/effects/celldrain.dm @@ -10,7 +10,7 @@ var/mob/living/silicon/robot/R = user for (var/obj/item/weapon/cell/D in R.contents) D.charge = max(D.charge - rand() * 100, 0) - R << "SYSTEM ALERT: Energy drain detected!" + to_chat(R, "SYSTEM ALERT: Energy drain detected!") return 1 return 1 @@ -27,7 +27,7 @@ for (var/obj/item/weapon/cell/D in M.contents) D.charge = max(D.charge - 50,0) if(world.time - last_message > 200) - M << "SYSTEM ALERT: Energy drain detected!" + to_chat(M, "SYSTEM ALERT: Energy drain detected!") last_message = world.time return 1 @@ -43,6 +43,6 @@ for (var/obj/item/weapon/cell/D in M.contents) D.charge = max(D.charge - rand() * 150,0) if(world.time - last_message > 200) - M << "SYSTEM ALERT: Energy drain detected!" + to_chat(M, "SYSTEM ALERT: Energy drain detected!") last_message = world.time return 1 diff --git a/code/modules/xenoarcheaology/effects/cold.dm b/code/modules/xenoarcheaology/effects/cold.dm index 3c7438f93e..9855ac280b 100644 --- a/code/modules/xenoarcheaology/effects/cold.dm +++ b/code/modules/xenoarcheaology/effects/cold.dm @@ -11,7 +11,7 @@ /datum/artifact_effect/cold/DoEffectTouch(var/mob/user) if(holder) - user << "A chill passes up your spine!" + to_chat(user, "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/xenoarcheaology/effects/dnaswitch.dm b/code/modules/xenoarcheaology/effects/dnaswitch.dm index a32cbb8d63..c4c36cb5b1 100644 --- a/code/modules/xenoarcheaology/effects/dnaswitch.dm +++ b/code/modules/xenoarcheaology/effects/dnaswitch.dm @@ -14,13 +14,13 @@ /datum/artifact_effect/dnaswitch/DoEffectTouch(var/mob/toucher) var/weakness = GetAnomalySusceptibility(toucher) if(ishuman(toucher) && prob(weakness * 100)) - toucher << pick("You feel a little different.", + to_chat(toucher,pick("You feel a little different.", "You feel very strange.", "Your stomach churns.", "Your skin feels loose.", "You feel a stabbing pain in your head.", "You feel a tingling sensation in your chest.", - "Your entire body vibrates.") + "Your entire body vibrates.")) if(prob(75)) scramble(1, toucher, weakness * severity) else @@ -34,13 +34,13 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(30)) - H << pick("You feel a little different.", + to_chat(H, pick("You feel a little different.", "You feel very strange.", "Your stomach churns.", "Your skin feels loose.", "You feel a stabbing pain in your head.", "You feel a tingling sensation in your chest.", - "Your entire body vibrates.") + "Your entire body vibrates.")) if(prob(50)) scramble(1, H, weakness * severity) else @@ -53,13 +53,13 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(75)) - H << pick(" You feel a little different.", + to_chat(H, pick(" You feel a little different.", " You feel very strange.", " Your stomach churns.", " Your skin feels loose.", " You feel a stabbing pain in your head.", " You feel a tingling sensation in your chest.", - " Your entire body vibrates.") + " Your entire body vibrates.")) if(prob(25)) if(prob(75)) scramble(1, H, weakness * severity) diff --git a/code/modules/xenoarcheaology/effects/goodfeeling.dm b/code/modules/xenoarcheaology/effects/goodfeeling.dm index 8086d0e673..c5d05adc5e 100644 --- a/code/modules/xenoarcheaology/effects/goodfeeling.dm +++ b/code/modules/xenoarcheaology/effects/goodfeeling.dm @@ -29,9 +29,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) @@ -42,9 +42,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) @@ -56,9 +56,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/xenoarcheaology/effects/heal.dm b/code/modules/xenoarcheaology/effects/heal.dm index 963a0de295..b195c736c1 100644 --- a/code/modules/xenoarcheaology/effects/heal.dm +++ b/code/modules/xenoarcheaology/effects/heal.dm @@ -8,7 +8,7 @@ var/weakness = GetAnomalySusceptibility(toucher) if(prob(weakness * 100)) var/mob/living/carbon/C = toucher - C << "You feel a soothing energy invigorate you." + to_chat(C, "You feel a soothing energy invigorate you.") if(ishuman(toucher)) var/mob/living/carbon/human/H = toucher @@ -40,7 +40,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - C << "You feel a soothing energy radiating from something nearby." + to_chat(C, "You feel a soothing energy radiating from something nearby.") C.adjustBruteLoss(-1 * weakness) C.adjustFireLoss(-1 * weakness) C.adjustToxLoss(-1 * weakness) @@ -55,7 +55,7 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - C << "A wave of energy invigorates you." + to_chat(C, "A wave of energy invigorates you.") C.adjustBruteLoss(-5 * weakness) C.adjustFireLoss(-5 * weakness) C.adjustToxLoss(-5 * weakness) diff --git a/code/modules/xenoarcheaology/effects/heat.dm b/code/modules/xenoarcheaology/effects/heat.dm index d8fd581faf..720d146443 100644 --- a/code/modules/xenoarcheaology/effects/heat.dm +++ b/code/modules/xenoarcheaology/effects/heat.dm @@ -11,7 +11,7 @@ /datum/artifact_effect/heat/DoEffectTouch(var/mob/user) if(holder) - user << " You feel a wave of heat travel up your spine!" + to_chat(user, " 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/xenoarcheaology/effects/hurt.dm b/code/modules/xenoarcheaology/effects/hurt.dm index db8732294d..fb38214e23 100644 --- a/code/modules/xenoarcheaology/effects/hurt.dm +++ b/code/modules/xenoarcheaology/effects/hurt.dm @@ -7,7 +7,7 @@ var/weakness = GetAnomalySusceptibility(toucher) if(iscarbon(toucher) && prob(weakness * 100)) var/mob/living/carbon/C = toucher - C << "A painful discharge of energy strikes you!" + to_chat(C, "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) @@ -25,7 +25,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - C << "You feel a painful force radiating from something nearby." + to_chat(C, "You feel a painful force radiating from something nearby.") C.adjustBruteLoss(1 * weakness) C.adjustFireLoss(1 * weakness) C.adjustToxLoss(1 * weakness) @@ -39,7 +39,7 @@ for (var/mob/living/carbon/C in range(effectrange, T)) var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - C << "A wave of painful energy strikes you!" + to_chat(C, "A wave of painful energy strikes you!") C.adjustBruteLoss(3 * weakness) C.adjustFireLoss(3 * weakness) C.adjustToxLoss(3 * weakness) diff --git a/code/modules/xenoarcheaology/effects/roboheal.dm b/code/modules/xenoarcheaology/effects/roboheal.dm index 5e714ece47..0052a53979 100644 --- a/code/modules/xenoarcheaology/effects/roboheal.dm +++ b/code/modules/xenoarcheaology/effects/roboheal.dm @@ -10,7 +10,7 @@ if(user) if (istype(user, /mob/living/silicon/robot)) var/mob/living/silicon/robot/R = user - R << "Your systems report damaged components mending by themselves!" + to_chat(R, "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(world.time - last_message > 200) - M << "SYSTEM ALERT: Beneficial energy field detected!" + to_chat(M, "SYSTEM ALERT: Beneficial energy field detected!") last_message = world.time M.adjustBruteLoss(-1) M.adjustFireLoss(-1) @@ -32,7 +32,7 @@ var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) if(world.time - last_message > 200) - M << "SYSTEM ALERT: Structural damage has been repaired by energy pulse!" + to_chat(M, "SYSTEM ALERT: Structural damage has been repaired by energy pulse!") last_message = world.time M.adjustBruteLoss(-10) M.adjustFireLoss(-10) diff --git a/code/modules/xenoarcheaology/effects/robohurt.dm b/code/modules/xenoarcheaology/effects/robohurt.dm index 687c41e8e4..8ed47a9e28 100644 --- a/code/modules/xenoarcheaology/effects/robohurt.dm +++ b/code/modules/xenoarcheaology/effects/robohurt.dm @@ -10,7 +10,7 @@ if(user) if (istype(user, /mob/living/silicon/robot)) var/mob/living/silicon/robot/R = user - R << "Your systems report severe damage has been inflicted!" + to_chat(R, "Your systems report severe damage has been inflicted!") R.adjustBruteLoss(rand(10,50)) R.adjustFireLoss(rand(10,50)) 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(world.time - last_message > 200) - M << "SYSTEM ALERT: Harmful energy field detected!" + to_chat(M, "SYSTEM ALERT: Harmful energy field detected!") last_message = world.time M.adjustBruteLoss(1) M.adjustFireLoss(1) @@ -32,7 +32,7 @@ var/turf/T = get_turf(holder) for (var/mob/living/silicon/robot/M in range(src.effectrange,T)) if(world.time - last_message > 200) - M << "SYSTEM ALERT: Structural damage inflicted by energy pulse!" + to_chat(M, "SYSTEM ALERT: Structural damage inflicted by energy pulse!") last_message = world.time M.adjustBruteLoss(10) M.adjustFireLoss(10) diff --git a/code/modules/xenoarcheaology/effects/sleepy.dm b/code/modules/xenoarcheaology/effects/sleepy.dm index d556c76b60..6a0439460a 100644 --- a/code/modules/xenoarcheaology/effects/sleepy.dm +++ b/code/modules/xenoarcheaology/effects/sleepy.dm @@ -11,12 +11,12 @@ var/weakness = GetAnomalySusceptibility(toucher) if(ishuman(toucher) && prob(weakness * 100)) var/mob/living/carbon/human/H = toucher - H << pick("You feel like taking a nap."," You feel a yawn coming on."," You feel a little tired.") + to_chat(H, pick("You feel like taking a nap."," You feel a yawn coming on."," 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 << "SYSTEM ALERT: CPU cycles slowing down." + to_chat(toucher, "SYSTEM ALERT: CPU cycles slowing down.") return 1 /datum/artifact_effect/sleepy/DoEffectAura() @@ -26,11 +26,11 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(10)) - H << pick("You feel like taking a nap."," You feel a yawn coming on."," You feel a little tired.") + to_chat(H, pick("You feel like taking a nap."," You feel a yawn coming on."," 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 << "SYSTEM ALERT: CPU cycles slowing down." + to_chat(R, "SYSTEM ALERT: CPU cycles slowing down.") return 1 /datum/artifact_effect/sleepy/DoEffectPulse() @@ -39,9 +39,9 @@ for(var/mob/living/carbon/human/H in range(src.effectrange, T)) var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) - H << pick("You feel like taking a nap."," You feel a yawn coming on."," You feel a little tired.") + to_chat(H, pick("You feel like taking a nap."," You feel a yawn coming on."," 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 << "SYSTEM ALERT: CPU cycles slowing down." + to_chat(R, "SYSTEM ALERT: CPU cycles slowing down.") return 1 diff --git a/code/modules/xenoarcheaology/effects/stun.dm b/code/modules/xenoarcheaology/effects/stun.dm index 13f30721ab..ab00465477 100644 --- a/code/modules/xenoarcheaology/effects/stun.dm +++ b/code/modules/xenoarcheaology/effects/stun.dm @@ -10,7 +10,7 @@ var/mob/living/carbon/C = toucher var/susceptibility = GetAnomalySusceptibility(C) if(prob(susceptibility * 100)) - C << "A powerful force overwhelms your consciousness." + to_chat(C, "A powerful force overwhelms your consciousness.") C.Weaken(rand(1,10) * susceptibility) C.stuttering += 30 * susceptibility C.Stun(rand(1,10) * susceptibility) @@ -21,13 +21,13 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(10 * susceptibility)) - C << "Your body goes numb for a moment." + to_chat(C, "Your body goes numb for a moment.") C.Weaken(2) C.stuttering += 2 if(prob(10)) C.Stun(1) else if(prob(10)) - C << "You feel numb." + to_chat(C, "You feel numb.") /datum/artifact_effect/stun/DoEffectPulse() if(holder) @@ -35,7 +35,7 @@ for (var/mob/living/carbon/C in range(src.effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(100 * susceptibility)) - C << "A wave of energy overwhelms your senses!" + to_chat(C, "A wave of energy overwhelms your senses!") C.SetWeakened(4 * susceptibility) C.stuttering = 4 * susceptibility if(prob(10)) diff --git a/code/modules/xenoarcheaology/effects/teleport.dm b/code/modules/xenoarcheaology/effects/teleport.dm index 33072efc4a..36b90afd31 100644 --- a/code/modules/xenoarcheaology/effects/teleport.dm +++ b/code/modules/xenoarcheaology/effects/teleport.dm @@ -5,7 +5,7 @@ /datum/artifact_effect/teleport/DoEffectTouch(var/mob/user) var/weakness = GetAnomalySusceptibility(user) if(prob(100 * weakness)) - user << "You are suddenly zapped away elsewhere!" + to_chat(user, "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 << "You are displaced by a strange force!" + to_chat(M, "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 << "You are displaced by a strange force!" + to_chat(M, "You are displaced by a strange force!") if(M.buckled) M.buckled.unbuckle_mob() diff --git a/code/modules/xenoarcheaology/finds/fossils.dm b/code/modules/xenoarcheaology/finds/fossils.dm index 38e8d988f6..4fd8017a38 100644 --- a/code/modules/xenoarcheaology/finds/fossils.dm +++ b/code/modules/xenoarcheaology/finds/fossils.dm @@ -72,7 +72,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/xenoarcheaology/finds/special.dm b/code/modules/xenoarcheaology/finds/special.dm index 7dfa54ebfd..9ab9262223 100644 --- a/code/modules/xenoarcheaology/finds/special.dm +++ b/code/modules/xenoarcheaology/finds/special.dm @@ -129,7 +129,7 @@ var/target = pick(M.organs_by_name) M.apply_damage(rand(5, 10), BRUTE, target) - M << "The skin on your [parse_zone(target)] feels like it's ripping apart, and a stream of blood flies out." + to_chat(M, "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 @@ STOP_PROCESSING(SSobj, src) /obj/effect/shadow_wight/Bump(var/atom/obstacle) - obstacle << "You feel a chill run down your spine!" + to_chat(obstacle, "You feel a chill run down your spine!") diff --git a/code/modules/xenoarcheaology/finds/talking.dm b/code/modules/xenoarcheaology/finds/talking.dm index 33206366f4..231b16230f 100644 --- a/code/modules/xenoarcheaology/finds/talking.dm +++ b/code/modules/xenoarcheaology/finds/talking.dm @@ -48,7 +48,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_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]...",\ @@ -63,10 +63,10 @@ /*/obj/item/weapon/talkingcrystal/proc/debug() //set src in view() for(var/v in heard_words) - world << "[uppertext(v)]" + to_world("[uppertext(v)]") var/list/d = heard_words["[v]"] for(var/X in d) - world << "[X]"*/ + to_world("[X]")*/ /datum/talking_atom/proc/SaySomething(var/word = null) if(!holder_atom) @@ -118,5 +118,5 @@ listening|=M for(var/mob/M in listening) - M << "\icon[holder_atom] [holder_atom] reverberates, \"[msg]\"" + to_chat(M, "\icon[holder_atom] [holder_atom] reverberates, \"[msg]\"") last_talk_time = world.time diff --git a/code/modules/xenoarcheaology/sampling.dm b/code/modules/xenoarcheaology/sampling.dm index ae7c203fa3..ead1ffa8bb 100644 --- a/code/modules/xenoarcheaology/sampling.dm +++ b/code/modules/xenoarcheaology/sampling.dm @@ -94,19 +94,19 @@ /obj/item/device/core_sampler/examine(var/mob/user) if(..(user, 2)) - user << "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, "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(var/obj/item/I, var/mob/living/user) if(istype(I, /obj/item/weapon/evidencebag)) if(I.contents.len) - user << "\The [I] is full." + to_chat(user, "\The [I] is full.") return if(num_stored_bags < 10) qdel(I) num_stored_bags += 1 - user << "You insert \the [I] into \the [src]." + to_chat(user, "You insert \the [I] into \the [src].") else - user << "\The [src] can not fit any more bags." + to_chat(user, "\The [src] can not fit any more bags.") else return ..() @@ -123,9 +123,9 @@ if(geo_data) if(filled_bag) - user << "The core sampler is full." + to_chat(user, "The core sampler is full.") else if(num_stored_bags < 1) - user << "The core sampler is out of sample bags." + to_chat(user, "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) @@ -146,13 +146,13 @@ filled_bag.overlays += "evidence" filled_bag.w_class = ITEMSIZE_TINY - user << "You take a core sample of the [item_to_sample]." + to_chat(user, "You take a core sample of the [item_to_sample].") else - user << "You are unable to take a sample of [item_to_sample]." + to_chat(user, "You are unable to take a sample of [item_to_sample].") /obj/item/device/core_sampler/attack_self(var/mob/living/user) if(filled_bag) - user << "You eject the full sample bag." + to_chat(user, "You eject the full sample bag.") var/success = 0 if(istype(src.loc, /mob)) var/mob/M = src.loc @@ -162,4 +162,4 @@ filled_bag = null icon_state = "sampler0" else - user << "The core sampler is empty." + to_chat(user, "The core sampler is empty.") diff --git a/code/modules/xenoarcheaology/tools/ano_device_battery.dm b/code/modules/xenoarcheaology/tools/ano_device_battery.dm index ce4427d595..937f5f2927 100644 --- a/code/modules/xenoarcheaology/tools/ano_device_battery.dm +++ b/code/modules/xenoarcheaology/tools/ano_device_battery.dm @@ -39,7 +39,7 @@ /obj/item/weapon/anodevice/attackby(var/obj/I as obj, var/mob/user as mob) if(istype(I, /obj/item/weapon/anobattery)) if(!inserted_battery) - user << "You insert the battery." + to_chat(user, "You insert the battery.") user.drop_item() I.loc = src inserted_battery = I @@ -102,7 +102,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/xenoarcheaology/tools/artifact_harvester.dm b/code/modules/xenoarcheaology/tools/artifact_harvester.dm index 253aad11ad..480061f9bb 100644 --- a/code/modules/xenoarcheaology/tools/artifact_harvester.dm +++ b/code/modules/xenoarcheaology/tools/artifact_harvester.dm @@ -23,13 +23,13 @@ /obj/machinery/artifact_harvester/attackby(var/obj/I as obj, var/mob/user as mob) if(istype(I,/obj/item/weapon/anobattery)) if(!inserted_battery) - user << "You insert [I] into [src]." + to_chat(user, "You insert [I] into [src].") user.drop_item() I.loc = src src.inserted_battery = I updateDialog() else - user << "There is already a battery in [src]." + to_chat(user, "There is already a battery in [src].") else return..() diff --git a/code/modules/xenoarcheaology/tools/geosample_scanner.dm b/code/modules/xenoarcheaology/tools/geosample_scanner.dm index 5b31f88400..28cf64b46e 100644 --- a/code/modules/xenoarcheaology/tools/geosample_scanner.dm +++ b/code/modules/xenoarcheaology/tools/geosample_scanner.dm @@ -64,7 +64,7 @@ /obj/machinery/radiocarbon_spectrometer/attackby(var/obj/I as obj, var/mob/user as mob) 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") @@ -82,22 +82,22 @@ if(choice == "Add coolant") var/amount_transferred = min(src.reagents.maximum_volume - src.reagents.total_volume, G.reagents.total_volume) var/trans = G.reagents.trans_to_obj(src, amount_transferred) - user << "You empty [trans ? trans : 0]u of coolant into [src]." + to_chat(user, "You empty [trans ? trans : 0]u of coolant into [src].") update_coolant() return else if(choice == "Empty coolant") var/amount_transferred = min(G.reagents.maximum_volume - G.reagents.total_volume, src.reagents.total_volume) var/trans = src.reagents.trans_to(G, amount_transferred) - user << "You remove [trans ? trans : 0]u of coolant from [src]." + to_chat(user, "You remove [trans ? trans : 0]u of coolant from [src].") update_coolant() return if(scanned_item) - user << "\The [src] already has \a [scanned_item] inside!" + to_chat(user, "\The [src] already has \a [scanned_item] inside!") return user.drop_item() I.loc = src scanned_item = I - user << "You put \the [I] into \the [src]." + to_chat(user, "You put \the [I] into \the [src].") /obj/machinery/radiocarbon_spectrometer/proc/update_coolant() var/total_purity = 0 @@ -337,11 +337,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/xenobio/items/slime_objects.dm b/code/modules/xenobio/items/slime_objects.dm index aa368f6dd6..5e48a99767 100644 --- a/code/modules/xenobio/items/slime_objects.dm +++ b/code/modules/xenobio/items/slime_objects.dm @@ -9,7 +9,7 @@ /obj/item/slime_cube/attack_self(mob/user as mob) if(!searching) - user << "You stare at the slimy cube, watching as some activity occurs." + to_chat(user, "You stare at the slimy cube, watching as some activity occurs.") icon_state = "slime cube active" searching = 1 request_player() diff --git a/code/modules/xenobio2/controller.dm b/code/modules/xenobio2/controller.dm index bcd13bb602..584d820cb2 100644 --- a/code/modules/xenobio2/controller.dm +++ b/code/modules/xenobio2/controller.dm @@ -8,11 +8,11 @@ if(!holder) return if(!xenobio_controller || !xenobio_controller.gene_tag_masks) - usr << "Gene masks not set." + to_chat(usr, "Gene masks not set.") return for(var/mask in xenobio_controller.gene_tag_masks) - usr << "[mask]: [xenobio_controller.gene_tag_masks[mask]]" + to_chat(usr, "[mask]: [xenobio_controller.gene_tag_masks[mask]]") var/global/datum/controller/xenobio/xenobio_controller // Set in New(). diff --git a/code/modules/xenobio2/machinery/injector.dm b/code/modules/xenobio2/machinery/injector.dm index 5761f6b390..cc10bd758f 100644 --- a/code/modules/xenobio2/machinery/injector.dm +++ b/code/modules/xenobio2/machinery/injector.dm @@ -48,11 +48,11 @@ /obj/machinery/xenobio2/manualinjector/proc/move_into_injector(var/mob/user,var/mob/living/victim) if(src.occupant) - user << "The injector is full, empty it first!" + to_chat(user, "The injector is full, empty it first!") return if(!(istype(victim, /mob/living/simple_mob/xeno)) && !emagged) - user << "This is not a suitable subject for the injector!" + to_chat(user, "This is not a suitable subject for the injector!") return user.visible_message("[user] starts to put [victim] into the injector!") @@ -116,14 +116,14 @@ var/obj/machinery/computer/xenobio2/C = P.connectable computer = C C.injector = src - user << " You link the [src] to the [P.connectable]!" + to_chat(user, " You link the [src] to the [P.connectable]!") else - user << " You store the [src] in the [P]'s buffer!" + to_chat(user, " You store the [src] in the [P]'s buffer!") P.connectable = src return if(panel_open) - user << "Close the panel first!" + to_chat(user, "Close the panel first!") var/obj/item/weapon/grab/G = W @@ -131,7 +131,7 @@ return ..() 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_injector(user,G.affecting) diff --git a/code/modules/xenobio2/machinery/injector_computer.dm b/code/modules/xenobio2/machinery/injector_computer.dm index 152e181e90..7967c24be7 100644 --- a/code/modules/xenobio2/machinery/injector_computer.dm +++ b/code/modules/xenobio2/machinery/injector_computer.dm @@ -38,9 +38,9 @@ var/obj/machinery/xenobio2/manualinjector/I = P.connectable injector = I I.computer = src - user << " You link the [src] to the [P.connectable]!" + to_chat(user, " You link the [src] to the [P.connectable]!") else - user << " You store the [src] in the [P]'s buffer!" + to_chat(user, " You store the [src] in the [P]'s buffer!") P.connectable = src return diff --git a/code/modules/xenobio2/machinery/slime_replicator.dm b/code/modules/xenobio2/machinery/slime_replicator.dm index dfd9ac3d6e..da9a752265 100644 --- a/code/modules/xenobio2/machinery/slime_replicator.dm +++ b/code/modules/xenobio2/machinery/slime_replicator.dm @@ -44,10 +44,10 @@ return ..() if(core) - user << "[src] is already filled!" + to_chat(user, "[src] is already filled!") return if(panel_open) - user << "Close the panel first!" + to_chat(user, "Close the panel first!") core = G user.drop_from_inventory(G) G.forceMove(src) diff --git a/code/modules/xenobio2/mob/slime/slime_monkey.dm b/code/modules/xenobio2/mob/slime/slime_monkey.dm index f3205f9e27..39660b1728 100644 --- a/code/modules/xenobio2/mob/slime/slime_monkey.dm +++ b/code/modules/xenobio2/mob/slime/slime_monkey.dm @@ -10,7 +10,7 @@ Slime cube lives here. /obj/item/slime_cube/attack_self(mob/user as mob) if(!searching) - user << "You stare at the slimy cube, watching as some activity occurs." + to_chat(user, "You stare at the slimy cube, watching as some activity occurs.") request_player() /obj/item/slime_cube/proc/request_player() @@ -38,7 +38,7 @@ Slime cube lives here. src.searching = 2 var/mob/living/carbon/human/S = new(get_turf(src)) S.client = candidate.client - S. << "You are a promethean, brought into existence on [station_name()]." + to_chat(S., "You are a promethean, brought into existence on [station_name()].") S.mind.assigned_role = "Promethean" S.set_species("Promethean") S.shapeshifter_set_colour("#05FF9B") diff --git a/code/modules/xenobio2/tools/xeno_trait_scanner.dm b/code/modules/xenobio2/tools/xeno_trait_scanner.dm index 6de41cc3d4..8589cc02cd 100644 --- a/code/modules/xenobio2/tools/xeno_trait_scanner.dm +++ b/code/modules/xenobio2/tools/xeno_trait_scanner.dm @@ -21,7 +21,7 @@ /obj/item/device/analyzer/xeno_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 var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(get_turf(src)) P.name = "paper - [form_title]" @@ -65,7 +65,7 @@ prod_reagents = P.reagents if(!trait_info) - user << "[src] can tell you nothing about \the [target]." + to_chat(user, "[src] can tell you nothing about \the [target].") return form_title = "[targetName]" diff --git a/interface/interface.dm b/interface/interface.dm index 29a3695d33..3c35a1e063 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -181,13 +181,13 @@ Any-Mode: (hotkey doesn't need to be on) "} if(isrobot(src.mob)) - src << robot_hotkey_mode - src << robot_other + to_chat(src,robot_hotkey_mode) + to_chat(src,robot_other) else - src << hotkey_mode - src << other + to_chat(src,hotkey_mode) + to_chat(src,other) if(holder) - src << admin + to_chat(src,admin) // Set the DreamSeeker input macro to the type appropriate for its mob /client/proc/set_hotkeys_macro(macro_name = "macro", hotkey_macro_name = "hotkeymode", hotkeys_enabled = null) diff --git a/maps/RandomZLevels/labyrinth.dm b/maps/RandomZLevels/labyrinth.dm index 4ded38897f..94a88a68fc 100644 --- a/maps/RandomZLevels/labyrinth.dm +++ b/maps/RandomZLevels/labyrinth.dm @@ -173,7 +173,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/maps/RandomZLevels/wildwest.dm b/maps/RandomZLevels/wildwest.dm index 6464339edb..0a64713c7c 100644 --- a/maps/RandomZLevels/wildwest.dm +++ b/maps/RandomZLevels/wildwest.dm @@ -24,18 +24,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 @@ -44,52 +44,52 @@ 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.") if (!(LASER in user.mutations)) user.mutations.Add(LASER) - user << "You feel pressure building behind your eyes." + to_chat(user, "You feel pressure building behind your eyes.") if (!(COLD_RESISTANCE in user.mutations)) user.mutations.Add(COLD_RESISTANCE) - user << "Your body feels warm." + to_chat(user, "Your body feels warm.") if (!(XRAY in user.mutations)) user.mutations.Add(XRAY) user.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS) user.see_in_dark = 8 user.see_invisible = SEE_INVISIBLE_LEVEL_TWO - user << "The walls suddenly disappear." + to_chat(user, "The walls suddenly disappear.") user.dna.mutantrace = "shadow" user.update_mutantrace() 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) user.dna.mutantrace = "shadow" user.update_mutantrace() 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 user.dna.mutantrace = "shadow" user.update_mutantrace() 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++ user.dna.mutantrace = "shadow" user.update_mutantrace() 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_mob/faithless/F in living_mob_list) F.health = -10 F.stat = 2 @@ -121,7 +121,7 @@ if(istype(M, /mob/living/carbon/human) || istype(M, /mob/living/carbon/monkey)) 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) @@ -148,9 +148,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) @@ -167,7 +167,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/tools/IconSplitter/IconSplitter.dm b/tools/IconSplitter/IconSplitter.dm index a13aad9b73..5f1b0e11c2 100644 --- a/tools/IconSplitter/IconSplitter.dm +++ b/tools/IconSplitter/IconSplitter.dm @@ -33,7 +33,7 @@ client/verb/split_dmi() var/user_input while(!user_input) user_input = input(usr, "Enter the criteria for the icon_states you wish to be split. For example, doing _d_s will remove all rolled down jumpsuits.","Split Criteria", "") - world << "Your split criteria is [user_input]" + to_world("Your split criteria is [user_input]") for(var/OriginalState in icon_states(DMIToSplit)) if(findtext(OriginalState, user_input)) diff --git a/tools/Redirector/Configurations.dm b/tools/Redirector/Configurations.dm index 06e2139aea..b76b0b9c07 100644 --- a/tools/Redirector/Configurations.dm +++ b/tools/Redirector/Configurations.dm @@ -37,7 +37,7 @@ proc/gen_configs() else if(admin_gen) adminfiles.Add(line) - world << line + to_world(line) // Generate the list of admins now diff --git a/tools/Redirector/Redirector.dm b/tools/Redirector/Redirector.dm index 9ba2096e73..d6165b2d9c 100644 --- a/tools/Redirector/Redirector.dm +++ b/tools/Redirector/Redirector.dm @@ -36,7 +36,7 @@ mob/Login() var/list/servers = list() for(var/x in global.servers) - world << "[x] [servernames[ global.servers.Find(x) ]]" + to_world("[x] [servernames[ global.servers.Find(x) ]]") var/info = world.Export("[x]?status") var/datum/server/S = new() @@ -46,8 +46,8 @@ mob/Login() S.weight += player_weight * S.players S.link = x - world << S.players - world << S.admins + to_world(S.players) + to_world(S.admins) weights.Add(S.weight) servers.Add(S)