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 86a3c778c3..f30def6e07 100644
--- a/code/ATMOSPHERICS/components/unary/vent_pump.dm
+++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm
@@ -389,11 +389,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 2063385b02..c350cb402c 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 39c8965267..9a36f2dfbc 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 49cfefe1ee..f5e6416f5a 100644
--- a/code/_helpers/logging.dm
+++ b/code/_helpers/logging.dm
@@ -9,16 +9,16 @@
/proc/error(msg)
- world.log << "## ERROR: [msg][log_end]"
+ to_world_log("## ERROR: [msg][log_end]")
#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][log_end]"
+ to_world_log("## WARNING: [msg][log_end]")
//print a testing-mode debug message to world.log
/proc/testing(msg)
- world.log << "## TESTING: [msg][log_end]"
+ to_world_log("## TESTING: [msg][log_end]")
/proc/log_admin(text)
admin_log.Add(text)
@@ -36,7 +36,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)
@@ -141,19 +141,19 @@
/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)
diary << "\[[time_stamp()]]DD_OUTPUT: [text][log_end]"
/proc/log_error(text)
- world.log << text
+ to_world_log(text)
error_log << "\[[time_stamp()]]RUNTIME: [text][log_end]"
/proc/log_misc(text)
diary << "\[[time_stamp()]]MISC: [text][log_end]"
/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 71fe64884e..60075f3e95 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 fc06f8e0cc..d7b6dafa44 100644
--- a/code/_onclick/hud/ability_screen_objects.dm
+++ b/code/_onclick/hud/ability_screen_objects.dm
@@ -269,7 +269,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.
@@ -304,7 +304,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 ba2e73c1a0..381e80b021 100644
--- a/code/_onclick/hud/hud.dm
+++ b/code/_onclick/hud/hud.dm
@@ -326,11 +326,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 5c7c07ec25..46e3349615 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 d7ae7cf1ac..a90e0d4ee8 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 e7c3d5aaf9..801045b958 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["Continue The Round"])
. = 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 = "End the shift?"
choices.Add("Initiate Crew Transfer", "Continue The Round")
@@ -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 1ece4c93a6..588536f156 100644
--- a/code/datums/datacore.dm
+++ b/code/datums/datacore.dm
@@ -51,7 +51,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 30219ff91e..3a22a1e86f 100644
--- a/code/datums/helper_datums/teleport.dm
+++ b/code/datums/helper_datums/teleport.dm
@@ -159,7 +159,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()
@@ -178,7 +178,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 8617c9c847..7cab53b801 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/areas.dm b/code/game/area/areas.dm
index ecddd5cb4b..0f9b208d77 100644
--- a/code/game/area/areas.dm
+++ b/code/game/area/areas.dm
@@ -323,7 +323,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 1765d05e9f..c925ec2b5c 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 88075e7844..71db3c0378 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)
@@ -175,4 +175,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 3e8d5551da..9ddbfe45bb 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]")
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 8392002a36..2832cbe0dc 100644
--- a/code/game/gamemodes/events/holidays/Holidays.dm
+++ b/code/game/gamemodes/events/holidays/Holidays.dm
@@ -231,11 +231,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 6921e8fcab..bf3c9314d0 100644
--- a/code/game/gamemodes/gameticker.dm
+++ b/code/game/gamemodes/gameticker.dm
@@ -99,7 +99,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()
@@ -108,7 +108,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)
@@ -376,43 +376,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
@@ -424,15 +424,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 7a2b15af19..0619f07ef6 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 ef966e36a1..77ac932baa 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 fd287df8e5..f153edcf41 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()
@@ -373,7 +373,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")
@@ -389,7 +389,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)
@@ -410,12 +410,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]\"")
@@ -455,12 +455,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")
@@ -479,16 +479,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.
@@ -609,7 +609,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 to the station shortly by shuttle"
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 0d74738e87..bc4e03f414 100644
--- a/code/game/machinery/alarm.dm
+++ b/code/game/machinery/alarm.dm
@@ -397,7 +397,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
@@ -605,7 +605,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
@@ -642,7 +642,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 603f88e0c9..a2281c7069 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/camera/camera.dm b/code/game/machinery/camera/camera.dm
index 081f2d5343..80bb492707 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)
@@ -169,7 +169,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"]!",
@@ -190,10 +190,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)
@@ -214,28 +214,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
@@ -391,7 +394,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
@@ -408,7 +411,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 72b32b95d3..31877f868e 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 8885e4a289..2968ae8aaf 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 97a3cfed95..780947671e 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()
@@ -476,25 +476,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)
@@ -502,7 +502,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/medical.dm b/code/game/machinery/computer/medical.dm
index 261480ef8d..d3daba4b5e 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 f67ecff2cd..7b7b75d956 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -426,7 +426,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)
//Handle job slot/tater cleanup.
@@ -618,7 +618,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.
@@ -638,7 +638,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)
@@ -649,8 +649,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/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index a1f26485b9..cc3cb4f09e 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -491,7 +491,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
@@ -726,43 +726,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
@@ -800,16 +800,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 ..()
@@ -830,20 +830,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)
@@ -853,7 +853,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)
@@ -861,13 +861,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
@@ -876,7 +876,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))
@@ -903,7 +903,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)
@@ -925,7 +925,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))
@@ -953,9 +953,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)
@@ -967,12 +967,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..e7f39ade5f 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,8 @@
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"]."
+ var/message = "\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,message)
/obj/machinery/floorlayer/proc/reset()
on=0
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index cddec859ad..e17ed67bc2 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.
@@ -222,7 +222,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/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 7a1f12627e..ccca5262d5 100644
--- a/code/game/machinery/status_display.dm
+++ b/code/game/machinery/status_display.dm
@@ -148,7 +148,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 a96c21025f..13635326b0 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 1d3556b45e..a0bdb5cd43 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -238,7 +238,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
@@ -265,7 +265,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..a3911a2efa 100644
--- a/code/game/machinery/wishgranter.dm
+++ b/code/game/machinery/wishgranter.dm
@@ -13,23 +13,24 @@
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."
+ var/message = "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, message)
+ 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 +64,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 74cdb2d368..34b1655fff 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()
@@ -1590,7 +1590,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)
@@ -1702,10 +1702,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)
@@ -1715,7 +1715,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()
@@ -1724,7 +1724,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/objects/buckling.dm b/code/game/objects/buckling.dm
index 8d4bfe0555..45bf48ee25 100644
--- a/code/game/objects/buckling.dm
+++ b/code/game/objects/buckling.dm
@@ -100,7 +100,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 f32a75dcce..e8a274770b 100644
--- a/code/game/objects/effects/chem/foam.dm
+++ b/code/game/objects/effects/chem/foam.dm
@@ -162,7 +162,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)
@@ -178,4 +178,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 7a773c733e..a8f16d73fc 100644
--- a/code/game/objects/effects/decals/Cleanable/humans.dm
+++ b/code/game/objects/effects/decals/Cleanable/humans.dm
@@ -124,7 +124,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()
@@ -170,7 +170,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 551449a8fb..a4367fcf72 100644
--- a/code/game/objects/effects/effect_system.dm
+++ b/code/game/objects/effects/effect_system.dm
@@ -245,7 +245,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)
@@ -505,10 +505,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
@@ -531,7 +531,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 056d9f7295..60396e1082 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 5a62262831..02581f6a05 100644
--- a/code/game/objects/effects/spiders.dm
+++ b/code/game/objects/effects/spiders.dm
@@ -230,7 +230,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 24ba0b9f42..3c1f46bc06 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 56a0a6cbc6..1638c81295 100644
--- a/code/game/objects/items/blueprints.dm
+++ b/code/game/objects/items/blueprints.dm
@@ -39,7 +39,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
@@ -111,20 +111,20 @@ move an amendment to the drawing.
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
@@ -160,11 +160,11 @@ move an amendment to the drawing.
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
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 8264eb8c0f..b98cb98666 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/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 d1d0383221..098fecf628 100644
--- a/code/game/objects/items/devices/communicator/phone.dm
+++ b/code/game/objects/items/devices/communicator/phone.dm
@@ -349,13 +349,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)
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 65584a639d..be4127c80b 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -54,7 +54,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()
@@ -103,15 +103,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)
@@ -135,38 +135,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()
@@ -179,7 +179,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()
@@ -228,13 +228,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
..()
@@ -359,7 +359,7 @@
// Usual checks
if(!fuel)
- user << "It's out of fuel."
+ to_chat(user, "It's out of fuel.")
return
if(on)
return
@@ -413,7 +413,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 cac162f5f7..33fc5c6416 100644
--- a/code/game/objects/items/devices/radio/radio.dm
+++ b/code/game/objects/items/devices/radio/radio.dm
@@ -236,7 +236,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
@@ -359,7 +359,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
@@ -413,7 +413,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,
@@ -466,7 +466,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 34ae9891ba..a336326845 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 5e8ea06534..0eeb805aee 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
@@ -359,7 +359,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)
@@ -400,12 +400,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
@@ -427,7 +427,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)
@@ -435,7 +435,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
@@ -452,7 +452,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
@@ -467,14 +467,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 c284cec896..788fc0d15f 100644
--- a/code/game/objects/items/weapons/id cards/cards.dm
+++ b/code/game/objects/items/weapons/id cards/cards.dm
@@ -92,9 +92,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 bbfe844c25..36725e6b15 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 eec78da964..4b9cd61923 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 7d7d78eeba..c9849d9f20 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 dbc573cf26..1c5fde4687 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/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 e8084b478c..34dc7850ee 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 b456be7478..335a161640 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 36392a2e69..8e27d6eaa1 100644
--- a/code/game/objects/items/weapons/tools/weldingtool.dm
+++ b/code/game/objects/items/weapons/tools/weldingtool.dm
@@ -557,11 +557,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 1e63201f4e..743eabc758 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 454fab779d..0a77e4cafc 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
@@ -59,7 +59,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)))
@@ -72,7 +72,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()
@@ -81,7 +81,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)
@@ -103,9 +103,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 854fc58b3d..55378be679 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 c8fad198d0..d959aaa1ee 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 9322c8656e..c1ccfb6c69 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/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 b594ad678a..c2665659f8 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 6f01223f13..4d606bc3f2 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
..()
@@ -191,7 +191,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()
@@ -316,7 +316,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 0c97ec387e..d0ae0c020a 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 363bf67ae5..e8d12d6027 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).")
@@ -64,9 +64,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"
@@ -74,7 +74,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)
@@ -97,7 +97,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).")
@@ -149,12 +149,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 a8100038a8..e82b4ccb32 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"
@@ -183,4 +183,4 @@
if(config.show_event_managers)
msg += "\n Current Event Managers ([num_event_managers_online]):\n" + eventMmsg
- src << msg
+ to_chat(src,msg)
diff --git a/code/game/world.dm b/code/game/world.dm
index da14592a2b..ec5035d76c 100644
--- a/code/game/world.dm
+++ b/code/game/world.dm
@@ -1,7 +1,7 @@
#define RECOMMENDED_VERSION 501
/world/New()
- world.log << "Map Loading Complete"
+ to_world_log("Map Loading Complete")
//logs
log_path += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
diary = file("[log_path].log")
@@ -12,7 +12,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()
@@ -323,12 +323,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"
@@ -383,10 +383,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
@@ -539,11 +539,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()
@@ -566,7 +566,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 .
@@ -583,11 +583,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.
@@ -611,7 +611,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 0b3899ad99..6be364ce63 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]")
@@ -207,17 +207,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 4ca0c57f13..02bd046406 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 NewscasterAdmin 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!
@@ -707,7 +707,7 @@ proc/admin_notice(var/message, var/rights)
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?
\
@@ -731,12 +731,12 @@ proc/admin_notice(var/message, var/rights)
//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.
@@ -745,24 +745,24 @@ proc/admin_notice(var/message, var/rights)
//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
@@ -788,9 +788,9 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -804,9 +804,9 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -821,9 +821,9 @@ proc/admin_notice(var/message, var/rights)
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
@@ -878,7 +878,7 @@ proc/admin_notice(var/message, var/rights)
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()
@@ -887,9 +887,9 @@ proc/admin_notice(var/message, var/rights)
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()
@@ -901,9 +901,9 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -914,9 +914,9 @@ proc/admin_notice(var/message, var/rights)
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()
@@ -953,10 +953,10 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -991,7 +991,7 @@ proc/admin_notice(var/message, var/rights)
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)" : ""]")
@@ -1085,18 +1085,18 @@ proc/admin_notice(var/message, var/rights)
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"
@@ -1151,10 +1151,10 @@ proc/admin_notice(var/message, var/rights)
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()
@@ -1240,9 +1240,9 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -1253,9 +1253,9 @@ proc/admin_notice(var/message, var/rights)
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!
@@ -1265,21 +1265,21 @@ proc/admin_notice(var/message, var/rights)
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"
@@ -1288,7 +1288,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/mob/living/carbon/human/M = input("Select mob.", "Select mob.") as null|anything in human_mob_list
@@ -1400,16 +1400,16 @@ 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
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]
@@ -1424,11 +1424,11 @@ proc/admin_notice(var/message, var/rights)
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.")
@@ -1466,7 +1466,7 @@ proc/admin_notice(var/message, var/rights)
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"
@@ -1482,7 +1482,7 @@ proc/admin_notice(var/message, var/rights)
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()
@@ -1496,7 +1496,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/replyorigin = input(src.owner, "Please specify who the fax is coming from", "Origin") as text|null
@@ -1554,20 +1554,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,"