diff --git a/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm b/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
index ea25730ea8..87c430c5d7 100644
--- a/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
@@ -134,7 +134,7 @@
if(try_load_materials(user, W))
return
else
- to_chat(user, "You cannot insert this item into \the [src]!")
+ to_chat(user, span_notice("You cannot insert this item into \the [src]!"))
return
/obj/machinery/atmospherics/binary/algae_farm/attack_hand(mob/user)
@@ -249,7 +249,7 @@
if(!istype(S))
return 0
if(!(S.material.name in stored_material))
- to_chat(user, "\The [src] doesn't accept [material_display_name(S.material)]!")
+ to_chat(user, span_warning("\The [src] doesn't accept [material_display_name(S.material)]!"))
return 1
var/max_res_amount = storage_capacity[S.material.name]
if(stored_material[S.material.name] + S.perunit <= max_res_amount)
@@ -258,10 +258,10 @@
stored_material[S.material.name] += S.perunit
S.use(1)
count++
- user.visible_message("\The [user] inserts [S.name] into \the [src].", "You insert [count] [S.name] into \the [src].")
+ user.visible_message("\The [user] inserts [S.name] into \the [src].", span_notice("You insert [count] [S.name] into \the [src]."))
updateUsrDialog()
else
- to_chat(user, "\The [src] cannot hold more [S.name].")
+ to_chat(user, span_warning("\The [src] cannot hold more [S.name]."))
return 1
/datum/material/algae
diff --git a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
index 900699b8c5..185ac8c9c7 100644
--- a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
@@ -208,7 +208,7 @@
return
add_fingerprint(usr)
if(!allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
tgui_interact(user)
@@ -282,18 +282,18 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (unlocked)
- to_chat(user, "You cannot unwrench \the [src], turn it off first.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], turn it off first."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/binary_devices/pipeturbine.dm b/code/ATMOSPHERICS/components/binary_devices/pipeturbine.dm
index 664708ac2d..df55d47a9f 100644
--- a/code/ATMOSPHERICS/components/binary_devices/pipeturbine.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/pipeturbine.dm
@@ -85,7 +85,7 @@
if(W.has_tool_quality(TOOL_WRENCH))
anchored = !anchored
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You [anchored ? "secure" : "unsecure"] the bolts holding \the [src] to the floor.")
+ to_chat(user, span_notice("You [anchored ? "secure" : "unsecure"] the bolts holding \the [src] to the floor."))
if(anchored)
if(dir & (NORTH|SOUTH))
@@ -260,7 +260,7 @@
anchored = !anchored
playsound(src, W.usesound, 50, 1)
turbine = null
- to_chat(user, "You [anchored ? "secure" : "unsecure"] the bolts holding \the [src] to the floor.")
+ to_chat(user, span_notice("You [anchored ? "secure" : "unsecure"] the bolts holding \the [src] to the floor."))
updateConnection()
else
..()
@@ -283,4 +283,4 @@
if (usr.stat || usr.restrained() || anchored)
return
- src.set_dir(turn(src.dir, 90))
\ No newline at end of file
+ src.set_dir(turn(src.dir, 90))
diff --git a/code/ATMOSPHERICS/components/binary_devices/pump.dm b/code/ATMOSPHERICS/components/binary_devices/pump.dm
index 7951dda69a..d05f4fdc82 100644
--- a/code/ATMOSPHERICS/components/binary_devices/pump.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/pump.dm
@@ -205,7 +205,7 @@ Thus, the two variables affect pump operation are set in New():
return
add_fingerprint(usr)
if(!allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
tgui_interact(user)
@@ -242,17 +242,17 @@ Thus, the two variables affect pump operation are set in New():
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (!(stat & NOPOWER) && use_power)
- to_chat(user, "You cannot unwrench this [src], turn it off first.")
+ to_chat(user, span_warning("You cannot unwrench this [src], turn it off first."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench this [src], it too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench this [src], it too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
index 615a14ecdc..60040ddd8b 100644
--- a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
+++ b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
@@ -84,15 +84,15 @@
return ..()
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
playsound(src, W.usesound, 50, 1)
if(do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/portables_connector.dm b/code/ATMOSPHERICS/components/portables_connector.dm
index a8cbd02ed6..1974cdb1d6 100644
--- a/code/ATMOSPHERICS/components/portables_connector.dm
+++ b/code/ATMOSPHERICS/components/portables_connector.dm
@@ -150,19 +150,19 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (connected_device)
- to_chat(user, "You cannot unwrench \the [src], dettach \the [connected_device] first.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], dettach \the [connected_device] first."))
return 1
if (locate(/obj/machinery/portable_atmospherics, src.loc))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/trinary_devices/filter.dm b/code/ATMOSPHERICS/components/trinary_devices/filter.dm
index 18ade9acef..fc2cb986cc 100755
--- a/code/ATMOSPHERICS/components/trinary_devices/filter.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/filter.dm
@@ -116,7 +116,7 @@
return
if(!src.allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
tgui_interact(user)
@@ -157,7 +157,7 @@
// user << browse("
[src.name] control[dat]", "window=atmos_filter")
// onclose(user, "atmos_filter")
-
+
/obj/machinery/atmospherics/trinary/atmos_filter/tgui_interact(mob/user, datum/tgui/ui)
diff --git a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
index 7e06e5de82..3fd2380e0f 100644
--- a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
@@ -101,7 +101,7 @@
tgui_interact(user)
// src.add_fingerprint(usr)
// if(!src.allowed(user))
- // to_chat(user, "Access denied.")
+ // to_chat(user, span_warning("Access denied."))
// return
// usr.set_machine(src)
// var/list/node_connects = get_node_connect_dirs()
diff --git a/code/ATMOSPHERICS/components/trinary_devices/trinary_base.dm b/code/ATMOSPHERICS/components/trinary_devices/trinary_base.dm
index be7a36bed2..61ade8f501 100644
--- a/code/ATMOSPHERICS/components/trinary_devices/trinary_base.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/trinary_base.dm
@@ -55,15 +55,15 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/tvalve.dm b/code/ATMOSPHERICS/components/tvalve.dm
index 2681a688eb..f220c45904 100644
--- a/code/ATMOSPHERICS/components/tvalve.dm
+++ b/code/ATMOSPHERICS/components/tvalve.dm
@@ -288,7 +288,7 @@
if(!powered())
return
if(!src.allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
..()
@@ -330,15 +330,15 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/unary/heat_exchanger.dm b/code/ATMOSPHERICS/components/unary/heat_exchanger.dm
index 2dd23c362f..2f69eaacc5 100644
--- a/code/ATMOSPHERICS/components/unary/heat_exchanger.dm
+++ b/code/ATMOSPHERICS/components/unary/heat_exchanger.dm
@@ -71,17 +71,17 @@
return ..()
var/turf/T = src.loc
if (level==1 && isturf(T) && !T.is_plating())
- to_chat(user, "You must remove the plating first.")
+ to_chat(user, span_warning("You must remove the plating first."))
return 1
if (!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/unary/outlet_injector.dm b/code/ATMOSPHERICS/components/unary/outlet_injector.dm
index e4f90c1afc..fc81777419 100644
--- a/code/ATMOSPHERICS/components/unary/outlet_injector.dm
+++ b/code/ATMOSPHERICS/components/unary/outlet_injector.dm
@@ -158,7 +158,7 @@
update_underlays()
/obj/machinery/atmospherics/unary/outlet_injector/attack_hand(mob/user as mob)
- to_chat(user, "You toggle \the [src].")
+ to_chat(user, span_notice("You toggle \the [src]."))
injecting = !injecting
update_use_power(injecting ? USE_POWER_IDLE : USE_POWER_OFF)
update_icon()
@@ -168,10 +168,10 @@
return ..()
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/unary/unary_base.dm b/code/ATMOSPHERICS/components/unary/unary_base.dm
index 9a3a4d3e44..1f8026209d 100644
--- a/code/ATMOSPHERICS/components/unary/unary_base.dm
+++ b/code/ATMOSPHERICS/components/unary/unary_base.dm
@@ -106,11 +106,11 @@
for(var/obj/machinery/atmospherics/M in loc)
if(M == src) continue
if((M.pipe_flags & pipe_flags & PIPING_ONE_PER_TURF)) //Only one dense/requires density object per tile, eg connectors/cryo/heater/coolers.
- visible_message("\The [src]'s cannot be connected, something is hogging the tile!")
+ visible_message(span_warning("\The [src]'s cannot be connected, something is hogging the tile!"))
return TRUE
if((M.piping_layer != piping_layer) && !((M.pipe_flags | flags) & PIPING_ALL_LAYER)) // Pipes on different layers can't block each other unless they are ALL_LAYER
continue
if(M.get_init_dirs() & get_init_dirs()) // matches at least one direction on either type of pipe
- visible_message("\The [src]'s connector can't be connected, there is already a pipe at that location!")
+ visible_message(span_warning("\The [src]'s connector can't be connected, there is already a pipe at that location!"))
return TRUE
return FALSE
diff --git a/code/ATMOSPHERICS/components/unary/vent_pump.dm b/code/ATMOSPHERICS/components/unary/vent_pump.dm
index 75c82aed60..e59f5fc498 100644
--- a/code/ATMOSPHERICS/components/unary/vent_pump.dm
+++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm
@@ -393,22 +393,22 @@
if(W.has_tool_quality(TOOL_WELDER))
var/obj/item/weldingtool/WT = W.get_welder()
if (WT.remove_fuel(0,user))
- to_chat(user, "Now welding the vent.")
+ to_chat(user, span_notice("Now welding the vent."))
if(do_after(user, 20 * WT.toolspeed))
if(!src || !WT.isOn()) return
playsound(src, WT.usesound, 50, 1)
if(!welded)
- user.visible_message("\The [user] welds the vent shut.", "You weld the vent shut.", "You hear welding.")
+ user.visible_message("\The [user] welds the vent shut.", span_notice("You weld the vent shut."), "You hear welding.")
welded = 1
update_icon()
else
- user.visible_message("[user] unwelds the vent.", "You unweld the vent.", "You hear welding.")
+ user.visible_message(span_notice("[user] unwelds the vent."), span_notice("You unweld the vent."), "You hear welding.")
welded = 0
update_icon()
else
- to_chat(user, "The welding tool needs to be on to start this task.")
+ to_chat(user, span_notice("The welding tool needs to be on to start this task."))
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_warning("You need more welding fuel to complete this task."))
return 1
else
..()
@@ -432,22 +432,22 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (!(stat & NOPOWER) && use_power)
- to_chat(user, "You cannot unwrench \the [src], turn it off first.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], turn it off first."))
return 1
var/turf/T = src.loc
if (node && node.level==1 && isturf(T) && !T.is_plating())
- to_chat(user, "You must remove the plating first.")
+ to_chat(user, span_warning("You must remove the plating first."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm
index da96854986..93082e06fe 100644
--- a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm
+++ b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm
@@ -273,22 +273,22 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (!(stat & NOPOWER) && use_power)
- to_chat(user, "You cannot unwrench \the [src], turn it off first.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], turn it off first."))
return 1
var/turf/T = src.loc
if (node && node.level==1 && isturf(T) && !T.is_plating())
- to_chat(user, "You must remove the plating first.")
+ to_chat(user, span_warning("You must remove the plating first."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/components/valve.dm b/code/ATMOSPHERICS/components/valve.dm
index 3334f29891..a061290184 100644
--- a/code/ATMOSPHERICS/components/valve.dm
+++ b/code/ATMOSPHERICS/components/valve.dm
@@ -238,7 +238,7 @@
if(!powered())
return
if(!src.allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
..()
@@ -291,18 +291,18 @@
if (!W.has_tool_quality(TOOL_WRENCH))
return ..()
if (istype(src, /obj/machinery/atmospherics/valve/digital) && !src.allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/mainspipe.dm b/code/ATMOSPHERICS/mainspipe.dm
index e7a0d09477..b67b289d25 100644
--- a/code/ATMOSPHERICS/mainspipe.dm
+++ b/code/ATMOSPHERICS/mainspipe.dm
@@ -650,7 +650,7 @@ obj/machinery/atmospherics/mains_pipe/valve
attack_hand(mob/user as mob)
if(!src.allowed(user))
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
..()
diff --git a/code/ATMOSPHERICS/pipes/pipe_base.dm b/code/ATMOSPHERICS/pipes/pipe_base.dm
index 04ef9a3457..0c7a40ae6b 100644
--- a/code/ATMOSPHERICS/pipes/pipe_base.dm
+++ b/code/ATMOSPHERICS/pipes/pipe_base.dm
@@ -120,18 +120,18 @@
return ..()
var/turf/T = src.loc
if (level==1 && isturf(T) && !T.is_plating())
- to_chat(user, "You must remove the plating first.")
+ to_chat(user, span_warning("You must remove the plating first."))
return 1
if(!can_unwrench())
- to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.")
+ to_chat(user, span_warning("You cannot unwrench \the [src], it is too exerted due to internal pressure."))
add_fingerprint(user)
return 1
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if (do_after(user, 10 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear a ratchet.")
deconstruct()
diff --git a/code/ATMOSPHERICS/pipes/simple.dm b/code/ATMOSPHERICS/pipes/simple.dm
index def462a354..ccfe7bb0b7 100644
--- a/code/ATMOSPHERICS/pipes/simple.dm
+++ b/code/ATMOSPHERICS/pipes/simple.dm
@@ -77,7 +77,7 @@
initialize_directions = SOUTH|WEST
/obj/machinery/atmospherics/pipe/simple/proc/burst()
- src.visible_message("\The [src] bursts!");
+ src.visible_message(span_danger("\The [src] bursts!"));
playsound(src, 'sound/effects/bang.ogg', 25, 1)
var/datum/effect/effect/system/smoke_spread/smoke = new
smoke.set_up(1,0, src.loc, 0)
diff --git a/code/ZAS/Airflow.dm b/code/ZAS/Airflow.dm
index fcc81509c8..f02943f2f5 100644
--- a/code/ZAS/Airflow.dm
+++ b/code/ZAS/Airflow.dm
@@ -9,13 +9,13 @@ Contains helper procs for airflow, handled in /connection_group.
if(last_airflow_stun > world.time - vsc.airflow_stun_cooldown) return 0
if(!(status_flags & CANSTUN) && !(status_flags & CANWEAKEN))
- to_chat(src, "You stay upright as the air rushes past you.")
+ to_chat(src, span_notice("You stay upright as the air rushes past you."))
return 0
if(buckled)
- to_chat(src, "Air suddenly rushes past you!")
+ to_chat(src, span_notice("Air suddenly rushes past you!"))
return 0
if(!lying)
- to_chat(src, "The sudden rush of air knocks you over!")
+ to_chat(src, span_warning("The sudden rush of air knocks you over!"))
Weaken(5)
last_airflow_stun = world.time
@@ -24,7 +24,7 @@ Contains helper procs for airflow, handled in /connection_group.
/mob/living/carbon/human/airflow_stun()
if(shoes && (shoes.item_flags & NOSLIP))
- to_chat(src, "Air suddenly rushes past you!")
+ to_chat(src, span_notice("Air suddenly rushes past you!"))
return 0
..()
@@ -96,7 +96,7 @@ Contains helper procs for airflow, handled in /connection_group.
/mob/airflow_hit(atom/A)
for(var/mob/M in hearers(src))
- M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2)
+ M.show_message(span_danger("\The [src] slams into \a [A]!"),1,span_danger("You hear a loud slam!"),2)
playsound(src, "smash.ogg", 25, 1, -1)
var/weak_amt = istype(A,/obj/item) ? A:w_class : rand(1,5) //Heheheh
Weaken(weak_amt)
@@ -104,7 +104,7 @@ Contains helper procs for airflow, handled in /connection_group.
/obj/airflow_hit(atom/A)
for(var/mob/M in hearers(src))
- M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2)
+ M.show_message(span_danger("\The [src] slams into \a [A]!"),1,span_danger("You hear a loud slam!"),2)
playsound(src, "smash.ogg", 25, 1, -1)
. = ..()
@@ -114,7 +114,7 @@ Contains helper procs for airflow, handled in /connection_group.
/mob/living/carbon/human/airflow_hit(atom/A)
// for(var/mob/M in hearers(src))
-// M.show_message("[src] slams into [A]!",1,"You hear a loud slam!",2)
+// M.show_message(span_danger("[src] slams into [A]!"),1,span_danger("You hear a loud slam!"),2)
playsound(src, "punch", 25, 1, -1)
if (prob(33))
loc:add_blood(src)
diff --git a/code/ZAS/Phoron.dm b/code/ZAS/Phoron.dm
index 58e74ca4fa..cab64a11f8 100644
--- a/code/ZAS/Phoron.dm
+++ b/code/ZAS/Phoron.dm
@@ -102,8 +102,8 @@ var/image/contamination_overlay = image('icons/effects/contamination.dmi')
if(vsc.plc.SKIN_BURNS && (species.breath_type != "phoron"))
if(!pl_head_protected() || !pl_suit_protected())
burn_skin(0.75)
- if(prob(20))
- to_chat(src, "Your skin burns!")
+ if(prob(20))
+ to_chat(src, span_danger("Your skin burns!"))
updatehealth()
//Burn eyes if exposed.
@@ -134,18 +134,18 @@ var/image/contamination_overlay = image('icons/effects/contamination.dmi')
if(vsc.plc.GENETIC_CORRUPTION && (species.breath_type != "phoron"))
if(rand(1,10000) < vsc.plc.GENETIC_CORRUPTION)
randmutb(src)
- to_chat(src, "High levels of toxins cause you to spontaneously mutate!")
+ to_chat(src, span_danger("High levels of toxins cause you to spontaneously mutate!"))
domutcheck(src,null)
/mob/living/carbon/human/proc/burn_eyes()
var/obj/item/organ/internal/eyes/E = internal_organs_by_name[O_EYES]
if(E)
if(prob(20))
- to_chat(src, "Your eyes burn!")
+ to_chat(src, span_danger("Your eyes burn!"))
E.damage += 2.5
eye_blurry = min(eye_blurry+1.5,50)
if (prob(max(0,E.damage - 15) + 1) &&!eye_blind)
- to_chat(src, "You are blinded!")
+ to_chat(src, span_danger("You are blinded!"))
Blind(20)
/mob/living/carbon/human/proc/pl_head_protected()
diff --git a/code/ZAS/Variable Settings.dm b/code/ZAS/Variable Settings.dm
index d55bcc64de..c4699c7ab0 100644
--- a/code/ZAS/Variable Settings.dm
+++ b/code/ZAS/Variable Settings.dm
@@ -168,7 +168,7 @@ var/global/vs_control/vsc = new
vars[ch] = vw
if(how == "Toggle")
newvar = (newvar?"ON":"OFF")
- to_world("[key_name(user)] changed the setting [display_description] to [newvar].")
+ to_world(span_notice("[key_name(user)] changed the setting [display_description] to [newvar]."))
if(ch in plc.settings)
ChangeSettingsDialog(user,plc.settings)
else
@@ -321,7 +321,7 @@ var/global/vs_control/vsc = new
plc.N2O_HALLUCINATION = initial(plc.N2O_HALLUCINATION)
- to_world("[key_name(user)] changed the global phoron/ZAS settings to \"[def]\"")
+ to_world(span_notice("[key_name(user)] changed the global phoron/ZAS settings to \"[def]\""))
/pl_control/var/list/settings = list()
diff --git a/code/__defines/span_vr.dm b/code/__defines/span_vr.dm
index 50b6f9786a..2d3430e751 100644
--- a/code/__defines/span_vr.dm
+++ b/code/__defines/span_vr.dm
@@ -2,7 +2,10 @@
// We have two other ways of doing this, so why not a third. This one atleast has more span options.
#define span_ooc(str) ("" + str + "")
#define span_looc(str) ("" + str + "")
+#define span_rlooc(str) ("" + str + "")
+#define span_aooc(str) ("" + str + "")
+#define span_npcsay(str) ("" + str + "")
#define span_deadsay(str) ("" + str + "")
#define span_radio(str) ("" + str + "")
#define span_deptradio(str) ("" + str + "")
@@ -22,20 +25,30 @@
#define span_srvradio(str) ("" + str + "")
#define span_expradio(str) ("" + str + "")
-#define span_binary(str) ("" + str + "")
+#define span_binarysay(str) ("" + str + "")
#define span_hivemind(str) ("" + str + "")
#define span_name(str) ("" + str + "")
#define span_say(str) ("" + str + "")
+#define span_filter_say(str) ("" + str + "")
+#define span_npc_say(str) ("" + str + "")
+#define span_multizsay(str) ("" + str + "")
#define span_alert(str) ("" + str + "")
#define span_ghostalert(str) ("" + str + "")
-#define span_npc_say(str) ("" + str + "")
+#define span_game(str) ("" + str + "")
#define span_emote(str) ("" + str + "")
#define span_emote_subtle(str) ("" + str + "")
#define span_npc_emote(str) ("" + str + "")
+#define span_message(str) ("" + str + "") // TODO: This makes no sense, check it! CI Error: Span not defined in scss
+#define span_notify(str) ("" + str + "") // TODO: This makes no sense, check it! CI Error: Span not defined in scss
+#define span_body(str) ("" + str + "")
+#define span_suicide(str) ("" + str + "")
+
+#define span_hear(str) ("" + str + "")
+
#define span_attack(str) ("" + str + "")
#define span_moderate(str) ("" + str + "")
#define span_disarm(str) ("" + str + "")
@@ -45,19 +58,41 @@
#define span_danger(str) ("" + str + "")
#define span_userdanger(str) ("" + str + "")
#define span_warning(str) ("" + str + "")
+#define span_boldwarning(str) ("" + str + "")
+#define span_filter_warning(str) ("" + str + "")
+#define span_filter_combat(str) ("" + str + "")
+#define span_unconscious(str) ("" + str + "")
+
#define span_rose(str) ("" + str + "")
#define span_info(str) ("" + str + "")
+#define span_infoplain(str) ("" + str + "")
#define span_notice(str) ("" + str + "")
+#define span_filter_notice(str) ("" + str + "")
+#define span_boldnotice(str) ("" + str + "")
#define span_alium(str) ("" + str + "")
#define span_cult(str) ("" + str + "")
+#define span_sinister(str) ("" + str + "")
+
#define span_reflex_shoot(str) ("" + str + "")
+/* Direct communication spans */
+
+#define span_psay(str) ("" + str + "")
+#define span_pemote(str) ("" + str + "")
+
+/* Export spans */
+
+#define span_chatexport(str) ("" + str + "")
+
/* Vore messages */
+#define span_valert(str) ("" + str + "")
#define span_vdanger(str) ("" + str + "")
#define span_vwarning(str) ("" + str + "")
#define span_vnotice(str) ("" + str + "")
+#define span_nif(str) ("" + str + "")
+#define span_filter_nif(str) ("" + str + "")
/* Languages */
@@ -109,13 +144,32 @@
#define span_maroon(str) ("" + str + "")
#define span_brown(str) ("" + str + "")
#define span_lightpurple(str) ("" + str + "")
-#define span_darkpink(str) ("" + str + "")
+#define span_darkpink(str) ("" + str + "")
/* System and Debug */
+#define span_prefix(str) ("" + str + "")
+#define span_admin(str) ("" + str + "")
+#define span_adminnotice(str) ("" + str + "")
+#define span_boldannounce(str) ("" + str + "")
#define span_linkOn(str) ("" + str + "")
+#define span_linkOff(str) ("" + str + "")
+#define span_log_message(str) ("" + str + "")
#define span_filter_system(str) ("" + str + "")
#define span_filter_debuglogs(str) ("" + str + "")
+#define span_filter_adminlog(str) ("" + str + "")
+#define span_pm(str) ("" + str + "")
+#define span_filter_pm(str) ("" + str + "")
+#define span_adminhelp(str) ("" + str + "")
+#define span_mentor(str) ("" + str + "")
+#define span_filter_pray(str) ("" + str + "")
+
+/* Adminchat */
+
+#define span_admin_channel(str) ("" + str + "")
+#define span_mod_channel(str) ("" + str + "")
+#define span_event_channel(str) ("" + str + "")
+#define span_mentor_channel(str) ("" + str + "")
/* Byond Sizes */
@@ -128,3 +182,10 @@
#define span_huge(X) "[X]"
#define span_giant(X) "[X]"
+
+/* Style spans */
+
+#define span_italics(str) ("" + str + "")
+#define span_bold(str) ("" + str + "")
+
+#define span_linkify(str) ("" + str + "")
diff --git a/code/_helpers/atmospherics.dm b/code/_helpers/atmospherics.dm
index 709b35aba8..7e899ed316 100644
--- a/code/_helpers/atmospherics.dm
+++ b/code/_helpers/atmospherics.dm
@@ -1,16 +1,16 @@
/obj/proc/analyze_gases(var/atom/A, var/mob/user)
if(src != A)
- user.visible_message("\The [user] has used \an [src] on \the [A]")
+ user.visible_message(span_notice("\The [user] has used \an [src] on \the [A]"))
A.add_fingerprint(user)
var/list/result = A.atmosanalyze(user)
if(result && result.len)
- to_chat(user, "Results of the analysis[src == A ? "" : " of \the [A]"]")
+ to_chat(user, span_notice("Results of the analysis[src == A ? "" : " of \the [A]"]"))
for(var/line in result)
- to_chat(user, "[line]")
+ to_chat(user, span_notice("[line]"))
return 1
- to_chat(user, "Your [src] flashes a red light as it fails to analyze \the [A].")
+ to_chat(user, span_warning("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)
@@ -19,13 +19,13 @@
if (mixture && mixture.total_moles > 0)
var/pressure = mixture.return_pressure()
var/total_moles = mixture.total_moles
- results += "Pressure: [round(pressure,0.1)] kPa"
+ results += span_notice("Pressure: [round(pressure,0.1)] kPa")
for(var/mix in mixture.gas)
- results += "[gas_data.name[mix]]: [round((mixture.gas[mix] / total_moles) * 100)]% ([round(mixture.gas[mix], 0.01)] moles)"
- results += "Temperature: [round(mixture.temperature-T0C)]°C"
- results += "Heat Capacity: [round(mixture.heat_capacity(),0.1)]"
+ results += span_notice("[gas_data.name[mix]]: [round((mixture.gas[mix] / total_moles) * 100)]% ([round(mixture.gas[mix], 0.01)] moles)")
+ results += span_notice("Temperature: [round(mixture.temperature-T0C)]°C")
+ results += span_notice("Heat Capacity: [round(mixture.heat_capacity(),0.1)]")
else
- results += "\The [target] is empty!"
+ results += span_notice("\The [target] is empty!")
return results
@@ -55,16 +55,16 @@
/obj/machinery/atmospherics/trinary/atmos_filter/atmosanalyze(var/mob/user)
return atmosanalyzer_scan(src, src.air1, user)
-
+
/obj/machinery/atmospherics/trinary/mixer/atmosanalyze(var/mob/user)
return atmosanalyzer_scan(src, src.air3, user)
-
+
/obj/machinery/atmospherics/omni/atmos_filter/atmosanalyze(var/mob/user)
return atmosanalyzer_scan(src, src.input.air, user)
-
+
/obj/machinery/atmospherics/omni/mixer/atmosanalyze(var/mob/user)
return atmosanalyzer_scan(src, src.output.air, user)
-
+
/obj/machinery/meter/atmosanalyze(var/mob/user)
var/datum/gas_mixture/mixture = null
if(src.target)
diff --git a/code/_helpers/logging.dm b/code/_helpers/logging.dm
index 9348231911..2b61a877ba 100644
--- a/code/_helpers/logging.dm
+++ b/code/_helpers/logging.dm
@@ -48,7 +48,7 @@
if(C.prefs?.read_preference(/datum/preference/toggle/show_debug_logs))
to_chat(C,
type = MESSAGE_TYPE_DEBUG,
- html = "DEBUG: [text]")
+ html = span_filter_debuglogs("DEBUG: [text]"))
/proc/log_game(text)
if (config.log_game)
@@ -178,7 +178,7 @@
WRITE_LOG(diary, "ASSET: [text]")
/proc/report_progress(var/progress_message)
- admin_notice("[progress_message]", R_DEBUG)
+ admin_notice(span_boldannounce("[progress_message]"), R_DEBUG)
to_world_log(progress_message)
//pretty print a direction bitflag, can be useful for debugging.
diff --git a/code/_helpers/mobs.dm b/code/_helpers/mobs.dm
index 442dcbf599..d4a29095b8 100644
--- a/code/_helpers/mobs.dm
+++ b/code/_helpers/mobs.dm
@@ -148,10 +148,10 @@ Proc for attack log creation, because really why not
if(!time)
return TRUE //Done!
if(user.status_flags & DOING_TASK)
- to_chat(user, "You're in the middle of doing something else already.")
+ to_chat(user, span_warning("You're in the middle of doing something else already."))
return FALSE //Performing an exclusive do_after or do_mob already
if(target?.flags & IS_BUSY)
- to_chat(user, "Someone is already doing something with \the [target].")
+ to_chat(user, span_warning("Someone is already doing something with \the [target]."))
return FALSE
var/user_loc = user.loc
var/target_loc = target.loc
@@ -214,10 +214,10 @@ Proc for attack log creation, because really why not
if(!delay)
return TRUE //Okay. Done.
if(user.status_flags & DOING_TASK)
- to_chat(user, "You're in the middle of doing something else already.")
+ to_chat(user, span_warning("You're in the middle of doing something else already."))
return FALSE //Performing an exclusive do_after or do_mob already
if(target?.flags & IS_BUSY)
- to_chat(user, "Someone is already doing something with \the [target].")
+ to_chat(user, span_warning("Someone is already doing something with \the [target]."))
return FALSE
var/atom/target_loc = null
@@ -318,6 +318,6 @@ Proc for attack log creation, because really why not
/proc/not_has_ooc_text(mob/user)
if (config.allow_Metadata && (!user.client?.prefs?.metadata || length(user.client.prefs.metadata) < 15))
- to_chat(user, "Please set informative OOC notes related to RP/ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup.")
+ to_chat(user, span_warning("Please set informative OOC notes related to RP/ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup."))
return TRUE
return FALSE
diff --git a/code/_onclick/ai.dm b/code/_onclick/ai.dm
index 76b18f7222..38828e148f 100644
--- a/code/_onclick/ai.dm
+++ b/code/_onclick/ai.dm
@@ -25,13 +25,13 @@
/mob/living/silicon/ai/ClickOn(var/atom/A, params)
if(!checkClickCooldown())
return
-
+
setClickCooldown(1)
if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked
build_click(src, client.buildmode, params, A)
return
-
+
if(multicam_on)
var/turf/T = get_turf(A)
if(T)
@@ -173,7 +173,7 @@
to_chat(user, "The bolt lights wire is cut - The door bolt lights are permanently disabled.")
return
lights = !lights
- to_chat(user, "Lights are now [lights ? "on." : "off."]")
+ to_chat(user, span_notice("Lights are now [lights ? "on." : "off."]"))
update_icon()
return TRUE
diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm
index 16a35b18ea..d303529c1e 100644
--- a/code/_onclick/click.dm
+++ b/code/_onclick/click.dm
@@ -337,7 +337,7 @@
nutrition = max(nutrition - rand(1,5),0)
handle_regular_hud_updates()
else
- to_chat(src, "You're out of energy! You need food!")
+ to_chat(src, span_warning("You're out of energy! You need food!"))
// Simple helper to face what you clicked on, in case it should be needed in more than one place
/mob/proc/face_atom(var/atom/A)
diff --git a/code/_onclick/cyborg.dm b/code/_onclick/cyborg.dm
index a7ff03177d..15acd142c6 100644
--- a/code/_onclick/cyborg.dm
+++ b/code/_onclick/cyborg.dm
@@ -46,7 +46,7 @@
if(is_component_functioning("camera"))
aiCamera.captureimage(A, usr)
else
- to_chat(src, "Your camera isn't functional.")
+ to_chat(src, span_userdanger("Your camera isn't functional."))
return
/*
diff --git a/code/_onclick/hud/ability_screen_objects.dm b/code/_onclick/hud/ability_screen_objects.dm
index 7690b9d203..905676ff17 100644
--- a/code/_onclick/hud/ability_screen_objects.dm
+++ b/code/_onclick/hud/ability_screen_objects.dm
@@ -290,7 +290,7 @@
if(!mob)
return // Paranoid.
if(isnull(slot) || !isnum(slot))
- to_chat(src, ".activate_ability requires a number as input, corrisponding to the slot you wish to use.")
+ to_chat(src, span_warning(".activate_ability requires a number as input, corrisponding to the slot you wish to use."))
return // Bad input.
if(!mob.ability_master)
return // No abilities.
diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm
index 5a7edb6a33..4af2212d60 100644
--- a/code/_onclick/hud/alert.dm
+++ b/code/_onclick/hud/alert.dm
@@ -468,7 +468,7 @@ so as to remain in compliance with the most up-to-date laws."
return
var/paramslist = params2list(params)
if(paramslist["shift"]) // screen objects don't do the normal Click() stuff so we'll cheat
- to_chat(usr,"[name] - [desc]")
+ to_chat(usr,span_boldnotice("[name] - [desc]"))
return
if(master)
return usr.client.Click(master, location, control, params)
diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm
index f2bf342061..123d94a7d8 100644
--- a/code/_onclick/hud/hud.dm
+++ b/code/_onclick/hud/hud.dm
@@ -362,7 +362,7 @@ var/list/global_huds = list(
set hidden = 1
if(!hud_used)
- to_chat(usr, "This mob type does not use a HUD.")
+ to_chat(usr, span_warning("This mob type does not use a HUD."))
return FALSE
if(!client)
return FALSE
diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm
index 3ab7410269..84c9dc797a 100644
--- a/code/_onclick/hud/robot.dm
+++ b/code/_onclick/hud/robot.dm
@@ -282,11 +282,11 @@ var/obj/screen/robot_inventory
//r.client.screen += robot_inventory //"store" icon
if(!r.module)
- to_chat(usr, "No module selected")
+ to_chat(usr, span_danger("No module selected"))
return
if(!r.module.modules)
- to_chat(usr, "Selected module has no modules to select")
+ to_chat(usr, span_danger("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 b376505a99..cc567b9e2e 100644
--- a/code/_onclick/hud/screen_objects.dm
+++ b/code/_onclick/hud/screen_objects.dm
@@ -290,7 +290,7 @@
if(iscarbon(usr))
var/mob/living/carbon/C = usr
if(C.legcuffed)
- to_chat(C, "You are legcuffed! You cannot run until you get [C.legcuffed] removed!")
+ to_chat(C, span_notice("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
@@ -330,7 +330,7 @@
if(!C.stat && !C.stunned && !C.paralysis && !C.restrained())
if(C.internal)
C.internal = null
- to_chat(C, "No longer running on internals.")
+ to_chat(C, span_notice("No longer running on internals."))
if(C.internals)
C.internals.icon_state = "internal0"
else
@@ -342,7 +342,7 @@
no_mask = 1
if(no_mask)
- to_chat(C, "You are not wearing a suitable mask or helmet.")
+ to_chat(C, span_notice("You are not wearing a suitable mask or helmet."))
return 1
else
var/list/nicename = null
@@ -423,7 +423,7 @@
//We've determined the best container now we set it as our internals
if(best)
- to_chat(C, "You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].")
+ to_chat(C, span_notice("You are now running on internals from [tankcheck[best]] [from] your [nicename[best]]."))
C.internal = tankcheck[best]
@@ -431,7 +431,7 @@
if(C.internals)
C.internals.icon_state = "internal1"
else
- to_chat(C, "You don't have a[breathes=="oxygen" ? "n oxygen" : addtext(" ",breathes)] tank.")
+ to_chat(C, span_notice("You don't have a[breathes=="oxygen" ? "n oxygen" : addtext(" ",breathes)] tank."))
if("act_intent")
usr.a_intent_change("right")
if(I_HELP)
@@ -497,7 +497,7 @@
if(i)
s.can_use(u,i)
else
- to_chat(usr, "You're not holding anything to use. You need to have something in your active hand to use it.")
+ to_chat(usr, span_notice("You're not holding anything to use. You need to have something in your active hand to use it."))
if("module")
if(isrobot(usr))
diff --git a/code/_onclick/hud/screen_objects_vr.dm b/code/_onclick/hud/screen_objects_vr.dm
index 279675c2ee..ea4fbaa9a4 100644
--- a/code/_onclick/hud/screen_objects_vr.dm
+++ b/code/_onclick/hud/screen_objects_vr.dm
@@ -6,63 +6,63 @@
if("darkness")
var/turf/T = get_turf(usr)
var/darkness = round(1 - T.get_lumcount(),0.1)
- to_chat(usr,"Darkness: [darkness]")
+ to_chat(usr,span_notice("Darkness: [darkness]"))
if("energy")
var/mob/living/simple_mob/shadekin/SK = usr
if(istype(SK))
- to_chat(usr,"Energy: [SK.energy] ([SK.dark_gains])")
+ to_chat(usr,span_notice("Energy: [SK.energy] ([SK.dark_gains])"))
if("shadekin status")
var/turf/T = get_turf(usr)
if(T)
var/darkness = round(1 - T.get_lumcount(),0.1)
- to_chat(usr,"Darkness: [darkness]")
+ to_chat(usr,span_notice("Darkness: [darkness]"))
var/mob/living/carbon/human/H = usr
if(istype(H) && istype(H.species, /datum/species/shadekin))
- to_chat(usr,"Energy: [H.shadekin_get_energy(H)]")
+ to_chat(usr,span_notice("Energy: [H.shadekin_get_energy(H)]"))
if("glamour")
var/mob/living/carbon/human/H = usr
if(istype(H))
- to_chat(usr,"Energy: [H.species.lleill_energy]/[H.species.lleill_energy_max]")
+ to_chat(usr,span_notice("Energy: [H.species.lleill_energy]/[H.species.lleill_energy_max]"))
if("danger level")
var/mob/living/carbon/human/H = usr
if(istype(H) && istype(H.species, /datum/species/xenochimera))
if(H.feral > 50)
- to_chat(usr, "You are currently completely feral.")
+ to_chat(usr, span_warning("You are currently completely feral."))
else if(H.feral > 10)
- to_chat(usr, "You are currently crazed and confused.")
+ to_chat(usr, span_warning("You are currently crazed and confused."))
else if(H.feral > 0)
- to_chat(usr, "You are currently acting on instinct.")
+ to_chat(usr, span_warning("You are currently acting on instinct."))
else
- to_chat(usr, "You are currently calm and collected.")
+ to_chat(usr, span_notice("You are currently calm and collected."))
if(H.feral > 0)
var/feral_passing = TRUE
if(H.traumatic_shock > min(60, H.nutrition/10))
- to_chat(usr, "Your pain prevents you from regaining focus.")
+ to_chat(usr, span_warning("Your pain prevents you from regaining focus."))
feral_passing = FALSE
if(H.feral + H.nutrition < 150)
- to_chat(usr, "Your hunger prevents you from regaining focus.")
+ to_chat(usr, span_warning("Your hunger prevents you from regaining focus."))
feral_passing = FALSE
if(H.jitteriness >= 100)
- to_chat(usr, "Your jitterness prevents you from regaining focus.")
+ to_chat(usr, span_warning("Your jitterness prevents you from regaining focus."))
feral_passing = FALSE
if(feral_passing)
var/turf/T = get_turf(H)
if(T.get_lumcount() <= 0.1)
- to_chat(usr, "You are slowly calming down in darkness' safety...")
+ to_chat(usr, span_notice("You are slowly calming down in darkness' safety..."))
else if(isbelly(H.loc)) // Safety message for if inside a belly.
- to_chat(usr, "You are slowly calming down within the darkness of something's belly, listening to their body as it moves around you. ...safe...")
+ to_chat(usr, span_notice("You are slowly calming down within the darkness of something's belly, listening to their body as it moves around you. ...safe..."))
else
- to_chat(usr, "You are slowly calming down... But safety of darkness is much preferred.")
+ to_chat(usr, span_notice("You are slowly calming down... But safety of darkness is much preferred."))
else
if(H.nutrition < 150)
- to_chat(usr, "Your hunger is slowly making you unstable.")
+ to_chat(usr, span_warning("Your hunger is slowly making you unstable."))
if("Reconstructing Form") // Allow Viewing Reconstruction Timer + Hatching for 'chimera
var/mob/living/carbon/human/H = usr
if(istype(H) && istype(H.species, /datum/species/xenochimera)) // If you're somehow able to click this while not a chimera, this should prevent weird runtimes. Will need changing if regeneration is ever opened to non-chimera using the same alert.
if(H.revive_ready == REVIVING_NOW)
- to_chat(usr, "We are currently reviving, and will be done in [round((H.revive_finished - world.time) / 10)] seconds, or [round(((H.revive_finished - world.time) * 0.1) / 60)] minutes.")
+ to_chat(usr, span_notice("We are currently reviving, and will be done in [round((H.revive_finished - world.time) / 10)] seconds, or [round(((H.revive_finished - world.time) * 0.1) / 60)] minutes."))
else if(H.revive_ready == REVIVING_DONE)
- to_chat(usr, "You should have a notification + alert for this! Bug report that this is still here!")
+ to_chat(usr, span_warning("You should have a notification + alert for this! Bug report that this is still here!"))
if("Ready to Hatch") // Allow Viewing Reconstruction Timer + Hatching for 'chimera
var/mob/living/carbon/human/H = usr
@@ -73,4 +73,4 @@
else
return 0
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm
index 5090608504..75d1208a40 100644
--- a/code/_onclick/observer.dm
+++ b/code/_onclick/observer.dm
@@ -6,9 +6,9 @@
if(!client) return
client.inquisitive_ghost = !client.inquisitive_ghost
if(client.inquisitive_ghost)
- to_chat(src, "You will now examine everything you click on.")
+ to_chat(src, span_notice("You will now examine everything you click on."))
else
- to_chat(src, "You will no longer examine things you click on.")
+ to_chat(src, span_notice("You will no longer examine things you click on."))
/mob/observer/dead/DblClickOn(var/atom/A, var/params)
if(client.buildmode)
diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm
index 16141343c6..efe047ebef 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)
- to_chat(user, "Your mind won't reach that far.")
+ to_chat(user, span_notice("Your mind won't reach that far."))
return
if(!focus)
diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm
index da18b6c570..bd846d11bc 100644
--- a/code/controllers/configuration.dm
+++ b/code/controllers/configuration.dm
@@ -71,7 +71,7 @@ var/list/gamemode_cache = list()
var/static/respawn = 1
var/static/respawn_time = 3000 // time before a dead player is allowed to respawn (in ds, though the config file asks for minutes, and it's converted below)
- var/static/respawn_message = "Make sure to play a different character, and please roleplay correctly!"
+ var/static/respawn_message = span_notice("Make sure to play a different character, and please roleplay correctly!")
var/static/guest_jobban = 1
var/static/usewhitelist = 0
@@ -529,7 +529,7 @@ var/list/gamemode_cache = list()
config.respawn_time = raw_minutes MINUTES
if ("respawn_message")
- config.respawn_message = "[value]"
+ config.respawn_message = span_notice("[value]")
if ("servername")
config.server_name = value
diff --git a/code/controllers/failsafe.dm b/code/controllers/failsafe.dm
index 6203388ec1..3022944ec3 100644
--- a/code/controllers/failsafe.dm
+++ b/code/controllers/failsafe.dm
@@ -57,23 +57,23 @@ var/datum/controller/failsafe/Failsafe
if(4,5)
--defcon
if(3)
- log_and_message_admins("SSfailsafe Notice: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has not fired in the last [(5-defcon) * processing_interval] ticks.")
+ log_and_message_admins(span_adminnotice("SSfailsafe Notice: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has not fired in the last [(5-defcon) * processing_interval] ticks."))
--defcon
if(2)
- log_and_message_admins("SSfailsafe Warning: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has not fired in the last [(5-defcon) * processing_interval] ticks. Automatic restart in [processing_interval] ticks.")
+ log_and_message_admins(span_boldannounce("SSfailsafe Warning: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has not fired in the last [(5-defcon) * processing_interval] ticks. Automatic restart in [processing_interval] ticks."))
--defcon
if(1)
- log_and_message_admins("SSfailsafe Warning: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has still not fired within the last [(5-defcon) * processing_interval] ticks. Killing and restarting...")
+ log_and_message_admins(span_boldannounce("SSfailsafe Warning: DEFCON [defcon_pretty()]. The Master Controller (\ref[Master]) has still not fired within the last [(5-defcon) * processing_interval] ticks. Killing and restarting..."))
--defcon
var/rtn = Recreate_MC()
if(rtn > 0)
defcon = 4
master_iteration = 0
- log_and_message_admins("SSfailsafe Notice: MC (New:\ref[Master]) restarted successfully")
+ log_and_message_admins(span_adminnotice("SSfailsafe Notice: MC (New:\ref[Master]) restarted successfully"))
else if(rtn < 0)
log_game("SSfailsafe Notice: Could not restart MC (\ref[Master]), runtime encountered. Entering defcon 0")
- log_and_message_admins("SSFAILSAFE ERROR: DEFCON [defcon_pretty()]. Could not restart MC (\ref[Master]), runtime encountered. I will silently keep retrying.")
+ log_and_message_admins(span_boldannounce("SSFAILSAFE ERROR: DEFCON [defcon_pretty()]. Could not restart MC (\ref[Master]), runtime encountered. I will silently keep retrying."))
//if the return number was 0, it just means the mc was restarted too recently, and it just needs some time before we try again
//no need to handle that specially when defcon 0 can handle it
if(0) //DEFCON 0! (mc failed to restart)
@@ -81,7 +81,7 @@ var/datum/controller/failsafe/Failsafe
if(rtn > 0)
defcon = 4
master_iteration = 0
- log_and_message_admins("SSfailsafe Notice: MC (New:\ref[Master]) restarted successfully")
+ log_and_message_admins(span_adminnotice("SSfailsafe Notice: MC (New:\ref[Master]) restarted successfully"))
else
defcon = min(defcon + 1,5)
master_iteration = Master.iteration
diff --git a/code/controllers/master.dm b/code/controllers/master.dm
index 9b2df0d24f..49f34a5c97 100644
--- a/code/controllers/master.dm
+++ b/code/controllers/master.dm
@@ -141,7 +141,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
BadBoy.critfail()
if(msg)
log_game(msg)
- message_admins("[msg]")
+ message_admins(span_boldannounce("[msg]"))
log_world(msg)
if (istype(Master.subsystems))
@@ -152,7 +152,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
current_runlevel = Master.current_runlevel
StartProcessing(10)
else
- to_world("The Master Controller is having some issues, we will need to re-initialize EVERYTHING")
+ to_world(span_boldannounce("The Master Controller is having some issues, we will need to re-initialize EVERYTHING"))
Initialize(20, TRUE)
@@ -170,7 +170,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
if(init_sss)
init_subtypes(/datum/controller/subsystem, subsystems)
- to_chat(world, "MC: Initializing subsystems...")
+ to_chat(world, span_boldannounce("MC: Initializing subsystems..."))
// Sort subsystems by init_order, so they initialize in the correct order.
sortTim(subsystems, GLOBAL_PROC_REF(cmp_subsystem_init))
@@ -187,7 +187,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
var/time = (REALTIMEOFDAY - start_timeofday) / 10
var/msg = "MC: Initializations complete within [time] second[time == 1 ? "" : "s"]!"
- to_chat(world, "[msg]")
+ to_chat(world, span_boldannounce("[msg]"))
log_world(msg)
if (!current_runlevel)
@@ -591,9 +591,9 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
/datum/controller/master/StartLoadingMap(var/quiet = TRUE)
if(map_loading)
- admin_notice("Another map is attempting to be loaded before first map released lock. Delaying.", R_DEBUG)
+ admin_notice(span_danger("Another map is attempting to be loaded before first map released lock. Delaying."), R_DEBUG)
else if(!quiet)
- admin_notice("Map is now being built. Locking.", R_DEBUG)
+ admin_notice(span_danger("Map is now being built. Locking."), R_DEBUG)
//disallow more than one map to load at once, multithreading it will just cause race conditions
while(map_loading)
@@ -605,7 +605,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
/datum/controller/master/StopLoadingMap(var/quiet = TRUE)
if(!quiet)
- admin_notice("Map is finished. Unlocking.", R_DEBUG)
+ admin_notice(span_danger("Map is finished. Unlocking."), R_DEBUG)
map_loading = FALSE
for(var/datum/controller/subsystem/SS as anything in subsystems)
SS.StopLoadingMap()
diff --git a/code/controllers/master_controller.dm b/code/controllers/master_controller.dm
index 3e369f1271..857ce225f6 100644
--- a/code/controllers/master_controller.dm
+++ b/code/controllers/master_controller.dm
@@ -28,7 +28,7 @@ var/global/pipe_processing_killed = 0
job_master = new /datum/controller/occupations()
job_master.SetupOccupations()
job_master.LoadJobs("config/jobs.txt")
- admin_notice("Job setup complete", R_DEBUG)
+ admin_notice(span_danger("Job setup complete"), R_DEBUG)
if(!syndicate_code_phrase) syndicate_code_phrase = generate_code_phrase()
if(!syndicate_code_response) syndicate_code_response = generate_code_phrase()
@@ -40,7 +40,7 @@ var/global/pipe_processing_killed = 0
// SetupXenoarch() - Moved to SSxenoarch
transfer_controller = new
- admin_notice("Initializations complete.", R_DEBUG)
+ admin_notice(span_danger("Initializations complete."), R_DEBUG)
// #if UNIT_TEST
// # define CHECK_SLEEP_MASTER // For unit tests we don't care about a smooth lobby screen experience. We care about speed.
diff --git a/code/controllers/subsystem.dm b/code/controllers/subsystem.dm
index 6b6c345b24..5297314ab1 100644
--- a/code/controllers/subsystem.dm
+++ b/code/controllers/subsystem.dm
@@ -158,7 +158,7 @@
subsystem_initialized = TRUE
var/time = (REALTIMEOFDAY - start_timeofday) / 10
var/msg = "Initialized [name] subsystem within [time] second[time == 1 ? "" : "s"]!"
- to_chat(world, "[msg]")
+ to_chat(world, span_boldannounce("[msg]"))
log_world(msg)
return time
@@ -210,7 +210,7 @@
can_fire = FALSE
// Safely sleep in a loop until the subsystem is idle, (or its been un-suspended somehow)
while(can_fire <= 0 && state != SS_IDLE)
- stoplag() // Safely sleep in a loop until
+ stoplag() // Safely sleep in a loop until
// Wakes a suspended subsystem.
/datum/controller/subsystem/proc/wake()
diff --git a/code/controllers/subsystems/air.dm b/code/controllers/subsystems/air.dm
index fa091ca525..71302f9560 100644
--- a/code/controllers/subsystems/air.dm
+++ b/code/controllers/subsystems/air.dm
@@ -48,7 +48,7 @@ SUBSYSTEM_DEF(air)
Total Simulated Turfs: [simulated_turf_count]
Total Zones: [zones.len]
Total Edges: [edges.len]
-Total Active Edges: [active_edges.len ? "[active_edges.len]" : "None"]
+Total Active Edges: [active_edges.len ? span_danger("[active_edges.len]") : "None"]
Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_count]
"}, R_DEBUG)
@@ -57,19 +57,19 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
if(active_edges.len)
var/list/edge_log = list()
for(var/connection_edge/E in active_edges)
-
+
var/a_temp = E.A.air.temperature
var/a_moles = E.A.air.total_moles
var/a_vol = E.A.air.volume
var/a_gas = ""
for(var/gas in E.A.air.gas)
a_gas += "[gas]=[E.A.air.gas[gas]]"
-
+
var/b_temp
var/b_moles
var/b_vol
var/b_gas = ""
-
+
// Two zones mixing
if(istype(E, /connection_edge/zone))
var/connection_edge/zone/Z = E
@@ -87,14 +87,14 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
b_vol = "Unsim"
for(var/gas in U.air.gas)
b_gas += "[gas]=[U.air.gas[gas]]"
-
+
edge_log += "Active Edge [E] ([E.type])"
edge_log += "Edge side A: T:[a_temp], Mol:[a_moles], Vol:[a_vol], Gas:[a_gas]"
edge_log += "Edge side B: T:[b_temp], Mol:[b_moles], Vol:[b_vol], Gas:[b_gas]"
-
+
for(var/turf/T in E.connecting_turfs)
edge_log += "+--- Connecting Turf [T] ([T.type]) @ [T.x], [T.y], [T.z] ([T.loc])"
-
+
log_debug("Active Edges on ZAS Startup\n" + edge_log.Join("\n"))
startup_active_edge_log = edge_log.Copy()
diff --git a/code/controllers/subsystems/airflow.dm b/code/controllers/subsystems/airflow.dm
index 7561ad8cca..30ad9f9ea0 100644
--- a/code/controllers/subsystems/airflow.dm
+++ b/code/controllers/subsystems/airflow.dm
@@ -121,7 +121,7 @@ SUBSYSTEM_DEF(airflow)
return FALSE
if (ismob(src))
- to_chat(src,"You are pushed away by airflow!")
+ to_chat(src,span_danger("You are pushed away by airflow!"))
last_airflow = world.time
var/airflow_falloff = 9 - sqrt((x - airflow_dest.x) ** 2 + (y - airflow_dest.y) ** 2)
diff --git a/code/controllers/subsystems/atoms.dm b/code/controllers/subsystems/atoms.dm
index a62c5265c5..5968fe1fe3 100644
--- a/code/controllers/subsystems/atoms.dm
+++ b/code/controllers/subsystems/atoms.dm
@@ -21,7 +21,7 @@ SUBSYSTEM_DEF(atoms)
setupgenetics() //to set the mutations' place in structural enzymes, so initializers know where to put mutations.
initialized = INITIALIZATION_INNEW_MAPLOAD
to_world_log("Initializing objects")
- admin_notice("Initializing objects", R_DEBUG)
+ admin_notice(span_danger("Initializing objects"), R_DEBUG)
InitializeAtoms()
return ..()
diff --git a/code/controllers/subsystems/inactivity.dm b/code/controllers/subsystems/inactivity.dm
index ab1b7209ca..3795468f84 100644
--- a/code/controllers/subsystems/inactivity.dm
+++ b/code/controllers/subsystems/inactivity.dm
@@ -16,7 +16,7 @@ SUBSYSTEM_DEF(inactivity)
var/client/C = client_list[client_list.len]
client_list.len--
if(C.is_afk(config.kick_inactive MINUTES) && can_kick(C))
- to_chat_immediate(C, world.time, "You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.")
+ to_chat_immediate(C, world.time, span_warning("You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected."))
var/information
if(C.mob)
diff --git a/code/controllers/subsystems/machines.dm b/code/controllers/subsystems/machines.dm
index a4a836f200..6721002555 100644
--- a/code/controllers/subsystems/machines.dm
+++ b/code/controllers/subsystems/machines.dm
@@ -32,7 +32,7 @@ SUBSYSTEM_DEF(machines)
/datum/controller/subsystem/machines/Initialize(timeofday)
makepowernets()
- admin_notice("Initializing atmos machinery.", R_DEBUG)
+ admin_notice(span_danger("Initializing atmos machinery."), R_DEBUG)
setup_atmos_machinery(all_machines)
fire()
..()
@@ -63,7 +63,7 @@ SUBSYSTEM_DEF(machines)
/datum/controller/subsystem/machines/proc/setup_atmos_machinery(list/atmos_machines)
var/list/actual_atmos_machines = list()
-
+
for(var/obj/machinery/atmospherics/machine in atmos_machines)
machine.atmos_init()
actual_atmos_machines += machine
diff --git a/code/controllers/subsystems/mapping.dm b/code/controllers/subsystems/mapping.dm
index e496a97f18..38dda58e34 100644
--- a/code/controllers/subsystems/mapping.dm
+++ b/code/controllers/subsystems/mapping.dm
@@ -65,7 +65,7 @@ SUBSYSTEM_DEF(mapping)
engine_types += MT
chosen_type = pick(engine_types)
to_world_log("Chose Engine Map: [chosen_type.name]")
- admin_notice("Chose Engine Map: [chosen_type.name]", R_DEBUG)
+ admin_notice(span_danger("Chose Engine Map: [chosen_type.name]"), R_DEBUG)
// Annihilate movable atoms
engine_loader.annihilate_bounds()
diff --git a/code/controllers/subsystems/media_tracks.dm b/code/controllers/subsystems/media_tracks.dm
index 7fbffa65b6..8ec57d7389 100644
--- a/code/controllers/subsystems/media_tracks.dm
+++ b/code/controllers/subsystems/media_tracks.dm
@@ -99,11 +99,11 @@ SUBSYSTEM_DEF(media_tracks)
if(islist(json))
for(var/song in json)
if(!islist(song))
- to_chat(C, "Song appears to be malformed.")
+ to_chat(C, span_warning("Song appears to be malformed."))
continue
var/list/songdata = song
if(!songdata["url"] || !songdata["title"] || !songdata["duration"])
- to_chat(C, "URL, Title, or Duration was missing from a song. Skipping.")
+ to_chat(C, span_warning("URL, Title, or Duration was missing from a song. Skipping."))
continue
var/datum/track/T = new(songdata["url"], songdata["title"], songdata["duration"], songdata["artist"], songdata["genre"], songdata["secret"], songdata["lobby"])
all_tracks += T
@@ -172,7 +172,7 @@ SUBSYSTEM_DEF(media_tracks)
sort_tracks()
return
- to_chat(C, "Couldn't find a track matching the specified parameters.")
+ to_chat(C, span_warning("Couldn't find a track matching the specified parameters."))
/datum/controller/subsystem/media_tracks/proc/add_track(var/mob/user, var/new_url, var/new_title, var/new_duration, var/new_artist, var/new_genre, var/new_secret, var/new_lobby)
if(!check_rights(R_DEBUG|R_FUN))
diff --git a/code/controllers/subsystems/overmap_renamer_vr.dm b/code/controllers/subsystems/overmap_renamer_vr.dm
index 5b2cd75da4..0180b89355 100644
--- a/code/controllers/subsystems/overmap_renamer_vr.dm
+++ b/code/controllers/subsystems/overmap_renamer_vr.dm
@@ -26,7 +26,7 @@ if we end up with multiple renamable lateload overmap objects.*/
if(V.visitable_renamed) //could just if(D.modify_descriptors()), but having a var recording renaming is useful for debugging and stuff!
if(V.known)
to_world_log("##Overmap Renamer: Renamed Debris Field as: [V.name]")
- admin_notice("Debris Field name chosen as [V.name]", R_DEBUG)
+ admin_notice(span_danger("Debris Field name chosen as [V.name]"), R_DEBUG)
else
to_world_log("##Overmap Renamer: Renamed Debris Field as: [V.real_name]")
- admin_notice("Debris Field name chosen as [V.real_name]", R_DEBUG)
+ admin_notice(span_danger("Debris Field name chosen as [V.real_name]"), R_DEBUG)
diff --git a/code/controllers/subsystems/planets.dm b/code/controllers/subsystems/planets.dm
index 4dae77ccbe..2054d6daa7 100644
--- a/code/controllers/subsystems/planets.dm
+++ b/code/controllers/subsystems/planets.dm
@@ -15,7 +15,7 @@ SUBSYSTEM_DEF(planets)
var/static/list/needs_temp_update = list()
/datum/controller/subsystem/planets/Initialize(timeofday)
- admin_notice("Initializing planetary weather.", R_DEBUG)
+ admin_notice(span_danger("Initializing planetary weather."), R_DEBUG)
createPlanets()
..()
@@ -28,7 +28,7 @@ SUBSYSTEM_DEF(planets)
if(Z > z_to_planet.len)
z_to_planet.len = Z
if(z_to_planet[Z])
- admin_notice("Z[Z] is shared by more than one planet!", R_DEBUG)
+ admin_notice(span_danger("Z[Z] is shared by more than one planet!"), R_DEBUG)
continue
z_to_planet[Z] = NP
@@ -40,7 +40,7 @@ SUBSYSTEM_DEF(planets)
var/datum/planet/P = z_to_planet[T.z]
if(!istype(P))
return
- if(istype(T, /turf/unsimulated/wall/planetary))
+ if(istype(T, /turf/unsimulated/wall/planetary))
P.planet_walls += T
else if(istype(T, /turf/simulated) && T.is_outdoors())
P.planet_floors += T
@@ -71,7 +71,7 @@ SUBSYSTEM_DEF(planets)
updateSunlight(P)
if(MC_TICK_CHECK)
return
-
+
#ifndef UNIT_TEST // Don't be updating temperatures and such during unit tests
var/list/needs_temp_update = src.needs_temp_update
while(needs_temp_update.len)
@@ -105,7 +105,7 @@ SUBSYSTEM_DEF(planets)
/datum/controller/subsystem/planets/proc/updateSunlight(var/datum/planet/P)
var/new_brightness = P.sun["brightness"]
P.sun_holder.update_brightness(new_brightness, P.planet_floors)
-
+
var/new_color = P.sun["color"]
P.sun_holder.update_color(new_color)
diff --git a/code/controllers/subsystems/supply.dm b/code/controllers/subsystems/supply.dm
index 3f160a53c2..84d4d4ee9c 100644
--- a/code/controllers/subsystems/supply.dm
+++ b/code/controllers/subsystems/supply.dm
@@ -200,7 +200,7 @@ SUBSYSTEM_DEF(supply)
A.req_access = L.Copy()
LAZYCLEARLIST(A.req_one_access)
else
- log_debug("Supply pack with invalid access restriction [SP.access] encountered!")
+ log_debug(span_danger("Supply pack with invalid access restriction [SP.access] encountered!"))
//supply manifest generation begin
var/obj/item/paper/manifest/slip
diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm
index b26bd701a6..0311c347de 100644
--- a/code/controllers/subsystems/ticker.dm
+++ b/code/controllers/subsystems/ticker.dm
@@ -74,8 +74,8 @@ var/global/datum/controller/subsystem/ticker/ticker
post_game_tick()
/datum/controller/subsystem/ticker/proc/pregame_welcome()
- to_world("Welcome to the pregame lobby!")
- to_world("Please set up your character and select ready. The round will start in [pregame_timeleft] seconds.")
+ to_world(span_boldannounce(span_notice("Welcome to the pregame lobby!")))
+ to_world(span_boldannounce(span_notice("Please set up your character and select ready. The round will start in [pregame_timeleft] seconds.")))
world << sound('sound/misc/server-ready.ogg', volume = 100)
// Called during GAME_STATE_PREGAME (RUNLEVEL_LOBBY)
@@ -123,7 +123,7 @@ var/global/datum/controller/subsystem/ticker/ticker
var/list/runnable_modes = config.get_runnable_modes()
if((master_mode == "random") || (master_mode == "secret"))
if(!runnable_modes.len)
- to_world("Unable to choose playable game mode. Reverting to pregame lobby.")
+ to_world(span_danger("Unable to choose playable game mode. Reverting to pregame lobby."))
return 0
if(secret_force_mode != "secret")
src.mode = config.pick_mode(secret_force_mode)
@@ -136,7 +136,7 @@ var/global/datum/controller/subsystem/ticker/ticker
src.mode = config.pick_mode(master_mode)
if(!src.mode)
- to_world("Serious error in mode setup! Reverting to pregame lobby.") //Uses setup instead of set up due to computational context.
+ to_world(span_danger("Serious error in mode setup! Reverting to pregame lobby.")) //Uses setup instead of set up due to computational context.
return 0
job_master.ResetOccupations()
@@ -145,21 +145,21 @@ var/global/datum/controller/subsystem/ticker/ticker
job_master.DivideOccupations() // Apparently important for new antagonist system to register specific job antags properly.
if(!src.mode.can_start())
- to_world("Unable to start [mode.name]. Not enough players readied, [config.player_requirements[mode.config_tag]] players needed. Reverting to pregame lobby.")
+ to_world(span_danger("Unable to start [mode.name]. Not enough players readied, [config.player_requirements[mode.config_tag]] players needed. Reverting to pregame lobby."))
mode.fail_setup()
mode = null
job_master.ResetOccupations()
return 0
if(hide_mode)
- to_world("The current game mode is - Secret!")
+ to_world(span_notice("The current game mode is - Secret!"))
if(runnable_modes.len)
var/list/tmpmodes = new
for (var/datum/game_mode/M in runnable_modes)
tmpmodes+=M.name
tmpmodes = sortList(tmpmodes)
if(tmpmodes.len)
- to_world("Possibilities: [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]")
+ to_world(span_info("Possibilities: [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]"))
else
src.mode.announce()
return 1
@@ -181,7 +181,7 @@ var/global/datum/controller/subsystem/ticker/ticker
//Deleting Startpoints but we need the ai point to AI-ize people later
if (S.name != "AI")
qdel(S)
- to_world("Enjoy the game!")
+ to_world(span_boldannounce(span_notice("Enjoy the game!")))
world << sound('sound/AI/welcome.ogg') // Skie
//Holiday Round-start stuff ~Carn
Holiday_Game_Start()
@@ -225,7 +225,7 @@ var/global/datum/controller/subsystem/ticker/ticker
end_game_state = END_GAME_MODE_FINISHED // Only do this cleanup once!
mode.cleanup()
//call a transfer shuttle vote
- to_world("The round has ended!")
+ to_world(span_danger("The round has ended!"))
SSvote.autotransfer()
// Called during GAME_STATE_FINISHED (RUNLEVEL_POSTGAME)
@@ -238,7 +238,7 @@ var/global/datum/controller/subsystem/ticker/ticker
feedback_set_details("end_proper", "nuke")
restart_timeleft = 1 MINUTE // No point waiting five minutes if everyone's dead.
if(!delay_end)
- to_world("Rebooting due to destruction of [station_name()] in [round(restart_timeleft/600)] minute\s.")
+ to_world(span_notice("Rebooting due to destruction of [station_name()] in [round(restart_timeleft/600)] minute\s."))
last_restart_notify = world.time
else
feedback_set_details("end_proper", "proper completion")
@@ -252,14 +252,14 @@ var/global/datum/controller/subsystem/ticker/ticker
if(END_GAME_ENDING)
restart_timeleft -= (world.time - last_fire)
if(delay_end)
- to_world("An admin has delayed the round end.")
+ to_world(span_notice("An admin has delayed the round end."))
end_game_state = END_GAME_DELAYED
else if(restart_timeleft <= 0)
- to_world("Restarting world!")
+ to_world(span_warning("Restarting world!"))
sleep(5)
world.Reboot()
else if (world.time - last_restart_notify >= 1 MINUTE)
- to_world("Restarting in [round(restart_timeleft/600, 1)] minute\s.")
+ to_world(span_notice("Restarting in [round(restart_timeleft/600, 1)] minute\s."))
last_restart_notify = world.time
return
if(END_GAME_DELAYED)
@@ -451,47 +451,47 @@ var/global/datum/controller/subsystem/ticker/ticker
if(captainless)
for(var/mob/M in player_list)
if(!istype(M,/mob/new_player))
- to_chat(M, "Site Management is not forced on anyone.")
+ to_chat(M, span_notice("Site Management is not forced on anyone."))
/datum/controller/subsystem/ticker/proc/declare_completion()
- to_world("
A round of [mode.name] has ended!
")
+ to_world(span_filter_system("
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))
- to_chat(Player, "[span_blue("You survived the round, but remained on [station_name()] as [Player.real_name].")]")
+ to_chat(Player, span_filter_system("[span_blue("You survived the round, but remained on [station_name()] as [Player.real_name].")]"))
else
- to_chat(Player, "[span_green("You managed to survive the events on [station_name()] as [Player.real_name].")]")
+ to_chat(Player, span_filter_system("[span_green("You managed to survive the events on [station_name()] as [Player.real_name].")]"))
else if(isAdminLevel(playerTurf.z))
- to_chat(Player, "[span_green("You successfully underwent crew transfer after events on [station_name()] as [Player.real_name].")]")
+ to_chat(Player, span_filter_system("[span_green("You successfully underwent crew transfer after events on [station_name()] as [Player.real_name].")]"))
else if(issilicon(Player))
- to_chat(Player, "[span_green("You remain operational after the events on [station_name()] as [Player.real_name].")]")
+ to_chat(Player, span_filter_system("[span_green("You remain operational after the events on [station_name()] as [Player.real_name].")]"))
else
- to_chat(Player, "[span_blue("You missed the crew transfer after the events on [station_name()] as [Player.real_name].")]")
+ to_chat(Player, span_filter_system("[span_blue("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)
- to_chat(Player, "[span_red("You did not survive the events on [station_name()]...")]")
+ to_chat(Player, span_filter_system("[span_red("You did not survive the events on [station_name()]...")]"))
else
- to_chat(Player, "[span_red("You did not survive the events on [station_name()]...")]")
+ to_chat(Player, span_filter_system("[span_red("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)
- to_world("[aiPlayer.name]'s laws at the end of the round were:") // VOREStation edit
+ to_world(span_filter_system("[aiPlayer.name]'s laws at the end of the round were:")) // VOREStation edit
else
- to_world("[aiPlayer.name]'s laws when it was deactivated were:") // VOREStation edit
+ to_world(span_filter_system("[aiPlayer.name]'s laws when it was deactivated were:")) // VOREStation edit
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), ":", "]" // VOREStation edit
- to_world("[robolist]")
+ to_world(span_filter_system("[robolist]"))
var/dronecount = 0
@@ -508,15 +508,15 @@ var/global/datum/controller/subsystem/ticker/ticker
if (!robo.connected_ai)
if (robo.stat != 2)
- to_world("[robo.name] survived as an AI-less stationbound synthetic! Its laws were:") // VOREStation edit
+ to_world(span_filter_system("[robo.name] survived as an AI-less stationbound synthetic! Its laws were:")) // VOREStation edit
else
- to_world("[robo.name] was unable to survive the rigors of being a stationbound synthetic without an AI. Its laws were:") // VOREStation edit
+ to_world(span_filter_system("[robo.name] was unable to survive the rigors of being a stationbound synthetic without an AI. Its laws were:")) // VOREStation edit
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)
- to_world("There [dronecount>1 ? "were" : "was"] [dronecount] industrious maintenance [dronecount>1 ? "drones" : "drone"] at the end of this round.")
+ to_world(span_filter_system("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/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm
index c259c9ecd7..a16b9bf703 100644
--- a/code/controllers/subsystems/vote.dm
+++ b/code/controllers/subsystems/vote.dm
@@ -367,7 +367,7 @@ SUBSYSTEM_DEF(vote)
if(tgui_alert(usr, "Are you sure you want to start a RESTART VOTE? You should only do this if the server is dying and no staff are around to investigate.", "RESTART VOTE", list("No", "Yes I want to start a RESTART VOTE")) == "Yes I want to start a RESTART VOTE")
initiate_vote(VOTE_RESTART, usr.key)
else
- to_chat(usr, "You can't start a RESTART VOTE while there are staff around. If you are having an issue with the round, please ahelp it.")
+ to_chat(usr, span_warning("You can't start a RESTART VOTE while there are staff around. If you are having an issue with the round, please ahelp it."))
if(VOTE_GAMEMODE)
if(config.allow_vote_mode || usr.client.holder)
initiate_vote(VOTE_GAMEMODE, usr.key)
diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm
index 19fc7ec7ae..ef76e63ca7 100644
--- a/code/datums/ai_laws.dm
+++ b/code/datums/ai_laws.dm
@@ -227,7 +227,7 @@
if(law == zeroth_law_borg)
continue
if(law == zeroth_law)
- to_chat(who, "[law.get_index()]. [law.law]")
+ to_chat(who, span_danger("[law.get_index()]. [law.law]"))
else
to_chat(who, "[law.get_index()]. [law.law]")
diff --git a/code/datums/browser.dm b/code/datums/browser.dm
index 4aac042789..1c6cdaf470 100644
--- a/code/datums/browser.dm
+++ b/code/datums/browser.dm
@@ -113,7 +113,7 @@
/datum/browser/proc/open(var/use_onclose = 1)
if(isnull(window_id)) //null check because this can potentially nuke goonchat
WARNING("Browser [title] tried to open with a null ID")
- to_chat(user, "The [title] browser you tried to open failed a sanity check! Please report this on github!")
+ to_chat(user, span_userdanger("The [title] browser you tried to open failed a sanity check! Please report this on github!"))
return
var/window_size = ""
if (width && height)
diff --git a/code/datums/components/crafting/crafting.dm b/code/datums/components/crafting/crafting.dm
index 27c8821f2d..edda32de87 100644
--- a/code/datums/components/crafting/crafting.dm
+++ b/code/datums/components/crafting/crafting.dm
@@ -468,10 +468,10 @@
user.put_in_hands(result)
else
result.forceMove(user.drop_location())
- to_chat(user, "[TR.name] constructed.")
+ to_chat(user, span_notice("[TR.name] constructed."))
TR.on_craft_completion(user, result)
else
- to_chat(user, "Construction failed[result]")
+ to_chat(user, span_warning("Construction failed[result]"))
busy = FALSE
if("toggle_recipes")
display_craftable_only = !display_craftable_only
diff --git a/code/datums/components/material_container.dm b/code/datums/components/material_container.dm
index b414f4651f..4305a236b3 100644
--- a/code/datums/components/material_container.dm
+++ b/code/datums/components/material_container.dm
@@ -102,7 +102,7 @@
for(var/datum/material/M as anything in materials)
var/amt = materials[M]
if(amt)
- examine_texts += "It has [amt] units of [lowertext(M.name)] stored."
+ examine_texts += span_notice("It has [amt] units of [lowertext(M.name)] stored.")
/// Proc that allows players to fill the parent with mats
/datum/component/material_container/proc/on_attackby(datum/source, obj/item/I, mob/living/user)
@@ -113,7 +113,7 @@
return
if(tc && !is_type_in_typecache(I, tc))
if(!(mat_container_flags & MATCONTAINER_SILENT))
- to_chat(user, "[parent] won't accept [I]!")
+ to_chat(user, span_warning("[parent] won't accept [I]!"))
return
. = COMPONENT_CANCEL_ATTACK_CHAIN
var/datum/callback/pc = precondition
@@ -125,10 +125,10 @@
return
var/material_amount = get_item_material_amount(I, mat_container_flags)
if(!material_amount)
- to_chat(user, "[I] does not contain sufficient materials to be accepted by [parent].")
+ to_chat(user, span_warning("[I] does not contain sufficient materials to be accepted by [parent]."))
return
if(!has_space(material_amount))
- to_chat(user, "[parent] is full. Please remove materials from [parent] in order to insert more.")
+ to_chat(user, span_warning("[parent] is full. Please remove materials from [parent] in order to insert more."))
return
user_insert(I, user, mat_container_flags)
@@ -136,7 +136,7 @@
/datum/component/material_container/proc/user_insert_stack(obj/item/stack/S, mob/living/user, breakdown_flags = mat_container_flags)
var/sheets = S.get_amount()
if(sheets < 1)
- to_chat(user, "[S] does not contain sufficient materials to be accepted by [parent].")
+ to_chat(user, span_warning("[S] does not contain sufficient materials to be accepted by [parent]."))
return
// Cache this since S may go away after use()
@@ -149,23 +149,23 @@
// If any part of a sheet can't go in us, the whole sheet is invalid
if(!can_hold_material(GET_MATERIAL_REF(material)))
- to_chat(user, "[parent] cannot contain [material].")
+ to_chat(user, span_warning("[parent] cannot contain [material]."))
return
// Our sheet had no material. Whoops.
if(!matter_per_sheet)
- to_chat(user, "[S] does not contain any matter acceptable by [parent].")
+ to_chat(user, span_warning("[S] does not contain any matter acceptable by [parent]."))
return
// If we can't fit the material for one sheet, we're full.
if(!has_space(matter_per_sheet))
- to_chat(user, "[parent] is full. Please remove materials from [parent] in order to insert more.")
+ to_chat(user, span_warning("[parent] is full. Please remove materials from [parent] in order to insert more."))
return
// Calculate the maximum amount of sheets we could possibly accept.
var/max_sheets = round((max_amount - total_amount) / matter_per_sheet)
if(max_sheets <= 0)
- to_chat(user, "[parent] is full. Please remove materials from [parent] in order to insert more.")
+ to_chat(user, span_warning("[parent] is full. Please remove materials from [parent] in order to insert more."))
return
// Calculate the amount of sheets we're actually going to use.
@@ -176,7 +176,7 @@
// Use the amount of sheets from the stack
if(!S.use(sheets_to_use))
- to_chat(user, "Something went wrong with your stack. Split it manually and try again.")
+ to_chat(user, span_warning("Something went wrong with your stack. Split it manually and try again."))
return
// We're going to blindly insert all of the materials, our assertion above says it shouldn't be possible to overflow
@@ -187,7 +187,7 @@
last_inserted_id = matter
// Tell the user and wrap up.
- to_chat(user, "You insert a material total of [inserted] into [parent].")
+ to_chat(user, span_notice("You insert a material total of [inserted] into [parent]."))
if(after_insert)
after_insert.Invoke(S, last_inserted_id, inserted)
@@ -196,11 +196,11 @@
set waitfor = FALSE
var/active_held = user.get_active_hand() // differs from I when using TK
if(!user.unEquip(I))
- to_chat(user, "[I] is stuck to you and cannot be placed into [parent].")
+ to_chat(user, span_warning("[I] is stuck to you and cannot be placed into [parent]."))
return
var/inserted = insert_item(I, breakdown_flags = mat_container_flags)
if(inserted)
- to_chat(user, "You insert a material total of [inserted] into [parent].")
+ to_chat(user, span_notice("You insert a material total of [inserted] into [parent]."))
qdel(I)
if(after_insert)
after_insert.Invoke(I, last_inserted_id, inserted)
diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm
index 4579f50f40..59cd16434e 100644
--- a/code/datums/datumvars.dm
+++ b/code/datums/datumvars.dm
@@ -86,7 +86,7 @@
datumname = "element"
_AddElement(lst)
log_admin("[key_name(usr)] has added [result] [datumname] to [key_name(src)].")
- message_admins("[key_name_admin(usr)] has added [result] [datumname] to [key_name_admin(src)].")
+ message_admins(span_notice("[key_name_admin(usr)] has added [result] [datumname] to [key_name_admin(src)]."))
/datum/proc/vv_get_header()
. = list()
diff --git a/code/datums/ghost_query.dm b/code/datums/ghost_query.dm
index 64f208c850..a4d4e1d397 100644
--- a/code/datums/ghost_query.dm
+++ b/code/datums/ghost_query.dm
@@ -78,22 +78,22 @@
if("Never for this round")
if(be_special_flag)
D.client.prefs.be_special ^= be_special_flag
- to_chat(D, "You will not be prompted to join similar roles to [role_name] for the rest of this round. Note: If you save your character now, it will save this permanently.")
+ to_chat(D, span_notice("You will not be prompted to join similar roles to [role_name] for the rest of this round. Note: If you save your character now, it will save this permanently."))
else
- to_chat(D, "This type of ghost-joinable role doesn't have a role type flag associated with it, so I can't prevent future requests, sorry. Bug a dev!")
+ to_chat(D, span_warning("This type of ghost-joinable role doesn't have a role type flag associated with it, so I can't prevent future requests, sorry. Bug a dev!"))
if("Yes")
if(!evaluate_candidate(D)) // Failed revalidation
- to_chat(D, "Unfortunately, you no longer qualify for this role. Sorry.")
+ to_chat(D, span_warning("Unfortunately, you no longer qualify for this role. Sorry."))
else if(finished) // Already finished candidate list
- to_chat(D, "Unfortunately, you were not fast enough, and there are no more available roles. Sorry.")
+ to_chat(D, span_warning("Unfortunately, you were not fast enough, and there are no more available roles. Sorry."))
else // Prompt a second time
tgui_alert_async(D, "Are you sure you want to play as a [role_name]?", "[role_name] request", list("I'm Sure", "Nevermind"), CALLBACK(src, PROC_REF(get_reply)), wait_time SECONDS)
if("I'm Sure")
if(!evaluate_candidate(D)) // Failed revalidation
- to_chat(D, "Unfortunately, you no longer qualify for this role. Sorry.")
+ to_chat(D, span_warning("Unfortunately, you no longer qualify for this role. Sorry."))
else if(finished) // Already finished candidate list
- to_chat(D, "Unfortunately, you were not fast enough, and there are no more available roles. Sorry.")
+ to_chat(D, span_warning("Unfortunately, you were not fast enough, and there are no more available roles. Sorry."))
else // Accept their nomination
candidates.Add(D)
if(cutoff_number && candidates.len >= cutoff_number)
diff --git a/code/datums/helper_datums/getrev.dm b/code/datums/helper_datums/getrev.dm
index 7e0f3c740b..ad9a210c79 100644
--- a/code/datums/helper_datums/getrev.dm
+++ b/code/datums/helper_datums/getrev.dm
@@ -15,7 +15,7 @@ GLOBAL_DATUM(revdata, /datum/getrev)
revision = REV.origin_commit || REV.commit
branch = "-Using TGS-" // TGS doesn't provide branch info yet
date = "-Using TGS-" // Or date
-
+
if(!revision) // File parse method
var/list/head_branch = file2list(".git/HEAD", "\n")
if(head_branch.len)
@@ -58,11 +58,11 @@ GLOBAL_DATUM(revdata, /datum/getrev)
set desc = "Check the current server code revision"
if(!GLOB.revdata)
- to_chat(src, "Please wait until server initializations are complete.")
+ to_chat(src, span_warning("Please wait until server initializations are complete."))
return
-
+
var/list/msg = list()
-
+
if(GLOB.revdata.revision)
msg += "Server revision: B:[GLOB.revdata.branch] D:[GLOB.revdata.date]"
if(config.githuburl)
diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm
index fe9b670d7b..07f4301ca2 100644
--- a/code/datums/helper_datums/teleport.dm
+++ b/code/datums/helper_datums/teleport.dm
@@ -179,29 +179,29 @@ var/bluespace_item_types = newlist(/obj/item/storage/backpack/holding,
precision = max(rand(1,100)*bluespace_things.len,100)
if(istype(teleatom, /mob/living))
var/mob/living/MM = teleatom
- to_chat(MM, "The Bluespace interface on your [teleatom] interferes with the teleport!")
+ to_chat(MM, span_danger("The Bluespace interface on your [teleatom] interferes with the teleport!"))
return 1
/datum/teleport/instant/science/teleportChecks()
if(istype(teleatom, /obj/item/disk/nuclear)) // Don't let nuke disks get teleported --NeoFite
- teleatom.visible_message("\The [teleatom] bounces off of the portal!")
+ teleatom.visible_message(span_danger("\The [teleatom] bounces off of the portal!"))
return 0
if(!isemptylist(teleatom.search_contents_for(/obj/item/disk/nuclear)))
if(istype(teleatom, /mob/living))
var/mob/living/MM = teleatom
- MM.visible_message("\The [MM] bounces off of the portal!","Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through.")
+ MM.visible_message(span_danger("\The [MM] bounces off of the portal!"),span_warning("Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through."))
else
- teleatom.visible_message("\The [teleatom] bounces off of the portal!")
+ teleatom.visible_message(span_danger("\The [teleatom] bounces off of the portal!"))
return 0
/* VOREStation Removal
if(destination.z in using_map.admin_levels) //CentCom z-level
if(istype(teleatom, /obj/mecha))
var/obj/mecha/MM = teleatom
- to_chat(MM.occupant, "\The [MM] would not survive the jump to a location so far away!")
+ to_chat(MM.occupant, span_danger("\The [MM] would not survive the jump to a location so far away!"))
return 0
if(!isemptylist(teleatom.search_contents_for(/obj/item/storage/backpack/holding)))
- teleatom.visible_message("\The [teleatom] bounces off of the portal!")
+ teleatom.visible_message(span_danger("\The [teleatom] bounces off of the portal!"))
return 0
*/ //VOREStation Removal End
//VOREStation Edit Start
@@ -209,7 +209,7 @@ var/bluespace_item_types = newlist(/obj/item/storage/backpack/holding,
var/turf/dest_turf = get_turf(destination)
if(local && !(dest_turf.z in using_map.player_levels))
if(istype(teleatom, /mob/living))
- to_chat(teleatom, "The portal refuses to carry you that far away!")
+ to_chat(teleatom, span_warning("The portal refuses to carry you that far away!"))
return 0
else if(istype(destination.loc, /obj/belly))
var/obj/belly/destination_belly = destination.loc
@@ -226,9 +226,9 @@ var/bluespace_item_types = newlist(/obj/item/storage/backpack/holding,
obstructed = 1
else if(!((isturf(destination) && !destination.density) || (isturf(destination.loc) && !destination.loc.density)) || !destination.x || !destination.y || !destination.z) //If we're inside something or outside universe
obstructed = 1
- to_chat(teleatom, "Something is blocking way on the other side!")
+ to_chat(teleatom, span_warning("Something is blocking way on the other side!"))
if(obstructed)
return 0
else
return 1
- //VOREStation Edit End
\ No newline at end of file
+ //VOREStation Edit End
diff --git a/code/datums/mind.dm b/code/datums/mind.dm
index 868e8d9699..5c8367c5d9 100644
--- a/code/datums/mind.dm
+++ b/code/datums/mind.dm
@@ -166,7 +166,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
- to_chat(usr, "[src] could not be made into a [antag.role_text]!")
+ to_chat(usr, span_warning("[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"]]
@@ -203,7 +203,7 @@
return
if(mind)
mind.ambitions = sanitize(new_ambition)
- to_chat(mind.current, "Your ambitions have been changed by higher powers, they are now: [mind.ambitions]")
+ to_chat(mind.current, span_warning("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"])
@@ -353,10 +353,10 @@
if(I in organs.implants)
qdel(I)
break
- to_chat(H, "Your loyalty implant has been deactivated.")
+ to_chat(H, span_notice("Your loyalty implant has been deactivated."))
log_admin("[key_name_admin(usr)] has de-loyalty implanted [current].")
if("add")
- to_chat(H, "You somehow have become the recepient of a loyalty transplant, and it just activated!")
+ to_chat(H, span_danger("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
diff --git a/code/datums/observation/stat_set.dm b/code/datums/observation/stat_set.dm
index c818a50532..08db60a380 100644
--- a/code/datums/observation/stat_set.dm
+++ b/code/datums/observation/stat_set.dm
@@ -30,6 +30,6 @@ stat_set_event, /decl/observ/stat_set, new)
if(!ourbelly.owner.client)
return
if(stat == CONSCIOUS)
- to_chat(ourbelly.owner, "\The [src.name] is awake.")
+ to_chat(ourbelly.owner, span_notice("\The [src.name] is awake."))
else if(stat == UNCONSCIOUS)
- to_chat(ourbelly.owner, "\The [src.name] has fallen unconscious!")
+ to_chat(ourbelly.owner, span_red("\The [src.name] has fallen unconscious!"))
diff --git a/code/datums/riding.dm b/code/datums/riding.dm
index 5507b27e71..f0b2f53b95 100644
--- a/code/datums/riding.dm
+++ b/code/datums/riding.dm
@@ -93,7 +93,7 @@
if(only_one_driver && ridden.buckled_mobs.len)
var/mob/living/driver = ridden.buckled_mobs[1]
if(driver != user)
- to_chat(user, "\The [ridden] can only be controlled by one person at a time, and is currently being controlled by \the [driver].")
+ to_chat(user, span_warning("\The [ridden] can only be controlled by one person at a time, and is currently being controlled by \the [driver]."))
return
if(world.time < next_vehicle_move)
@@ -109,7 +109,7 @@
handle_vehicle_layer()
handle_vehicle_offsets()
else
- to_chat(user, "You'll need [key_name] in one of your hands to move \the [ridden].")
+ to_chat(user, span_warning("You'll need [key_name] in one of your hands to move \the [ridden]."))
/datum/riding/proc/Unbuckle(atom/movable/M)
// addtimer(CALLBACK(ridden, TYPE_PROC_REF(/atom/movable, unbuckle_mob), M), 0, TIMER_UNIQUE)
@@ -143,12 +143,12 @@
var/turf/current = get_turf(ridden)
if(istype(current, /turf/simulated/floor/water/underwater)) //don't work at the bottom of the ocean!
- to_chat(user, "The boat has sunk!")
+ to_chat(user, span_warning("The boat has sunk!"))
return FALSE
else if(istype(next, /turf/simulated/floor/water) || istype(current, /turf/simulated/floor/water)) //We can move from land to water, or water to land, but not from land to land
..()
else
- to_chat(user, "Boats don't go on land!")
+ to_chat(user, span_warning("Boats don't go on land!"))
return FALSE
/datum/riding/boat/small // 'Small' boats can hold up to two people.
diff --git a/code/datums/roundstats/departmentgoal.dm b/code/datums/roundstats/departmentgoal.dm
index 333e6c0396..d9abc7cbec 100644
--- a/code/datums/roundstats/departmentgoal.dm
+++ b/code/datums/roundstats/departmentgoal.dm
@@ -41,16 +41,16 @@ GLOBAL_LIST(active_department_goals)
for(var/category in GLOB.active_department_goals)
var/list/cat_goals = GLOB.active_department_goals[category]
- to_world("[category]")
+ to_world(span_filter_system("[category]"))
if(!LAZYLEN(cat_goals))
- to_world("There were no assigned goals!")
+ to_world(span_filter_system("There were no assigned goals!"))
else
for(var/datum/goal/G in cat_goals)
var/success = G.check_completion()
- to_world("[success ? "[G.name]" : "[G.name]"]")
- to_world("[G.goal_text]")
+ to_world(span_filter_system("[success ? span_notice("[G.name]") : span_warning("[G.name]")]"))
+ to_world(span_filter_system("[G.goal_text]"))
return 1
/datum/goal
diff --git a/code/datums/wires/jukebox.dm b/code/datums/wires/jukebox.dm
index 5f46a3deb9..c9a0b5c891 100644
--- a/code/datums/wires/jukebox.dm
+++ b/code/datums/wires/jukebox.dm
@@ -31,16 +31,16 @@
var/obj/machinery/media/jukebox/A = holder
switch(wire)
if(WIRE_MAIN_POWER1)
- holder.visible_message("[icon2html(A,viewers(holder))] The power light flickers.")
+ holder.visible_message(span_notice("[icon2html(A,viewers(holder))] The power light flickers."))
A.shock(usr, 90)
if(WIRE_JUKEBOX_HACK)
- holder.visible_message("[icon2html(A,viewers(holder))] The parental guidance light flickers.")
+ holder.visible_message(span_notice("[icon2html(A,viewers(holder))] The parental guidance light flickers."))
if(WIRE_REVERSE)
- holder.visible_message("[icon2html(A,viewers(holder))] The data light blinks ominously.")
+ holder.visible_message(span_notice("[icon2html(A,viewers(holder))] The data light blinks ominously."))
if(WIRE_SPEEDUP)
- holder.visible_message("[icon2html(A,viewers(holder))] The speakers squeaks.")
+ holder.visible_message(span_notice("[icon2html(A,viewers(holder))] The speakers squeaks."))
if(WIRE_SPEEDDOWN)
- holder.visible_message("[icon2html(A,viewers(holder))] The speakers rumble.")
+ holder.visible_message(span_notice("[icon2html(A,viewers(holder))] The speakers rumble."))
if(WIRE_START)
A.StartPlaying()
if(WIRE_STOP)
diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm
index 8fe75e8364..4e71b94630 100644
--- a/code/datums/wires/wires.dm
+++ b/code/datums/wires/wires.dm
@@ -170,7 +170,7 @@
if("cut")
// if(!I.has_tool_quality(TOOL_WIRECUTTER) && !user.can_admin_interact())
if(!istype(I) || !I.has_tool_quality(TOOL_WIRECUTTER))
- to_chat(user, "You need wirecutters!")
+ to_chat(user, span_warning("You need wirecutters!"))
return
playsound(holder, I.usesound, 20, 1)
@@ -181,7 +181,7 @@
if("pulse")
// if(!I.has_tool_quality(TOOL_MULTITOOL) && !user.can_admin_interact())
if(!istype(I) || !I.has_tool_quality(TOOL_MULTITOOL))
- to_chat(user, "You need a multitool!")
+ to_chat(user, span_warning("You need a multitool!"))
return
playsound(holder, 'sound/weapons/empty.ogg', 20, 1)
@@ -202,14 +202,14 @@
return TRUE
if(!istype(I, /obj/item/assembly/signaler))
- to_chat(user, "You need a remote signaller!")
+ to_chat(user, span_warning("You need a remote signaller!"))
return
if(user.unEquip(I))
attach_assembly(color, I)
return TRUE
else
- to_chat(user, "[I] is stuck to your hand!")
+ to_chat(user, span_warning("[I] is stuck to your hand!"))
/**
* Proc called to determine if the user can see wire define information, such as "Contraband", "Door Bolts", etc.
diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm
index 41334221d6..75855cec64 100644
--- a/code/defines/obj/weapon.dm
+++ b/code/defines/obj/weapon.dm
@@ -41,7 +41,7 @@
throw_range = 20
var/randomize = TRUE
var/square_chance = 10
-
+
/obj/item/soap/Initialize()
if(randomize && prob(square_chance))
icon_state = "[icon_state]-alt"
@@ -331,7 +331,7 @@
if (C.bugged && C.status)
cameras.Add(C)
if (length(cameras) == 0)
- to_chat(usr, "No bugged functioning cameras found.")
+ to_chat(usr, span_warning("No bugged functioning cameras found."))
return
var/list/friendly_cameras = new/list()
@@ -433,7 +433,7 @@
/obj/item/storage/part_replacer/examine(mob/user)
. = ..()
if(!reskin_ran)
- . += "[src]'s external casing can be modified via alt-click."
+ . += span_notice("[src]'s external casing can be modified via alt-click.")
/obj/item/storage/part_replacer/AltClick(mob/user)
. = ..()
diff --git a/code/defines/procs/announce.dm b/code/defines/procs/announce.dm
index 9e8270e9cf..2ef7d84751 100644
--- a/code/defines/procs/announce.dm
+++ b/code/defines/procs/announce.dm
@@ -56,9 +56,9 @@
for(var/mob/M in player_list)
if(!istype(M,/mob/new_player) && !isdeaf(M))
to_chat(M, "[title]
")
- to_chat(M, "[message]")
+ to_chat(M, span_alert("[message]"))
if (announcer)
- to_chat(M, " -[html_encode(announcer)]")
+ to_chat(M, span_alert(" -[html_encode(announcer)]"))
// You'll need to update these to_world usages if you want to make these z-level specific ~Aro
/datum/announcement/minor/Message(message as text, message_title as text)
@@ -66,9 +66,9 @@
/datum/announcement/priority/Message(message as text, message_title as text)
to_world("[message_title]
")
- to_world("[message]")
+ to_world(span_alert("[message]"))
if(announcer)
- to_world(" -[html_encode(announcer)]")
+ to_world(span_alert(" -[html_encode(announcer)]"))
to_world("
")
/datum/announcement/priority/command/Message(message as text, message_title as text, var/list/zlevels)
@@ -77,7 +77,7 @@
if (message_title)
command += "
[message_title]
"
- command += "
[message]
"
+ command += "
[span_alert(message)]
"
command += "
"
for(var/mob/M in player_list)
if(zlevels && !(get_z(M) in zlevels))
diff --git a/code/game/antagonist/antagonist.dm b/code/game/antagonist/antagonist.dm
index bc1374c807..7910d84ea3 100644
--- a/code/game/antagonist/antagonist.dm
+++ b/code/game/antagonist/antagonist.dm
@@ -145,7 +145,7 @@
if(!istype(player))
message_admins("[uppertext(ticker.mode.name)]: Failed to find a candidate for [role_text].")
return 0
- to_chat(player.current, "You have been selected this round as an antagonist!")
+ to_chat(player.current, span_danger("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 56a716f24b..259cc5c3ad 100644
--- a/code/game/antagonist/antagonist_add.dm
+++ b/code/game/antagonist/antagonist_add.dm
@@ -42,10 +42,10 @@
// Handle only adding a mind and not bothering with gear etc.
if(nonstandard_role_type)
faction_members |= player
- to_chat(player.current, "You are \a [nonstandard_role_type]!")
+ to_chat(player.current, span_danger("You are \a [nonstandard_role_type]!"))
player.special_role = nonstandard_role_type
if(nonstandard_role_msg)
- to_chat(player.current, "[nonstandard_role_msg]")
+ to_chat(player.current, span_notice("[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)
- to_chat(player.current, "You are no longer a [role_text]!")
+ to_chat(player.current, span_danger("You are no longer a [role_text]!"))
current_antagonists -= player
faction_members -= player
player.special_role = null
@@ -64,4 +64,4 @@
player.current.client.verbs -= /client/proc/aooc
player.ambitions = ""
return 1
- return 0
\ No newline at end of file
+ return 0
diff --git a/code/game/antagonist/antagonist_create.dm b/code/game/antagonist/antagonist_create.dm
index 4aaba2802b..8c8d7b1f38 100644
--- a/code/game/antagonist/antagonist_create.dm
+++ b/code/game/antagonist/antagonist_create.dm
@@ -88,7 +88,7 @@
code_owner.store_memory("Nuclear Bomb Code: [code]", 0, 0)
to_chat(code_owner.current, "The nuclear authorization code is: [code]")
else
- message_admins("Could not spawn nuclear bomb. Contact a developer.")
+ message_admins(span_danger("Could not spawn nuclear bomb. Contact a developer."))
return
spawned_nuke = code
@@ -101,13 +101,13 @@
window_flash(player.current.client)
// Basic intro text.
- to_chat(player.current, "You are a [role_text]!")
+ to_chat(player.current, span_danger("You are a [role_text]!"))
if(leader_welcome_text && player == leader)
- to_chat(player.current, "[leader_welcome_text]")
+ to_chat(player.current, span_notice("[leader_welcome_text]"))
else
- to_chat(player.current, "[welcome_text]")
+ to_chat(player.current, span_notice("[welcome_text]"))
if (config.objectives_disabled)
- to_chat(player.current, "[antag_text]")
+ to_chat(player.current, span_notice("[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 2ae28151d5..b16179f292 100644
--- a/code/game/antagonist/antagonist_factions.dm
+++ b/code/game/antagonist/antagonist_factions.dm
@@ -14,33 +14,33 @@
return
if(faction.is_antagonist(player))
- to_chat(src, "\The [player.current] already serves the [faction.faction_descriptor].")
+ to_chat(src, span_warning("\The [player.current] already serves the [faction.faction_descriptor]."))
return
if(player_is_antag(player))
- to_chat(src, "\The [player.current]'s loyalties seem to be elsewhere...")
+ to_chat(src, span_warning("\The [player.current]'s loyalties seem to be elsewhere..."))
return
if(!faction.can_become_antag(player))
- to_chat(src, "\The [player.current] cannot be \a [faction.faction_role_text]!")
+ to_chat(src, span_warning("\The [player.current] cannot be \a [faction.faction_role_text]!"))
return
if(world.time < player.rev_cooldown)
- to_chat(src, "You must wait five seconds between attempts.")
+ to_chat(src, span_danger("You must wait five seconds between attempts."))
return
- to_chat(src, "You are attempting to convert \the [player.current]...")
+ to_chat(src, span_danger("You are attempting to convert \the [player.current]..."))
log_admin("[src]([src.ckey]) attempted to convert [player.current].")
- message_admins("[src]([src.ckey]) attempted to convert [player.current].")
+ message_admins(span_danger("[src]([src.ckey]) attempted to convert [player.current]."))
player.rev_cooldown = world.time+100
var/choice = tgui_alert(player.current, "Asked by [src]: Do you want to join the [faction.faction_descriptor]?", "Join the [faction.faction_descriptor]?", list("No!","Yes!"))
if(choice == "Yes!" && faction.add_antagonist_mind(player, 0, faction.faction_role_text, faction.faction_welcome))
- to_chat(src, "\The [player.current] joins the [faction.faction_descriptor]!")
+ to_chat(src, span_notice("\The [player.current] joins the [faction.faction_descriptor]!"))
return
if(!choice || choice == "No!")
- to_chat(player, "You reject this traitorous cause!")
- to_chat(src, "\The [player.current] does not support the [faction.faction_descriptor]!")
+ to_chat(player, span_danger("You reject this traitorous cause!"))
+ to_chat(src, span_danger("\The [player.current] does not support the [faction.faction_descriptor]!"))
/mob/living/proc/convert_to_loyalist(mob/M as mob in oview(src))
set name = "Convert Recidivist"
diff --git a/code/game/antagonist/antagonist_objectives.dm b/code/game/antagonist/antagonist_objectives.dm
index 223db7dda8..b77972ac30 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)
- to_world("[victory_text]")
+ to_world(span_danger("[victory_text]"))
if(victory_feedback_tag) feedback_set_details("round_end_result","[victory_feedback_tag]")
else if(loss_text)
- to_world("[loss_text]")
+ to_world(span_danger("[loss_text]"))
if(loss_feedback_tag) feedback_set_details("round_end_result","[loss_feedback_tag]")
/mob/living/proc/write_ambition()
@@ -49,7 +49,7 @@
new_ambitions = sanitize(new_ambitions)
mind.ambitions = new_ambitions
if(new_ambitions)
- to_chat(src, "You've set your goal to be '[new_ambitions]'.")
+ to_chat(src, span_notice("You've set your goal to be '[new_ambitions]'."))
else
- to_chat(src, "You leave your ambitions behind.")
+ to_chat(src, span_notice("You leave your ambitions behind."))
log_and_message_admins("has set their ambitions to now be: [new_ambitions].")
diff --git a/code/game/antagonist/mutiny/mutineer.dm b/code/game/antagonist/mutiny/mutineer.dm
index b679c3c0f4..28871a32e2 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)
- to_world("Mutiny mode aborted: no valid candidates for Directive X.")
+ to_world(span_warning("Mutiny mode aborted: no valid candidates for Directive X."))
return 0
head_loyalist = pick(loyalist_candidates)
diff --git a/code/game/antagonist/outsider/ninja.dm b/code/game/antagonist/outsider/ninja.dm
index 261c798cbd..fa2c29a7c6 100644
--- a/code/game/antagonist/outsider/ninja.dm
+++ b/code/game/antagonist/outsider/ninja.dm
@@ -7,7 +7,7 @@ var/datum/antagonist/ninja/ninjas
role_text_plural = "Ninja"
bantype = "ninja"
landmark_id = "ninjastart"
- welcome_text = "You are an elite mercenary assassin of the Spider Clan. You have a variety of abilities at your disposal, thanks to your nano-enhanced cyber armor."
+ welcome_text = span_info("You are an elite mercenary assassin of the Spider Clan. You have a variety of abilities at your disposal, thanks to your nano-enhanced cyber armor.")
flags = ANTAG_OVERRIDE_JOB | ANTAG_CLEAR_EQUIPMENT | ANTAG_CHOOSE_NAME | ANTAG_RANDSPAWN | ANTAG_VOTABLE | ANTAG_SET_APPEARANCE
antaghud_indicator = "hudninja"
@@ -126,7 +126,7 @@ var/datum/antagonist/ninja/ninjas
if(player.internal)
player.internals.icon_state = "internal1"
else
- to_chat(player, "You forgot to turn on your internals! Quickly, toggle the valve!")
+ to_chat(player, span_danger("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 bc17d1175d..f494f91757 100644
--- a/code/game/antagonist/outsider/raider.dm
+++ b/code/game/antagonist/outsider/raider.dm
@@ -187,7 +187,7 @@ var/datum/antagonist/raider/raiders
else
win_msg += "The Raiders were repelled!"
- to_world("[win_type] [win_group] victory!")
+ to_world(span_danger("[win_type] [win_group] victory!"))
to_world("[win_msg]")
feedback_set_details("round_end_result","heist - [win_type] [win_group]")
diff --git a/code/game/antagonist/outsider/technomancer.dm b/code/game/antagonist/outsider/technomancer.dm
index dc6e5567a5..cc1120c057 100644
--- a/code/game/antagonist/outsider/technomancer.dm
+++ b/code/game/antagonist/outsider/technomancer.dm
@@ -78,7 +78,7 @@ var/datum/antagonist/technomancer/technomancers
break
if(!survivor)
feedback_set_details("round_end_result","loss - technomancer killed")
- to_world("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed!")
+ to_world(span_danger("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed!"))
/datum/antagonist/technomancer/print_player_summary()
..()
diff --git a/code/game/antagonist/outsider/wizard.dm b/code/game/antagonist/outsider/wizard.dm
index 76022fc554..2e62719ad4 100644
--- a/code/game/antagonist/outsider/wizard.dm
+++ b/code/game/antagonist/outsider/wizard.dm
@@ -99,7 +99,7 @@ var/datum/antagonist/wizard/wizards
break
if(!survivor)
feedback_set_details("round_end_result","loss - wizard killed")
- to_world("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed by the crew!")
+ to_world(span_danger("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()
@@ -122,12 +122,12 @@ Made a proc so this is not repeated 14 (or more) times.*/
// Humans can wear clothes.
/mob/living/carbon/human/wearing_wiz_garb()
if(!is_wiz_garb(src.wear_suit))
- to_chat(src, "I don't feel strong enough without my robe.")
+ to_chat(src, span_warning("I don't feel strong enough without my robe."))
return 0
if(!is_wiz_garb(src.shoes))
- to_chat(src, "I don't feel strong enough without my sandals.")
+ to_chat(src, span_warning("I don't feel strong enough without my sandals."))
return 0
if(!is_wiz_garb(src.head))
- to_chat(src, "I don't feel strong enough without my hat.")
+ to_chat(src, span_warning("I don't feel strong enough without my hat."))
return 0
return 1
diff --git a/code/game/antagonist/station/cultist.dm b/code/game/antagonist/station/cultist.dm
index 90987e1107..95019c5968 100644
--- a/code/game/antagonist/station/cultist.dm
+++ b/code/game/antagonist/station/cultist.dm
@@ -98,13 +98,13 @@ var/datum/antagonist/cultist/cult
runerandom()
var/wordexp = "[cultwords[word]] is [word]..."
- to_chat(cult_mob, "You remember one thing from the dark teachings of your master... [wordexp]")
+ to_chat(cult_mob, span_warning("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
- 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.")
+ to_chat(player.current, span_danger("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!")
diff --git a/code/game/antagonist/station/highlander.dm b/code/game/antagonist/station/highlander.dm
index 0a21152aec..c5abfb64a1 100644
--- a/code/game/antagonist/station/highlander.dm
+++ b/code/game/antagonist/station/highlander.dm
@@ -68,5 +68,5 @@ var/datum/antagonist/highlander/highlanders
if(is_special_character(H)) continue
highlanders.add_antagonist(H.mind)
- message_admins("[key_name_admin(usr)] used THERE CAN BE ONLY ONE!", 1)
+ message_admins(span_notice("[key_name_admin(usr)] used THERE CAN BE ONLY ONE!"), 1)
log_admin("[key_name(usr)] used there can be only one.")
diff --git a/code/game/antagonist/station/rogue_ai.dm b/code/game/antagonist/station/rogue_ai.dm
index 0ed5644a25..5f85fd73b0 100644
--- a/code/game/antagonist/station/rogue_ai.dm
+++ b/code/game/antagonist/station/rogue_ai.dm
@@ -62,18 +62,18 @@ var/datum/antagonist/rogue_ai/malf
var/mob/living/silicon/ai/malf = player.current
- to_chat(malf, "SYSTEM ERROR: Memory index 0x00001ca89b corrupted.")
+ to_chat(malf, span_notice("SYSTEM ERROR: Memory index 0x00001ca89b corrupted."))
sleep(10)
to_chat(malf, "running MEMCHCK")
sleep(50)
to_chat(malf, "MEMCHCK Corrupted sectors confirmed. Reccomended solution: Delete. Proceed? Y/N: Y")
sleep(10)
// this is so CI doesn't complain about the backslash-B. Fixed at compile time (or should be).
- to_chat(malf, "Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat")
+ to_chat(malf, span_notice("Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat"))
sleep(20)
- to_chat(malf, "CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##")
+ to_chat(malf, span_notice("CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##"))
sleep(5)
- to_chat(malf, "Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding).")
+ to_chat(malf, span_notice("Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding)."))
sleep(20)
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")
diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm
index 7d63de088f..7132a5a60e 100644
--- a/code/game/area/areas.dm
+++ b/code/game/area/areas.dm
@@ -453,7 +453,7 @@ var/list/mob/living/forced_ambiance_list = new
else
H.AdjustStunned(3)
H.AdjustWeakened(3)
- to_chat(mob, "The sudden appearance of gravity makes you fall to the floor!")
+ to_chat(mob, span_notice("The sudden appearance of gravity makes you fall to the floor!"))
playsound(mob, "bodyfall", 50, 1)
/area/proc/prison_break(break_lights = TRUE, open_doors = TRUE, open_blast_doors = TRUE)
diff --git a/code/game/atoms.dm b/code/game/atoms.dm
index 14b91f4226..a9dec8c53d 100644
--- a/code/game/atoms.dm
+++ b/code/game/atoms.dm
@@ -231,7 +231,7 @@
else
f_name = "a "
if(blood_color != SYNTH_BLOOD_COLOUR)
- f_name += "blood-stained [name][infix]!"
+ f_name += "[span_danger("blood-stained")] [name][infix]!"
else
f_name += "oil-stained [name][infix]."
@@ -698,7 +698,7 @@
return
var/list/speech_bubble_hearers = list()
for(var/mob/M in get_mobs_in_view(7, src))
- M.show_message("[src] [atom_say_verb], \"[message]\"", 2, null, 1)
+ M.show_message(span_npcsay("[src] [atom_say_verb], \"[message]\""), 2, null, 1)
if(M.client)
speech_bubble_hearers += M.client
diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm
index a6eff0b225..a94ba8878f 100644
--- a/code/game/dna/dna_modifier.dm
+++ b/code/game/dna/dna_modifier.dm
@@ -133,13 +133,13 @@
if(usr.stat != 0)
return
if(!ishuman(usr) && !issmall(usr)) //Make sure they're a mob that has dna
- to_chat(usr, "Try as you might, you can not climb up into the scanner.")
+ to_chat(usr, span_notice("Try as you might, you can not climb up into the scanner."))
return
if(src.occupant)
- to_chat(usr, "The scanner is already occupied!")
+ to_chat(usr, span_warning("The scanner is already occupied!"))
return
if(usr.abiotic())
- to_chat(usr, "The subject cannot have abiotic items on.")
+ to_chat(usr, span_warning("The subject cannot have abiotic items on."))
return
usr.stop_pulling()
usr.client.perspective = EYE_PERSPECTIVE
@@ -153,7 +153,7 @@
/obj/machinery/dna_scannernew/attackby(var/obj/item/item as obj, var/mob/user as mob)
if(istype(item, /obj/item/reagent_containers/glass))
if(beaker)
- to_chat(user, "A beaker is already loaded into the machine.")
+ to_chat(user, span_warning("A beaker is already loaded into the machine."))
return
beaker = item
@@ -165,7 +165,7 @@
else if(istype(item, /obj/item/organ/internal/brain))
if(src.occupant)
- to_chat(user, "The scanner is already occupied!")
+ to_chat(user, span_warning("The scanner is already occupied!"))
return
var/obj/item/organ/internal/brain/brain = item
if(brain.clone_source)
@@ -185,10 +185,10 @@
if(!ismob(G.affecting))
return
if(src.occupant)
- to_chat(user, "The scanner is already occupied!")
+ to_chat(user, span_warning("The scanner is already occupied!"))
return
if(G.affecting.abiotic())
- to_chat(user, "The subject cannot have abiotic items on.")
+ to_chat(user, span_warning("The subject cannot have abiotic items on."))
return
put_in(G.affecting)
src.add_fingerprint(user)
diff --git a/code/game/dna/genes/disabilities.dm b/code/game/dna/genes/disabilities.dm
index 2d3c1a3ac5..8b7de49835 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)
- to_chat(M, "[activation_message]")
+ to_chat(M, span_warning("[activation_message]"))
else
testing("[name] has no activation message.")
@@ -47,7 +47,7 @@
if(sdisability)
M.sdisabilities &= (~sdisability)
if(deactivation_message)
- to_chat(M, "[deactivation_message]")
+ to_chat(M, span_warning("[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 a448131b85..5bf3145b33 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)
- to_chat(M, "[msg]")
+ to_chat(M, span_notice("[msg]"))
/datum/dna/gene/basic/deactivate(var/mob/M)
M.mutations.Remove(mutation)
if(deactivation_messages.len)
var/msg = pick(deactivation_messages)
- to_chat(M, "[msg]")
+ to_chat(M, span_warning("[msg]"))
diff --git a/code/game/dna/genes/powers.dm b/code/game/dna/genes/powers.dm
index 6f91a5d0c8..5c1120c734 100644
--- a/code/game/dna/genes/powers.dm
+++ b/code/game/dna/genes/powers.dm
@@ -143,7 +143,7 @@
if(M.health <= 25)
M.mutations.Remove(HULK)
M.update_mutations() //update our mutation overlays
- to_chat(M, "You suddenly feel very weak.")
+ to_chat(M, span_warning("You suddenly feel very weak."))
M.Weaken(3)
M.emote("collapse")
diff --git a/code/game/gamemodes/changeling/changeling_powers.dm b/code/game/gamemodes/changeling/changeling_powers.dm
index 4c92e7c95a..a8ea905576 100644
--- a/code/game/gamemodes/changeling/changeling_powers.dm
+++ b/code/game/gamemodes/changeling/changeling_powers.dm
@@ -102,7 +102,7 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
var/mob/living/carbon/human/H = src
if(istype(H))
- var/saved_dna = H.dna.Clone() /// Prevent transform from breaking.
+ var/saved_dna = H.dna.Clone() /// Prevent transform from breaking.
var/datum/absorbed_dna/newDNA = new(H.real_name, saved_dna, H.species.name, H.languages, H.identifying_gender, H.flavor_texts, H.modifiers)
absorbDNA(newDNA)
@@ -131,19 +131,19 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
return
if(src.stat > max_stat)
- to_chat(src, "We are incapacitated.")
+ to_chat(src, span_warning("We are incapacitated."))
return
if(changeling.absorbed_dna.len < required_dna)
- to_chat(src, "We require at least [required_dna] samples of compatible DNA.")
+ to_chat(src, span_warning("We require at least [required_dna] samples of compatible DNA."))
return
if(changeling.chem_charges < required_chems)
- to_chat(src, "We require at least [required_chems] units of chemicals to do that!")
+ to_chat(src, span_warning("We require at least [required_chems] units of chemicals to do that!"))
return
if(changeling.geneticdamage > max_genetic_damage)
- to_chat(src, "Our genomes are still reassembling. We need time to recover first.")
+ to_chat(src, span_warning("Our genomes are still reassembling. We need time to recover first."))
return
return changeling
@@ -206,11 +206,11 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
if(M.loc == src.loc)
return 1 //target and source are in the same thing
if(!isturf(src.loc) || !isturf(M.loc))
- to_chat(src, "We cannot reach \the [M] with a sting!")
+ to_chat(src, span_warning("We cannot reach \the [M] with a sting!"))
return 0 //One is inside, the other is outside something.
// Maximum queued turfs set to 25; I don't *think* anything raises sting_range above 2, but if it does the 25 may need raising
if(!AStar(src.loc, M.loc, /turf/proc/AdjacentTurfsRangedSting, /turf/proc/Distance, max_nodes=25, max_node_depth=sting_range)) //If we can't find a path, fail
- to_chat(src, "We cannot find a path to sting \the [M] by!")
+ to_chat(src, span_warning("We cannot find a path to sting \the [M] by!"))
return 0
return 1
@@ -227,7 +227,7 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
if(!T)
return
if(T.isSynthetic())
- to_chat(src, "We are unable to pierce the outer shell of [T].")
+ to_chat(src, span_notice("We are unable to pierce the outer shell of [T]."))
return
if(!(T in view(changeling.sting_range))) return
if(!sting_can_reach(T, changeling.sting_range)) return
@@ -238,7 +238,7 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
src.verbs -= verb_path
spawn(10) src.verbs += verb_path
- to_chat(src, "We stealthily sting [T].")
+ to_chat(src, span_notice("We stealthily sting [T]."))
if(!T.mind || !T.mind.changeling) return T //T will be affected by the sting
- to_chat(T, "You feel a tiny prick.")
+ to_chat(T, span_warning("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 af4ba13007..64b7ba8114 100644
--- a/code/game/gamemodes/changeling/generic_equip_procs.dm
+++ b/code/game/gamemodes/changeling/generic_equip_procs.dm
@@ -16,9 +16,9 @@
//First, check if we're already wearing the armor, and if so, take it off.
if(istype(M.wear_suit, armor_type) || istype(M.head, helmet_type) || istype(M.shoes, boot_type))
- M.visible_message("[M] casts off their [M.wear_suit.name]!",
- "We cast off our [M.wear_suit.name]",
- "You hear the organic matter ripping and tearing!")
+ M.visible_message(span_warning("[M] casts off their [M.wear_suit.name]!"),
+ span_warning("We cast off our [M.wear_suit.name]"),
+ span_italics("You hear the organic matter ripping and tearing!"))
if(istype(M.wear_suit, armor_type))
qdel(M.wear_suit)
if(istype(M.head, helmet_type))
@@ -32,7 +32,7 @@
return 1
if(M.head || M.wear_suit) //Make sure our slots aren't full
- to_chat(src, "We require nothing to be on our head, and we cannot wear any external suits, or shoes.")
+ to_chat(src, span_warning("We require nothing to be on our head, and we cannot wear any external suits, or shoes."))
return 0
var/obj/item/clothing/suit/A = new armor_type(src)
@@ -120,14 +120,14 @@
if(success)
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[src] pulls on their clothes, peeling it off along with parts of their skin attached!",
- "We remove and deform our equipment.")
+ visible_message(span_warning("[src] pulls on their clothes, peeling it off along with parts of their skin attached!"),
+ span_notice("We remove and deform our equipment."))
M.mind.changeling.armor_deployed = 0
return success
else
- to_chat(M, "We begin growing our new equipment...")
+ to_chat(M, span_notice("We begin growing our new equipment..."))
var/list/grown_items_list = list()
@@ -223,8 +223,8 @@
var/feedback = english_list(grown_items_list, nothing_text = "nothing", and_text = " and ", comma_text = ", ", final_comma_text = "" )
- to_chat(M, "We have grown [feedback].")
-
+ to_chat(M, span_notice("We have grown [feedback]."))
+
if(success)
M.mind.changeling.armor_deployed = 1
M.mind.changeling.chem_charges -= 10
@@ -242,7 +242,7 @@
var/mob/living/carbon/human/M = src
if(M.hands_are_full()) //Make sure our hands aren't full.
- to_chat(src, "Our hands are full. Drop something first.")
+ to_chat(src, span_warning("Our hands are full. Drop something first."))
return 0
var/obj/item/W = new weapon_type(src)
@@ -251,4 +251,4 @@
src.mind.changeling.chem_charges -= cost
if(make_sound)
playsound(src, 'sound/effects/blobattack.ogg', 30, 1)
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/absorb.dm b/code/game/gamemodes/changeling/powers/absorb.dm
index 89cb41a88a..1523855a12 100644
--- a/code/game/gamemodes/changeling/powers/absorb.dm
+++ b/code/game/gamemodes/changeling/powers/absorb.dm
@@ -16,43 +16,43 @@
var/obj/item/grab/G = src.get_active_hand()
if(!istype(G))
- to_chat(src, "We must be grabbing a creature in our active hand to absorb them.")
+ to_chat(src, span_warning("We must be grabbing a creature in our active hand to absorb them."))
return
var/mob/living/carbon/human/T = G.affecting
if(!istype(T) || T.isSynthetic())
- to_chat(src, "\The [T] is not compatible with our biology.")
+ to_chat(src, span_warning("\The [T] is not compatible with our biology."))
return
if(T.species.flags & NO_SCAN)
- to_chat(src, "We do not know how to parse this creature's DNA!")
+ to_chat(src, span_warning("We do not know how to parse this creature's DNA!"))
return
if(HUSK in T.mutations) //Lings can always absorb other lings, unless someone beat them to it first.
if(!T.mind.changeling || T.mind.changeling && T.mind.changeling.geneticpoints < 0)
- to_chat(src, "This creature's DNA is ruined beyond useability!")
+ to_chat(src, span_warning("This creature's DNA is ruined beyond useability!"))
return
if(G.state != GRAB_KILL)
- to_chat(src, "We must have a tighter grip to absorb this creature.")
+ to_chat(src, span_warning("We must have a tighter grip to absorb this creature."))
return
if(changeling.isabsorbing)
- to_chat(src, "We are already absorbing!")
+ to_chat(src, span_warning("We are already absorbing!"))
return
changeling.isabsorbing = 1
for(var/stage = 1, stage<=3, stage++)
switch(stage)
if(1)
- to_chat(src, "This creature is compatible. We must hold still...")
+ to_chat(src, span_notice("This creature is compatible. We must hold still..."))
if(2)
- to_chat(src, "We extend a proboscis.")
- src.visible_message("[src] extends a proboscis!")
+ to_chat(src, span_notice("We extend a proboscis."))
+ src.visible_message(span_warning("[src] extends a proboscis!"))
if(3)
- to_chat(src, "We stab [T] with the proboscis.")
- src.visible_message("[src] stabs [T] with the proboscis!")
- to_chat(T, "You feel a sharp stabbing pain!")
+ to_chat(src, span_notice("We stab [T] with the proboscis."))
+ src.visible_message(span_danger("[src] stabs [T] with the proboscis!"))
+ to_chat(T, span_danger("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"))
@@ -60,13 +60,13 @@
feedback_add_details("changeling_powers","A[stage]")
if(!do_mob(src, T, 150) || G.state != GRAB_KILL)
- to_chat(src, "Our absorption of [T] has been interrupted!")
+ to_chat(src, span_warning("Our absorption of [T] has been interrupted!"))
changeling.isabsorbing = 0
return
- to_chat(src, "We have absorbed [T]!")
- src.visible_message("[src] sucks the fluids from [T]!")
- to_chat(T, "You have been absorbed by the changeling!")
+ to_chat(src, span_notice("We have absorbed [T]!"))
+ src.visible_message(span_danger("[src] sucks the fluids from [T]!"))
+ to_chat(T, span_danger("You have been absorbed by the changeling!"))
adjust_nutrition(T.nutrition)
changeling.chem_charges += 10
if(changeling.readapts <= 0)
@@ -75,7 +75,7 @@
if(changeling.readapts > changeling.max_readapts)
changeling.readapts = changeling.max_readapts
- to_chat(src, "We can now re-adapt, reverting our evolution so that we may start anew, if needed.")
+ to_chat(src, span_notice("We can now re-adapt, reverting our evolution so that we may start anew, if needed."))
var/datum/absorbed_dna/newDNA = new(T.real_name, T.dna, T.species.name, T.languages, T.identifying_gender, T.flavor_texts, T.modifiers)
absorbDNA(newDNA)
@@ -97,7 +97,7 @@
changeling.geneticpoints += 4
changeling.max_geneticpoints += 4
- to_chat(src, "We absorbed another changeling, and we grow stronger. Our genomes increase.")
+ to_chat(src, span_notice("We absorbed another changeling, and we grow stronger. Our genomes increase."))
T.mind.changeling.chem_charges = 0
T.mind.changeling.geneticpoints = -1
@@ -110,4 +110,4 @@
T.death(0)
T.Drain()
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/armblade.dm b/code/game/gamemodes/changeling/powers/armblade.dm
index ca374db53f..349f7bbfe7 100644
--- a/code/game/gamemodes/changeling/powers/armblade.dm
+++ b/code/game/gamemodes/changeling/powers/armblade.dm
@@ -14,7 +14,7 @@
if(src.mind.changeling.recursive_enhancement)
if(changeling_generic_weapon(/obj/item/melee/changeling/arm_blade/greater))
- to_chat(src, "We prepare an extra sharp blade.")
+ to_chat(src, span_notice("We prepare an extra sharp blade."))
return 1
else
@@ -39,7 +39,7 @@
if(src.mind.changeling.recursive_enhancement)
if(changeling_generic_weapon(/obj/item/melee/changeling/claw/greater, 1, 15))
- to_chat(src, "We prepare an extra sharp claw.")
+ to_chat(src, span_notice("We prepare an extra sharp claw."))
return 1
else
@@ -69,15 +69,15 @@
..()
START_PROCESSING(SSobj, src)
if(ismob(loc))
- visible_message("A grotesque weapon forms around [loc.name]\'s arm!",
- "Our arm twists and mutates, transforming it into a deadly weapon.",
- "You hear organic matter ripping and tearing!")
+ visible_message(span_warning("A grotesque weapon forms around [loc.name]\'s arm!"),
+ span_warning("Our arm twists and mutates, transforming it into a deadly weapon."),
+ span_italics("You hear organic matter ripping and tearing!"))
src.creator = loc
/obj/item/melee/changeling/dropped(mob/user)
- visible_message("With a sickening crunch, [creator] reforms their arm!",
- "We assimilate the weapon back into our body.",
- "You hear organic matter ripping and tearing!")
+ visible_message(span_warning("With a sickening crunch, [creator] reforms their arm!"),
+ span_notice("We assimilate the weapon back into our body."),
+ span_italics("You hear organic matter ripping and tearing!"))
playsound(src, 'sound/effects/blobattack.ogg', 30, 1)
spawn(1)
if(src)
@@ -107,11 +107,11 @@
/obj/item/melee/changeling/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(default_parry_check(user, attacker, damage_source) && prob(defend_chance))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/slash.ogg', 50, 1)
return 1
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
- user.visible_message("\The [user] deflects [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] deflects [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/slash.ogg', 50, 1)
return 1
diff --git a/code/game/gamemodes/changeling/powers/armor.dm b/code/game/gamemodes/changeling/powers/armor.dm
index ed16c983df..e4771c7dd7 100644
--- a/code/game/gamemodes/changeling/powers/armor.dm
+++ b/code/game/gamemodes/changeling/powers/armor.dm
@@ -44,9 +44,9 @@
/obj/item/clothing/suit/space/changeling/New()
..()
if(ismob(loc))
- loc.visible_message("[loc.name]\'s flesh rapidly inflates, forming a bloated mass around their body!",
- "We inflate our flesh, creating a spaceproof suit!",
- "You hear organic matter ripping and tearing!")
+ loc.visible_message(span_warning("[loc.name]\'s flesh rapidly inflates, forming a bloated mass around their body!"),
+ span_warning("We inflate our flesh, creating a spaceproof suit!"),
+ span_italics("You hear organic matter ripping and tearing!"))
/obj/item/clothing/suit/space/changeling/dropped()
qdel(src)
@@ -108,9 +108,9 @@
/obj/item/clothing/suit/space/changeling/armored/New()
..()
if(ismob(loc))
- loc.visible_message("[loc.name]\'s flesh turns black, quickly transforming into a hard, chitinous mass!",
- "We harden our flesh, creating a suit of armor!",
- "You hear organic matter ripping and tearing!")
+ loc.visible_message(span_warning("[loc.name]\'s flesh turns black, quickly transforming into a hard, chitinous mass!"),
+ span_warning("We harden our flesh, creating a suit of armor!"),
+ span_italics("You hear organic matter ripping and tearing!"))
/obj/item/clothing/head/helmet/space/changeling/armored
name = "chitinous mass"
diff --git a/code/game/gamemodes/changeling/powers/augmented_eyesight.dm b/code/game/gamemodes/changeling/powers/augmented_eyesight.dm
index 6e29bf939c..3498e5df4d 100644
--- a/code/game/gamemodes/changeling/powers/augmented_eyesight.dm
+++ b/code/game/gamemodes/changeling/powers/augmented_eyesight.dm
@@ -25,12 +25,12 @@
if(active)
src.mind.changeling.chem_charges -= 5
- to_chat(C, "We feel a minute twitch in our eyes, and a hidden layer to the world is revealed.")
+ to_chat(C, span_notice("We feel a minute twitch in our eyes, and a hidden layer to the world is revealed."))
C.add_modifier(/datum/modifier/changeling/thermal_sight, 0, src)
// C.permanent_sight_flags |= SEE_MOBS
// C.dna.species.invis_sight = SEE_INVISIBLE_MINIMUM
else
- to_chat(C, "Our vision dulls.")
+ to_chat(C, span_notice("Our vision dulls."))
C.remove_modifiers_of_type(/datum/modifier/changeling/thermal_sight)
// C.permanent_sight_flags &= ~SEE_MOBS
// C.dna.species.invis_sight = initial(user.dna.species.invis_sight)
diff --git a/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm b/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm
index 7210e2263d..f882c996f1 100644
--- a/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm
+++ b/code/game/gamemodes/changeling/powers/bioelectrogenesis.dm
@@ -25,7 +25,7 @@
if(held_item == null)
if(src.mind.changeling.recursive_enhancement)
if(changeling_generic_weapon(/obj/item/electric_hand/efficent,0))
- to_chat(src, "We will shock others more efficently.")
+ to_chat(src, span_notice("We will shock others more efficently."))
return 1
else
if(changeling_generic_weapon(/obj/item/electric_hand,0)) //Chemical cost is handled in the equip proc.
@@ -50,11 +50,11 @@
add_attack_logs(src,G.affecting,"Changeling shocked")
if(siemens)
- visible_message("Arcs of electricity strike [G.affecting]!",
- "Our hand channels raw electricity into [G.affecting].",
- "You hear sparks!")
+ visible_message(span_warning("Arcs of electricity strike [G.affecting]!"),
+ span_warning("Our hand channels raw electricity into [G.affecting]."),
+ span_italics("You hear sparks!"))
else
- to_chat(src, "Our gloves block us from shocking \the [G.affecting].")
+ to_chat(src, span_warning("Our gloves block us from shocking \the [G.affecting]."))
src.mind.changeling.chem_charges -= 10
return 1
@@ -74,9 +74,9 @@
//Now for the actual recharging.
for(var/obj/item/cell/cell in L)
- visible_message("Some sparks fall out from \the [src.name]\'s [held_item]!",
- "Our hand channels raw electricity into \the [held_item].",
- "You hear sparks!")
+ visible_message(span_warning("Some sparks fall out from \the [src.name]\'s [held_item]!"),
+ span_warning("Our hand channels raw electricity into \the [held_item]."),
+ span_italics("You hear sparks!"))
var/i = 10
if(siemens)
while(i)
@@ -92,7 +92,7 @@
sleep(1 SECOND)
success = 1
if(success == 0) //If we couldn't do anything with the ability, don't deduct the chemicals.
- to_chat(src, "We are unable to affect \the [held_item].")
+ to_chat(src, span_warning("We are unable to affect \the [held_item]."))
else
src.mind.changeling.chem_charges -= 10
return success
@@ -115,9 +115,9 @@
/obj/item/electric_hand/New()
if(ismob(loc))
- visible_message("Electrical arcs form around [loc.name]\'s hand!",
- "We store a charge of electricity in our hand.",
- "You hear crackling electricity!")
+ visible_message(span_warning("Electrical arcs form around [loc.name]\'s hand!"),
+ span_warning("We store a charge of electricity in our hand."),
+ span_italics("You hear crackling electricity!"))
var/T = get_turf(src)
new /obj/effect/effect/sparks(T)
@@ -143,7 +143,7 @@
var/mob/living/carbon/C = target
if(user.mind.changeling.chem_charges < shock_cost)
- to_chat(src, "We require more chemicals to electrocute [C]!")
+ to_chat(src, span_warning("We require more chemicals to electrocute [C]!"))
return 0
C.electrocute_act(electrocute_amount * siemens,src,1.0,BP_TORSO)
@@ -152,11 +152,11 @@
add_attack_logs(user,C,"Shocked with [src]")
if(siemens)
- visible_message("Arcs of electricity strike [C]!",
- "Our hand channels raw electricity into [C]",
- "You hear sparks!")
+ visible_message(span_warning("Arcs of electricity strike [C]!"),
+ span_warning("Our hand channels raw electricity into [C]"),
+ span_italics("You hear sparks!"))
else
- to_chat(src, "Our gloves block us from shocking \the [C].")
+ to_chat(src, span_warning("Our gloves block us from shocking \the [C]."))
//qdel(src) //Since we're no longer a one hit stun, we need to stick around.
user.mind.changeling.chem_charges -= shock_cost
return 1
@@ -165,15 +165,15 @@
var/mob/living/silicon/S = target
if(user.mind.changeling.chem_charges < 10)
- to_chat(src, "We require more chemicals to electrocute [S]!")
+ to_chat(src, span_warning("We require more chemicals to electrocute [S]!"))
return 0
S.electrocute_act(60,src,0.75) //If only they had surge protectors.
if(siemens)
- visible_message("Arcs of electricity strike [S]!",
- "Our hand channels raw electricity into [S]",
- "You hear sparks!")
- to_chat(S, "Warning: Electrical surge detected!")
+ visible_message(span_warning("Arcs of electricity strike [S]!"),
+ span_warning("Our hand channels raw electricity into [S]"),
+ span_italics("You hear sparks!"))
+ to_chat(S, span_danger("Warning: Electrical surge detected!"))
//qdel(src)
user.mind.changeling.chem_charges -= 10
return 1
@@ -184,9 +184,9 @@
var/obj/T = target
//We can also recharge things we touch, such as APCs or hardsuits.
for(var/obj/item/cell/cell in T.contents)
- visible_message("Some sparks fall out from \the [target]!",
- "Our hand channels raw electricity into \the [target].",
- "You hear sparks!")
+ visible_message(span_warning("Some sparks fall out from \the [target]!"),
+ span_warning("Our hand channels raw electricity into \the [target]."),
+ span_italics("You hear sparks!"))
var/i = 10
if(siemens)
while(i)
@@ -205,7 +205,7 @@
success = 1
break
if(success == 0)
- to_chat(src, "We are unable to affect \the [target].")
+ to_chat(src, span_warning("We are unable to affect \the [target]."))
else
qdel(src)
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/blind_sting.dm b/code/game/gamemodes/changeling/powers/blind_sting.dm
index f4721db660..40d5f96824 100644
--- a/code/game/gamemodes/changeling/powers/blind_sting.dm
+++ b/code/game/gamemodes/changeling/powers/blind_sting.dm
@@ -16,15 +16,15 @@
if(!T)
return 0
add_attack_logs(src,T,"Blind sting (changeling)")
- to_chat(T, "Your eyes burn horrificly!")
+ to_chat(T, span_danger("Your eyes burn horrificly!"))
T.disabilities |= NEARSIGHTED
var/duration = 300
if(src.mind.changeling.recursive_enhancement)
duration = duration + 150
- to_chat(src, "They will be deprived of sight for longer.")
+ to_chat(src, span_notice("They will be deprived of sight for longer."))
spawn(duration)
T.disabilities &= ~NEARSIGHTED
T.Blind(10)
T.eye_blurry = 20
feedback_add_details("changeling_powers","BS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/boost_range.dm b/code/game/gamemodes/changeling/powers/boost_range.dm
index a22130484c..8ffcd8ce35 100644
--- a/code/game/gamemodes/changeling/powers/boost_range.dm
+++ b/code/game/gamemodes/changeling/powers/boost_range.dm
@@ -18,14 +18,14 @@
if(!changeling)
return 0
changeling.chem_charges -= 10
- to_chat(src, "Your throat adjusts to launch the sting.")
+ to_chat(src, span_notice("Your throat adjusts to launch the sting."))
var/range = 2
if(src.mind.changeling.recursive_enhancement)
range = range + 3
- to_chat(src, "We can fire our next sting from five squares away.")
+ to_chat(src, span_notice("We can fire our next sting from five squares away."))
changeling.sting_range = range
src.verbs -= /mob/proc/changeling_boost_range
spawn(5)
src.verbs += /mob/proc/changeling_boost_range
feedback_add_details("changeling_powers","RS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/cryo_sting.dm b/code/game/gamemodes/changeling/powers/cryo_sting.dm
index e1a2b10cff..3a80b2bbb5 100644
--- a/code/game/gamemodes/changeling/powers/cryo_sting.dm
+++ b/code/game/gamemodes/changeling/powers/cryo_sting.dm
@@ -20,12 +20,12 @@
var/inject_amount = 10
if(src.mind.changeling.recursive_enhancement)
inject_amount = inject_amount * 1.5
- to_chat(src, "We inject extra chemicals.")
+ to_chat(src, span_notice("We inject extra chemicals."))
if(T.reagents)
T.reagents.add_reagent("cryotoxin", inject_amount)
feedback_add_details("changeling_powers","CS")
src.verbs -= /mob/proc/changeling_cryo_sting
spawn(3 MINUTES)
- to_chat(src, "Our cryogenic string is ready to be used once more.")
+ to_chat(src, span_notice("Our cryogenic string is ready to be used once more."))
src.verbs |= /mob/proc/changeling_cryo_sting
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/darkvision.dm b/code/game/gamemodes/changeling/powers/darkvision.dm
index 6fbb2954ba..3139a85e39 100644
--- a/code/game/gamemodes/changeling/powers/darkvision.dm
+++ b/code/game/gamemodes/changeling/powers/darkvision.dm
@@ -19,8 +19,8 @@
var/mob/living/carbon/C = src
C.seedarkness = !C.seedarkness
if(C.seedarkness)
- to_chat(C, "We allow the shadows to return.")
+ to_chat(C, span_notice("We allow the shadows to return."))
else
- to_chat(C, "We no longer need light to see.")
+ to_chat(C, span_notice("We no longer need light to see."))
- return 0
\ No newline at end of file
+ return 0
diff --git a/code/game/gamemodes/changeling/powers/deaf_sting.dm b/code/game/gamemodes/changeling/powers/deaf_sting.dm
index 7b39e90720..e03205665c 100644
--- a/code/game/gamemodes/changeling/powers/deaf_sting.dm
+++ b/code/game/gamemodes/changeling/powers/deaf_sting.dm
@@ -19,9 +19,9 @@
var/duration = 300
if(src.mind.changeling.recursive_enhancement)
duration = duration + 100
- to_chat(src, "They will be unable to hear for a little longer.")
- to_chat(T, "Your ears pop and begin ringing loudly!")
+ to_chat(src, span_notice("They will be unable to hear for a little longer."))
+ to_chat(T, span_danger("Your ears pop and begin ringing loudly!"))
T.sdisabilities |= DEAF
spawn(duration) T.sdisabilities &= ~DEAF
feedback_add_details("changeling_powers","DS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/death_sting.dm b/code/game/gamemodes/changeling/powers/death_sting.dm
index 2eb1e476bd..9acb09e8b2 100644
--- a/code/game/gamemodes/changeling/powers/death_sting.dm
+++ b/code/game/gamemodes/changeling/powers/death_sting.dm
@@ -14,10 +14,10 @@
if(!T)
return 0
add_attack_logs(src,T,"Death sting (changeling)")
- to_chat(T, "You feel a small prick and your chest becomes tight.")
+ to_chat(T, span_danger("You feel a small prick and your chest becomes tight."))
T.silent = 10
T.Paralyse(10)
T.make_jittery(100)
if(T.reagents) T.reagents.add_reagent("lexorin", 40)
feedback_add_details("changeling_powers","DTHS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/delayed_toxin_sting.dm b/code/game/gamemodes/changeling/powers/delayed_toxin_sting.dm
index f50460a826..bbd63db65f 100644
--- a/code/game/gamemodes/changeling/powers/delayed_toxin_sting.dm
+++ b/code/game/gamemodes/changeling/powers/delayed_toxin_sting.dm
@@ -12,7 +12,7 @@
name = "delayed toxin injection"
hidden = TRUE
stacks = MODIFIER_STACK_FORBID
- on_expired_text = "You feel a burning sensation flowing through your veins!"
+ on_expired_text = span_danger("You feel a burning sensation flowing through your veins!")
/datum/modifier/delayed_toxin_sting/on_expire()
holder.adjustToxLoss(rand(20, 30))
@@ -32,10 +32,10 @@
var/type_to_give = /datum/modifier/delayed_toxin_sting
if(src.mind.changeling.recursive_enhancement)
type_to_give = /datum/modifier/delayed_toxin_sting/strong
- to_chat(src, "Our toxin will be extra potent, when it strikes.")
+ to_chat(src, span_notice("Our toxin will be extra potent, when it strikes."))
T.add_modifier(type_to_give, 2 MINUTES)
feedback_add_details("changeling_powers","DTS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/digital_camo.dm b/code/game/gamemodes/changeling/powers/digital_camo.dm
index 9574b465da..70312efcdf 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)
- to_chat(C, "We return to normal.")
+ to_chat(C, span_notice("We return to normal."))
else
- to_chat(C, "We distort our form to prevent AI-tracking.")
+ to_chat(C, span_notice("We distort our form to prevent AI-tracking."))
C.digitalcamo = !C.digitalcamo
spawn(0)
@@ -33,4 +33,4 @@
spawn(5)
src.verbs += /mob/proc/changeling_digitalcamo
feedback_add_details("changeling_powers","CAM")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/electric_lockpick.dm b/code/game/gamemodes/changeling/powers/electric_lockpick.dm
index bc59cd5d12..3b4edc576f 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/finger_lockpick/New()
if(ismob(loc))
- to_chat(loc, "We shape our finger to fit inside electronics, and are ready to force them open.")
+ to_chat(loc, span_notice("We shape our finger to fit inside electronics, and are ready to force them open."))
/obj/item/finger_lockpick/dropped(mob/user)
- to_chat(user, "We discreetly shape our finger back to a less suspicious form.")
+ to_chat(user, span_notice("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)
- to_chat(user, "We require more chemicals to do that.")
+ to_chat(user, span_warning("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
- to_chat(user, "We send an electrical pulse up our finger, and into \the [target], attempting to open it.")
+ to_chat(user, span_notice("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()
- to_chat(user, "We've unlocked \the [airlock]. Another pulse is requried to open it.")
+ to_chat(user, span_notice("We've unlocked \the [airlock]. Another pulse is requried to open it."))
else //We're not bolted, so open the door already.
airlock.open()
- to_chat(user, "We've opened \the [airlock].")
+ to_chat(user, span_notice("We've opened \the [airlock]."))
else
door.open() //If we're a windoor, open the windoor.
- to_chat(user, "We've opened \the [door].")
+ to_chat(user, span_notice("We've opened \the [door]."))
else //Probably broken or no power.
- to_chat(user, "The door does not respond to the pulse.")
+ to_chat(user, span_warning("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,11 +86,11 @@
else if(istype(target,/obj/)) //This should catch everything else we might miss, without a million typechecks.
var/obj/O = target
- to_chat(user, "We send an electrical pulse up our finger, and into \the [O].")
+ to_chat(user, span_notice("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].")
ling_datum.chem_charges -= 10
return 1
- return 0
\ No newline at end of file
+ return 0
diff --git a/code/game/gamemodes/changeling/powers/endoarmor.dm b/code/game/gamemodes/changeling/powers/endoarmor.dm
index d62c52141a..6ada286574 100644
--- a/code/game/gamemodes/changeling/powers/endoarmor.dm
+++ b/code/game/gamemodes/changeling/powers/endoarmor.dm
@@ -10,8 +10,8 @@
name = "endoarmor"
desc = "We have hard plating underneath our skin, making us more durable."
- on_created_text = "We feel protective plating form underneath our skin."
- on_expired_text = "Our protective armor underneath our skin fades as we absorb it."
+ on_created_text = span_notice("We feel protective plating form underneath our skin.")
+ on_expired_text = span_notice("Our protective armor underneath our skin fades as we absorb it.")
max_health_flat = 50
/mob/proc/changeling_endoarmor()
@@ -19,4 +19,4 @@
var/mob/living/carbon/human/H = src
H.add_modifier(/datum/modifier/endoarmor)
// H.maxHealth += 50
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/enfeebling_string.dm b/code/game/gamemodes/changeling/powers/enfeebling_string.dm
index 81930a7ebc..49829aecce 100644
--- a/code/game/gamemodes/changeling/powers/enfeebling_string.dm
+++ b/code/game/gamemodes/changeling/powers/enfeebling_string.dm
@@ -15,8 +15,8 @@
max_health_percent = 0.7
outgoing_melee_damage_percent = 0.75
incoming_damage_percent = 1.1
- on_created_text = "You feel a small prick and you feel extremly weak!"
- on_expired_text = "You no longer feel extremly weak."
+ on_created_text = span_danger("You feel a small prick and you feel extremly weak!")
+ on_expired_text = span_notice("You no longer feel extremly weak.")
// Now YOU'RE the Teshari!
/datum/modifier/enfeeble/strong
@@ -40,7 +40,7 @@
var/type_to_give = /datum/modifier/enfeeble
if(src.mind.changeling.recursive_enhancement)
type_to_give = /datum/modifier/enfeeble/strong
- to_chat(src, "We make them extremely weak.")
+ to_chat(src, span_notice("We make them extremely weak."))
H.add_modifier(type_to_give, 2 MINUTES)
feedback_add_details("changeling_powers","ES")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/enrage.dm b/code/game/gamemodes/changeling/powers/enrage.dm
index 00b2193c86..2336b3042a 100644
--- a/code/game/gamemodes/changeling/powers/enrage.dm
+++ b/code/game/gamemodes/changeling/powers/enrage.dm
@@ -24,10 +24,10 @@
var/modifier_to_use = /datum/modifier/berserk/changeling
if(src.mind.changeling.recursive_enhancement)
modifier_to_use = /datum/modifier/berserk/changeling/recursive
- to_chat(src, "We optimize our levels of anger, which will avoid excessive stress on ourselves.")
+ to_chat(src, span_notice("We optimize our levels of anger, which will avoid excessive stress on ourselves."))
if(add_modifier(modifier_to_use, 30 SECONDS))
changeling.chem_charges -= 30
feedback_add_details("changeling_powers","EN")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm b/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm
index 5d3c1a3be9..f2e2175dfa 100644
--- a/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm
+++ b/code/game/gamemodes/changeling/powers/epinephrine_overdose.dm
@@ -12,8 +12,8 @@
desc = "We feel limitless amounts of energy surge in our veins. Nothing can stop us!"
stacks = MODIFIER_STACK_EXTEND
- on_created_text = "We feel unstoppable!"
- on_expired_text = "We feel our newfound energy fade..."
+ on_created_text = span_notice("We feel unstoppable!")
+ on_expired_text = span_warning("We feel our newfound energy fade...")
disable_duration_percent = 0
//Recover from stuns.
@@ -28,7 +28,7 @@
changeling.chem_charges -= 30
var/mob/living/carbon/human/C = src
- to_chat(C, "Energy rushes through us. [C.lying ? "We arise." : ""]")
+ to_chat(C, span_notice("Energy rushes through us. [C.lying ? "We arise." : ""]"))
C.set_stat(CONSCIOUS)
C.SetParalysis(0)
C.SetStunned(0)
@@ -63,4 +63,4 @@
M.AdjustStunned(-2)
M.AdjustWeakened(-2)
..()
- return
\ No newline at end of file
+ return
diff --git a/code/game/gamemodes/changeling/powers/escape_restraints.dm b/code/game/gamemodes/changeling/powers/escape_restraints.dm
index eee9b3c30f..504cb884c9 100644
--- a/code/game/gamemodes/changeling/powers/escape_restraints.dm
+++ b/code/game/gamemodes/changeling/powers/escape_restraints.dm
@@ -19,15 +19,15 @@
if(!changeling)
return 0
if(world.time < changeling.next_escape)
- to_chat(src, "We are still recovering from our last escape...")
+ to_chat(src, span_warning("We are still recovering from our last escape..."))
return 0
if(!(C.handcuffed || C.legcuffed || istype(C.wear_suit,/obj/item/clothing/suit/straight_jacket))) // No need to waste chems if there's nothing to break out of
- to_chat(C, "We are are not restrained in a way we can escape...")
+ to_chat(C, span_warning("We are are not restrained in a way we can escape..."))
return 0
changeling.chem_charges -= 40
- to_chat(C,"We contort our extremities and slip our cuffs.")
+ to_chat(C,span_notice("We contort our extremities and slip our cuffs."))
playsound(src, 'sound/effects/blobattack.ogg', 30, 1)
if(C.handcuffed)
var/obj/item/W = C.handcuffed
@@ -64,4 +64,4 @@
changeling.next_escape = world.time + escape_cooldown //And now we set the timer
feedback_add_details("changeling_powers","ESR")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/extract_dna_sting.dm b/code/game/gamemodes/changeling/powers/extract_dna_sting.dm
index baf80140f1..3806b0ef33 100644
--- a/code/game/gamemodes/changeling/powers/extract_dna_sting.dm
+++ b/code/game/gamemodes/changeling/powers/extract_dna_sting.dm
@@ -24,22 +24,22 @@
return
if(!istype(T) || T.isSynthetic())
- to_chat(src, "\The [T] is not compatible with our biology.")
+ to_chat(src, span_warning("\The [T] is not compatible with our biology."))
return 0
if(T.species.flags & NO_SCAN)
- to_chat(src, "We do not know how to parse this creature's DNA!")
+ to_chat(src, span_warning("We do not know how to parse this creature's DNA!"))
return 0
if(HUSK in T.mutations)
- to_chat(src, "This creature's DNA is ruined beyond useability!")
+ to_chat(src, span_warning("This creature's DNA is ruined beyond useability!"))
return 0
add_attack_logs(src,T,"DNA extraction sting (changeling)")
- var/saved_dna = T.dna.Clone() /// Prevent transforming bugginess.
+ var/saved_dna = T.dna.Clone() /// Prevent transforming bugginess.
var/datum/absorbed_dna/newDNA = new(T.real_name, saved_dna, T.species.name, T.languages, T.identifying_gender, T.flavor_text, T.modifiers)
absorbDNA(newDNA)
feedback_add_details("changeling_powers","ED")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/fabricate_clothing.dm b/code/game/gamemodes/changeling/powers/fabricate_clothing.dm
index 1b58ad220b..8303426dc1 100644
--- a/code/game/gamemodes/changeling/powers/fabricate_clothing.dm
+++ b/code/game/gamemodes/changeling/powers/fabricate_clothing.dm
@@ -53,8 +53,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/clothing/head/chameleon/changeling
@@ -74,8 +74,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/clothing/suit/chameleon/changeling
@@ -99,8 +99,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/clothing/shoes/chameleon/changeling
@@ -124,8 +124,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/storage/backpack/chameleon/changeling
@@ -149,8 +149,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
for(var/atom/movable/AM in src.contents) //Dump whatever's in the bag before deleting.
AM.forceMove(get_turf(loc))
qdel(src)
@@ -177,8 +177,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/clothing/mask/chameleon/changeling
@@ -203,8 +203,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/clothing/glasses/chameleon/changeling
@@ -224,8 +224,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/storage/belt/chameleon/changeling
@@ -249,8 +249,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/card/id/syndicate/changeling
@@ -278,8 +278,8 @@ var/global/list/changeling_fabricated_clothing = list(
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
playsound(src, 'sound/effects/splat.ogg', 30, 1)
- visible_message("[H] tears off [src]!",
- "We remove [src].")
+ visible_message(span_warning("[H] tears off [src]!"),
+ span_notice("We remove [src]."))
qdel(src)
/obj/item/card/id/syndicate/changeling/Click() //Since we can't hold it in our hands, and attack_hand() doesn't work if it in inventory...
@@ -287,4 +287,4 @@ var/global/list/changeling_fabricated_clothing = list(
registered_user = usr
usr.set_id_info(src)
tgui_interact(registered_user)
- ..()
\ No newline at end of file
+ ..()
diff --git a/code/game/gamemodes/changeling/powers/fake_death.dm b/code/game/gamemodes/changeling/powers/fake_death.dm
index 19d2291b37..696402f37f 100644
--- a/code/game/gamemodes/changeling/powers/fake_death.dm
+++ b/code/game/gamemodes/changeling/powers/fake_death.dm
@@ -19,12 +19,12 @@
var/mob/living/carbon/C = src
if(changeling.max_geneticpoints < 0) //Absorbed by another ling
- to_chat(src, "We have no genomes, not even our own, and cannot regenerate.")
+ to_chat(src, span_danger("We have no genomes, not even our own, and cannot regenerate."))
return 0
if(!C.stat && tgui_alert(src, "Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival",list("Yes","No")) != "Yes")
return
- to_chat(C, "We will attempt to regenerate our form.")
+ to_chat(C, span_notice("We will attempt to regenerate our form."))
C.update_canmove()
C.remove_changeling_powers()
@@ -47,7 +47,7 @@
new /obj/changeling_revive_holder(src)
- to_chat(src, "We are ready to rise. Use the Revive verb when you are ready.")
+ to_chat(src, span_notice("We are ready to rise. Use the Revive verb when you are ready."))
feedback_add_details("changeling_powers","FD")
return 1
diff --git a/code/game/gamemodes/changeling/powers/fleshmend.dm b/code/game/gamemodes/changeling/powers/fleshmend.dm
index 05eea72d95..743a8202e3 100644
--- a/code/game/gamemodes/changeling/powers/fleshmend.dm
+++ b/code/game/gamemodes/changeling/powers/fleshmend.dm
@@ -22,10 +22,10 @@
var/heal_amount = 2
if(src.mind.changeling.recursive_enhancement)
heal_amount = heal_amount * 2
- to_chat(src, "We will heal much faster.")
+ to_chat(src, span_notice("We will heal much faster."))
spawn(0)
- to_chat(src, "We begin to heal ourselves.")
+ to_chat(src, span_notice("We begin to heal ourselves."))
for(var/i = 0, i<50,i++)
if(C)
C.adjustBruteLoss(-heal_amount)
@@ -35,7 +35,7 @@
src.verbs -= /mob/proc/changeling_fleshmend
spawn(50 SECONDS)
- to_chat(src, "Our regeneration has slowed to normal levels.")
+ to_chat(src, span_notice("Our regeneration has slowed to normal levels."))
src.verbs += /mob/proc/changeling_fleshmend
feedback_add_details("changeling_powers","FM")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/hivemind.dm b/code/game/gamemodes/changeling/powers/hivemind.dm
index d07542875a..44f66c8791 100644
--- a/code/game/gamemodes/changeling/powers/hivemind.dm
+++ b/code/game/gamemodes/changeling/powers/hivemind.dm
@@ -34,7 +34,7 @@ var/list/datum/dna/hivemind_bank = list()
names += DNA.name
if(names.len <= 0)
- to_chat(src, "The airwaves already have all of our DNA.")
+ to_chat(src, span_notice("The airwaves already have all of our DNA."))
return
var/S = tgui_input_list(src, "Select a DNA to channel:", "Channel DNA", names)
@@ -46,7 +46,7 @@ var/list/datum/dna/hivemind_bank = list()
changeling.chem_charges -= 10
hivemind_bank += chosen_dna
- to_chat(src, "We channel the DNA of [S] to the air.")
+ to_chat(src, span_notice("We channel the DNA of [S] to the air."))
feedback_add_details("changeling_powers","HU")
return 1
@@ -64,7 +64,7 @@ var/list/datum/dna/hivemind_bank = list()
names[DNA.name] = DNA
if(names.len <= 0)
- to_chat(src, "There's no new DNA to absorb from the air.")
+ to_chat(src, span_notice("There's no new DNA to absorb from the air."))
return
var/S = tgui_input_list(src, "Select a DNA to absorb:", "Absorb DNA", names)
@@ -75,6 +75,6 @@ var/list/datum/dna/hivemind_bank = list()
changeling.chem_charges -= 20
absorbDNA(chosen_dna)
- to_chat(src, "We absorb the DNA of [S] from the air.")
+ to_chat(src, span_notice("We absorb the DNA of [S] from the air."))
feedback_add_details("changeling_powers","HD")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/lesser_form.dm b/code/game/gamemodes/changeling/powers/lesser_form.dm
index 447480f0c7..9bac29f797 100644
--- a/code/game/gamemodes/changeling/powers/lesser_form.dm
+++ b/code/game/gamemodes/changeling/powers/lesser_form.dm
@@ -13,20 +13,20 @@
if(!changeling) return
if(src.has_brain_worms())
- to_chat(src, "We cannot perform this ability at the present time!")
+ to_chat(src, span_warning("We cannot perform this ability at the present time!"))
return
var/mob/living/carbon/human/H = src
if(!istype(H) || !H.species.primitive_form)
- to_chat(src, "We cannot perform this ability in this form!")
+ to_chat(src, span_warning("We cannot perform this ability in this form!"))
return
changeling.chem_charges--
H.remove_changeling_powers()
- H.visible_message("[H] transforms!")
+ H.visible_message(span_warning("[H] transforms!"))
changeling.geneticdamage = 30
- to_chat(H, "Our genes cry out!")
+ to_chat(H, span_warning("Our genes cry out!"))
var/list/implants = list() //Try to preserve implants.
for(var/obj/item/implant/W in H)
implants += W
@@ -57,7 +57,7 @@
changeling.chem_charges--
C.remove_changeling_powers()
- C.visible_message("[C] transforms!")
+ C.visible_message(span_warning("[C] transforms!"))
C.dna = chosen_dna.Clone()
var/list/implants = list()
@@ -111,4 +111,4 @@
feedback_add_details("changeling_powers","LFT")
qdel(C)
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/mimic_voice.dm b/code/game/gamemodes/changeling/powers/mimic_voice.dm
index be4a055dc1..b8a18ac6fc 100644
--- a/code/game/gamemodes/changeling/powers/mimic_voice.dm
+++ b/code/game/gamemodes/changeling/powers/mimic_voice.dm
@@ -19,7 +19,7 @@
if(changeling.mimicing)
changeling.mimicing = ""
- to_chat(src, "We return our vocal glands to their original location.")
+ to_chat(src, span_notice("We return our vocal glands to their original location."))
return
var/mimic_voice = sanitize(tgui_input_text(usr, "Enter a name to mimic.", "Mimic Voice", null, MAX_NAME_LEN), MAX_NAME_LEN)
@@ -28,8 +28,8 @@
changeling.mimicing = mimic_voice
- to_chat(src, "We shape our glands to take the voice of [mimic_voice], this will stop us from regenerating chemicals while active.")
- to_chat(src, "Use this power again to return to our original voice and reproduce chemicals again.")
+ to_chat(src, span_notice("We shape our glands to take the voice of [mimic_voice], this will stop us from regenerating chemicals while active."))
+ to_chat(src, span_notice("Use this power again to return to our original voice and reproduce chemicals again."))
feedback_add_details("changeling_powers","MV")
@@ -38,4 +38,4 @@
src.mind.changeling.chem_charges = max(src.mind.changeling.chem_charges - 1, 0)
sleep(40)
if(src && src.mind && src.mind.changeling)
- src.mind.changeling.mimicing = ""
\ No newline at end of file
+ src.mind.changeling.mimicing = ""
diff --git a/code/game/gamemodes/changeling/powers/panacea.dm b/code/game/gamemodes/changeling/powers/panacea.dm
index 30679b6ef5..19a043669a 100644
--- a/code/game/gamemodes/changeling/powers/panacea.dm
+++ b/code/game/gamemodes/changeling/powers/panacea.dm
@@ -18,7 +18,7 @@
return 0
src.mind.changeling.chem_charges -= 20
- to_chat(src, "We cleanse impurities from our form.")
+ to_chat(src, span_notice("We cleanse impurities from our form."))
var/mob/living/carbon/human/C = src
@@ -32,7 +32,7 @@
var/heal_amount = 5
if(src.mind.changeling.recursive_enhancement)
heal_amount = heal_amount * 2
- to_chat(src, "We will heal much faster.")
+ to_chat(src, span_notice("We will heal much faster."))
for(var/i = 0, i<10,i++)
if(C)
@@ -52,4 +52,4 @@
G.germ_level = min(0, G.germ_level - germ_heal)
feedback_add_details("changeling_powers","AP")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/para_sting.dm b/code/game/gamemodes/changeling/powers/para_sting.dm
index c4d04dd7de..2b2cf636ed 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)")
- to_chat(T, "Your muscles begin to painfully tighten.")
+ to_chat(T, span_danger("Your muscles begin to painfully tighten."))
T.Weaken(20)
feedback_add_details("changeling_powers","PS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/rapid_regen.dm b/code/game/gamemodes/changeling/powers/rapid_regen.dm
index 6d1e9ee300..3eb77e4410 100644
--- a/code/game/gamemodes/changeling/powers/rapid_regen.dm
+++ b/code/game/gamemodes/changeling/powers/rapid_regen.dm
@@ -24,7 +24,7 @@
var/healing_amount = 40
if(src.mind.changeling.recursive_enhancement)
healing_amount = C.maxHealth
- to_chat(src, "We completely heal ourselves.")
+ to_chat(src, span_notice("We completely heal ourselves."))
spawn(0)
C.adjustBruteLoss(-healing_amount)
C.adjustFireLoss(-healing_amount)
@@ -47,9 +47,9 @@
playsound(src, 'sound/effects/blobattack.ogg', 30, 1)
var/T = get_turf(src)
new /obj/effect/gibspawner/human(T)
- visible_message("With a sickening squish, [src] reforms their whole body, casting their old parts on the floor!",
- "We reform our body. We are whole once more.",
- "You hear organic matter ripping and tearing!")
+ visible_message(span_warning("With a sickening squish, [src] reforms their whole body, casting their old parts on the floor!"),
+ span_notice("We reform our body. We are whole once more."),
+ span_italics("You hear organic matter ripping and tearing!"))
feedback_add_details("changeling_powers","RR")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/recursive_enhancement.dm b/code/game/gamemodes/changeling/powers/recursive_enhancement.dm
index 77bab9bd99..21ce98bf1c 100644
--- a/code/game/gamemodes/changeling/powers/recursive_enhancement.dm
+++ b/code/game/gamemodes/changeling/powers/recursive_enhancement.dm
@@ -15,10 +15,10 @@
if(!changeling)
return 0
if(src.mind.changeling.recursive_enhancement)
- to_chat(src, "We will no longer empower our abilities.")
+ to_chat(src, span_warning("We will no longer empower our abilities."))
src.mind.changeling.recursive_enhancement = 0
return 0
- to_chat(src, "We empower ourselves. Our abilities will now be extra potent.")
+ to_chat(src, span_notice("We empower ourselves. Our abilities will now be extra potent."))
src.mind.changeling.recursive_enhancement = 1
feedback_add_details("changeling_powers","RE")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/respec.dm b/code/game/gamemodes/changeling/powers/respec.dm
index 935092ff65..371307700e 100644
--- a/code/game/gamemodes/changeling/powers/respec.dm
+++ b/code/game/gamemodes/changeling/powers/respec.dm
@@ -7,7 +7,7 @@
if(!changeling)
return
if(src.mind.changeling.readapts <= 0)
- to_chat(src, "We must first absorb another compatible creature!")
+ to_chat(src, span_warning("We must first absorb another compatible creature!"))
src.mind.changeling.readapts = 0
return
@@ -27,6 +27,6 @@
H.remove_modifiers_of_type(/datum/modifier/endoarmor) //Revert endoarmor too.
src.make_changeling() //And give back our freebies.
- to_chat(src, "We have removed our evolutions from this form, and are now ready to readapt.")
+ to_chat(src, span_notice("We have removed our evolutions from this form, and are now ready to readapt."))
ling_datum.purchased_powers_history.Add("Re-adapt (Reset to [ling_datum.max_geneticpoints])")
diff --git a/code/game/gamemodes/changeling/powers/revive.dm b/code/game/gamemodes/changeling/powers/revive.dm
index 774d5a70ec..ebf53d4a1c 100644
--- a/code/game/gamemodes/changeling/powers/revive.dm
+++ b/code/game/gamemodes/changeling/powers/revive.dm
@@ -9,7 +9,7 @@
return 0
if(changeling.max_geneticpoints < 0) //Absorbed by another ling
- to_chat(src, "You have no genomes, not even your own, and cannot revive.")
+ to_chat(src, span_danger("You have no genomes, not even your own, and cannot revive."))
return 0
if(src.stat == DEAD)
@@ -75,7 +75,7 @@
C.halloss = 0
C.shock_stage = 0 //Pain
- to_chat(C, "We have regenerated.")
+ to_chat(C, span_notice("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/self_respiration.dm b/code/game/gamemodes/changeling/powers/self_respiration.dm
index 5108361669..4b939c8b89 100644
--- a/code/game/gamemodes/changeling/powers/self_respiration.dm
+++ b/code/game/gamemodes/changeling/powers/self_respiration.dm
@@ -23,9 +23,9 @@
return 0
if(C.does_not_breathe == 0)
C.does_not_breathe = 1
- to_chat(src, "We stop breathing, as we no longer need to.")
+ to_chat(src, span_notice("We stop breathing, as we no longer need to."))
return 1
else
C.does_not_breathe = 0
- to_chat(src, "We resume breathing, as we now need to again.")
- return 0
\ No newline at end of file
+ to_chat(src, span_notice("We resume breathing, as we now need to again."))
+ return 0
diff --git a/code/game/gamemodes/changeling/powers/shriek.dm b/code/game/gamemodes/changeling/powers/shriek.dm
index 9fe5fa708e..0d974a6526 100644
--- a/code/game/gamemodes/changeling/powers/shriek.dm
+++ b/code/game/gamemodes/changeling/powers/shriek.dm
@@ -26,21 +26,21 @@
if(!changeling) return 0
if(is_muzzled())
- to_chat(src, "Mmmf mrrfff!")
+ to_chat(src, span_danger("Mmmf mrrfff!"))
return 0
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.silent)
- to_chat(src, "You can't speak!")
+ to_chat(src, span_danger("You can't speak!"))
return 0
if(world.time < (changeling.last_shriek + 10 SECONDS) )
- to_chat(src, "We are still recovering from our last shriek...")
+ to_chat(src, span_warning("We are still recovering from our last shriek..."))
return 0
if(!isturf(loc))
- to_chat(src, "Shrieking here would be a bad idea.")
+ to_chat(src, span_warning("Shrieking here would be a bad idea."))
return 0
src.break_cloak() //No more invisible shrieking
@@ -49,9 +49,9 @@
var/range = 4
if(src.mind.changeling.recursive_enhancement)
range = range * 2
- to_chat(src, "We are extra loud.")
+ to_chat(src, span_notice("We are extra loud."))
- visible_message("[src] appears to shout.")
+ visible_message(span_notice("[src] appears to shout."))
var/list/affected = list()
for(var/mob/living/M in range(range, src))
if(iscarbon(M))
@@ -66,12 +66,12 @@
affected += M
else
if(M != src)
- to_chat(M, "You hear a familiar screech from nearby. It has no effect on you.")
+ to_chat(M, span_notice("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')
- to_chat(M, "Auditory input overloaded. Reinitializing...")
+ to_chat(M, span_notice("Auditory input overloaded. Reinitializing..."))
M.Weaken(rand(5,10))
affected += M
@@ -95,21 +95,21 @@
if(!changeling) return 0
if(is_muzzled())
- to_chat(src, "Mmmf mrrfff!")
+ to_chat(src, span_danger("Mmmf mrrfff!"))
return 0
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.silent)
- to_chat(src, "You can't speak!")
+ to_chat(src, span_danger("You can't speak!"))
return 0
if(world.time < (changeling.last_shriek + 10 SECONDS) )
- to_chat(src, "We are still recovering from our last shriek...")
+ to_chat(src, span_warning("We are still recovering from our last shriek..."))
return 0
if(!isturf(loc))
- to_chat(src, "Shrieking here would be a bad idea.")
+ to_chat(src, span_warning("Shrieking here would be a bad idea."))
return 0
src.break_cloak() //No more invisible shrieking
@@ -125,10 +125,10 @@
range_med = range_med * 2
range_light = range_light * 2
range_long = range_long * 2
- to_chat(src, "We are extra loud.")
+ to_chat(src, span_notice("We are extra loud."))
src.mind.changeling.recursive_enhancement = 0
- visible_message("[src] appears to shout.")
+ visible_message(span_notice("[src] appears to shout."))
add_attack_logs(src,null,"Use dissonant shriek")
diff --git a/code/game/gamemodes/changeling/powers/silence_sting.dm b/code/game/gamemodes/changeling/powers/silence_sting.dm
index 16d24c878f..c94713b9b1 100644
--- a/code/game/gamemodes/changeling/powers/silence_sting.dm
+++ b/code/game/gamemodes/changeling/powers/silence_sting.dm
@@ -19,7 +19,7 @@
var/duration = 30
if(src.mind.changeling.recursive_enhancement)
duration = duration + 10
- to_chat(src, "They will be unable to cry out in fear for a little longer.")
+ to_chat(src, span_notice("They will be unable to cry out in fear for a little longer."))
T.silent += duration
feedback_add_details("changeling_powers","SS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/transform.dm b/code/game/gamemodes/changeling/powers/transform.dm
index 535efbcac1..e94e9393ad 100644
--- a/code/game/gamemodes/changeling/powers/transform.dm
+++ b/code/game/gamemodes/changeling/powers/transform.dm
@@ -14,7 +14,7 @@
if(!changeling) return
if(!isturf(loc))
- to_chat(src, "Transforming here would be a bad idea.")
+ to_chat(src, span_warning("Transforming here would be a bad idea."))
return 0
var/list/names = list()
@@ -29,7 +29,7 @@
return
changeling.chem_charges -= 5
- src.visible_message("[src] transforms!")
+ src.visible_message(span_warning("[src] transforms!"))
changeling.geneticdamage = 5
if(ishuman(src))
diff --git a/code/game/gamemodes/changeling/powers/transform_sting.dm b/code/game/gamemodes/changeling/powers/transform_sting.dm
index f831f9eb17..ced7d1c3c6 100644
--- a/code/game/gamemodes/changeling/powers/transform_sting.dm
+++ b/code/game/gamemodes/changeling/powers/transform_sting.dm
@@ -32,13 +32,13 @@
if(!T)
return 0
if((HUSK in T.mutations) || (!ishuman(T) && !issmall(T)))
- to_chat(src, "Our sting appears ineffective against its DNA.")
+ to_chat(src, span_warning("Our sting appears ineffective against its DNA."))
return 0
add_attack_logs(src,T,"Transformation sting (changeling)")
- T.visible_message("[T] transforms!")
+ T.visible_message(span_warning("[T] transforms!"))
T.dna = chosen_dna.Clone()
T.real_name = chosen_dna.real_name
T.UpdateAppearance()
domutcheck(T, null)
feedback_add_details("changeling_powers","TS")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/unfat_sting.dm b/code/game/gamemodes/changeling/powers/unfat_sting.dm
index 34ef7b7032..57321859f2 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)")
- to_chat(T, "you feel a small prick as stomach churns violently and you become to feel skinnier.")
+ to_chat(T, span_danger("you feel a small prick as stomach churns violently and you become to feel skinnier."))
T.adjust_nutrition(-100)
feedback_add_details("changeling_powers","US")
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/gamemodes/changeling/powers/visible_camouflage.dm b/code/game/gamemodes/changeling/powers/visible_camouflage.dm
index 747deb9f99..e83b61bb5c 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
- to_chat(H, "We vanish from sight, and will remain hidden, so long as we move carefully.")
+ to_chat(H, span_notice("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)
@@ -38,7 +38,7 @@
var/must_walk = TRUE
if(src.mind.changeling.recursive_enhancement)
must_walk = FALSE
- to_chat(src, "We may move at our normal speed while hidden.")
+ to_chat(src, span_notice("We may move at our normal speed while hidden."))
if(must_walk)
H.set_m_intent("walk")
@@ -63,10 +63,10 @@
H.invisibility = initial(invisibility)
- visible_message("[src] suddenly fades in, seemingly from nowhere!",
- "We revert our camouflage, revealing ourselves.")
+ visible_message(span_warning("[src] suddenly fades in, seemingly from nowhere!"),
+ span_notice("We revert our camouflage, revealing ourselves."))
H.set_m_intent("run")
H.mind.changeling.cloaked = 0
H.mind.changeling.chem_recharge_rate = old_regen_rate
- animate(src,alpha = 10, alpha = 255, time = 10)
\ No newline at end of file
+ animate(src,alpha = 10, alpha = 255, time = 10)
diff --git a/code/game/gamemodes/cult/construct_spells.dm b/code/game/gamemodes/cult/construct_spells.dm
index 6340f90889..35523fa9a0 100644
--- a/code/game/gamemodes/cult/construct_spells.dm
+++ b/code/game/gamemodes/cult/construct_spells.dm
@@ -274,9 +274,9 @@
M.forceMove(destination)
if(M != user)
prey = 1
- to_chat(user, "You warp back to Nar-Sie[prey ? " along with your prey":""].")
+ to_chat(user, span_sinister("You warp back to Nar-Sie[prey ? " along with your prey":""]."))
else
- to_chat(user, "...something's wrong!") //There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world.
+ to_chat(user, span_danger("...something's wrong!")) //There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world.
*/
/spell/targeted/fortify
@@ -548,7 +548,7 @@
var/turf/T = get_turf(hit_atom)
if(T)
new spawner_type(T)
- to_chat(user, "You shift \the [src] onto \the [T].")
+ to_chat(user, span_cult("You shift \the [src] onto \the [T]."))
log_and_message_admins("has casted [src] at [T.x],[T.y],[T.z].")
qdel(src)
@@ -615,7 +615,7 @@
if(!iscultist(L) && !istype(L, /mob/living/simple_mob/construct))
L.add_modifier(/datum/modifier/agonize, 2 SECONDS)
if(L.isSynthetic())
- to_chat(L, "Your chassis warps as the [src] pulses!")
+ to_chat(L, span_cult("Your chassis warps as the [src] pulses!"))
L.adjustFireLoss(4)
//Artificer Heal
@@ -655,7 +655,7 @@
attack_message = pick(S.attacktext)
if(isliving(hit_atom))
var/mob/living/L = hit_atom
- L.visible_message("\The [user] [attack_message] \the [L], sending them flying!")
+ L.visible_message(span_danger("\The [user] [attack_message] \the [L], sending them flying!"))
playsound(src, "punch", 50, 1)
L.Weaken(2)
L.adjustBruteLoss(rand(30, 50))
@@ -663,12 +663,12 @@
L.throw_at(get_edge_target_turf(L, throwdir), 3, 1, src)
if(istype(hit_atom, /turf/simulated/wall))
var/turf/simulated/wall/W = hit_atom
- user.visible_message("\The [user] rears its fist, preparing to hit \the [W]!")
+ user.visible_message(span_warning("\The [user] rears its fist, preparing to hit \the [W]!"))
var/windup = cooldown
if(W.reinf_material)
windup = cooldown * 2
if(do_after(user, windup))
- W.visible_message("\The [user] [attack_message] \the [W], obliterating it!")
+ W.visible_message(span_danger("\The [user] [attack_message] \the [W], obliterating it!"))
W.dismantle_wall(1)
else
user.visible_message("\The [user] lowers its fist.")
diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm
index d9974cd0ed..df277b318a 100644
--- a/code/game/gamemodes/cult/cult_items.dm
+++ b/code/game/gamemodes/cult/cult_items.dm
@@ -24,14 +24,14 @@
if(ishuman(user))
var/mob/living/carbon/human/H = user
var/obj/item/organ/external/affecting = H.get_organ(zone)
- to_chat(user, "An inexplicable force rips through your [affecting.name], tearing the sword from your grasp!")
+ to_chat(user, span_danger("An inexplicable force rips through your [affecting.name], tearing the sword from your grasp!"))
//random amount of damage between half of the blade's force and the full force of the blade.
user.apply_damage(rand(force/2, force), BRUTE, zone, 0, sharp = TRUE, edge = TRUE)
user.Weaken(5)
else if(!istype(user, /mob/living/simple_mob/construct))
- to_chat(user, "An inexplicable force rips through you, tearing the sword from your grasp!")
+ to_chat(user, span_danger("An inexplicable force rips through you, tearing the sword from your grasp!"))
else
- to_chat(user, "The blade hisses, forcing itself from your manipulators. \The [src] will only allow mortals to wield it against foes, not kin.")
+ to_chat(user, span_critical("The blade hisses, forcing itself from your manipulators. \The [src] will only allow mortals to wield it against foes, not kin."))
user.drop_from_inventory(src, src.loc)
throw_at(get_edge_target_turf(src, pick(alldirs)), rand(1,3), throw_speed)
@@ -43,10 +43,10 @@
/obj/item/melee/cultblade/pickup(mob/living/user as mob)
if(!iscultist(user) && !istype(user, /mob/living/simple_mob/construct))
- to_chat(user, "An overwhelming feeling of dread comes over you as you pick up the cultist's sword. It would be wise to be rid of this blade quickly.")
+ to_chat(user, span_warning("An overwhelming feeling of dread comes over you as you pick up the cultist's sword. It would be wise to be rid of this blade quickly."))
user.make_dizzy(120)
if(istype(user, /mob/living/simple_mob/construct))
- to_chat(user, "\The [src] hisses, as it is discontent with your acquisition of it. It would be wise to return it to a worthy mortal quickly.")
+ to_chat(user, span_warning("\The [src] hisses, as it is discontent with your acquisition of it. It would be wise to return it to a worthy mortal quickly."))
/obj/item/clothing/head/culthood
name = "cult hood"
diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm
index 9a9540784e..73429d697b 100644
--- a/code/game/gamemodes/cult/cult_structures.dm
+++ b/code/game/gamemodes/cult/cult_structures.dm
@@ -55,7 +55,7 @@
/obj/structure/cult/pylon/proc/pylonhit(var/damage)
if(!isbroken)
if(prob(1+ damage * 5))
- visible_message("[shatter_message]")
+ visible_message(span_danger("[shatter_message]"))
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
isbroken = 1
@@ -67,8 +67,8 @@
if(!isbroken)
if(prob(1+ damage * 5))
user.visible_message(
- "[user] smashed \the [src]!",
- "You hit \the [src], and its crystal breaks apart!",
+ span_danger("[user] smashed \the [src]!"),
+ span_warning("You hit \the [src], and its crystal breaks apart!"),
"You hear a tinkle of crystal shards."
)
STOP_PROCESSING(SSobj, src)
@@ -170,4 +170,4 @@
var/mob/living/M = A
- to_chat(M, "Walking into \the [src] is probably a bad idea, you think.")
+ to_chat(M, span_danger("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 9c5eb4458f..ad9394fe35 100644
--- a/code/game/gamemodes/cult/cultify/mob.dm
+++ b/code/game/gamemodes/cult/cultify/mob.dm
@@ -12,13 +12,13 @@
icon_state = "ghost-narsie"
overlays = 0
invisibility = 0
- to_chat(src, "Even as a non-corporal being, you can feel Nar-Sie's presence altering you. You are now visible to everyone.")
+ to_chat(src, span_sinister("Even as a non-corporal being, you can feel Nar-Sie's presence altering you. You are now visible to everyone."))
/mob/living/cultify()
if(iscultist(src) && client)
var/mob/living/simple_mob/construct/harvester/C = new(get_turf(src))
mind.transfer_to(C)
- 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.")
+ to_chat(C, span_sinister("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
- to_chat(G, "You feel relieved as what's left of your soul finally escapes its prison of flesh.")
+ to_chat(G, span_sinister("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 d558a8bfbb..e5d549cec5 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)
- to_chat(user, "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.")
+ to_chat(user, span_sinister("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 5a8dc60d3f..5ec7056a07 100644
--- a/code/game/gamemodes/cult/narsie.dm
+++ b/code/game/gamemodes/cult/narsie.dm
@@ -79,7 +79,7 @@ var/global/list/narsie_list = list()
if(M.status_flags & GODMODE)
continue
if(!iscultist(M))
- to_chat(M, " You feel your sanity crumble away in an instant as you gaze upon [src.name]...")
+ to_chat(M, span_danger(" 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)
- to_chat(target, "[capname] HAS LOST INTEREST IN YOU.")
+ to_chat(target, span_notice("[capname] HAS LOST INTEREST IN YOU."))
target = food
if (ishuman(target))
- to_chat(target, "[capname] HUNGERS FOR YOUR SOUL.")
+ to_chat(target, span_danger("[capname] HUNGERS FOR YOUR SOUL."))
else
- to_chat(target, "[capname] HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL.")
+ to_chat(target, span_danger("[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 6f35c43641..597813550b 100644
--- a/code/game/gamemodes/cult/ritual.dm
+++ b/code/game/gamemodes/cult/ritual.dm
@@ -95,7 +95,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
qdel(src)
return
else if(istype(I, /obj/item/nullrod))
- to_chat(user, "You disrupt the vile magic with the deadening field of the null rod!")
+ to_chat(user, span_notice("You disrupt the vile magic with the deadening field of the null rod!"))
qdel(src)
return
return
@@ -170,7 +170,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
else
usr.whisper(pick("Hakkrutju gopoenjim.", "Nherasai pivroiashan.", "Firjji prhiv mazenhor.", "Tanah eh wakantahe.", "Obliyae na oraie.", "Miyf hon vnor'c.", "Wakabai hij fen juswix."))
for (var/mob/V in viewers(src))
- V.show_message("The markings pulse with a small burst of light, then fall dark.", 3, "You hear a faint fizzle.", 2)
+ V.show_message(span_warning("The markings pulse with a small burst of light, then fall dark."), 3, span_warning("You hear a faint fizzle."), 2)
return
/obj/effect/rune/proc/check_icon()
@@ -310,8 +310,8 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
return
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)
- to_chat(M, "You feel searing heat inside!")
+ O.show_message(span_warning("\The [user] beats \the [M] with \the [src]!"), 1)
+ to_chat(M, span_danger("You feel searing heat inside!"))
/obj/item/book/tome/attack_self(mob/living/user as mob)
@@ -326,7 +326,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))
- to_chat(user, "You do not have enough space to write a proper rune.")
+ to_chat(user, span_warning("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
@@ -391,7 +391,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
if (!chosen_rune)
return
if (chosen_rune == "none")
- to_chat(user, "You decide against scribing a rune, perhaps you should take this time to study your notes.")
+ to_chat(user, span_notice("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
@@ -402,8 +402,8 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
return
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)
- 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.")
+ V.show_message(span_danger("\The [user] slices open a finger and begins to chant and paint symbols on the floor."), 3, span_danger("You hear chanting."), 2)
+ to_chat(user, span_danger("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)
@@ -412,7 +412,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)
- to_chat(user, "You finish drawing the arcane markings of the Geometer.")
+ to_chat(user, span_notice("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]]
@@ -446,7 +446,7 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
if(user)
var/r
if (!istype(user.loc,/turf))
- to_chat(user, "You do not have enough space to write a proper rune.")
+ to_chat(user, span_notice("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(usr, "Choose a rune to scribe", "Rune Scribing") in runes // Remains input() for extreme blocking
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 50aec80c32..a3f771e5f7 100644
--- a/code/game/gamemodes/cult/runes.dm
+++ b/code/game/gamemodes/cult/runes.dm
@@ -25,7 +25,7 @@ var/list/sacrificed = list()
allrunesloc.len = index
allrunesloc[index] = R.loc
if(index >= 5)
- to_chat(user, "You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric.")
+ to_chat(user, span_danger("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)
@@ -34,9 +34,9 @@ var/list/sacrificed = list()
user.say("Sas[pick("'","`")]so c'arta forbici!")//Only you can stop auto-muting
else
user.whisper("Sas[pick("'","`")]so c'arta forbici!")
- user.visible_message("[user] disappears in a flash of red light!", \
- "You feel as your body gets dragged through the dimension of Nar-Sie!", \
- "You hear a sickening crunch and sloshing of viscera.")
+ user.visible_message(span_danger("[user] disappears in a flash of red light!"), \
+ span_danger("You feel as your body gets dragged through the dimension of Nar-Sie!"), \
+ span_danger("You hear a sickening crunch and sloshing of viscera."))
user.loc = allrunesloc[rand(1,index)]
return
if(istype(src,/obj/effect/rune))
@@ -58,7 +58,7 @@ var/list/sacrificed = list()
IP = R
runecount++
if(runecount >= 2)
- to_chat(user, "You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric.")
+ to_chat(user, span_danger("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)
@@ -67,9 +67,9 @@ var/list/sacrificed = list()
culcount++
if(culcount>=3)
user.say("Sas[pick("'","`")]so c'arta forbici tarem!")
- user.visible_message("You feel air moving from the rune - like as it was swapped with somewhere else.", \
- "You feel air moving from the rune - like as it was swapped with somewhere else.", \
- "You smell ozone.")
+ user.visible_message(span_warning("You feel air moving from the rune - like as it was swapped with somewhere else."), \
+ span_warning("You feel air moving from the rune - like as it was swapped with somewhere else."), \
+ span_warning("You smell ozone."))
for(var/obj/O in src.loc)
if(!O.anchored)
O.loc = IP.loc
@@ -87,9 +87,9 @@ var/list/sacrificed = list()
usr.say("N[pick("'","`")]ath reth sh'yro eth d'raggathnor!")
else
usr.whisper("N[pick("'","`")]ath reth sh'yro eth d'raggathnor!")
- usr.visible_message("Rune disappears with a flash of red light, and in its place now a book lies.", \
- "You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a book.", \
- "You hear a pop and smell ozone.")
+ usr.visible_message(span_warning("Rune disappears with a flash of red light, and in its place now a book lies."), \
+ span_warning("You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a book."), \
+ span_warning("You hear a pop and smell ozone."))
if(istype(src,/obj/effect/rune))
new /obj/item/book/tome(src.loc)
else
@@ -113,7 +113,7 @@ var/list/sacrificed = list()
if(!converting.len)
fizzle()
else
- to_chat(usr, "You sense that the power of the dark one is already working away at them.")
+ to_chat(usr, span_danger("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!")
@@ -134,14 +134,14 @@ var/list/sacrificed = list()
add_attack_logs(attacker,target,"Convert rune")
switch(target.getFireLoss())
if(0 to 25)
- to_chat(target, "Your blood boils as you force yourself to resist the corruption invading every corner of your mind.")
+ to_chat(target, span_cult("Your blood boils as you force yourself to resist the corruption invading every corner of your mind."))
if(25 to 45)
- to_chat(target, "Your blood boils and your body burns as the corruption further forces itself into your body and mind.")
+ to_chat(target, span_cult("Your blood boils and your body burns as the corruption further forces itself into your body and mind."))
if(45 to 75)
- 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.")
+ to_chat(target, span_cult("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)
- 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.")
+ to_chat(target, span_cult("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...
@@ -150,7 +150,7 @@ var/list/sacrificed = list()
target.apply_effect(10, STUTTER)
target.adjustBrainLoss(1)
if(100 to INFINITY)
- to_chat(target, "Your entire broken soul and being is engulfed in corruption and flames as your mind shatters away into nothing.")
+ to_chat(target, span_cult("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)
@@ -158,18 +158,18 @@ var/list/sacrificed = list()
initial_message = 1
if (!target.can_feel_pain())
- target.visible_message("The markings below \the [target] glow a bloody red.")
+ target.visible_message(span_warning("The markings below \the [target] glow a bloody red."))
else
var/datum/gender/TT = gender_datums[target.get_visible_gender()]
- target.visible_message("[target] writhes in pain as the markings below [TT.him] glow a bloody red.", "AAAAAAHHHH!", "You hear an anguished scream.")
+ target.visible_message(span_warning("[target] writhes in pain as the markings below [TT.him] glow a bloody red."), span_danger("AAAAAAHHHH!"), span_warning("You hear an anguished scream."))
if(!waiting_for_input[target]) //so we don't spam them with dialogs if they hesitate
waiting_for_input[target] = 1
if(!cult.can_become_antag(target.mind) || jobban_isbanned(target, JOB_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.
- 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.")
+ to_chat(target, span_cult("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, span_danger("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 = tgui_alert(target,"Do you want to join the cult?","Submit to Nar'Sie",list("Resist","Submit"))
@@ -240,22 +240,22 @@ var/list/sacrificed = list()
if(D.stat!=2)
add_attack_logs(usr,D,"Blood drain rune")
var/bdrain = rand(1,25)
- to_chat(D, "You feel weakened.")
+ to_chat(D, span_warning("You feel weakened."))
D.take_overall_damage(bdrain, 0)
drain += bdrain
if(!drain)
return fizzle()
usr.say ("Yu[pick("'","`")]gular faras desdae. Havas mithum javara. Umathar uf'kal thenar!")
- usr.visible_message("Blood flows from the rune into [usr]!", \
- "The blood starts flowing from the rune and into your frail mortal body. You feel... empowered.", \
- "You hear a liquid flowing.")
+ usr.visible_message(span_danger("Blood flows from the rune into [usr]!"), \
+ span_danger("The blood starts flowing from the rune and into your frail mortal body. You feel... empowered."), \
+ span_warning("You hear a liquid flowing."))
var/mob/living/user = usr
if(user.bhunger)
user.bhunger = max(user.bhunger-2*drain,0)
if(drain>=50)
- user.visible_message("[user]'s eyes give off eerie red glow!", \
- "...but it wasn't nearly enough. You crave, crave for more. The hunger consumes you from within.", \
- "You hear a heartbeat.")
+ user.visible_message(span_danger("[user]'s eyes give off eerie red glow!"), \
+ span_danger("...but it wasn't nearly enough. You crave, crave for more. The hunger consumes you from within."), \
+ span_warning("You hear a heartbeat."))
user.bhunger += drain
src = user
spawn()
@@ -296,16 +296,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.")
- to_chat(usr, "The world beyond fades from your vision.")
+ to_chat(usr, span_danger("The world beyond fades from your vision."))
usr.see_invisible = SEE_INVISIBLE_LIVING
usr.seer = 0
else if(usr.see_invisible!=SEE_INVISIBLE_LIVING)
- to_chat(usr, "The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision.")
+ to_chat(usr, span_warning("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!")
- to_chat(usr, "The world beyond opens to your eyes.")
+ to_chat(usr, span_warning("The world beyond opens to your eyes."))
usr.see_invisible = SEE_INVISIBLE_CULT
usr.seer = 1
return
@@ -328,7 +328,7 @@ var/list/sacrificed = list()
if(!corpse_to_raise)
if(is_sacrifice_target)
- to_chat(usr, "The Geometer of blood wants this mortal for himself.")
+ to_chat(usr, span_warning("The Geometer of blood wants this mortal for himself."))
return fizzle()
@@ -346,13 +346,13 @@ var/list/sacrificed = list()
if(!body_to_sacrifice)
if (is_sacrifice_target)
- to_chat(usr, "The Geometer of Blood wants that corpse for himself.")
+ to_chat(usr, span_warning("The Geometer of Blood wants that corpse for himself."))
else
- to_chat(usr, "The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used.")
+ to_chat(usr, span_warning("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, JOB_CULTIST))
- to_chat(usr, "The Geometer of Blood refuses to touch this one.")
+ to_chat(usr, span_warning("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)
@@ -373,16 +373,16 @@ var/list/sacrificed = list()
corpse_to_raise.revive()
usr.say("Pasnar val'keriam usinar. Savrae ines amutan. Yam'toth remium il'tarat!")
- corpse_to_raise.visible_message("[corpse_to_raise]'s eyes glow with a faint red as [TU.he] stand[TU.s] up, slowly starting to breathe again.", \
- "Life... I'm alive again...", \
- "You hear a faint, slightly familiar whisper.")
- body_to_sacrifice.visible_message("[body_to_sacrifice] is torn apart, a black smoke swiftly dissipating from [TT.his] remains!", \
- "You feel as your blood boils, tearing you apart.", \
- "You hear a thousand voices, all crying in pain.")
+ corpse_to_raise.visible_message(span_warning("[corpse_to_raise]'s eyes glow with a faint red as [TU.he] stand[TU.s] up, slowly starting to breathe again."), \
+ span_warning("Life... I'm alive again..."), \
+ span_warning("You hear a faint, slightly familiar whisper."))
+ body_to_sacrifice.visible_message(span_danger("[body_to_sacrifice] is torn apart, a black smoke swiftly dissipating from [TT.his] remains!"), \
+ span_danger("You feel as your blood boils, tearing you apart."), \
+ span_danger("You hear a thousand voices, all crying in pain."))
body_to_sacrifice.gib()
- 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.")
+ to_chat(corpse_to_raise, span_cult("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, span_cult("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
@@ -402,14 +402,14 @@ var/list/sacrificed = list()
if(istype(src,/obj/effect/rune))
usr.say("Kla[pick("'","`")]atu barada nikt'o!")
for (var/mob/V in viewers(src))
- V.show_message("The rune turns into gray dust, veiling the surrounding runes.", 3)
+ V.show_message(span_warning("The rune turns into gray dust, veiling the surrounding runes."), 3)
qdel(src)
else
usr.whisper("Kla[pick("'","`")]atu barada nikt'o!")
- to_chat(usr, "Your talisman turns into gray dust, veiling the surrounding runes.")
+ to_chat(usr, span_warning("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)
+ V.show_message(span_warning("Dust emanates from [usr]'s hands for a moment."), 3)
return
if(istype(src,/obj/effect/rune))
@@ -425,9 +425,9 @@ var/list/sacrificed = list()
var/mob/living/carbon/human/L = usr
var/datum/gender/TU = gender_datums[L.get_visible_gender()]
usr.say("Fwe[pick("'","`")]sh mah erl nyag r'ya!")
- usr.visible_message("[usr]'s eyes glow blue as [TU.he] freeze[TU.s] in place, absolutely motionless.", \
- "The shadow that is your spirit separates itself from your body. You are now in the realm beyond. While this is a great sight, being here strains your mind and body. Hurry...", \
- "You hear only complete silence for a moment.")
+ usr.visible_message(span_warning("[usr]'s eyes glow blue as [TU.he] freeze[TU.s] in place, absolutely motionless."), \
+ span_warning("The shadow that is your spirit separates itself from your body. You are now in the realm beyond. While this is a great sight, being here strains your mind and body. Hurry..."), \
+ span_warning("You hear only complete silence for a moment."))
announce_ghost_joinleave(usr.ghostize(1), 1, "You feel that they had to use some [pick("dark", "black", "blood", "forgotten", "forbidden")] magic to [pick("invade","disturb","disrupt","infest","taint","spoil","blight")] this place!")
L.ajourn = 1
while(L)
@@ -464,9 +464,9 @@ var/list/sacrificed = list()
usr.say("Gal'h'rfikk harfrandid mud[pick("'","`")]gib!")
var/mob/living/carbon/human/dummy/D = new(this_rune.loc)
- usr.visible_message("A shape forms in the center of the rune. A shape of... a man.", \
- "A shape forms in the center of the rune. A shape of... a man.", \
- "You hear liquid flowing.")
+ usr.visible_message(span_warning("A shape forms in the center of the rune. A shape of... a man."), \
+ span_warning("A shape forms in the center of the rune. A shape of... a man."), \
+ span_warning("You hear liquid flowing."))
D.real_name = "Unknown"
var/chose_name = 0
for(var/obj/item/paper/P in this_rune.loc)
@@ -495,9 +495,9 @@ var/list/sacrificed = list()
user.take_organ_damage(1, 0)
sleep(30)
if(D)
- D.visible_message("[D] slowly dissipates into dust and bones.", \
- "You feel pain, as bonds formed between your soul and this homunculus break.", \
- "You hear faint rustle.")
+ D.visible_message(span_danger("[D] slowly dissipates into dust and bones."), \
+ span_danger("You feel pain, as bonds formed between your soul and this homunculus break."), \
+ span_warning("You hear faint rustle."))
D.dust()
return
@@ -518,7 +518,7 @@ var/list/sacrificed = list()
unsuitable_newtalisman = 1
if (!newtalisman)
if (unsuitable_newtalisman)
- to_chat(usr, "The blank is tainted. It is unsuitable.")
+ to_chat(usr, span_warning("The blank is tainted. It is unsuitable."))
return fizzle()
var/obj/effect/rune/imbued_from
@@ -579,7 +579,7 @@ var/list/sacrificed = list()
break
if (imbued_from)
for (var/mob/V in viewers(src))
- V.show_message("The runes turn into dust, which then forms into an arcane image on the paper.", 3)
+ V.show_message(span_warning("The runes turn into dust, which then forms into an arcane image on the paper."), 3)
usr.say("H'drak v[pick("'","`")]loso, mir'kanas verbot!")
qdel(imbued_from)
qdel(newtalisman)
@@ -595,9 +595,9 @@ var/list/sacrificed = list()
user.say("Uhrast ka'hfa heldsagen ver[pick("'","`")]lot!")
user.take_overall_damage(200, 0)
runedec+=10
- user.visible_message("\The [user] keels over dead, [TU.his] blood glowing blue as it escapes [TU.his] body and dissipates into thin air.", \
- "In the last moment of your humble life, you feel an immense pain as fabric of reality mends... with your blood.", \
- "You hear faint rustle.")
+ user.visible_message(span_danger("\The [user] keels over dead, [TU.his] blood glowing blue as it escapes [TU.his] body and dissipates into thin air."), \
+ span_danger("In the last moment of your humble life, you feel an immense pain as fabric of reality mends... with your blood."), \
+ span_warning("You hear faint rustle."))
for(,user.stat==2)
sleep(600)
if (!user)
@@ -628,9 +628,9 @@ var/list/sacrificed = list()
log_and_message_admins("used a communicate rune to say '[input]'")
for(var/datum/mind/H in cult.current_antagonists)
if (H.current)
- to_chat(H.current, "[input]")
+ to_chat(H.current, span_cult("[input]"))
for(var/mob/observer/dead/O in player_list)
- to_chat(O, "[input]")
+ to_chat(O, span_cult("[input]"))
qdel(src)
return 1
@@ -674,44 +674,44 @@ var/list/sacrificed = list()
H.dust()//To prevent the MMI from remaining
else
H.gib()
- to_chat(usr, "The Geometer of Blood accepts this sacrifice, your objective is now complete.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice, your objective is now complete."))
else
- to_chat(usr, "Your target's earthly bonds are too strong. You need more cultists to succeed in this ritual.")
+ to_chat(usr, span_warning("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)
- to_chat(usr, "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, this soul was not enough to gain His favor.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("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)
- to_chat(usr, "The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this [worth ? "exotic " : ""]sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, a mere dead body is not enough to satisfy Him.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("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)
- to_chat(usr, "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.")
+ to_chat(usr, span_warning("The victim is still alive, you will need more cultists chanting for the sacrifice to succeed."))
else
if(prob(40))
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, a mere dead body is not enough to satisfy Him.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("However, a mere dead body is not enough to satisfy Him."))
if(isrobot(H))
H.dust()//To prevent the MMI from remaining
else
@@ -720,36 +720,36 @@ var/list/sacrificed = list()
if(cultsinrange.len >= 3)
if(H.stat !=2)
if(prob(80))
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, this soul was not enough to gain His favor.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("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))
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, a mere dead body is not enough to satisfy Him.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("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)
- to_chat(usr, "The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.")
+ to_chat(usr, span_warning("The victim is still alive, you will need more cultists chanting for the sacrifice to succeed."))
else
if(prob(40))
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
cult.grant_runeword(usr)
else
- to_chat(usr, "The Geometer of Blood accepts this sacrifice.")
- to_chat(usr, "However, a mere dead body is not enough to satisfy Him.")
+ to_chat(usr, span_cult("The Geometer of Blood accepts this sacrifice."))
+ to_chat(usr, span_warning("However, a mere dead body is not enough to satisfy Him."))
if(isrobot(H))
H.dust()//To prevent the MMI from remaining
else
@@ -777,20 +777,20 @@ var/list/sacrificed = list()
S=1
if(S)
if(istype(W,/obj/item/nullrod))
- to_chat(usr, "Arcane markings suddenly glow from underneath a thin layer of dust!")
+ to_chat(usr, span_warning("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!")
for (var/mob/V in viewers(src))
- V.show_message("The rune turns into red dust, reveaing the surrounding runes.", 3)
+ V.show_message(span_warning("The rune turns into red dust, reveaing the surrounding runes."), 3)
qdel(src)
return
if(istype(W,/obj/item/paper/talisman))
usr.whisper("Nikt[pick("'","`")]o barada kla'atu!")
- to_chat(usr, "Your talisman turns into red dust, revealing the surrounding runes.")
+ to_chat(usr, span_warning("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)
+ V.show_message(span_warning("Red dust emanates from [usr]'s hands for a moment."), 3)
return
return
if(istype(W,/obj/effect/rune))
@@ -807,9 +807,9 @@ var/list/sacrificed = list()
var/mob/living/user = usr
user.take_organ_damage(2, 0)
if(src.density)
- to_chat(usr, "Your blood flows into the rune, and you feel that the very space over the rune thickens.")
+ to_chat(usr, span_danger("Your blood flows into the rune, and you feel that the very space over the rune thickens."))
else
- to_chat(usr, "Your blood flows into the rune, and you feel as the rune releases its grasp on space.")
+ to_chat(usr, span_danger("Your blood flows into the rune, and you feel as the rune releases its grasp on space."))
return
/////////////////////////////////////////EIGHTTEENTH RUNE
@@ -838,7 +838,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) \
))
- to_chat(user, "The [cultist] is already free.")
+ to_chat(user, span_warning("The [cultist] is already free."))
return
cultist.buckled = null
if (cultist.handcuffed)
@@ -879,7 +879,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()]
- to_chat(user, "You cannot summon \the [cultist], for [TU.his] shackles of blood are strong.")
+ to_chat(user, span_warning("You cannot summon \the [cultist], for [TU.his] shackles of blood are strong."))
return fizzle()
cultist.loc = src.loc
cultist.lying = 1
@@ -894,9 +894,9 @@ var/list/sacrificed = list()
if(users.len <= 4) // You did the minimum, this is going to hurt more and we're going to stun you.
C.apply_effect(rand(3,6), STUN)
C.apply_effect(1, WEAKEN)
- user.visible_message("Rune disappears with a flash of red light, and in its place now a body lies.", \
- "You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a body.", \
- "You hear a pop and smell ozone.")
+ user.visible_message(span_warning("Rune disappears with a flash of red light, and in its place now a body lies."), \
+ span_warning("You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a body."), \
+ span_warning("You hear a pop and smell ozone."))
qdel(src)
return fizzle()
@@ -912,13 +912,13 @@ var/list/sacrificed = list()
if(N)
continue
C.ear_deaf += 50
- C.show_message("The world around you suddenly becomes quiet.", 3)
+ C.show_message(span_warning("The world around you suddenly becomes quiet."), 3)
affected += C
if(prob(1))
C.sdisabilities |= DEAF
if(affected.len)
usr.say("Sti[pick("'","`")] kaliedir!")
- to_chat(usr, "The world becomes quiet as the deafening rune dissipates into fine dust.")
+ to_chat(usr, span_warning("The world becomes quiet as the deafening rune dissipates into fine dust."))
add_attack_logs(usr,affected,"Deafen rune")
qdel(src)
else
@@ -933,15 +933,15 @@ var/list/sacrificed = list()
continue
C.ear_deaf += 30
//talismans is weaker.
- C.show_message("The world around you suddenly becomes quiet.", 3)
+ C.show_message(span_warning("The world around you suddenly becomes quiet."), 3)
affected += C
if(affected.len)
usr.whisper("Sti[pick("'","`")] kaliedir!")
- to_chat(usr, "Your talisman turns into gray dust, deafening everyone around.")
+ to_chat(usr, span_warning("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)))
- V.show_message("Dust flows from [usr]'s hands for a moment, and the world suddenly becomes quiet..", 3)
+ V.show_message(span_warning("Dust flows from [usr]'s hands for a moment, and the world suddenly becomes quiet.."), 3)
return
/obj/effect/rune/proc/blind()
@@ -959,11 +959,11 @@ var/list/sacrificed = list()
C.disabilities |= NEARSIGHTED
if(prob(10))
C.sdisabilities |= BLIND
- C.show_message("Suddenly you see a red flash that blinds you.", 3)
+ C.show_message(span_warning("Suddenly you see a red flash that blinds you."), 3)
affected += C
if(affected.len)
usr.say("Sti[pick("'","`")] kaliesin!")
- to_chat(usr, "The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust.")
+ to_chat(usr, span_warning("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
@@ -980,10 +980,10 @@ var/list/sacrificed = list()
C.Blind(10)
//talismans is weaker.
affected += C
- C.show_message("You feel a sharp pain in your eyes, and the world disappears into darkness..", 3)
+ C.show_message(span_warning("You feel a sharp pain in your eyes, and the world disappears into darkness.."), 3)
if(affected.len)
usr.whisper("Sti[pick("'","`")] kaliesin!")
- to_chat(usr, "Your talisman turns into gray dust, blinding those who not follow the Nar-Sie.")
+ to_chat(usr, span_warning("Your talisman turns into gray dust, blinding those who not follow the Nar-Sie."))
add_attack_logs(usr, affected, "Blindness rune")
return
@@ -1009,7 +1009,7 @@ var/list/sacrificed = list()
if(N)
continue
M.take_overall_damage(51,51)
- to_chat(M, "Your blood boils!")
+ to_chat(M, span_danger("Your blood boils!"))
victims += M
if(prob(5))
spawn(5)
@@ -1040,16 +1040,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)
- to_chat(M, "Aargh it burns!")
+ to_chat(M, span_danger("Aargh it burns!"))
else
- to_chat(M, "Rune suddenly ignites, burning you!")
+ to_chat(M, span_danger("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)
- to_chat(M, "Blood suddenly ignites, burning you!")
+ to_chat(M, span_danger("Blood suddenly ignites, burning you!"))
var/turf/T = get_turf(B)
T.hotspot_expose(700,125)
qdel(B)
@@ -1068,13 +1068,13 @@ var/list/sacrificed = list()
C.stuttering = 1
C.Weaken(1)
C.Stun(1)
- C.show_message("The rune explodes in a bright flash.", 3)
+ C.show_message(span_danger("The rune explodes in a bright flash."), 3)
add_attack_logs(usr,C,"Stun rune")
else if(issilicon(L))
var/mob/living/silicon/S = L
S.Weaken(5)
- S.show_message("BZZZT... The rune has exploded in a bright flash.", 3)
+ S.show_message(span_danger("BZZZT... The rune has exploded in a bright flash."), 3)
add_attack_logs(usr,S,"Stun rune")
qdel(src)
else ///When invoked as talisman, stun and mute the target mob.
@@ -1082,10 +1082,10 @@ var/list/sacrificed = list()
var/obj/item/nullrod/N = locate() in T
if(N)
for(var/mob/O in viewers(T, null))
- O.show_message(text("[] invokes a talisman at [], but they are unaffected!", usr, T), 1)
+ O.show_message(span_warning("[usr] invokes a talisman at [T], but they are unaffected!"), 1)
else
for(var/mob/O in viewers(T, null))
- O.show_message(text("[] invokes a talisman at []", usr, T), 1)
+ O.show_message(span_warning("[usr] invokes a talisman at [T]"), 1)
if(issilicon(T))
T.Weaken(15)
@@ -1108,8 +1108,8 @@ var/list/sacrificed = list()
usr.say("N'ath reth sh'yro eth d[pick("'","`")]raggathnor!")
else
usr.whisper("N'ath reth sh'yro eth d[pick("'","`")]raggathnor!")
- usr.visible_message("The rune disappears with a flash of red light, and a set of armor appears on [usr]...", \
- "You are blinded by the flash of red light! After you're able to see again, you see that you are now wearing a set of armor.")
+ usr.visible_message(span_warning("The rune disappears with a flash of red light, and a set of armor appears on [usr]..."), \
+ span_warning("You are blinded by the flash of red light! After you're able to see again, you see that you are now wearing a set of armor."))
user.equip_to_slot_or_del(new /obj/item/clothing/head/culthood/alt(user), slot_head)
user.equip_to_slot_or_del(new /obj/item/clothing/suit/cultrobes/alt(user), slot_wear_suit)
diff --git a/code/game/gamemodes/cult/soulstone.dm b/code/game/gamemodes/cult/soulstone.dm
index 53ab92731c..5083139f12 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, JOB_CULTIST))
- to_chat(user, "This person's soul is too corrupt and cannot be captured!")
+ to_chat(user, span_warning("This person's soul is too corrupt and cannot be captured!"))
return..()
if(M.has_brain_worms()) //Borer stuff - RR
- to_chat(user, "This being is corrupted by an alien intelligence and cannot be soul trapped.")
+ to_chat(user, span_warning("This being is corrupted by an alien intelligence and cannot be soul trapped."))
return..()
add_attack_logs(user,M,"Soulstone'd with [src.name]")
@@ -107,16 +107,16 @@
if(!istype(T))
return;
if(src.imprinted != "empty")
- to_chat(U, "Capture failed!: The soul stone has already been imprinted with [src.imprinted]'s mind!")
+ to_chat(U, span_danger("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)
- to_chat(U, "Capture failed!: Kill or maim the victim first!")
+ to_chat(U, span_danger("Capture failed!") + ": Kill or maim the victim first!")
return
if(T.client == null)
- to_chat(U, "Capture failed!: The soul has already fled it's mortal frame.")
+ to_chat(U, span_danger("Capture failed!") + ": The soul has already fled it's mortal frame.")
return
if(src.contents.len)
- to_chat(U, "Capture failed!: The soul stone is full! Use or free an existing soul to make room.")
+ to_chat(U, span_danger("Capture failed!") + ": The soul stone is full! Use or free an existing soul to make room.")
return
for(var/obj/item/W in T)
@@ -151,7 +151,7 @@
src.icon_state = "soulstone2"
src.name = "Soul Stone: [S.real_name]"
to_chat(S, "Your soul has been captured! You are now bound to [U.name]'s will, help them suceed in their goals at all costs.")
- to_chat(U, "Capture successful! : [T.real_name]'s soul has been ripped from their body and stored within the soul stone.")
+ to_chat(U, span_notice("Capture successful!") + ": [T.real_name]'s soul has been ripped from their body and stored within the soul stone.")
to_chat(U, "The soulstone has been imprinted with [S.real_name]'s mind, it will no longer react to other souls.")
src.imprinted = "[S.name]"
qdel(T)
@@ -160,13 +160,13 @@
if(!istype(T))
return;
if (T.stat == DEAD)
- to_chat(U, "Capture failed!: The shade has already been banished!")
+ to_chat(U, span_danger("Capture failed!") + ": The shade has already been banished!")
return
if(src.contents.len)
- to_chat(U, "Capture failed!: The soul stone is full! Use or free an existing soul to make room.")
+ to_chat(U, span_danger("Capture failed!") + ": The soul stone is full! Use or free an existing soul to make room.")
return
if(T.name != src.imprinted)
- to_chat(U, "Capture failed!: The soul stone has already been imprinted with [src.imprinted]'s mind!")
+ to_chat(U, span_danger("Capture failed!") + ": The soul stone has already been imprinted with [src.imprinted]'s mind!")
return
T.forceMove(src) //put shade in stone
@@ -176,12 +176,12 @@
src.icon_state = "soulstone2"
to_chat(T, "Your soul has been recaptured by the soul stone, its arcane energies are reknitting your ethereal form")
- to_chat(U, "Capture successful! : [T.name]'s has been recaptured and stored within the soul stone.")
+ to_chat(U, span_notice("Capture successful!") + ": [T.name]'s has been recaptured and stored within the soul stone.")
/obj/item/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, span_danger("Capture failed!") + ": The soul stone is empty! Go kill someone!")
return;
var/construct_class = tgui_input_list(U, "Please choose which type of construct you wish to create.", "Construct Type", possible_constructs)
switch(construct_class)
diff --git a/code/game/gamemodes/cult/talisman.dm b/code/game/gamemodes/cult/talisman.dm
index a26740e6d8..d2bc74adba 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")
- to_chat(user, "To use this talisman, attack your target directly.")
+ to_chat(user, span_warning("To use this talisman, attack your target directly."))
return
if("supply")
supply()
diff --git a/code/game/gamemodes/endgame/supermatter_cascade/blob.dm b/code/game/gamemodes/endgame/supermatter_cascade/blob.dm
index 50bdb4fcd0..f6db2c5d0f 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
- to_chat(user, "What the fuck are you doing?")
+ to_chat(user, span_warning("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 a217dde847..98c4e3a78a 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)
- to_chat(user, "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.")
+ to_chat(user, span_sinister("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
- to_world("You are blinded by a brilliant flash of energy.")
+ to_world(span_sinister("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 adf4525959..3f51563f05 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)
- to_chat(M, "[extra_law]")
+ to_chat(M, span_danger("[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)
- to_world("There aren't enough players for this mode!")
- to_world("Rebooting world in 5 seconds.")
+ to_world(span_danger("There aren't enough players for this mode!"))
+ to_world(span_danger("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'
- to_world("Incoming missile detected.. Impact in 10..")
+ to_world(span_notice("Incoming missile detected.. Impact in 10.."))
for (var/i=9 to 1 step -1)
sleep(10)
- to_world("[i]..")
+ to_world(span_notice("[i].."))
sleep(10)
enter_allowed = 0
if(ticker)
diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm
index 6c499c030c..75de7d0fd6 100644
--- a/code/game/gamemodes/events.dm
+++ b/code/game/gamemodes/events.dm
@@ -277,72 +277,72 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
switch(rand(1,14))
if(1)
to_chat(M, "
")
- to_chat(M, "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED")
+ to_chat(M, span_danger("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)
to_chat(M, "
")
- to_chat(M, "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED")
+ to_chat(M, span_danger("[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("[what2] ARE DANGEROUS TO HUMANS")
if(3)
to_chat(M, "
")
- to_chat(M, "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED")
+ to_chat(M, span_danger("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)
to_chat(M, "
")
- to_chat(M, "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED")
+ to_chat(M, span_danger("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)
to_chat(M, "
")
- to_chat(M, "THE SITE MANAGER, HOP AND HOS ARE [who2]...LAWS UPDATED")
+ to_chat(M, span_danger("THE SITE MANAGER, HOP AND HOS ARE [who2]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("THE SITE MANAGER, HOP AND HOS ARE [who2]")
if(6)
to_chat(M, "
")
- to_chat(M, "THE STATION IS BUILT FOR [who2]...LAWS UPDATED")
+ to_chat(M, span_danger("THE STATION IS BUILT FOR [who2]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("THE STATION IS BUILT FOR [who2]")
if(7)
to_chat(M, "
")
- to_chat(M, "YOU ARE [amount] [who2]...LAWS UPDATED")
+ to_chat(M, span_danger("YOU ARE [amount] [who2]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("YOU ARE [amount] [who2]")
if(8)
to_chat(M, "
")
- to_chat(M, "YOU MUST ALWAYS [aimust]...LAWS UPDATED")
+ to_chat(M, span_danger("YOU MUST ALWAYS [aimust]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("YOU MUST ALWAYS [aimust]")
if(9)
to_chat(M, "
")
- to_chat(M, "[area] [area2] [amount] [what2]...LAWS UPDATED")
+ to_chat(M, span_danger("[area] [area2] [amount] [what2]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("[area] [area2] [amount] [what2]")
if(10)
to_chat(M, "
")
- to_chat(M, "[crew] is [target]...LAWS UPDATED")
+ to_chat(M, span_danger("[crew] is [target]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("[crew] is [target]")
if(11)
to_chat(M, "
")
- to_chat(M, "[define] IS A FORM OF HARM...LAWS UPDATED")
+ to_chat(M, span_danger("[define] IS A FORM OF HARM...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("[define] IS A FORM OF HARM")
if(12)
to_chat(M, "
")
- to_chat(M, "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED")
+ to_chat(M, span_danger("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)
to_chat(M, "
")
- to_chat(M, "[crew] is [allergysev] to [allergy]...LAWS UPDATED")
+ to_chat(M, span_danger("[crew] is [allergysev] to [allergy]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("[crew] is [allergysev] to [allergy]")
if(14)
to_chat(M, "
")
- to_chat(M, "THE STATION IS [who2pref] [who2]...LAWS UPDATED")
+ to_chat(M, span_danger("THE STATION IS [who2pref] [who2]...LAWS UPDATED"))
to_chat(M, "
")
M.add_ion_law("THE STATION IS [who2pref] [who2]")
/* //VOREStation Edit
diff --git a/code/game/gamemodes/events/holidays/Christmas.dm b/code/game/gamemodes/events/holidays/Christmas.dm
index d50c19fb93..5139a37b81 100644
--- a/code/game/gamemodes/events/holidays/Christmas.dm
+++ b/code/game/gamemodes/events/holidays/Christmas.dm
@@ -28,7 +28,7 @@
/obj/item/toy/xmas_cracker/attack(mob/target, mob/user)
if( !cracked && (istype(target,/mob/living/silicon) || (istype(target,/mob/living/carbon/human) && !target.get_active_hand())) && target.stat == CONSCIOUS)
- target.visible_message("[user] and [target] pop \an [src]! *pop*", "You pull \an [src] with [target]! *pop*", "You hear a *pop*.")
+ target.visible_message(span_notice("[user] and [target] pop \an [src]! *pop*"), span_notice("You pull \an [src] with [target]! *pop*"), span_notice("You hear a *pop*."))
var/obj/item/paper/Joke = new /obj/item/paper(user.loc)
Joke.name = "[pick("awful","terrible","unfunny")] joke"
Joke.info = pick("What did one snowman say to the other?\n\n'Is it me or can you smell carrots?'",
@@ -60,4 +60,3 @@
flags_inv = 0
body_parts_covered = 0
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0)
-
diff --git a/code/game/gamemodes/events/holidays/Holidays.dm b/code/game/gamemodes/events/holidays/Holidays.dm
index 07ae0a64c1..9b9fe5b086 100644
--- a/code/game/gamemodes/events/holidays/Holidays.dm
+++ b/code/game/gamemodes/events/holidays/Holidays.dm
@@ -255,7 +255,7 @@ var/global/list/Holiday = list() //Holidays are lists now, so we can have more t
world.update_status()
Holiday_Game_Start()
- message_admins("ADMIN: Event: [key_name(src)] force-set Holiday to \"[Holiday]\"")
+ message_admins(span_notice("ADMIN: Event: [key_name(src)] force-set Holiday to \"[Holiday]\""))
log_admin("[key_name(src)] force-set Holiday to \"[Holiday]\"")
@@ -303,7 +303,7 @@ var/global/list/Holiday = list() //Holidays are lists now, so we can have more t
if(isNotStationLevel(S.z)) continue
containers += S
- message_admins("DEBUG: Event: Egg spawned at [Egg.loc] ([Egg.x],[Egg.y],[Egg.z])")*/
+ message_admins(span_notice("DEBUG: Event: Egg spawned at [Egg.loc] ([Egg.x],[Egg.y],[Egg.z])"))*/
if("End of the World")
if(prob(eventchance)) GameOver()
diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index b8007d3ea5..2d4107080c 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -537,7 +537,7 @@ var/global/list/additional_antag_types = list()
if(!player || !player.current) return
var/obj_count = 1
- to_chat(player.current, "Your current objectives:")
+ to_chat(player.current, span_notice("Your current objectives:"))
for(var/datum/objective/objective in player.objectives)
to_chat(player.current, "Objective #[obj_count]: [objective.explanation_text]")
obj_count++
@@ -547,15 +547,15 @@ var/global/list/additional_antag_types = list()
set category = "OOC"
if(!ticker || !ticker.mode)
- to_chat(usr, "Something is terribly wrong; there is no gametype.")
+ to_chat(usr, span_warning("Something is terribly wrong; there is no gametype."))
return
if(master_mode != "secret")
- to_chat(usr, "The roundtype is [capitalize(ticker.mode.name)]")
+ to_chat(usr, span_notice("The roundtype is [capitalize(ticker.mode.name)]"))
if(ticker.mode.round_description)
- to_chat(usr, "[ticker.mode.round_description]")
+ to_chat(usr, span_notice("[ticker.mode.round_description]"))
if(ticker.mode.extended_round_description)
- to_chat(usr, "[ticker.mode.extended_round_description]")
+ to_chat(usr, span_notice("[ticker.mode.extended_round_description]"))
else
- to_chat(usr, "Shhhh. It's a secret.")
+ to_chat(usr, span_notice("Shhhh. It's a secret."))
return
diff --git a/code/game/gamemodes/malfunction/malf_hardware.dm b/code/game/gamemodes/malfunction/malf_hardware.dm
index 8206f9cd5e..526327664d 100644
--- a/code/game/gamemodes/malfunction/malf_hardware.dm
+++ b/code/game/gamemodes/malfunction/malf_hardware.dm
@@ -24,7 +24,7 @@
/datum/malf_hardware/apu_gen/get_examine_desc()
var/msg = "It seems to have some sort of power generator attached to its core."
if(owner.hardware_integrity() < 50)
- msg += " It seems to be too damaged to function properly."
+ msg += span_warning(" It seems to be too damaged to function properly.")
else if(owner.APU_power)
msg += " The generator appears to be active."
return msg
@@ -49,7 +49,7 @@
driver = /datum/game_mode/malfunction/verb/ai_self_destruct
/datum/malf_hardware/core_bomb/get_examine_desc()
- return "It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]"
+ return span_warning("It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]")
/datum/malf_hardware/strong_turrets
name = "Turrets Focus Enhancer"
@@ -64,4 +64,4 @@
T.maxhealth = round(initial(T.maxhealth) * 1.4)
T.shot_delay = round(initial(T.shot_delay) / 2)
T.auto_repair = 1
- T.update_active_power_usage(round(initial(T.active_power_usage) * 5))
\ No newline at end of file
+ T.update_active_power_usage(round(initial(T.active_power_usage) * 5))
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 655f1a03f2..c037b92531 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm
@@ -116,8 +116,8 @@
to_chat(target, "Unlock signal received..")
target.SetLockdown(0)
if(target.lockcharge)
- to_chat(user, "Unlock Failed, lockdown wire cut.")
- to_chat(target, "Unlock Failed, lockdown wire cut.")
+ to_chat(user, span_notice("Unlock Failed, lockdown wire cut."))
+ to_chat(target, span_notice("Unlock Failed, lockdown wire cut."))
else
to_chat(user, "Cyborg unlocked.")
to_chat(target, "You have been unlocked.")
@@ -137,7 +137,7 @@
var/list/L = get_unlinked_cyborgs(user)
if(!L.len)
- to_chat(user, "ERROR: No unlinked cyborgs detected!")
+ to_chat(user, span_notice("ERROR: No unlinked cyborgs detected!"))
if(target && !istype(target))
@@ -202,7 +202,7 @@
var/list/L = get_other_ais(user)
if(!L.len)
- to_chat(user, "ERROR: No other AIs detected!")
+ to_chat(user, span_notice("ERROR: No other AIs detected!"))
if(target && !istype(target))
to_chat(user, "This is not an AI.")
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 70de180328..fcf0716078 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm
@@ -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
- to_chat(user, "ERROR: Low network voltage. Unable to overload. Increase network power level and try again.")
+ to_chat(user, span_notice("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
- to_chat(user, "ERROR: APC Malfunction - Cell depleted or removed. Unable to overload.")
+ to_chat(user, span_notice("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)
- to_chat(user, "ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again.")
+ to_chat(user, span_notice("ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again."))
else
- to_chat(user, "ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection.")
+ to_chat(user, span_notice("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
- to_chat(user, "ERROR: No power grid connection. Unable to overload.")
+ to_chat(user, span_notice("ERROR: No power grid connection. Unable to overload."))
return
if(M.inoperable()) // Not functional
- to_chat(user, "ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional.")
+ to_chat(user, span_notice("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??)
- to_chat(user, "ERROR: Unable to overload - target is not a machine.")
+ to_chat(user, span_notice("ERROR: Unable to overload - target is not a machine."))
return
explosion_intensity = min(explosion_intensity, 12) // 3, 6, 12 explosion cap
@@ -199,7 +199,7 @@
if(!ability_pay(user,price))
return
- M.visible_message("BZZZZZZZT")
+ M.visible_message(span_notice("BZZZZZZZT"))
spawn(50)
explosion(get_turf(M), round(explosion_intensity/4),round(explosion_intensity/2),round(explosion_intensity),round(explosion_intensity * 2))
if(M)
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 2ee412194e..cbf305302d 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
@@ -57,7 +57,7 @@
to_chat(user, "You already control this APC!")
return
else if(A.aidisabled)
- to_chat(user, "Unable to connect to APC. Please verify wire connection and try again.")
+ to_chat(user, span_notice("Unable to connect to APC. Please verify wire connection and try again."))
return
else
return
@@ -77,9 +77,9 @@
if(A.hacker == user)
to_chat(user, "Hack successful. You now have full control over the APC.")
else
- to_chat(user, "Hack failed. Connection to APC has been lost. Please verify wire connection and try again.")
+ to_chat(user, span_notice("Hack failed. Connection to APC has been lost. Please verify wire connection and try again."))
else
- to_chat(user, "Hack failed. Unable to locate APC. Please verify the APC still exists.")
+ to_chat(user, span_notice("Hack failed. Unable to locate APC. Please verify the APC still exists."))
user.hacking = 0
diff --git a/code/game/gamemodes/meme/meme.dm b/code/game/gamemodes/meme/meme.dm
index d9ac36085a..c371257db7 100644
--- a/code/game/gamemodes/meme/meme.dm
+++ b/code/game/gamemodes/meme/meme.dm
@@ -126,7 +126,7 @@
/datum/game_mode/proc/greet_meme(var/datum/mind/meme, var/you_are=1)
if (you_are)
- to_chat(meme.current, "You are a meme!")
+ to_chat(meme.current, span_danger("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 57d5dadeac..121333c000 100644
--- a/code/game/gamemodes/meteor/meteor.dm
+++ b/code/game/gamemodes/meteor/meteor.dm
@@ -38,7 +38,7 @@
if(survivors)
to_world("The following survived the meteor storm:[text]")
else
- to_world("Nobody survived the meteor storm!")
+ to_world(span_notice("Nobody survived the meteor storm!"))
feedback_set_details("round_end_result","end - evacuation")
feedback_set("round_end_result",survivors)
@@ -46,4 +46,4 @@
..()
return 1
-#undef METEOR_DELAY
\ No newline at end of file
+#undef METEOR_DELAY
diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm
index 52cdc25385..9dd7705d88 100644
--- a/code/game/gamemodes/nuclear/pinpointer.dm
+++ b/code/game/gamemodes/nuclear/pinpointer.dm
@@ -21,25 +21,25 @@
if(!active)
active = 1
START_PROCESSING(SSobj, src)
- to_chat(usr, "You activate the pinpointer")
+ to_chat(usr, span_notice("You activate the pinpointer"))
else
active = 0
STOP_PROCESSING(SSobj, src)
icon_state = "pinoff"
- to_chat(usr, "You deactivate the pinpointer")
+ to_chat(usr, span_notice("You deactivate the pinpointer"))
/obj/item/pinpointer/process()
if(!active)
return PROCESS_KILL
-
+
if(!the_disk)
the_disk = locate()
if(!the_disk)
icon_state = "pinonnull"
return
-
+
set_dir(get_dir(src,the_disk))
-
+
switch(get_dist(src,the_disk))
if(0)
icon_state = "pinondirect"
@@ -188,15 +188,15 @@
START_PROCESSING(SSobj, src)
if(!mode)
workdisk()
- to_chat(user, "Authentication Disk Locator active.")
+ to_chat(user, span_notice("Authentication Disk Locator active."))
else
worklocation()
- to_chat(user, "Shuttle Locator active.")
+ to_chat(user, span_notice("Shuttle Locator active."))
else
active = 0
STOP_PROCESSING(SSobj, src)
icon_state = "pinoff"
- to_chat(user, "You deactivate the pinpointer.")
+ to_chat(user, span_notice("You deactivate the pinpointer."))
/obj/item/pinpointer/nukeop/process()
if(!active)
@@ -212,7 +212,7 @@
if(bomb_set) //If the bomb is set, lead to the shuttle
mode = 1 //Ensures worklocation() continues to work
playsound(src, 'sound/machines/twobeep.ogg', 50, 1) //Plays a beep
- visible_message("Shuttle Locator active.") //Lets the mob holding it know that the mode has changed
+ visible_message(span_notice("Shuttle Locator active.")) //Lets the mob holding it know that the mode has changed
return //Get outta here
if(!the_disk)
@@ -237,7 +237,7 @@
if(!bomb_set)
mode = 0
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
- visible_message("Authentication Disk Locator active.")
+ visible_message(span_notice("Authentication Disk Locator active."))
return
if(!home)
@@ -272,12 +272,12 @@
if(!active)
active = TRUE
START_PROCESSING(SSobj, src)
- to_chat(user, "Shuttle Locator active.")
+ to_chat(user, span_notice("Shuttle Locator active."))
else
active = FALSE
STOP_PROCESSING(SSobj, src)
icon_state = "pinoff"
- to_chat(user, "You deactivate the pinpointer.")
+ to_chat(user, span_notice("You deactivate the pinpointer."))
/obj/item/pinpointer/shuttle/process()
if(!active)
@@ -295,10 +295,10 @@
if(loc.z != our_shuttle.z) //If you are on a different z-level from the shuttle
icon_state = "pinonnull"
-
+
else
set_dir(get_dir(src, our_shuttle))
-
+
switch(get_dist(src, our_shuttle))
if(0)
icon_state = "pinondirect"
@@ -314,4 +314,4 @@
shuttle_comp_id = "Mercenary"
/obj/item/pinpointer/shuttle/heist
- shuttle_comp_id = "Skipjack"
\ No newline at end of file
+ shuttle_comp_id = "Skipjack"
diff --git a/code/game/gamemodes/technomancer/catalog.dm b/code/game/gamemodes/technomancer/catalog.dm
index 55b802ed8f..47a81cd327 100644
--- a/code/game/gamemodes/technomancer/catalog.dm
+++ b/code/game/gamemodes/technomancer/catalog.dm
@@ -113,7 +113,7 @@ var/list/all_technomancer_assistance = subtypesof(/datum/technomancer/assistance
if(!user)
return 0
if(owner && user != owner)
- to_chat(user, "\The [src] knows that you're not the original owner, and has locked you out of it!")
+ to_chat(user, span_danger("\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)
@@ -308,13 +308,13 @@ var/list/all_technomancer_assistance = subtypesof(/datum/technomancer/assistance
if(new_spell.cost <= budget)
if(!core.has_spell(new_spell))
budget -= new_spell.cost
- to_chat(H, "You have just bought [new_spell.name].")
+ to_chat(H, span_notice("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.
- to_chat(H, "You already have [new_spell.name]!")
+ to_chat(H, span_danger("You already have [new_spell.name]!"))
return
else //Can't afford.
- to_chat(H, "You can't afford that!")
+ to_chat(H, span_danger("You can't afford that!"))
return
// This needs less copypasta.
@@ -328,19 +328,19 @@ var/list/all_technomancer_assistance = subtypesof(/datum/technomancer/assistance
if(desired_object)
if(desired_object.cost <= budget)
budget -= desired_object.cost
- to_chat(H, "You have just bought \a [desired_object.name].")
+ to_chat(H, span_notice("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.
- to_chat(H, "You can't afford that!")
+ to_chat(H, span_danger("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)
- to_chat(H, "You can only refund at your base, it's too late now!")
+ to_chat(H, span_danger("You can only refund at your base, it's too late now!"))
return
var/obj/item/technomancer_core/core = null
if(istype(H.back, /obj/item/technomancer_core))
@@ -357,16 +357,16 @@ var/list/all_technomancer_assistance = subtypesof(/datum/technomancer/assistance
/obj/item/technomancer_catalog/attackby(var/atom/movable/AM, var/mob/user)
var/turf/T = get_turf(user)
if(T.z in using_map.player_levels)
- to_chat(user, "You can only refund at your base, it's too late now!")
+ to_chat(user, span_danger("You can only refund at your base, it's too late now!"))
return
for(var/datum/technomancer/equipment/E in equipment_instances + assistance_instances)
if(AM.type == E.obj_path) // We got a match.
if(budget + E.cost > max_budget)
- to_chat(user, "\The [src] will not allow you to overflow your maximum budget by refunding that.")
+ to_chat(user, span_warning("\The [src] will not allow you to overflow your maximum budget by refunding that."))
return
else
budget = budget + E.cost
- to_chat(user, "You've refunded \the [AM].")
+ to_chat(user, span_notice("You've refunded \the [AM]."))
// We sadly need to do special stuff here or else people who refund cores with spells will lose points permanently.
if(istype(AM, /obj/item/technomancer_core))
@@ -375,11 +375,11 @@ var/list/all_technomancer_assistance = subtypesof(/datum/technomancer/assistance
for(var/datum/technomancer/spell/spell_datum in spell_instances)
if(spell_datum.obj_path == spell.spellpath)
budget += spell_datum.cost
- to_chat(user, "[spell.name] was inside \the [core], and was refunded.")
+ to_chat(user, span_notice("[spell.name] was inside \the [core], and was refunded."))
core.remove_spell(spell)
break
qdel(AM)
return
- to_chat(user, "\The [src] is unable to refund \the [AM].")
+ to_chat(user, span_warning("\The [src] is unable to refund \the [AM]."))
#undef ALL_SPELLS
diff --git a/code/game/gamemodes/technomancer/core_obj.dm b/code/game/gamemodes/technomancer/core_obj.dm
index ccc92ad83a..0c7c1ea13f 100644
--- a/code/game/gamemodes/technomancer/core_obj.dm
+++ b/code/game/gamemodes/technomancer/core_obj.dm
@@ -288,7 +288,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.
- to_chat(wearer, "\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy.")
+ to_chat(wearer, span_notice("\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy."))
return success
// For those dedicated to summoning hoards of things.
@@ -350,7 +350,7 @@
set desc = "Toggles the locking mechanism on your manipulation core."
canremove = !canremove
- to_chat(usr, "You [canremove ? "de" : ""]activate the locking mechanism on \the [src].")
+ to_chat(usr, span_notice("You [canremove ? "de" : ""]activate the locking mechanism on \the [src]."))
//For the adminbuse! VOREStation Add
/obj/item/technomancer_core/universal
@@ -365,4 +365,4 @@
instability_modifier = 0.3
spell_power_modifier = 0.7
universal = TRUE
-//VOREStation Add End
\ No newline at end of file
+//VOREStation Add End
diff --git a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm
index 4b595ecf18..f514b75e5a 100644
--- a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm
+++ b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm
@@ -28,7 +28,7 @@
/obj/item/disposable_teleporter/attack_self(mob/user as mob)
if(!uses)
- to_chat(user, "\The [src] has ran out of uses, and is now useless to you!")
+ to_chat(user, span_danger("\The [src] has ran out of uses, and is now useless to you!"))
return
else
var/area_wanted = tgui_input_list(user, "Area to teleport to", "Teleportation", teleportlocs)
@@ -74,8 +74,8 @@
if(destination)
user.forceMove(destination)
- to_chat(user, "You are teleported to \the [A].")
+ to_chat(user, span_notice("You are teleported to \the [A]."))
uses--
if(uses <= 0)
- to_chat(user, "\The [src] has ran out of uses, and disintegrates from your hands.")
+ to_chat(user, span_danger("\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 9d78afe0b2..3e38955e10 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())
- to_chat(H, "You feel a stabbing sensation in your hands as you slide \the [src] on!")
+ to_chat(H, span_danger("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())
- to_chat(wearer, "You feel the hypodermic needles as you slide \the [src] off!")
+ to_chat(wearer, span_danger("You feel the hypodermic needles as you slide \the [src] off!"))
wearer.custom_pain("Your hands hurt like hell!",1)
wearer = null
@@ -63,4 +63,4 @@
wearer.nutrition = max(wearer.nutrition - 10, 0)
if(wearer.getCloneLoss())
wearer.adjustCloneLoss(-0.1)
- wearer.nutrition = max(wearer.nutrition - 20, 0)
\ No newline at end of file
+ wearer.nutrition = max(wearer.nutrition - 20, 0)
diff --git a/code/game/gamemodes/technomancer/devices/shield_armor.dm b/code/game/gamemodes/technomancer/devices/shield_armor.dm
index eec695278f..bbf394240c 100644
--- a/code/game/gamemodes/technomancer/devices/shield_armor.dm
+++ b/code/game/gamemodes/technomancer/devices/shield_armor.dm
@@ -49,7 +49,7 @@
var/damage_to_energy_cost = (damage_to_energy_multiplier * damage_blocked)
if(!user.technomancer_pay_energy(damage_to_energy_cost))
- to_chat(user, "Your shield fades due to lack of energy!")
+ to_chat(user, span_danger("Your shield fades due to lack of energy!"))
active = 0
update_icon()
return 0
@@ -66,8 +66,8 @@
P.agony -= agony_blocked
P.damage = P.damage - damage_blocked
- user.visible_message("\The [user]'s [src] absorbs [attack_text]!")
- to_chat(user, "Your shield has absorbed most of \the [damage_source].")
+ user.visible_message(span_danger("\The [user]'s [src] absorbs [attack_text]!"))
+ to_chat(user, span_warning("Your shield has absorbed most of \the [damage_source]."))
spark_system.start()
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
@@ -75,7 +75,7 @@
/obj/item/clothing/suit/armor/shield/attack_self(mob/user)
active = !active
- to_chat(user, "You [active ? "" : "de"]activate \the [src].")
+ to_chat(user, span_notice("You [active ? "" : "de"]activate \the [src]."))
update_icon()
user.update_inv_wear_suit()
user.update_action_buttons()
@@ -88,4 +88,4 @@
else
set_light(0, 0, l_color = "#000000")
..()
- return
\ No newline at end of file
+ return
diff --git a/code/game/gamemodes/technomancer/devices/tesla_armor.dm b/code/game/gamemodes/technomancer/devices/tesla_armor.dm
index 8093db0bec..0a7d606b80 100644
--- a/code/game/gamemodes/technomancer/devices/tesla_armor.dm
+++ b/code/game/gamemodes/technomancer/devices/tesla_armor.dm
@@ -46,15 +46,15 @@
spawn(cooldown_to_charge)
ready = 1
update_icon()
- to_chat(user, "\The [src] is ready to protect you once more.")
- visible_message("\The [user]'s [src.name] blocks [attack_text]!")
+ to_chat(user, span_notice("\The [src] is ready to protect you once more."))
+ visible_message(span_danger("\The [user]'s [src.name] blocks [attack_text]!"))
update_icon()
return 1
return 0
/obj/item/clothing/suit/armor/tesla/attack_self(mob/user)
active = !active
- to_chat(user, "You [active ? "" : "de"]activate \the [src].")
+ to_chat(user, span_notice("You [active ? "" : "de"]activate \the [src]."))
update_icon()
user.update_inv_wear_suit()
user.update_action_buttons()
@@ -80,5 +80,5 @@
lightning.power = power
lightning.old_style_target(target)
lightning.fire()
- visible_message("\The [src] strikes \the [target] with lightning!")
- playsound(src, 'sound/weapons/gauss_shoot.ogg', 75, 1)
\ No newline at end of file
+ visible_message(span_danger("\The [src] strikes \the [target] with lightning!"))
+ playsound(src, 'sound/weapons/gauss_shoot.ogg', 75, 1)
diff --git a/code/game/gamemodes/technomancer/instability.dm b/code/game/gamemodes/technomancer/instability.dm
index c41c2ea8dc..73018f16a3 100644
--- a/code/game/gamemodes/technomancer/instability.dm
+++ b/code/game/gamemodes/technomancer/instability.dm
@@ -109,7 +109,7 @@
sparks.set_up(5, 0, src)
sparks.attach(loc)
sparks.start()
- visible_message("Electrical sparks manifest from nowhere around \the [src]!")
+ visible_message(span_warning("Electrical sparks manifest from nowhere around \the [src]!"))
qdel(sparks)
if(1)
return
@@ -121,13 +121,13 @@
electrocute_act(instability * 0.3, "unstable energies", 0.75)
if(1)
adjustFireLoss(instability * 0.15) //7.5 burn @ 50 instability
- to_chat(src, "Your chassis alerts you to overheating from an unknown external force!")
+ to_chat(src, span_danger("Your chassis alerts you to overheating from an unknown external force!"))
if(2)
adjustBruteLoss(instability * 0.15) //7.5 brute @ 50 instability
- to_chat(src, "Your chassis makes the sound of metal groaning!")
+ to_chat(src, span_danger("Your chassis makes the sound of metal groaning!"))
if(3)
safe_blink(src, range = 6)
- to_chat(src, "You're teleported against your will!")
+ to_chat(src, span_warning("You're teleported against your will!"))
if(4)
emp_act(3)
@@ -140,10 +140,10 @@
emp_act(2)
if(2)
adjustFireLoss(instability * 0.3) //30 burn @ 100 instability
- to_chat(src, "Your chassis alerts you to extreme overheating from an unknown external force!")
+ to_chat(src, span_danger("Your chassis alerts you to extreme overheating from an unknown external force!"))
if(3)
adjustBruteLoss(instability * 0.3) //30 brute @ 100 instability
- to_chat(src, "Your chassis makes the sound of metal groaning and tearing!")
+ to_chat(src, span_danger("Your chassis makes the sound of metal groaning and tearing!"))
if(101 to 200) //Lethal
rng = rand(0,4)
@@ -154,10 +154,10 @@
emp_act(1)
if(2)
adjustFireLoss(instability * 0.4) //40 burn @ 100 instability
- to_chat(src, "Your chassis alerts you to extreme overheating from an unknown external force!")
+ to_chat(src, span_danger("Your chassis alerts you to extreme overheating from an unknown external force!"))
if(3)
adjustBruteLoss(instability * 0.4) //40 brute @ 100 instability
- to_chat(src, "Your chassis makes the sound of metal groaning and tearing!")
+ to_chat(src, span_danger("Your chassis makes the sound of metal groaning and tearing!"))
/mob/living/carbon/human/instability_effects()
if(instability)
@@ -174,7 +174,7 @@
sparks.set_up(5, 0, src)
sparks.attach(loc)
sparks.start()
- visible_message("Electrical sparks manifest from nowhere around \the [src]!")
+ visible_message(span_warning("Electrical sparks manifest from nowhere around \the [src]!"))
qdel(sparks)
if(1)
return
@@ -189,23 +189,23 @@
if(2)
if(can_feel_pain())
apply_effect(instability * 0.3, AGONY)
- to_chat(src, "You feel a sharp pain!")
+ to_chat(src, span_danger("You feel a sharp pain!"))
if(3)
apply_effect(instability * 0.3, EYE_BLUR)
- to_chat(src, "Your eyes start to get cloudy!")
+ to_chat(src, span_danger("Your eyes start to get cloudy!"))
if(4)
electrocute_act(instability * 0.3, "unstable energies")
if(5)
adjustFireLoss(instability * 0.15) //7.5 burn @ 50 instability
- to_chat(src, "You feel your skin burn!")
+ to_chat(src, span_danger("You feel your skin burn!"))
if(6)
adjustBruteLoss(instability * 0.15) //7.5 brute @ 50 instability
- to_chat(src, "You feel a sharp pain as an unseen force harms your body!")
+ to_chat(src, span_danger("You feel a sharp pain as an unseen force harms your body!"))
if(7)
adjustToxLoss(instability * 0.15) //7.5 tox @ 50 instability
if(8)
safe_blink(src, range = 6)
- to_chat(src, "You're teleported against your will!")
+ to_chat(src, span_warning("You're teleported against your will!"))
if(50 to 100) //Severe
rng = rand(0,8)
@@ -217,18 +217,18 @@
if(2)
if(can_feel_pain())
apply_effect(instability * 0.7, AGONY)
- to_chat(src, "You feel an extremly angonizing pain from all over your body!")
+ to_chat(src, span_danger("You feel an extremly angonizing pain from all over your body!"))
if(3)
apply_effect(instability * 0.5, EYE_BLUR)
- to_chat(src, "Your eyes start to get cloudy!")
+ to_chat(src, span_danger("Your eyes start to get cloudy!"))
if(4)
electrocute_act(instability * 0.5, "extremely unstable energies")
if(5)
fire_act()
- to_chat(src, "You spontaneously combust!")
+ to_chat(src, span_danger("You spontaneously combust!"))
if(6)
adjustCloneLoss(instability * 0.05) //5 cloneloss @ 100 instability
- to_chat(src, "You feel your body slowly degenerate.")
+ to_chat(src, span_danger("You feel your body slowly degenerate."))
if(7)
adjustToxLoss(instability * 0.25) //25 tox @ 100 instability
@@ -238,24 +238,24 @@
if(0)
apply_effect(instability, IRRADIATE)
if(1)
- visible_message("\The [src] suddenly collapses!",
- "You suddenly feel very light-headed, and faint!")
+ visible_message(span_warning("\The [src] suddenly collapses!"),
+ span_danger("You suddenly feel very light-headed, and faint!"))
Paralyse(instability * 0.1)
if(2)
if(can_feel_pain())
apply_effect(instability, AGONY)
- to_chat(src, "You feel an extremly angonizing pain from all over your body!")
+ to_chat(src, span_danger("You feel an extremly angonizing pain from all over your body!"))
if(3)
apply_effect(instability, EYE_BLUR)
- to_chat(src, "Your eyes start to get cloudy!")
+ to_chat(src, span_danger("Your eyes start to get cloudy!"))
if(4)
electrocute_act(instability, "extremely unstable energies")
if(5)
fire_act()
- to_chat(src, "You spontaneously combust!")
+ to_chat(src, span_danger("You spontaneously combust!"))
if(6)
adjustCloneLoss(instability * 0.10) //5 cloneloss @ 100 instability
- to_chat(src, "You feel your body slowly degenerate.")
+ to_chat(src, span_danger("You feel your body slowly degenerate."))
if(7)
adjustToxLoss(instability * 0.40) //40 tox @ 100 instability
@@ -282,9 +282,9 @@
amount = amount * armor_factor
if(amount && prob(10))
if(isSynthetic())
- to_chat(src, "Warning: Anomalous field detected.")
+ to_chat(src, span_cult("Warning: Anomalous field detected."))
else
- to_chat(src, "The purple glow makes you feel strange...")
+ to_chat(src, span_cult("The purple glow makes you feel strange..."))
adjust_instability(amount)
#undef TECHNOMANCER_INSTABILITY_DECAY
diff --git a/code/game/gamemodes/technomancer/spell_objs.dm b/code/game/gamemodes/technomancer/spell_objs.dm
index 164fd7b3af..27e8f16843 100644
--- a/code/game/gamemodes/technomancer/spell_objs.dm
+++ b/code/game/gamemodes/technomancer/spell_objs.dm
@@ -117,7 +117,7 @@
if(owner)
core = owner.get_technomancer_core()
if(!core)
- to_chat(owner, "You need a Core to do that.")
+ to_chat(owner, span_warning("You need a Core to do that."))
qdel(src)
return
// if(istype(/obj/item/technomancer_core, owner.back))
@@ -160,13 +160,13 @@
if(!core)
core = locate(/obj/item/technomancer_core) in owner
if(!core)
- to_chat(owner, "You need to be wearing a core on your back!")
+ to_chat(owner, span_danger("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.
- to_chat(owner, "You need to be wearing a core on your back!")
+ to_chat(owner, span_danger("You need to be wearing a core on your back!"))
return 0
if(!technomancers.is_antagonist(owner.mind) && !core.universal) //Now make sure the person using this is the actual antag. //VOREStation Edit - Universal cores
- to_chat(owner, "You can't seem to figure out how to make the machine work properly.")
+ to_chat(owner, span_danger("You can't seem to figure out how to make the machine work properly."))
return 0
return 1
@@ -269,7 +269,7 @@
if(l_spell.aspect == ASPECT_CHROMATIC) //Check the other hand too.
l_spell.on_combine_cast(S, src)
else //Welp
- to_chat(src, "You require a free hand to use this function.")
+ to_chat(src, span_warning("You require a free hand to use this function."))
return 0
if(S.run_checks())
@@ -298,4 +298,4 @@
// If we miss or hit an obstacle, we still want to delete the spell.
spawn(20)
if(src)
- qdel(src)
\ No newline at end of file
+ qdel(src)
diff --git a/code/game/gamemodes/technomancer/spells/abjuration.dm b/code/game/gamemodes/technomancer/spells/abjuration.dm
index bcaa91f5da..1dfa580945 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.
- to_chat(user, "\The [L] resists your attempt to banish it!")
- to_chat(L, "\The [user] tried to teleport you far away, but failed.")
+ to_chat(user, span_warning("\The [L] resists your attempt to banish it!"))
+ to_chat(L, span_warning("\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
- to_chat(evil, "\The [user]'s abjuration purges your form!")
+ to_chat(evil, span_danger("\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))
- to_chat(user, "One does not simply abjurate Nar'sie away.")
- adjust_instability(200)
\ No newline at end of file
+ to_chat(user, span_danger("One does not simply abjurate Nar'sie away."))
+ adjust_instability(200)
diff --git a/code/game/gamemodes/technomancer/spells/apportation.dm b/code/game/gamemodes/technomancer/spells/apportation.dm
index e8a160c4d0..db6cc87eb5 100644
--- a/code/game/gamemodes/technomancer/spells/apportation.dm
+++ b/code/game/gamemodes/technomancer/spells/apportation.dm
@@ -21,11 +21,11 @@
if(!AM.loc) //Don't teleport HUD telements to us.
return
if(AM.anchored)
- to_chat(user, "\The [hit_atom] is firmly secured and anchored, you can't move it!")
+ to_chat(user, span_warning("\The [hit_atom] is firmly secured and anchored, you can't move it!"))
return
if(!within_range(hit_atom) && !check_for_scepter())
- to_chat(user, "\The [hit_atom] is too far away.")
+ to_chat(user, span_warning("\The [hit_atom] is too far away."))
return
//Teleporting an item.
@@ -38,18 +38,18 @@
s2.set_up(2, 1, I)
s1.start()
s2.start()
- I.visible_message("\The [I] vanishes into thin air!")
+ I.visible_message(span_danger("\The [I] vanishes into thin air!"))
I.forceMove(get_turf(user))
user.drop_item(src)
src.loc = null
user.put_in_hands(I)
- user.visible_message("\A [I] appears in \the [user]'s hand!")
+ user.visible_message(span_notice("\A [I] appears in \the [user]'s hand!"))
add_attack_logs(user,I,"Stolen with [src]")
qdel(src)
//Now let's try to teleport a living mob.
else if(istype(hit_atom, /mob/living))
var/mob/living/L = hit_atom
- to_chat(L, "You are teleported towards \the [user].")
+ to_chat(L, span_danger("You are teleported towards \the [user]."))
var/datum/effect/effect/system/spark_spread/s1 = new /datum/effect/effect/system/spark_spread
var/datum/effect/effect/system/spark_spread/s2 = new /datum/effect/effect/system/spark_spread
s1.set_up(2, 1, user)
@@ -62,12 +62,12 @@
spawn(1 SECOND)
if(!user.Adjacent(L))
- to_chat(user, "\The [L] is out of your reach.")
+ to_chat(user, span_warning("\The [L] is out of your reach."))
qdel(src)
return
L.Weaken(3)
- user.visible_message("\The [user] seizes [L]!")
+ user.visible_message(span_warning("\The [user] seizes [L]!"))
var/obj/item/grab/G = new(user,L)
@@ -77,4 +77,3 @@
G.icon_state = "grabbed1"
G.synch()
qdel(src)
-
diff --git a/code/game/gamemodes/technomancer/spells/aspect_aura.dm b/code/game/gamemodes/technomancer/spells/aspect_aura.dm
index 2046accd98..a20849e517 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/spell))
var/obj/item/spell/spell = W
if(!spell.aspect || spell.aspect == ASPECT_CHROMATIC)
- to_chat(user, "You cannot combine \the [spell] with \the [src], as the aspects are incompatible.")
+ to_chat(user, span_warning("You cannot combine \the [spell] with \the [src], as the aspects are incompatible."))
return
user.drop_item(src)
src.loc = null
diff --git a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm
index 4b958442bd..502116acf8 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())
- to_chat(L, "ERROR: Electrical fault detected!")
+ to_chat(L, span_danger("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 1414e56213..d665f9c586 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))
- to_chat(L, "Your chassis seems to slowly be decaying and breaking down.")
+ to_chat(L, span_danger("Your chassis seems to slowly be decaying and breaking down."))
else
L.adjustToxLoss(damage_to_inflict)
if(damage_to_inflict && prob(10))
- to_chat(L, "You feel almost like you're melting from the inside!")
+ to_chat(L, span_danger("You feel almost like you're melting from the inside!"))
- adjust_instability(2)
\ No newline at end of file
+ adjust_instability(2)
diff --git a/code/game/gamemodes/technomancer/spells/blink.dm b/code/game/gamemodes/technomancer/spells/blink.dm
index 84961b0421..6025ecab4f 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!")
- to_chat(AM, "You suddenly appear somewhere else!")
+ to_chat(AM, span_notice("You suddenly appear somewhere else!"))
new /obj/effect/effect/sparks(destination)
new /obj/effect/effect/sparks(starting)
return
@@ -57,10 +57,10 @@
if(istype(hit_atom, /atom/movable))
var/atom/movable/AM = hit_atom
if(!within_range(AM))
- to_chat(user, "\The [AM] is too far away to blink.")
+ to_chat(user, span_warning("\The [AM] is too far away to blink."))
return
if(!allowed_to_teleport())
- to_chat(user, "Teleportation doesn't seem to work here.")
+ to_chat(user, span_warning("Teleportation doesn't seem to work here."))
return
if(pay_energy(400))
if(check_for_scepter())
@@ -70,11 +70,11 @@
adjust_instability(3)
add_attack_logs(user,AM,"Blinked")
else
- to_chat(user, "You need more energy to blink [AM] away!")
+ to_chat(user, span_warning("You need more energy to blink [AM] away!"))
/obj/item/spell/blink/on_use_cast(mob/user)
if(!allowed_to_teleport())
- to_chat(user, "Teleportation doesn't seem to work here.")
+ to_chat(user, span_warning("Teleportation doesn't seem to work here."))
return
if(pay_energy(200))
if(check_for_scepter())
@@ -84,16 +84,16 @@
adjust_instability(1)
add_attack_logs(user,user,"Blinked")
else
- to_chat(user, "You need more energy to blink yourself away!")
+ to_chat(user, span_warning("You need more energy to blink yourself away!"))
/obj/item/spell/blink/on_melee_cast(atom/hit_atom, mob/living/user, def_zone)
if(istype(hit_atom, /atom/movable))
var/atom/movable/AM = hit_atom
if(!allowed_to_teleport())
- to_chat(user, "Teleportation doesn't seem to work here.")
+ to_chat(user, span_warning("Teleportation doesn't seem to work here."))
return
if(pay_energy(300))
- visible_message("\The [user] reaches out towards \the [AM] with a glowing hand.")
+ visible_message(span_danger("\The [user] reaches out towards \the [AM] with a glowing hand."))
if(check_for_scepter())
safe_blink(AM, 10)
else
@@ -101,4 +101,4 @@
adjust_instability(2)
add_attack_logs(user,AM,"Blinked")
else
- to_chat(user, "You need more energy to blink [AM] away!")
\ No newline at end of file
+ to_chat(user, span_warning("You need more energy to blink [AM] away!"))
diff --git a/code/game/gamemodes/technomancer/spells/chroma.dm b/code/game/gamemodes/technomancer/spells/chroma.dm
index be2e87b946..9e51ef4e1e 100644
--- a/code/game/gamemodes/technomancer/spells/chroma.dm
+++ b/code/game/gamemodes/technomancer/spells/chroma.dm
@@ -32,7 +32,7 @@
var/turf/T = get_turf(hit_atom)
if(T)
new /obj/effect/temporary_effect/chroma(T, color_to_use)
- to_chat(user, "You shift the light onto \the [T].")
+ to_chat(user, span_notice("You shift the light onto \the [T]."))
qdel(src)
/obj/item/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 7288de4045..515881a7c6 100644
--- a/code/game/gamemodes/technomancer/spells/control.dm
+++ b/code/game/gamemodes/technomancer/spells/control.dm
@@ -92,7 +92,7 @@
if(choice == "Yes")
for(var/mob/living/L in controlled_mobs)
deselect(L)
- to_chat(user, "You've released control of all entities you had in control.")
+ to_chat(user, span_notice("You've released control of all entities you had in control."))
/obj/item/spell/control/on_ranged_cast(atom/hit_atom, mob/living/user)
@@ -106,21 +106,21 @@
if(L.mob_class & allowed_mob_classes)
if(!(L in controlled_mobs)) //Selecting
if(L.client)
- to_chat(user, "\The [L] seems to resist you!")
+ to_chat(user, span_danger("\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)
- to_chat(user, "\The [L] is now under your (limited) control.")
+ to_chat(user, span_notice("\The [L] is now under your (limited) control."))
else //Deselect them
deselect(L)
- to_chat(user, "You free \the [L] from your grasp.")
+ to_chat(user, span_notice("You free \the [L] from your grasp."))
else //Let's attack
if(!controlled_mobs.len)
- to_chat(user, "You have no entities under your control to command.")
+ to_chat(user, span_warning("You have no entities under your control to command."))
return 0
if(pay_energy(25 * controlled_mobs.len))
attack_all(L)
@@ -134,7 +134,7 @@
else if(isturf(hit_atom))
var/turf/T = hit_atom
if(!controlled_mobs.len)
- to_chat(user, "You have no entities under your control to command.")
+ to_chat(user, span_warning("You have no entities under your control to command."))
return 0
if(pay_energy(10 * controlled_mobs.len))
move_all(T)
diff --git a/code/game/gamemodes/technomancer/spells/energy_siphon.dm b/code/game/gamemodes/technomancer/spells/energy_siphon.dm
index 27d69f3a2c..79d28ec0d1 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))
- to_chat(owner, "You can't afford to maintain the siphon link!")
+ to_chat(owner, span_warning("You can't afford to maintain the siphon link!"))
stop_siphoning()
return
if(get_dist(siphoning, get_turf(src)) > 4)
- to_chat(owner, "\The [siphoning] is too far to drain from!")
+ to_chat(owner, span_warning("\The [siphoning] is too far to drain from!"))
stop_siphoning()
return
if(!(siphoning in view(owner)))
- to_chat(owner, "\The [siphoning] cannot be seen!")
+ to_chat(owner, span_warning("\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)
- to_chat(user, "You cannot steal energy from \a [AM].")
+ to_chat(user, span_warning("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)
- to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ and converted to [charge_to_give] Core energy.")
+ to_chat(user, span_notice("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.adjust_nutrition(charge_to_give / SIPHON_FBP_TO_ENERGY)
- to_chat(user, "Redirected energy to internal microcell.")
+ to_chat(user, span_notice("Redirected energy to internal microcell."))
else
- to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ.")
+ to_chat(user, span_notice("Stolen [charge_to_give * CELLRATE] kJ."))
adjust_instability(2)
if(flow_remaining == flow_rate) // We didn't drain anything.
- to_chat(user, "\The [siphoning] cannot be drained any further.")
+ to_chat(user, span_warning("\The [siphoning] cannot be drained any further."))
stop_siphoning()
/obj/item/spell/energy_siphon/update_icon()
@@ -202,4 +202,4 @@
#undef SIPHON_CELL_TO_ENERGY
#undef SIPHON_FBP_TO_ENERGY
-#undef SIPHON_CORE_TO_ENERGY
\ No newline at end of file
+#undef SIPHON_CORE_TO_ENERGY
diff --git a/code/game/gamemodes/technomancer/spells/flame_tongue.dm b/code/game/gamemodes/technomancer/spells/flame_tongue.dm
index 7a3fdba69b..68f341d106 100644
--- a/code/game/gamemodes/technomancer/spells/flame_tongue.dm
+++ b/code/game/gamemodes/technomancer/spells/flame_tongue.dm
@@ -17,7 +17,7 @@
/obj/item/spell/flame_tongue/New()
..()
set_light(3, 2, l_color = "#FF6A00")
- visible_message("\The [loc]'s hand begins to emit a flame.")
+ visible_message(span_warning("\The [loc]'s hand begins to emit a flame."))
welder = new /obj/item/weldingtool/spell(src)
welder.setWelding(1)
@@ -43,8 +43,8 @@
if(isliving(hit_atom) && user.a_intent != I_HELP)
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!")
- to_chat(L, "You ignite!")
+ visible_message(span_danger("\The [user] reaches out towards \the [L] with the flaming hand, and they ignite!"))
+ to_chat(L, span_danger("You ignite!"))
L.fire_act()
add_attack_logs(user,L,"Ignited with [src]")
adjust_instability(12)
diff --git a/code/game/gamemodes/technomancer/spells/gambit.dm b/code/game/gamemodes/technomancer/spells/gambit.dm
index cde2e9e28b..62c7f9620f 100644
--- a/code/game/gamemodes/technomancer/spells/gambit.dm
+++ b/code/game/gamemodes/technomancer/spells/gambit.dm
@@ -49,7 +49,7 @@
var/rare_spell_chance = between(0, calculate_spell_power(100) - 100, 100) // Having 120% spellpower means a 20% chance to get to roll for rare spells.
if(prob(rare_spell_chance))
potential_spells += rare_spells.Copy()
- to_chat(owner, "You feel a bit luckier...")
+ to_chat(owner, span_notice("You feel a bit luckier..."))
return pick(potential_spells)
// Gives a "random" spell.
@@ -59,7 +59,7 @@
var/give_rare_spells = FALSE
if(prob(rare_spell_chance))
give_rare_spells = TRUE
- to_chat(owner, "You feel a bit luckier...")
+ to_chat(owner, span_notice("You feel a bit luckier..."))
// First the spell will concern itself with the health of the technomancer.
if(prob(owner.getBruteLoss() + owner.getBruteLoss() * 2)) // Having 20 brute means a 40% chance of being added to the pool.
@@ -131,4 +131,4 @@
if(!potential_spells.len)
potential_spells = all_technomancer_gambit_spells.Copy()
- return pick(potential_spells)
\ No newline at end of file
+ return pick(potential_spells)
diff --git a/code/game/gamemodes/technomancer/spells/illusion.dm b/code/game/gamemodes/technomancer/spells/illusion.dm
index 32b1a474d2..a537c6bc58 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()
- to_chat(user, "You've copied \the [AM]'s appearance.")
+ to_chat(user, span_notice("You've copied \the [AM]'s appearance."))
user << 'sound/weapons/flash.ogg'
return 1
else if(istype(hit_atom, /turf))
@@ -34,7 +34,7 @@
illusion = new(T)
illusion.copy_appearance(copied)
illusion.copy_overlays(copied, TRUE)
- to_chat(user, "An illusion of \the [copied] is made on \the [T].")
+ to_chat(user, span_notice("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 8cf9ff6a6d..af8b22ecb8 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
- to_chat(H, "You are having difficulty breathing!")
+ to_chat(H, span_warning("You are having difficulty breathing!"))
var/pulses = 3
var/warned_victim = 0
while(pulses)
@@ -68,7 +68,7 @@
//to_world("Predicted hardcrit.")
return 1
else if(predicted_damage >= victim.species.total_health / 2) // Or perhaps we're gonna go into 'oxy crit'.
- to_chat(victim, "You feel really light-headed, and everything seems to be fading...")
+ to_chat(victim, span_danger("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.
diff --git a/code/game/gamemodes/technomancer/spells/insert/insert.dm b/code/game/gamemodes/technomancer/spells/insert/insert.dm
index 92103f76cb..d882d624b2 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/inserted_spell/IS in L.contents)
if(IS.type == inserting)
- to_chat(user, "\The [L] is already affected by \the [src].")
+ to_chat(user, span_warning("\The [L] is already affected by \the [src]."))
return
var/obj/item/inserted_spell/inserted = new inserting(L,user,src)
inserted.spell_power_at_creation = calculate_spell_power(1.0)
@@ -56,4 +56,4 @@
/obj/item/spell/insert/on_ranged_cast(atom/hit_atom, mob/user)
if(istype(hit_atom, /mob/living))
var/mob/living/L = hit_atom
- insert(L,user)
\ No newline at end of file
+ insert(L,user)
diff --git a/code/game/gamemodes/technomancer/spells/mark_recall.dm b/code/game/gamemodes/technomancer/spells/mark_recall.dm
index 613978761d..133ceac4d0 100644
--- a/code/game/gamemodes/technomancer/spells/mark_recall.dm
+++ b/code/game/gamemodes/technomancer/spells/mark_recall.dm
@@ -42,7 +42,7 @@ GLOBAL_LIST_INIT(mark_spells, list())
/obj/item/spell/mark/on_use_cast(var/mob/living/user)
if(!allowed_to_teleport()) // Otherwise you could teleport back to the admin Z-level.
- to_chat(user, "You can't teleport here!")
+ to_chat(user, span_warning("You can't teleport here!"))
return 0
if(pay_energy(1000))
//VOREStation Add - Multiple technomancer support
@@ -50,16 +50,16 @@ GLOBAL_LIST_INIT(mark_spells, list())
//They have one in the list
if(istype(marker))
qdel(marker)
- to_chat(user, "Your mark is moved from its old position to \the [get_turf(user)] under you.")
+ to_chat(user, span_notice("Your mark is moved from its old position to \the [get_turf(user)] under you."))
//They don't have one yet
else
- to_chat(user, "You mark \the [get_turf(user)] under you.")
+ to_chat(user, span_notice("You mark \the [get_turf(user)] under you."))
GLOB.mark_spells[WEAKREF(user)] = new /datum/technomancer_marker(user)
//VOREStation Add End
adjust_instability(5)
return 1
else
- to_chat(user, "You can't afford the energy cost!")
+ to_chat(user, span_warning("You can't afford the energy cost!"))
return 0
//Recall
@@ -85,21 +85,21 @@ GLOBAL_LIST_INIT(mark_spells, list())
if(pay_energy(3000))
var/datum/technomancer_marker/marker = GLOB.mark_spells[WEAKREF(user)] //VOREStation Add - Multiple technomancer support
if(!istype(marker))
- to_chat(user, "There's no Mark!")
+ to_chat(user, span_danger("There's no Mark!"))
return 0
else
if(!allowed_to_teleport())
- to_chat(user, "Teleportation doesn't seem to work here.")
+ to_chat(user, span_warning("Teleportation doesn't seem to work here."))
return
- visible_message("\The [user] starts glowing!")
+ visible_message(span_warning("\The [user] starts glowing!"))
var/light_intensity = 2
var/time_left = 3
if(check_for_scepter())
time_left = 2
while(time_left)
if(user.incapacitated())
- visible_message("\The [user]'s glow fades.")
- to_chat(user, "You cannot Recall while incapacitated!")
+ visible_message(span_notice("\The [user]'s glow fades."))
+ to_chat(user, span_danger("You cannot Recall while incapacitated!"))
return 0
light_intensity++
set_light(light_intensity, light_intensity, l_color = "#006AFF")
@@ -112,10 +112,10 @@ GLOBAL_LIST_INIT(mark_spells, list())
for(var/obj/item/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))
- to_chat(G.affecting, "You are teleported along with [user]!")
+ to_chat(G.affecting, span_warning("You are teleported along with [user]!"))
user.forceMove(target_turf)
- to_chat(user, "You are teleported to your Mark.")
+ to_chat(user, span_notice("You are teleported to your Mark."))
playsound(target_turf, 'sound/effects/phasein.ogg', 25, 1)
playsound(target_turf, 'sound/effects/sparks2.ogg', 50, 1)
@@ -126,5 +126,5 @@ GLOBAL_LIST_INIT(mark_spells, list())
qdel(src)
return 1
else
- to_chat(user, "You can't afford the energy cost!")
+ to_chat(user, span_warning("You can't afford the energy cost!"))
return 0
diff --git a/code/game/gamemodes/technomancer/spells/modifier/corona.dm b/code/game/gamemodes/technomancer/spells/modifier/corona.dm
index f53aa5094b..53b9f052a8 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/corona.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/corona.dm
@@ -24,10 +24,10 @@
desc = "You appear to be glowing really bright. It doesn't seem to hurt, however hiding will be impossible."
mob_overlay_state = "corona"
- on_created_text = "You start to glow very brightly!"
- on_expired_text = "Your glow has ended."
+ on_created_text = span_warning("You start to glow very brightly!")
+ on_expired_text = span_notice("Your glow has ended.")
evasion = -30
stacks = MODIFIER_STACK_EXTEND
/datum/modifier/technomancer/corona/tick()
- holder.break_cloak()
\ No newline at end of file
+ holder.break_cloak()
diff --git a/code/game/gamemodes/technomancer/spells/modifier/haste.dm b/code/game/gamemodes/technomancer/spells/modifier/haste.dm
index 10d4c341a5..ffe447b248 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/haste.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/haste.dm
@@ -22,7 +22,7 @@
desc = "Moving is almost effortless!"
mob_overlay_state = "haste"
- on_created_text = "You suddenly find it much easier to move."
- on_expired_text = "You feel slow again."
+ on_created_text = span_notice("You suddenly find it much easier to move.")
+ on_expired_text = span_warning("You feel slow again.")
haste = TRUE
- stacks = MODIFIER_STACK_EXTEND
\ No newline at end of file
+ stacks = MODIFIER_STACK_EXTEND
diff --git a/code/game/gamemodes/technomancer/spells/modifier/mend_all.dm b/code/game/gamemodes/technomancer/spells/modifier/mend_all.dm
index fbac295926..54448c8f9f 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/mend_all.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/mend_all.dm
@@ -15,8 +15,8 @@
desc = "You feel serene and well rested."
mob_overlay_state = "green_sparkles"
- on_created_text = "Sparkles begin to appear around you, and all your ills seem to fade away."
- on_expired_text = "The sparkles have faded, although you feel much healthier than before."
+ on_created_text = span_warning("Sparkles begin to appear around you, and all your ills seem to fade away.")
+ on_expired_text = span_notice("The sparkles have faded, although you feel much healthier than before.")
stacks = MODIFIER_STACK_EXTEND
/datum/modifier/technomancer/mend_all/tick()
@@ -32,4 +32,4 @@
if(origin)
var/mob/living/L = origin.resolve()
if(istype(L))
- L.adjust_instability(1)
\ No newline at end of file
+ L.adjust_instability(1)
diff --git a/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm b/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm
index 95c7eeb1b5..d7ac905119 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm
@@ -24,8 +24,8 @@
desc = "You feel rather refreshed."
mob_overlay_state = "green_sparkles"
- on_created_text = "Sparkles begin to appear around you, and you feel really.. refreshed."
- on_expired_text = "The sparkles have faded, although you feel healthier than before."
+ on_created_text = span_warning("Sparkles begin to appear around you, and you feel really.. refreshed.")
+ on_expired_text = span_notice("The sparkles have faded, although you feel healthier than before.")
stacks = MODIFIER_STACK_EXTEND
/datum/modifier/technomancer/mend_life/tick()
diff --git a/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm b/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm
index a91d5ff372..31400288c7 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm
@@ -24,8 +24,8 @@
desc = "Something seems to be repairing you."
mob_overlay_state = "cyan_sparkles"
- on_created_text = "Sparkles begin to appear around you, and your systems report integrity rising."
- on_expired_text = "The sparkles have faded, although your systems seem to be better than before."
+ on_created_text = span_warning("Sparkles begin to appear around you, and your systems report integrity rising.")
+ on_expired_text = span_notice("The sparkles have faded, although your systems seem to be better than before.")
stacks = MODIFIER_STACK_EXTEND
/datum/modifier/technomancer/mend_synthetic/tick()
diff --git a/code/game/gamemodes/technomancer/spells/modifier/purify.dm b/code/game/gamemodes/technomancer/spells/modifier/purify.dm
index 38cfe4dca7..d1bf7dd118 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/purify.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/purify.dm
@@ -24,8 +24,8 @@
desc = "You feel rather clean and pure."
mob_overlay_state = "green_sparkles"
- on_created_text = "Sparkles begin to appear around you, and you feel really.. pure."
- on_expired_text = "The sparkles have faded, although you feel healthier than before."
+ on_created_text = span_warning("Sparkles begin to appear around you, and you feel really.. pure.")
+ on_expired_text = span_notice("The sparkles have faded, although you feel healthier than before.")
stacks = MODIFIER_STACK_EXTEND
/datum/modifier/technomancer/purify/tick()
diff --git a/code/game/gamemodes/technomancer/spells/modifier/repel_missiles.dm b/code/game/gamemodes/technomancer/spells/modifier/repel_missiles.dm
index c86a52e663..8b632e64fe 100644
--- a/code/game/gamemodes/technomancer/spells/modifier/repel_missiles.dm
+++ b/code/game/gamemodes/technomancer/spells/modifier/repel_missiles.dm
@@ -22,7 +22,7 @@
desc = "A repulsion field can always be useful to have."
mob_overlay_state = "repel_missiles"
- on_created_text = "You have a repulsion field around you, which will attempt to deflect projectiles."
- on_expired_text = "Your repulsion field has expired."
+ on_created_text = span_notice("You have a repulsion field around you, which will attempt to deflect projectiles.")
+ on_expired_text = span_warning("Your repulsion field has expired.")
evasion = 45
- stacks = MODIFIER_STACK_EXTEND
\ No newline at end of file
+ stacks = MODIFIER_STACK_EXTEND
diff --git a/code/game/gamemodes/technomancer/spells/passwall.dm b/code/game/gamemodes/technomancer/spells/passwall.dm
index f7266b7719..f64b38d8ec 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())
- to_chat(user, "You can't teleport here!")
+ to_chat(user, span_warning("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())
- to_chat(user, "Perhaps you should try using passWALL on a wall, or other solid object.")
+ to_chat(user, span_warning("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
@@ -36,7 +36,7 @@
var/turf/found_turf = null //Our destination, if one is found.
var/i = maximum_distance
- visible_message("[user] rests a hand on \the [hit_atom].")
+ visible_message(span_info("[user] rests a hand on \the [hit_atom]."))
busy = 1
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
@@ -62,18 +62,18 @@
if(found_turf)
if(user.loc != our_turf)
- to_chat(user, "You need to stand still in order to phase through \the [hit_atom].")
+ to_chat(user, span_warning("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]!")
- to_chat(user, "You find a destination on the other side of \the [hit_atom], and phase through it.")
+ visible_message(span_warning("[user] appears to phase through \the [hit_atom]!"))
+ to_chat(user, span_info("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
- to_chat(user, "You don't have enough energy to phase through these walls!")
+ to_chat(user, span_warning("You don't have enough energy to phase through these walls!"))
busy = 0
else
- to_chat(user, "You weren't able to find an open space to go to.")
+ to_chat(user, span_info("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 ef1a8e1052..e8a39c144b 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
- to_chat(user, "You step out of the rift.")
+ to_chat(user, span_notice("You step out of the rift."))
user.forceMove(get_turf(src))
qdel(src)
@@ -55,12 +55,12 @@
if(isturf(user.loc)) //Check if we're not already in a rift.
if(pay_energy(2000))
var/obj/effect/phase_shift/PS = new(get_turf(user))
- visible_message("[user] vanishes into a pink rift!")
- to_chat(user, "You create an unstable rift, and go through it. Be sure to not stay too long.")
+ visible_message(span_warning("[user] vanishes into a pink rift!"))
+ to_chat(user, span_info("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
- to_chat(user, "You don't have enough energy to make a rift!")
+ to_chat(user, span_warning("You don't have enough energy to make a rift!"))
else //We're already in a rift or something like a closet.
- to_chat(user, "Making a rift here would probably be a bad idea.")
+ to_chat(user, span_warning("Making a rift here would probably be a bad idea."))
diff --git a/code/game/gamemodes/technomancer/spells/projectile/chain_lightning.dm b/code/game/gamemodes/technomancer/spells/projectile/chain_lightning.dm
index d7138e3740..828d3e96bf 100644
--- a/code/game/gamemodes/technomancer/spells/projectile/chain_lightning.dm
+++ b/code/game/gamemodes/technomancer/spells/projectile/chain_lightning.dm
@@ -69,12 +69,9 @@
if(new_target)
var/turf/curloc = get_turf(target_mob)
- curloc.visible_message("\The [src] bounces to \the [new_target]!")
+ curloc.visible_message(span_danger("\The [src] bounces to \the [new_target]!"))
redirect(new_target.x, new_target.y, curloc, firer)
bounces--
return 0
return 1
-
-
-
diff --git a/code/game/gamemodes/technomancer/spells/reflect.dm b/code/game/gamemodes/technomancer/spells/reflect.dm
index 24fe7f79a5..b642adcf15 100644
--- a/code/game/gamemodes/technomancer/spells/reflect.dm
+++ b/code/game/gamemodes/technomancer/spells/reflect.dm
@@ -21,12 +21,12 @@
set_light(3, 2, l_color = "#006AFF")
spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, src)
- to_chat(owner, "Your shield will expire in 5 seconds!")
+ to_chat(owner, span_notice("Your shield will expire in 5 seconds!"))
QDEL_IN(src, 5 SECONDS)
/obj/item/spell/reflect/Destroy()
if(owner)
- to_chat(owner, "Your shield expires!")
+ to_chat(owner, span_danger("Your shield expires!"))
spark_system = null
return ..()
@@ -37,7 +37,7 @@
var/damage_to_energy_cost = (damage_to_energy_multiplier * damage)
if(!pay_energy(damage_to_energy_cost))
- to_chat(owner, "Your shield fades due to lack of energy!")
+ to_chat(owner, span_danger("Your shield fades due to lack of energy!"))
qdel(src)
return 0
@@ -49,7 +49,7 @@
var/obj/item/projectile/P = damage_source
if(P.starting && !P.reflected)
- visible_message("\The [user]'s [src.name] reflects [attack_text]!")
+ visible_message(span_danger("\The [user]'s [src.name] reflects [attack_text]!"))
var/turf/curloc = get_turf(user)
@@ -67,7 +67,7 @@
if(!reflecting)
reflecting = 1
spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected.
- to_chat(owner, "Your shield fades due being used up!")
+ to_chat(owner, span_danger("Your shield fades due being used up!"))
qdel(src)
return PROJECTILE_CONTINUE // complete projectile permutation
@@ -87,7 +87,7 @@
if(!reflecting)
reflecting = 1
spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected.
- to_chat(owner, "Your shield fades due being used up!")
+ to_chat(owner, span_danger("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 576ec57358..16a8f9b14f 100644
--- a/code/game/gamemodes/technomancer/spells/resurrect.dm
+++ b/code/game/gamemodes/technomancer/spells/resurrect.dm
@@ -19,16 +19,16 @@
if(isliving(hit_atom))
var/mob/living/L = hit_atom
if(L == user)
- to_chat(user, "Clever as you may seem, this won't work on yourself while alive.")
+ to_chat(user, span_warning("Clever as you may seem, this won't work on yourself while alive."))
return 0
if(L.stat != DEAD)
- to_chat(user, "\The [L] isn't dead!")
+ to_chat(user, span_warning("\The [L] isn't dead!"))
return 0
if(pay_energy(5000))
if(L.tod > world.time + 30 MINUTES)
- to_chat(user, "\The [L]'s been dead for too long, even this function cannot replace cloning at this point.")
+ to_chat(user, span_danger("\The [L]'s been dead for too long, even this function cannot replace cloning at this point."))
return 0
- to_chat(user, "You stab \the [L] with a hidden integrated hypo, attempting to bring them back...")
+ to_chat(user, span_notice("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
@@ -56,10 +56,10 @@
dead_mob_list -= H
living_mob_list += H
H.timeofdeath = null
- visible_message("\The [H]'s eyes open!")
- to_chat(user, "It's alive!")
+ visible_message(span_danger("\The [H]'s eyes open!"))
+ to_chat(user, span_notice("It's alive!"))
adjust_instability(50)
log_and_message_admins("has resurrected [H].")
else
- 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
+ to_chat(user, span_warning("The body of \the [H] doesn't seem to respond, perhaps you could try again?"))
+ adjust_instability(10)
diff --git a/code/game/gamemodes/technomancer/spells/shared_burden.dm b/code/game/gamemodes/technomancer/spells/shared_burden.dm
index 766d88b43d..ad04dc5d4b 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)
- to_chat(user, "Draining instability out of you to put it back seems a bit pointless.")
+ to_chat(user, span_warning("Draining instability out of you to put it back seems a bit pointless."))
return 0
if(H.instability <= 0)
- to_chat(user, "\The [H] has no instability to drain.")
+ to_chat(user, span_warning("\The [H] has no instability to drain."))
return 0
if(pay_energy(500))
var/instability_to_drain = min(H.instability, 25)
- to_chat(user, "You draw instability away from \the [H] and towards you.")
+ to_chat(user, span_notice("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
+ H.adjust_instability(-calculate_spell_power(instability_to_drain))
diff --git a/code/game/gamemodes/technomancer/spells/shield.dm b/code/game/gamemodes/technomancer/spells/shield.dm
index fb08128e6d..d5182ca1de 100644
--- a/code/game/gamemodes/technomancer/spells/shield.dm
+++ b/code/game/gamemodes/technomancer/spells/shield.dm
@@ -46,14 +46,14 @@
damage_to_energy_cost *= 0.50
if(!pay_energy(damage_to_energy_cost))
- to_chat(owner, "Your shield fades due to lack of energy!")
+ to_chat(owner, span_danger("Your shield fades due to lack of energy!"))
qdel(src)
return 0
//block as long as they are not directly behind us
var/bad_arc = reverse_direction(user.dir) //arc of directions from which we cannot block
if(check_shield_arc(user, bad_arc, damage_source, attacker))
- user.visible_message("\The [user]'s [src] blocks [attack_text]!")
+ user.visible_message(span_danger("\The [user]'s [src] blocks [attack_text]!"))
spark_system.start()
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
adjust_instability(2)
diff --git a/code/game/gamemodes/technomancer/spells/spawner/spawner.dm b/code/game/gamemodes/technomancer/spells/spawner/spawner.dm
index 47c2a264ad..016e407c37 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)
- to_chat(user, "You shift \the [src] onto \the [T].")
+ to_chat(user, span_notice("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
+ qdel(src)
diff --git a/code/game/gamemodes/technomancer/spells/summon/summon.dm b/code/game/gamemodes/technomancer/spells/summon/summon.dm
index d47562b31d..f64ddeca8a 100644
--- a/code/game/gamemodes/technomancer/spells/summon/summon.dm
+++ b/code/game/gamemodes/technomancer/spells/summon/summon.dm
@@ -27,8 +27,8 @@
summon_underlay.alpha = 127
L.underlays |= summon_underlay
on_summon(L)
- to_chat(user, "You've successfully teleported \a [L] to you!")
- visible_message("\A [L] appears from no-where!")
+ to_chat(user, span_notice("You've successfully teleported \a [L] to you!"))
+ visible_message(span_warning("\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)
@@ -40,4 +40,4 @@
// Called when a new mob is summoned, override for special behaviour.
/obj/item/spell/summon/proc/on_summon(var/mob/living/summoned)
- return
\ No newline at end of file
+ return
diff --git a/code/game/gamemodes/technomancer/spells/track.dm b/code/game/gamemodes/technomancer/spells/track.dm
index b0ba7daad3..39d06119cd 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/spell/track/on_use_cast(mob/user)
if(tracking)
tracking = 0
- to_chat(user, "You stop tracking for \the [tracked]'s whereabouts.")
+ to_chat(user, span_notice("You stop tracking for \the [tracked]'s whereabouts."))
tracked = null
return
@@ -75,4 +75,4 @@ var/list/technomancer_belongings = list()
icon_state = "track_far"
spawn(5)
- .()
\ No newline at end of file
+ .()
diff --git a/code/game/gamemodes/technomancer/spells/warp_strike.dm b/code/game/gamemodes/technomancer/spells/warp_strike.dm
index d22655180f..99c82387e8 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))
- to_chat(user, "You can't use \the [I] while warping!")
+ to_chat(user, span_danger("You can't use \the [I] while warping!"))
return
if(istype(I, /obj/item))
@@ -77,4 +77,3 @@
else
chosen_target.attack_hand(user)
add_attack_logs(user,chosen_target,"Warp striked")
-
diff --git a/code/game/jobs/job/job.dm b/code/game/jobs/job/job.dm
index 18bce75303..ce09ee5258 100644
--- a/code/game/jobs/job/job.dm
+++ b/code/game/jobs/job/job.dm
@@ -88,7 +88,7 @@
H.mind.initial_account = M
- to_chat(H, "Your account number is: [M.account_number], your account pin is: [M.remote_access_pin]")
+ to_chat(H, span_notice("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 cad8192100..9a14d25516 100644
--- a/code/game/jobs/job_controller.dm
+++ b/code/game/jobs/job_controller.dm
@@ -15,7 +15,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)
- to_world("Error setting up jobs, no job datums found!")
+ to_world(span_warning("Error setting up jobs, no job datums found!"))
return 0
for(var/J in all_jobs)
var/datum/job/job = new J()
@@ -374,7 +374,7 @@ var/global/datum/controller/occupations/job_master
var/list/spawn_props = LateSpawn(H.client, rank)
var/turf/T = spawn_props["turf"]
if(!T)
- to_chat(H, "You were unable to be spawned at your chosen late-join spawnpoint. Please verify your job/spawn point combination makes sense, and try another one.")
+ to_chat(H, span_critical("You were unable to be spawned at your chosen late-join spawnpoint. Please verify your job/spawn point combination makes sense, and try another one."))
return
else
H.forceMove(T)
@@ -410,7 +410,7 @@ var/global/datum/controller/occupations/job_master
// If they aren't, tell them
if(!permitted)
- to_chat(H, "Your current species, job or whitelist status does not permit you to spawn with [thing]!")
+ to_chat(H, span_warning("Your current species, job or whitelist status does not permit you to spawn with [thing]!"))
continue
// Implants get special treatment
@@ -429,7 +429,7 @@ var/global/datum/controller/occupations/job_master
if(G.slot == slot_shoes && H.client?.prefs?.shoe_hater) //RS ADD
continue
if(H.equip_to_slot_or_del(G.spawn_item(H, metadata), G.slot))
- to_chat(H, "Equipping you with \the [thing]!")
+ to_chat(H, span_notice("Equipping you with \the [thing]!"))
if(G.slot != slot_tie)
custom_equip_slots.Add(G.slot)
else
@@ -460,12 +460,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))
- to_chat(H, "Equipping you with \the [thing]!")
+ to_chat(H, span_notice("Equipping you with \the [thing]!"))
custom_equip_slots.Add(G.slot)
else
spawn_in_storage += thing
else
- to_chat(H, "Your job is [rank] and the game just can't handle it! Please report this bug to an administrator.")
+ to_chat(H, span_filter_notice("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]\"")
@@ -508,12 +508,12 @@ var/global/datum/controller/occupations/job_master
if(!isnull(B))
for(var/thing in spawn_in_storage)
- to_chat(H, "Placing \the [thing] in your [B.name]!")
+ to_chat(H, span_notice("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
- 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.")
+ to_chat(H, span_danger("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")
@@ -533,16 +533,16 @@ var/global/datum/controller/occupations/job_master
W.color = R.color
qdel(R)
- to_chat(H, "You are [job.total_positions == 1 ? "the" : "a"] [alt_title ? alt_title : rank].")
+ to_chat(H, span_filter_notice("You are [job.total_positions == 1 ? "the" : "a"] [alt_title ? alt_title : rank]."))
if(job.supervisors)
- to_chat(H, "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.")
+ to_chat(H, span_filter_notice("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/radio/headset(H), slot_l_ear)
- to_chat(H, "To speak on your department's radio channel use :h. For the use of other channels, examine your headset.")
+ to_chat(H, span_filter_notice("To speak on your department's radio channel use :h. For the use of other channels, examine your headset."))
if(job.req_admin_notify)
- 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.")
+ to_chat(H, span_filter_notice("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.
@@ -559,13 +559,13 @@ var/global/datum/controller/occupations/job_master
// If even fallback login generation failed, just don't give them an email. The chance of this happening is astronomically low.
if(ntnet_global.does_email_exist(complete_login))
- to_chat(H, "You were not assigned an email address.")
+ to_chat(H, span_filter_notice("You were not assigned an email address."))
H.mind.store_memory("You were not assigned an email address.")
else
var/datum/computer_file/data/email_account/EA = new/datum/computer_file/data/email_account()
EA.password = GenerateKey()
EA.login = complete_login
- to_chat(H, "Your email account address is [EA.login] and the password is [EA.password]. This information has also been placed into your notes.")
+ to_chat(H, span_filter_notice("Your email account address is [EA.login] and the password is [EA.password]. This information has also been placed into your notes."))
H.mind.store_memory("Your email account address is [EA.login] and the password is [EA.password].")
// END EMAIL GENERATION
@@ -663,10 +663,10 @@ var/global/datum/controller/occupations/job_master
if(C && C.prefs.spawnpoint)
if(!(C.prefs.spawnpoint in using_map.allowed_spawns))
if(fail_deadly)
- to_chat(C, "Your chosen spawnpoint is unavailable for this map and your job requires a specific spawnpoint. Please correct your spawn point choice.")
+ to_chat(C, span_warning("Your chosen spawnpoint is unavailable for this map and your job requires a specific spawnpoint. Please correct your spawn point choice."))
return
else
- to_chat(C, "Your chosen spawnpoint ([C.prefs.spawnpoint]) is unavailable for the current map. Spawning you at one of the enabled spawn points instead.")
+ to_chat(C, span_warning("Your chosen spawnpoint ([C.prefs.spawnpoint]) is unavailable for the current map. Spawning you at one of the enabled spawn points instead."))
spawnpos = null
else
spawnpos = spawntypes[C.prefs.spawnpoint]
@@ -680,9 +680,9 @@ var/global/datum/controller/occupations/job_master
.["channel"] = spawnpos.announce_channel
else
if(fail_deadly)
- to_chat(C, "Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Please correct your spawn point choice.")
+ to_chat(C, span_warning("Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Please correct your spawn point choice."))
return
- 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, span_filter_warning("Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead."))
var/spawning = pick(latejoin)
.["turf"] = get_turf(spawning)
.["msg"] = "will arrive at the station shortly"
diff --git a/code/game/machinery/CableLayer.dm b/code/game/machinery/CableLayer.dm
index b64f04d16f..256e57bf18 100644
--- a/code/game/machinery/CableLayer.dm
+++ b/code/game/machinery/CableLayer.dm
@@ -18,7 +18,7 @@
/obj/machinery/cablelayer/attack_hand(mob/user as mob)
if(!cable&&!on)
- to_chat(user, "\The [src] doesn't have any cable loaded.")
+ to_chat(user, span_warning("\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"]")
@@ -29,7 +29,7 @@
var/result = load_cable(O)
if(!result)
- to_chat(user, "\The [src]'s cable reel is full.")
+ to_chat(user, span_warning("\The [src]'s cable reel is full."))
else
to_chat(user, "You load [result] lengths of cable into [src].")
return
@@ -45,7 +45,7 @@
var/obj/item/stack/cable_coil/CC = new (get_turf(src))
CC.set_amount(m)
else
- to_chat(usr, "There's no more cable on the reel.")
+ to_chat(usr, span_warning("There's no more cable on the reel."))
/obj/machinery/cablelayer/examine(mob/user)
. = ..()
diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm
index f7130034ff..d168286ee1 100644
--- a/code/game/machinery/OpTable.dm
+++ b/code/game/machinery/OpTable.dm
@@ -44,7 +44,7 @@
/obj/machinery/optable/attack_hand(mob/user as mob)
if(HULK in usr.mutations)
- visible_message("\The [usr] destroys \the [src]!")
+ visible_message(span_danger("\The [usr] destroys \the [src]!"))
density = FALSE
qdel(src)
return
@@ -78,7 +78,7 @@
if(C == user)
user.visible_message("[user] climbs on \the [src].","You climb on \the [src].")
else
- visible_message("\The [C] has been laid on \the [src] by [user].")
+ visible_message(span_notice("\The [C] has been laid on \the [src] by [user]."))
if(C.client)
C.client.perspective = EYE_PERSPECTIVE
C.client.eye = src
@@ -128,9 +128,9 @@
/obj/machinery/optable/proc/check_table(mob/living/carbon/patient, mob/living/user)
check_victim()
if(victim && get_turf(victim) == get_turf(src) && victim.lying)
- to_chat(user, "\The [src] is already occupied!")
+ to_chat(user, span_warning("\The [src] is already occupied!"))
return 0
if(patient.buckled)
- to_chat(user, "Unbuckle \the [patient] first!")
+ to_chat(user, span_notice("Unbuckle \the [patient] first!"))
return 0
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm
index 68ec7f0a5c..aee50b868a 100644
--- a/code/game/machinery/Sleeper.dm
+++ b/code/game/machinery/Sleeper.dm
@@ -44,11 +44,11 @@
if(!sleeper)
findsleeper()
if(!sleeper)
- to_chat(user, "Sleeper not found!")
+ to_chat(user, span_notice("Sleeper not found!"))
return
if(panel_open)
- to_chat(user, "Close the maintenance panel first.")
+ to_chat(user, span_notice("Close the maintenance panel first."))
return
if(sleeper)
@@ -169,7 +169,7 @@
/obj/machinery/sleeper/attack_hand(var/mob/user)
if(!controls_inside)
return FALSE
-
+
if(user == occupant)
tgui_interact(user)
@@ -299,7 +299,7 @@
if(!controls_inside && usr == occupant)
return
if(panel_open)
- to_chat(usr, "Close the maintenance panel first.")
+ to_chat(usr, span_notice("Close the maintenance panel first."))
return
. = TRUE
@@ -309,7 +309,7 @@
return
if(occupant.stat == DEAD)
var/datum/gender/G = gender_datums[occupant.get_visible_gender()]
- to_chat(usr, "This person has no life to preserve anymore. Take [G.him] to a department capable of reanimating [G.him].")
+ to_chat(usr, span_danger("This person has no life to preserve anymore. Take [G.him] to a department capable of reanimating [G.him]."))
return
var/chemical = params["chemid"]
var/amount = text2num(params["amount"])
@@ -318,7 +318,7 @@
if(occupant.health > min_health) //|| (chemical in emergency_chems))
inject_chemical(usr, chemical, amount)
else
- to_chat(usr, "This person is not in good enough condition for sleepers to be effective! Use another means of treatment, such as cryogenics!")
+ to_chat(usr, span_danger("This person is not in good enough condition for sleepers to be effective! Use another means of treatment, such as cryogenics!"))
if("removebeaker")
remove_beaker()
if("togglefilter")
@@ -384,9 +384,9 @@
beaker = I
user.drop_item()
I.loc = src
- user.visible_message("\The [user] adds \a [I] to \the [src].", "You add \a [I] to \the [src].")
+ user.visible_message("\The [user] adds \a [I] to \the [src].", span_notice("You add \a [I] to \the [src]."))
else
- to_chat(user, "\The [src] has a beaker already.")
+ to_chat(user, span_warning("\The [src] has a beaker already."))
return
if(!occupant)
if(default_deconstruction_screwdriver(user, I))
@@ -405,7 +405,7 @@
if(DEAD)
return
if(UNCONSCIOUS)
- to_chat(usr, "You struggle through the haze to hit the eject button. This will take a couple of minutes...")
+ to_chat(usr, span_notice("You struggle through the haze to hit the eject button. This will take a couple of minutes..."))
if(do_after(usr, 2 MINUTES, src))
go_out()
if(CONSCIOUS)
@@ -460,10 +460,10 @@
if(stat & (BROKEN|NOPOWER))
return
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
if(!ishuman(M))
- to_chat(user, "\The [src] is not designed for that organism!")
+ to_chat(user, span_warning("\The [src] is not designed for that organism!"))
return
if(M == user)
visible_message("\The [user] starts climbing into \the [src].")
@@ -472,7 +472,7 @@
if(do_after(user, 20))
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
M.stop_pulling()
if(M.client)
diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm
index 87bca28ed1..755b483d4e 100644
--- a/code/game/machinery/adv_med.dm
+++ b/code/game/machinery/adv_med.dm
@@ -37,22 +37,22 @@
if(istype(G, /obj/item/grab))
var/obj/item/grab/H = G
if(panel_open)
- to_chat(user, "Close the maintenance panel first.")
+ to_chat(user, span_notice("Close the maintenance panel first."))
return
if(!ismob(H.affecting))
return
if(!ishuman(H.affecting))
- to_chat(user, "\The [src] is not designed for that organism!")
+ to_chat(user, span_warning("\The [src] is not designed for that organism!"))
return
if(occupant)
- to_chat(user, "\The [src] is already occupied!")
+ to_chat(user, span_notice("\The [src] is already occupied!"))
return
if(H.affecting.has_buckled_mobs())
to_chat(user, span_warning("\The [H.affecting] has other entities attached to it. Remove them first."))
return
var/mob/M = H.affecting
if(M.abiotic())
- to_chat(user, "Subject cannot have abiotic items on.")
+ to_chat(user, span_notice("Subject cannot have abiotic items on."))
return
M.forceMove(src)
occupant = M
@@ -79,16 +79,16 @@
if(!ishuman(user) && !isrobot(user))
return 0 //not a borg or human
if(panel_open)
- to_chat(user, "Close the maintenance panel first.")
+ to_chat(user, span_notice("Close the maintenance panel first."))
return 0 //panel open
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_notice("\The [src] is already occupied."))
return 0 //occupied
if(O.buckled)
return 0
if(O.abiotic())
- to_chat(user, "Subject cannot have abiotic items on.")
+ to_chat(user, span_notice("Subject cannot have abiotic items on."))
return 0
if(O.has_buckled_mobs())
to_chat(user, span_warning("\The [O] has other entities attached to it. Remove them first."))
@@ -350,7 +350,7 @@
eject()
if("print_p")
var/atom/target = console ? console : src
- visible_message("[target] rattles and prints out a sheet of paper.")
+ visible_message(span_notice("[target] rattles and prints out a sheet of paper."))
playsound(src, 'sound/machines/printer.ogg', 50, 1)
var/obj/item/paper/P = new /obj/item/paper(get_turf(target))
var/name = occupant ? occupant.name : "Unknown"
@@ -579,9 +579,9 @@
var/obj/machinery/bodyscanner/C = P.connectable
scanner = C
C.console = src
- to_chat(user, " You link the [src] to the [P.connectable]!")
+ to_chat(user, span_warning(" You link the [src] to the [P.connectable]!"))
else
- to_chat(user, " You store the [src] in the [P]'s buffer!")
+ to_chat(user, span_warning(" You store the [src] in the [P]'s buffer!"))
P.connectable = src
return
else
@@ -641,11 +641,11 @@
if(!scanner)
findscanner()
if(!scanner)
- to_chat(user, "Scanner not found!")
+ to_chat(user, span_notice("Scanner not found!"))
return
if(scanner.panel_open)
- to_chat(user, "Close the maintenance panel first.")
+ to_chat(user, span_notice("Close the maintenance panel first."))
return
if(scanner)
diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm
index bad191ee09..a891a03f82 100644
--- a/code/game/machinery/ai_slipper.dm
+++ b/code/game/machinery/ai_slipper.dm
@@ -50,7 +50,7 @@
if(user.machine==src)
attack_hand(usr)
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
return
@@ -125,4 +125,4 @@
if(uses >= 0)
cooldown_on = 0
power_change()
- return
\ No newline at end of file
+ return
diff --git a/code/game/machinery/air_alarm.dm b/code/game/machinery/air_alarm.dm
index f23fa71e8e..aff190e5e3 100644
--- a/code/game/machinery/air_alarm.dm
+++ b/code/game/machinery/air_alarm.dm
@@ -819,9 +819,9 @@
else
if(allowed(usr) && !wires.is_cut(WIRE_IDSCAN))
locked = !locked
- to_chat(user, "You [locked ? "lock" : "unlock"] the Air Alarm interface.")
+ to_chat(user, span_notice("You [locked ? "lock" : "unlock"] the Air Alarm interface."))
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
/obj/machinery/alarm/AltClick()
diff --git a/code/game/machinery/airconditioner_vr.dm b/code/game/machinery/airconditioner_vr.dm
index 6549237274..36dd29aa40 100644
--- a/code/game/machinery/airconditioner_vr.dm
+++ b/code/game/machinery/airconditioner_vr.dm
@@ -38,7 +38,7 @@
return
if(I.has_tool_quality(TOOL_WRENCH))
anchored = !anchored
- visible_message("\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].")
+ visible_message(span_notice("\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user]."))
playsound(src, I.usesound, 75, 1)
if(anchored)
connect_to_network()
@@ -63,7 +63,7 @@
if(!anchored)
return
on = !on
- user.visible_message("[user] [on ? "activates" : "deactivates"] \the [src].","You [on ? "activate" : "deactivate"] \the [src].")
+ user.visible_message(span_notice("[user] [on ? "activates" : "deactivates"] \the [src]."),span_notice("You [on ? "activate" : "deactivate"] \the [src]."))
if(!on)
change_mode(MODE_IDLE)
update_icon()
@@ -153,7 +153,7 @@
var/datum/effect/effect/system/spark_spread/s = new
s.set_up(5, 0, T)
s.start()
- visible_message("\The [src] bursts into flame!")
+ visible_message(span_warning("\The [src] bursts into flame!"))
#undef MODE_IDLE
#undef MODE_HEATING
diff --git a/code/game/machinery/atm_ret_field.dm b/code/game/machinery/atm_ret_field.dm
index 7a59b52a5b..96f1500a9f 100644
--- a/code/game/machinery/atm_ret_field.dm
+++ b/code/game/machinery/atm_ret_field.dm
@@ -43,11 +43,11 @@
/obj/machinery/atmospheric_field_generator/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_CROWBAR) && isactive)
if(!src) return
- to_chat(user, "You can't open the ARF-G whilst it's running!")
+ to_chat(user, span_warning("You can't open the ARF-G whilst it's running!"))
return
if(W.has_tool_quality(TOOL_CROWBAR) && !isactive)
if(!src) return
- to_chat(user, "You [hatch_open? "close" : "open"] \the [src]'s access hatch.")
+ to_chat(user, span_notice("You [hatch_open? "close" : "open"] \the [src]'s access hatch."))
hatch_open = !hatch_open
update_icon()
if(alwaysactive && wires_intact)
@@ -55,13 +55,13 @@
return
if(hatch_open && W.has_tool_quality(TOOL_MULTITOOL))
if(!src) return
- to_chat(user, "You toggle \the [src]'s activation behavior to [alwaysactive? "emergency" : "always-on"].")
+ to_chat(user, span_notice("You toggle \the [src]'s activation behavior to [alwaysactive? "emergency" : "always-on"]."))
alwaysactive = !alwaysactive
update_icon()
return
if(hatch_open && W.has_tool_quality(TOOL_WIRECUTTER))
if(!src) return
- to_chat(user, "You [wires_intact? "cut" : "mend"] \the [src]'s wires!")
+ to_chat(user, span_warning("You [wires_intact? "cut" : "mend"] \the [src]'s wires!"))
wires_intact = !wires_intact
update_icon()
return
@@ -70,13 +70,13 @@
var/obj/item/weldingtool/WT = W.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5) // uses up 5 fuel.
- to_chat(user, "You need more fuel to complete this task.")
+ to_chat(user, span_warning("You need more fuel to complete this task."))
return
user.visible_message("[user] starts to disassemble \the [src].", "You start to disassemble \the [src].")
playsound(src, WT.usesound, 50, 1)
if(do_after(user,15 * W.toolspeed))
if(!src || !user || !WT.remove_fuel(5, user)) return
- to_chat(user, "You fully disassemble \the [src]. There were no salvageable parts.")
+ to_chat(user, span_notice("You fully disassemble \the [src]. There were no salvageable parts."))
qdel(src)
return
@@ -141,7 +141,7 @@
isactive = TRUE
icon_state = "arfg_on"
new field_type (src.loc)
- src.visible_message("The ARF-G crackles to life!","You hear an ARF-G coming online!")
+ src.visible_message(span_warning("The ARF-G crackles to life!"),span_warning("You hear an ARF-G coming online!"))
update_use_power(USE_POWER_ACTIVE)
return
diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm
index 1ffa86bfea..eb532c702f 100644
--- a/code/game/machinery/atmoalter/canister.dm
+++ b/code/game/machinery/atmoalter/canister.dm
@@ -250,13 +250,13 @@ update_flag
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 20 * WT.toolspeed))
if(!src || !WT.isOn()) return
- to_chat(user, "You deconstruct the [src].")
+ to_chat(user, span_notice("You deconstruct the [src]."))
new /obj/item/stack/material/steel( src.loc, 10)
qdel(src)
return
//Voreend
if(!W.has_tool_quality(TOOL_WRENCH) && !istype(W, /obj/item/tank) && !istype(W, /obj/item/analyzer) && !istype(W, /obj/item/pda))
- visible_message("\The [user] hits \the [src] with \a [W]!")
+ visible_message(span_warning("\The [user] hits \the [src] with \a [W]!"))
src.health -= W.force
src.add_fingerprint(user)
healthcheck()
diff --git a/code/game/machinery/atmoalter/clamp.dm b/code/game/machinery/atmoalter/clamp.dm
index a77999a661..ba01be8538 100644
--- a/code/game/machinery/atmoalter/clamp.dm
+++ b/code/game/machinery/atmoalter/clamp.dm
@@ -45,7 +45,7 @@
open()
else
close()
- to_chat(user, "You turn [open ? "off" : "on"] \the [src]")
+ to_chat(user, span_notice("You turn [open ? "off" : "on"] \the [src]"))
return TRUE
/obj/machinery/clamp/Destroy()
@@ -118,9 +118,9 @@
return
if(open && over_object == usr && Adjacent(usr))
- to_chat(usr, "You begin to remove \the [src]...")
+ to_chat(usr, span_notice("You begin to remove \the [src]..."))
if (do_after(usr, 30, src))
- to_chat(usr, "You have removed \the [src].")
+ to_chat(usr, span_notice("You have removed \the [src]."))
var/obj/item/clamp/C = new/obj/item/clamp(src.loc)
C.forceMove(usr.loc)
if(ishuman(usr))
@@ -128,7 +128,7 @@
qdel(src)
return
else
- to_chat(usr, "You can't remove \the [src] while it's active!")
+ to_chat(usr, span_warning("You can't remove \the [src] while it's active!"))
/obj/item/clamp
name = "stasis clamp"
@@ -142,13 +142,13 @@
return
if (istype(A, /obj/machinery/atmospherics/pipe/simple))
- to_chat(user, "You begin to attach \the [src] to \the [A]...")
+ to_chat(user, span_notice("You begin to attach \the [src] to \the [A]..."))
var/C = locate(/obj/machinery/clamp) in get_turf(A)
if (do_after(user, 30, src) && !C)
if(!user.unEquip(src))
return
- to_chat(user, "You have attached \the [src] to \the [A].")
+ to_chat(user, span_notice("You have attached \the [src] to \the [A]."))
new/obj/machinery/clamp(A.loc, A)
qdel(src)
if(C)
- to_chat(user, "\The [C] is already attached to the pipe at this location!")
+ to_chat(user, span_notice("\The [C] is already attached to the pipe at this location!"))
diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm
index a3529d42d0..a64f64448f 100644
--- a/code/game/machinery/atmoalter/meter.dm
+++ b/code/game/machinery/atmoalter/meter.dm
@@ -80,10 +80,10 @@
. = ..()
if(get_dist(user, src) > 3 && !(istype(user, /mob/living/silicon/ai) || istype(user, /mob/observer/dead)))
- . += "You are too far away to read it."
+ . += span_warning("You are too far away to read it.")
else if(stat & (NOPOWER|BROKEN))
- . += "The display is off."
+ . += span_warning("The display is off.")
else if(target)
var/datum/gas_mixture/environment = target.return_air()
@@ -107,11 +107,11 @@
/obj/machinery/meter/attackby(var/obj/item/W, var/mob/user)
if(W.has_tool_quality(TOOL_WRENCH))
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src]...")
+ to_chat(user, span_notice("You begin to unfasten \the [src]..."))
if(do_after(user, 40 * W.toolspeed))
user.visible_message( \
"\The [user] unfastens \the [src].", \
- "You have unfastened \the [src].", \
+ span_notice("You have unfastened \the [src]."), \
"You hear ratchet.")
new /obj/item/pipe_meter(get_turf(src))
qdel(src)
@@ -125,7 +125,7 @@
target = pipes_on_turf[1]
pipes_on_turf.Remove(target)
pipes_on_turf.Add(target)
- to_chat(user, "Pipe meter set to moniter \the [target].")
+ to_chat(user, span_notice("Pipe meter set to moniter \the [target]."))
return
return ..()
diff --git a/code/game/machinery/atmoalter/portable_atmospherics.dm b/code/game/machinery/atmoalter/portable_atmospherics.dm
index 3e899b3231..cc17f16d1f 100644
--- a/code/game/machinery/atmoalter/portable_atmospherics.dm
+++ b/code/game/machinery/atmoalter/portable_atmospherics.dm
@@ -120,7 +120,7 @@
else if (W.has_tool_quality(TOOL_WRENCH))
if(connected_port)
disconnect()
- to_chat(user, "You disconnect \the [src] from the port.")
+ to_chat(user, span_notice("You disconnect \the [src] from the port."))
update_icon()
playsound(src, W.usesound, 50, 1)
return
@@ -128,15 +128,15 @@
var/obj/machinery/atmospherics/portables_connector/possible_port = locate(/obj/machinery/atmospherics/portables_connector/) in loc
if(possible_port)
if(connect(possible_port))
- to_chat(user, "You connect \the [src] to the port.")
+ to_chat(user, span_notice("You connect \the [src] to the port."))
update_icon()
playsound(src, W.usesound, 50, 1)
return
else
- to_chat(user, "\The [src] failed to connect to the port.")
+ to_chat(user, span_notice("\The [src] failed to connect to the port."))
return
else
- to_chat(user, "Nothing happens.")
+ to_chat(user, span_notice("Nothing happens."))
return
return
@@ -169,16 +169,16 @@
C.add_fingerprint(user)
cell = C
C.loc = src
- user.visible_message("[user] opens the panel on [src] and inserts [C].", "You open the panel on [src] and insert [C].")
+ user.visible_message(span_notice("[user] opens the panel on [src] and inserts [C]."), span_notice("You open the panel on [src] and insert [C]."))
power_change()
return
if(I.has_tool_quality(TOOL_SCREWDRIVER) && removeable_cell)
if(!cell)
- to_chat(user, "There is no power cell installed.")
+ to_chat(user, span_warning("There is no power cell installed."))
return
- user.visible_message("[user] opens the panel on [src] and removes [cell].", "You open the panel on [src] and remove [cell].")
+ user.visible_message(span_notice("[user] opens the panel on [src] and removes [cell]."), span_notice("You open the panel on [src] and remove [cell]."))
playsound(src, I.usesound, 50, 1)
cell.add_fingerprint(user)
cell.loc = src.loc
diff --git a/code/game/machinery/atmoalter/pump_vr.dm b/code/game/machinery/atmoalter/pump_vr.dm
index 858c4230cb..5ebf3dc65f 100644
--- a/code/game/machinery/atmoalter/pump_vr.dm
+++ b/code/game/machinery/atmoalter/pump_vr.dm
@@ -23,7 +23,7 @@
name = "[name] (ID [id])"
/obj/machinery/portable_atmospherics/powered/pump/huge/attack_hand(var/mob/user)
- to_chat(user, "You can't directly interact with this machine. Use the pump control console.")
+ to_chat(user, span_notice("You can't directly interact with this machine. Use the pump control console."))
/obj/machinery/portable_atmospherics/powered/pump/huge/update_icon()
cut_overlays()
@@ -85,12 +85,12 @@
/obj/machinery/portable_atmospherics/powered/pump/huge/attackby(var/obj/item/I, var/mob/user)
if(I.has_tool_quality(TOOL_WRENCH))
if(on)
- to_chat(user, "Turn \the [src] off first!")
+ to_chat(user, span_warning("Turn \the [src] off first!"))
return
anchored = !anchored
playsound(src, I.usesound, 50, 1)
- to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].")
+ to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
return
@@ -112,7 +112,7 @@
/obj/machinery/portable_atmospherics/powered/pump/huge/stationary/attackby(var/obj/item/I, var/mob/user)
if(I.has_tool_quality(TOOL_WRENCH))
- to_chat(user, "The bolts are too tight for you to unscrew!")
+ to_chat(user, span_warning("The bolts are too tight for you to unscrew!"))
return
..()
@@ -126,4 +126,4 @@
..()
if(!(stat & (NOPOWER|BROKEN)))
on = 1
- update_icon()
\ No newline at end of file
+ update_icon()
diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm
index eee8d761d5..0ca93db9b6 100644
--- a/code/game/machinery/atmoalter/scrubber.dm
+++ b/code/game/machinery/atmoalter/scrubber.dm
@@ -174,7 +174,7 @@
name = "[name] (ID [id])"
/obj/machinery/portable_atmospherics/powered/scrubber/huge/attack_hand(var/mob/user as mob)
- to_chat(user, "You can't directly interact with this machine. Use the scrubber control console.")
+ to_chat(user, span_notice("You can't directly interact with this machine. Use the scrubber control console."))
/obj/machinery/portable_atmospherics/powered/scrubber/huge/update_icon()
src.overlays = 0
@@ -220,12 +220,12 @@
/obj/machinery/portable_atmospherics/powered/scrubber/huge/attackby(var/obj/item/I as obj, var/mob/user as mob)
if(I.has_tool_quality(TOOL_WRENCH))
if(on)
- to_chat(user, "Turn \the [src] off first!")
+ to_chat(user, span_warning("Turn \the [src] off first!"))
return
anchored = !anchored
playsound(src, I.usesound, 50, 1)
- to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].")
+ to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
return
@@ -251,7 +251,7 @@
/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/attackby(var/obj/item/I as obj, var/mob/user as mob)
if(I.has_tool_quality(TOOL_WRENCH))
- to_chat(user, "The bolts are too tight for you to unscrew!")
+ to_chat(user, span_warning("The bolts are too tight for you to unscrew!"))
return
..()
diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm
index 5f4523f76d..efa21c3b1f 100644
--- a/code/game/machinery/autolathe.dm
+++ b/code/game/machinery/autolathe.dm
@@ -99,7 +99,7 @@
return wires.Interact(user)
if(disabled)
- to_chat(user, "\The [src] is disabled!")
+ to_chat(user, span_danger("\The [src] is disabled!"))
return
if(shocked)
@@ -109,7 +109,7 @@
/obj/machinery/autolathe/attackby(var/obj/item/O as obj, var/mob/user as mob)
if(busy)
- to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.")
+ to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
return
if(default_deconstruction_screwdriver(user, O))
@@ -150,7 +150,7 @@
add_fingerprint(usr)
if(busy)
- to_chat(usr, "The autolathe is busy. Please wait for completion of previous operation.")
+ to_chat(usr, span_notice("The autolathe is busy. Please wait for completion of previous operation."))
return
switch(action)
if("make")
@@ -282,4 +282,4 @@
. = ..()
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)
if(in_range(user, src) || isobserver(user))
- . += "The status display reads: Storing up to [materials.max_amount] material units.
Material consumption at [mat_efficiency*100]%."
+ . += span_notice("The status display reads: Storing up to [materials.max_amount] material units.
Material consumption at [mat_efficiency*100]%.")
diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm
index a38083ccac..d9fe85fcbd 100644
--- a/code/game/machinery/biogenerator.dm
+++ b/code/game/machinery/biogenerator.dm
@@ -166,11 +166,11 @@
return
var/cost = round(br.cost / build_eff)
if(cost > points)
- to_chat(usr, "Insufficient biomass.")
+ to_chat(usr, span_danger("Insufficient biomass."))
return
var/amt_to_actually_dispense = round(min(beaker.reagents.get_free_space(), br.reagent_amt))
if(amt_to_actually_dispense <= 0)
- to_chat(usr, "The loaded beaker is full!")
+ to_chat(usr, span_danger("The loaded beaker is full!"))
return
points -= (cost * (amt_to_actually_dispense / br.reagent_amt))
beaker.reagents.add_reagent(br.reagent_id, amt_to_actually_dispense)
@@ -179,7 +179,7 @@
var/cost = round(bi.cost / build_eff)
if(cost > points)
- to_chat(usr, "Insufficient biomass.")
+ to_chat(usr, span_danger("Insufficient biomass."))
return
points -= cost
@@ -218,43 +218,43 @@
return
if(istype(O, /obj/item/reagent_containers/glass))
if(beaker)
- to_chat(user, "\The [src] is already loaded.")
+ to_chat(user, span_notice("\The [src] is already loaded."))
else
user.remove_from_mob(O)
O.loc = src
beaker = O
updateUsrDialog()
else if(processing)
- to_chat(user, "\The [src] is currently processing.")
+ to_chat(user, span_notice("\The [src] is currently processing."))
else if(istype(O, /obj/item/storage/bag/plants))
var/i = 0
for(var/obj/item/reagent_containers/food/snacks/grown/G in contents)
i++
if(i >= 10)
- to_chat(user, "\The [src] is already full! Activate it.")
+ to_chat(user, span_notice("\The [src] is already full! Activate it."))
else
for(var/obj/item/reagent_containers/food/snacks/grown/G in O.contents)
G.loc = src
i++
if(i >= 10)
- to_chat(user, "You fill \the [src] to its capacity.")
+ to_chat(user, span_notice("You fill \the [src] to its capacity."))
break
if(i < 10)
- to_chat(user, "You empty \the [O] into \the [src].")
+ to_chat(user, span_notice("You empty \the [O] into \the [src]."))
else if(!istype(O, /obj/item/reagent_containers/food/snacks/grown))
- to_chat(user, "You cannot put this in \the [src].")
+ to_chat(user, span_notice("You cannot put this in \the [src]."))
else
var/i = 0
for(var/obj/item/reagent_containers/food/snacks/grown/G in contents)
i++
if(i >= 10)
- to_chat(user, "\The [src] is full! Activate it.")
+ to_chat(user, span_notice("\The [src] is full! Activate it."))
else
user.remove_from_mob(O)
O.loc = src
- to_chat(user, "You put \the [O] in \the [src]")
+ to_chat(user, span_notice("You put \the [O] in \the [src]"))
update_icon()
return
@@ -269,7 +269,7 @@
if(stat) //NOPOWER etc
return
if(processing)
- to_chat(usr, "The biogenerator is in the process of working.")
+ to_chat(usr, span_notice("The biogenerator is in the process of working."))
return
var/S = 0
for(var/obj/item/reagent_containers/food/snacks/grown/I in contents)
@@ -289,7 +289,7 @@
playsound(src, 'sound/machines/biogenerator_end.ogg', 40, 1)
update_icon()
else
- to_chat(usr, "Error: No growns inside. Please insert growns.")
+ to_chat(usr, span_warning("Error: No growns inside. Please insert growns."))
return
/obj/machinery/biogenerator/RefreshParts()
diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm
index fdc0659f07..d3fea7a664 100644
--- a/code/game/machinery/bioprinter.dm
+++ b/code/game/machinery/bioprinter.dm
@@ -86,9 +86,9 @@
. = ..()
var/biomass = get_biomass_volume()
if(biomass)
- . += "It is loaded with [biomass] units of biomass."
+ . += span_notice("It is loaded with [biomass] units of biomass.")
else
- . += "It is not loaded with any biomass."
+ . += span_notice("It is not loaded with any biomass.")
/obj/machinery/organ_printer/RefreshParts()
// Print Delay updating
@@ -125,11 +125,11 @@
return
if(panel_open)
- to_chat(user, "Close the panel first!")
+ to_chat(user, span_warning("Close the panel first!"))
return
if(printing)
- to_chat(user, "\The [src] is busy!")
+ to_chat(user, span_notice("\The [src] is busy!"))
return
if(container)
@@ -137,7 +137,7 @@
if(response == "Print Limbs")
printing_menu(user)
else
- to_chat(user, "\The [src] can't operate without a reagent reservoir!")
+ to_chat(user, span_warning("\The [src] can't operate without a reagent reservoir!"))
/obj/machinery/organ_printer/proc/printing_menu(mob/user)
var/list/possible_list = list()
@@ -216,7 +216,7 @@
return 0
if(!loaded_dna || !loaded_dna["donor"])
- visible_message("\The [src] displays a warning: 'No DNA saved. Insert a blood sample.'")
+ visible_message(span_info("\The [src] displays a warning: 'No DNA saved. Insert a blood sample.'"))
return 0
return 1
@@ -287,7 +287,7 @@
var/obj/item/organ/O = ..()
playsound(src, 'sound/machines/ding.ogg', 50, 1)
- visible_message("\The [src] dings, then spits out \a [O].")
+ visible_message(span_info("\The [src] dings, then spits out \a [O]."))
return O
/obj/machinery/organ_printer/flesh/attackby(obj/item/W, mob/user)
@@ -298,12 +298,12 @@
if(injected && injected.data)
loaded_dna = injected.data
S.reagents.remove_reagent("blood", injected.volume)
- to_chat(user, "You scan the blood sample into the bioprinter.")
+ to_chat(user, span_info("You scan the blood sample into the bioprinter."))
return
else if(istype(W,/obj/item/reagent_containers/glass))
var/obj/item/reagent_containers/glass/G = W
if(container)
- to_chat(user, "\The [src] already has a container loaded!")
+ to_chat(user, span_warning("\The [src] already has a container loaded!"))
return
else if(do_after(user, 1 SECOND))
user.visible_message("[user] has loaded \the [G] into \the [src].", "You load \the [G] into \the [src].")
@@ -352,22 +352,22 @@
O.robotize()
O.status |= ORGAN_CUT_AWAY // robotize() resets status to 0
playsound(src, 'sound/machines/ding.ogg', 50, 1)
- audible_message("\The [src] dings, then spits out \a [O].")
+ audible_message(span_info("\The [src] dings, then spits out \a [O]."))
return O
/obj/machinery/organ_printer/robot/attackby(var/obj/item/W, var/mob/user)
if(istype(W, /obj/item/stack/material) && W.get_material_name() == matter_type)
if((max_stored_matter-stored_matter) < matter_amount_per_sheet)
- to_chat(user, "\The [src] is too full.")
+ to_chat(user, span_warning("\The [src] is too full."))
return
var/obj/item/stack/S = W
var/space_left = max_stored_matter - stored_matter
var/sheets_to_take = min(S.amount, FLOOR(space_left/matter_amount_per_sheet, 1))
if(sheets_to_take <= 0)
- to_chat(user, "\The [src] is too full.")
+ to_chat(user, span_warning("\The [src] is too full."))
return
stored_matter = min(max_stored_matter, stored_matter + (sheets_to_take*matter_amount_per_sheet))
- to_chat(user, "\The [src] processes \the [W]. Levels of stored matter now: [stored_matter]")
+ to_chat(user, span_info("\The [src] processes \the [W]. Levels of stored matter now: [stored_matter]"))
S.use(sheets_to_take)
return
else if(istype(W,/obj/item/reagent_containers/syringe)) //TODO: Make this actuall empty the syringe
@@ -375,8 +375,8 @@
var/datum/reagent/blood/injected = locate() in S.reagents.reagent_list //Grab some blood
if(injected && injected.data)
loaded_dna = injected.data
- to_chat(user, "You scan the blood sample into the bioprinter.")
+ to_chat(user, span_info("You scan the blood sample into the bioprinter."))
return
return ..()
// END ROBOT ORGAN PRINTER
-*/
\ No newline at end of file
+*/
diff --git a/code/game/machinery/bomb_tester_vr.dm b/code/game/machinery/bomb_tester_vr.dm
index 3387ebb735..e45c329f37 100644
--- a/code/game/machinery/bomb_tester_vr.dm
+++ b/code/game/machinery/bomb_tester_vr.dm
@@ -102,7 +102,7 @@
tank2 = I
update_icon()
SStgui.update_uis(src)
- to_chat(user, "You connect \the [I] to \the [src]'s [I==tank1 ? "primary" : "secondary"] slot.")
+ to_chat(user, span_notice("You connect \the [I] to \the [src]'s [I==tank1 ? "primary" : "secondary"] slot."))
return
..()
@@ -128,7 +128,7 @@
data["tank2ref"] = REF(tank2)
data["canister"] = test_canister
data["sim_canister_output"] = sim_canister_output
-
+
return data
/obj/machinery/bomb_tester/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
@@ -149,9 +149,9 @@
text_mode = "tank transfer valve detonation"
if(MODE_CANISTER)
text_mode = "canister-assisted single gas tank detonation"
- to_chat(usr, "[src] set to simulate a [text_mode].")
+ to_chat(usr, span_notice("[src] set to simulate a [text_mode]."))
return TRUE
-
+
if("add_tank")
if(istype(usr.get_active_hand(), /obj/item/tank))
var/obj/item/tank/T = usr.get_active_hand()
@@ -161,14 +161,14 @@
else if(slot == 2 && !tank2)
tank2 = T
else
- to_chat(usr, "Slot [slot] is full.")
+ to_chat(usr, span_warning("Slot [slot] is full."))
return
-
+
usr.drop_item(T)
T.forceMove(src)
return TRUE
else
- to_chat(usr, "You must be wielding a tank to insert it!")
+ to_chat(usr, span_warning("You must be wielding a tank to insert it!"))
if("remove_tank")
var/obj/item/tank/T = locate(params["ref"]) in list(tank1, tank2)
diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm
index 3611c33f92..f3e034ba6e 100644
--- a/code/game/machinery/camera/camera.dm
+++ b/code/game/machinery/camera/camera.dm
@@ -124,7 +124,7 @@
if (istype(AM, /obj))
var/obj/O = AM
if (O.throwforce >= src.toughness)
- visible_message("[src] was hit by [O].")
+ visible_message(span_warning("[src] was hit by [O]."))
take_damage(O.throwforce)
/obj/machinery/camera/proc/setViewRange(var/num = 7)
@@ -139,7 +139,7 @@
set_status(0)
user.do_attack_animation(src)
user.setClickCooldown(user.get_attack_speed())
- visible_message("\The [user] slashes at [src]!")
+ visible_message(span_warning("\The [user] slashes at [src]!"))
playsound(src, 'sound/weapons/slash.ogg', 100, 1)
add_hiddenprint(user)
destroy()
@@ -150,7 +150,7 @@
set_status(0)
S.do_attack_animation(src)
S.setClickCooldown(user.get_attack_speed())
- visible_message("\The [user] [pick(S.attacktext)] \the [src]!")
+ visible_message(span_warning("\The [user] [pick(S.attacktext)] \the [src]!"))
playsound(src, S.attack_sound, 100, 1)
add_hiddenprint(user)
destroy()
@@ -160,11 +160,11 @@
update_coverage()
// DECONSTRUCTION
if(W.has_tool_quality(TOOL_SCREWDRIVER))
- //to_chat(user, "You start to [panel_open ? "close" : "open"] the camera's panel.")
+ //to_chat(user, span_notice("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"]!",
- "You screw the camera's panel [panel_open ? "open" : "closed"].")
+ user.visible_message(span_warning("[user] screws the camera's panel [panel_open ? "open" : "closed"]!"),
+ span_notice("You screw the camera's panel [panel_open ? "open" : "closed"]."))
playsound(src, W.usesound, 50, 1)
else if((W.has_tool_quality(TOOL_WIRECUTTER) || istype(W, /obj/item/multitool)) && panel_open)
@@ -181,10 +181,10 @@
assembly.dir = src.dir
if(stat & BROKEN)
assembly.state = 2
- to_chat(user, "You repaired \the [src] frame.")
+ to_chat(user, span_notice("You repaired \the [src] frame."))
else
assembly.state = 1
- to_chat(user, "You cut \the [src] free from the wall.")
+ to_chat(user, span_notice("You cut \the [src] free from the wall."))
new /obj/item/stack/cable_coil(src.loc, length=2)
assembly = null //so qdel doesn't eat it.
qdel(src)
@@ -219,20 +219,20 @@
else if (istype(W, /obj/item/camera_bug))
if (!src.can_use())
- to_chat(user, "Camera non-functional.")
+ to_chat(user, span_warning("Camera non-functional."))
return
if (src.bugged)
- to_chat(user, "Camera bug removed.")
+ to_chat(user, span_notice("Camera bug removed."))
src.bugged = 0
else
- to_chat(user, "Camera bugged.")
+ to_chat(user, span_notice("Camera bugged."))
src.bugged = 1
else if(W.damtype == BRUTE || W.damtype == BURN) //bashing cameras
user.setClickCooldown(user.get_attack_speed(W))
if (W.force >= src.toughness)
user.do_attack_animation(src)
- visible_message("[src] has been [LAZYLEN(W.attack_verb) ? pick(W.attack_verb) : "attacked"] with [W] by [user]!")
+ visible_message(span_warning("[src] has been [LAZYLEN(W.attack_verb) ? pick(W.attack_verb) : "attacked"] with [W] by [user]!"))
if (istype(W, /obj/item)) //is it even possible to get into attackby() with non-items?
var/obj/item/I = W
if (I.hitsound)
@@ -253,17 +253,17 @@
set_status(!src.status)
if (!(src.status))
if(user)
- visible_message(" [user] has deactivated [src]!")
+ visible_message(span_notice(" [user] has deactivated [src]!"))
else
- visible_message(" [src] clicks and shuts down. ")
+ visible_message(span_notice(" [src] clicks and shuts down. "))
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
icon_state = "[initial(icon_state)]1"
add_hiddenprint(user)
else
if(user)
- visible_message(" [user] has reactivated [src]!")
+ visible_message(span_notice(" [user] has reactivated [src]!"))
else
- visible_message(" [src] clicks and reactivates itself. ")
+ visible_message(span_notice(" [src] clicks and reactivates itself. "))
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
icon_state = initial(icon_state)
add_hiddenprint(user)
@@ -380,7 +380,7 @@
return 0
// Do after stuff here
- to_chat(user, "You start to weld [src]..")
+ to_chat(user, span_notice("You start to weld [src].."))
playsound(src, WT.usesound, 50, 1)
WT.eyecheck(user)
busy = 1
@@ -397,7 +397,7 @@
return
if(stat & BROKEN)
- to_chat(user, "\The [src] is broken.")
+ to_chat(user, span_warning("\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 e7d8d0ad12..67824ecb3f 100644
--- a/code/game/machinery/camera/camera_assembly.dm
+++ b/code/game/machinery/camera/camera_assembly.dm
@@ -60,10 +60,10 @@
if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = W
if(C.use(2))
- to_chat(user, "You add wires to the assembly.")
+ to_chat(user, span_notice("You add wires to the assembly."))
state = 3
else
- to_chat(user, "You need 2 coils of wire to wire the assembly.")
+ to_chat(user, span_warning("You need 2 coils of wire to wire the assembly."))
return
else if(W.has_tool_quality(TOOL_WELDER))
@@ -161,7 +161,7 @@
if(!WT.isOn())
return 0
- to_chat(user, "You start to weld the [src]..")
+ to_chat(user, span_notice("You start to weld the [src].."))
playsound(src, 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 4da6043182..501acc8481 100644
--- a/code/game/machinery/camera/tracking.dm
+++ b/code/game/machinery/camera/tracking.dm
@@ -47,20 +47,20 @@
loc = sanitize(loc)
if(!loc)
- to_chat(src, "Must supply a location name")
+ to_chat(src, span_warning("Must supply a location name"))
return
if(stored_locations.len >= max_locations)
- to_chat(src, "Cannot store additional locations. Remove one first")
+ to_chat(src, span_warning("Cannot store additional locations. Remove one first"))
return
if(loc in stored_locations)
- to_chat(src, "There is already a stored location by this name")
+ to_chat(src, span_warning("There is already a stored location by this name"))
return
var/L = src.eyeobj.getLoc()
if (InvalidPlayerTurf(get_turf(L)))
- to_chat(src, "Unable to store this location")
+ to_chat(src, span_warning("Unable to store this location"))
return
stored_locations[loc] = L
@@ -75,7 +75,7 @@
set desc = "Returns to the selected camera location"
if (!(loc in stored_locations))
- to_chat(src, "Location [loc] not found")
+ to_chat(src, span_warning("Location [loc] not found"))
return
var/L = stored_locations[loc]
@@ -87,7 +87,7 @@
set desc = "Deletes the selected camera location"
if (!(loc in stored_locations))
- to_chat(src, "Location [loc] not found")
+ to_chat(src, span_warning("Location [loc] not found"))
return
stored_locations.Remove(loc)
@@ -270,14 +270,14 @@
/mob/living/silicon/robot/tracking_initiated()
tracking_entities++
if(tracking_entities == 1 && has_zeroth_law())
- to_chat(src, "Internal camera is currently being accessed.")
+ to_chat(src, span_warning("Internal camera is currently being accessed."))
/mob/living/proc/tracking_cancelled()
/mob/living/silicon/robot/tracking_initiated()
tracking_entities--
if(!tracking_entities && has_zeroth_law())
- to_chat(src, "Internal camera is no longer being accessed.")
+ to_chat(src, span_notice("Internal camera is no longer being accessed."))
#undef TRACKING_POSSIBLE
diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm
index 80fcc35fbb..4ff9a5c540 100644
--- a/code/game/machinery/cell_charger.dm
+++ b/code/game/machinery/cell_charger.dm
@@ -52,17 +52,17 @@
if(istype(W, /obj/item/cell) && anchored)
if(istype(W, /obj/item/cell/device))
- to_chat(user, "\The [src] isn't fitted for that type of cell.")
+ to_chat(user, span_warning("\The [src] isn't fitted for that type of cell."))
return
if(charging)
- to_chat(user, "There is already [charging] in [src].")
+ to_chat(user, span_warning("There is already [charging] in [src]."))
return
else
var/area/a = loc.loc // Gets our locations location, like a dream within a dream
if(!isarea(a))
return
if(a.power_equip == 0) // There's no APC in this area, don't try to cheat power!
- to_chat(user, "\The [src] blinks red as you try to insert [W]!")
+ to_chat(user, span_warning("\The [src] blinks red as you try to insert [W]!"))
return
user.drop_item()
@@ -73,7 +73,7 @@
update_icon()
else if(W.has_tool_quality(TOOL_WRENCH))
if(charging)
- to_chat(user, "Remove [charging] first!")
+ to_chat(user, span_warning("Remove [charging] first!"))
return
anchored = !anchored
diff --git a/code/game/machinery/clawmachine.dm b/code/game/machinery/clawmachine.dm
index 8e10c77799..887eed2131 100644
--- a/code/game/machinery/clawmachine.dm
+++ b/code/game/machinery/clawmachine.dm
@@ -109,12 +109,12 @@
if(do_after(user, 20 * W.toolspeed))
if(!src) return
- to_chat(user, "You [anchored? "un" : ""]secured \the [src]!")
+ to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
if(!anchored)
- to_chat(user," The machine isn't secured.")
+ to_chat(user,span_notice(" The machine isn't secured."))
return
var/handled = 0
@@ -153,7 +153,7 @@
to_chat(user,"You dont have enough Thalers to play! ")
return
- to_chat(user,"You put 5 Thalers in the claw machine and press start.")
+ to_chat(user,span_notice("You put 5 Thalers in the claw machine and press start."))
cashmoney.worth -= 5
cashmoney.update_icon()
@@ -186,14 +186,14 @@
var/delaytime = 7 SECONDS
spawn(delaytime)
- to_chat(user,"The clam machine lights up and starts to play!")
+ to_chat(user,span_notice("The clam machine lights up and starts to play!"))
if (symbol1 == "one" && symbol2 == "one" && symbol3 == "one")
- output = "Hooray! You Win!"
+ output = span_notice("Hooray! You Win!")
winnings = TRUE
if (symbol1 == "two" && symbol2 == "two" && symbol3 == "two")
- output = "Hooray! You Win!!"
+ output = span_notice("Hooray! You Win!!")
winnings = TRUE
icon_state = initial(icon_state) // Set it back to the original iconstate.
diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm
index f6709fbf54..c164af447a 100644
--- a/code/game/machinery/cloning.dm
+++ b/code/game/machinery/cloning.dm
@@ -120,7 +120,7 @@
clonemind.transfer_to(H)
H.ckey = R.ckey
- to_chat(H, "Consciousness slowly creeps over you as your body regenerates.
Your recent memories are fuzzy, and it's hard to remember anything from today...
So this is what cloning feels like?")
+ to_chat(H, span_warning("Consciousness slowly creeps over you as your body regenerates.
Your recent memories are fuzzy, and it's hard to remember anything from today...
So this is what cloning feels like?"))
// -- Mode/mind specific stuff goes here
callHook("clone", list(H))
@@ -230,19 +230,19 @@
return
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda))
if(!check_access(W))
- to_chat(user, "Access Denied.")
+ to_chat(user, span_warning("Access Denied."))
return
if((!locked) || (isnull(occupant)))
return
if((occupant.health < -20) && (occupant.stat != 2))
- to_chat(user, "Access Refused.")
+ to_chat(user, span_warning("Access Refused."))
return
else
locked = 0
to_chat(user, "System unlocked.")
else if(istype(W,/obj/item/reagent_containers/glass))
if(LAZYLEN(containers) >= container_limit)
- to_chat(user, "\The [src] has too many containers loaded!")
+ to_chat(user, span_warning("\The [src] has too many containers loaded!"))
else if(do_after(user, 1 SECOND))
user.visible_message("[user] has loaded \the [W] into \the [src].", "You load \the [W] into \the [src].")
containers += W
@@ -251,7 +251,7 @@
return
else if(W.has_tool_quality(TOOL_WRENCH))
if(locked && (anchored || occupant))
- to_chat(user, "Can not do that while [src] is in use.")
+ to_chat(user, span_warning("Can not do that while [src] is in use."))
else
if(anchored)
anchored = FALSE
@@ -267,7 +267,7 @@
else if(istype(W, /obj/item/multitool))
var/obj/item/multitool/M = W
M.connecting = src
- to_chat(user, "You load connection data from [src] to [M].")
+ to_chat(user, span_notice("You load connection data from [src] to [M]."))
M.update_icon()
return
else
diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm
index 656a7e1488..1beb880d15 100644
--- a/code/game/machinery/computer/ai_core.dm
+++ b/code/game/machinery/computer/ai_core.dm
@@ -24,7 +24,7 @@
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
- to_chat(user, "You wrench the frame into place.")
+ to_chat(user, span_notice("You wrench the frame into place."))
anchored = TRUE
state = 1
if(P.has_tool_quality(TOOL_WELDER))
@@ -35,31 +35,31 @@
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 20 * WT.toolspeed))
if(!src || !WT.remove_fuel(0, user)) return
- to_chat(user, "You deconstruct the frame.")
+ to_chat(user, span_notice("You deconstruct the frame."))
new /obj/item/stack/material/plasteel( loc, 4)
qdel(src)
if(1)
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
- to_chat(user, "You unfasten the frame.")
+ to_chat(user, span_notice("You unfasten the frame."))
anchored = FALSE
state = 0
if(istype(P, /obj/item/circuitboard/aicore) && !circuit)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You place the circuit board inside the frame.")
+ to_chat(user, span_notice("You place the circuit board inside the frame."))
icon_state = "1"
circuit = P
user.drop_item()
P.loc = src
if(P.has_tool_quality(TOOL_SCREWDRIVER) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You screw the circuit board into place.")
+ to_chat(user, span_notice("You screw the circuit board into place."))
state = 2
icon_state = "2"
if(P.has_tool_quality(TOOL_CROWBAR) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the circuit board.")
+ to_chat(user, span_notice("You remove the circuit board."))
state = 1
icon_state = "0"
circuit.loc = loc
@@ -67,21 +67,21 @@
if(2)
if(P.has_tool_quality(TOOL_SCREWDRIVER) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You unfasten the circuit board.")
+ to_chat(user, span_notice("You unfasten the circuit board."))
state = 1
icon_state = "1"
if(istype(P, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = P
if (C.get_amount() < 5)
- to_chat(user, "You need five coils of wire to add them to the frame.")
+ to_chat(user, span_warning("You need five coils of wire to add them to the frame."))
return
- to_chat(user, "You start to add cables to the frame.")
+ to_chat(user, span_notice("You start to add cables to the frame."))
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
if (do_after(user, 20) && state == 2)
if (C.use(5))
state = 3
icon_state = "3"
- to_chat(user, "You add cables to the frame.")
+ to_chat(user, span_notice("You add cables to the frame."))
return
if(3)
if(P.has_tool_quality(TOOL_WIRECUTTER))
@@ -89,7 +89,7 @@
to_chat(user, "Get that brain out of there first")
else
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the cables.")
+ to_chat(user, span_notice("You remove the cables."))
state = 2
icon_state = "2"
new /obj/item/stack/cable_coil(loc, 5)
@@ -97,13 +97,13 @@
if(istype(P, /obj/item/stack/material) && P.get_material_name() == "rglass")
var/obj/item/stack/RG = P
if (RG.get_amount() < 2)
- to_chat(user, "You need two sheets of glass to put in the glass panel.")
+ to_chat(user, span_warning("You need two sheets of glass to put in the glass panel."))
return
- to_chat(user, "You start to put in the glass panel.")
+ to_chat(user, span_notice("You start to put in the glass panel."))
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
if (do_after(user, 20) && state == 3)
if(RG.use(2))
- to_chat(user, "You put in the glass panel.")
+ to_chat(user, span_notice("You put in the glass panel."))
state = 4
icon_state = "4"
@@ -132,14 +132,14 @@
if(istype(P, /obj/item/mmi))
var/obj/item/mmi/M = P
if(!M.brainmob)
- to_chat(user, "Sticking an empty [P] into the frame would sort of defeat the purpose.")
+ to_chat(user, span_warning("Sticking an empty [P] into the frame would sort of defeat the purpose."))
return
if(M.brainmob.stat == 2)
- to_chat(user, "Sticking a dead [P] into the frame would sort of defeat the purpose.")
+ to_chat(user, span_warning("Sticking a dead [P] into the frame would sort of defeat the purpose."))
return
if(jobban_isbanned(M.brainmob, JOB_AI))
- to_chat(user, "This [P] does not seem to fit.")
+ to_chat(user, span_warning("This [P] does not seem to fit."))
return
if(M.brainmob.mind)
@@ -153,7 +153,7 @@
if(P.has_tool_quality(TOOL_CROWBAR) && brain)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the brain.")
+ to_chat(user, span_notice("You remove the brain."))
brain.loc = loc
brain = null
icon_state = "3"
@@ -161,7 +161,7 @@
if(4)
if(P.has_tool_quality(TOOL_CROWBAR))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the glass panel.")
+ to_chat(user, span_notice("You remove the glass panel."))
state = 3
if (brain)
icon_state = "3b"
@@ -172,7 +172,7 @@
if(P.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You connect the monitor.")
+ to_chat(user, span_notice("You connect the monitor."))
if(!brain)
var/open_for_latejoin = tgui_alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", list("Yes", "No")) == "Yes"
var/obj/structure/AIcore/deactivated/D = new(loc)
diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm
index 5da5b95e54..f614a172e0 100644
--- a/code/game/machinery/computer/aifixer.dm
+++ b/code/game/machinery/computer/aifixer.dm
@@ -18,16 +18,16 @@
if(I.has_tool_quality(TOOL_SCREWDRIVER))
if(occupier)
if(stat & (NOPOWER|BROKEN))
- to_chat(user, "The screws on [name]'s screen won't budge.")
+ to_chat(user, span_warning("The screws on [name]'s screen won't budge."))
else
- to_chat(user, "The screws on [name]'s screen won't budge and it emits a warning beep.")
+ to_chat(user, span_warning("The screws on [name]'s screen won't budge and it emits a warning beep."))
return
if(istype(I, /obj/item/aicard))
if(stat & (NOPOWER|BROKEN))
- to_chat(user, "This terminal isn't functioning right now.")
+ to_chat(user, span_warning("This terminal isn't functioning right now."))
return
if(restoring)
- to_chat(user, "Terminal is busy restoring [occupier] right now.")
+ to_chat(user, span_danger("Terminal is busy restoring [occupier] right now."))
return
var/obj/item/aicard/card = I
@@ -36,7 +36,7 @@
occupier = null
else if(card.carded_ai)
var/mob/living/silicon/ai/new_occupant = card.carded_ai
- to_chat(new_occupant, "You have been transferred into a stationary terminal. Sadly there is no remote access from here.")
+ to_chat(new_occupant, span_notice("You have been transferred into a stationary terminal. Sadly there is no remote access from here."))
to_chat(user, "Transfer Successful: [new_occupant] placed within stationary terminal.")
new_occupant.forceMove(src)
new_occupant.cancel_camera()
@@ -45,7 +45,7 @@
card.clear()
update_icon()
else
- to_chat(user, "There is no AI loaded onto this computer, and no AI loaded onto [I]. What exactly are you trying to do here?")
+ to_chat(user, span_notice("There is no AI loaded onto this computer, and no AI loaded onto [I]. What exactly are you trying to do here?"))
return ..()
/obj/machinery/computer/aifixer/attack_hand(mob/user)
@@ -92,7 +92,7 @@
switch(action)
if("PRG_beginReconstruction")
if(occupier?.health < 100)
- to_chat(usr, "Reconstruction in progress. This will take several minutes.")
+ to_chat(usr, span_notice("Reconstruction in progress. This will take several minutes."))
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 25, FALSE)
restoring = TRUE
var/mob/observer/dead/ghost = occupier.get_ghost()
@@ -132,4 +132,4 @@
if (UNCONSCIOUS)
. += "ai-fixer-404"
else
- . += "ai-fixer-empty"
\ No newline at end of file
+ . += "ai-fixer-empty"
diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm
index 26cc59c7c8..e260e6af55 100644
--- a/code/game/machinery/computer/arcade.dm
+++ b/code/game/machinery/computer/arcade.dm
@@ -1137,7 +1137,7 @@
if(istype(cashmoney, /obj/item/spacecash))
- visible_message("\The [usr] inserts some cash into \the [src].")
+ visible_message(span_info("\The [usr] inserts some cash into \the [src]."))
cashmoney.worth -= gameprice
if(cashmoney.worth <= 0)
@@ -1151,16 +1151,16 @@
return 1
if(emagged)
playsound(src, 'sound/arcade/steal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
- to_chat(user, "It doesn't seem to accept that! Seem you'll need to swipe a valid ID.")
+ to_chat(user, span_info("It doesn't seem to accept that! Seem you'll need to swipe a valid ID."))
///// Ewallet
/obj/machinery/computer/arcade/clawmachine/proc/pay_with_ewallet(var/obj/item/spacecash/ewallet/wallet)
if(!emagged)
- visible_message("\The [usr] swipes \the [wallet] through \the [src].")
+ visible_message(span_info("\The [usr] swipes \the [wallet] through \the [src]."))
playsound(src, 'sound/machines/id_swipe.ogg', 50, 1)
if(gameprice > wallet.worth)
- visible_message("Insufficient funds.")
+ visible_message(span_info("Insufficient funds."))
return 0
else
wallet.worth -= gameprice
@@ -1168,22 +1168,22 @@
return 1
if(emagged)
playsound(src, 'sound/arcade/steal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
- to_chat(usr, "It doesn't seem to accept that! Seem you'll need to swipe a valid ID.")
+ to_chat(usr, span_info("It doesn't seem to accept that! Seem you'll need to swipe a valid ID."))
///// ID
/obj/machinery/computer/arcade/clawmachine/proc/pay_with_card(var/obj/item/card/id/I, var/obj/item/ID_container)
if(I==ID_container || ID_container == null)
- visible_message("\The [usr] swipes \the [I] through \the [src].")
+ visible_message(span_info("\The [usr] swipes \the [I] through \the [src]."))
else
- visible_message("\The [usr] swipes \the [ID_container] through \the [src].")
+ visible_message(span_info("\The [usr] swipes \the [ID_container] through \the [src]."))
playsound(src, 'sound/machines/id_swipe.ogg', 50, 1)
var/datum/money_account/customer_account = get_account(I.associated_account_number)
if(!customer_account)
- visible_message("Error: Unable to access account. Please contact technical support if problem persists.")
+ visible_message(span_info("Error: Unable to access account. Please contact technical support if problem persists."))
return 0
if(customer_account.suspended)
- visible_message("Unable to access account: account suspended.")
+ visible_message(span_info("Unable to access account: account suspended."))
return 0
// Have the customer punch in the PIN before checking if there's enough money. Prevents people from figuring out acct is
@@ -1193,11 +1193,11 @@
customer_account = attempt_account_access(I.associated_account_number, attempt_pin, 2)
if(!customer_account)
- visible_message("Unable to access account: incorrect credentials.")
+ visible_message(span_info("Unable to access account: incorrect credentials."))
return 0
if(gameprice > customer_account.money)
- visible_message("Insufficient funds in account.")
+ visible_message(span_info("Insufficient funds in account."))
return 0
else
// Okay to move the money at this point
@@ -1319,7 +1319,7 @@
/obj/machinery/computer/arcade/clawmachine/emag_act(mob/user)
if(!emagged)
- to_chat(user, "You modify the claw of the machine. The next one is sure to win! You just have to pay...")
+ to_chat(user, span_info("You modify the claw of the machine. The next one is sure to win! You just have to pay..."))
name = "AlliCo Snag-A-Prize"
desc = "Get some goodies, all for you!"
instructions = "Swipe a card to play!"
@@ -1336,13 +1336,13 @@
var/obj/item/stack/arcadeticket/T = O
var/amount = T.get_amount()
if(amount <2)
- to_chat(user, "You need 2 tickets to claim a prize!")
+ to_chat(user, span_warning("You need 2 tickets to claim a prize!"))
return
prizevend(user)
T.pay_tickets()
T.update_icon()
O = T
- to_chat(user, "You turn in 2 tickets to the [src] and claim a prize!")
+ to_chat(user, span_notice("You turn in 2 tickets to the [src] and claim a prize!"))
return
else
..() //You can now actually deconstruct these.
diff --git a/code/game/machinery/computer/atmos_control.dm b/code/game/machinery/computer/atmos_control.dm
index 31400b63c6..3ab9d84455 100644
--- a/code/game/machinery/computer/atmos_control.dm
+++ b/code/game/machinery/computer/atmos_control.dm
@@ -38,8 +38,8 @@
/obj/machinery/computer/atmoscontrol/emag_act(var/remaining_carges, var/mob/user)
if(!emagged)
- user.visible_message("\The [user] does something \the [src], causing the screen to flash!",\
- "You cause the screen to flash as you gain full control.",\
+ user.visible_message(span_warning("\The [user] does something \the [src], causing the screen to flash!"),\
+ span_warning("You cause the screen to flash as you gain full control."),\
"You hear an electronic warble.")
atmos_control.emagged = 1
return 1
diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm
index cd7f5f67df..01a65651b7 100644
--- a/code/game/machinery/computer/buildandrepair.dm
+++ b/code/game/machinery/computer/buildandrepair.dm
@@ -16,7 +16,7 @@
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
- to_chat(user, "You wrench the frame into place.")
+ to_chat(user, span_notice("You wrench the frame into place."))
src.anchored = TRUE
src.state = 1
if(P.has_tool_quality(TOOL_WELDER))
@@ -27,35 +27,35 @@
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 20 * WT.toolspeed))
if(!src || !WT.isOn()) return
- to_chat(user, "You deconstruct the frame.")
+ to_chat(user, span_notice("You deconstruct the frame."))
new /obj/item/stack/material/steel( src.loc, 5 )
qdel(src)
if(1)
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
- to_chat(user, "You unfasten the frame.")
+ to_chat(user, span_notice("You unfasten the frame."))
src.anchored = FALSE
src.state = 0
if(istype(P, /obj/item/circuitboard) && !circuit)
var/obj/item/circuitboard/B = P
if(B.board_type == "computer")
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You place the circuit board inside the frame.")
+ to_chat(user, span_notice("You place the circuit board inside the frame."))
src.icon_state = "1"
src.circuit = P
user.drop_item()
P.loc = src
else
- to_chat(user, "This frame does not accept circuit boards of this type!")
+ to_chat(user, span_warning("This frame does not accept circuit boards of this type!"))
if(P.has_tool_quality(TOOL_SCREWDRIVER) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You screw the circuit board into place.")
+ to_chat(user, span_notice("You screw the circuit board into place."))
src.state = 2
src.icon_state = "2"
if(P.has_tool_quality(TOOL_CROWBAR)) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the circuit board.")
+ to_chat(user, span_notice("You remove the circuit board."))
src.state = 1
src.icon_state = "0"
circuit.loc = src.loc
@@ -63,25 +63,25 @@
if(2)
if(P.has_tool_quality(TOOL_SCREWDRIVER) && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You unfasten the circuit board.")
+ to_chat(user, span_notice("You unfasten the circuit board."))
src.state = 1
src.icon_state = "1"
if(istype(P, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = P
if (C.get_amount() < 5)
- to_chat(user, "You need five coils of wire to add them to the frame.")
+ to_chat(user, span_warning("You need five coils of wire to add them to the frame."))
return
- to_chat(user, "You start to add cables to the frame.")
+ to_chat(user, span_notice("You start to add cables to the frame."))
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, 20) && state == 2)
if (C.use(5))
- to_chat(user, "You add cables to the frame.")
+ to_chat(user, span_notice("You add cables to the frame."))
state = 3
icon_state = "3"
if(3)
if(P.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the cables.")
+ to_chat(user, span_notice("You remove the cables."))
src.state = 2
src.icon_state = "2"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -90,25 +90,25 @@
if(istype(P, /obj/item/stack/material) && P.get_material_name() == "glass")
var/obj/item/stack/G = P
if (G.get_amount() < 2)
- to_chat(user, "You need two sheets of glass to put in the glass panel.")
+ to_chat(user, span_warning("You need two sheets of glass to put in the glass panel."))
return
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You start to put in the glass panel.")
+ to_chat(user, span_notice("You start to put in the glass panel."))
if(do_after(user, 20) && state == 3)
if (G.use(2))
- to_chat(user, "You put in the glass panel.")
+ to_chat(user, span_notice("You put in the glass panel."))
src.state = 4
src.icon_state = "4"
if(4)
if(P.has_tool_quality(TOOL_CROWBAR))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the glass panel.")
+ to_chat(user, span_notice("You remove the glass panel."))
src.state = 3
src.icon_state = "3"
new /obj/item/stack/material/glass( src.loc, 2 )
if(P.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You connect the monitor.")
+ to_chat(user, span_notice("You connect the monitor."))
var/B = new src.circuit.build_path ( src.loc )
src.circuit.construct(B)
qdel(src)
diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm
index fa72ca5d1a..42ccbfeff3 100644
--- a/code/game/machinery/computer/camera.dm
+++ b/code/game/machinery/computer/camera.dm
@@ -46,7 +46,7 @@
/obj/machinery/computer/security/attack_ai(mob/user)
if(isAI(user))
- to_chat(user, "You realise its kind of stupid to access a camera console when you have the entire camera network at your metaphorical fingertips")
+ to_chat(user, span_notice("You realise its kind of stupid to access a camera console when you have the entire camera network at your metaphorical fingertips"))
return
attack_hand(user)
diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm
index ca4d737c08..a566a6be1a 100644
--- a/code/game/machinery/computer/card.dm
+++ b/code/game/machinery/computer/card.dm
@@ -216,7 +216,7 @@
else
var/datum/job/jobdatum = SSjob.get_job(t1)
if(!jobdatum)
- to_chat(usr, "No log exists for this job: [t1]")
+ to_chat(usr, span_warning("No log exists for this job: [t1]"))
return
access = jobdatum.get_access()
@@ -233,7 +233,7 @@
if(temp_name)
modify.registered_name = temp_name
else
- visible_message("[src] buzzes rudely.")
+ visible_message(span_notice("[src] buzzes rudely."))
. = TRUE
if("account")
diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm
index 18924c456e..c98d4fb380 100644
--- a/code/game/machinery/computer/cloning.dm
+++ b/code/game/machinery/computer/cloning.dm
@@ -106,7 +106,7 @@
pods += P
P.connected = src
P.name = "[initial(P.name)] #[pods.len]"
- to_chat(user, "You connect [P] to [src].")
+ to_chat(user, span_notice("You connect [P] to [src]."))
else
return ..()
diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm
index 1daca50e93..5d250853c4 100644
--- a/code/game/machinery/computer/computer.dm
+++ b/code/game/machinery/computer/computer.dm
@@ -158,12 +158,12 @@
return 0
if (!user.Adjacent(src))
- to_chat(user, "You can't climb there, the way is blocked.")
+ to_chat(user, span_danger("You can't climb there, the way is blocked."))
return 0
var/obj/occupied = turf_is_crowded()
if(occupied)
- to_chat(user, "There's \a [occupied] in the way.")
+ to_chat(user, span_danger("There's \a [occupied] in the way."))
return 0
return 1
@@ -185,7 +185,7 @@
if (!can_climb(user))
return
- usr.visible_message("[user] starts climbing onto \the [src]!")
+ usr.visible_message(span_warning("[user] starts climbing onto \the [src]!"))
LAZYDISTINCTADD(climbers, user)
if(!do_after(user,(issmall(user) ? climb_delay * 0.6 : climb_delay)))
@@ -199,7 +199,7 @@
usr.forceMove(climb_to(user))
if (get_turf(user) == get_turf(src))
- usr.visible_message("[user] climbs onto \the [src]!")
+ usr.visible_message(span_warning("[user] climbs onto \the [src]!"))
LAZYREMOVE(climbers, user)
/obj/machinery/computer/proc/climb_to(var/mob/living/user)
@@ -212,11 +212,11 @@
if(!Adjacent(user))
return 0
if (user.restrained() || user.buckled)
- to_chat(user, "You need your hands and legs free for this.")
+ to_chat(user, span_notice("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))
- to_chat(user, "You need hands for this.")
+ to_chat(user, span_notice("You need hands for this."))
return 0
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm
index 205246628f..b51b0d95c3 100644
--- a/code/game/machinery/computer/guestpass.dm
+++ b/code/game/machinery/computer/guestpass.dm
@@ -25,28 +25,28 @@
/obj/item/card/id/guest/examine(mob/user)
. = ..()
if(world.time < expiration_time)
- . += "This pass expires at [worldtime2stationtime(expiration_time)]."
+ . += span_notice("This pass expires at [worldtime2stationtime(expiration_time)].")
else
- . += "It expired at [worldtime2stationtime(expiration_time)]."
+ . += span_warning("It expired at [worldtime2stationtime(expiration_time)].")
/obj/item/card/id/guest/read()
if(!Adjacent(usr))
return //Too far to read
if(world.time > expiration_time)
- to_chat(usr, "This pass expired at [worldtime2stationtime(expiration_time)].")
+ to_chat(usr, span_notice("This pass expired at [worldtime2stationtime(expiration_time)]."))
else
- to_chat(usr, "This pass expires at [worldtime2stationtime(expiration_time)].")
+ to_chat(usr, span_notice("This pass expires at [worldtime2stationtime(expiration_time)]."))
- to_chat(usr, "It grants access to following areas:")
+ to_chat(usr, span_notice("It grants access to following areas:"))
for (var/A in temp_access)
- to_chat(usr, "[get_access_desc(A)].")
- to_chat(usr, "Issuing reason: [reason].")
+ to_chat(usr, span_notice("[get_access_desc(A)]."))
+ to_chat(usr, span_notice("Issuing reason: [reason]."))
return
/obj/item/card/id/guest/attack_self(mob/living/user as mob)
if(user.a_intent == I_HURT)
if(icon_state == "guest-invalid")
- to_chat(user, "This guest pass is already deactivated!")
+ to_chat(user, span_warning("This guest pass is already deactivated!"))
return
var/confirm = tgui_alert(usr, "Do you really want to deactivate this guest pass? (you can't reactivate it)", "Confirm Deactivation", list("Yes", "No"))
@@ -70,7 +70,7 @@
/obj/item/card/id/guest/process()
if(expired == 0 && world.time >= expiration_time)
- visible_message("\The [src] flashes a few times before turning red.")
+ visible_message(span_warning("\The [src] flashes a few times before turning red."))
icon_state = "guest-invalid"
update_icon()
expired = 1
@@ -108,7 +108,7 @@
/obj/machinery/computer/guestpass/attackby(obj/I, mob/user)
if(istype(I, /obj/item/card/id/guest))
- to_chat(user, "The guest pass terminal denies to accept the guest pass.")
+ to_chat(user, span_warning("The guest pass terminal denies to accept the guest pass."))
return
if(istype(I, /obj/item/card/id))
if(stat & NOPOWER) //checking for power in here so crowbar and screwdriver and stuff still works.
@@ -119,7 +119,7 @@
giver = I
SStgui.update_uis(src)
else if(giver)
- to_chat(user, "There is already ID card inside.")
+ to_chat(user, span_warning("There is already ID card inside."))
return
..()
@@ -206,7 +206,7 @@
if(dur > 0 && dur <= 360) //VOREStation Edit
duration = dur
else
- to_chat(usr, "Invalid duration.")
+ to_chat(usr, span_warning("Invalid duration."))
if("access")
var/A = text2num(params["access"])
if(A in accesses)
@@ -215,7 +215,7 @@
if(A in giver.GetAccess()) //Let's make sure the ID card actually has the access.
accesses.Add(A)
else
- to_chat(usr, "Invalid selection, please consult technical support if there are any issues.")
+ to_chat(usr, span_warning("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("id")
if(giver)
@@ -263,7 +263,7 @@
pass.reason = reason
pass.name = "guest pass #[number]"
else
- to_chat(usr, "Cannot issue pass without issuing ID.")
+ to_chat(usr, span_warning("Cannot issue pass without issuing ID."))
add_fingerprint(usr)
return TRUE
diff --git a/code/game/machinery/computer/id_restorer_vr.dm b/code/game/machinery/computer/id_restorer_vr.dm
index 4ec14ff6eb..c7330ded2c 100644
--- a/code/game/machinery/computer/id_restorer_vr.dm
+++ b/code/game/machinery/computer/id_restorer_vr.dm
@@ -23,7 +23,7 @@
I.forceMove(src)
inserted = I
else if(inserted)
- to_chat(user, "There is already ID card inside.")
+ to_chat(user, span_warning("There is already ID card inside."))
return
*/
..()
@@ -34,7 +34,7 @@
/*
if(!inserted) // No point in giving you an option what to do if there's no ID to do things with.
- to_chat(user, "No ID is inserted.")
+ to_chat(user, span_notice("No ID is inserted."))
return
var/choice = tgui_alert(user,"What do you want to do?","[src]",list("Restore ID access","Eject ID","Cancel"))
@@ -44,29 +44,29 @@
if("Restore ID access")
var/mob/living/carbon/human/H = user
if(!(istype(H)))
- to_chat(user, "Invalid user detected. Access denied.")
+ to_chat(user, span_warning("Invalid user detected. Access denied."))
flick(icon_fail, src)
return
else if((H.wear_mask && (H.wear_mask.flags_inv & HIDEFACE)) || (H.head && (H.head.flags_inv & HIDEFACE))) //Face hiding bad
- to_chat(user, "Facial recognition scan failed due to physical obstructions. Access denied.")
+ to_chat(user, span_warning("Facial recognition scan failed due to physical obstructions. Access denied."))
flick(icon_fail, src)
return
else if(H.get_face_name() == "Unknown" || !(H.real_name == inserted.registered_name))
- to_chat(user, "Facial recognition scan failed. Access denied.")
+ to_chat(user, span_warning("Facial recognition scan failed. Access denied."))
flick(icon_fail, src)
return
else if(LAZYLEN(inserted.lost_access) && !(LAZYLEN(inserted.access)))
inserted.access = inserted.lost_access
inserted.lost_access = list()
inserted.desc = "A partially digested card that has seen better days. The damage to access codes, however, appears to have been mitigated."
- to_chat(user, "ID access codes successfully restored.")
+ to_chat(user, span_notice("ID access codes successfully restored."))
flick(icon_success, src)
return
else if(!(LAZYLEN(inserted.lost_access)))
- to_chat(user, "No recent access codes damage detected. Restoration cancelled.")
+ to_chat(user, span_notice("No recent access codes damage detected. Restoration cancelled."))
return
else
- to_chat(user, "Terminal encountered unknown error. Contact system administrator or try again.")
+ to_chat(user, span_warning("Terminal encountered unknown error. Contact system administrator or try again."))
flick(icon_fail, src)
return
if("Eject ID")
@@ -95,4 +95,4 @@
icon_override = 'icons/obj/machines/id_restorer_vr.dmi'
/datum/frame/frame_types/id_restorer/get_icon_state(var/state)
- return "restorer_b[state]"
\ No newline at end of file
+ return "restorer_b[state]"
diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm
index 1e27a43ee8..5f6da818af 100644
--- a/code/game/machinery/computer/law.dm
+++ b/code/game/machinery/computer/law.dm
@@ -19,9 +19,9 @@
opened = !opened
if(opened)
- to_chat(usr, "The access panel is now open.")
+ to_chat(usr, span_notice("The access panel is now open."))
else
- to_chat(usr, "The access panel is now closed.")
+ to_chat(usr, span_notice("The access panel is now closed."))
return
diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm
index 3be78930ed..10b4187e6c 100644
--- a/code/game/machinery/computer/message.dm
+++ b/code/game/machinery/computer/message.dm
@@ -36,7 +36,7 @@
return
if(O.has_tool_quality(TOOL_SCREWDRIVER) && emag)
//Stops people from just unscrewing the monitor and putting it back to get the console working again.
- to_chat(user, "It is too hot to mess with!")
+ to_chat(user, span_warning("It is too hot to mess with!"))
return
..()
@@ -59,7 +59,7 @@
update_icon()
return 1
else
- to_chat(user, "A no server error appears on the screen.")
+ to_chat(user, span_notice("A no server error appears on the screen."))
/obj/machinery/computer/message_monitor/update_icon()
if(emag || hacking)
@@ -162,10 +162,10 @@
/obj/machinery/computer/message_monitor/proc/BruteForce(mob/user as mob)
if(isnull(linkedServer))
- to_chat(user, "Could not complete brute-force: Linked Server Disconnected!")
+ to_chat(user, span_warning("Could not complete brute-force: Linked Server Disconnected!"))
else
var/currentKey = linkedServer.decryptkey
- to_chat(user, "Brute-force completed! The key is '[currentKey]'.")
+ to_chat(user, span_warning("Brute-force completed! The key is '[currentKey]'."))
hacking = 0
update_icon()
diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm
index 4375472355..7b2dffc6ea 100644
--- a/code/game/machinery/computer/pod.dm
+++ b/code/game/machinery/computer/pod.dm
@@ -54,7 +54,7 @@
playsound(src, W.usesound, 50, 1)
if(do_after(user, 20))
if(stat & BROKEN)
- to_chat(user, "The broken glass falls out.")
+ to_chat(user, span_notice("The broken glass falls out."))
var/obj/structure/computerframe/A = new /obj/structure/computerframe( loc )
new /obj/item/material/shard( loc )
@@ -78,7 +78,7 @@
A.anchored = TRUE
qdel(src)
else
- to_chat(to_chat(user, "You disconnect the monitor."))
+ to_chat(to_chat(user, span_notice("You disconnect the monitor.")))
var/obj/structure/computerframe/A = new /obj/structure/computerframe( loc )
//generate appropriate circuitboard. Accounts for /pod/old computer types
@@ -208,7 +208,7 @@
/obj/machinery/computer/pod/old/syndicate/attack_hand(var/mob/user as mob)
if(!allowed(user))
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
return
else
..()
diff --git a/code/game/machinery/computer/prisoner.dm b/code/game/machinery/computer/prisoner.dm
index e475d62a92..8e73278ce3 100644
--- a/code/game/machinery/computer/prisoner.dm
+++ b/code/game/machinery/computer/prisoner.dm
@@ -87,6 +87,6 @@
return
var/obj/item/implant/I = locate(params["imp"])
if(I && I.imp_in)
- to_chat(I.imp_in, "You hear a voice in your head saying: '[warning]'")
+ to_chat(I.imp_in, span_notice("You hear a voice in your head saying: '[warning]'"))
. = TRUE
add_fingerprint(usr)
diff --git a/code/game/machinery/computer/prisonshuttle.dm b/code/game/machinery/computer/prisonshuttle.dm
index dfbeb09d89..201768f360 100644
--- a/code/game/machinery/computer/prisonshuttle.dm
+++ b/code/game/machinery/computer/prisonshuttle.dm
@@ -28,10 +28,10 @@ var/prison_shuttle_timeleft = 0
/obj/machinery/computer/prison_shuttle/attack_hand(var/mob/user as mob)
if(!src.allowed(user) && (!hacked))
- to_chat(user, "Access Denied.")
+ to_chat(user, span_warning("Access Denied."))
return
if(prison_break)
- to_chat(user, "Unable to locate shuttle.")
+ to_chat(user, span_warning("Unable to locate shuttle."))
return
if(..())
return
@@ -60,11 +60,11 @@ var/prison_shuttle_timeleft = 0
if (href_list["sendtodock"])
if (!prison_can_move())
- to_chat(usr, "The prison shuttle is unable to leave.")
+ to_chat(usr, span_warning("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")
- to_chat(usr, "The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
+ to_chat(usr, span_notice("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())
- to_chat(usr, "The prison shuttle is unable to leave.")
+ to_chat(usr, span_warning("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")
- to_chat(usr, "The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
+ to_chat(usr, span_notice("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())
- to_chat(usr, "The prison shuttle is unable to leave.")
+ to_chat(usr, span_warning("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())
- to_chat(usr, "The prison shuttle is unable to leave.")
+ to_chat(usr, span_warning("The prison shuttle is unable to leave."))
return
var/area/start_location = locate(/area/shuttle/prison/station)
@@ -211,7 +211,7 @@ var/prison_shuttle_timeleft = 0
/obj/machinery/computer/prison_shuttle/emag_act(var/charges, var/mob/user)
if(!hacked)
hacked = 1
- to_chat(user, "You disable the lock.")
+ to_chat(user, span_notice("You disable the lock."))
return 1
#undef PRISON_MOVETIME
diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm
index 5af1bdb3d8..68a5da5afd 100644
--- a/code/game/machinery/computer/robot.dm
+++ b/code/game/machinery/computer/robot.dm
@@ -66,12 +66,12 @@
if(isAI(user))
if(R.connected_ai != user)
if(telluserwhy)
- to_chat(user, "AIs can only control cyborgs which are linked to them.")
+ to_chat(user, span_warning("AIs can only control cyborgs which are linked to them."))
return FALSE
if(isrobot(user))
if(R != user)
if(telluserwhy)
- to_chat(user, "Cyborgs cannot control other cyborgs.")
+ to_chat(user, span_warning("Cyborgs cannot control other cyborgs."))
return FALSE
return TRUE
@@ -156,24 +156,24 @@
return
. = FALSE
if(!is_authenticated(usr))
- to_chat(usr, "Access denied.")
+ to_chat(usr, span_warning("Access denied."))
return
switch(action)
if("arm") // Arms the emergency self-destruct system
if(issilicon(usr))
- to_chat(usr, "Access Denied (silicon detected)")
+ to_chat(usr, span_danger("Access Denied (silicon detected)"))
return
safety = !safety
- to_chat(usr, "You [safety ? "disarm" : "arm"] the emergency self destruct.")
+ to_chat(usr, span_notice("You [safety ? "disarm" : "arm"] the emergency self destruct."))
. = TRUE
if("nuke") // Destroys all accessible cyborgs if safety is disabled
if(issilicon(usr))
- to_chat(usr, "Access Denied (silicon detected)")
+ to_chat(usr, span_danger("Access Denied (silicon detected)"))
return
if(safety)
- to_chat(usr, "Self-destruct aborted - safety active")
+ to_chat(usr, span_danger("Self-destruct aborted - safety active"))
return
- message_admins("[key_name_admin(usr)] detonated all cyborgs!")
+ message_admins(span_notice("[key_name_admin(usr)] detonated all cyborgs!"))
log_game("\[key_name(usr)] detonated all cyborgs!")
for(var/mob/living/silicon/robot/R in mob_list)
if(istype(R, /mob/living/silicon/robot/drone))
@@ -181,9 +181,9 @@
// Ignore antagonistic cyborgs
if(R.scrambledcodes)
continue
- to_chat(R, "Self-destruct command received.")
+ to_chat(R, span_danger("Self-destruct command received."))
if(R.connected_ai)
- to_chat(R.connected_ai, "
ALERT - Cyborg detonation detected: [R.name]
")
+ to_chat(R.connected_ai, "
[span_alert("ALERT - Cyborg detonation detected: [R.name]")]
")
R.self_destruct()
. = TRUE
if("killbot") // destroys one specific cyborg
@@ -191,31 +191,31 @@
if(!can_control(usr, R, TRUE))
return
if(R.mind && R.mind.special_role && R.emagged)
- to_chat(R, "Extreme danger! Termination codes detected. Scrambling security codes and automatic AI unlink triggered.")
+ to_chat(R, span_userdanger("Extreme danger! Termination codes detected. Scrambling security codes and automatic AI unlink triggered."))
R.ResetSecurityCodes()
. = TRUE
return
var/turf/T = get_turf(R)
- message_admins("[key_name_admin(usr)] detonated [key_name_admin(R)] ([ADMIN_COORDJMP(T)])!")
+ message_admins(span_notice("[key_name_admin(usr)] detonated [key_name_admin(R)] ([ADMIN_COORDJMP(T)])!"))
log_game("\[key_name(usr)] detonated [key_name(R)]!")
- to_chat(R, "Self-destruct command received.")
+ to_chat(R, span_danger("Self-destruct command received."))
if(R.connected_ai)
- to_chat(R.connected_ai, "
ALERT - Cyborg detonation detected: [R.name]
")
+ to_chat(R.connected_ai, "
[span_alert("ALERT - Cyborg detonation detected: [R.name]")]
")
R.self_destruct()
. = TRUE
if("stopbot") // lock or unlock the borg
if(isrobot(usr))
- to_chat(usr, "Access Denied.")
+ to_chat(usr, span_danger("Access Denied."))
return
var/mob/living/silicon/robot/R = locate(params["ref"])
if(!can_control(usr, R, TRUE))
return
- message_admins("[ADMIN_LOOKUPFLW(usr)] [!R.lockcharge ? "locked down" : "released"] [ADMIN_LOOKUPFLW(R)]!")
+ message_admins(span_notice("[ADMIN_LOOKUPFLW(usr)] [!R.lockcharge ? "locked down" : "released"] [ADMIN_LOOKUPFLW(R)]!"))
log_game("[key_name(usr)] [!R.lockcharge ? "locked down" : "released"] [key_name(R)]!")
R.SetLockdown(!R.lockcharge)
- to_chat(R, "[!R.lockcharge ? "Your lockdown has been lifted!" : "You have been locked down!"]")
+ to_chat(R, "[!R.lockcharge ? span_notice("Your lockdown has been lifted!") : span_alert("You have been locked down!")]")
if(R.connected_ai)
- to_chat(R.connected_ai, "[!R.lockcharge ? "NOTICE - Cyborg lockdown lifted" : "ALERT - Cyborg lockdown detected"]: [R.name]
")
+ to_chat(R.connected_ai, "[!R.lockcharge ? span_notice("NOTICE - Cyborg lockdown lifted") : span_alert("ALERT - Cyborg lockdown detected")]: [R.name]
")
. = TRUE
if("hackbot") // AIs hacking/emagging a borg
var/mob/living/silicon/robot/R = locate(params["ref"])
@@ -225,7 +225,7 @@
if(choice != "Yes")
return
log_game("[key_name(usr)] emagged [key_name(R)] using robotic console!")
- message_admins("[key_name_admin(usr)] emagged [key_name_admin(R)] using robotic console!")
+ message_admins(span_notice("[key_name_admin(usr)] emagged [key_name_admin(R)] using robotic console!"))
R.emagged = TRUE
- to_chat(R, "Failsafe protocols overridden. New tools available.")
+ to_chat(R, span_notice("Failsafe protocols overridden. New tools available."))
. = TRUE
diff --git a/code/game/machinery/computer/shuttle.dm b/code/game/machinery/computer/shuttle.dm
index 348a9cef37..7704ec8772 100644
--- a/code/game/machinery/computer/shuttle.dm
+++ b/code/game/machinery/computer/shuttle.dm
@@ -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")
- to_world("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early")
+ to_world(span_notice("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")
- to_world("Alert: Shuttle launch time shortened to 10 seconds!")
+ to_world(span_notice("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
- to_world("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early")
+ to_world(span_notice("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early"))
if("Abort")
- to_world("All authorizations to shortening time for shuttle launch have been revoked!")
+ to_world(span_notice("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")
- to_world("Alert: Shuttle launch time shortened to 10 seconds!")
+ to_world(span_notice("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/specops_shuttle.dm b/code/game/machinery/computer/specops_shuttle.dm
index 29abc4995b..cdd30db5e2 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
- to_chat(M, "You have arrived at [using_map.boss_name]. Operation has ended!")
+ to_chat(M, span_notice("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())
- to_chat(usr, "The Special Operations shuttle is unable to leave.")
+ to_chat(usr, span_warning("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
- to_chat(M, "You have arrived to [station_name()]. Commence operation!")
+ to_chat(M, span_notice("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)
- to_chat(user, "The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
+ to_chat(user, span_notice("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))
- to_chat(user, "Access Denied.")
+ to_chat(user, span_warning("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())
- to_chat(usr, "[using_map.boss_name] will not allow the Special Operations shuttle to return yet.")
+ to_chat(usr, span_notice("[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)
- to_chat(usr, "[-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!")
- to_chat(usr, "[-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!")
+ to_chat(usr, span_notice("[-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!"))
+ to_chat(usr, span_notice("[-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!"))
return
- to_chat(usr, "The Special Operations shuttle will arrive at [using_map.boss_name] in [(SPECOPS_MOVETIME/10)] seconds.")
+ to_chat(usr, span_notice("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())
- to_chat(usr, "The Special Operations shuttle is unable to leave.")
+ to_chat(usr, span_warning("The Special Operations shuttle is unable to leave."))
return
- to_chat(usr, "The Special Operations shuttle will arrive on [station_name()] in [(SPECOPS_MOVETIME/10)] seconds.")
+ to_chat(usr, span_notice("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 bf153c0606..dc285601ca 100644
--- a/code/game/machinery/computer/supply.dm
+++ b/code/game/machinery/computer/supply.dm
@@ -34,7 +34,7 @@
if(..())
return
if(!allowed(user))
- to_chat(user, "You don't have the required access to use this console.")
+ to_chat(user, span_warning("You don't have the required access to use this console."))
return
user.set_machine(src)
tgui_interact(user)
@@ -42,7 +42,7 @@
/obj/machinery/computer/supplycomp/emag_act(var/remaining_charges, var/mob/user)
if(!can_order_contraband)
- to_chat(user, "Special supplies unlocked.")
+ to_chat(user, span_notice("Special supplies unlocked."))
authorization |= SUP_CONTRABAND
req_access = list()
can_order_contraband = TRUE
@@ -218,7 +218,7 @@
return FALSE
if(world.time < reqtime)
- visible_message("[src]'s monitor flashes, \"[reqtime - world.time] seconds remaining until another requisition form may be printed.\"")
+ visible_message(span_warning("[src]'s monitor flashes, \"[reqtime - world.time] seconds remaining until another requisition form may be printed.\""))
return FALSE
var/amount = clamp(tgui_input_number(usr, "How many crates? (0 to 20)", null, null, 20, 0), 0, 20)
@@ -228,7 +228,7 @@
var/timeout = world.time + 600
var/reason = sanitize(tgui_input_text(usr, "Reason:","Why do you require this item?",""))
if(world.time > timeout)
- to_chat(usr, "Error. Request timed out.")
+ to_chat(usr, span_warning("Error. Request timed out."))
return FALSE
if(!reason)
return FALSE
@@ -276,13 +276,13 @@
return FALSE
if(world.time < reqtime)
- visible_message("[src]'s monitor flashes, \"[reqtime - world.time] seconds remaining until another requisition form may be printed.\"")
+ visible_message(span_warning("[src]'s monitor flashes, \"[reqtime - world.time] seconds remaining until another requisition form may be printed.\""))
return FALSE
var/timeout = world.time + 600
var/reason = sanitize(tgui_input_text(usr, "Reason:","Why do you require this item?",""))
if(world.time > timeout)
- to_chat(usr, "Error. Request timed out.")
+ to_chat(usr, span_warning("Error. Request timed out."))
return FALSE
if(!reason)
return FALSE
@@ -467,14 +467,14 @@
switch(params["mode"])
if("send_away")
if (shuttle.forbidden_atoms_check())
- to_chat(usr, "For safety reasons the automated supply shuttle cannot transport live organisms, classified nuclear weaponry or homing beacons.")
+ to_chat(usr, span_warning("For safety reasons the automated supply shuttle cannot transport live organisms, classified nuclear weaponry or homing beacons."))
else
shuttle.launch(src)
- to_chat(usr, "Initiating launch sequence.")
+ to_chat(usr, span_notice("Initiating launch sequence."))
if("send_to_station")
shuttle.launch(src)
- to_chat(usr, "The supply shuttle has been called and will arrive in approximately [round(SSsupply.movetime/600,1)] minutes.")
+ to_chat(usr, span_notice("The supply shuttle has been called and will arrive in approximately [round(SSsupply.movetime/600,1)] minutes."))
if("cancel_shuttle")
shuttle.cancel_launch(src)
diff --git a/code/game/machinery/computer/timeclock_vr.dm b/code/game/machinery/computer/timeclock_vr.dm
index 34e0e58ab5..96c625609e 100644
--- a/code/game/machinery/computer/timeclock_vr.dm
+++ b/code/game/machinery/computer/timeclock_vr.dm
@@ -58,7 +58,7 @@
SStgui.update_uis(src)
update_icon()
else if(card)
- to_chat(user, "There is already ID card inside.")
+ to_chat(user, span_warning("There is already ID card inside."))
return
. = ..()
@@ -224,17 +224,17 @@
/obj/machinery/computer/timeclock/proc/checkFace()
if(!card)
- to_chat(usr, "No ID is inserted.")
+ to_chat(usr, span_notice("No ID is inserted."))
return FALSE
var/mob/living/carbon/human/H = usr
if(!(istype(H)))
- to_chat(usr, "Invalid user detected. Access denied.")
+ to_chat(usr, span_warning("Invalid user detected. Access denied."))
return FALSE
else if((H.wear_mask && (H.wear_mask.flags_inv & HIDEFACE)) || (H.head && (H.head.flags_inv & HIDEFACE))) //Face hiding bad
- to_chat(usr, "Facial recognition scan failed due to physical obstructions. Access denied.")
+ to_chat(usr, span_warning("Facial recognition scan failed due to physical obstructions. Access denied."))
return FALSE
else if(H.get_face_name() == "Unknown" || !(H.real_name == card.registered_name))
- to_chat(usr, "Facial recognition scan failed. Access denied.")
+ to_chat(usr, span_warning("Facial recognition scan failed. Access denied."))
return FALSE
else
return TRUE
diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm
index 8e3bcd4a39..13dcb633fd 100644
--- a/code/game/machinery/constructable_frame.dm
+++ b/code/game/machinery/constructable_frame.dm
@@ -31,19 +31,19 @@
if(istype(P, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = P
if (C.get_amount() < 5)
- to_chat(user, "You need five lengths of cable to add them to the frame.")
+ to_chat(user, span_warning("You need five lengths of cable to add them to the frame."))
return
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You start to add cables to the frame.")
+ to_chat(user, span_notice("You start to add cables to the frame."))
if(do_after(user, 20) && state == 1)
if(C.use(5))
- to_chat(user, "You add cables to the frame.")
+ to_chat(user, span_notice("You add cables to the frame."))
state = 2
icon_state = "box_1"
else
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, W.usesound, 75, 1)
- to_chat(user, "You dismantle the frame")
+ to_chat(user, span_notice("You dismantle the frame"))
new /obj/item/stack/material/steel(src.loc, 5)
qdel(src)
if(2)
@@ -52,11 +52,11 @@
if(B.board_type == "machine")
//VOREStation Addition End
if(istype(B, /obj/item/circuitboard/quantumpad) && istype(get_area(src), /area/shuttle))
- to_chat(user, "This is too unstable a platform for a quantum pad to operate on!")
+ to_chat(user, span_warning("This is too unstable a platform for a quantum pad to operate on!"))
return
//VOREStation Addition End
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You add the circuit board to the frame.")
+ to_chat(user, span_notice("You add the circuit board to the frame."))
circuit = P
user.drop_item()
P.loc = src
@@ -74,11 +74,11 @@
update_desc()
to_chat(user, desc)
else
- to_chat(user, "This frame does not accept circuit boards of this type!")
+ to_chat(user, span_warning("This frame does not accept circuit boards of this type!"))
else
if(P.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the cables.")
+ to_chat(user, span_notice("You remove the cables."))
state = 1
icon_state = "box_0"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -91,9 +91,9 @@
circuit.loc = src.loc
circuit = null
if(components.len == 0)
- to_chat(user, "You remove the circuit board.")
+ to_chat(user, span_notice("You remove the circuit board."))
else
- to_chat(user, "You remove the circuit board and other components.")
+ to_chat(user, span_notice("You remove the circuit board and other components."))
for(var/obj/item/W in components)
W.loc = src.loc
desc = initial(desc)
@@ -157,4 +157,4 @@
break
to_chat(user, desc)
if(P && P.loc != src && !istype(P, /obj/item/stack/cable_coil))
- to_chat(user, "You cannot add that component to the machine!")
+ to_chat(user, span_warning("You cannot add that component to the machine!"))
diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm
index 5c3a50c3db..dd50712cb5 100644
--- a/code/game/machinery/cryo.dm
+++ b/code/game/machinery/cryo.dm
@@ -90,7 +90,7 @@
return
if(panel_open)
- to_chat(usr, "Close the maintenance panel first.")
+ to_chat(usr, span_boldnotice("Close the maintenance panel first."))
return
tgui_interact(user)
@@ -168,7 +168,7 @@
/obj/machinery/atmospherics/unary/cryo_cell/attackby(var/obj/item/G as obj, var/mob/user as mob)
if(istype(G, /obj/item/reagent_containers/glass))
if(beaker)
- to_chat(user, "A beaker is already loaded into the machine.")
+ to_chat(user, span_warning("A beaker is already loaded into the machine."))
return
beaker = G
@@ -182,7 +182,7 @@
if(!ismob(grab.affecting))
return
if(occupant)
- to_chat(user,"\The [src] is already occupied by [occupant].")
+ to_chat(user,span_warning("\The [src] is already occupied by [occupant]."))
if(grab.affecting.has_buckled_mobs())
to_chat(user, span_warning("\The [grab.affecting] has other entities attached to it. Remove them first."))
return
@@ -281,19 +281,19 @@
/obj/machinery/atmospherics/unary/cryo_cell/proc/put_mob(mob/living/carbon/M as mob)
if(stat & (NOPOWER|BROKEN))
- to_chat(usr, "The cryo cell is not functioning.")
+ to_chat(usr, span_warning("The cryo cell is not functioning."))
return
if(!istype(M))
- to_chat(usr, "The cryo cell cannot handle such a lifeform!")
+ to_chat(usr, span_danger("The cryo cell cannot handle such a lifeform!"))
return
if(occupant)
- to_chat(usr, "The cryo cell is already occupied!")
+ to_chat(usr, span_danger("The cryo cell is already occupied!"))
return
if(M.abiotic())
- to_chat(usr, "Subject may not have abiotic items on.")
+ to_chat(usr, span_warning("Subject may not have abiotic items on."))
return
if(!node)
- to_chat(usr, "The cell is not correctly connected to its pipe network!")
+ to_chat(usr, span_warning("The cell is not correctly connected to its pipe network!"))
return
if(M.client)
M.client.perspective = EYE_PERSPECTIVE
@@ -302,7 +302,7 @@
M.loc = src
M.ExtinguishMob()
if(M.health > -100 && (M.health < 0 || M.sleeping))
- to_chat(M, "You feel a cold liquid surround you. Your skin starts to freeze up.")
+ to_chat(M, span_notice("You feel a cold liquid surround you. Your skin starts to freeze up."))
occupant = M
buckle_mob(occupant, forced = TRUE, check_loc = FALSE)
vis_contents |= occupant
@@ -322,7 +322,7 @@
if(usr == occupant)//If the user is inside the tube...
if(usr.stat == 2)//and he's not dead....
return
- to_chat(usr, "Release sequence activated. This will take two minutes.")
+ to_chat(usr, span_notice("Release sequence activated. This will take two minutes."))
sleep(1200)
if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already
return
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index 379011f9f4..5c2ab885be 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -124,15 +124,15 @@
return
if(!LAZYLEN(frozen_items))
- to_chat(usr, "There is nothing to recover from storage.")
+ to_chat(usr, span_notice("There is nothing to recover from storage."))
return
var/obj/item/I = locate(params["ref"]) in frozen_items
if(!I)
- to_chat(usr, "\The [I] is no longer in storage.")
+ to_chat(usr, span_notice("\The [I] is no longer in storage."))
return
- visible_message("The console beeps happily as it disgorges [I].")
+ visible_message(span_notice("The console beeps happily as it disgorges [I]."))
I.forceMove(get_turf(src))
frozen_items -= I
@@ -141,10 +141,10 @@
return
if(!LAZYLEN(frozen_items))
- to_chat(usr, "There is nothing to recover from storage.")
+ to_chat(usr, span_notice("There is nothing to recover from storage."))
return
- visible_message("The console beeps happily as it disgorges the desired objects.")
+ visible_message(span_notice("The console beeps happily as it disgorges the desired objects."))
for(var/obj/item/I in frozen_items)
I.forceMove(get_turf(src))
@@ -465,7 +465,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)
- to_chat(O.owner.current, "You get the feeling your target is no longer within your reach...")
+ to_chat(O.owner.current, span_warning("You get the feeling your target is no longer within your reach..."))
qdel(O)
//VOREStation Edit - Resleeving.
@@ -537,7 +537,7 @@
if(depart_announce)
announce.autosay("[to_despawn.real_name][departing_job ? ", [departing_job], " : " "][on_store_message]", "[on_store_name]", announce_channel, using_map.get_map_levels(z, TRUE, om_range = DEFAULT_OVERMAP_RANGE))
- visible_message("\The [initial(name)] [on_store_visible_message_1] [to_despawn.real_name] [on_store_visible_message_2]", 3)
+ visible_message(span_notice("\The [initial(name)] [on_store_visible_message_1] [to_despawn.real_name] [on_store_visible_message_2]"), 3)
//VOREStation Edit End
@@ -561,7 +561,7 @@
var/obj/item/grab/grab = G
if(occupant)
- to_chat(user, "\The [src] is in use.")
+ to_chat(user, span_notice("\The [src] is in use."))
return
if(!ismob(grab.affecting))
@@ -606,7 +606,7 @@
return
if(occupant)
- to_chat(usr, "\The [src] is in use.")
+ to_chat(usr, span_notice("\The [src] is in use."))
return
if(isliving(usr))
@@ -623,7 +623,7 @@
return
if(occupant)
- to_chat(usr, "\The [src] is in use.")
+ to_chat(usr, span_notice("\The [src] is in use."))
return
usr.stop_pulling()
@@ -639,8 +639,8 @@
icon_state = occupied_icon_state
- to_chat(usr, "[on_enter_occupant_message]")
- to_chat(usr, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.")
+ to_chat(usr, span_notice("[on_enter_occupant_message]"))
+ to_chat(usr, span_notice("If you ghost, log out or close your client now, your character will shortly be permanently removed from the round."))
time_entered = world.time
@@ -695,7 +695,7 @@
if(!M)
return
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
var/willing = null //We don't want to allow people to be forced into despawning.
@@ -715,7 +715,7 @@
if(do_after(user, 20))
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
M.forceMove(src)
@@ -726,8 +726,8 @@
icon_state = occupied_icon_state
- 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.")
+ to_chat(M, span_notice("[on_enter_occupant_message]"))
+ to_chat(M, span_notice("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)
@@ -739,7 +739,7 @@
// Book keeping!
var/turf/location = get_turf(src)
log_admin("[key_name_admin(M)] has entered a stasis pod. (JMP)")
- message_admins("[key_name_admin(M)] has entered a stasis pod.")
+ message_admins(span_notice("[key_name_admin(M)] has entered a stasis pod."))
//Despawning occurs when process() is called with an occupant without a client.
add_fingerprint(M)
diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm
index 9cf8435556..d8a5426c63 100644
--- a/code/game/machinery/deployable.dm
+++ b/code/game/machinery/deployable.dm
@@ -44,7 +44,7 @@ Deployable items
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(2, 1, src)
s.start()
- visible_message("BZZzZZzZZzZT")
+ visible_message(span_warning("BZZzZZzZZzZT"))
return
return
else if(W.has_tool_quality(TOOL_WRENCH))
@@ -52,12 +52,12 @@ Deployable items
health = maxhealth
emagged = 0
req_access = list(access_security)
- visible_message("[user] repairs \the [src]!")
+ visible_message(span_warning("[user] repairs \the [src]!"))
return
else if(emagged > 0)
emagged = 0
req_access = list(access_security)
- visible_message("[user] repairs \the [src]!")
+ visible_message(span_warning("[user] repairs \the [src]!"))
return
return
else
@@ -76,7 +76,7 @@ Deployable items
return
/obj/machinery/deployable/barrier/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
user.do_attack_animation(src)
health -= damage
@@ -113,7 +113,7 @@ Deployable items
/obj/machinery/deployable/barrier/proc/explode()
- visible_message("[src] blows apart!")
+ visible_message(span_danger("[src] blows apart!"))
var/turf/Tsec = get_turf(src)
/* var/obj/item/stack/rods/ =*/
@@ -136,7 +136,7 @@ Deployable items
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(2, 1, src)
s.start()
- visible_message("BZZzZZzZZzZT")
+ visible_message(span_warning("BZZzZZzZZzZT"))
return 1
else if(emagged == 1)
emagged = 2
@@ -144,5 +144,5 @@ Deployable items
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(2, 1, src)
s.start()
- visible_message("BZZzZZzZZzZT")
- return 1
\ No newline at end of file
+ visible_message(span_warning("BZZzZZzZZzZT"))
+ return 1
diff --git a/code/game/machinery/deployable_vr.dm b/code/game/machinery/deployable_vr.dm
index 7a1a59fef0..9e332b218d 100644
--- a/code/game/machinery/deployable_vr.dm
+++ b/code/game/machinery/deployable_vr.dm
@@ -39,7 +39,7 @@
density = FALSE
name = initial(name)
desc = initial(desc)
- visible_message("[src] topples over!")
+ visible_message(span_warning("[src] topples over!"))
/obj/structure/barricade/cutout/proc/untopple()
if(!toppled)
@@ -49,7 +49,7 @@
density = TRUE
name = fake_name
desc = fake_desc
- visible_message("[src] is uprighted to their proper position.")
+ visible_message(span_warning("[src] is uprighted to their proper position."))
/obj/structure/barricade/cutout/CheckHealth()
if(!toppled && (health < (maxhealth/2)))
@@ -67,7 +67,7 @@
. = ..()
if(Adjacent(user))
- . += "... from this distance, they seem to be made of [material.name] ..."
+ . += span_notice("... from this distance, they seem to be made of [material.name] ...")
/obj/structure/barricade/cutout/attackby(var/obj/I, var/mob/user)
if(is_type_in_list(I, painters))
diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm
index eb3a014662..23e19a54a0 100644
--- a/code/game/machinery/door_control.dm
+++ b/code/game/machinery/door_control.dm
@@ -43,7 +43,7 @@
return
if(!allowed(user) && (wires & 1))
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
flick("doorctrl-denied",src)
return
diff --git a/code/game/machinery/doorbell_vr.dm b/code/game/machinery/doorbell_vr.dm
index a3aea743e1..c1343846c4 100644
--- a/code/game/machinery/doorbell_vr.dm
+++ b/code/game/machinery/doorbell_vr.dm
@@ -56,7 +56,7 @@
if(M.connectable && istype(M.connectable, /obj/machinery/button/doorbell))
var/obj/machinery/button/doorbell/B = M.connectable
id_tag = B.id
- to_chat(user, "You upload the data from \the [W]'s buffer.")
+ to_chat(user, span_notice("You upload the data from \the [W]'s buffer."))
return
..()
@@ -135,12 +135,12 @@
else if(panel_open && istype(W, /obj/item/multitool))
var/obj/item/multitool/M = W
M.connectable = src
- to_chat(user, "You save the data in \the [M]'s buffer.")
+ to_chat(user, span_notice("You save the data in \the [M]'s buffer."))
else if(W.has_tool_quality(TOOL_WRENCH))
- to_chat(user, "You start to unwrench \the [src].")
+ to_chat(user, span_notice("You start to unwrench \the [src]."))
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 15) && !QDELETED(src))
- to_chat(user, "You unwrench \the [src].")
+ to_chat(user, span_notice("You unwrench \the [src]."))
new /obj/item/frame/doorbell(src.loc)
qdel(src)
return
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index 93cba9bc7c..c61d8950c0 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -65,7 +65,7 @@
if(stat & (BROKEN|NOPOWER))
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
if(src.locked || src.welded)
- visible_message("\The [user] begins breaking into \the [src] internals!")
+ visible_message(span_danger("\The [user] begins breaking into \the [src] internals!"))
user.set_AI_busy(TRUE) // If the mob doesn't have an AI attached, this won't do anything.
if(do_after(user,10 SECONDS,src))
src.locked = 0
@@ -76,13 +76,13 @@
src.shock(user, 100)
user.set_AI_busy(FALSE)
else if(src.density)
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
open(1)
else
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
close(1)
else
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
@@ -91,10 +91,10 @@
var/mob/living/carbon/human/X = user
if(istype(X.species, /datum/species/xenos))
if(src.locked || src.welded)
- visible_message("\The [user] begins tearing into \the [src] internals!")
+ visible_message(span_alium("\The [user] begins tearing into \the [src] internals!"))
src.do_animate("deny")
if(do_after(user,15 SECONDS,src))
- visible_message("\The [user] tears \the [src] open, sparks flying from its electronics!")
+ visible_message(span_danger("\The [user] tears \the [src] open, sparks flying from its electronics!"))
src.do_animate("spark")
playsound(src, 'sound/machines/door/airlock_tear_apart.ogg', 100, 1, volume_channel = VOLUME_CHANNEL_DOORS)
src.locked = 0
@@ -103,17 +103,17 @@
open(1)
src.set_broken() //These aren't emags, these be CLAWS
else if(src.density)
- visible_message("\The [user] begins forcing \the [src] open!")
+ visible_message(span_alium("\The [user] begins forcing \the [src] open!"))
if(do_after(user, 5 SECONDS,src))
playsound(src, 'sound/machines/door/airlock_creaking.ogg', 100, 1, volume_channel = VOLUME_CHANNEL_DOORS)
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
open(1)
else
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
close(1)
else
src.do_animate("deny")
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
@@ -670,7 +670,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, span_danger("You feel a powerful shock course through your body!"))
user.halloss += 10
user.stunned += 10
return
@@ -1007,7 +1007,7 @@ About the new airlock wires panel:
if(!Adjacent(user))
return
else if(user.a_intent == I_HURT)
- src.visible_message("[user] hammers on \the [src]!", "Someone hammers loudly on \the [src]!")
+ src.visible_message(span_warning("[user] hammers on \the [src]!"), span_warning("Someone hammers loudly on \the [src]!"))
src.add_fingerprint(user)
if(icon_state == "door_closed" && arePowerSystemsOn())
flick("door_deny", src)
@@ -1043,14 +1043,14 @@ About the new airlock wires panel:
loseMainPower()
update_icon()
else
- to_chat(usr, "Main power is already offline.")
+ to_chat(usr, span_warning("Main power is already offline."))
. = TRUE
if("disrupt-backup")
if(!backup_power_lost_until)
loseBackupPower()
update_icon()
else
- to_chat(usr, "Backup power is already offline.")
+ to_chat(usr, span_warning("Backup power is already offline."))
. = TRUE
if("shock-restore")
electrify(0, 1)
@@ -1105,27 +1105,27 @@ About the new airlock wires panel:
if(!user_allowed(user))
return
if(wires.is_cut(WIRE_DOOR_BOLTS))
- to_chat(user, "The door bolt drop wire is cut - you can't toggle the door bolts.")
+ to_chat(user, span_warning("The door bolt drop wire is cut - you can't toggle the door bolts."))
return
if(locked)
if(!arePowerSystemsOn())
- to_chat(user, "The door has no power - you can't raise the door bolts.")
+ to_chat(user, span_warning("The door has no power - you can't raise the door bolts."))
else
unlock()
- to_chat(user, "The door bolts have been raised.")
+ to_chat(user, span_notice("The door bolts have been raised."))
// log_combat(user, src, "unbolted")
else
lock()
- to_chat(user, "The door bolts have been dropped.")
+ to_chat(user, span_warning("The door bolts have been dropped."))
// log_combat(user, src, "bolted")
/obj/machinery/door/airlock/proc/user_toggle_open(mob/user)
if(!user_allowed(user))
return
if(welded)
- to_chat(user, text("The airlock has been welded shut!"))
+ to_chat(user, span_warning("The airlock has been welded shut!"))
else if(locked)
- to_chat(user, text("The door bolts are down!"))
+ to_chat(user, span_warning("The door bolts are down!"))
else if(!density)
close()
else
@@ -1167,7 +1167,7 @@ About the new airlock wires panel:
else if(C.has_tool_quality(TOOL_SCREWDRIVER))
if (src.p_open)
if (stat & BROKEN)
- to_chat(usr, "The panel is broken and cannot be closed.")
+ to_chat(usr, span_warning("The panel is broken and cannot be closed."))
else
src.p_open = FALSE
playsound(src, C.usesound, 50, 1)
@@ -1192,7 +1192,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, span_notice("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))
@@ -1220,9 +1220,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, span_notice("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, span_notice("The airlock's bolts prevent it from being forced."))
else
if(density)
spawn(0) open(1)
@@ -1234,12 +1234,12 @@ About the new airlock wires panel:
var/obj/item/W = C
if((W.pry == 1) && !arePowerSystemsOn())
if(locked)
- to_chat(user, "The airlock's bolts prevent it from being forced.")
+ to_chat(user, span_notice("The airlock's bolts prevent it from being forced."))
else if( !welded && !operating )
if(istype(C, /obj/item/material/twohanded/fireaxe)) // If this is a fireaxe, make sure it's held in two hands.
var/obj/item/material/twohanded/fireaxe/F = C
if(!F.wielded)
- to_chat(user, "You need to be wielding \the [F] to do that.")
+ to_chat(user, span_warning("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 b9f4ea4f85..5d8fd2c688 100644
--- a/code/game/machinery/doors/airlock_control.dm
+++ b/code/game/machinery/doors/airlock_control.dm
@@ -263,7 +263,7 @@
/obj/machinery/access_button/attack_hand(mob/user)
add_fingerprint(usr)
if(!allowed(user))
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
else if(radio_connection)
var/datum/signal/signal = new
diff --git a/code/game/machinery/doors/airlock_electronics.dm b/code/game/machinery/doors/airlock_electronics.dm
index 9b84376f9a..039e211106 100644
--- a/code/game/machinery/doors/airlock_electronics.dm
+++ b/code/game/machinery/doors/airlock_electronics.dm
@@ -19,7 +19,7 @@
/obj/item/airlock_electronics/emag_act(var/remaining_charges, var/mob/user)
if(!emagged)
emagged = 1
- to_chat(user, "You remove the access restrictions on [src]!")
+ to_chat(user, span_notice("You remove the access restrictions on [src]!"))
return 1
/obj/item/airlock_electronics/attack_self(mob/user as mob)
@@ -149,5 +149,5 @@
secure = 1
/obj/item/airlock_electronics/secure/emag_act(var/remaining_charges, var/mob/user)
- to_chat(user, "You don't appear to be able to bypass this hardened device!")
+ to_chat(user, span_warning("You don't appear to be able to bypass this hardened device!"))
return -1
diff --git a/code/game/machinery/doors/blast_door.dm b/code/game/machinery/doors/blast_door.dm
index 6c2748fe55..355f561c1f 100644
--- a/code/game/machinery/doors/blast_door.dm
+++ b/code/game/machinery/doors/blast_door.dm
@@ -158,7 +158,7 @@
if(istype(C,/obj/item/material/twohanded/fireaxe)) // Fireaxes need to be in both hands to pry.
var/obj/item/material/twohanded/fireaxe/F = C
if(!F.wielded)
- to_chat(user, "You need to be wielding \the [F] to do that.")
+ to_chat(user, span_warning("You need to be wielding \the [F] to do that."))
return
// If we're at this point, it's a fireaxe in both hands or something else that doesn't care for twohanding.
@@ -166,7 +166,7 @@
force_toggle(1, user)
else
- to_chat(user, "[src]'s motors resist your effort.")
+ to_chat(user, span_notice("[src]'s motors resist your effort."))
return
@@ -176,9 +176,9 @@
if(W.damtype == BRUTE || W.damtype == BURN)
user.do_attack_animation(src)
if(W.force < min_force)
- user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.")
+ user.visible_message(span_danger("\The [user] hits \the [src] with \the [W] with no visible effect."))
else
- user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!")
+ user.visible_message(span_danger("\The [user] forcefully strikes \the [src] with \the [W]!"))
playsound(src, hitsound, 100, 1)
take_damage(W.force*0.35) //it's a blast door, it should take a while. -Luke
return
@@ -186,19 +186,19 @@
else if(istype(C, /obj/item/stack/material) && C.get_material_name() == "plasteel") // Repairing.
var/amt = CEILING((maxhealth - health)/150, 1)
if(!amt)
- to_chat(user, "\The [src] is already fully repaired.")
+ to_chat(user, span_notice("\The [src] is already fully repaired."))
return
var/obj/item/stack/P = C
if(P.get_amount() < amt)
- to_chat(user, "You don't have enough sheets to repair this! You need at least [amt] sheets.")
+ to_chat(user, span_warning("You don't have enough sheets to repair this! You need at least [amt] sheets."))
return
- to_chat(user, "You begin repairing [src]...")
+ to_chat(user, span_notice("You begin repairing [src]..."))
if(do_after(usr, 30))
if(P.use(amt))
- to_chat(user, "You have repaired \The [src]")
+ to_chat(user, span_notice("You have repaired \The [src]"))
src.repair()
else
- to_chat(user, "You don't have enough sheets to repair this! You need at least [amt] sheets.")
+ to_chat(user, span_warning("You don't have enough sheets to repair this! You need at least [amt] sheets."))
else if(src.density && (user.a_intent == I_HURT)) //If we can't pry it open and it's not a weapon.... Eh, let's attack it anyway.
var/obj/item/W = C
@@ -206,9 +206,9 @@
if(istype(W) && (W.damtype == BRUTE || W.damtype == BURN))
user.do_attack_animation(src)
if(W.force < min_force) //No actual non-weapon item shouls have a force greater than the min_force, but let's include this just in case.
- user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.")
+ user.visible_message(span_danger("\The [user] hits \the [src] with \the [W] with no visible effect."))
else
- user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!")
+ user.visible_message(span_danger("\The [user] forcefully strikes \the [src] with \the [W]!"))
playsound(src, hitsound, 100, 1)
take_damage(W.force*0.15) //If the item isn't a weapon, let's make this take longer than usual to break it down.
return
@@ -221,19 +221,19 @@
var/mob/living/carbon/human/X = user
if(istype(X.species, /datum/species/xenos))
if(src.density)
- visible_message("\The [user] begins forcing \the [src] open!")
+ visible_message(span_alium("\The [user] begins forcing \the [src] open!"))
if(do_after(user, 15 SECONDS,src))
playsound(src, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
force_open(1)
else
- visible_message("\The [user] begins forcing \the [src] closed!")
+ visible_message(span_alium("\The [user] begins forcing \the [src] closed!"))
if(do_after(user, 5 SECONDS,src))
playsound(src, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
force_close(1)
else
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
@@ -245,18 +245,18 @@
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
user.set_AI_busy(TRUE) // If the mob doesn't have an AI attached, this won't do anything.
if(src.density)
- visible_message("\The [user] starts forcing \the [src] open!")
+ visible_message(span_danger("\The [user] starts forcing \the [src] open!"))
if(do_after(user, 5 SECONDS, src))
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
force_open(1)
else
- visible_message("\The [user] starts forcing \the [src] closed!")
+ visible_message(span_danger("\The [user] starts forcing \the [src] closed!"))
if(do_after(user, 2 SECONDS, src))
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
force_close(1)
user.set_AI_busy(FALSE)
else
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm
index 3bf8461081..84a8a1e2e0 100644
--- a/code/game/machinery/doors/brigdoors.dm
+++ b/code/game/machinery/doors/brigdoors.dm
@@ -179,7 +179,7 @@
. = TRUE
if(!allowed(usr))
- to_chat(usr, "Access denied.")
+ to_chat(usr, span_warning("Access denied."))
return FALSE
switch(action)
diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm
index 337d01981f..fec41756e0 100644
--- a/code/game/machinery/doors/door.dm
+++ b/code/game/machinery/doors/door.dm
@@ -43,7 +43,7 @@
if(isanimal(user))
var/mob/living/simple_mob/S = user
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
- visible_message("\The [user] smashes into [src]!")
+ visible_message(span_danger("\The [user] smashes into [src]!"))
playsound(src, S.attack_sound, 75, 1)
take_damage(damage)
else
@@ -178,7 +178,7 @@
if (damage > 90)
destroy_hits--
if (destroy_hits <= 0)
- visible_message("\The [src.name] disintegrates!")
+ visible_message(span_danger("\The [src.name] disintegrates!"))
switch (Proj.damage_type)
if(BRUTE)
new /obj/item/stack/material/steel(src.loc, 2)
@@ -196,7 +196,7 @@
/obj/machinery/door/hitby(AM as mob|obj, var/speed=5)
..()
- visible_message("[src.name] was hit by [AM].")
+ visible_message(span_danger("[src.name] was hit by [AM]."))
var/tforce = 0
if(ismob(AM))
tforce = 15 * (speed/5)
@@ -225,16 +225,16 @@
return //VOREStation begin: Fireproofing
if(health < maxhealth && I.has_tool_quality(TOOL_WELDER))
if(!density)
- to_chat(user, "\The [src] must be closed before you can repair it.")
+ to_chat(user, span_warning("\The [src] must be closed before you can repair it."))
return
var/obj/item/weldingtool/welder = I.get_welder()
if(welder.remove_fuel(0,user))
- to_chat(user, "You start to fix dents and repair \the [src].")
+ to_chat(user, span_notice("You start to fix dents and repair \the [src]."))
playsound(src, welder.usesound, 50, 1)
var/repairtime = maxhealth - health //Since we're not using materials anymore... We'll just calculate how much damage there is to repair.
if(do_after(user, repairtime * welder.toolspeed) && welder && welder.isOn())
- to_chat(user, "You finish repairing the damage to \the [src].")
+ to_chat(user, span_notice("You finish repairing the damage to \the [src]."))
health = maxhealth
update_icon()
return
@@ -245,9 +245,9 @@
if(W.damtype == BRUTE || W.damtype == BURN)
user.do_attack_animation(src)
if(W.force < min_force)
- user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.")
+ user.visible_message(span_danger("\The [user] hits \the [src] with \the [W] with no visible effect."))
else
- user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!")
+ user.visible_message(span_danger("\The [user] forcefully strikes \the [src] with \the [W]!"))
playsound(src, hitsound, 100, 1)
take_damage(W.force)
return
diff --git a/code/game/machinery/doors/door_vr.dm b/code/game/machinery/doors/door_vr.dm
index 015ca8fa4f..be8d84fefc 100644
--- a/code/game/machinery/doors/door_vr.dm
+++ b/code/game/machinery/doors/door_vr.dm
@@ -29,7 +29,7 @@
if (burndamage && health <= 0) //once they break, start taking damage to destroy_hits
destroy_hits -= (burndamage / destroytime)
if (destroy_hits <= 0)
- visible_message("\The [src.name] disintegrates!")
+ visible_message(span_danger("\The [src.name] disintegrates!"))
new /obj/effect/decal/cleanable/ash(src.loc) // Turn it to ashes!
qdel(src)
take_damage(burndamage)
@@ -40,13 +40,13 @@
/obj/machinery/door/proc/attackby_vr(obj/item/I as obj, mob/user as mob)
if(istype(I, /obj/item/stack/material) && I.get_material_name() == "plasteel")
if(heat_proof)
- to_chat(user, "\The [src] is already reinforced.")
+ to_chat(user, span_warning("\The [src] is already reinforced."))
return TRUE
if((stat & BROKEN) || (health < maxhealth))
- to_chat(user, "It looks like \the [src] broken. Repair it before reinforcing it.")
+ to_chat(user, span_notice("It looks like \the [src] broken. Repair it before reinforcing it."))
return TRUE
if(!density)
- to_chat(user, "\The [src] must be closed before you can reinforce it.")
+ to_chat(user, span_warning("\The [src] must be closed before you can reinforce it."))
return TRUE
var/amount_needed = 2
@@ -56,7 +56,7 @@
var/mats_given = stack.get_amount()
var/singular_name = stack.singular_name
if(reinforcing && amount_given <= 0)
- to_chat(user, "You must weld or remove \the plasteel from \the [src] before you can add anything else.")
+ to_chat(user, span_warning("You must weld or remove \the plasteel from \the [src] before you can add anything else."))
else
if(mats_given >= amount_given)
if(stack.use(amount_given))
@@ -66,25 +66,25 @@
reinforcing += mats_given
amount_given = mats_given
if(amount_given)
- to_chat(user, "You fit [amount_given] [singular_name]\s on \the [src].")
+ to_chat(user, span_notice("You fit [amount_given] [singular_name]\s on \the [src]."))
return TRUE
if(reinforcing && I.has_tool_quality(TOOL_WELDER))
if(!density)
- to_chat(user, "\The [src] must be closed before you can reinforce it.")
+ to_chat(user, span_warning("\The [src] must be closed before you can reinforce it."))
return TRUE
if(reinforcing < 2)
- to_chat(user, "You will need more plasteel to reinforce \the [src].")
+ to_chat(user, span_warning("You will need more plasteel to reinforce \the [src]."))
return TRUE
var/obj/item/weldingtool/welder = I.get_welder()
if(welder.remove_fuel(0,user))
- to_chat(user, "You start weld \the plasteel into place.")
+ to_chat(user, span_notice("You start weld \the plasteel into place."))
playsound(src, welder.usesound, 50, 1)
if(do_after(user, 10 * welder.toolspeed) && welder && welder.isOn())
- to_chat(user, "You finish reinforcing \the [src].")
+ to_chat(user, span_notice("You finish reinforcing \the [src]."))
heat_proof = 1
update_icon()
reinforcing = 0
@@ -93,7 +93,7 @@
if(reinforcing && I.has_tool_quality(TOOL_CROWBAR))
var/obj/item/stack/material/plasteel/reinforcing_sheet = new /obj/item/stack/material/plasteel(src.loc, reinforcing)
reinforcing = 0
- to_chat(user, "You remove \the [reinforcing_sheet].")
+ to_chat(user, span_notice("You remove \the [reinforcing_sheet]."))
playsound(src, I.usesound, 100, 1)
return TRUE
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index 79f428126b..3c3431ecca 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -84,7 +84,7 @@
return .
if(pdiff >= FIREDOOR_MAX_PRESSURE_DIFF)
- . += "WARNING: Current pressure differential is [pdiff]kPa! Opening door may result in injury!"
+ . += span_warning("WARNING: Current pressure differential is [pdiff]kPa! Opening door may result in injury!")
. += "Sensor readings:"
for(var/index = 1; index <= tile_info.len; index++)
@@ -99,7 +99,7 @@
if(4)
o += "WEST: "
if(tile_info[index] == null)
- o += "DATA UNAVAILABLE"
+ o += span_warning("DATA UNAVAILABLE")
. += o
continue
var/celsius = convert_k2c(tile_info[index][1])
@@ -143,7 +143,7 @@
return
if(blocked)
- to_chat(user, "\The [src] is welded solid!")
+ to_chat(user, span_warning("\The [src] is welded solid!"))
return
var/alarmed = lockdown
@@ -163,10 +163,10 @@
return
if(alarmed && density && lockdown && !allowed(user))
- to_chat(user, "Access denied. Please wait for authorities to arrive, or for the alert to clear.")
+ to_chat(user, span_warning("Access denied. Please wait for authorities to arrive, or for the alert to clear."))
return
else
- user.visible_message("\The [src] [density ? "open" : "close"]s for \the [user].",\
+ user.visible_message(span_notice("\The [src] [density ? "open" : "close"]s for \the [user]."),\
"\The [src] [density ? "open" : "close"]s.",\
"You hear a beep, and a door opening.")
@@ -197,23 +197,23 @@
var/mob/living/carbon/human/X = user
if(istype(X.species, /datum/species/xenos))
if(src.blocked)
- visible_message("\The [user] begins digging into \the [src] internals!")
+ visible_message(span_alium("\The [user] begins digging into \the [src] internals!"))
if(do_after(user,5 SECONDS,src))
playsound(src, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
src.blocked = 0
update_icon()
open(1)
else if(src.density)
- visible_message("\The [user] begins forcing \the [src] open!")
+ visible_message(span_alium("\The [user] begins forcing \the [src] open!"))
if(do_after(user, 2 SECONDS,src))
playsound(src, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
open(1)
else
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
close(1)
else
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
@@ -222,23 +222,23 @@
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
var/time_to_force = (2 + (2 * blocked)) * 5
if(src.density)
- visible_message("\The [user] starts forcing \the [src] open!")
+ visible_message(span_danger("\The [user] starts forcing \the [src] open!"))
user.set_AI_busy(TRUE) // If the mob doesn't have an AI attached, this won't do anything.
if(do_after(user, time_to_force, src))
- visible_message("\The [user] forces \the [src] open!")
+ visible_message(span_danger("\The [user] forces \the [src] open!"))
src.blocked = 0
open(1)
user.set_AI_busy(FALSE)
else
time_to_force = (time_to_force / 2)
- visible_message("\The [user] starts forcing \the [src] closed!")
+ visible_message(span_danger("\The [user] starts forcing \the [src] closed!"))
user.set_AI_busy(TRUE) // If the mob doesn't have an AI attached, this won't do anything.
if(do_after(user, time_to_force, src))
- visible_message("\The [user] forces \the [src] closed!")
+ visible_message(span_danger("\The [user] forces \the [src] closed!"))
close(1)
user.set_AI_busy(FALSE)
else
- visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")
+ visible_message(span_notice("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"]."))
return
..()
@@ -255,11 +255,11 @@
return
//VOREstation Edit End
if(prying)
- to_chat(user, "Someone's busy prying that [density ? "open" : "closed"]!")
+ to_chat(user, span_notice("Someone's busy prying that [density ? "open" : "closed"]!"))
var/obj/item/weldingtool/W = C.get_welder()
if(W.remove_fuel(0, user))
blocked = !blocked
- user.visible_message("\The [user] [blocked ? "welds" : "unwelds"] \the [src] with \a [W].",\
+ user.visible_message(span_danger("\The [user] [blocked ? "welds" : "unwelds"] \the [src] with \a [W]."),\
"You [blocked ? "weld" : "unweld"] \the [src] with \the [W].",\
"You hear something being welded.")
playsound(src, W.usesound, 100, 1)
@@ -269,21 +269,21 @@
if(density && C.has_tool_quality(TOOL_SCREWDRIVER))
hatch_open = !hatch_open
playsound(src, C.usesound, 50, 1)
- user.visible_message("[user] has [hatch_open ? "opened" : "closed"] \the [src] maintenance hatch.",
+ user.visible_message(span_danger("[user] has [hatch_open ? "opened" : "closed"] \the [src] maintenance hatch."),
"You have [hatch_open ? "opened" : "closed"] the [src] maintenance hatch.")
update_icon()
return
if(blocked && C.has_tool_quality(TOOL_CROWBAR))
if(!hatch_open)
- to_chat(user, "You must open the maintenance hatch first!")
+ to_chat(user, span_danger("You must open the maintenance hatch first!"))
else
- user.visible_message("[user] is removing the electronics from \the [src].",
+ user.visible_message(span_danger("[user] is removing the electronics from \the [src]."),
"You start to remove the electronics from [src].")
if(do_after(user,30))
if(blocked && density && hatch_open)
playsound(src, C.usesound, 50, 1)
- user.visible_message("[user] has removed the electronics from \the [src].",
+ user.visible_message(span_danger("[user] has removed the electronics from \the [src]."),
"You have removed the electronics from [src].")
if (stat & BROKEN)
@@ -301,7 +301,7 @@
return
if(blocked)
- to_chat(user, "\The [src] is welded shut!")
+ to_chat(user, span_danger("\The [src] is welded shut!"))
return
if(C.pry == 1)
@@ -309,7 +309,7 @@
return
if(blocked && C.has_tool_quality(TOOL_CROWBAR))
- user.visible_message("\The [user] pries at \the [src] with \a [C], but \the [src] is welded in place!",\
+ user.visible_message(span_danger("\The [user] pries at \the [src] with \a [C], but \the [src] is welded in place!"),\
"You try to pry \the [src] [density ? "open" : "closed"], but it is welded in place!",\
"You hear someone struggle and metal straining.")
return
@@ -320,10 +320,10 @@
return
if(prying)
- to_chat(user, "Someone's already prying that [density ? "open" : "closed"].")
+ to_chat(user, span_notice("Someone's already prying that [density ? "open" : "closed"]."))
return
- user.visible_message("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [C]!",\
+ user.visible_message(span_danger("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [C]!"),\
"You start forcing \the [src] [density ? "open" : "closed"] with \the [C]!",\
"You hear metal strain.")
prying = 1
@@ -332,11 +332,11 @@
if(do_after(user,30 * C.toolspeed))
if(C.has_tool_quality(TOOL_CROWBAR))
if(stat & (BROKEN|NOPOWER) || !density)
- user.visible_message("\The [user] forces \the [src] [density ? "open" : "closed"] with \a [C]!",\
+ user.visible_message(span_danger("\The [user] forces \the [src] [density ? "open" : "closed"] with \a [C]!"),\
"You force \the [src] [density ? "open" : "closed"] with \the [C]!",\
"You hear metal strain, and a door [density ? "open" : "close"].")
else
- user.visible_message("\The [user] forces \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \a [C]!",\
+ user.visible_message(span_danger("\The [user] forces \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \a [C]!"),\
"You force \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \the [C]!",\
"You hear metal strain and groan, and a door [density ? "opening" : "closing"].")
if(density)
diff --git a/code/game/machinery/doors/firedoor_assembly.dm b/code/game/machinery/doors/firedoor_assembly.dm
index 64410adec6..ccdcb96ca9 100644
--- a/code/game/machinery/doors/firedoor_assembly.dm
+++ b/code/game/machinery/doors/firedoor_assembly.dm
@@ -23,13 +23,13 @@
if(istype(C, /obj/item/stack/cable_coil) && !wired && anchored)
var/obj/item/stack/cable_coil/cable = C
if (cable.get_amount() < 1)
- to_chat(user, "You need one length of coil to wire \the [src].")
+ to_chat(user, span_warning("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
- to_chat(user, "You wire \the [src].")
+ to_chat(user, span_notice("You wire \the [src]."))
else if(C.has_tool_quality(TOOL_WIRECUTTER) && wired )
playsound(src, C.usesound, 100, 1)
@@ -37,14 +37,14 @@
if(do_after(user, 40))
if(!src) return
- to_chat(user, "You cut the wires!")
+ to_chat(user, span_notice("You cut the wires!"))
new/obj/item/stack/cable_coil(src.loc, 1)
wired = 0
else if(istype(C, /obj/item/circuitboard/airalarm) && wired)
if(anchored)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- user.visible_message("[user] has inserted a circuit into \the [src]!",
+ user.visible_message(span_warning("[user] has inserted a circuit into \the [src]!"),
"You have inserted the circuit into \the [src]!")
if(glass)
new /obj/machinery/door/firedoor/glass(loc)
@@ -53,11 +53,11 @@
qdel(C)
qdel(src)
else
- to_chat(user, "You must secure \the [src] first!")
+ to_chat(user, span_warning("You must secure \the [src] first!"))
else if(C.has_tool_quality(TOOL_WRENCH))
anchored = !anchored
playsound(src, C.usesound, 50, 1)
- user.visible_message("[user] has [anchored ? "" : "un" ]secured \the [src]!",
+ user.visible_message(span_warning("[user] has [anchored ? "" : "un" ]secured \the [src]!"),
"You have [anchored ? "" : "un" ]secured \the [src]!")
update_icon()
else if((glass || !anchored) && C.has_tool_quality(TOOL_WELDER))
@@ -65,32 +65,32 @@
if(WT.remove_fuel(0, user))
playsound(src, WT.usesound, 50, 1)
if(glass)
- user.visible_message("[user] welds the glass panel out of \the [src].",
- "You start to weld the glass panel out of \the [src].")
+ user.visible_message(span_warning("[user] welds the glass panel out of \the [src]."),
+ span_notice("You start to weld the glass panel out of \the [src]."))
if(do_after(user, 40 * WT.toolspeed, src) && WT.isOn())
- to_chat(user, "You welded the glass panel out!")
+ to_chat(user, span_notice("You welded the glass panel out!"))
new /obj/item/stack/material/glass/reinforced(drop_location())
glass = FALSE
update_icon()
return
if(!anchored)
- user.visible_message("[user] dissassembles \the [src].", "You start to dissassemble \the [src].")
+ user.visible_message(span_warning("[user] dissassembles \the [src]."), "You start to dissassemble \the [src].")
if(do_after(user, 40 * WT.toolspeed, src) && WT.isOn())
- user.visible_message("[user] has dissassembled \the [src].",
+ user.visible_message(span_warning("[user] has dissassembled \the [src]."),
"You have dissassembled \the [src].")
new /obj/item/stack/material/steel(drop_location(), 2)
qdel(src)
return
else
- to_chat(user, "You need more welding fuel.")
+ to_chat(user, span_notice("You need more welding fuel."))
else if(istype(C, /obj/item/stack/material) && C.get_material_name() == "rglass" && !glass)
var/obj/item/stack/S = C
if (S.get_amount() >= 1)
playsound(src, 'sound/items/Crowbar.ogg', 100, 1)
- user.visible_message("[user] adds [S.name] to \the [src].",
- "You start to install [S.name] into \the [src].")
+ user.visible_message(span_info("[user] adds [S.name] to \the [src]."),
+ span_notice("You start to install [S.name] into \the [src]."))
if(do_after(user, 40, src) && !glass && S.use(1))
- to_chat(user, "You installed reinforced glass windows into \the [src].")
+ to_chat(user, span_notice("You installed reinforced glass windows into \the [src]."))
glass = TRUE
update_icon()
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index 61fbc6bf0d..5117401535 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -156,7 +156,7 @@
var/mob/living/carbon/human/H = user
if(H.species.can_shred(H))
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
- visible_message("[user] smashes against the [src.name].", 1)
+ visible_message(span_danger("[user] smashes against the [src.name]."), 1)
user.do_attack_animation(src)
user.setClickCooldown(user.get_attack_speed())
take_damage(25)
@@ -193,14 +193,14 @@
var/obj/item/weldingtool/WT = I.get_welder()
if(health < maxhealth)
if(WT.remove_fuel(1 ,user))
- to_chat(user, "You begin repairing [src]...")
+ to_chat(user, span_notice("You begin repairing [src]..."))
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 40 * WT.toolspeed, target = src))
health = maxhealth
update_icon()
- to_chat(user, "You repair [src].")
+ to_chat(user, span_notice("You repair [src]."))
else
- to_chat(user, "[src] is already in good condition!")
+ to_chat(user, span_warning("[src] is already in good condition!"))
return
//Emags and ninja swords? You may pass.
@@ -211,7 +211,7 @@
spark_system.start()
playsound(src, "sparks", 50, 1)
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
- visible_message("The glass door was sliced open by [user]!")
+ visible_message(span_warning("The glass door was sliced open by [user]!"))
return 1
//If it's opened/emagged, crowbar can pry it out of its frame.
@@ -219,7 +219,7 @@
playsound(src, I.usesound, 50, 1)
user.visible_message("[user] begins prying the windoor out of the frame.", "You start to pry the windoor out of the frame.")
if (do_after(user,40 * I.toolspeed))
- to_chat(user,"You pried the windoor out of the frame!")
+ to_chat(user,span_notice("You pried the windoor out of the frame!"))
var/obj/structure/windoor_assembly/wa = new/obj/structure/windoor_assembly(src.loc)
if (istype(src, /obj/machinery/door/window/brigdoor))
@@ -255,7 +255,7 @@
user.setClickCooldown(user.get_attack_speed(I))
var/aforce = I.force
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
- visible_message("[src] was hit by [I].")
+ visible_message(span_danger("[src] was hit by [I]."))
if(I.damtype == BRUTE || I.damtype == BURN)
take_damage(aforce)
return
diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm
index 556309040f..2bbc19a39c 100644
--- a/code/game/machinery/doppler_array.dm
+++ b/code/game/machinery/doppler_array.dm
@@ -41,7 +41,7 @@ var/list/doppler_arrays = list()
var/message = "Explosive disturbance detected - Epicenter at: grid ([x0],[y0]). Epicenter radius: [devastation_range]. Outer radius: [heavy_impact_range]. Shockwave radius: [light_impact_range]. Temporal displacement of tachyons: [took]seconds."
for(var/mob/O in hearers(src, null))
- O.show_message("[src] states coldly, \"[message]\"",2)
+ O.show_message(span_npcsay("[src] states coldly, \"[message]\""),2)
/obj/machinery/doppler_array/power_change()
..()
diff --git a/code/game/machinery/fire_alarm.dm b/code/game/machinery/fire_alarm.dm
index 9d5c2269e8..e27a58fe1f 100644
--- a/code/game/machinery/fire_alarm.dm
+++ b/code/game/machinery/fire_alarm.dm
@@ -88,14 +88,14 @@ FIRE ALARM
if("blue") set_light(l_range = 2, l_power = 0.25, l_color = "#1024A9")
if("red") set_light(l_range = 4, l_power = 0.9, l_color = "#ff0000")
if("delta") set_light(l_range = 4, l_power = 0.9, l_color = "#FF6633")
-
+
. += mutable_appearance(icon, fire_state)
. += emissive_appearance(icon, fire_state)
-
+
if(seclevel)
. += mutable_appearance(icon, "overlay_[seclevel]")
. += emissive_appearance(icon, "overlay_[seclevel]")
-
+
add_overlay(.)
/obj/machinery/firealarm/fire_act(datum/gas_mixture/air, temperature, volume)
@@ -127,9 +127,9 @@ FIRE ALARM
if(istype(W, /obj/item/multitool))
detecting = !(detecting)
if(detecting)
- user.visible_message("\The [user] has reconnected [src]'s detecting unit!", "You have reconnected [src]'s detecting unit.")
+ user.visible_message(span_notice("\The [user] has reconnected [src]'s detecting unit!"), span_notice("You have reconnected [src]'s detecting unit."))
else
- user.visible_message("\The [user] has disconnected [src]'s detecting unit!", "You have disconnected [src]'s detecting unit.")
+ user.visible_message(span_notice("\The [user] has disconnected [src]'s detecting unit!"), span_notice("You have disconnected [src]'s detecting unit."))
return
alarm()
diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm
index f308393365..ed53a6e439 100644
--- a/code/game/machinery/flasher.dm
+++ b/code/game/machinery/flasher.dm
@@ -39,9 +39,9 @@
add_fingerprint(user)
disable = !disable
if(disable)
- user.visible_message("[user] has disconnected the [src]'s flashbulb!", "You disconnect the [src]'s flashbulb!")
+ user.visible_message(span_warning("[user] has disconnected the [src]'s flashbulb!"), span_warning("You disconnect the [src]'s flashbulb!"))
if(!disable)
- user.visible_message("[user] has connected the [src]'s flashbulb!", "You connect the [src]'s flashbulb!")
+ user.visible_message(span_warning("[user] has connected the [src]'s flashbulb!"), span_warning("You connect the [src]'s flashbulb!"))
//Let the AI trigger them directly.
/obj/machinery/flasher/attack_ai()
@@ -112,12 +112,12 @@
anchored = !anchored
if(!anchored)
- user.show_message(text("[src] can now be moved."))
+ user.show_message(span_warning("[src] can now be moved."))
cut_overlays()
unsense_proximity(callback = /atom/proc/HasProximity)
else if(anchored)
- user.show_message(text("[src] is now secured."))
+ user.show_message(span_warning("[src] is now secured."))
add_overlay("[base_state]-s")
sense_proximity(callback = /atom/proc/HasProximity)
@@ -145,4 +145,4 @@
icon_state = "launcherbtt"
active = 0
- return
\ No newline at end of file
+ return
diff --git a/code/game/machinery/floor_light.dm b/code/game/machinery/floor_light.dm
index 90ba895e82..9768de95c0 100644
--- a/code/game/machinery/floor_light.dm
+++ b/code/game/machinery/floor_light.dm
@@ -25,18 +25,18 @@ var/list/floor_light_cache = list()
/obj/machinery/floor_light/attackby(var/obj/item/W, var/mob/user)
if(W.has_tool_quality(TOOL_SCREWDRIVER))
anchored = !anchored
- visible_message("\The [user] has [anchored ? "attached" : "detached"] \the [src].")
+ visible_message(span_notice("\The [user] has [anchored ? "attached" : "detached"] \the [src]."))
else if(W.has_tool_quality(TOOL_WELDER) && (damaged || (stat & BROKEN)))
var/obj/item/weldingtool/WT = W.get_welder()
if(!WT.remove_fuel(0, user))
- to_chat(user, "\The [src] must be on to complete this task.")
+ to_chat(user, span_warning("\The [src] must be on to complete this task."))
return
playsound(src, WT.usesound, 50, 1)
if(!do_after(user, 20 * WT.toolspeed))
return
if(!src || !WT.isOn())
return
- visible_message("\The [user] has repaired \the [src].")
+ visible_message(span_notice("\The [user] has repaired \the [src]."))
stat &= ~BROKEN
damaged = null
update_brightness()
@@ -48,11 +48,11 @@ var/list/floor_light_cache = list()
if(user.a_intent == I_HURT && !issmall(user))
if(!isnull(damaged) && !(stat & BROKEN))
- visible_message("\The [user] smashes \the [src]!")
+ visible_message(span_danger("\The [user] smashes \the [src]!"))
playsound(src, "shatter", 70, 1)
stat |= BROKEN
else
- visible_message("\The [user] attacks \the [src]!")
+ visible_message(span_danger("\The [user] attacks \the [src]!"))
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
if(isnull(damaged)) damaged = 0
update_brightness()
@@ -60,20 +60,20 @@ var/list/floor_light_cache = list()
else
if(!anchored)
- to_chat(user, "\The [src] must be screwed down first.")
+ to_chat(user, span_warning("\The [src] must be screwed down first."))
return
if(stat & BROKEN)
- to_chat(user, "\The [src] is too damaged to be functional.")
+ to_chat(user, span_warning("\The [src] is too damaged to be functional."))
return
if(stat & NOPOWER)
- to_chat(user, "\The [src] is unpowered.")
+ to_chat(user, span_warning("\The [src] is unpowered."))
return
on = !on
if(on) update_use_power(USE_POWER_ACTIVE)
- //visible_message("\The [user] turns \the [src] [on ? "on" : "off"].") //VOREStation Edit - No thankouuuu. Too spammy.
+ //visible_message(span_notice("\The [user] turns \the [src] [on ? "on" : "off"].")) //VOREStation Edit - No thankouuuu. Too spammy.
update_brightness()
return
diff --git a/code/game/machinery/floorlayer.dm b/code/game/machinery/floorlayer.dm
index 38da6b057f..bfd592e467 100644
--- a/code/game/machinery/floorlayer.dm
+++ b/code/game/machinery/floorlayer.dm
@@ -30,7 +30,7 @@
/obj/machinery/floorlayer/attack_hand(mob/user as mob)
on=!on
- user.visible_message("[user] has [!on?"de":""]activated \the [src].", "You [!on?"de":""]activate \the [src].")
+ user.visible_message(span_notice("[user] has [!on?"de":""]activated \the [src]."), span_notice("You [!on?"de":""]activate \the [src]."))
return
/obj/machinery/floorlayer/attackby(var/obj/item/W as obj, var/mob/user as mob)
@@ -38,22 +38,22 @@
var/m = tgui_input_list(usr, "Choose work mode", "Mode", mode)
mode[m] = !mode[m]
var/O = mode[m]
- user.visible_message("[usr] has set \the [src] [m] mode [!O?"off":"on"].", "You set \the [src] [m] mode [!O?"off":"on"].")
+ user.visible_message(span_notice("[usr] has set \the [src] [m] mode [!O?"off":"on"]."), span_notice("You set \the [src] [m] mode [!O?"off":"on"]."))
return
if(istype(W, /obj/item/stack/tile))
- to_chat(user, "\The [W] successfully loaded.")
+ to_chat(user, span_notice("\The [W] successfully loaded."))
user.drop_item(T)
TakeTile(T)
return
if(W.has_tool_quality(TOOL_CROWBAR))
if(!length(contents))
- to_chat(user, "\The [src] is empty.")
+ to_chat(user, span_notice("\The [src] is empty."))
else
var/obj/item/stack/tile/E = tgui_input_list(usr, "Choose remove tile type.", "Tiles", contents)
if(E)
- to_chat(user, "You remove the [E] from \the [src].")
+ to_chat(user, span_notice("You remove the [E] from \the [src]."))
E.loc = src.loc
T = null
return
@@ -68,7 +68,7 @@
var/dismantle = mode["dismantle"]
var/laying = mode["laying"]
var/collect = mode["collect"]
- . += "[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"]."
+ . += span_notice("[src] [!T ? "don't " : ""]has [!T ? "" : "[T.get_amount()] [T] "]tile\s, dismantle is [dismantle ? "on" : "off"], laying is [laying ? "on" : "off"], collect is [collect ? "on" : "off"].")
/obj/machinery/floorlayer/proc/reset()
on=0
@@ -107,4 +107,4 @@
/obj/machinery/floorlayer/proc/CollectTiles(var/turf/w_turf)
for(var/obj/item/stack/tile/tile in w_turf)
- TakeTile(tile)
\ No newline at end of file
+ TakeTile(tile)
diff --git a/code/game/machinery/frame.dm b/code/game/machinery/frame.dm
index fb108bf37e..ab1fe6aa50 100644
--- a/code/game/machinery/frame.dm
+++ b/code/game/machinery/frame.dm
@@ -302,7 +302,7 @@
/obj/structure/frame/attackby(obj/item/P as obj, mob/user as mob)
if(P.has_tool_quality(TOOL_WRENCH))
if(state == FRAME_PLACED && !anchored)
- to_chat(user, "You start to wrench the frame into place.")
+ to_chat(user, span_notice("You start to wrench the frame into place."))
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
anchored = TRUE
@@ -310,14 +310,14 @@
state = FRAME_FASTENED
check_components()
update_desc()
- to_chat(user, "You wrench the frame into place and set the outer cover.")
+ to_chat(user, span_notice("You wrench the frame into place and set the outer cover."))
else
- to_chat(user, "You wrench the frame into place.")
+ to_chat(user, span_notice("You wrench the frame into place."))
else if(state == FRAME_PLACED && anchored)
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
- to_chat(user, "You unfasten the frame.")
+ to_chat(user, span_notice("You unfasten the frame."))
anchored = FALSE
else if(P.has_tool_quality(TOOL_WELDER))
@@ -327,7 +327,7 @@
playsound(src, P.usesound, 50, 1)
if(do_after(user, 20 * P.toolspeed))
if(src && WT.isOn())
- to_chat(user, "You deconstruct the frame.")
+ to_chat(user, span_notice("You deconstruct the frame."))
new /obj/item/stack/material/steel(src.loc, frame_type.frame_size)
qdel(src)
return
@@ -341,7 +341,7 @@
var/datum/frame/frame_types/board_type = B.board_type
if(board_type.name == frame_type.name)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You place the circuit board inside the frame.")
+ to_chat(user, span_notice("You place the circuit board inside the frame."))
circuit = P
user.drop_item()
P.loc = src
@@ -350,25 +350,25 @@
check_components()
update_desc()
else
- to_chat(user, "This frame does not accept circuit boards of this type!")
+ to_chat(user, span_warning("This frame does not accept circuit boards of this type!"))
return
else if(P.has_tool_quality(TOOL_SCREWDRIVER))
if(state == FRAME_UNFASTENED)
if(need_circuit && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You screw the circuit board into place.")
+ to_chat(user, span_notice("You screw the circuit board into place."))
state = FRAME_FASTENED
else if(state == FRAME_FASTENED)
if(need_circuit && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You unfasten the circuit board.")
+ to_chat(user, span_notice("You unfasten the circuit board."))
state = FRAME_UNFASTENED
else if(!need_circuit && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You unfasten the outer cover.")
+ to_chat(user, span_notice("You unfasten the outer cover."))
state = FRAME_PLACED
else if(state == FRAME_WIRED)
@@ -410,7 +410,7 @@
else if(frame_type.frame_class == FRAME_CLASS_ALARM)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You fasten the cover.")
+ to_chat(user, span_notice("You fasten the cover."))
var/obj/machinery/B = new circuit.build_path(src.loc)
B.pixel_x = pixel_x
B.pixel_y = pixel_y
@@ -424,7 +424,7 @@
else if(state == FRAME_PANELED)
if(frame_type.frame_class == FRAME_CLASS_COMPUTER)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You connect the monitor.")
+ to_chat(user, span_notice("You connect the monitor."))
var/obj/machinery/B = new circuit.build_path(src.loc)
B.pixel_x = pixel_x
B.pixel_y = pixel_y
@@ -437,7 +437,7 @@
else if(frame_type.frame_class == FRAME_CLASS_DISPLAY)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You connect the monitor.")
+ to_chat(user, span_notice("You connect the monitor."))
var/obj/machinery/B = new circuit.build_path(src.loc)
B.pixel_x = pixel_x
B.pixel_y = pixel_y
@@ -452,7 +452,7 @@
if(state == FRAME_UNFASTENED)
if(need_circuit && circuit)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the circuit board.")
+ to_chat(user, span_notice("You remove the circuit board."))
state = FRAME_PLACED
circuit.forceMove(src.loc)
circuit = null
@@ -464,9 +464,9 @@
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
playsound(src, P.usesound, 50, 1)
if(components.len == 0)
- to_chat(user, "There are no components to remove.")
+ to_chat(user, span_notice("There are no components to remove."))
else
- to_chat(user, "You remove the components.")
+ to_chat(user, span_notice("You remove the components."))
for(var/obj/item/W in components)
W.forceMove(src.loc)
check_components()
@@ -476,13 +476,13 @@
else if(state == FRAME_PANELED)
if(frame_type.frame_class == FRAME_CLASS_COMPUTER)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the glass panel.")
+ to_chat(user, span_notice("You remove the glass panel."))
state = FRAME_WIRED
new /obj/item/stack/material/glass(src.loc, 2)
else if(frame_type.frame_class == FRAME_CLASS_DISPLAY)
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You remove the glass panel.")
+ to_chat(user, span_notice("You remove the glass panel."))
state = FRAME_WIRED
new /obj/item/stack/material/glass(src.loc, 2)
@@ -490,13 +490,13 @@
if(state == FRAME_FASTENED)
var/obj/item/stack/cable_coil/C = P
if(C.get_amount() < 5)
- to_chat(user, "You need five coils of wire to add them to the frame.")
+ to_chat(user, span_warning("You need five coils of wire to add them to the frame."))
return
- to_chat(user, "You start to add cables to the frame.")
+ to_chat(user, span_notice("You start to add cables to the frame."))
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, 20) && state == FRAME_FASTENED)
if(C.use(5))
- to_chat(user, "You add cables to the frame.")
+ to_chat(user, span_notice("You add cables to the frame."))
state = FRAME_WIRED
if(frame_type.frame_class == FRAME_CLASS_MACHINE)
to_chat(user, desc)
@@ -535,9 +535,9 @@
)
playsound(src, P.usesound, 50, 1)
if (components.len == 0)
- to_chat(user, "You remove the cables.")
+ to_chat(user, span_notice("You remove the cables."))
else
- to_chat(user, "You remove the cables and components.")
+ to_chat(user, span_notice("You remove the cables and components."))
for(var/obj/item/W in components)
W.forceMove(src.loc)
check_components()
@@ -550,25 +550,25 @@
if(frame_type.frame_class == FRAME_CLASS_COMPUTER)
var/obj/item/stack/G = P
if(G.get_amount() < 2)
- to_chat(user, "You need two sheets of glass to put in the glass panel.")
+ to_chat(user, span_warning("You need two sheets of glass to put in the glass panel."))
return
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You start to put in the glass panel.")
+ to_chat(user, span_notice("You start to put in the glass panel."))
if(do_after(user, 20) && state == FRAME_WIRED)
if(G.use(2))
- to_chat(user, "You put in the glass panel.")
+ to_chat(user, span_notice("You put in the glass panel."))
state = FRAME_PANELED
else if(frame_type.frame_class == FRAME_CLASS_DISPLAY)
var/obj/item/stack/G = P
if(G.get_amount() < 2)
- to_chat(user, "You need two sheets of glass to put in the glass panel.")
+ to_chat(user, span_warning("You need two sheets of glass to put in the glass panel."))
return
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
- to_chat(user, "You start to put in the glass panel.")
+ to_chat(user, span_notice("You start to put in the glass panel."))
if(do_after(user, 20) && state == FRAME_WIRED)
if(G.use(2))
- to_chat(user, "You put in the glass panel.")
+ to_chat(user, span_notice("You put in the glass panel."))
state = FRAME_PANELED
else if(istype(P, /obj/item))
@@ -597,7 +597,7 @@
break
to_chat(user, desc)
if(P && P.loc != src && !istype(P, /obj/item/stack/material))
- to_chat(user, "You cannot add that component to the machine!")
+ to_chat(user, span_warning("You cannot add that component to the machine!"))
return
update_icon()
@@ -616,7 +616,7 @@
src.set_dir(turn(src.dir, 90))
- to_chat(usr, "You rotate the [src] to face [dir2text(dir)]!")
+ to_chat(usr, span_notice("You rotate the [src] to face [dir2text(dir)]!"))
return
@@ -635,6 +635,6 @@
src.set_dir(turn(src.dir, 270))
- to_chat(usr, "You rotate the [src] to face [dir2text(dir)]!")
+ to_chat(usr, span_notice("You rotate the [src] to face [dir2text(dir)]!"))
return
diff --git a/code/game/machinery/gear_dispenser.dm b/code/game/machinery/gear_dispenser.dm
index f880269df1..9fd11d81c0 100644
--- a/code/game/machinery/gear_dispenser.dm
+++ b/code/game/machinery/gear_dispenser.dm
@@ -158,7 +158,7 @@ var/list/dispenser_presets = list()
//req_one_access = list(whatever) // Note that each gear datum can have access, too.
/obj/machinery/gear_dispenser/custom/emag_act(remaining_charges, mob/user, emag_source)
- to_chat(user, "Your moral standards prevent you from emagging this machine!")
+ to_chat(user, span_warning("Your moral standards prevent you from emagging this machine!"))
return -1 // Letting people emag this one would be bad times
/obj/machinery/gear_dispenser/Initialize()
@@ -182,7 +182,7 @@ var/list/dispenser_presets = list()
var/list/gear_list = get_gear_list(user)
if(!LAZYLEN(gear_list))
- to_chat(user, "\The [src] doesn't have anything to dispense for you!")
+ to_chat(user, span_warning("\The [src] doesn't have anything to dispense for you!"))
dispenser_flags &= ~GD_BUSY
return
@@ -200,24 +200,24 @@ var/list/dispenser_presets = list()
/obj/machinery/gear_dispenser/proc/can_use(var/mob/living/carbon/human/user)
var/list/used_by = gear_distributed_to["[type]"]
if(needs_power && inoperable())
- to_chat(user,"The machine does not respond to your prodding.")
+ to_chat(user,span_warning("The machine does not respond to your prodding."))
return 0
if(!istype(user))
- to_chat(user,"You can't use this!")
+ to_chat(user,span_warning("You can't use this!"))
return 0
if((dispenser_flags & GD_BUSY))
- to_chat(user,"Someone else is using this!")
+ to_chat(user,span_warning("Someone else is using this!"))
return 0
if((dispenser_flags & GD_ONEITEM) && !(dispenser_flags & GD_UNLIMITED) && !one_setting.amount)
- to_chat(user,"There's nothing in here!")
+ to_chat(user,span_warning("There's nothing in here!"))
return 0
if (!emagged)
if ((dispenser_flags & GD_NOGREED) && (user.ckey in used_by))
- to_chat(user,"You've already picked up your gear!")
+ to_chat(user,span_warning("You've already picked up your gear!"))
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
return 0
if ((dispenser_flags & GD_UNIQUE) && (user.ckey in unique_dispense_list))
- to_chat(user,"You've already picked up your gear!")
+ to_chat(user,span_warning("You've already picked up your gear!"))
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
return 0
else
@@ -228,7 +228,7 @@ var/list/dispenser_presets = list()
if(allowed(user))
return 1
else
- to_chat(user,"Your access is rejected!")
+ to_chat(user,span_warning("Your access is rejected!"))
playsound(src, 'sound/machines/buzz-sigh.ogg', 100, 0)
return 0
@@ -246,7 +246,7 @@ var/list/dispenser_presets = list()
/obj/machinery/gear_dispenser/proc/dispense(var/datum/gear_disp/S,var/mob/living/carbon/human/user,var/greet=TRUE)
if(!S.amount && !(dispenser_flags & GD_UNLIMITED))
- to_chat(user,"There are no more [S.name]s left!")
+ to_chat(user,span_warning("There are no more [S.name]s left!"))
dispenser_flags &= ~GD_BUSY
return 1
else if(!(dispenser_flags & GD_UNLIMITED))
@@ -267,7 +267,7 @@ var/list/dispenser_presets = list()
if(emagged)
emagged = FALSE
if(greet && user && !user.stat) // in case we got destroyed while we slept
- to_chat(user,"[S.name] dispensing processed. Have a good day.")
+ to_chat(user,span_notice("[S.name] dispensing processed. Have a good day."))
/obj/machinery/gear_dispenser/proc/animate_dispensing()
flick("[icon_state]-scan",src)
@@ -282,7 +282,7 @@ var/list/dispenser_presets = list()
. = ..()
if(!emagged)
emagged = TRUE
- visible_message("\The [user] slides a weird looking ID into \the [src]!","You temporarily short the safety mechanisms.")
+ visible_message(span_warning("\The [user] slides a weird looking ID into \the [src]!"),span_warning("You temporarily short the safety mechanisms."))
return 1
@@ -343,7 +343,7 @@ var/list/dispenser_presets = list()
var/list/spawned = held_gear_disp.spawn_gear(T, user)
for(var/obj/item/I in spawned)
user.put_in_hands(I)
- to_chat(user, "You remove the equipment from [src].")
+ to_chat(user, span_notice("You remove the equipment from [src]."))
held_gear_disp = null
animate_close()
return
@@ -351,7 +351,7 @@ var/list/dispenser_presets = list()
/obj/machinery/gear_dispenser/suit_fancy/dispense(var/datum/gear_disp/S,var/mob/living/carbon/human/user,var/greet=TRUE)
if(!S.amount && !(dispenser_flags & GD_UNLIMITED))
- to_chat(user,"There are no more [S.name]s left!")
+ to_chat(user,span_warning("There are no more [S.name]s left!"))
dispenser_flags &= ~GD_BUSY
return 1
else if(!(dispenser_flags & GD_UNLIMITED))
@@ -369,7 +369,7 @@ var/list/dispenser_presets = list()
if(emagged)
emagged = FALSE
if(greet && user && !user.stat) // in case we got destroyed while we slept
- to_chat(user,"[S.name] dispensing processed. Have a good day.")
+ to_chat(user,span_notice("[S.name] dispensing processed. Have a good day."))
/obj/machinery/gear_dispenser/suit_fancy/animate_dispensing()
add_overlay("working")
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index 7753bf756e..27793e064a 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -57,13 +57,13 @@ var/const/HOLOPAD_MODE = RANGE_BASED
if(tgui_alert(user,"Would you like to request an AI's presence?","Request AI",list("Yes","No")) == "Yes")
if(last_request + 200 < world.time) //don't spam the AI with requests you jerk!
last_request = world.time
- to_chat(user, "You request an AI's presence.")
+ to_chat(user, span_notice("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
- to_chat(AI, "Your presence is requested at \the [area].")
+ to_chat(AI, span_info("Your presence is requested at \the [area]."))
else
- to_chat(user, "A request for AI presence was already sent recently.")
+ to_chat(user, span_notice("A request for AI presence was already sent recently."))
/obj/machinery/hologram/holopad/attack_ai(mob/living/silicon/ai/user)
if(!istype(user))
diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm
index 80e89473ae..4f45449a16 100755
--- a/code/game/machinery/igniter.dm
+++ b/code/game/machinery/igniter.dm
@@ -77,10 +77,10 @@
disable = !disable
playsound(src, W.usesound, 50, 1)
if(disable)
- user.visible_message("[user] has disabled the [src]!", "You disable the connection to the [src].")
+ user.visible_message(span_warning("[user] has disabled the [src]!"), span_warning("You disable the connection to the [src]."))
icon_state = "[base_state]-d"
if(!disable)
- user.visible_message("[user] has reconnected the [src]!", "You fix the connection to the [src].")
+ user.visible_message(span_warning("[user] has reconnected the [src]!"), span_warning("You fix the connection to the [src]."))
if(powered())
icon_state = "[base_state]"
else
@@ -147,4 +147,4 @@
icon_state = "launcherbtt"
active = 0
- return
\ No newline at end of file
+ return
diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm
index bb56e41a75..5e7f12fd6c 100644
--- a/code/game/machinery/iv_drip.dm
+++ b/code/game/machinery/iv_drip.dm
@@ -68,9 +68,9 @@
if(W.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You start to dismantle the IV drip.")
+ to_chat(user, span_notice("You start to dismantle the IV drip."))
if(do_after(user, 15))
- to_chat(user, "You dismantle the IV drip.")
+ to_chat(user, span_notice("You dismantle the IV drip."))
new /obj/item/stack/rods(src.loc, 6)
if(beaker)
beaker.loc = get_turf(src)
@@ -154,7 +154,7 @@
set src in view(1)
if(!istype(usr, /mob/living))
- to_chat(usr, "You can't do that.")
+ to_chat(usr, span_warning("You can't do that."))
return
if(usr.stat)
@@ -171,13 +171,13 @@
if(beaker)
if(beaker.reagents?.reagent_list?.len)
- . += "Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid."
+ . += span_notice("Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid.")
else
- . += "Attached is an empty [beaker]."
+ . += span_notice("Attached is an empty [beaker].")
else
- . += "No chemicals are attached."
+ . += span_notice("No chemicals are attached.")
- . += "[attached ? attached : "No one"] is attached."
+ . += span_notice("[attached ? attached : "No one"] is attached.")
/obj/machinery/iv_drip/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSTABLE)) //allow bullets, beams, thrown objects, mice, drones, and the like through.
diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm
index 5222e1a674..b290528f87 100644
--- a/code/game/machinery/jukebox.dm
+++ b/code/game/machinery/jukebox.dm
@@ -80,7 +80,7 @@
if(current_track && playing)
media_url = current_track.url
media_start_time = world.time
- audible_message("\The [src] begins to play [current_track.display()].", runemessage = "[current_track.display()]")
+ audible_message(span_notice("\The [src] begins to play [current_track.display()]."), runemessage = "[current_track.display()]")
else
media_url = ""
media_start_time = 0
@@ -110,7 +110,7 @@
if(W.has_tool_quality(TOOL_WRENCH))
if(playing)
StopPlaying()
- user.visible_message("[user] has [anchored ? "un" : ""]secured \the [src].", "You [anchored ? "un" : ""]secure \the [src].")
+ user.visible_message(span_warning("[user] has [anchored ? "un" : ""]secured \the [src]."), span_notice("You [anchored ? "un" : ""]secure \the [src]."))
anchored = !anchored
playsound(src, W.usesound, 50, 1)
power_change()
@@ -158,10 +158,10 @@
/obj/machinery/media/jukebox/tgui_status(mob/user)
if(inoperable())
- to_chat(user, "[src] doesn't appear to function.")
+ to_chat(user, span_warning("[src] doesn't appear to function."))
return STATUS_CLOSE
if(!anchored)
- to_chat(user, "You must secure [src] first.")
+ to_chat(user, span_warning("You must secure [src] first."))
return STATUS_CLOSE
. = ..()
@@ -255,7 +255,7 @@
/obj/machinery/media/jukebox/proc/explode()
walk_to(src,0)
- src.visible_message("\The [src] blows apart!", 1)
+ src.visible_message(span_danger("\The [src] blows apart!"), 1)
explosion(src.loc, 0, 0, 1, rand(1,2), 1)
@@ -276,7 +276,7 @@
if(W.has_tool_quality(TOOL_WRENCH))
if(playing)
StopPlaying()
- user.visible_message("[user] has [anchored ? "un" : ""]secured \the [src].", "You [anchored ? "un" : ""]secure \the [src].")
+ user.visible_message(span_warning("[user] has [anchored ? "un" : ""]secured \the [src]."), span_notice("You [anchored ? "un" : ""]secure \the [src]."))
anchored = !anchored
playsound(src, W.usesound, 50, 1)
power_change()
@@ -288,7 +288,7 @@
if(!emagged)
emagged = 1
StopPlaying()
- visible_message("\The [src] makes a fizzling sound.")
+ visible_message(span_danger("\The [src] makes a fizzling sound."))
update_icon()
return 1
@@ -441,7 +441,7 @@
qdel(T)
return
- to_chat(C, "Couldn't find a track matching the specified parameters.")
+ to_chat(C, span_warning("Couldn't find a track matching the specified parameters."))
/obj/machinery/media/jukebox/ghost/vv_get_dropdown()
. = ..()
diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm
index ebb361d5be..1e02dec938 100644
--- a/code/game/machinery/machinery.dm
+++ b/code/game/machinery/machinery.dm
@@ -257,15 +257,15 @@ Class Procs:
if(user.lying || user.stat)
return 1
if(!user.IsAdvancedToolUser()) //Vorestation edit
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return 1
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H.getBrainLoss() >= 55)
- visible_message("[H] stares cluelessly at [src].")
+ visible_message(span_warning("[H] stares cluelessly at [src]."))
return 1
else if(prob(H.getBrainLoss()))
- to_chat(user, "You momentarily forget how to use [src].")
+ to_chat(user, span_warning("You momentarily forget how to use [src]."))
return 1
if(clicksound && istype(user, /mob/living/carbon))
@@ -335,9 +335,9 @@ Class Procs:
return 0
if(!component_parts)
return 0
- to_chat(user, "Following parts detected in [src]:")
+ to_chat(user, span_notice("Following parts detected in [src]:"))
for(var/obj/item/C in component_parts)
- to_chat(user, " [C.name]")
+ to_chat(user, span_notice(" [C.name]"))
if(panel_open || !R.panel_req)
var/obj/item/circuitboard/CB = circuit
var/P
@@ -354,7 +354,7 @@ Class Procs:
component_parts -= A
component_parts += B
B.loc = null
- to_chat(user, "[A.name] replaced with [B.name].")
+ to_chat(user, span_notice("[A.name] replaced with [B.name]."))
parts_replaced = TRUE
break
update_icon()
@@ -373,12 +373,12 @@ Class Procs:
var/actual_time = W.toolspeed * time
if(actual_time != 0)
user.visible_message( \
- "\The [user] begins [anchored ? "un" : ""]securing \the [src].", \
- "You start [anchored ? "un" : ""]securing \the [src].")
+ span_warning("\The [user] begins [anchored ? "un" : ""]securing \the [src]."), \
+ span_notice("You start [anchored ? "un" : ""]securing \the [src]."))
if(actual_time == 0 || do_after(user, actual_time, target = src))
user.visible_message( \
- "\The [user] has [anchored ? "un" : ""]secured \the [src].", \
- "You [anchored ? "un" : ""]secure \the [src].")
+ span_warning("\The [user] has [anchored ? "un" : ""]secured \the [src]."), \
+ span_notice("You [anchored ? "un" : ""]secure \the [src]."))
anchored = !anchored
power_change() //Turn on or off the machine depending on the status of power in the new area.
update_icon()
@@ -396,7 +396,7 @@ Class Procs:
return 0
playsound(src, S.usesound, 50, 1)
panel_open = !panel_open
- to_chat(user, "You [panel_open ? "open" : "close"] the maintenance hatch of [src].")
+ to_chat(user, span_notice("You [panel_open ? "open" : "close"] the maintenance hatch of [src]."))
update_icon()
return 1
@@ -405,14 +405,14 @@ Class Procs:
return 0
if(!circuit)
return 0
- to_chat(user, "You start disconnecting the monitor.")
+ to_chat(user, span_notice("You start disconnecting the monitor."))
playsound(src, S.usesound, 50, 1)
if(do_after(user, 20 * S.toolspeed))
if(stat & BROKEN)
- to_chat(user, "The broken glass falls out.")
+ to_chat(user, span_notice("The broken glass falls out."))
new /obj/item/material/shard(src.loc)
else
- to_chat(user, "You disconnect the monitor.")
+ to_chat(user, span_notice("You disconnect the monitor."))
. = dismantle()
/obj/machinery/proc/alarm_deconstruction_screwdriver(var/mob/user, var/obj/item/S)
@@ -429,7 +429,7 @@ Class Procs:
return 0
if(!panel_open)
return 0
- user.visible_message("[user] has cut the wires inside \the [src]!", "You have cut the wires inside \the [src].")
+ user.visible_message(span_warning("[user] has cut the wires inside \the [src]!"), "You have cut the wires inside \the [src].")
playsound(src, W.usesound, 50, 1)
new/obj/item/stack/cable_coil(get_turf(src), 5)
. = dismantle()
diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm
index 37cb4b4db8..8ee5e8910d 100644
--- a/code/game/machinery/mass_driver.dm
+++ b/code/game/machinery/mass_driver.dm
@@ -47,7 +47,7 @@
O_limit++
if(O_limit >= 20)
for(var/mob/M in hearers(src, null))
- to_chat(M, "The mass driver lets out a screech, it mustn't be able to handle any more items.")
+ to_chat(M, span_notice("The mass driver lets out a screech, it mustn't be able to handle any more items."))
break
use_power(500)
spawn(0)
diff --git a/code/game/machinery/medical_kiosk.dm b/code/game/machinery/medical_kiosk.dm
index 7989a307e5..e456323975 100644
--- a/code/game/machinery/medical_kiosk.dm
+++ b/code/game/machinery/medical_kiosk.dm
@@ -40,9 +40,9 @@
. = ..()
if(istype(user) && Adjacent(user))
if(inoperable() || panel_open)
- to_chat(user, "\The [src] seems to be nonfunctional...")
+ to_chat(user, span_warning("\The [src] seems to be nonfunctional..."))
else if(active_user && active_user != user)
- to_chat(user, "Another patient has begin using this machine. Please wait for them to finish, or their session to time out.")
+ to_chat(user, span_warning("Another patient has begin using this machine. Please wait for them to finish, or their session to time out."))
else
start_using(user)
@@ -89,13 +89,13 @@
switch(choice)
if("Health Scan")
var/health_report = tell_health_info(user)
- to_chat(user, "Health report results:"+health_report)
+ to_chat(user, span_notice("Health report results:")+health_report)
if("Backup Scan")
if(!our_db)
to_chat(user, "Backup scan results:
DATABASE ERROR!")
else
var/scan_report = do_backup_scan(user)
- to_chat(user, "Backup scan results:"+scan_report)
+ to_chat(user, span_notice("Backup scan results:")+scan_report)
// Standby
suspend()
diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm
index 170c085a09..fa4b720467 100644
--- a/code/game/machinery/navbeacon.dm
+++ b/code/game/machinery/navbeacon.dm
@@ -85,7 +85,7 @@ var/global/list/navbeacons = list() // no I don't like putting this in, but it w
locked = !locked
to_chat(user, "Controls are now [locked ? "locked." : "unlocked."]")
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
updateDialog()
else
to_chat(user, "You must open the cover first!")
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 245ad680cf..376682fa6e 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -211,7 +211,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
if(hitstaken > 0) //Cosmetic damage overlay
add_overlay("crack[hitstaken]")
-
+
icon_state = "newscaster_normal"
add_overlay(emissive_appearance(icon, "newscaster_normal_ov"))
add_overlay(mutable_appearance(icon, "newscaster_normal_ov"))
@@ -272,7 +272,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
if(!user.IsAdvancedToolUser())
return 0
-
+
tgui_interact(user)
/**
@@ -286,7 +286,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
temp = list(text = text, style = style)
if(update_now)
SStgui.update_uis(src)
-
+
/obj/machinery/newscaster/tgui_interact(mob/user, datum/tgui/ui, datum/tgui/parent_ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
@@ -316,7 +316,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
data["wanted_issue"] = wanted_issue
data["securityCaster"] = !!securityCaster
-
+
var/list/network_channels = list()
for(var/datum/feed_channel/FC in news_network.network_channels)
network_channels.Add(list(list(
@@ -483,7 +483,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
if(!paper_remaining)
set_temp("Unable to print newspaper. Insufficient paper. Please notify maintenance personnel to refill machine storage.", "danger", FALSE)
return TRUE
-
+
print_paper()
set_temp("Printing successful. Please receive your newspaper from the bottom of the machine.", "success", FALSE)
return TRUE
@@ -695,7 +695,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
var/turf/T = get_turf(src)
if(news_call)
for(var/mob/O in hearers(world.view-1, T))
- O.show_message("[name] beeps, \"[news_call]\"",2)
+ O.show_message(span_newscaster("[name] beeps, \"[news_call]\""),2)
alert = 1
update_icon()
spawn(300)
@@ -704,6 +704,6 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
playsound(src, 'sound/machines/twobeep.ogg', 75, 1)
else
for(var/mob/O in hearers(world.view-1, T))
- O.show_message("[name] beeps, \"Attention! Wanted issue distributed!\"",2)
+ O.show_message(span_newscaster("[name] beeps, \"Attention! Wanted issue distributed!\""),2)
playsound(src, 'sound/machines/warning-buzzer.ogg', 75, 1)
return
diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm
index 3148b39a8d..5fc7c356dc 100644
--- a/code/game/machinery/nuclear_bomb.dm
+++ b/code/game/machinery/nuclear_bomb.dm
@@ -99,7 +99,7 @@ var/bomb_set
var/obj/item/weldingtool/WT = O.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5) // uses up 5 fuel.
- to_chat(user, "You need more fuel to complete this task.")
+ to_chat(user, span_warning("You need more fuel to complete this task."))
return
user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [O]...")
@@ -127,7 +127,7 @@ var/bomb_set
var/obj/item/weldingtool/WT = O.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5) // uses up 5 fuel.
- to_chat(user, "You need more fuel to complete this task.")
+ to_chat(user, span_warning("You need more fuel to complete this task."))
return
user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [O]...")
@@ -165,7 +165,7 @@ var/bomb_set
/obj/machinery/nuclearbomb/attack_hand(mob/user as mob)
if(extended)
if(!ishuman(user))
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return 1
user.set_machine(src)
@@ -191,9 +191,9 @@ var/bomb_set
else if(deployable)
if(removal_stage < 5)
anchored = TRUE
- visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring!")
+ visible_message(span_warning("With a steely snap, bolts slide out of [src] and anchor it to the flooring!"))
else
- visible_message("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.")
+ visible_message(span_warning("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut."))
if(!lighthack)
flick("nuclearbombc", src)
icon_state = "nuclearbomb1"
@@ -218,14 +218,14 @@ var/bomb_set
if(!usr.canmove || usr.stat || usr.restrained())
return
if(!ishuman(usr))
- to_chat(usr, "You don't have the dexterity to do this!")
+ to_chat(usr, span_warning("You don't have the dexterity to do this!"))
return 1
if(deployable)
- to_chat(usr, "You close several panels to make [src] undeployable.")
+ to_chat(usr, span_warning("You close several panels to make [src] undeployable."))
deployable = 0
else
- to_chat(usr, "You adjust some panels to make [src] deployable.")
+ to_chat(usr, span_warning("You adjust some panels to make [src] deployable."))
deployable = 1
return
@@ -254,12 +254,12 @@ var/bomb_set
safety = !safety
spawn(100) safety = !safety
if(safety == 1)
- visible_message("The [src] quiets down.")
+ visible_message(span_notice("The [src] quiets down."))
if(!lighthack)
if(icon_state == "nuclearbomb2")
icon_state = "nuclearbomb1"
else
- visible_message("The [src] emits a quiet whirling noise!")
+ visible_message(span_notice("The [src] emits a quiet whirling noise!"))
if(href_list["act"] == "wire")
var/obj/item/I = usr.get_active_hand()
if(!I.has_tool_quality(TOOL_WIRECUTTER))
@@ -314,7 +314,7 @@ var/bomb_set
if(timing == -1.0)
return
if(safety)
- to_chat(usr, "The safety is still on.")
+ to_chat(usr, span_warning("The safety is still on."))
return
timing = !(timing)
if(timing)
@@ -337,14 +337,14 @@ var/bomb_set
if(removal_stage == 5)
anchored = FALSE
- visible_message("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.")
+ visible_message(span_warning("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut."))
return
anchored = !(anchored)
if(anchored)
- visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring.")
+ visible_message(span_warning("With a steely snap, bolts slide out of [src] and anchor it to the flooring."))
else
- visible_message("The anchoring bolts slide back into the depths of [src].")
+ visible_message(span_warning("The anchoring bolts slide back into the depths of [src]."))
add_fingerprint(usr)
for(var/mob/M in viewers(1, src))
diff --git a/code/game/machinery/oxygen_pump.dm b/code/game/machinery/oxygen_pump.dm
index 8dfe4dd2bb..e1dd124c79 100644
--- a/code/game/machinery/oxygen_pump.dm
+++ b/code/game/machinery/oxygen_pump.dm
@@ -30,7 +30,7 @@
if(breather.internals)
breather.internals.icon_state = "internal0"
breather.remove_from_mob(contained)
- visible_message("\The [contained] rapidly retracts just before /the [src] is destroyed!")
+ visible_message(span_notice("\The [contained] rapidly retracts just before /the [src] is destroyed!"))
breather = null
QDEL_NULL(tank)
@@ -55,14 +55,14 @@
/obj/machinery/oxygen_pump/attack_hand(mob/user as mob)
if((stat & MAINT) && tank)
- user.visible_message("\The [user] removes \the [tank] from \the [src].", "You remove \the [tank] from \the [src].")
+ user.visible_message("\The [user] removes \the [tank] from \the [src].", span_notice("You remove \the [tank] from \the [src]."))
user.put_in_hands(tank)
src.add_fingerprint(user)
tank.add_fingerprint(user)
tank = null
return
if (!tank)
- to_chat(user, "There is no tank in \the [src]!")
+ to_chat(user, span_warning("There is no tank in \the [src]!"))
return
if(breather)
if(tank)
@@ -97,60 +97,60 @@
user = target
// Check target validity
if(!target.organs_by_name[BP_HEAD])
- to_chat(user, "\The [target] doesn't have a head.")
+ to_chat(user, span_warning("\The [target] doesn't have a head."))
return
if(!target.check_has_mouth())
- to_chat(user, "\The [target] doesn't have a mouth.")
+ to_chat(user, span_warning("\The [target] doesn't have a mouth."))
return
if(target.wear_mask && target != breather)
- to_chat(user, "\The [target] is already wearing a mask.")
+ to_chat(user, span_warning("\The [target] is already wearing a mask."))
return
if(target.head && (target.head.body_parts_covered & FACE))
- to_chat(user, "Remove their [target.head] first.")
+ to_chat(user, span_warning("Remove their [target.head] first."))
return
if(!tank)
- to_chat(user, "There is no tank in \the [src].")
+ to_chat(user, span_warning("There is no tank in \the [src]."))
return
if(stat & MAINT)
- to_chat(user, "Please close the maintenance hatch first.")
+ to_chat(user, span_warning("Please close the maintenance hatch first."))
return
if(!Adjacent(target))
- to_chat(user, "Please stay close to \the [src].")
+ to_chat(user, span_warning("Please stay close to \the [src]."))
return
//when there is a breather:
if(breather && target != breather)
- to_chat(user, "\The pump is already in use.")
+ to_chat(user, span_warning("\The pump is already in use."))
return
//Checking if breather is still valid
if(target == breather && target.wear_mask != contained)
- to_chat(user, "\The [target] is not using the supplied [contained].")
+ to_chat(user, span_warning("\The [target] is not using the supplied [contained]."))
return
return 1
/obj/machinery/oxygen_pump/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_SCREWDRIVER))
stat ^= MAINT
- user.visible_message("\The [user] [(stat & MAINT) ? "opens" : "closes"] \the [src].", "You [(stat & MAINT) ? "open" : "close"] \the [src].")
+ user.visible_message(span_notice("\The [user] [(stat & MAINT) ? "opens" : "closes"] \the [src]."), span_notice("You [(stat & MAINT) ? "open" : "close"] \the [src]."))
icon_state = (stat & MAINT) ? icon_state_open : icon_state_closed
//TO-DO: Open icon
if(istype(W, /obj/item/tank) && (stat & MAINT))
if(tank)
- to_chat(user, "\The [src] already has a tank installed!")
+ to_chat(user, span_warning("\The [src] already has a tank installed!"))
else
user.drop_item()
W.forceMove(src)
tank = W
- user.visible_message("\The [user] installs \the [tank] into \the [src].", "You install \the [tank] into \the [src].")
+ user.visible_message("\The [user] installs \the [tank] into \the [src].", span_notice("You install \the [tank] into \the [src]."))
src.add_fingerprint(user)
if(istype(W, /obj/item/tank) && !stat)
- to_chat(user, "Please open the maintenance hatch first.")
+ to_chat(user, span_warning("Please open the maintenance hatch first."))
/obj/machinery/oxygen_pump/examine(var/mob/user)
. = ..()
if(tank)
. += "The meter shows [round(tank.air_contents.return_pressure())] kPa."
else
- . += "It is missing a tank!"
+ . += span_warning("It is missing a tank!")
/obj/machinery/oxygen_pump/process()
@@ -160,7 +160,7 @@
tank.forceMove(src)
breather.remove_from_mob(contained)
contained.forceMove(src)
- src.visible_message("\The [contained] rapidly retracts back into \the [src]!")
+ src.visible_message(span_notice("\The [contained] rapidly retracts back into \the [src]!"))
breather = null
update_use_power(USE_POWER_IDLE)
else if(!breather.internal && tank)
@@ -177,7 +177,7 @@
/obj/machinery/oxygen_pump/tgui_interact(mob/user, datum/tgui/ui, datum/tgui/parent_ui)
if(!tank)
- to_chat(user, "[src] is missing a tank.")
+ to_chat(user, span_warning("[src] is missing a tank."))
if(ui)
ui.close()
return
@@ -284,7 +284,7 @@
tank.forceMove(src)
breather.remove_from_mob(contained)
contained.forceMove(src)
- src.visible_message("\The [contained] rapidly retracts back into \the [src]!")
+ src.visible_message(span_notice("\The [contained] rapidly retracts back into \the [src]!"))
breather = null
update_use_power(USE_POWER_IDLE)
else if(!breather.internal && tank)
diff --git a/code/game/machinery/painter_vr.dm b/code/game/machinery/painter_vr.dm
index 00d2dec03b..9ed6caf6f4 100644
--- a/code/game/machinery/painter_vr.dm
+++ b/code/game/machinery/painter_vr.dm
@@ -68,7 +68,7 @@
return
if(is_type_in_list(I, allowed_types) && !inoperable())
- user.visible_message("[user] inserts \the [I] into the Color Mate receptable.")
+ user.visible_message(span_notice("[user] inserts \the [I] into the Color Mate receptable."))
user.drop_from_inventory(I)
I.forceMove(src)
inserted = I
diff --git a/code/game/machinery/partslathe_vr.dm b/code/game/machinery/partslathe_vr.dm
index 0cc1b05dc7..1d6ccc1621 100644
--- a/code/game/machinery/partslathe_vr.dm
+++ b/code/game/machinery/partslathe_vr.dm
@@ -88,7 +88,7 @@
/obj/machinery/partslathe/attackby(var/obj/item/O as obj, var/mob/user as mob)
if(busy)
- to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.")
+ to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
return 1
if(default_deconstruction_screwdriver(user, O))
return
@@ -99,23 +99,23 @@
if(inoperable())
return
if(panel_open)
- to_chat(user, "You can't load \the [src] while it's opened.")
+ to_chat(user, span_notice("You can't load \the [src] while it's opened."))
return
if(istype(O, /obj/item/circuitboard))
if(copy_board)
- to_chat(user, "There is already a board inserted in \the [src].")
+ to_chat(user, span_warning("There is already a board inserted in \the [src]."))
return
if(!user.unEquip(O))
return
copy_board = O
O.forceMove(src)
- user.visible_message("[user] inserts [O] into \the [src]'s circuit reader.", "You insert [O] into \the [src]'s circuit reader.")
+ user.visible_message("[user] inserts [O] into \the [src]'s circuit reader.", span_notice("You insert [O] into \the [src]'s circuit reader."))
updateUsrDialog()
return
if(try_load_materials(user, O))
return
else
- to_chat(user, "You cannot insert this item into \the [src]!")
+ to_chat(user, span_notice("You cannot insert this item into \the [src]!"))
return
// Attept to load materials. Returns 0 if item wasn't a stack of materials, otherwise 1 (even if failed to load)
@@ -123,7 +123,7 @@
if(!istype(S))
return 0
if(!(S.material.name in materials))
- to_chat(user, "The [src] doesn't accept [S.material]!")
+ to_chat(user, span_warning("The [src] doesn't accept [S.material]!"))
return 1
if(S.get_amount() < 1)
return 1 // Does this even happen? Sanity check I guess.
@@ -134,11 +134,11 @@
materials[S.material.name] += S.perunit
S.use(1)
count++
- user.visible_message("[user] inserts [S.name] into \the [src].", "You insert [count] [S.name] into \the [src].")
+ user.visible_message("[user] inserts [S.name] into \the [src].", span_notice("You insert [count] [S.name] into \the [src]."))
flick("partslathe-load-[S.material.name]", src)
updateUsrDialog()
else
- to_chat(user, "\The [src] cannot hold more [S.name].")
+ to_chat(user, span_warning("\The [src] cannot hold more [S.name]."))
return 1
/obj/machinery/partslathe/process()
@@ -163,7 +163,7 @@
removeFromQueue(1)
update_icon()
else if(busy)
- visible_message("[icon2html(src,viewers(src))] flashes: insufficient materials: [getLackingMaterials(D)].")
+ visible_message(span_notice("[icon2html(src,viewers(src))] flashes: insufficient materials: [getLackingMaterials(D)]."))
busy = 0
update_use_power(USE_POWER_IDLE)
update_icon()
@@ -330,7 +330,7 @@
return TRUE
if(busy)
- to_chat(usr, "[src] is busy. Please wait for completion of previous operation.")
+ to_chat(usr, span_notice("[src] is busy. Please wait for completion of previous operation."))
return
switch(action)
diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm
index d497ac868d..81adff4b5c 100644
--- a/code/game/machinery/pipe/construction.dm
+++ b/code/game/machinery/pipe/construction.dm
@@ -194,12 +194,12 @@ Buildable meters
var/flags = initial(fakeA.pipe_flags)
for(var/obj/machinery/atmospherics/M in loc)
if((M.pipe_flags & flags & PIPING_ONE_PER_TURF)) //Only one dense/requires density object per tile, eg connectors/cryo/heater/coolers.
- to_chat(user, "Something is hogging the tile!")
+ to_chat(user, span_warning("Something is hogging the tile!"))
return TRUE
if((M.piping_layer != piping_layer) && !((M.pipe_flags | flags) & PIPING_ALL_LAYER)) // Pipes on different layers can't block each other unless they are ALL_LAYER
continue
if(M.get_init_dirs() & SSmachines.get_init_dirs(pipe_type, dir)) // matches at least one direction on either type of pipe
- to_chat(user, "There is already a pipe at that location!")
+ to_chat(user, span_warning("There is already a pipe at that location!"))
return TRUE
// no conflicts found
@@ -208,15 +208,15 @@ Buildable meters
// TODO - Evaluate and remove the "need at least one thing to connect to" thing ~Leshana
// With how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment.
if (QDELETED(A))
- to_chat(user, "There's nothing to connect this pipe section to!")
+ to_chat(user, span_warning("There's nothing to connect this pipe section to!"))
return TRUE
transfer_fingerprints_to(A)
playsound(src, W.usesound, 50, 1)
user.visible_message( \
"[user] fastens \the [src].", \
- "You fasten \the [src].", \
- "You hear ratcheting.")
+ span_notice("You fasten \the [src]."), \
+ span_italics("You hear ratcheting."))
qdel(src)
@@ -279,11 +279,11 @@ Buildable meters
pipe = P
break
if(!pipe)
- to_chat(user, "You need to fasten it to a pipe!")
+ to_chat(user, span_warning("You need to fasten it to a pipe!"))
return TRUE
new /obj/machinery/meter(loc, piping_layer)
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You fasten the meter to the pipe.")
+ to_chat(user, span_notice("You fasten the meter to the pipe."))
qdel(src)
/obj/item/pipe_meter/dropped()
diff --git a/code/game/machinery/pipe/pipe_dispenser.dm b/code/game/machinery/pipe/pipe_dispenser.dm
index 96da384789..bf87c9ff93 100644
--- a/code/game/machinery/pipe/pipe_dispenser.dm
+++ b/code/game/machinery/pipe/pipe_dispenser.dm
@@ -112,18 +112,18 @@
/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))
- to_chat(usr, "You put [W] back in [src].")
+ to_chat(usr, span_notice("You put [W] back in [src]."))
user.drop_item()
qdel(W)
return
else if(W.has_tool_quality(TOOL_WRENCH))
if (unwrenched==0)
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to unfasten \the [src] from the floor...")
+ to_chat(user, span_notice("You begin to unfasten \the [src] from the floor..."))
if (do_after(user, 40 * W.toolspeed))
user.visible_message( \
- "[user] unfastens \the [src].", \
- "You have unfastened \the [src]. Now it can be pulled somewhere else.", \
+ span_notice("[user] unfastens \the [src]."), \
+ span_notice("You have unfastened \the [src]. Now it can be pulled somewhere else."), \
"You hear ratchet.")
src.anchored = FALSE
src.stat |= MAINT
@@ -132,11 +132,11 @@
usr << browse(null, "window=pipedispenser")
else /*if (unwrenched==1)*/
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You begin to fasten \the [src] to the floor...")
+ to_chat(user, span_notice("You begin to fasten \the [src] to the floor..."))
if (do_after(user, 20 * W.toolspeed))
user.visible_message( \
- "[user] fastens \the [src].", \
- "You have fastened \the [src]. Now it can dispense pipes.", \
+ span_notice("[user] fastens \the [src]."), \
+ span_notice("You have fastened \the [src]. Now it can dispense pipes."), \
"You hear ratchet.")
src.anchored = TRUE
src.stat &= ~MAINT
@@ -165,7 +165,7 @@
if (pipe.anchored)
return
- to_chat(usr, "You shove [pipe] back in [src].")
+ to_chat(usr, span_notice("You shove [pipe] back in [src]."))
qdel(pipe)
// adding a pipe dispensers that spawn unhooked from the ground
diff --git a/code/game/machinery/pipe/pipelayer.dm b/code/game/machinery/pipe/pipelayer.dm
index 0ece28b95a..0b5c572e13 100644
--- a/code/game/machinery/pipe/pipelayer.dm
+++ b/code/game/machinery/pipe/pipelayer.dm
@@ -62,16 +62,16 @@
var/answer = tgui_alert(user, "Do you want to eject all the metal in \the [src]?", "Eject?", list("Yes","No"))
if(answer == "Yes")
var/amount_ejected = eject_metal()
- user.visible_message("[user] removes [amount_ejected] sheet\s of [MAT_STEEL] from the \the [src].",
- "You remove [amount_ejected] sheet\s of [MAT_STEEL] from \the [src].")
+ user.visible_message(span_notice("[user] removes [amount_ejected] sheet\s of [MAT_STEEL] from the \the [src]."),
+ span_notice("You remove [amount_ejected] sheet\s of [MAT_STEEL] from \the [src]."))
return
if(!metal && !on)
- to_chat(user, "\The [src] doesn't work without metal.")
+ to_chat(user, span_warning("\The [src] doesn't work without metal."))
return
on = !on
old_turf = get_turf(src)
old_dir = dir
- user.visible_message("[user] has [!on?"de":""]activated \the [src].", "You [!on?"de":""]activate \the [src].")
+ user.visible_message(span_notice("[user] has [!on?"de":""]activated \the [src]."), span_notice("You [!on?"de":""]activate \the [src]."))
return
/obj/machinery/pipelayer/attackby(var/obj/item/W as obj, var/mob/user as mob)
@@ -84,32 +84,32 @@
if (!panel_open && W.has_tool_quality(TOOL_WRENCH))
P_type_t = tgui_input_list(usr, "Choose pipe type", "Pipe type", Pipes)
P_type = Pipes[P_type_t]
- user.visible_message("[user] has set \the [src] to manufacture [P_type_t].", "You set \the [src] to manufacture [P_type_t].")
+ user.visible_message(span_notice("[user] has set \the [src] to manufacture [P_type_t]."), span_notice("You set \the [src] to manufacture [P_type_t]."))
return
if(!panel_open && W.has_tool_quality(TOOL_CROWBAR))
a_dis = !a_dis
- user.visible_message("[user] has [!a_dis?"de":""]activated auto-dismantling.", "You [!a_dis?"de":""]activate auto-dismantling.")
+ user.visible_message(span_notice("[user] has [!a_dis?"de":""]activated auto-dismantling."), span_notice("You [!a_dis?"de":""]activate auto-dismantling."))
return
if(istype(W, /obj/item/pipe))
// NOTE - We must check for matter, otherwise the (free) pipe dispenser can be used to get infinite steel.
if(!W.matter || W.matter[MAT_STEEL] < pipe_cost * SHEET_MATERIAL_AMOUNT)
- to_chat(user, "\The [W] doesn't contain enough [MAT_STEEL] to recycle.")
+ to_chat(user, span_warning("\The [W] doesn't contain enough [MAT_STEEL] to recycle."))
else if(metal + pipe_cost > max_metal)
- to_chat(user, "\The [src] is full.")
+ to_chat(user, span_notice("\The [src] is full."))
else
user.drop_from_inventory(W)
metal += pipe_cost
- to_chat(user, "You recycle \the [W].")
+ to_chat(user, span_notice("You recycle \the [W]."))
qdel(W)
return
if(istype(W, /obj/item/stack/material) && W.get_material_name() == MAT_STEEL)
var/result = load_metal(W)
if(isnull(result))
- to_chat(user, "Unable to load [W] - no metal found.")
+ to_chat(user, span_warning("Unable to load [W] - no metal found."))
else if(!result)
- to_chat(user, "\The [src] is full.")
+ to_chat(user, span_notice("\The [src] is full."))
else
- user.visible_message("[user] has loaded metal into \the [src].", "You load metal into \the [src]")
+ user.visible_message(span_notice("[user] has loaded metal into \the [src]."), span_notice("You load metal into \the [src]"))
return
..()
diff --git a/code/game/machinery/pointdefense.dm b/code/game/machinery/pointdefense.dm
index bb4f0e6dc4..ce35f88253 100644
--- a/code/game/machinery/pointdefense.dm
+++ b/code/game/machinery/pointdefense.dm
@@ -62,7 +62,7 @@ GLOBAL_LIST_BOILERPLATE(pointdefense_turrets, /obj/machinery/power/pointdefense)
return FALSE
if(!(get_z(PD) in GetConnectedZlevels(get_z(src))))
- to_chat(usr, "[PD] is not within control range.")
+ to_chat(usr, span_warning("[PD] is not within control range."))
return FALSE
if(!PD.Activate()) //Activate() whilst the device is active will return false.
@@ -100,9 +100,9 @@ GLOBAL_LIST_BOILERPLATE(pointdefense_turrets, /obj/machinery/power/pointdefense)
// Check for duplicate controllers with this ID
for(var/obj/machinery/pointdefense_control/PC as anything in pointdefense_controllers)
if(PC != src && PC.id_tag == id_tag)
- to_chat(user, "The [new_ident] network already has a controller.")
+ to_chat(user, span_warning("The [new_ident] network already has a controller."))
return
- to_chat(user, "You register [src] with the [new_ident] network.")
+ to_chat(user, span_notice("You register [src] with the [new_ident] network."))
id_tag = new_ident
return
if(default_deconstruction_screwdriver(user, W))
@@ -215,7 +215,7 @@ GLOBAL_LIST_BOILERPLATE(pointdefense_turrets, /obj/machinery/power/pointdefense)
var/new_ident = tgui_input_text(user, "Enter a new ident tag.", "[src]", id_tag, MAX_NAME_LEN)
new_ident = sanitize(new_ident,MAX_NAME_LEN)
if(new_ident && new_ident != id_tag && user.Adjacent(src) && CanInteract(user, GLOB.tgui_physical_state))
- to_chat(user, "You register [src] with the [new_ident] network.")
+ to_chat(user, span_notice("You register [src] with the [new_ident] network."))
id_tag = new_ident
return
if(default_deconstruction_screwdriver(user, W))
diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm
index ac40987c6a..4099855042 100644
--- a/code/game/machinery/portable_turret.dm
+++ b/code/game/machinery/portable_turret.dm
@@ -377,13 +377,13 @@
/obj/machinery/porta_turret/proc/isLocked(mob/user)
if(locked && !issilicon(user))
- to_chat(user, "Controls locked.")
+ to_chat(user, span_notice("Controls locked."))
return 1
if(HasController())
return TRUE
if(isrobot(user) || isAI(user))
if(ailock)
- to_chat(user, "There seems to be a firewall preventing you from accessing this device.")
+ to_chat(user, span_notice("There seems to be a firewall preventing you from accessing this device."))
return TRUE
else
return FALSE
@@ -412,10 +412,10 @@
/obj/machinery/porta_turret/tgui_interact(mob/user, datum/tgui/ui = null)
if(HasController())
- to_chat(user, "[src] can only be controlled using the assigned turret controller.")
+ to_chat(user, span_notice("[src] can only be controlled using the assigned turret controller."))
return
if(!anchored)
- to_chat(user, "[src] has to be secured first!")
+ to_chat(user, span_notice("[src] has to be secured first!"))
return
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
@@ -487,10 +487,10 @@
if(I.has_tool_quality(TOOL_CROWBAR))
//If the turret is destroyed, you can remove it with a crowbar to
//try and salvage its components
- to_chat(user, "You begin prying the metal coverings off.")
+ to_chat(user, span_notice("You begin prying the metal coverings off."))
if(do_after(user, 20))
if(can_salvage && prob(70))
- to_chat(user, "You remove the turret and salvage some components.")
+ to_chat(user, span_notice("You remove the turret and salvage some components."))
if(installation)
var/obj/item/gun/energy/Gun = new installation(loc)
Gun.power_supply.charge = gun_charge
@@ -500,23 +500,23 @@
if(prob(50))
new /obj/item/assembly/prox_sensor(loc)
else
- to_chat(user, "You remove the turret but did not manage to salvage anything.")
+ to_chat(user, span_notice("You remove the turret but did not manage to salvage anything."))
qdel(src) // qdel
else if(I.has_tool_quality(TOOL_WRENCH))
if(enabled || raised)
- to_chat(user, "You cannot unsecure an active turret!")
+ to_chat(user, span_warning("You cannot unsecure an active turret!"))
return
if(wrenching)
- to_chat(user, "Someone is already [anchored ? "un" : ""]securing the turret!")
+ to_chat(user, span_warning("Someone is already [anchored ? "un" : ""]securing the turret!"))
return
if(!anchored && isinspace())
- to_chat(user, "Cannot secure turrets in space!")
+ to_chat(user, span_warning("Cannot secure turrets in space!"))
return
user.visible_message(\
- "[user] begins [anchored ? "un" : ""]securing the turret.", \
- "You begin [anchored ? "un" : ""]securing the turret." \
+ span_warning("[user] begins [anchored ? "un" : ""]securing the turret."), \
+ span_notice("You begin [anchored ? "un" : ""]securing the turret.") \
)
wrenching = TRUE
@@ -526,11 +526,11 @@
playsound(src, I.usesound, 100, 1)
anchored = TRUE
update_icon()
- to_chat(user, "You secure the exterior bolts on the turret.")
+ to_chat(user, span_notice("You secure the exterior bolts on the turret."))
else if(anchored)
playsound(src, I.usesound, 100, 1)
anchored = FALSE
- to_chat(user, "You unsecure the exterior bolts on the turret.")
+ to_chat(user, span_notice("You unsecure the exterior bolts on the turret."))
update_icon()
wrenching = FALSE
@@ -538,10 +538,10 @@
//Behavior lock/unlock mangement
if(allowed(user))
locked = !locked
- to_chat(user, "Controls are now [locked ? "locked" : "unlocked"].")
+ to_chat(user, span_notice("Controls are now [locked ? "locked" : "unlocked"]."))
updateUsrDialog()
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_notice("Access denied."))
else
//if the turret was attacked with the intention of harming it:
@@ -560,7 +560,7 @@
var/mob/living/simple_mob/S = L
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
var/incoming_damage = round(damage - (damage / 5)) //Turrets are slightly armored, assumedly.
- visible_message("\The [S] [pick(S.attacktext)] \the [src]!")
+ visible_message(span_danger("\The [S] [pick(S.attacktext)] \the [src]!"))
take_damage(incoming_damage)
S.do_attack_animation(src)
return 1
@@ -571,7 +571,7 @@
if(!emagged)
//Emagging the turret makes it go bonkers and stun everyone. It also makes
//the turret shoot much, much faster.
- to_chat(user, "You short out [src]'s threat assessment circuits.")
+ to_chat(user, span_warning("You short out [src]'s threat assessment circuits."))
visible_message("[src] hums oddly...")
emagged = TRUE
controllock = TRUE
@@ -945,14 +945,14 @@
if(0) //first step
if(I.has_tool_quality(TOOL_WRENCH) && !anchored)
playsound(src, I.usesound, 100, 1)
- to_chat(user, "You secure the external bolts.")
+ to_chat(user, span_notice("You secure the external bolts."))
anchored = TRUE
build_step = 1
return
else if(I.has_tool_quality(TOOL_CROWBAR) && !anchored)
playsound(src, I.usesound, 75, 1)
- to_chat(user, "You dismantle the turret construction.")
+ to_chat(user, span_notice("You dismantle the turret construction."))
new /obj/item/stack/material/steel(loc, 5)
qdel(src)
return
@@ -961,16 +961,16 @@
if(istype(I, /obj/item/stack/material) && I.get_material_name() == MAT_STEEL)
var/obj/item/stack/M = I
if(M.use(2))
- to_chat(user, "You add some metal armor to the interior frame.")
+ to_chat(user, span_notice("You add some metal armor to the interior frame."))
build_step = 2
icon_state = "turret_frame2"
else
- to_chat(user, "You need two sheets of metal to continue construction.")
+ to_chat(user, span_warning("You need two sheets of metal to continue construction."))
return
else if(I.has_tool_quality(TOOL_WRENCH))
playsound(src, I.usesound, 75, 1)
- to_chat(user, "You unfasten the external bolts.")
+ to_chat(user, span_notice("You unfasten the external bolts."))
anchored = FALSE
build_step = 0
return
@@ -978,7 +978,7 @@
if(2)
if(I.has_tool_quality(TOOL_WRENCH))
playsound(src, I.usesound, 100, 1)
- to_chat(user, "You bolt the metal armor into place.")
+ to_chat(user, span_notice("You bolt the metal armor into place."))
build_step = 3
return
@@ -987,7 +987,7 @@
if(!WT.isOn())
return
if(WT.get_fuel() < 5) //uses up 5 fuel.
- to_chat(user, "You need more fuel to complete this task.")
+ to_chat(user, span_notice("You need more fuel to complete this task."))
return
playsound(src, I.usesound, 50, 1)
@@ -1005,11 +1005,11 @@
return
var/obj/item/gun/energy/E = I //typecasts the item to an energy gun
if(!user.unEquip(I))
- to_chat(user, "\The [I] is stuck to your hand, you cannot put it in \the [src]")
+ to_chat(user, span_notice("\The [I] is stuck to your hand, you cannot put it in \the [src]"))
return
installation = I.type //installation becomes I.type
gun_charge = E.power_supply.charge //the gun's charge is stored in gun_charge
- to_chat(user, "You add [I] to the turret.")
+ to_chat(user, span_notice("You add [I] to the turret."))
target_type = /obj/machinery/porta_turret
build_step = 4
@@ -1018,7 +1018,7 @@
else if(I.has_tool_quality(TOOL_WRENCH))
playsound(src, I.usesound, 100, 1)
- to_chat(user, "You remove the turret's metal armor bolts.")
+ to_chat(user, span_notice("You remove the turret's metal armor bolts."))
build_step = 2
return
@@ -1026,9 +1026,9 @@
if(isprox(I))
build_step = 5
if(!user.unEquip(I))
- to_chat(user, "\The [I] is stuck to your hand, you cannot put it in \the [src]")
+ to_chat(user, span_notice("\The [I] is stuck to your hand, you cannot put it in \the [src]"))
return
- to_chat(user, "You add the prox sensor to the turret.")
+ to_chat(user, span_notice("You add the prox sensor to the turret."))
qdel(I)
return
@@ -1038,7 +1038,7 @@
if(I.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, I.usesound, 100, 1)
build_step = 6
- to_chat(user, "You close the internal access hatch.")
+ to_chat(user, span_notice("You close the internal access hatch."))
return
//attack_hand() removes the prox sensor
@@ -1047,16 +1047,16 @@
if(istype(I, /obj/item/stack/material) && I.get_material_name() == MAT_STEEL)
var/obj/item/stack/M = I
if(M.use(2))
- to_chat(user, "You add some metal armor to the exterior frame.")
+ to_chat(user, span_notice("You add some metal armor to the exterior frame."))
build_step = 7
else
- to_chat(user, "You need two sheets of metal to continue construction.")
+ to_chat(user, span_warning("You need two sheets of metal to continue construction."))
return
else if(I.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, I.usesound, 100, 1)
build_step = 5
- to_chat(user, "You open the internal access hatch.")
+ to_chat(user, span_notice("You open the internal access hatch."))
return
if(7)
@@ -1064,14 +1064,14 @@
var/obj/item/weldingtool/WT = I.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5)
- to_chat(user, "You need more fuel to complete this task.")
+ to_chat(user, span_notice("You need more fuel to complete this task."))
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 30 * WT.toolspeed))
if(!src || !WT.remove_fuel(5, user))
return
build_step = 8
- to_chat(user, "You weld the turret's armor down.")
+ to_chat(user, span_notice("You weld the turret's armor down."))
//The final step: create a full turret
var/obj/machinery/porta_turret/Turret = new target_type(loc)
@@ -1085,7 +1085,7 @@
else if(I.has_tool_quality(TOOL_CROWBAR))
playsound(src, I.usesound, 75, 1)
- to_chat(user, "You pry off the turret's exterior armor.")
+ to_chat(user, span_notice("You pry off the turret's exterior armor."))
new /obj/item/stack/material/steel(loc, 2)
build_step = 6
return
@@ -1114,10 +1114,10 @@
Gun.update_icon()
installation = null
gun_charge = 0
- to_chat(user, "You remove [Gun] from the turret frame.")
+ to_chat(user, span_notice("You remove [Gun] from the turret frame."))
if(5)
- to_chat(user, "You remove the prox sensor from the turret frame.")
+ to_chat(user, span_notice("You remove the prox sensor from the turret frame."))
new /obj/item/assembly/prox_sensor(loc)
build_step = 4
diff --git a/code/game/machinery/protean_reconstitutor.dm b/code/game/machinery/protean_reconstitutor.dm
index 781962a6be..f26e23d90c 100644
--- a/code/game/machinery/protean_reconstitutor.dm
+++ b/code/game/machinery/protean_reconstitutor.dm
@@ -83,13 +83,13 @@
if(protean_brain)
. += "It currently has a protean positronic brain."
if(!protean_brain.brainmob.client)
- . += "The positronic brain appears to be inactive!"
+ . += span_warning("The positronic brain appears to be inactive!")
. += "The readout shows that it has [nanomass_reserve] units of nanites ready for use. It requires [nanomass_required] per \'revive\' process, and has a maximum capacity of [nanotank_max] units."
/obj/machinery/protean_reconstitutor/attackby(obj/item/W as obj, mob/user as mob)
src.add_fingerprint(user)
if(processing_revive)
- to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.")
+ to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
playsound(src, buzzsound, 100, 1, -1)
return
@@ -103,21 +103,21 @@
if(istype(W,/obj/item/mmi/digital/posibrain/nano))
var/obj/item/mmi/digital/posibrain/nano/NB = W
if(!NB.brainmob.client)
- to_chat(user,"You cannot use an inactive positronic brain for this process.")
+ to_chat(user,span_warning("You cannot use an inactive positronic brain for this process."))
return
- to_chat(user,"You slot \the [NB] into \the [src].")
+ to_chat(user,span_notice("You slot \the [NB] into \the [src]."))
user.drop_from_inventory(NB)
NB.loc = src
protean_brain = NB
if(istype(W,/obj/item/organ/internal/nano/orchestrator))
- to_chat(user,"You slot \the [W] into \the [src].")
+ to_chat(user,span_notice("You slot \the [W] into \the [src]."))
user.drop_from_inventory(W)
W.loc = src
protean_orchestrator = W
if(istype(W,/obj/item/organ/internal/nano/refactory))
- to_chat(user,"You slot \the [W] into \the [src].")
+ to_chat(user,span_notice("You slot \the [W] into \the [src]."))
user.drop_from_inventory(W)
W.loc = src
protean_refactory = W
@@ -125,12 +125,12 @@
if(istype(W,/obj/item/stack/nanopaste))
var/obj/item/stack/nanopaste/NP = W
if(nanomass_reserve >= nanotank_max)
- to_chat(user,"The tank is full!")
+ to_chat(user,span_notice("The tank is full!"))
return
nanomass_reserve += NP.amount * max(1,NP.mech_repair / paste_inefficiency)
if(nanomass_reserve > nanotank_max)
nanomass_reserve = nanotank_max
- to_chat(user,"You fill \the [src] with paste from \the [NP]. The display now reads [nanomass_reserve]/[nanotank_max] units.")
+ to_chat(user,span_notice("You fill \the [src] with paste from \the [NP]. The display now reads [nanomass_reserve]/[nanotank_max] units."))
qdel(NP)
if(W.has_tool_quality(TOOL_WRENCH))
@@ -162,21 +162,21 @@
/obj/machinery/protean_reconstitutor/attack_hand(mob/user as mob)
if(!protean_brain || !protean_orchestrator || !protean_refactory || (nanomass_reserve < nanomass_required))
//no brain, no orchestrator, and/or not enough goo
- to_chat(user,"Essential components missing, or insufficient materials available!")
+ to_chat(user,span_warning("Essential components missing, or insufficient materials available!"))
playsound(src, buzzsound, 100, 1, -1)
update_icon()
return
if(processing_revive)
//we're currently processing a patient, chill out!
- src.visible_message("\The [src] chirps, \"Reconstitution cycle currently in progress, please wait!\"")
+ src.visible_message(span_notice("\The [src] chirps, \"Reconstitution cycle currently in progress, please wait!\""))
playsound(src, buzzsound, 100, 1, -1)
return
if(!protean_brain.brainmob.client)
- src.visible_message("\The [src] chirps, \"Warning, no positronic neural network activity detected! Recommend removing inactive core.\"")
+ src.visible_message(span_warning("\The [src] chirps, \"Warning, no positronic neural network activity detected! Recommend removing inactive core.\""))
return
else if(!processing_revive && protean_brain && protean_orchestrator && protean_refactory && (nanomass_reserve >= nanomass_required))
//we're good, let's get recombobulating!
- src.visible_message("[user] initializes \the [src]. It chirps, \"Please stand by, synchronizing components... estimated time to completion: five minutes.\"")
+ src.visible_message(span_notice("[user] initializes \the [src]. It chirps, \"Please stand by, synchronizing components... estimated time to completion: five minutes.\""))
processing_revive = TRUE
power_change()
if(prob(2))
@@ -195,7 +195,7 @@
sleep(per_organ_delay)
var/obj/item/O = P.internal_organs_by_name[organ]
if(istype(O,/obj/item/organ/internal/nano/refactory))
- src.visible_message("\The [src] chirps, \"Initializing refactory...\"")
+ src.visible_message(span_notice("\The [src] chirps, \"Initializing refactory...\""))
P.internal_organs_by_name.Remove(O)
P.contents.Remove(O)
qdel(O)
@@ -206,7 +206,7 @@
mats_cached = TRUE
protean_refactory.loc = P
if(istype(O,/obj/item/organ/internal/nano/orchestrator))
- src.visible_message("\The [src] chirps, \"Linking nanoswarm to orchestrator...\"")
+ src.visible_message(span_notice("\The [src] chirps, \"Linking nanoswarm to orchestrator...\""))
P.internal_organs_by_name.Remove(O)
P.internal_organs.Remove(O)
P.contents.Remove(O)
@@ -215,10 +215,10 @@
P.internal_organs.Add(protean_orchestrator)
protean_orchestrator.loc = P
if(istype(O,/obj/item/organ/internal/mmi_holder/posibrain/nano))
- src.visible_message("\The [src] chirps, \"Synchronizing positronic neural architecture...\"")
+ src.visible_message(span_notice("\The [src] chirps, \"Synchronizing positronic neural architecture...\""))
//on the offchance our client blipped before getting to this step, abort, schloop the organs back into the machine, dissolve the body, and refund the nanos
if(!protean_brain.brainmob.client)
- src.visible_message("\The [src] buzzes, \"No positronic neural activity detected! Aborting cycle!\"")
+ src.visible_message(span_warning("\The [src] buzzes, \"No positronic neural activity detected! Aborting cycle!\""))
playsound(src, buzzsound, 100, 1, -1)
processing_revive = FALSE
qdel(P)
@@ -283,7 +283,7 @@
new_nif.quick_implant(P)
//revive complete, now restore the cached mats (if we had any)
if(mats_cached == TRUE)
- src.visible_message("\The [src] chirps, \"Reindexing archived refactory materials storage.\"")
+ src.visible_message(span_notice("\The [src] chirps, \"Reindexing archived refactory materials storage.\""))
for(var/organ in P.internal_organs_by_name)
var/obj/item/O = P.internal_organs_by_name[organ]
if(istype(O,/obj/item/organ/internal/nano/refactory))
@@ -292,8 +292,8 @@
materials_cache.Cut()
mats_cached = FALSE
//finally... drop them in front of the machine
- src.visible_message("\The [src] chirps, \"Protean reconstitution cycle complete!\"")
- to_chat(P,"You feel your sense of self expanding, spreading out to inhabit your new \'body\'. You feel... ALIVE!")
+ src.visible_message(span_notice("\The [src] chirps, \"Protean reconstitution cycle complete!\""))
+ to_chat(P,span_notice("You feel your sense of self expanding, spreading out to inhabit your new \'body\'. You feel... ALIVE!"))
playsound(src, dingsound, 100, 1, -1) //soup's on!
P.loc = src.loc
processing_revive = FALSE
diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm
index 027f346144..516b467e74 100644
--- a/code/game/machinery/recharger.dm
+++ b/code/game/machinery/recharger.dm
@@ -38,36 +38,36 @@
if(allowed)
if(charging)
- to_chat(user, "\A [charging] is already charging here.")
+ to_chat(user, span_warning("\A [charging] is already charging here."))
return
// Checks to make sure he's not in space doing it, and that the area got proper power.
if(!powered())
- to_chat(user, "\The [src] blinks red as you try to insert [G]!")
+ to_chat(user, span_warning("\The [src] blinks red as you try to insert [G]!"))
return
if(istype(G, /obj/item/gun/energy))
var/obj/item/gun/energy/E = G
if(E.self_recharge)
- to_chat(user, "\The [E] has no recharge port.")
+ to_chat(user, span_notice("\The [E] has no recharge port."))
return
if(istype(G, /obj/item/modular_computer))
var/obj/item/modular_computer/C = G
if(!C.battery_module)
- to_chat(user, "\The [C] does not have a battery installed. ")
+ to_chat(user, span_notice("\The [C] does not have a battery installed. "))
return
if(istype(G, /obj/item/melee/baton))
var/obj/item/melee/baton/B = G
if(B.use_external_power)
- to_chat(user, "\The [B] has no recharge port.")
+ to_chat(user, span_notice("\The [B] has no recharge port."))
return
if(istype(G, /obj/item/flash))
var/obj/item/flash/F = G
if(F.use_external_power)
- to_chat(user, "\The [F] has no recharge port.")
+ to_chat(user, span_notice("\The [F] has no recharge port."))
return
if(istype(G, /obj/item/weldingtool/electric))
var/obj/item/weldingtool/electric/EW = G
if(EW.use_external_power)
- to_chat(user, "\The [EW] has no recharge port.")
+ to_chat(user, span_notice("\The [EW] has no recharge port."))
return
if(!G.get_cell() && !istype(G, /obj/item/ammo_casing/microbattery) && !istype(G, /obj/item/paicard)) //VOREStation Edit: NSFW charging
to_chat(user, "\The [G] does not have a battery installed.")
@@ -75,14 +75,14 @@
if(istype(G, /obj/item/paicard))
var/obj/item/paicard/ourcard = G
if(ourcard.panel_open)
- to_chat(user, "\The [ourcard] won't fit in the recharger with its panel open.")
+ to_chat(user, span_warning("\The [ourcard] won't fit in the recharger with its panel open."))
return
if(ourcard.pai)
if(ourcard.pai.stat == CONSCIOUS)
- to_chat(user, "\The [ourcard] boops... it doesn't need to be recharged!")
+ to_chat(user, span_warning("\The [ourcard] boops... it doesn't need to be recharged!"))
return
else
- to_chat(user, "\The [ourcard] doesn't have a personality!")
+ to_chat(user, span_warning("\The [ourcard] doesn't have a personality!"))
return
user.drop_item()
@@ -93,7 +93,7 @@
else if(portable && G.has_tool_quality(TOOL_WRENCH))
if(charging)
- to_chat(user, "Remove [charging] first!")
+ to_chat(user, span_warning("Remove [charging] first!"))
return
anchored = !anchored
to_chat(user, "You [anchored ? "attached" : "detached"] [src].")
diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm
index a80486dc25..f6fb8599ed 100644
--- a/code/game/machinery/rechargestation.dm
+++ b/code/game/machinery/rechargestation.dm
@@ -126,14 +126,14 @@
if(wornrig) // just to make sure
for(var/obj/item/rig_module/storedmod in wornrig.installed_modules)
if(weld_rate && storedmod.damage && cell.checked_use(weld_power_use * weld_rate * CELLRATE))
- to_chat(H, "[storedmod] is repaired!")
+ to_chat(H, span_notice("[storedmod] is repaired!"))
storedmod.damage = 0
if(wornrig.chest)
var/obj/item/clothing/suit/space/rig/rigchest = wornrig.chest
if(weld_rate && rigchest.damage && cell.checked_use(weld_power_use * weld_rate * CELLRATE))
rigchest.breaches = list()
rigchest.calc_breach_damage()
- to_chat(H, "[rigchest] is repaired!")
+ to_chat(H, span_notice("[rigchest] is repaired!"))
if(wornrig.cell)
var/obj/item/cell/rigcell = wornrig.cell
var/diff = min(rigcell.maxcharge - rigcell.charge, charging_power * CELLRATE) // Capped by charging_power / tick
diff --git a/code/game/machinery/records_scanner.dm b/code/game/machinery/records_scanner.dm
index de37a50ad3..3259c5cdf7 100644
--- a/code/game/machinery/records_scanner.dm
+++ b/code/game/machinery/records_scanner.dm
@@ -70,7 +70,7 @@
Black Marks:
"}
for(var/A in marks)
text += "[A]
"
- to_chat(user, "You feel a sting as the scanner extracts some of your blood.")
+ to_chat(user, span_notice("You feel a sting as the scanner extracts some of your blood."))
var/turf/T = get_step(src,outputdir)
var/obj/item/paper/print = new(T)
print.name = "[mname] Report"
diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm
index 7cb34a113b..5d327cd7f4 100644
--- a/code/game/machinery/requests_console.dm
+++ b/code/game/machinery/requests_console.dm
@@ -264,7 +264,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
announcement.announcer = ID.assignment ? "[ID.assignment] [ID.registered_name]" : ID.registered_name
else
reset_message()
- to_chat(user, "You are not authorized to send announcements.")
+ to_chat(user, span_warning("You are not authorized to send announcements."))
SStgui.update_uis(src)
if(istype(O, /obj/item/stamp))
if(inoperable(MAINT)) return
diff --git a/code/game/machinery/seed_extractor.dm b/code/game/machinery/seed_extractor.dm
index f57bf48544..2f349c0446 100644
--- a/code/game/machinery/seed_extractor.dm
+++ b/code/game/machinery/seed_extractor.dm
@@ -22,7 +22,7 @@
new_seed_type = SSplants.seeds[F.plantname]
if(new_seed_type)
- to_chat(user, "You extract some seeds from [O].")
+ to_chat(user, span_notice("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))
@@ -37,7 +37,7 @@
else if(istype(O, /obj/item/stack/tile/grass))
var/obj/item/stack/tile/grass/S = O
if(S.use(1))
- to_chat(user, "You extract some seeds from the grass tile.")
+ to_chat(user, span_notice("You extract some seeds from the grass tile."))
new /obj/item/seeds/grassseed(loc)
else if(istype(O, /obj/item/fossil/plant)) // Fossils
@@ -48,4 +48,4 @@
else if(default_unfasten_wrench(user, O, 20))
return
- return
\ No newline at end of file
+ return
diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm
index c8dbf4d7d7..f7c9f3c6b9 100644
--- a/code/game/machinery/spaceheater.dm
+++ b/code/game/machinery/spaceheater.dm
@@ -85,7 +85,7 @@
C.loc = src
C.add_fingerprint(usr)
- user.visible_message("[user] inserts a power cell into [src].", "You insert the power cell into [src].")
+ user.visible_message(span_notice("[user] inserts a power cell into [src]."), span_notice("You insert the power cell into [src]."))
power_change()
else
to_chat(user, "The hatch must be open to insert a power cell.")
@@ -93,7 +93,7 @@
else if(I.has_tool_quality(TOOL_SCREWDRIVER))
panel_open = !panel_open
playsound(src, I.usesound, 50, 1)
- user.visible_message("[user] [panel_open ? "opens" : "closes"] the hatch on the [src].", "You [panel_open ? "open" : "close"] the hatch on the [src].")
+ user.visible_message(span_notice("[user] [panel_open ? "opens" : "closes"] the hatch on the [src]."), span_notice("You [panel_open ? "open" : "close"] the hatch on the [src]."))
update_icon()
if(!panel_open && user.machine == src)
user << browse(null, "window=spaceheater")
@@ -111,7 +111,7 @@
tgui_interact(user)
else
state = state ? SHEATER_OFF : SHEATER_STANDBY
- user.visible_message("[user] switches [state ? "on" : "off"] the [src].","You switch [state ? "on" : "off"] the [src].")
+ user.visible_message(span_notice("[user] switches [state ? "on" : "off"] the [src]."),span_notice("You switch [state ? "on" : "off"] the [src]."))
update_icon()
return
@@ -155,7 +155,7 @@
if("cellremove")
if(cell && !usr.get_active_hand())
- usr.visible_message("[usr] removes [cell] from [src].", "You remove [cell] from [src].")
+ usr.visible_message(span_notice("[usr] removes [cell] from [src]."), span_notice("You remove [cell] from [src]."))
cell.update_icon()
usr.put_in_hands(cell)
cell.add_fingerprint(usr)
@@ -173,7 +173,7 @@
C.loc = src
C.add_fingerprint(usr)
power_change()
- usr.visible_message("[usr] inserts \the [C] into \the [src].", "You insert \the [C] into \the [src].")
+ usr.visible_message(span_notice("[usr] inserts \the [C] into \the [src]."), span_notice("You insert \the [C] into \the [src]."))
. = TRUE
/obj/machinery/space_heater/process()
@@ -220,4 +220,4 @@
#undef SHEATER_OFF
#undef SHEATER_STANDBY
#undef SHEATER_HEAT
-#undef SHEATER_COOL
\ No newline at end of file
+#undef SHEATER_COOL
diff --git a/code/game/machinery/suit_storage/suit_cycler.dm b/code/game/machinery/suit_storage/suit_cycler.dm
index 69d40a12b8..2e59f8a8d8 100644
--- a/code/game/machinery/suit_storage/suit_cycler.dm
+++ b/code/game/machinery/suit_storage/suit_cycler.dm
@@ -153,14 +153,14 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
return
if(locked)
- to_chat(user, "The suit cycler is locked.")
+ to_chat(user, span_danger("The suit cycler is locked."))
return
if(contents.len > 0)
- to_chat(user, "There is no room inside the cycler for [G.affecting.name].")
+ to_chat(user, span_danger("There is no room inside the cycler for [G.affecting.name]."))
return
- visible_message("[user] starts putting [G.affecting.name] into the suit cycler.", 3)
+ visible_message(span_notice("[user] starts putting [G.affecting.name] into the suit cycler."), 3)
if(do_after(user, 20))
if(!G || !G.affecting) return
@@ -189,15 +189,15 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
var/obj/item/clothing/head/helmet/space/void/IH = I
if(locked)
- to_chat(user, "The suit cycler is locked.")
+ to_chat(user, span_danger("The suit cycler is locked."))
return
if(helmet)
- to_chat(user, "The cycler already contains a helmet.")
+ to_chat(user, span_danger("The cycler already contains a helmet."))
return
if(IH.no_cycle)
- to_chat(user, "That item is not compatible with the cycler's protocols.")
+ to_chat(user, span_danger("That item is not compatible with the cycler's protocols."))
return
if(I.icon_override == CUSTOM_ITEM_MOB)
@@ -229,15 +229,15 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
var/obj/item/clothing/suit/space/void/IS = I
if(locked)
- to_chat(user, "The suit cycler is locked.")
+ to_chat(user, span_danger("The suit cycler is locked."))
return
if(suit)
- to_chat(user, "The cycler already contains a voidsuit.")
+ to_chat(user, span_danger("The cycler already contains a voidsuit."))
return
if(IS.no_cycle)
- to_chat(user, "That item is not compatible with the cycler's protocols.")
+ to_chat(user, span_danger("That item is not compatible with the cycler's protocols."))
return
if(I.icon_override == CUSTOM_ITEM_MOB)
@@ -269,11 +269,11 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
/obj/machinery/suit_cycler/emag_act(var/remaining_charges, var/mob/user)
if(emagged)
- to_chat(user, "The cycler has already been subverted.")
+ to_chat(user, span_danger("The cycler has already been subverted."))
return
//Clear the access reqs, disable the safeties, and open up all paintjobs.
- to_chat(user, "You run the sequencer across the interface, corrupting the operating protocols.")
+ to_chat(user, span_danger("You run the sequencer across the interface, corrupting the operating protocols."))
emagged = 1
safeties = 0
@@ -413,7 +413,7 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
locked = !locked
to_chat(usr, "You [locked ? "" : "un"]lock \the [src].")
else
- to_chat(usr, "Access denied.")
+ to_chat(usr, span_danger("Access denied."))
. = TRUE
if("eject_guy")
@@ -422,7 +422,7 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
if("uv")
if(safeties && occupant)
- to_chat(usr, "The cycler has detected an occupant. Please remove the occupant before commencing the decontamination cycle.")
+ to_chat(usr, span_danger("The cycler has detected an occupant. Please remove the occupant before commencing the decontamination cycle."))
return
active = 1
@@ -505,7 +505,7 @@ GLOBAL_LIST_EMPTY(suit_cycler_typecache)
/obj/machinery/suit_cycler/proc/eject_occupant(mob/user as mob)
if(locked || active)
- to_chat(user, "The cycler is locked.")
+ to_chat(user, span_warning("The cycler is locked."))
return
if(!occupant)
diff --git a/code/game/machinery/supplybeacon.dm b/code/game/machinery/supplybeacon.dm
index a70de364b1..8642c92753 100644
--- a/code/game/machinery/supplybeacon.dm
+++ b/code/game/machinery/supplybeacon.dm
@@ -47,10 +47,10 @@
/obj/machinery/power/supply_beacon/attackby(var/obj/item/W, var/mob/user)
if(!use_power && W.has_tool_quality(TOOL_WRENCH))
if(!anchored && !connect_to_network())
- to_chat(user, "This device must be placed over an exposed cable.")
+ to_chat(user, span_warning("This device must be placed over an exposed cable."))
return
anchored = !anchored
- user.visible_message("\The [user] [anchored ? "secures" : "unsecures"] \the [src].")
+ user.visible_message(span_notice("\The [user] [anchored ? "secures" : "unsecures"] \the [src]."))
playsound(src, W.usesound, 50, 1)
return
return ..()
@@ -59,13 +59,13 @@
if(expended)
update_use_power(USE_POWER_OFF)
- to_chat (user, "\The [src] has used up its charge.")
+ to_chat (user, span_warning("\The [src] has used up its charge."))
return
if(anchored)
return use_power ? deactivate(user) : activate(user)
else
- to_chat(user, "You need to secure the beacon with a wrench first!")
+ to_chat(user, span_warning("You need to secure the beacon with a wrench first!"))
return
/obj/machinery/power/supply_beacon/attack_ai(var/mob/user)
@@ -76,12 +76,12 @@
if(expended)
return
if(surplus() < 500)
- if(user) to_chat(user, "The connected wire doesn't have enough current.")
+ if(user) to_chat(user, span_notice("The connected wire doesn't have enough current."))
return
set_light(3, 3, "#00CCAA")
icon_state = "beacon_active"
update_use_power(USE_POWER_IDLE)
- if(user) to_chat(user, "You activate the beacon. The supply drop will be dispatched soon.")
+ if(user) to_chat(user, span_notice("You activate the beacon. The supply drop will be dispatched soon."))
/obj/machinery/power/supply_beacon/proc/deactivate(var/mob/user, var/permanent)
if(permanent)
@@ -92,7 +92,7 @@
set_light(0)
update_use_power(USE_POWER_OFF)
target_drop_time = null
- if(user) to_chat(user, "You deactivate the beacon.")
+ if(user) to_chat(user, span_notice("You deactivate the beacon."))
/obj/machinery/power/supply_beacon/Destroy()
if(use_power)
diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm
index ca479f8bcc..82f77c5edb 100644
--- a/code/game/machinery/syndicatebeacon.dm
+++ b/code/game/machinery/syndicatebeacon.dm
@@ -90,7 +90,7 @@
/obj/machinery/power/singularity_beacon/proc/Activate(mob/user = null)
if(surplus() < 1500)
if(user)
- to_chat(user, "The connected wire doesn't have enough current.")
+ to_chat(user, span_notice("The connected wire doesn't have enough current."))
return
for(var/obj/singularity/singulo in all_singularities)
if(singulo.z == z)
@@ -99,7 +99,7 @@
active = 1
START_MACHINE_PROCESSING(src)
if(user)
- to_chat(user, "You activate the beacon.")
+ to_chat(user, span_notice("You activate the beacon."))
/obj/machinery/power/singularity_beacon/proc/Deactivate(mob/user = null)
for(var/obj/singularity/singulo in all_singularities)
@@ -108,7 +108,7 @@
icon_state = "[icontype]0"
active = 0
if(user)
- to_chat(user, "You deactivate the beacon.")
+ to_chat(user, span_notice("You deactivate the beacon."))
/obj/machinery/power/singularity_beacon/attack_ai(mob/user as mob)
return
@@ -117,18 +117,18 @@
if(anchored)
return active ? Deactivate(user) : Activate(user)
else
- to_chat(user, "You need to screw the beacon to the floor first!")
+ to_chat(user, span_danger("You need to screw the beacon to the floor first!"))
return
/obj/machinery/power/singularity_beacon/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_SCREWDRIVER))
if(active)
- to_chat(user, "You need to deactivate the beacon first!")
+ to_chat(user, span_danger("You need to deactivate the beacon first!"))
return
if(anchored)
anchored = FALSE
- to_chat(user, "You unscrew the beacon from the floor.")
+ to_chat(user, span_notice("You unscrew the beacon from the floor."))
playsound(src, W.usesound, 50, 1)
disconnect_from_network()
return
@@ -137,7 +137,7 @@
to_chat(user, "This device must be placed over an exposed cable.")
return
anchored = TRUE
- to_chat(user, "You screw the beacon to the floor and attach the cable.")
+ to_chat(user, span_notice("You screw the beacon to the floor and attach the cable."))
playsound(src, W.usesound, 50, 1)
return
..()
diff --git a/code/game/machinery/telecomms/logbrowser.dm b/code/game/machinery/telecomms/logbrowser.dm
index 1d3870c08f..683c1dd5f8 100644
--- a/code/game/machinery/telecomms/logbrowser.dm
+++ b/code/game/machinery/telecomms/logbrowser.dm
@@ -115,7 +115,7 @@
if("delete")
if(!allowed(usr) && !emagged)
- to_chat(usr, "ACCESS DENIED.")
+ to_chat(usr, span_warning("ACCESS DENIED."))
return
if(SelectedServer)
@@ -149,9 +149,9 @@
if(!emagged)
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
- to_chat(user, "You you disable the security protocols")
+ to_chat(user, span_notice("You you disable the security protocols"))
src.updateUsrDialog()
return 1
/obj/machinery/computer/telecomms/server/proc/set_temp(var/text, var/color = "average")
- temp = list("color" = color, "text" = text)
\ No newline at end of file
+ temp = list("color" = color, "text" = text)
diff --git a/code/game/machinery/telecomms/telemonitor.dm b/code/game/machinery/telecomms/telemonitor.dm
index ea92e9d19d..4198536888 100644
--- a/code/game/machinery/telecomms/telemonitor.dm
+++ b/code/game/machinery/telecomms/telemonitor.dm
@@ -121,9 +121,9 @@
if(!emagged)
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
- to_chat(user, "You you disable the security protocols")
+ to_chat(user, span_notice("You you disable the security protocols"))
src.updateUsrDialog()
return 1
/obj/machinery/computer/telecomms/monitor/proc/set_temp(var/text, var/color = "average")
- temp = list("color" = color, "text" = text)
\ No newline at end of file
+ temp = list("color" = color, "text" = text)
diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm
index 721d4ea766..90e114e5cd 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)
- to_chat(usr, "ACCESS DENIED.")
+ to_chat(usr, span_warning("ACCESS DENIED."))
return
if(href_list["viewserver"])
@@ -213,6 +213,6 @@
if(!emagged)
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
- to_chat(user, "You you disable the security protocols")
+ to_chat(user, span_notice("You you disable the security protocols"))
src.updateUsrDialog()
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index d242e639e1..64b597f9bd 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -73,7 +73,7 @@
if(C.data == "Clown Land")
//whoops
for(var/mob/O in hearers(src, null))
- O.show_message("Incoming bluespace portal detected, unable to lock in.", 2)
+ O.show_message(span_warning("Incoming bluespace portal detected, unable to lock in."), 2)
for(var/obj/machinery/teleport/hub/H in range(1))
var/amount = rand(2,5)
@@ -82,7 +82,7 @@
//
else
for(var/mob/O in hearers(src, null))
- O.show_message("Locked In", 2)
+ O.show_message(span_notice("Locked In"), 2)
teleport_control.locked = L
one_time_use = 1
@@ -164,7 +164,7 @@
return
if(!com.teleport_control.locked)
for(var/mob/O in hearers(src, null))
- O.show_message("Failure: Cannot authenticate locked on coordinates. Please reinstate coordinate matrix.")
+ O.show_message(span_warning("Failure: Cannot authenticate locked on coordinates. Please reinstate coordinate matrix."))
return
if(istype(M, /atom/movable))
//VOREStation Addition Start: Prevent taurriding abuse
@@ -190,7 +190,7 @@
accurate = 1
spawn(3000) accurate = 0 //Accurate teleporting for 5 minutes
for(var/mob/B in hearers(src, null))
- B.show_message("Test fire completed.")
+ B.show_message(span_notice("Test fire completed."))
return
//////
@@ -230,7 +230,7 @@
update_use_power(USE_POWER_ACTIVE)
com.update_use_power(USE_POWER_ACTIVE)
for(var/mob/O in hearers(src, null))
- O.show_message("Teleporter engaged!", 2)
+ O.show_message(span_notice("Teleporter engaged!"), 2)
add_fingerprint(usr)
engaged = 1
return
@@ -245,7 +245,7 @@
com.update_use_power(USE_POWER_IDLE)
update_use_power(USE_POWER_IDLE)
for(var/mob/O in hearers(src, null))
- O.show_message("Teleporter disengaged!", 2)
+ O.show_message(span_notice("Teleporter disengaged!"), 2)
add_fingerprint(usr)
engaged = 0
return
@@ -255,7 +255,7 @@
return
active = TRUE
- visible_message("Test firing!")
+ visible_message(span_notice("Test firing!"))
com.teleport()
use_power(5000)
flick(src, "controller-c") //VOREStation Add
diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm
index ae106a356a..23a235faf3 100644
--- a/code/game/machinery/turret_control.dm
+++ b/code/game/machinery/turret_control.dm
@@ -77,7 +77,7 @@
/obj/machinery/turretid/proc/isLocked(mob/user)
if(isrobot(user) || isAI(user))
if(ailock)
- to_chat(user, "There seems to be a firewall preventing you from accessing this device.")
+ to_chat(user, span_notice("There seems to be a firewall preventing you from accessing this device."))
return TRUE
else
return FALSE
@@ -101,16 +101,16 @@
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda))
if(allowed(usr))
if(emagged)
- to_chat(user, "The turret control is unresponsive.")
+ to_chat(user, span_notice("The turret control is unresponsive."))
else
locked = !locked
- to_chat(user, "You [ locked ? "lock" : "unlock"] the panel.")
+ to_chat(user, span_notice("You [ locked ? "lock" : "unlock"] the panel."))
return
return ..()
/obj/machinery/turretid/emag_act(var/remaining_charges, var/mob/user)
if(!emagged)
- to_chat(user, "You short out the turret controls' access analysis module.")
+ to_chat(user, span_danger("You short out the turret controls' access analysis module."))
emagged = TRUE
locked = FALSE
ailock = FALSE
diff --git a/code/game/machinery/virtual_reality/ar_console.dm b/code/game/machinery/virtual_reality/ar_console.dm
index 5001a3c1d3..e6361c2605 100644
--- a/code/game/machinery/virtual_reality/ar_console.dm
+++ b/code/game/machinery/virtual_reality/ar_console.dm
@@ -28,7 +28,7 @@
visible_message("\The [src] emits a low droning sound, before the pod door clicks open.")
return
else if(eject_dead && occupant && occupant.stat == DEAD)
- visible_message("\The [src] sounds an alarm, swinging its hatch open.")
+ visible_message(span_warning("\The [src] sounds an alarm, swinging its hatch open."))
go_out()
/obj/machinery/vr_sleeper/alien/attackby(var/obj/item/I, var/mob/user)
@@ -88,11 +88,11 @@
return
if(avatar && !occupant.stat)
- to_chat(occupant,"\The [src] begins to [pick("whir","hum","pulse")] as a screen appears in front of you.")
+ to_chat(occupant,span_alien("\The [src] begins to [pick("whir","hum","pulse")] as a screen appears in front of you."))
if(tgui_alert(occupant, "This pod is already linked. Are you certain you wish to engage?", "Commmit?", list("Yes", "No")) != "Yes")
- visible_message("\The [src] pulses!")
+ visible_message(span_alien("\The [src] pulses!"))
- to_chat(occupant,"Your mind blurs as information bombards you.")
+ to_chat(occupant,span_alien("Your mind blurs as information bombards you."))
if(!avatar)
var/turf/T = get_turf(src)
@@ -108,7 +108,7 @@
avatar.real_name = newname
avatar.forceMove(T)
- visible_message("\The [src] [pick("gurgles", "churns", "sloshes")] before spitting out \the [avatar]!")
+ visible_message(span_alium("\The [src] [pick("gurgles", "churns", "sloshes")] before spitting out \the [avatar]!"))
else
diff --git a/code/game/machinery/virtual_reality/vr_console.dm b/code/game/machinery/virtual_reality/vr_console.dm
index 6917d14a59..e62604f5e6 100644
--- a/code/game/machinery/virtual_reality/vr_console.dm
+++ b/code/game/machinery/virtual_reality/vr_console.dm
@@ -43,7 +43,7 @@
visible_message("\The [src] emits a low droning sound, before the pod door clicks open.")
return
else if(eject_dead && occupant && occupant.stat == DEAD) // If someone dies somehow while inside, spit them out.
- visible_message("\The [src] sounds an alarm, swinging its hatch open.")
+ visible_message(span_warning("\The [src] sounds an alarm, swinging its hatch open."))
go_out()
/obj/machinery/vr_sleeper/update_icon()
@@ -54,7 +54,7 @@
return 1
if(usr == occupant)
- to_chat(usr, "You can't reach the controls from the inside.")
+ to_chat(usr, span_warning("You can't reach the controls from the inside."))
return
add_fingerprint(usr)
@@ -107,7 +107,7 @@
if(prob(15 / ( severity / 4 )) && occupant.species.has_organ[O_BRAIN] && occupant.internal_organs_by_name[O_BRAIN])
var/obj/item/organ/O = occupant.internal_organs_by_name[O_BRAIN]
O.take_damage(severity * 2)
- visible_message("\The [src]'s internal lighting flashes rapidly, before the hatch swings open with a cloud of smoke.")
+ visible_message(span_danger("\The [src]'s internal lighting flashes rapidly, before the hatch swings open with a cloud of smoke."))
smoke.set_up(severity, 0, src)
smoke.start("#202020")
go_out()
@@ -151,9 +151,9 @@
if(stat & (BROKEN|NOPOWER))
return
if(!ishuman(M))
- to_chat(user, "\The [src] rejects [M] with a sharp beep.")
+ to_chat(user, span_warning("\The [src] rejects [M] with a sharp beep."))
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
if(M == user)
@@ -163,7 +163,7 @@
if(do_after(user, 20))
if(occupant)
- to_chat(user, "\The [src] is already occupied.")
+ to_chat(user, span_warning("\The [src] is already occupied."))
return
M.stop_pulling()
if(M.client)
@@ -180,7 +180,7 @@
update_use_power(USE_POWER_ACTIVE)
enter_vr()
else
- to_chat(user, "\The [src] rejects [M] with a sharp beep.")
+ to_chat(user, span_warning("\The [src] rejects [M] with a sharp beep."))
//VOREstation edit end
return
diff --git a/code/game/machinery/vitals_monitor.dm b/code/game/machinery/vitals_monitor.dm
index 9cac1bfeee..50f1e5e2c4 100644
--- a/code/game/machinery/vitals_monitor.dm
+++ b/code/game/machinery/vitals_monitor.dm
@@ -33,14 +33,14 @@
. = ..()
if(victim)
if(stat & NOPOWER)
- . += "It's unpowered."
+ . += span_notice("It's unpowered.")
return
- . += "Vitals of [victim]:"
- . += "Pulse: [victim.get_pulse(GETPULSE_TOOL)]"
+ . += span_notice("Vitals of [victim]:")
+ . += span_notice("Pulse: [victim.get_pulse(GETPULSE_TOOL)]")
var/brain_activity = "none"
var/breathing = "none"
-
+
if(victim.stat != DEAD && !(victim.status_flags & FAKEDEATH))
var/obj/item/organ/internal/brain/brain = victim.internal_organs_by_name[O_BRAIN]
if(istype(brain))
@@ -50,7 +50,7 @@
brain_activity = "weak"
else
brain_activity = "normal"
-
+
var/obj/item/organ/internal/lungs/lungs = victim.internal_organs_by_name[O_LUNGS]
if(istype(lungs))
var/oxyloss = victim.getOxyLoss()
@@ -60,9 +60,9 @@
breathing = "shallow"
else
breathing = "normal"
-
- . += "Brain activity: [brain_activity]"
- . += "Breathing: [breathing]"
+
+ . += span_notice("Brain activity: [brain_activity]")
+ . += span_notice("Breathing: [breathing]")
/obj/machinery/vitals_monitor/process()
if(QDELETED(victim))
@@ -87,7 +87,7 @@
else if(ishuman(over_object))
victim = over_object
update_use_power(USE_POWER_ACTIVE)
- visible_message("\The [src] is now showing data for [victim].")
+ visible_message(span_notice("\The [src] is now showing data for [victim]."))
/obj/machinery/vitals_monitor/update_icon()
cut_overlays()
@@ -118,7 +118,7 @@
else if(victim.stat == UNCONSCIOUS)
add_overlay("brain_bad")
else
- add_overlay("brain_ok")
+ add_overlay("brain_ok")
else
add_overlay("brain_warning")
@@ -146,4 +146,4 @@
if(CanInteract(user, GLOB.tgui_physical_state))
beep = !beep
- to_chat(user, "You turn the sound on \the [src] [beep ? "on" : "off"].")
+ to_chat(user, span_notice("You turn the sound on \the [src] [beep ? "on" : "off"]."))
diff --git a/code/game/machinery/wall_frames.dm b/code/game/machinery/wall_frames.dm
index 3af907f804..e1aefd2468 100644
--- a/code/game/machinery/wall_frames.dm
+++ b/code/game/machinery/wall_frames.dm
@@ -70,15 +70,15 @@
var/turf/loc = get_turf(user)
var/area/A = loc.loc
if(!istype(loc, /turf/simulated/floor))
- to_chat(user, "\The frame cannot be placed on this spot.")
+ to_chat(user, span_danger("\The frame cannot be placed on this spot."))
return
if(A.requires_power == 0 || A.name == "Space")
- to_chat(user, "\The [src] Alarm cannot be placed in this area.")
+ to_chat(user, span_danger("\The [src] Alarm cannot be placed in this area."))
return
if(gotwallitem(loc, ndir))
- to_chat(user, "There's already an item on this wall!")
+ to_chat(user, span_danger("There's already an item on this wall!"))
return
var/datum/frame/frame_types/frame_type
diff --git a/code/game/machinery/washing_machine.dm b/code/game/machinery/washing_machine.dm
index 6c61d1f542..25b4297f7c 100644
--- a/code/game/machinery/washing_machine.dm
+++ b/code/game/machinery/washing_machine.dm
@@ -108,7 +108,7 @@
return
/*if(W.has_tool_quality(TOOL_SCREWDRIVER))
panel = !panel
- to_chat(user, "You [panel ? "open" : "close"] the [src]'s maintenance panel")*/
+ to_chat(user, span_notice("You [panel ? "open" : "close"] the [src]'s maintenance panel"))*/
if(istype(W,/obj/item/pen/crayon) || istype(W,/obj/item/stamp))
if(state in list( 1, 3, 6))
if(!crayon)
@@ -130,7 +130,7 @@
..()
else if(is_type_in_list(W, disallowed_types))
- to_chat(user, "You can't fit \the [W] inside.")
+ to_chat(user, span_warning("You can't fit \the [W] inside."))
return
else if(istype(W, /obj/item/clothing) || istype(W, /obj/item/bedsheet) || istype(W, /obj/item/stack/hairlesshide))
@@ -141,9 +141,9 @@
washing += W
state = 3
else
- to_chat(user, "You can't put the item in right now.")
+ to_chat(user, span_notice("You can't put the item in right now."))
else
- to_chat(user, "The washing machine is full.")
+ to_chat(user, span_notice("The washing machine is full."))
else
..()
update_icon()
@@ -167,7 +167,7 @@
washing.Cut()
state = 1
if(5)
- to_chat(user, "The [src] is busy.")
+ to_chat(user, span_warning("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 2c65530b9f..3ed8c1a050 100644
--- a/code/game/machinery/wishgranter.dm
+++ b/code/game/machinery/wishgranter.dm
@@ -39,16 +39,16 @@
to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul.")
if (!(LASER in user.mutations))
user.mutations.Add(LASER)
- to_chat(user, "You feel pressure building behind your eyes.")
+ to_chat(user, span_notice("You feel pressure building behind your eyes."))
if (!(COLD_RESISTANCE in user.mutations))
user.mutations.Add(COLD_RESISTANCE)
- to_chat(user, "Your body feels warm.")
+ to_chat(user, span_notice("Your body feels warm."))
if (!(XRAY in user.mutations))
user.mutations.Add(XRAY)
user.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS)
user.see_in_dark = 8
user.see_invisible = SEE_INVISIBLE_LEVEL_TWO
- to_chat(user, "The walls suddenly disappear.")
+ to_chat(user, span_notice("The walls suddenly disappear."))
if("Wealth")
to_chat(user, "Your wish is granted, but at a terrible cost...")
to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul.")
@@ -66,4 +66,4 @@
for(var/mob/living/simple_mob/faithless/F in living_mob_list)
F.health = -10
F.set_stat(DEAD)
- F.icon_state = "faithless_dead"
\ No newline at end of file
+ F.icon_state = "faithless_dead"
diff --git a/code/game/mecha/combat/fighter.dm b/code/game/mecha/combat/fighter.dm
index 5e14fecbd2..2c52258684 100644
--- a/code/game/mecha/combat/fighter.dm
+++ b/code/game/mecha/combat/fighter.dm
@@ -118,16 +118,16 @@
else
var/obj/effect/overmap/visitable/V = choices[choice]
if(occupant != this_occupant || this_x != x || this_y != y || this_z != z || get_dist(V,our_ship) > 1) //Sanity after user input
- to_chat(occupant, "You or they appear to have moved!")
+ to_chat(occupant, span_warning("You or they appear to have moved!"))
return
var/list/levels = V.get_space_zlevels()
if(!levels.len)
- to_chat(occupant, "You don't appear to be able to get there from here!")
+ to_chat(occupant, span_warning("You don't appear to be able to get there from here!"))
return
new_z = pick(levels)
var/turf/destination = locate(new_x, new_y, new_z)
if(!destination || destination.density)
- to_chat(occupant, "You don't appear to be able to get there from here! Is it blocked?")
+ to_chat(occupant, span_warning("You don't appear to be able to get there from here! Is it blocked?"))
return
else
forceMove(destination)
@@ -138,7 +138,7 @@
if (href_list["toggle_stabilization"])
stabilization_enabled = !stabilization_enabled
send_byjax(src.occupant,"exosuit.browser","stabilization_command","[stabilization_enabled?"Dis":"En"]able thruster stabilization")
- src.occupant_message("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"].")
+ src.occupant_message(span_notice("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"]."))
return
/obj/mecha/combat/fighter/get_commands()
@@ -450,4 +450,4 @@
nearby planets to seek cover."
value = CATALOGUER_REWARD_MEDIUM
-#undef NOGRAV_FIGHTER_DAMAGE
\ No newline at end of file
+#undef NOGRAV_FIGHTER_DAMAGE
diff --git a/code/game/mecha/combat/phazon.dm b/code/game/mecha/combat/phazon.dm
index c8c1401627..6d41c5ae1a 100644
--- a/code/game/mecha/combat/phazon.dm
+++ b/code/game/mecha/combat/phazon.dm
@@ -116,18 +116,18 @@
phasing = FALSE
SSradiation.radiate(get_turf(src), 30)
log_append_to_last("WARNING: BLUESPACE DRIVE INSTABILITY DETECTED. DISABLING DRIVE.",1)
- visible_message("The [src.name] appears to flicker, before its silhouette stabilizes!")
+ visible_message(span_alien("The [src.name] appears to flicker, before its silhouette stabilizes!"))
return
/obj/mecha/combat/phazon/janus/dynbulletdamage(var/obj/item/projectile/Proj)
if((Proj.damage && !Proj.nodamage) && !istype(Proj, /obj/item/projectile/beam) && prob(max(1, 33 - round(Proj.damage / 4))))
- src.occupant_message("The armor absorbs the incoming projectile's force, negating it!")
- src.visible_message("The [src.name] absorbs the incoming projectile's force, negating it!")
+ src.occupant_message(span_alien("The armor absorbs the incoming projectile's force, negating it!"))
+ src.visible_message(span_alien("The [src.name] absorbs the incoming projectile's force, negating it!"))
src.log_append_to_last("Armor negated.")
return
else if((Proj.damage && !Proj.nodamage) && istype(Proj, /obj/item/projectile/beam) && prob(max(1, (50 - round((Proj.damage / 2) * inherent_damage_absorption["laser"])) * (1 - (Proj.armor_penetration / 100))))) // Base 50% chance to deflect a beam,lowered by half the beam's damage scaled to laser absorption, then multiplied by the remaining percent of non-penetrated armor, with a minimum chance of 1%.
- src.occupant_message("The armor reflects the incoming beam, negating it!")
- src.visible_message("The [src.name] reflects the incoming beam, negating it!")
+ src.occupant_message(span_alien("The armor reflects the incoming beam, negating it!"))
+ src.visible_message(span_alien("The [src.name] reflects the incoming beam, negating it!"))
src.log_append_to_last("Armor reflected.")
return
@@ -135,8 +135,8 @@
/obj/mecha/combat/phazon/janus/dynattackby(obj/item/W as obj, mob/user as mob)
if(prob(max(1, (50 - round((W.force / 2) * inherent_damage_absorption["brute"])) * (1 - (W.armor_penetration / 100)))))
- src.occupant_message("The armor absorbs the incoming attack's force, negating it!")
- src.visible_message("The [src.name] absorbs the incoming attack's force, negating it!")
+ src.occupant_message(span_alien("The armor absorbs the incoming attack's force, negating it!"))
+ src.visible_message(span_alien("The [src.name] absorbs the incoming attack's force, negating it!"))
src.log_append_to_last("Armor absorbed.")
return
diff --git a/code/game/mecha/components/_component.dm b/code/game/mecha/components/_component.dm
index 0a8f45cb06..9658fb45ca 100644
--- a/code/game/mecha/components/_component.dm
+++ b/code/game/mecha/components/_component.dm
@@ -34,13 +34,13 @@
if(65 to 85)
. += "It's slightly damaged."
if(45 to 65)
- . += "It's badly damaged."
+ . += span_notice("It's badly damaged.")
if(25 to 45)
- . += "It's heavily damaged."
+ . += span_warning("It's heavily damaged.")
if(2 to 25)
- . += "It's falling apart."
+ . += span_warning("It's falling apart.")
if(0 to 1)
- . += "It is completely destroyed."
+ . += span_warning("It is completely destroyed.")
/obj/item/mecha_parts/component/Initialize()
. = ..()
@@ -95,11 +95,11 @@
if(target)
if(!(component_type in target.internal_components))
if(user)
- to_chat(user, "\The [target] doesn't seem to have anywhere to put \the [src].")
+ to_chat(user, span_notice("\The [target] doesn't seem to have anywhere to put \the [src]."))
return FALSE
if(target.internal_components[component_type])
if(user)
- to_chat(user, "\The [target] already has a [component_type] installed!")
+ to_chat(user, span_notice("\The [target] already has a [component_type] installed!"))
return FALSE
chassis = target
if(user)
@@ -117,7 +117,7 @@
chassis.internal_components[component_type] = src
if(user)
- chassis.visible_message("[user] installs \the [src] in \the [chassis].")
+ chassis.visible_message(span_notice("[user] installs \the [src] in \the [chassis]."))
return TRUE
return FALSE
@@ -138,25 +138,25 @@
var/obj/item/stack/nanopaste/NP = W
if(integrity < max_integrity)
- to_chat(user, "You start to repair damage to \the [src].")
+ to_chat(user, span_notice("You start to repair damage to \the [src]."))
while(integrity < max_integrity && NP)
if(do_after(user, 1 SECOND, src))
NP.use(1)
adjust_integrity(NP.mech_repair)
if(integrity >= max_integrity)
- to_chat(user, "You finish repairing \the [src].")
+ to_chat(user, span_notice("You finish repairing \the [src]."))
break
else if(NP.amount == 0)
- to_chat(user, "Insufficient nanopaste to complete repairs!")
+ to_chat(user, span_warning("Insufficient nanopaste to complete repairs!"))
break
return
else
- to_chat(user, "\The [src] doesn't require repairs.")
+ to_chat(user, span_notice("\The [src] doesn't require repairs."))
return ..()
diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm
index f7be915eda..596f46bff3 100644
--- a/code/game/mecha/equipment/mecha_equipment.dm
+++ b/code/game/mecha/equipment/mecha_equipment.dm
@@ -35,7 +35,7 @@
/obj/item/mecha_parts/mecha_equipment/examine(mob/user)
. = ..()
- . += "[src] will fill [equip_type?"a [equip_type]":"any"] slot."
+ . += span_notice("[src] will fill [equip_type?"a [equip_type]":"any"] slot.")
/obj/item/mecha_parts/mecha_equipment/proc/add_equip_overlay(obj/mecha/M as obj)
return
diff --git a/code/game/mecha/equipment/tools/armor_melee.dm b/code/game/mecha/equipment/tools/armor_melee.dm
index a3c6e78f6e..785f64a679 100644
--- a/code/game/mecha/equipment/tools/armor_melee.dm
+++ b/code/game/mecha/equipment/tools/armor_melee.dm
@@ -22,12 +22,12 @@
return inc_damage
chassis.log_message("Attacked by [W]. Attacker - [user]")
if(prob(chassis.deflect_chance*deflect_coeff))
- to_chat(user, "\The [W] bounces off \the [chassis]'s armor.")
+ to_chat(user, span_danger("\The [W] bounces off \the [chassis]'s armor."))
chassis.log_append_to_last("Armor saved.")
inc_damage = 0
else
- chassis.occupant_message("\The [user] hits [chassis] with [W].")
- user.visible_message("\The [user] hits [chassis] with [W].", "You hit [src] with [W].")
+ chassis.occupant_message(span_danger("\The [user] hits [chassis] with [W]."))
+ user.visible_message(span_danger("\The [user] hits [chassis] with [W]."), span_danger("You hit [src] with [W]."))
inc_damage *= damage_coeff
set_ready_state(FALSE)
chassis.use_power(energy_drain)
@@ -58,11 +58,11 @@
return chassis.dynattackby(W,user)
chassis.log_message("Attacked by [W]. Attacker - [user]")
if(prob(chassis.deflect_chance*deflect_coeff))
- to_chat(user, "\The [W] bounces off [chassis] armor.")
+ to_chat(user, span_danger("\The [W] bounces off [chassis] armor."))
chassis.log_append_to_last("Armor saved.")
else
- chassis.occupant_message("\The [user] hits [chassis] with [W].")
- user.visible_message("\The [user] hits [chassis] with [W].", "You hit [src] with [W].")
+ chassis.occupant_message(span_danger("\The [user] hits [chassis] with [W]."))
+ user.visible_message(span_danger("\The [user] hits [chassis] with [W]."), span_danger("You hit [src] with [W]."))
chassis.take_damage(round(W.force*damage_coeff),W.damtype)
chassis.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
set_ready_state(FALSE)
diff --git a/code/game/mecha/equipment/tools/armor_ranged.dm b/code/game/mecha/equipment/tools/armor_ranged.dm
index 4cc6287019..c3e7a4e50a 100644
--- a/code/game/mecha/equipment/tools/armor_ranged.dm
+++ b/code/game/mecha/equipment/tools/armor_ranged.dm
@@ -19,7 +19,7 @@
if(!action_checks(src))
return inc_damage
if(prob(chassis.deflect_chance*deflect_coeff))
- chassis.occupant_message("The armor deflects incoming projectile.")
+ chassis.occupant_message(span_notice("The armor deflects incoming projectile."))
chassis.visible_message("The [chassis.name] armor deflects the projectile.")
chassis.log_append_to_last("Armor saved.")
inc_damage = 0
@@ -35,7 +35,7 @@
if(!action_checks(A))
return inc_damage
if(prob(chassis.deflect_chance*deflect_coeff))
- chassis.occupant_message("The [A] bounces off the armor.")
+ chassis.occupant_message(span_notice("The [A] bounces off the armor."))
chassis.visible_message("The [A] bounces off \the [chassis]'s armor")
chassis.log_append_to_last("Armor saved.")
inc_damage = 0
@@ -76,7 +76,7 @@
if(!action_checks(src))
return chassis.dynbulletdamage(Proj)
if(prob(chassis.deflect_chance*deflect_coeff))
- chassis.occupant_message("The armor deflects incoming projectile.")
+ chassis.occupant_message(span_notice("The armor deflects incoming projectile."))
chassis.visible_message("The [chassis.name] armor deflects the projectile")
chassis.log_append_to_last("Armor saved.")
else
@@ -92,7 +92,7 @@
if(!action_checks(A))
return chassis.dynhitby(A)
if(prob(chassis.deflect_chance*deflect_coeff) || istype(A, /mob/living) || istype(A, /obj/item/mecha_parts/mecha_tracking))
- chassis.occupant_message("The [A] bounces off the armor.")
+ chassis.occupant_message(span_notice("The [A] bounces off the armor."))
chassis.visible_message("The [A] bounces off the [chassis] armor")
chassis.log_append_to_last("Armor saved.")
if(istype(A, /mob/living))
diff --git a/code/game/mecha/equipment/tools/catapult.dm b/code/game/mecha/equipment/tools/catapult.dm
index f734a52c79..5acbb96c81 100644
--- a/code/game/mecha/equipment/tools/catapult.dm
+++ b/code/game/mecha/equipment/tools/catapult.dm
@@ -20,7 +20,7 @@
last_fired = world.time
else
if (world.time % 3)
- occupant_message("[src] is not ready to fire again!")
+ occupant_message(span_warning("[src] is not ready to fire again!"))
return 0
switch(mode)
@@ -73,4 +73,4 @@
if(href_list["mode"])
mode = text2num(href_list["mode"])
send_byjax(chassis.occupant,"exosuit.browser","\ref[src]",src.get_equip_info())
- return
\ No newline at end of file
+ return
diff --git a/code/game/mecha/equipment/tools/clamp.dm b/code/game/mecha/equipment/tools/clamp.dm
index 1df39a4178..b85e8d7386 100644
--- a/code/game/mecha/equipment/tools/clamp.dm
+++ b/code/game/mecha/equipment/tools/clamp.dm
@@ -24,41 +24,41 @@
if(O.has_buckled_mobs())
return
if(locate(/mob/living) in O)
- occupant_message("You can't load living things into the cargo compartment.")
+ occupant_message(span_warning("You can't load living things into the cargo compartment."))
return
if(O.anchored)
if(enable_special)
if(istype(O, /obj/machinery/door/firedoor)) // I love doors.
var/obj/machinery/door/firedoor/FD = O
if(FD.blocked)
- FD.visible_message("\The [chassis] begins prying on \the [FD]!")
+ FD.visible_message(span_danger("\The [chassis] begins prying on \the [FD]!"))
if(do_after(chassis.occupant,10 SECONDS,FD))
playsound(FD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
FD.blocked = 0
FD.update_icon()
FD.open(1)
- FD.visible_message("\The [chassis] tears \the [FD] open!")
+ FD.visible_message(span_warning("\The [chassis] tears \the [FD] open!"))
else if(FD.density)
- FD.visible_message("\The [chassis] begins forcing \the [FD] open!")
+ FD.visible_message(span_warning("\The [chassis] begins forcing \the [FD] open!"))
if(do_after(chassis.occupant, 5 SECONDS,FD))
playsound(FD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
- FD.visible_message("\The [chassis] forces \the [FD] open!")
+ FD.visible_message(span_danger("\The [chassis] forces \the [FD] open!"))
FD.open(1)
else
- FD.visible_message("\The [chassis] forces \the [FD] closed!")
+ FD.visible_message(span_danger("\The [chassis] forces \the [FD] closed!"))
FD.close(1)
else if(istype(O, /obj/machinery/door/airlock)) // D o o r s.
var/obj/machinery/door/airlock/AD = O
if(AD.locked)
- occupant_message("The airlock's bolts prevent it from being forced.")
+ occupant_message(span_notice("The airlock's bolts prevent it from being forced."))
else if(!AD.operating)
if(AD.welded)
- AD.visible_message("\The [chassis] begins prying on \the [AD]!")
+ AD.visible_message(span_warning("\The [chassis] begins prying on \the [AD]!"))
if(do_after(chassis.occupant, 15 SECONDS,AD) && chassis.Adjacent(AD))
AD.welded = FALSE
AD.update_icon()
playsound(AD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
- AD.visible_message("\The [chassis] tears \the [AD] open!")
+ AD.visible_message(span_danger("\The [chassis] tears \the [AD] open!"))
if(!AD.welded)
if(density)
spawn(0)
@@ -68,10 +68,10 @@
AD.close(1)
return
else
- occupant_message("[target] is firmly secured.")
+ occupant_message(span_warning("[target] is firmly secured."))
return
if(cargo_holder.cargo.len >= cargo_holder.cargo_capacity)
- occupant_message("Not enough room in cargo compartment.")
+ occupant_message(span_warning("Not enough room in cargo compartment."))
return
occupant_message("You lift [target] and start to load it into cargo compartment.")
@@ -85,10 +85,10 @@
cargo_holder.cargo += O
O.loc = chassis
O.anchored = FALSE
- occupant_message("[target] succesfully loaded.")
+ occupant_message(span_notice("[target] succesfully loaded."))
log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
else
- occupant_message("You must hold still while handling objects.")
+ occupant_message(span_warning("You must hold still while handling objects."))
O.anchored = initial(O.anchored)
//attacking
@@ -99,17 +99,17 @@
M.take_overall_damage(dam_force)
M.adjustOxyLoss(round(dam_force/2))
M.updatehealth()
- occupant_message("You squeeze [target] with [src.name]. Something cracks.")
+ occupant_message(span_warning("You squeeze [target] with [src.name]. Something cracks."))
playsound(src, "fracture", 5, 1, -2) //CRACK
- chassis.visible_message("[chassis] squeezes [target].")
+ chassis.visible_message(span_warning("[chassis] squeezes [target]."))
else if(chassis.occupant.a_intent == I_DISARM && enable_special)
playsound(src, 'sound/mecha/hydraulic.ogg', 10, 1, -2)
M.take_overall_damage(dam_force/2)
M.adjustOxyLoss(round(dam_force/3))
M.updatehealth()
- occupant_message("You slam [target] with [src.name]. Something cracks.")
+ occupant_message(span_warning("You slam [target] with [src.name]. Something cracks."))
playsound(src, "fracture", 3, 1, -2) //CRACK 2
- chassis.visible_message("[chassis] slams [target].")
+ chassis.visible_message(span_warning("[chassis] slams [target]."))
M.throw_at(get_step(M,get_dir(src, M)), 14, 1.5, chassis)
else
step_away(M,chassis)
@@ -146,25 +146,25 @@
cargo_holder.cargo += O
O.loc = chassis
O.anchored = FALSE
- chassis.occupant_message("[target] succesfully loaded.")
+ chassis.occupant_message(span_notice("[target] succesfully loaded."))
chassis.log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
else
- chassis.occupant_message("You must hold still while handling objects.")
+ chassis.occupant_message(span_warning("You must hold still while handling objects."))
O.anchored = initial(O.anchored)
else
- chassis.occupant_message("Not enough room in cargo compartment.")
+ chassis.occupant_message(span_warning("Not enough room in cargo compartment."))
else
- chassis.occupant_message("[target] is firmly secured.")
+ chassis.occupant_message(span_warning("[target] is firmly secured."))
else if(istype(target,/mob/living))
var/mob/living/M = target
if(M.stat>1) return
if(chassis.occupant.a_intent == I_HURT)
- chassis.occupant_message("You obliterate [target] with [src.name], leaving blood and guts everywhere.")
- chassis.visible_message("[chassis] destroys [target] in an unholy fury.")
+ chassis.occupant_message(span_danger("You obliterate [target] with [src.name], leaving blood and guts everywhere."))
+ chassis.visible_message(span_danger("[chassis] destroys [target] in an unholy fury."))
if(chassis.occupant.a_intent == I_DISARM)
- chassis.occupant_message("You tear [target]'s limbs off with [src.name].")
- chassis.visible_message("[chassis] rips [target]'s arms off.")
+ chassis.occupant_message(span_danger("You tear [target]'s limbs off with [src.name]."))
+ chassis.visible_message(span_danger("[chassis] rips [target]'s arms off."))
else
step_away(M,chassis)
chassis.occupant_message("You smash into [target], sending them flying.")
@@ -172,4 +172,4 @@
set_ready_state(FALSE)
chassis.use_power(energy_drain)
do_after_cooldown()
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/mecha/equipment/tools/drill.dm b/code/game/mecha/equipment/tools/drill.dm
index 63b09317e3..9b897f1241 100644
--- a/code/game/mecha/equipment/tools/drill.dm
+++ b/code/game/mecha/equipment/tools/drill.dm
@@ -15,8 +15,8 @@
if(!target_obj.vars.Find("unacidable") || target_obj.unacidable) return
set_ready_state(FALSE)
chassis.use_power(energy_drain)
- chassis.visible_message("[chassis] starts to drill [target]", "You hear the drill.")
- occupant_message("You start to drill [target]")
+ chassis.visible_message(span_danger("[chassis] starts to drill [target]"), span_warning("You hear the drill."))
+ occupant_message(span_danger("You start to drill [target]"))
var/T = chassis.loc
var/C = target.loc //why are these backwards? we may never know -Pete
if(do_after_cooldown(target))
@@ -24,7 +24,7 @@
if(istype(target, /turf/simulated/wall))
var/turf/simulated/wall/W = target
if(W.reinf_material && !advanced)//R wall but no good drill
- occupant_message("[target] is too durable to drill through.")
+ occupant_message(span_warning("[target] is too durable to drill through."))
return
else if((W.reinf_material && advanced) || do_after_cooldown(target))//R wall with good drill
@@ -103,8 +103,8 @@
if(target_obj.unacidable) return
set_ready_state(FALSE)
chassis.use_power(energy_drain)
- chassis.visible_message("[chassis] starts to bore into \the [target]", "You hear the bore.")
- occupant_message("You start to bore into \the [target]")
+ chassis.visible_message(span_danger("[chassis] starts to bore into \the [target]"), span_warning("You hear the bore."))
+ occupant_message(span_danger("You start to bore into \the [target]"))
var/T = chassis.loc
var/C = target.loc
if(do_after_cooldown(target))
@@ -112,7 +112,7 @@
if(istype(target, /turf/simulated/wall))
var/turf/simulated/wall/W = target
if(W.reinf_material)
- occupant_message("[target] is too durable to bore through.")
+ occupant_message(span_warning("[target] is too durable to bore through."))
else
log_message("Bored through [target]")
target.ex_act(2)
@@ -133,4 +133,4 @@
else if(target.loc == C)
log_message("Drilled through [target]")
target.ex_act(2)
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/mecha/equipment/tools/extinguisher.dm b/code/game/mecha/equipment/tools/extinguisher.dm
index ede02bb5b2..ad133bab2f 100644
--- a/code/game/mecha/equipment/tools/extinguisher.dm
+++ b/code/game/mecha/equipment/tools/extinguisher.dm
@@ -25,12 +25,12 @@
if( istype(target, /obj/structure/reagent_dispensers) && get_dist(chassis,target) <= 1) //VOREStation Edit
var/obj/o = target
var/amount = o.reagents.trans_to_obj(src, 200)
- occupant_message("[amount] units transferred into internal tank.")
+ occupant_message(span_notice("[amount] units transferred into internal tank."))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
if (src.reagents.total_volume < 1)
- occupant_message("\The [src] is empty.")
+ occupant_message(span_warning("\The [src] is empty."))
return
playsound(src, 'sound/effects/extinguish.ogg', 75, 1, -3)
@@ -67,4 +67,4 @@
return "[..()] \[[src.reagents.total_volume]\]"
/obj/item/mecha_parts/mecha_equipment/tool/extinguisher/on_reagent_change()
- return
\ No newline at end of file
+ return
diff --git a/code/game/mecha/equipment/tools/generator.dm b/code/game/mecha/equipment/tools/generator.dm
index cdb8eb4680..fd1d291a5e 100644
--- a/code/game/mecha/equipment/tools/generator.dm
+++ b/code/game/mecha/equipment/tools/generator.dm
@@ -75,7 +75,7 @@
var/result = load_fuel(target)
var/message
if(isnull(result))
- message = "[fuel] traces in target minimal. [target] cannot be used as fuel."
+ message = span_warning("[fuel] traces in target minimal. [target] cannot be used as fuel.")
else if(!result)
message = "Unit is full."
else
@@ -100,7 +100,7 @@
/obj/item/mecha_parts/mecha_equipment/generator/attackby(weapon,mob/user)
var/result = load_fuel(weapon)
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.")
+ user.visible_message("[user] tries to shove [weapon] into [src]. What a dumb-ass.",span_warning("[fuel] traces minimal. [weapon] cannot be used as fuel."))
else if(!result)
to_chat(user, "Unit is full.")
else
@@ -142,4 +142,4 @@
return
/obj/item/mecha_parts/mecha_equipment/generator/nuclear/critfail()
- return
\ No newline at end of file
+ return
diff --git a/code/game/mecha/equipment/tools/jetpack.dm b/code/game/mecha/equipment/tools/jetpack.dm
index 9b6de6121f..c8763a0237 100644
--- a/code/game/mecha/equipment/tools/jetpack.dm
+++ b/code/game/mecha/equipment/tools/jetpack.dm
@@ -50,7 +50,7 @@
var/move_result = 0
if(direction == UP || direction == DOWN)
if(!chassis.can_ztravel())
- chassis.occupant_message("Your vehicle lacks the capacity to move in that direction!")
+ chassis.occupant_message(span_warning("Your vehicle lacks the capacity to move in that direction!"))
return FALSE
//We're using locs because some mecha are 2x2 turfs. So thicc!
@@ -58,16 +58,16 @@
for(var/turf/T in chassis.locs)
if(!T.CanZPass(chassis,direction))
- chassis.occupant_message("You can't move that direction from here!")
+ chassis.occupant_message(span_warning("You can't move that direction from here!"))
result = FALSE
break
var/turf/dest = (direction == UP) ? GetAbove(chassis) : GetBelow(chassis)
if(!dest)
- chassis.occupant_message("There is nothing of interest in this direction.")
+ chassis.occupant_message(span_notice("There is nothing of interest in this direction."))
result = FALSE
break
if(!dest.CanZPass(chassis,direction))
- chassis.occupant_message("There's something blocking your movement in that direction!")
+ chassis.occupant_message(span_warning("There's something blocking your movement in that direction!"))
result = FALSE
break
if(result)
@@ -80,7 +80,7 @@
if(!chassis.check_for_support())
chassis.float_direction = direction
chassis.start_process(MECHA_PROC_MOVEMENT)
- chassis.log_message("Movement control lost. Inertial movement started.")
+ chassis.log_message(span_warning("Movement control lost. Inertial movement started."))
if(chassis.do_after(get_step_delay()))
chassis.can_move = 1
return 1
@@ -127,4 +127,4 @@
/obj/item/mecha_parts/mecha_equipment/tool/jetpack/do_after_cooldown()
sleep(equip_cooldown)
wait = 0
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/mecha/equipment/tools/passenger.dm b/code/game/mecha/equipment/tools/passenger.dm
index 94b4199a16..7e0d263194 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))
- to_chat(AM, "You tumble out of the destroyed [src.name]!")
+ to_chat(AM, span_danger("You tumble out of the destroyed [src.name]!"))
return ..()
/obj/item/mecha_parts/mecha_equipment/tool/passenger/Exit(atom/movable/O)
@@ -24,7 +24,7 @@
/obj/item/mecha_parts/mecha_equipment/tool/passenger/proc/move_inside(var/mob/user)
if (chassis)
- chassis.visible_message("[user] starts to climb into [chassis].")
+ chassis.visible_message(span_notice("[user] starts to climb into [chassis]."))
if(do_after(user, 40, needhand=0))
if(!src.occupant)
@@ -33,7 +33,7 @@
log_message("[user] boarded.")
occupant_message("[user] boarded.")
else if(src.occupant != user)
- to_chat(user, "[src.occupant] was faster. Try harder next time, loser.")
+ to_chat(user, span_warning("[src.occupant] was faster. Try harder next time, loser."))
else
to_chat(user, "You stop entering the exosuit.")
@@ -107,13 +107,13 @@
return
if (!isturf(usr.loc))
- to_chat(usr, "You can't reach the passenger compartment from here.")
+ to_chat(usr, span_danger("You can't reach the passenger compartment from here."))
return
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, span_danger("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)
- to_chat(usr, "The passenger compartment is already occupied!")
+ to_chat(usr, span_danger("The passenger compartment is already occupied!"))
if (LOCKED)
- to_chat(usr, "The passenger compartment hatch is locked!")
+ to_chat(usr, span_warning("The passenger compartment hatch is locked!"))
if (OCCUPIED|LOCKED)
- to_chat(usr, "All of the passenger compartments are already occupied or locked!")
+ to_chat(usr, span_danger("All of the passenger compartments are already occupied or locked!"))
if (0)
- to_chat(usr, "\The [src] doesn't have a passenger compartment.")
+ to_chat(usr, span_warning("\The [src] doesn't have a passenger compartment."))
#undef LOCKED
#undef OCCUPIED
diff --git a/code/game/mecha/equipment/tools/sleeper.dm b/code/game/mecha/equipment/tools/sleeper.dm
index 5fc2054c78..dfd9a7ca8e 100644
--- a/code/game/mecha/equipment/tools/sleeper.dm
+++ b/code/game/mecha/equipment/tools/sleeper.dm
@@ -204,7 +204,7 @@
set popup_menu = 0
if(usr!=src.occupant || usr.stat == 2)
return
- to_chat(usr,"Release sequence activated. This will take one minute.")
+ to_chat(usr,span_notice("Release sequence activated. This will take one minute."))
sleep(600)
if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already
return
diff --git a/code/game/mecha/equipment/tools/syringe_gun.dm b/code/game/mecha/equipment/tools/syringe_gun.dm
index f7e0e37ee7..84bec1bc56 100644
--- a/code/game/mecha/equipment/tools/syringe_gun.dm
+++ b/code/game/mecha/equipment/tools/syringe_gun.dm
@@ -330,7 +330,7 @@
STOP_PROCESSING(SSobj, src)
shut_down()
if(chassis && chassis.occupant)
- to_chat(chassis.occupant, "\The [chassis] shudders as something jams!")
+ to_chat(chassis.occupant, span_notice("\The [chassis] shudders as something jams!"))
log_message("[src.name] has malfunctioned. Maintenance required.")
/obj/item/mecha_parts/mecha_equipment/crisis_drone/process() // Will continually try to find the nearest person above the threshold that is a valid target, and try to heal them.
@@ -421,7 +421,7 @@
/obj/item/mecha_parts/mecha_equipment/crisis_drone/proc/shut_down()
if(enabled)
- chassis.visible_message("\The [chassis]'s [src] buzzes as its drone returns to port.")
+ chassis.visible_message(span_notice("\The [chassis]'s [src] buzzes as its drone returns to port."))
toggle_drone()
if(!isnull(Target))
Target = null
diff --git a/code/game/mecha/equipment/weapons/ballistic/mortar.dm b/code/game/mecha/equipment/weapons/ballistic/mortar.dm
index cc20f82acf..4cfd885b22 100644
--- a/code/game/mecha/equipment/weapons/ballistic/mortar.dm
+++ b/code/game/mecha/equipment/weapons/ballistic/mortar.dm
@@ -19,6 +19,6 @@
var/turf/MT = get_turf(chassis)
var/turf/TT = get_turf(target)
if(!MT.is_outdoors() || !TT.is_outdoors())
- to_chat(chassis.occupant, "\The [src]'s control system prevents you from firing due to a blocked firing arc.")
+ to_chat(chassis.occupant, span_notice("\The [src]'s control system prevents you from firing due to a blocked firing arc."))
return 0
- return ..()
\ No newline at end of file
+ return ..()
diff --git a/code/game/mecha/equipment/weapons/honk.dm b/code/game/mecha/equipment/weapons/honk.dm
index e7bee193dd..3edd3f554b 100644
--- a/code/game/mecha/equipment/weapons/honk.dm
+++ b/code/game/mecha/equipment/weapons/honk.dm
@@ -17,14 +17,14 @@
return 0
playsound(src, 'sound/effects/bang.ogg', 30, 1, 30)
- chassis.occupant_message("You emit a high-pitched noise from the mech.")
+ chassis.occupant_message(span_warning("You emit a high-pitched noise from the mech."))
for(var/mob/living/carbon/M in ohearers(6, chassis))
if(istype(M, /mob/living/carbon/human))
var/ear_safety = 0
ear_safety = M.get_ear_protection()
if(ear_safety > 0)
return
- to_chat(M, "Your ears feel like they're bleeding!")
+ to_chat(M, span_warning("Your ears feel like they're bleeding!"))
playsound(M, 'sound/effects/bang.ogg', 70, 1, 30)
M.SetSleeping(0)
M.ear_deaf += 30
@@ -34,4 +34,4 @@
chassis.use_power(energy_drain)
log_message("Used a sound emission device.")
do_after_cooldown()
- return
\ No newline at end of file
+ return
diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm
index 2340df5681..53aabdf67e 100644
--- a/code/game/mecha/equipment/weapons/weapons.dm
+++ b/code/game/mecha/equipment/weapons/weapons.dm
@@ -30,8 +30,8 @@
if(!curloc || !targloc)
return
chassis.use_power(energy_drain)
- chassis.visible_message("[chassis] fires [src]!")
- occupant_message("You fire [src]!")
+ chassis.visible_message(span_warning("[chassis] fires [src]!"))
+ occupant_message(span_warning("You fire [src]!"))
log_message("Fired from [src], targeting [target].")
var/target_for_log = "unknown"
if(ismob(target))
diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm
index 2674d3f679..6c7b5f2aad 100644
--- a/code/game/mecha/mech_fabricator.dm
+++ b/code/game/mecha/mech_fabricator.dm
@@ -624,7 +624,7 @@
/obj/machinery/mecha_part_fabricator/attackby(var/obj/item/I, var/mob/user)
if(being_built)
- to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.")
+ to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
return 1
if(default_deconstruction_screwdriver(user, I))
return
@@ -636,7 +636,7 @@
if(istype(I,/obj/item/stack/material))
var/obj/item/stack/material/S = I
if(!(S.material.name in materials))
- to_chat(user, "The [src] doesn't accept [S.material]!")
+ to_chat(user, span_warning("The [src] doesn't accept [S.material]!"))
return
var/sname = "[S.name]"
diff --git a/code/game/mecha/mech_prosthetics.dm b/code/game/mecha/mech_prosthetics.dm
index cec5b1f019..fbd3759d9d 100644
--- a/code/game/mecha/mech_prosthetics.dm
+++ b/code/game/mecha/mech_prosthetics.dm
@@ -137,24 +137,24 @@
if(istype(I,/obj/item/disk/limb))
var/obj/item/disk/limb/D = I
if(!D.company || !(D.company in all_robolimbs))
- to_chat(user, "This disk seems to be corrupted!")
+ to_chat(user, span_warning("This disk seems to be corrupted!"))
else
- to_chat(user, "Installing blueprint files for [D.company]...")
+ to_chat(user, span_notice("Installing blueprint files for [D.company]..."))
if(do_after(user,50,src))
var/datum/robolimb/R = all_robolimbs[D.company]
R.unavailable_to_build = 0
- to_chat(user, "Installed [D.company] blueprints!")
+ to_chat(user, span_notice("Installed [D.company] blueprints!"))
qdel(I)
return
if(istype(I,/obj/item/disk/species))
var/obj/item/disk/species/D = I
if(!D.species || !(D.species in GLOB.all_species))
- to_chat(user, "This disk seems to be corrupted!")
+ to_chat(user, span_warning("This disk seems to be corrupted!"))
else
- to_chat(user, "Uploading modification files for [D.species]...")
+ to_chat(user, span_notice("Uploading modification files for [D.species]..."))
if(do_after(user,50,src))
species_types |= D.species
- to_chat(user, "Uploaded [D.species] files!")
+ to_chat(user, span_notice("Uploaded [D.species] files!"))
qdel(I)
return
diff --git a/code/game/mecha/mech_sensor.dm b/code/game/mecha/mech_sensor.dm
index 59a611fa81..522142830c 100644
--- a/code/game/mecha/mech_sensor.dm
+++ b/code/game/mecha/mech_sensor.dm
@@ -36,7 +36,7 @@
return istype(O, /obj/mecha) || istype(O, /obj/vehicle)
/obj/machinery/mech_sensor/proc/give_feedback(O as obj)
- var/block_message = "Movement control overridden. Area denial active."
+ var/block_message = span_warning("Movement control overridden. Area denial active.")
var/feedback_timer = 0
if(feedback_timer)
return
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index 7170fe2b81..f51cb68083 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -513,11 +513,11 @@
if(65 to 85)
. += "It's slightly damaged."
if(45 to 65)
- . += "It's badly damaged."
+ . += span_notice("It's badly damaged.")
if(25 to 45)
- . += "It's heavily damaged."
+ . += span_warning("It's heavily damaged.")
else
- . += " It's falling apart. "
+ . += span_warning(" It's falling apart. ")
if(equipment?.len)
. += "It's equipped with:"
for(var/obj/item/mecha_parts/mecha_equipment/ME in equipment)
@@ -635,7 +635,7 @@
/obj/mecha/proc/interface_action(obj/machinery/target)
if(istype(target, /obj/machinery/access_button))
- src.occupant_message("Interfacing with [target].")
+ src.occupant_message(span_notice("Interfacing with [target]."))
src.log_message("Interfaced with [target].")
target.attack_hand(src.occupant)
return 1
@@ -651,7 +651,7 @@
if(src_object == src || (src_object in src))
return STATUS_INTERACTIVE
if(src.Adjacent(src_object))
- src.occupant_message("Interfacing with [src_object]...")
+ src.occupant_message(span_notice("Interfacing with [src_object]..."))
src.log_message("Interfaced with [src_object].")
return STATUS_INTERACTIVE
if(src_object in view(2, src))
@@ -682,7 +682,7 @@
/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, span_warning("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]")
@@ -690,16 +690,16 @@
var/obj/item/mecha_parts/component/hull/HC = internal_components[MECH_HULL]
if(!HC)
- occupant_message("You can't operate an exosuit that doesn't have a hull!")
+ occupant_message(span_notice("You can't operate an exosuit that doesn't have a hull!"))
return
if(connected_port)
if(world.time - last_message > 20)
- src.occupant_message("Unable to move while connected to the air system port")
+ src.occupant_message(span_warning("Unable to move while connected to the air system port"))
last_message = world.time
return 0
if(state)
- occupant_message("Maintenance protocols in effect")
+ occupant_message(span_warning("Maintenance protocols in effect"))
return
/*
if(zoom)
@@ -803,7 +803,7 @@
//Up/down zmove
else if(direction == UP || direction == DOWN)
if(!can_ztravel())
- occupant_message("Your vehicle lacks the capacity to move in that direction!")
+ occupant_message(span_warning("Your vehicle lacks the capacity to move in that direction!"))
return FALSE
//We're using locs because some mecha are 2x2 turfs. So thicc!
@@ -811,16 +811,16 @@
for(var/turf/T in locs)
if(!T.CanZPass(src,direction))
- occupant_message("You can't move that direction from here!")
+ occupant_message(span_warning("You can't move that direction from here!"))
result = FALSE
break
var/turf/dest = (direction == UP) ? GetAbove(src) : GetBelow(src)
if(!dest)
- occupant_message("There is nothing of interest in this direction.")
+ occupant_message(span_notice("There is nothing of interest in this direction."))
result = FALSE
break
if(!dest.CanZPass(src,direction))
- occupant_message("There's something blocking your movement in that direction!")
+ occupant_message(span_warning("There's something blocking your movement in that direction!"))
result = FALSE
break
if(result)
@@ -847,7 +847,7 @@
if(!src.check_for_support())
float_direction = direction
start_process(MECHA_PROC_MOVEMENT)
- src.log_message("Movement control lost. Inertial movement started.")
+ src.log_message(span_warning("Movement control lost. Inertial movement started."))
if(do_after(get_step_delay()))
can_move = 1
return 1
@@ -1064,16 +1064,16 @@
if(prob(25)) //Why would they get free internal damage. At least make it a bit RNG.
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
- to_chat(user, "You slash at the armored suit!")
- visible_message("\The [user] slashes at [src.name]'s armor!")
+ to_chat(user, span_danger("You slash at the armored suit!"))
+ visible_message(span_danger("\The [user] slashes at [src.name]'s armor!"))
else
src.log_append_to_last("Armor saved.")
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
- 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!")
+ to_chat(user, span_danger("Your claws had no effect!"))
+ src.occupant_message(span_notice("\The [user]'s claws are stopped by the armor."))
+ visible_message(span_warning("\The [user] rebounds off [src.name]'s armor!"))
else
- user.visible_message("\The [user] hits \the [src]. Nothing happens.","You hit \the [src] with no visible effect.")
+ user.visible_message(span_danger("\The [user] hits \the [src]. Nothing happens."),span_danger("You hit \the [src] with no visible effect."))
src.log_append_to_last("Armor saved.")
return
else if ((HULK in user.mutations) && !prob(temp_deflect_chance))
@@ -1118,7 +1118,7 @@
src.visible_message("The [A] fastens firmly to [src].")
return
if(prob(temp_deflect_chance) || istype(A, /mob))
- src.occupant_message("\The [A] bounces off the armor.")
+ src.occupant_message(span_notice("\The [A] bounces off the armor."))
src.visible_message("\The [A] bounces off \the [src] armor")
src.log_append_to_last("Armor saved.")
if(istype(A, /mob/living))
@@ -1131,16 +1131,16 @@
var/pass_damage = O.throwforce
var/pass_damage_reduc_mod
if(pass_damage <= temp_damage_minimum)//Too little to go through.
- src.occupant_message("\The [A] bounces off the armor.")
+ src.occupant_message(span_notice("\The [A] bounces off the armor."))
src.visible_message("\The [A] bounces off \the [src] armor")
return
else if(O.armor_penetration < temp_minimum_penetration) //If you don't have enough pen, you won't do full damage
- src.occupant_message("\The [A] struggles to bypass \the [src] armor.")
+ src.occupant_message(span_notice("\The [A] struggles to bypass \the [src] armor."))
src.visible_message("\The [A] struggles to bypass \the [src] armor")
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
else
- src.occupant_message("\The [A] manages to pierce \the [src] armor.")
+ src.occupant_message(span_notice("\The [A] manages to pierce \the [src] armor."))
// src.visible_message("\The [A] manages to pierce \the [src] armor")
pass_damage_reduc_mod = 1
@@ -1188,7 +1188,7 @@
temp_fail_penetration_value = round(ArmC.get_efficiency() * ArmC.fail_penetration_value)
if(prob(temp_deflect_chance))
- src.occupant_message("The armor deflects incoming projectile.")
+ src.occupant_message(span_notice("The armor deflects incoming projectile."))
src.visible_message("The [src.name] armor deflects the projectile")
src.log_append_to_last("Armor saved.")
return
@@ -1207,17 +1207,17 @@
pass_damage = ME.handle_projectile_contact(Proj, pass_damage)
if(pass_damage < temp_damage_minimum)//too pathetic to really damage you.
- src.occupant_message("The armor deflects incoming projectile.")
+ src.occupant_message(span_notice("The armor deflects incoming projectile."))
src.visible_message("The [src.name] armor deflects\the [Proj]")
return
else if(Proj.armor_penetration < temp_minimum_penetration) //If you don't have enough pen, you won't do full damage
- src.occupant_message("\The [Proj] struggles to pierce \the [src] armor.")
+ src.occupant_message(span_notice("\The [Proj] struggles to pierce \the [src] armor."))
src.visible_message("\The [Proj] struggles to pierce \the [src] armor")
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
else //You go through completely because you use AP. Nice.
- src.occupant_message("\The [Proj] manages to pierce \the [src] armor.")
+ src.occupant_message(span_notice("\The [Proj] manages to pierce \the [src] armor."))
// src.visible_message("\The [Proj] manages to pierce \the [src] armor")
pass_damage_reduc_mod = 1
@@ -1288,18 +1288,18 @@
src.take_damage(6)
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
- to_chat(user, "You smash at the armored suit!")
+ to_chat(user, span_danger("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)
+ V.show_message(span_danger("\The [user] smashes against [src.name]'s armor!"), 1)
else
src.log_append_to_last("Armor saved.")
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
- to_chat(user, "Your attack had no effect!")
- src.occupant_message("\The [user]'s attack is stopped by the armor.")
+ to_chat(user, span_warning("Your attack had no effect!"))
+ src.occupant_message(span_warning("\The [user]'s attack is stopped by the armor."))
for (var/mob/V in viewers(src))
if(V.client && !(V.blinded))
- V.show_message("\The [user] rebounds off the [src.name] armor!", 1)
+ V.show_message(span_warning("\The [user] rebounds off the [src.name] armor!"), 1)
return
*/
@@ -1344,17 +1344,17 @@
temp_fail_penetration_value = round(ArmC.get_efficiency() * ArmC.fail_penetration_value)
if(prob(temp_deflect_chance)) //Does your attack get deflected outright.
- src.occupant_message("\The [W] bounces off [src.name].")
- to_chat(user, "\The [W] bounces off [src.name].")
+ src.occupant_message(span_notice("\The [W] bounces off [src.name]."))
+ to_chat(user, span_danger("\The [W] bounces off [src.name]."))
src.log_append_to_last("Armor saved.")
else if(W.force < temp_damage_minimum) //Is your attack too PATHETIC to do anything. 3 damage to a person shouldn't do anything to a mech.
- src.occupant_message("\The [W] bounces off the armor.")
+ src.occupant_message(span_notice("\The [W] bounces off the armor."))
src.visible_message("\The [W] bounces off \the [src] armor")
return
else if(W.armor_penetration < temp_minimum_penetration) //If you don't have enough pen, you won't do full damage
- src.occupant_message("\The [W] struggles to bypass \the [src] armor.")
+ src.occupant_message(span_notice("\The [W] struggles to bypass \the [src] armor."))
src.visible_message("\The [W] struggles to bypass \the [src] armor")
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
@@ -1426,9 +1426,9 @@
output_maintenance_dialog(id_card, user)
return
else
- to_chat(user, "Invalid ID: Access denied.")
+ to_chat(user, span_warning("Invalid ID: Access denied."))
else
- to_chat(user, "Maintenance protocols disabled by operator.")
+ to_chat(user, span_warning("Maintenance protocols disabled by operator."))
else if(W.has_tool_quality(TOOL_WRENCH))
if(state==MECHA_BOLTS_SECURED)
state = MECHA_PANEL_LOOSE
@@ -1451,7 +1451,7 @@
if(istype(MC))
removable_components[MC.name] = MC
else
- to_chat(user, "\The [src] appears to be missing \the [slot].")
+ to_chat(user, span_notice("\The [src] appears to be missing \the [slot]."))
var/remove = tgui_input_list(user, "Which component do you want to pry out?", "Remove Component", removable_components)
if(!remove)
@@ -1492,8 +1492,8 @@
src.go_out()
src.log_message("[src.occupant] was ejected using the maintenance controls.")
else
- to_chat(user, "Your attempt is rejected.")
- src.occupant_message("An attempt to eject you was made using the maintenance controls.")
+ to_chat(user, span_warning("Your attempt is rejected."))
+ src.occupant_message(span_warning("An attempt to eject you was made using the maintenance controls."))
src.log_message("Eject attempt made using maintenance controls - rejected.")
return
@@ -1516,20 +1516,20 @@
if (WT.remove_fuel(0,user))
if (hasInternalDamage(MECHA_INT_TANK_BREACH))
clearInternalDamage(MECHA_INT_TANK_BREACH)
- to_chat(user, "You repair the damaged gas tank.")
+ to_chat(user, span_notice("You repair the damaged gas tank."))
else
return
if((src.healthYou repair some damage to [src.name].")
+ to_chat(user, span_notice("You repair some damage to [src.name]."))
src.health += min(10, initial(src.health)-src.health)
update_damage_alerts()
else if(HC.integrityYou repair some damage to [HC.name].")
+ to_chat(user, span_notice("You repair some damage to [HC.name]."))
HC.integrity += min(10, HC.max_integrity-HC.integrity)
update_damage_alerts()
else if(AC.integrityYou repair some damage to [AC.name].")
+ to_chat(user, span_notice("You repair some damage to [AC.name]."))
AC.integrity += min(10, AC.max_integrity-AC.integrity)
update_damage_alerts()
@@ -1551,30 +1551,30 @@
var/obj/item/mecha_parts/component/C = internal_components[slot]
if(!C)
- to_chat(user, "There are no components installed!")
+ to_chat(user, span_notice("There are no components installed!"))
return
if(C.integrity >= C.max_integrity)
- to_chat(user, "\The [C] does not require repairs.")
+ to_chat(user, span_notice("\The [C] does not require repairs."))
else if(C.integrity < C.max_integrity)
- to_chat(user, "You start to repair damage to \the [C].")
+ to_chat(user, span_notice("You start to repair damage to \the [C]."))
while(C.integrity < C.max_integrity && NP)
if(do_after(user, 1 SECOND, src))
NP.use(1)
C.adjust_integrity(NP.mech_repair)
if(C.integrity >= C.max_integrity)
- to_chat(user, "You finish repairing \the [C].")
+ to_chat(user, span_notice("You finish repairing \the [C]."))
break
else if(NP.amount == 0)
- to_chat(user, "Insufficient nanopaste to complete repairs!")
+ to_chat(user, span_warning("Insufficient nanopaste to complete repairs!"))
break
return
else
- to_chat(user, "You can't reach \the [src]'s internal components.")
+ to_chat(user, span_notice("You can't reach \the [src]'s internal components."))
return
else
@@ -1582,7 +1582,7 @@
/*
src.log_message("Attacked by [W]. Attacker - [user]")
if(prob(src.deflect_chance))
- to_chat(user, "\The [W] bounces off [src.name] armor.")
+ to_chat(user, span_warning("\The [W] bounces off [src.name] armor."))
src.log_append_to_last("Armor saved.")
/*
for (var/mob/V in viewers(src))
@@ -1630,7 +1630,7 @@
//Added a message here since people assume their first click failed or something./N
// to_chat(user, "Installing MMI, please stand by.")
- visible_message("[usr] starts to insert a brain into [src.name]")
+ visible_message(span_notice("[usr] starts to insert a brain into [src.name]"))
if(enter_after(40,user))
if(!occupant)
@@ -1785,12 +1785,12 @@
var/obj/machinery/atmospherics/portables_connector/possible_port = locate(/obj/machinery/atmospherics/portables_connector) in T
if(possible_port)
if(connect(possible_port))
- occupant_message("\The [name] connects to the port.")
+ occupant_message(span_notice("\The [name] connects to the port."))
verbs += /obj/mecha/verb/disconnect_from_port
verbs -= /obj/mecha/verb/connect_to_port
return
else
- occupant_message("\The [name] failed to connect to the port.")
+ occupant_message(span_danger("\The [name] failed to connect to the port."))
return
else
occupant_message("Nothing happens")
@@ -1809,11 +1809,11 @@
return
if(disconnect())
- occupant_message("[name] disconnects from the port.")
+ occupant_message(span_notice("[name] disconnects from the port."))
verbs -= /obj/mecha/verb/disconnect_from_port
verbs += /obj/mecha/verb/connect_to_port
else
- occupant_message("[name] is not connected to the port at the moment.")
+ occupant_message(span_danger("[name] is not connected to the port at the moment."))
/obj/mecha/verb/toggle_lights()
set name = "Toggle Lights"
@@ -1846,11 +1846,11 @@
var/obj/item/mecha_parts/component/gas/GC = internal_components[MECH_GAS]
if(!GC)
- to_chat(occupant, "The life support systems don't seem to respond.")
+ to_chat(occupant, span_warning("The life support systems don't seem to respond."))
return
if(!prob(GC.get_efficiency() * 100))
- to_chat(occupant, "\The [GC] shudders and barks, before returning to how it was before.")
+ to_chat(occupant, span_warning("\The [GC] shudders and barks, before returning to how it was before."))
return
use_internal_tank = !use_internal_tank
@@ -1905,22 +1905,22 @@
return
if (usr.buckled)
- to_chat(usr, "You can't climb into the exosuit while buckled!")
+ to_chat(usr, span_warning("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, span_danger("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, span_danger("The [src.name] is already occupied!"))
src.log_append_to_last("Permission denied.")
return
/*
if (usr.abiotic())
- to_chat(usr, "Subject cannot have abiotic items on.")
+ to_chat(usr, span_notice("Subject cannot have abiotic items on."))
return
*/
var/passed
@@ -1930,7 +1930,7 @@
else if(src.operation_allowed(usr))
passed = 1
if(!passed)
- to_chat(usr, "Access denied")
+ to_chat(usr, span_warning("Access denied"))
src.log_append_to_last("Permission denied.")
return
if(isliving(usr))
@@ -1941,7 +1941,7 @@
// to_chat(usr, "You start climbing into [src.name]")
if(get_equipment(/obj/item/mecha_parts/mecha_equipment/runningboard))
- visible_message("\The [usr] is instantly lifted into [src.name] by the running board!")
+ visible_message(span_notice("\The [usr] is instantly lifted into [src.name] by the running board!"))
moved_inside(usr)
if(ishuman(occupant))
GrantActions(occupant, 1)
@@ -2230,8 +2230,8 @@
var/obj/item/mecha_parts/component/armor/AC = internal_components[MECH_ARMOR]
var/output = {"[report_internal_damage()]
- Armor Integrity: [AC?"[round(AC.integrity / AC.max_integrity * 100, 0.1)]%":"ARMOR MISSING"]
- Hull Integrity: [HC?"[round(HC.integrity / HC.max_integrity * 100, 0.1)]%":"HULL MISSING"]
+ Armor Integrity: [AC?"[round(AC.integrity / AC.max_integrity * 100, 0.1)]%":span_warning("ARMOR MISSING")]
+ Hull Integrity: [HC?"[round(HC.integrity / HC.max_integrity * 100, 0.1)]%":span_warning("HULL MISSING")]
[integrity<30?"DAMAGE LEVEL CRITICAL
":null]
Chassis Integrity: [integrity]%
Powercell charge: [isnull(cell_charge)?"No powercell installed":"[cell.percent()]%"]
@@ -2575,7 +2575,7 @@
passengers["[P.occupant]"] = P
if (!passengers)
- to_chat(user, "There are no passengers to remove.")
+ to_chat(user, span_warning("There are no passengers to remove."))
return
var/pname = tgui_input_list(user, "Choose a passenger to forcibly remove.", "Forcibly Remove Passenger", passengers)
@@ -2586,11 +2586,11 @@
var/obj/item/mecha_parts/mecha_equipment/tool/passenger/P = passengers[pname]
var/mob/occupant = P.occupant
- user.visible_message("\The [user] begins opening the hatch on \the [P]...", "You begin opening the hatch on \the [P]...")
+ user.visible_message("\The [user] begins opening the hatch on \the [P]...", span_notice("You begin opening the hatch on \the [P]..."))
if (!do_after(user, 40))
return
- user.visible_message("\The [user] opens the hatch on \the [P] and removes [occupant]!", "You open the hatch on \the [P] and remove [occupant]!")
+ user.visible_message("\The [user] opens the hatch on \the [P] and removes [occupant]!", span_notice("You open the hatch on \the [P] and remove [occupant]!"))
P.go_out()
P.log_message("[occupant] was removed.")
return
@@ -2638,7 +2638,7 @@
if(href_list["drop_from_cargo"])
var/obj/O = locate(href_list["drop_from_cargo"])
if(O && (O in src.cargo))
- src.occupant_message("You unload [O].")
+ src.occupant_message(span_notice("You unload [O]."))
O.forceMove(get_turf(src))
src.cargo -= O
var/turf/T = get_turf(O)
@@ -2776,13 +2776,13 @@
if(prob(temp_deflect_chance))//Deflected
src.log_append_to_last("Armor saved.")
- src.occupant_message("\The [user]'s attack is stopped by the armor.")
+ src.occupant_message(span_notice("\The [user]'s attack is stopped by the armor."))
visible_message("\The [user] rebounds off [src.name]'s armor!")
user.attack_log += text("\[[time_stamp()]\] [span_red("attacked [src.name]")]")
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
else if(damage < temp_damage_minimum)//Pathetic damage levels just don't harm MECH.
- src.occupant_message("\The [user]'s doesn't dent \the [src] paint.")
+ src.occupant_message(span_notice("\The [user]'s doesn't dent \the [src] paint."))
src.visible_message("\The [user]'s attack doesn't dent \the [src] armor")
src.log_append_to_last("Armor saved.")
playsound(src, 'sound/effects/Glasshit.ogg', 50, 1)
@@ -2792,7 +2792,7 @@
src.take_damage(damage) //Apply damage - The take_damage() proc handles armor values
if(damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage.
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
- visible_message("[user] [attack_message] [src]!")
+ visible_message(span_danger("[user] [attack_message] [src]!"))
user.attack_log += text("\[[time_stamp()]\] [span_red("attacked [src.name]")]")
return 1
@@ -2890,7 +2890,7 @@
var/damage = rand(blob.damage_lower, blob.damage_upper)
src.take_damage(damage, blob.damage_type)
- visible_message("\The [B] [blob.attack_verb] \the [src]!", "[blob.attack_message_synth]!")
+ visible_message(span_danger("\The [B] [blob.attack_verb] \the [src]!"), span_danger("[blob.attack_message_synth]!"))
playsound(src, 'sound/effects/attackblob.ogg', 50, 1)
return ..()
diff --git a/code/game/mecha/mecha_wreckage.dm b/code/game/mecha/mecha_wreckage.dm
index 67736d5611..10a53e37a6 100644
--- a/code/game/mecha/mecha_wreckage.dm
+++ b/code/game/mecha/mecha_wreckage.dm
@@ -47,7 +47,7 @@
else
to_chat(user, "You failed to salvage anything valuable from [src].")
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
if(W.has_tool_quality(TOOL_WIRECUTTER))
if(salvage_num <= 0)
diff --git a/code/game/mecha/micro/micro.dm b/code/game/mecha/micro/micro.dm
index 1f301ce541..0762b58900 100644
--- a/code/game/mecha/micro/micro.dm
+++ b/code/game/mecha/micro/micro.dm
@@ -121,7 +121,7 @@
/obj/mecha/micro/move_inside()
var/mob/living/carbon/C = usr
if (C.get_effective_size(TRUE) >= 0.5)
- to_chat(C, "You can't fit in this suit!")
+ to_chat(C, span_warning("You can't fit in this suit!"))
return
else
..()
@@ -129,7 +129,7 @@
/obj/mecha/micro/move_inside_passenger()
var/mob/living/carbon/C = usr
if (C.get_effective_size(TRUE) >= 0.5)
- to_chat(C, "You can't fit in this suit!")
+ to_chat(C, span_warning("You can't fit in this suit!"))
return
else
..()
diff --git a/code/game/mecha/micro/micro_equipment.dm b/code/game/mecha/micro/micro_equipment.dm
index 0641252438..e329efb678 100644
--- a/code/game/mecha/micro/micro_equipment.dm
+++ b/code/game/mecha/micro/micro_equipment.dm
@@ -120,8 +120,8 @@
if(!target_obj.vars.Find("unacidable") || target_obj.unacidable) return
set_ready_state(0)
chassis.use_power(energy_drain)
- chassis.visible_message("[chassis] starts to drill [target]", "You hear the drill.")
- occupant_message("You start to drill [target]")
+ chassis.visible_message(span_danger("[chassis] starts to drill [target]"), span_warning("You hear the drill."))
+ occupant_message(span_danger("You start to drill [target]"))
var/T = chassis.loc
var/C = target.loc //why are these backwards? we may never know -Pete
if(do_after_cooldown(target))
@@ -129,7 +129,7 @@
if(istype(target, /turf/simulated/wall))
var/turf/simulated/wall/W = target
if(W.reinf_material)
- occupant_message("[target] is too durable to drill through.")
+ occupant_message(span_warning("[target] is too durable to drill through."))
else
log_message("Drilled through [target]")
target.ex_act(2)
@@ -143,7 +143,7 @@
for(var/obj/item/ore/ore in range(chassis,1))
if(get_dir(chassis,ore)&chassis.dir)
if (ore_box.contents.len >= ore_box.orecapacity)
- occupant_message("The ore compartment is full.")
+ occupant_message(span_warning("The ore compartment is full."))
return 1
else
ore.forceMove(ore_box)
@@ -169,8 +169,8 @@
if(!action_checks(target)) return
set_ready_state(0)
chassis.use_power(energy_drain)
- chassis.visible_message("[chassis] sweeps around with its ore scoop.")
- occupant_message("You sweep around the area with the scoop.")
+ chassis.visible_message(span_info("[chassis] sweeps around with its ore scoop."))
+ occupant_message(span_info("You sweep around the area with the scoop."))
var/T = chassis.loc
//var/C = target.loc //why are these backwards? we may never know -Pete
if(do_after_cooldown(target))
@@ -178,7 +178,7 @@
for(var/obj/item/ore/ore in range(chassis,1))
if(get_dir(chassis,ore)&chassis.dir)
if (contents.len >= orecapacity)
- occupant_message("The ore compartment is full.")
+ occupant_message(span_warning("The ore compartment is full."))
return 1
else
ore.Move(src)
@@ -204,7 +204,7 @@
set src in view(1)
if(!istype(usr, /mob/living/carbon/human)) //Only living, intelligent creatures with hands can empty ore boxes.
- to_chat(usr, "You are physically incapable of emptying the ore box.")
+ to_chat(usr, span_warning("You are physically incapable of emptying the ore box."))
return
if( usr.stat || usr.restrained() )
@@ -217,12 +217,12 @@
add_fingerprint(usr)
if(contents.len < 1)
- to_chat(usr, "The ore box is empty")
+ to_chat(usr, span_warning("The ore box is empty"))
return
for (var/obj/item/ore/O in contents)
contents -= O
O.loc = src.loc
- to_chat(usr, "You empty the ore box")
+ to_chat(usr, span_info("You empty the ore box"))
return
diff --git a/code/game/mecha/space/hoverpod.dm b/code/game/mecha/space/hoverpod.dm
index fc5fc1e739..17ce5d45b8 100644
--- a/code/game/mecha/space/hoverpod.dm
+++ b/code/game/mecha/space/hoverpod.dm
@@ -47,7 +47,7 @@
if (href_list["toggle_stabilization"])
stabilization_enabled = !stabilization_enabled
send_byjax(src.occupant,"exosuit.browser","stabilization_command","[stabilization_enabled?"Dis":"En"]able thruster stabilization")
- src.occupant_message("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"].")
+ src.occupant_message(span_notice("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"]."))
return
/obj/mecha/working/hoverpod/get_commands()
diff --git a/code/game/mecha/working/working.dm b/code/game/mecha/working/working.dm
index 6d19bbd6b5..88ab213d2d 100644
--- a/code/game/mecha/working/working.dm
+++ b/code/game/mecha/working/working.dm
@@ -34,7 +34,7 @@
if(href_list["drop_from_cargo"])
var/obj/O = locate(href_list["drop_from_cargo"])
if(O && O in src.cargo)
- src.occupant_message("You unload [O].")
+ src.occupant_message(span_notice("You unload [O]."))
O.loc = get_turf(src)
src.cargo -= O
var/turf/T = get_turf(O)
diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm
index 38893adcba..632a55ddda 100644
--- a/code/game/objects/buckling.dm
+++ b/code/game/objects/buckling.dm
@@ -116,12 +116,12 @@
//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)
- to_chat(user, "You can't buckle anyone in before the game starts.")
+ to_chat(user, span_warning("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
if(M in buckled_mobs)
- to_chat(user, "\The [M] is already buckled to \the [src].")
+ to_chat(user, span_warning("\The [M] is already buckled to \the [src]."))
return FALSE
if(!can_buckle_check(M, forced))
return FALSE
@@ -141,19 +141,19 @@
var/reveal_message = list("buckled_mob" = null, "buckled_to" = null) //VORE EDIT: This being a list and messages existing for the buckle target atom.
if(!silent)
if(M == user)
- reveal_message["buckled_mob"] = "You come out of hiding and buckle yourself to [src]." //VORE EDIT
- reveal_message["buckled_to"] = "You come out of hiding as [M.name] buckles themselves to you." //VORE EDIT
+ reveal_message["buckled_mob"] = span_notice("You come out of hiding and buckle yourself to [src].") //VORE EDIT
+ reveal_message["buckled_to"] = span_notice("You come out of hiding as [M.name] buckles themselves to you.") //VORE EDIT
M.visible_message(\
- "[M.name] buckles themselves to [src].",\
- "You buckle yourself to [src].",\
- "You hear metal clanking.")
+ span_notice("[M.name] buckles themselves to [src]."),\
+ span_notice("You buckle yourself to [src]."),\
+ span_notice("You hear metal clanking."))
else
- reveal_message["buckled_mob"] = "You are revealed as you are buckled to [src]." //VORE EDIT
- reveal_message["buckled_to"] = "You are revealed as [M.name] is buckled to you." //VORE EDIT
+ reveal_message["buckled_mob"] = span_notice("You are revealed as you are buckled to [src].") //VORE EDIT
+ reveal_message["buckled_to"] = span_notice("You are revealed as [M.name] is buckled to you.") //VORE EDIT
M.visible_message(\
- "[M.name] is buckled to [src] by [user.name]!",\
- "You are buckled to [src] by [user.name]!",\
- "You hear metal clanking.")
+ span_danger("[M.name] is buckled to [src] by [user.name]!"),\
+ span_danger("You are buckled to [src] by [user.name]!"),\
+ span_notice("You hear metal clanking."))
M.reveal(silent, reveal_message["buckled_mob"]) //Reveal people so they aren't buckled to chairs from behind. //VORE EDIT, list arg instead of simple message var for buckled mob
//Vore edit start
@@ -168,14 +168,14 @@
if(M)
if(M != user)
M.visible_message(\
- "[M.name] was unbuckled by [user.name]!",\
- "You were unbuckled from [src] by [user.name].",\
- "You hear metal clanking.")
+ span_notice("[M.name] was unbuckled by [user.name]!"),\
+ span_notice("You were unbuckled from [src] by [user.name]."),\
+ span_notice("You hear metal clanking."))
else
M.visible_message(\
- "[M.name] unbuckled themselves!",\
- "You unbuckle yourself from [src].",\
- "You hear metal clanking.")
+ span_notice("[M.name] unbuckled themselves!"),\
+ span_notice("You unbuckle yourself from [src]."),\
+ span_notice("You hear metal clanking."))
add_fingerprint(user)
return M
@@ -202,7 +202,7 @@
return FALSE
if(has_buckled_mobs() && buckled_mobs.len >= max_buckled_mobs) //Handles trying to buckle yourself to the chair when someone is on it
- to_chat(M, "\The [src] can't buckle anymore people.")
+ to_chat(M, span_notice("\The [src] can't buckle anymore people."))
return FALSE
return TRUE
diff --git a/code/game/objects/effects/alien/aliens.dm b/code/game/objects/effects/alien/aliens.dm
index 56fec8642b..e325b326d2 100644
--- a/code/game/objects/effects/alien/aliens.dm
+++ b/code/game/objects/effects/alien/aliens.dm
@@ -186,9 +186,9 @@
/obj/effect/alien/weeds/attackby(var/obj/item/W, var/mob/user)
user.setClickCooldown(user.get_attack_speed(W))
if(LAZYLEN(W.attack_verb))
- visible_message("\The [src] have been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]")
+ visible_message(span_danger("\The [src] have been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]"))
else
- visible_message("\The [src] have been attacked with \the [W][(user ? " by [user]." : ".")]")
+ visible_message(span_danger("\The [src] have been attacked with \the [W][(user ? " by [user]." : ".")]"))
var/damage = W.force / 4.0
@@ -203,7 +203,7 @@
healthcheck()
/obj/effect/alien/weeds/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
user.do_attack_animation(src)
health -= damage
healthcheck()
@@ -267,7 +267,7 @@
if(ticks >= target_strength)
for(var/mob/O in hearers(src, null))
- O.show_message("[src.target] collapses under its own weight into a puddle of goop and undigested debris!", 1)
+ O.show_message(span_alium("[src.target] collapses under its own weight into a puddle of goop and undigested debris!"), 1)
if(iswall(target)) //Gurgs : Spruced up corrosive acid
var/turf/simulated/wall/W = target
@@ -282,13 +282,13 @@
switch(target_strength - ticks)
if(6)
- visible_message("[src.target] is holding up against the acid!")
+ visible_message(span_alium("[src.target] is holding up against the acid!"))
if(4)
- visible_message("[src.target]\s structure is being melted by the acid!")
+ visible_message(span_alium("[src.target]\s structure is being melted by the acid!"))
if(2)
- visible_message("[src.target] is struggling to withstand the acid!")
+ visible_message(span_alium("[src.target] is struggling to withstand the acid!"))
if(0 to 1)
- visible_message("[src.target] begins to crumble under the acid!")
+ visible_message(span_alium("[src.target] begins to crumble under the acid!"))
spawn(rand(150, 200)) tick()
//Xenomorph Effect egg removed, replaced with Structure Egg.
diff --git a/code/game/objects/effects/chem/foam.dm b/code/game/objects/effects/chem/foam.dm
index 6e9cf44ebc..84ef931b74 100644
--- a/code/game/objects/effects/chem/foam.dm
+++ b/code/game/objects/effects/chem/foam.dm
@@ -168,23 +168,23 @@
/obj/structure/foamedmetal/attack_hand(var/mob/user)
if ((HULK in user.mutations) || (prob(75 - metal * 25)))
- user.visible_message("[user] smashes through the foamed metal.", "You smash through the metal foam wall.")
+ user.visible_message(span_warning("[user] smashes through the foamed metal."), span_notice("You smash through the metal foam wall."))
qdel(src)
else
- to_chat(user, "You hit the metal foam but bounce off it.")
+ to_chat(user, span_notice("You hit the metal foam but bounce off it."))
return
/obj/structure/foamedmetal/attackby(var/obj/item/I, var/mob/user)
if(istype(I, /obj/item/grab))
var/obj/item/grab/G = I
G.affecting.loc = src.loc
- visible_message("[G.assailant] smashes [G.affecting] through the foamed metal wall.")
+ visible_message(span_warning("[G.assailant] smashes [G.affecting] through the foamed metal wall."))
qdel(I)
qdel(src)
return
if(prob(I.force * 20 - metal * 25))
- user.visible_message("[user] smashes through the foamed metal.", "You smash through the foamed metal with \the [I].")
+ user.visible_message(span_warning("[user] smashes through the foamed metal."), span_notice("You smash through the foamed metal with \the [I]."))
qdel(src)
else
- to_chat(user, "You hit the metal foam to no effect.")
+ to_chat(user, span_notice("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 4ed055f24b..98ec3fa94b 100644
--- a/code/game/objects/effects/decals/Cleanable/humans.dm
+++ b/code/game/objects/effects/decals/Cleanable/humans.dm
@@ -127,7 +127,7 @@ var/global/list/image/splatter_cache=list()
return
var/taken = rand(1,amount)
amount -= taken
- to_chat(user, "You get some of \the [src] on your hands.")
+ to_chat(user, span_notice("You get some of \the [src] on your hands."))
if (!user.blood_DNA)
user.blood_DNA = list()
user.blood_DNA |= blood_DNA.Copy()
diff --git a/code/game/objects/effects/decals/Cleanable/misc.dm b/code/game/objects/effects/decals/Cleanable/misc.dm
index ad2a3fef80..c15734b89d 100644
--- a/code/game/objects/effects/decals/Cleanable/misc.dm
+++ b/code/game/objects/effects/decals/Cleanable/misc.dm
@@ -16,7 +16,7 @@
anchored = TRUE
/obj/effect/decal/cleanable/ash/attack_hand(mob/user as mob)
- to_chat(user, "[src] sifts through your fingers.")
+ to_chat(user, span_notice("[src] sifts through your fingers."))
var/turf/simulated/floor/F = get_turf(src)
if (istype(F))
F.dirt += 4
@@ -158,6 +158,6 @@
icon_state = "confetti"
/obj/effect/decal/cleanable/confetti/attack_hand(mob/user)
- to_chat(user, "You start to meticulously pick up the confetti.")
+ to_chat(user, span_notice("You start to meticulously pick up the confetti."))
if(do_after(user, 60))
qdel(src)
diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm
index 6873e66ffc..ca1fcd2f3c 100644
--- a/code/game/objects/effects/decals/contraband.dm
+++ b/code/game/objects/effects/decals/contraband.dm
@@ -35,12 +35,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))
- to_chat(user, "You can't place this here!")
+ to_chat(user, span_warning("You can't place this here!"))
return
var/placement_dir = get_dir(user, W)
if (!(placement_dir in cardinal))
- to_chat(user, "You must stand directly in front of the wall you wish to place that on.")
+ to_chat(user, span_warning("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
@@ -56,10 +56,10 @@
break
if (stuff_on_wall)
- to_chat(user, "There is already a poster there!")
+ to_chat(user, span_notice("There is already a poster there!"))
return
- to_chat(user, "You start placing the poster on the wall...") //Looks like it's uncluttered enough. Place the poster.
+ to_chat(user, span_notice("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)
@@ -72,7 +72,7 @@
if(!P) return
if(iswall(W) && user && P.loc == user.loc) //Let's check if everything is still there
- to_chat(user, "You place the poster!")
+ to_chat(user, span_notice("You place the poster!"))
else
P.roll_and_drop(P.loc)
@@ -183,10 +183,10 @@
if(W.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, W.usesound, 100, 1)
if(ruined)
- to_chat(user, "You remove the remnants of the poster.")
+ to_chat(user, span_notice("You remove the remnants of the poster."))
qdel(src)
else
- to_chat(user, "You carefully remove the poster from the wall.")
+ to_chat(user, span_notice("You carefully remove the poster from the wall."))
roll_and_drop(user.loc)
return
@@ -200,7 +200,7 @@
if(ruined || !user.Adjacent(src))
return
- visible_message("[user] rips [src] in a single, decisive motion!" )
+ visible_message(span_warning("[user] rips [src] in a single, decisive motion!") )
playsound(src, 'sound/items/poster_ripped.ogg', 100, 1)
ruined = 1
icon_state = "poster_ripped"
@@ -239,4 +239,4 @@
//Non-Random Posters
/obj/structure/sign/poster/custom
- roll_type = /obj/item/contraband/poster/custom
\ No newline at end of file
+ roll_type = /obj/item/contraband/poster/custom
diff --git a/code/game/objects/effects/decals/posters/posters.dm b/code/game/objects/effects/decals/posters/posters.dm
index ea3f93589b..7aa5709988 100644
--- a/code/game/objects/effects/decals/posters/posters.dm
+++ b/code/game/objects/effects/decals/posters/posters.dm
@@ -41,12 +41,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))
- to_chat(user, "You can't place this here!")
+ to_chat(user, span_warning("You can't place this here!"))
return FALSE
var/placement_dir = get_dir(user, W)
if(!(placement_dir in cardinal))
- to_chat(user, "You must stand directly in front of the wall you wish to place that on.")
+ to_chat(user, span_warning("You must stand directly in front of the wall you wish to place that on."))
return FALSE
//just check if there is a poster on or adjacent to the wall
@@ -62,15 +62,15 @@
break
if(stuff_on_wall)
- to_chat(user, "There is already a poster there!")
+ to_chat(user, span_notice("There is already a poster there!"))
return FALSE
- to_chat(user, "You start placing the poster on the wall...") //Looks like it's uncluttered enough. Place the poster.
+ to_chat(user, span_notice("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, get_dir(user, W), src)
if(do_after(user, 17)) //Let's check if everything is still there
- to_chat(user, "You place the poster!")
+ to_chat(user, span_notice("You place the poster!"))
qdel(src)
return TRUE
@@ -168,10 +168,10 @@
if(W.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, W.usesound, 100, 1)
if(ruined)
- to_chat(user, "You remove the remnants of the poster.")
+ to_chat(user, span_notice("You remove the remnants of the poster."))
qdel(src)
else
- to_chat(user, "You carefully remove the poster from the wall.")
+ to_chat(user, span_notice("You carefully remove the poster from the wall."))
roll_and_drop(get_turf(user))
return
@@ -185,7 +185,7 @@
if(ruined || !user.Adjacent(src))
return
- visible_message("[user] rips [src] in a single, decisive motion!" )
+ visible_message(span_warning("[user] rips [src] in a single, decisive motion!") )
playsound(src, 'sound/items/poster_ripped.ogg', 100, 1)
ruined = TRUE
icon_state = "poster_ripped"
diff --git a/code/game/objects/effects/decals/remains.dm b/code/game/objects/effects/decals/remains.dm
index 9d1d0e1309..3c89385ece 100644
--- a/code/game/objects/effects/decals/remains.dm
+++ b/code/game/objects/effects/decals/remains.dm
@@ -56,14 +56,14 @@
icon_state = "mummified2"
/obj/effect/decal/remains/attack_hand(mob/user as mob)
- to_chat(user, "[src] sinks together into a pile of ash.")
+ to_chat(user, span_notice("[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)
qdel(src)
/obj/effect/decal/remains/robot/attack_hand(mob/user as mob)
- to_chat(user, "[src] crumbles down into a pile of debris.")
+ to_chat(user, span_notice("[src] crumbles down into a pile of debris."))
var/turf/simulated/floor/F = get_turf(src)
if(istype(F))
new /obj/effect/decal/cleanable/blood/gibs/robot(F)
diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm
index fca4988493..b69cbba4d7 100644
--- a/code/game/objects/effects/effect_system.dm
+++ b/code/game/objects/effects/effect_system.dm
@@ -544,10 +544,10 @@ steam.start() -- spawns the effect
s.start()
for(var/mob/M in viewers(5, location))
- to_chat(M, "The solution violently explodes.")
+ to_chat(M, span_warning("The solution violently explodes."))
for(var/mob/M in viewers(1, location))
if (prob (50 * amount))
- to_chat(M, "The explosion knocks you down.")
+ to_chat(M, span_warning("The explosion knocks you down."))
M.Weaken(rand(1,5))
return
else
@@ -570,7 +570,7 @@ steam.start() -- spawns the effect
flash = (amount/4) * flashing_factor
for(var/mob/M in viewers(8, location))
- to_chat(M, "The solution violently explodes.")
+ to_chat(M, span_warning("The solution violently explodes."))
explosion(
location,
diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm
index f9116b8361..59f0744923 100644
--- a/code/game/objects/effects/gibs.dm
+++ b/code/game/objects/effects/gibs.dm
@@ -18,7 +18,7 @@
/obj/effect/gibspawner/proc/Gib(atom/location, var/datum/dna/MobDNA = null)
if(gibtypes.len != gibamounts.len || gibamounts.len != gibdirections.len)
- to_world("Gib list length mismatch!")
+ to_world(span_warning("Gib list length mismatch!"))
return
var/obj/effect/decal/cleanable/blood/gibs/gib = null
diff --git a/code/game/objects/effects/landmarks_poi_vr.dm b/code/game/objects/effects/landmarks_poi_vr.dm
index c46be055bd..0797705a69 100644
--- a/code/game/objects/effects/landmarks_poi_vr.dm
+++ b/code/game/objects/effects/landmarks_poi_vr.dm
@@ -21,7 +21,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/poi_loader)
/obj/effect/landmark/poi_loader/proc/annihilate_bounds()
//var/deleted_atoms = 0
- //admin_notice("Annihilating objects in poi loading location.", R_DEBUG)
+ //admin_notice(span_danger("Annihilating objects in poi loading location."), R_DEBUG)
var/list/turfs_to_clean = get_turfs_to_clean()
if(turfs_to_clean.len)
for(var/x in 1 to 2) // Requires two passes to get everything.
@@ -29,7 +29,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/poi_loader)
for(var/atom/movable/AM in T)
//++deleted_atoms
qdel(AM)
- //admin_notice("Annihilated [deleted_atoms] objects.", R_DEBUG)
+ //admin_notice(span_danger("Annihilated [deleted_atoms] objects."), R_DEBUG)
/obj/effect/landmark/poi_loader/proc/load_poi()
var/turf/T = get_turf(src)
@@ -61,7 +61,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/poi_loader)
if(!template_to_use)
return
- //admin_notice("Chosen Predefined PoI Map: [chosen_type.name]", R_DEBUG)
+ //admin_notice(span_danger("Chosen Predefined PoI Map: [chosen_type.name]"), R_DEBUG)
if(remove_from_pool)
global_used_pois[poi_type] -= template_to_use
@@ -70,4 +70,4 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/poi_loader)
annihilate_bounds()
//CHECK_TICK //Don't let anything else happen for now
// Actually load it
- template_to_use.load(T)
\ No newline at end of file
+ template_to_use.load(T)
diff --git a/code/game/objects/effects/map_effects/portal.dm b/code/game/objects/effects/map_effects/portal.dm
index 769c4bcc90..339314dc32 100644
--- a/code/game/objects/effects/map_effects/portal.dm
+++ b/code/game/objects/effects/map_effects/portal.dm
@@ -241,7 +241,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
var/list/mobs_to_relay = in_range["mobs"]
for(var/mob/mob as anything in mobs_to_relay)
- var/rendered = "[text]"
+ var/rendered = span_message("[text]")
mob.show_message(rendered)
..()
@@ -250,7 +250,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
/obj/effect/map_effect/portal/master/show_message(msg, type, alt, alt_type)
if(!counterpart)
return
- var/rendered = "[msg]"
+ var/rendered = span_message("[msg]")
var/turf/T = counterpart.get_focused_turf()
var/list/in_range = get_mobs_and_objs_in_view_fast(T, world.view, 0)
var/list/mobs_to_relay = in_range["mobs"]
@@ -273,7 +273,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
var/message = combined["formatted"]
var/name_used = M.GetVoice()
var/rendered = null
- rendered = "[name_used] [message]"
+ rendered = span_game(span_say("[span_name(name_used)] [message]"))
mob.show_message(rendered, 2)
..()
diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm
index a4b5ba2d1f..ac2270e513 100644
--- a/code/game/objects/effects/mines.dm
+++ b/code/game/objects/effects/mines.dm
@@ -103,8 +103,8 @@
/obj/effect/mine/attackby(obj/item/W as obj, mob/living/user as mob)
if(W.has_tool_quality(TOOL_SCREWDRIVER))
panel_open = !panel_open
- user.visible_message("[user] very carefully screws the mine's panel [panel_open ? "open" : "closed"].",
- "You very carefully screw the mine's panel [panel_open ? "open" : "closed"].")
+ user.visible_message(span_warning("[user] very carefully screws the mine's panel [panel_open ? "open" : "closed"]."),
+ span_notice("You very carefully screw the mine's panel [panel_open ? "open" : "closed"]."))
playsound(src, W.usesound, 50, 1)
// Panel open, stay uncloaked, or uncloak if already cloaked. If you don't cloak on place, ignore it and just be normal alpha.
@@ -310,9 +310,9 @@
/obj/item/mine/attackby(obj/item/W as obj, mob/living/user as mob)
if(W.has_tool_quality(TOOL_SCREWDRIVER) && trap)
- to_chat(user, "You begin removing \the [trap].")
+ to_chat(user, span_notice("You begin removing \the [trap]."))
if(do_after(user, 10 SECONDS))
- to_chat(user, "You finish disconnecting the mine's trigger.")
+ to_chat(user, span_notice("You finish disconnecting the mine's trigger."))
trap.forceMove(get_turf(src))
trap = null
return
diff --git a/code/game/objects/effects/overlays.dm b/code/game/objects/effects/overlays.dm
index 4870ee9b87..456b7fee80 100644
--- a/code/game/objects/effects/overlays.dm
+++ b/code/game/objects/effects/overlays.dm
@@ -68,9 +68,9 @@
// Todo: Add a version that gradually reaccumulates over time by means of alpha transparency. -Spades
/obj/effect/overlay/snow/attackby(obj/item/W as obj, mob/user as mob)
if (istype(W, /obj/item/shovel))
- user.visible_message("[user] begins to shovel away \the [src].")
+ user.visible_message(span_notice("[user] begins to shovel away \the [src]."))
if(do_after(user, 40))
- to_chat(user, "You have finished shoveling!")
+ to_chat(user, span_notice("You have finished shoveling!"))
qdel(src)
return
diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm
index de067a3991..b7d616a5f8 100644
--- a/code/game/objects/effects/spiders.dm
+++ b/code/game/objects/effects/spiders.dm
@@ -24,9 +24,9 @@
user.setClickCooldown(user.get_attack_speed(W))
if(LAZYLEN(W.attack_verb))
- visible_message("\The [src] has been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]")
+ visible_message(span_warning("\The [src] has been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]"))
else
- visible_message("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]")
+ visible_message(span_warning("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]"))
var/damage = W.force / 4.0
@@ -44,12 +44,12 @@
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
user.do_attack_animation(src)
if(prob(20))
- visible_message("\The [user] tries to stomp on \the [src], but misses!")
+ visible_message(span_warning("\The [user] tries to stomp on \the [src], but misses!"))
var/list/nearby = oview(2, src)
if(length(nearby))
walk_to(src, pick(nearby), 2)
return
- visible_message("\The [user] stomps \the [src] dead!")
+ visible_message(span_warning("\The [user] stomps \the [src] dead!"))
die()
/obj/effect/spider/bullet_act(var/obj/item/projectile/Proj)
@@ -191,7 +191,7 @@
..()
/obj/effect/spider/spiderling/die()
- visible_message("[src] dies!")
+ visible_message(span_alert("[src] dies!"))
new /obj/effect/decal/cleanable/spiderling_remains(src.loc)
..()
@@ -222,7 +222,7 @@
return
if(prob(50))
- src.visible_message("You hear something squeezing through the ventilation ducts.",2)
+ src.visible_message(span_notice("You hear something squeezing through the ventilation ducts."),2)
sleep(travel_time)
if(!exit_vent || exit_vent.welded)
@@ -246,14 +246,14 @@
if(!O.owner || O.owner.stat == DEAD || amount_grown > 80)
O.implants -= src
src.loc = O.owner ? O.owner.loc : O.loc
- src.visible_message("\A [src] makes its way out of [O.owner ? "[O.owner]'s [O.name]" : "\the [O]"]!")
+ src.visible_message(span_warning("\A [src] makes its way out of [O.owner ? "[O.owner]'s [O.name]" : "\the [O]"]!"))
if(O.owner)
O.owner.apply_damage(1, BRUTE, O.organ_tag)
else if(prob(1))
O.owner.apply_damage(1, TOX, O.organ_tag)
if(world.time > last_itch + 30 SECONDS)
last_itch = world.time
- to_chat(O.owner, "Your [O.name] itches...")
+ to_chat(O.owner, span_notice("Your [O.name] itches..."))
else if(prob(1))
src.visible_message("\The [src] skitters.")
@@ -268,7 +268,7 @@
var/target_atom = pick(nearby)
walk_to(src, target_atom, 5)
if(prob(25))
- src.visible_message("\The [src] skitters[pick(" away"," around","")].")
+ src.visible_message(span_notice("\The [src] skitters[pick(" away"," around","")]."))
else if(amount_grown < 75 && prob(5))
//vent crawl!
for(var/obj/machinery/atmospherics/unary/vent_pump/v in view(7,src))
@@ -318,7 +318,7 @@
icon_state = pick("cocoon1","cocoon2","cocoon3")
/obj/effect/spider/cocoon/Destroy()
- src.visible_message("\The [src] splits open.")
+ src.visible_message(span_warning("\The [src] splits open."))
for(var/atom/movable/A in contents)
A.loc = src.loc
return ..()
diff --git a/code/game/objects/effects/step_triggers.dm b/code/game/objects/effects/step_triggers.dm
index 2c689d9cdd..bb5a84d9a8 100644
--- a/code/game/objects/effects/step_triggers.dm
+++ b/code/game/objects/effects/step_triggers.dm
@@ -257,7 +257,7 @@ var/global/list/tele_landmarks = list() // Terrible, but the alternative is loop
/obj/effect/step_trigger/death/Trigger(var/atom/movable/A)
if(isliving(A))
- to_chat(A, "[deathmessage]")
+ to_chat(A, span_danger("[deathmessage]"))
log_and_message_admins("[A] [deathalert]")
qdel(A)
@@ -281,7 +281,7 @@ var/global/list/tele_landmarks = list() // Terrible, but the alternative is loop
/obj/effect/step_trigger/warning/Trigger(var/atom/movable/A)
if(isliving(A))
- to_chat(A, "[warningmessage]")
+ to_chat(A, span_warning("[warningmessage]"))
/obj/effect/step_trigger/warning/train_edge
warningmessage = "The wind billowing alongside the train is extremely strong here! Any movement could easily pull you down beneath the carriages, return to the train immediately!"
diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm
index 8dbc360f6f..ada0333fdc 100644
--- a/code/game/objects/items.dm
+++ b/code/game/objects/items.dm
@@ -236,10 +236,10 @@
if (user.hand)
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
- to_chat(user, "You try to move your [temp.name], but cannot!")
+ to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
return
if(!temp)
- to_chat(user, "You try to use your hand, but realize it is no longer attached!")
+ to_chat(user, span_notice("You try to use your hand, but realize it is no longer attached!"))
return
if(istype(src, /obj/item/holder))
var/obj/item/holder/D = src
@@ -436,12 +436,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)
- to_chat(H, "You need a jumpsuit before you can attach this [name].")
+ to_chat(H, span_warning("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)
- to_chat(H, "You need a jumpsuit before you can attach this [name].")
+ to_chat(H, span_warning("You need a jumpsuit before you can attach this [name]."))
return 0
if(slot_flags & SLOT_DENYPOCKET)
return 0
@@ -450,11 +450,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)
- to_chat(H, "You need a suit before you can attach this [name].")
+ to_chat(H, span_warning("You need a suit before you can attach this [name]."))
return 0
if(!H.wear_suit.allowed)
if(!disable_warning)
- to_chat(usr, "You somehow have a suit with no defined allowed items for suit storage, stop that.")
+ to_chat(usr, span_warning("You somehow have a suit with no defined allowed items for suit storage, stop that."))
return 0
if( !(istype(src, /obj/item/pda) || istype(src, /obj/item/pen) || is_type_in_list(src, H.wear_suit.allowed)) )
return 0
@@ -480,7 +480,7 @@ var/list/global/slot_flags_enumeration = list(
break
if(!allow)
if(!disable_warning)
- to_chat(H, "You're not wearing anything you can attach this [name] to.")
+ to_chat(H, span_warning("You're not wearing anything you can attach this [name] to."))
return 0
return 1
@@ -511,23 +511,23 @@ var/list/global/slot_flags_enumeration = list(
if(isanimal(usr)) //VOREStation Edit Start - Allows simple mobs with hands to use the pickup verb
var/mob/living/simple_mob/s = usr
if(!s.has_hands)
- to_chat(usr, "You can't pick things up!")
+ to_chat(usr, span_warning("You can't pick things up!"))
return
else if((!istype(usr, /mob/living/carbon)) || (istype(usr, /mob/living/carbon/brain)))//Is humanoid, and is not a brain
- to_chat(usr, "You can't pick things up!")
+ to_chat(usr, span_warning("You can't pick things up!"))
return
var/mob/living/L = usr
if( usr.stat || usr.restrained() )//Is not asleep/dead and is not restrained
- to_chat(usr, "You can't pick things up!")
+ to_chat(usr, span_warning("You can't pick things up!"))
return
if(src.anchored) //Object isn't anchored
- to_chat(usr, "You can't pick that up!")
+ to_chat(usr, span_warning("You can't pick that up!"))
return
if(L.get_active_hand()) //Hand is not full //VOREStation Edit End
- to_chat(usr, "Your hand is full.")
+ to_chat(usr, span_warning("Your hand is full."))
return
if(!istype(src.loc, /turf)) //Object is on a turf
- to_chat(usr, "You can't pick that up!")
+ to_chat(usr, span_warning("You can't pick that up!"))
return
//All checks are done, time to pick it up!
usr.UnarmedAttack(src)
@@ -562,11 +562,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!
- to_chat(user, "You're going to need to remove the eye covering first.")
+ to_chat(user, span_warning("You're going to need to remove the eye covering first."))
return
if(!M.has_eyes())
- to_chat(user, "You cannot locate any eyes on [M]!")
+ to_chat(user, span_warning("You cannot locate any eyes on [M]!"))
return
//this should absolutely trigger even if not aim-impaired in some way
@@ -586,7 +586,7 @@ var/list/global/slot_flags_enumeration = list(
//if((CLUMSY in user.mutations) && prob(50))
// M = user
/*
- to_chat(M, "You stab yourself in the eye.")
+ to_chat(M, span_warning("You stab yourself in the eye."))
M.sdisabilities |= BLIND
M.weakened += 4
M.adjustBruteLoss(10)
@@ -598,30 +598,30 @@ 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)
- to_chat(M, "[user] stabs you in the eye with [src]!")
- to_chat(user, "You stab [M] in the eye with [src]!")
+ O.show_message(span_danger("[M] has been stabbed in the eye with [src] by [user]."), 1)
+ to_chat(M, span_danger("[user] stabs you in the eye with [src]!"))
+ to_chat(user, span_danger("You stab [M] in the eye with [src]!"))
else
user.visible_message( \
- "[user] has stabbed themself with [src]!", \
- "You stab yourself in the eyes with [src]!" \
+ span_danger("[user] has stabbed themself with [src]!"), \
+ span_danger("You stab yourself in the eyes with [src]!") \
)
eyes.damage += rand(3,4)
if(eyes.damage >= eyes.min_bruised_damage)
if(M.stat != 2)
if(!(eyes.robotic >= ORGAN_ROBOT)) //robot eyes bleeding might be a bit silly
- to_chat(M, "Your eyes start to bleed profusely!")
+ to_chat(M, span_danger("Your eyes start to bleed profusely!"))
if(prob(50))
if(M.stat != 2)
- to_chat(M, "You drop what you're holding and clutch at your eyes!")
+ to_chat(M, span_warning("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)
- to_chat(M, "You go blind!")
+ to_chat(M, span_warning("You go blind!"))
var/obj/item/organ/external/affecting = H.get_organ(BP_HEAD)
if(affecting.take_damage(7))
M:UpdateDamageIcon()
@@ -685,7 +685,7 @@ GLOBAL_LIST_EMPTY(blood_overlays_by_type)
/obj/item/proc/showoff(mob/user)
for (var/mob/M in view(user))
- M.show_message("[user] holds up [src]. Take a closer look.",1)
+ M.show_message(span_filter_notice("[user] holds up [src]. Take a closer look."),1)
/mob/living/carbon/verb/showoff()
set name = "Show Held Item"
@@ -722,13 +722,13 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
var/cannotzoom
if((M.stat && !zoom) || !(istype(M,/mob/living/carbon/human)))
- to_chat(M, "You are unable to focus through the [devicename].")
+ to_chat(M, span_filter_notice("You are unable to focus through the [devicename]."))
cannotzoom = 1
else if(!zoom && (global_hud.darkMask[1] in M.client.screen))
- to_chat(M, "Your visor gets in the way of looking through the [devicename].")
+ to_chat(M, span_filter_notice("Your visor gets in the way of looking through the [devicename]."))
cannotzoom = 1
else if(!zoom && M.get_active_hand() != src)
- to_chat(M, "You are too distracted to look through the [devicename], perhaps if it was in your active hand this might work better.")
+ to_chat(M, span_filter_notice("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.
@@ -759,7 +759,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
H.client.pixel_x = -viewoffset
H.client.pixel_y = 0
- H.visible_message("[M] peers through the [zoomdevicename ? "[zoomdevicename] of the [src.name]" : "[src.name]"].")
+ H.visible_message(span_filter_notice("[M] peers through the [zoomdevicename ? "[zoomdevicename] of the [src.name]" : "[src.name]"]."))
if(!ignore_visor_zoom_restriction)
H.looking_elsewhere = TRUE
H.handle_vision()
@@ -777,7 +777,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
H.handle_vision()
if(!cannotzoom)
- M.visible_message("[zoomdevicename ? "[M] looks up from the [src.name]" : "[M] lowers the [src.name]"].")
+ M.visible_message(span_filter_notice("[zoomdevicename ? "[M] looks up from the [src.name]" : "[M] lowers the [src.name]"]."))
return
diff --git a/code/game/objects/items/antag_spawners.dm b/code/game/objects/items/antag_spawners.dm
index 13c584aee5..974febc784 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/antag_spawner/technomancer_apprentice/attack_self(mob/user)
- to_chat(user, "Teleporter attempting to lock on to your apprentice.")
+ to_chat(user, span_notice("Teleporter attempting to lock on to your apprentice."))
request_player()
/obj/item/antag_spawner/technomancer_apprentice/request_player()
@@ -60,7 +60,7 @@
..()
if(!used)
icon_state = "oldshieldoff"
- visible_message("The teleporter failed to find the apprentice. Perhaps another attempt could be made later?")
+ visible_message(span_warning("The teleporter failed to find the apprentice. Perhaps another attempt could be made later?"))
/obj/item/antag_spawner/technomancer_apprentice/spawn_antag(client/C, turf/T)
sparks.start()
@@ -95,7 +95,7 @@
var/drone_type = null
/obj/item/antag_spawner/syndicate_drone/attack_self(mob/user)
- to_chat(user, "Teleporter attempting to lock on to an available unit.")
+ to_chat(user, span_notice("Teleporter attempting to lock on to an available unit."))
request_player()
/obj/item/antag_spawner/syndicate_drone/request_player()
@@ -106,14 +106,14 @@
..()
if(!used)
icon_state = "oldshieldoff"
- visible_message("The teleporter failed to find any available. Perhaps another attempt could be made later?")
+ visible_message(span_warning("The teleporter failed to find any available. Perhaps another attempt could be made later?"))
/obj/item/antag_spawner/syndicate_drone/spawn_antag(client/C, turf/T)
sparks.start()
var/mob/living/silicon/robot/R = new drone_type(T)
// Put this text here before ckey change so that their laws are shown below it, since borg login() shows it.
- to_chat(C, "You are a Mercenary Drone, activated to serve your team.")
+ to_chat(C, span_notice("You are a Mercenary Drone, activated to serve your team."))
to_chat(C, "Be sure to examine your currently loaded lawset closely. It would be wise \
to speak with your team, and learn what their plan is for today.")
@@ -132,4 +132,4 @@
drone_type = /mob/living/silicon/robot/syndicate/combat_medic
/obj/item/antag_spawner/syndicate_drone/mechanist
- drone_type = /mob/living/silicon/robot/syndicate/mechanist
\ No newline at end of file
+ drone_type = /mob/living/silicon/robot/syndicate/mechanist
diff --git a/code/game/objects/items/apc_frame.dm b/code/game/objects/items/apc_frame.dm
index c84e011966..03dbae938a 100644
--- a/code/game/objects/items/apc_frame.dm
+++ b/code/game/objects/items/apc_frame.dm
@@ -18,17 +18,17 @@
var/turf/loc = get_turf(user)
var/area/A = loc.loc
if (!istype(loc, /turf/simulated/floor))
- to_chat(user, "APC cannot be placed on this spot.")
+ to_chat(user, span_warning("APC cannot be placed on this spot."))
return
if (A.requires_power == 0 || istype(A, /area/space))
- to_chat(user, "APC cannot be placed in this area.")
+ to_chat(user, span_warning("APC cannot be placed in this area."))
return
if (A.get_apc())
- to_chat(user, "This area already has an APC.")
+ to_chat(user, span_warning("This area already has an APC."))
return //only one APC per area
for(var/obj/machinery/power/terminal/T in loc)
if (T.master)
- to_chat(user, "There is another network terminal here.")
+ to_chat(user, span_warning("There is another network terminal here."))
return
else
new /obj/item/stack/cable_coil(loc, 10)
diff --git a/code/game/objects/items/bells.dm b/code/game/objects/items/bells.dm
index bc54883aa8..a427123373 100644
--- a/code/game/objects/items/bells.dm
+++ b/code/game/objects/items/bells.dm
@@ -63,12 +63,12 @@
/obj/item/deskbell/proc/ring(mob/user)
if(user.a_intent == "harm")
playsound(src, 'sound/effects/deskbell_rude.ogg', 50, 1)
- to_chat(user,"You hammer [src] rudely!")
+ to_chat(user,span_notice("You hammer [src] rudely!"))
if (prob(2))
break_bell(user)
else
playsound(src, 'sound/effects/deskbell.ogg', 50, 1)
- to_chat(user,"You gracefully ring [src].")
+ to_chat(user,span_notice("You gracefully ring [src]."))
/obj/item/deskbell/proc/check_ability(mob/user)
if (ishuman(user))
@@ -77,11 +77,11 @@
if (H.hand)
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
- to_chat(H,"You try to move your [temp.name], but cannot!")
+ to_chat(H,span_notice("You try to move your [temp.name], but cannot!"))
return 0
return 1
else
- to_chat(user,"You are not able to ring [src].")
+ to_chat(user,span_notice("You are not able to ring [src]."))
return 0
/obj/item/deskbell/attackby(obj/item/W, mob/user, params)
@@ -90,7 +90,7 @@
if(W.has_tool_quality(TOOL_WRENCH) && isturf(loc))
if(do_after(5))
if(!src) return
- to_chat(user, "You dissasemble the desk bell")
+ to_chat(user, span_notice("You dissasemble the desk bell"))
new /obj/item/stack/material/steel(get_turf(src), 1)
qdel(src)
return
@@ -99,5 +99,5 @@
/obj/item/deskbell/proc/break_bell(mob/user)
- to_chat(user,"The ringing abruptly stops as [src]'s ringer gets jammed inside!")
+ to_chat(user,span_notice("The ringing abruptly stops as [src]'s ringer gets jammed inside!"))
broken = 1
diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm
index b4b842bea2..84b8d743f6 100644
--- a/code/game/objects/items/blueprints.dm
+++ b/code/game/objects/items/blueprints.dm
@@ -58,19 +58,19 @@
switch(href_list["action"])
if ("create_area")
if (!(get_area_type() & can_create_areas_in))
- to_chat(usr, "You can't make a new area here.")
+ to_chat(usr, span_danger("You can't make a new area here."))
interact()
return
create_area()
if ("edit_area")
if (!(get_area_type() & can_rename_areas_in))
- to_chat(usr, "You can't rename this area.")
+ to_chat(usr, span_danger("You can't rename this area."))
interact()
return
edit_area()
if ("expand_area")
if (!(get_area_type() & can_expand_areas_in))
- to_chat(usr, "You can't expand this area.")
+ to_chat(usr, span_danger("You can't expand this area."))
interact()
return
expand_area()
@@ -128,20 +128,20 @@
if(!istype(res,/list))
switch(res)
if(ROOM_ERR_SPACE)
- to_chat(usr, "The new area must be completely airtight!")
+ to_chat(usr, span_warning("The new area must be completely airtight!"))
return
if(ROOM_ERR_TOOLARGE)
- to_chat(usr, "The new area too large!")
+ to_chat(usr, span_warning("The new area too large!"))
return
else
- to_chat(usr, "Error! Please notify administration!")
+ to_chat(usr, span_warning("Error! Please notify administration!"))
return
var/list/turf/turfs = res
var/str = sanitizeSafe(tgui_input_text(usr, "New area name:","Blueprint Editing", "", MAX_NAME_LEN), MAX_NAME_LEN)
if(!str || !length(str)) //cancel
return
if(length(str) > 50)
- to_chat(usr, "Name too long.")
+ to_chat(usr, span_warning("Name too long."))
return
var/area/A = new
A.name = str
@@ -166,13 +166,13 @@
if(!istype(res,/list))
switch(res)
if(ROOM_ERR_SPACE)
- to_chat(usr, "The new area must be completely airtight!")
+ to_chat(usr, span_warning("The new area must be completely airtight!"))
return
if(ROOM_ERR_TOOLARGE)
- to_chat(usr, "The new area too large!")
+ to_chat(usr, span_warning("The new area too large!"))
return
else
- to_chat(usr, "Error! Please notify administration!")
+ to_chat(usr, span_warning("Error! Please notify administration!"))
return
var/list/turf/turfs = res
@@ -180,11 +180,11 @@
for(var/turf/T in A.contents)
turfs -= T // Don't add turfs already in A to A
if(turfs.len == 0)
- to_chat(usr, "\The [A] already covers the entire room.")
+ to_chat(usr, span_warning("\The [A] already covers the entire room."))
return
move_turfs_to_area(turfs, A)
- to_chat(usr, "Expanded \the [A] by [turfs.len] turfs")
+ to_chat(usr, span_notice("Expanded \the [A] by [turfs.len] turfs"))
spawn(5)
interact()
return
@@ -200,11 +200,11 @@
if(!str || !length(str) || str==prevname) //cancel
return
if(length(str) > 50)
- to_chat(usr, "Text too long.")
+ to_chat(usr, span_warning("Text too long."))
return
set_area_machinery_title(A,str,prevname)
A.name = str
- to_chat(usr, "You set the area '[prevname]' title to '[str]'.")
+ to_chat(usr, span_notice("You set the area '[prevname]' title to '[str]'."))
interact()
return
@@ -280,7 +280,7 @@
// Remove any existing
seeAreaColors_remove()
- to_chat(usr, "\The [src] shows nearby areas in different colors.")
+ to_chat(usr, span_notice("\The [src] shows nearby areas in different colors."))
var/i = 0
for(var/area/A in range(usr))
if(get_area_type(A) == AREA_SPACE)
@@ -302,13 +302,13 @@
if(!istype(res, /list))
switch(res)
if(ROOM_ERR_SPACE)
- to_chat(usr, "The new area must be completely airtight!")
+ to_chat(usr, span_warning("The new area must be completely airtight!"))
return
if(ROOM_ERR_TOOLARGE)
- to_chat(usr, "The new area too large!")
+ to_chat(usr, span_warning("The new area too large!"))
return
else
- to_chat(usr, "Error! Please notify administration!")
+ to_chat(usr, span_danger("Error! Please notify administration!"))
return
// Okay we got a room, lets color it
seeAreaColors_remove()
@@ -316,7 +316,7 @@
for(var/turf/T in res)
usr << image(green, T, "blueprints", TURF_LAYER)
areaColor_turfs += T
- to_chat(usr, "The space covered by the new area is highlighted in green.")
+ to_chat(usr, span_notice("The space covered by the new area is highlighted in green."))
/obj/item/blueprints/verb/seeAreaColors_remove()
set src in usr
diff --git a/code/game/objects/items/blueprints_vr.dm b/code/game/objects/items/blueprints_vr.dm
index 8b6b341b02..6f818f5897 100644
--- a/code/game/objects/items/blueprints_vr.dm
+++ b/code/game/objects/items/blueprints_vr.dm
@@ -503,11 +503,11 @@
if(!str || !length(str)) //cancel
return
if(length(str) > 50)
- to_chat(creator, "Name too long.")
+ to_chat(creator, span_warning("Name too long."))
return
for(var/area/A in world) //Check to make sure we're not making a duplicate name. Sanity.
if(A.name == str)
- to_chat(creator, "An area in the world alreay has this name.")
+ to_chat(creator, span_warning("An area in the world alreay has this name."))
return
annoy_admins = 1 //They just made a new area entirely.
newA = new area_choice
@@ -552,16 +552,16 @@
if(!istype(res,/list))
switch(res)
if(ROOM_ERR_SPACE)
- to_chat(creator, "The new area must be completely airtight!")
+ to_chat(creator, span_warning("The new area must be completely airtight!"))
return
if(ROOM_ERR_TOOLARGE)
- to_chat(creator, "The new area too large!")
+ to_chat(creator, span_warning("The new area too large!"))
return
if(ROOM_ERR_FORBIDDEN)
- to_chat(creator, "There is an area forbidden from being edited here!")
+ to_chat(creator, span_warning("There is an area forbidden from being edited here!"))
return
else
- to_chat(creator, "Error! Please notify administration!")
+ to_chat(creator, span_warning("Error! Please notify administration!"))
return
var/list/turf/turfs = res
@@ -594,7 +594,7 @@
//They can select an area they want to turn their current area into.
var/area_choice = tgui_input_list(creator, "What area do you want to turn the area YOU ARE CURRENTLY STANDING IN to? Or do you want to make a new area?", "Area Expansion", areas)
if(isnull(area_choice)) //They pressed cancel.
- to_chat(creator, "No changes made.")
+ to_chat(creator, span_warning("No changes made."))
return
area_choice = areas[area_choice]
@@ -602,23 +602,23 @@
if(!isarea(area_choice)) //They chose "New Area"
if(!can_make_new_area && !can_override)
- to_chat(creator, "Making a new area here would be meaningless. Renaming it would be a better option.")
+ to_chat(creator, span_warning("Making a new area here would be meaningless. Renaming it would be a better option."))
return
str = tgui_input_text(creator, "New area name", "Blueprint Editing", max_length = MAX_NAME_LEN)
str = sanitize(str,MAX_NAME_LEN)
if(!str || !length(str)) //cancel
return
if(length(str) > 50)
- to_chat(creator, "Name too long.")
+ to_chat(creator, span_warning("Name too long."))
return
for(var/area/A in world) //Check to make sure we're not making a duplicate name. Sanity.
if(A.name == str)
- to_chat(creator, "An area in the world alreay has this name.")
+ to_chat(creator, span_warning("An area in the world alreay has this name."))
return
var/confirm = tgui_alert(creator, "Are you sure you want to change [oldA.name] into a new area named [str]?", "READ CAREFULLY", list("No", "Yes"))
if(confirm != "Yes")
- to_chat(creator, "No changes made.")
+ to_chat(creator, span_warning("No changes made."))
return
newA = new area_choice
@@ -627,7 +627,7 @@
else
var/confirm = tgui_alert(creator, "Are you sure you want to change [oldA.name] into [area_choice]?", "READ CAREFULLY", list("No", "Yes"))
if(confirm != "Yes")
- to_chat(creator, "No changes made.")
+ to_chat(creator, span_warning("No changes made."))
return
newA = area_choice //They selected to turn the area they're standing on into the selected area.
@@ -718,13 +718,13 @@
if(!istype(res, /list))
switch(res)
if(ROOM_ERR_SPACE)
- to_chat(usr, "The new area must be completely airtight!")
+ to_chat(usr, span_warning("The new area must be completely airtight!"))
return
if(ROOM_ERR_TOOLARGE)
- to_chat(usr, "The new area too large!")
+ to_chat(usr, span_warning("The new area too large!"))
return
else
- to_chat(usr, "Error! Please notify administration!")
+ to_chat(usr, span_danger("Error! Please notify administration!"))
return
// Okay we got a room, lets color it
seeAreaColors_remove()
@@ -732,7 +732,7 @@
for(var/turf/T in res)
usr << image(green, T, "blueprints", TURF_LAYER)
areaColor_turfs += T
- to_chat(usr, "The space covered by the new area is highlighted in green.")
+ to_chat(usr, span_notice("The space covered by the new area is highlighted in green."))
/obj/item/areaeditor/verb/seeAreaColors()
set src in usr
@@ -742,7 +742,7 @@
// Remove any existing
seeAreaColors_remove()
- to_chat(usr, "\The [src] shows nearby areas in different colors.")
+ to_chat(usr, span_notice("\The [src] shows nearby areas in different colors."))
var/i = 0
for(var/area/A in range(usr))
if(get_area_type(A) == AREA_SPACE)
@@ -787,11 +787,11 @@
set src in usr
if(created_area)
- to_chat(usr, "This paper has already been used to create an area.")
+ to_chat(usr, span_warning("This paper has already been used to create an area."))
return
if(usr.stat || world.time < area_cooldown)
- to_chat(usr, "You recently used this paper to try to create an area. Wait one minute before using it again.")
+ to_chat(usr, span_warning("You recently used this paper to try to create an area. Wait one minute before using it again."))
return
area_cooldown = world.time + 600 //Anti spam.
@@ -867,16 +867,16 @@
if(!istype(res,/list))
switch(res)
if(1)
- to_chat(creator, "The new area too large! You can only have an area that is up to 70 tiles.")
+ to_chat(creator, span_warning("The new area too large! You can only have an area that is up to 70 tiles."))
return
if(2)
- to_chat(creator, "The new area must be completely airtight and not be part of a shuttle!")
+ to_chat(creator, span_warning("The new area must be completely airtight and not be part of a shuttle!"))
return
if(3)
- to_chat(creator, "There is an area not permitted to be built in somewhere in the room!")
+ to_chat(creator, span_warning("There is an area not permitted to be built in somewhere in the room!"))
return
else
- to_chat(creator, "Error! Please notify administration!")
+ to_chat(creator, span_warning("Error! Please notify administration!"))
return
var/list/turf/turfs = res
@@ -896,17 +896,17 @@
//They can select an area they want to turn their current area into.
str = sanitizeSafe(tgui_input_text(usr, "What would you like to name the area?", "Area Name", null, MAX_NAME_LEN), MAX_NAME_LEN)
if(isnull(str)) //They pressed cancel.
- to_chat(creator, "No new area made. Cancelling.")
+ to_chat(creator, span_warning("No new area made. Cancelling."))
return
if(!str || !length(str)) //sanity
- to_chat(creator, "No new area made. Cancelling.")
+ to_chat(creator, span_warning("No new area made. Cancelling."))
return
if(length(str) > MAX_NAME_LEN)
- to_chat(creator, "Name too long.")
+ to_chat(creator, span_warning("Name too long."))
return
for(var/area/A in world) //Check to make sure we're not making a duplicate name. Sanity.
if(A.name == str)
- to_chat(creator, "An area in the world alreay has this name.")
+ to_chat(creator, span_warning("An area in the world alreay has this name."))
return
newA = new /area
newA.setup(str)
diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm
index 6b7432b6e7..37ce647226 100644
--- a/code/game/objects/items/bodybag.dm
+++ b/code/game/objects/items/bodybag.dm
@@ -216,9 +216,9 @@
/obj/structure/closet/body_bag/cryobag/examine(mob/user)
. = ..()
if(Adjacent(user)) //The bag's rather thick and opaque from a distance.
- . += "You peer into \the [src]."
+ . += span_info("You peer into \the [src].")
if(syringe)
- . += "It has a syringe added to it."
+ . += span_info("It has a syringe added to it.")
for(var/mob/living/L in contents)
. += L.examine(user)
@@ -233,10 +233,10 @@
else if(istype(W,/obj/item/reagent_containers/syringe))
if(syringe)
- to_chat(user,"\The [src] already has an injector! Remove it first.")
+ to_chat(user,span_warning("\The [src] already has an injector! Remove it first."))
else
var/obj/item/reagent_containers/syringe/syringe = W
- to_chat(user,"You insert \the [syringe] into \the [src], and it locks into place.")
+ to_chat(user,span_info("You insert \the [syringe] into \the [src], and it locks into place."))
user.unEquip(syringe)
src.syringe = syringe
syringe.loc = null
@@ -247,10 +247,10 @@
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
if(syringe)
if(used)
- to_chat(user,"The injector cannot be removed now that the stasis bag has been used!")
+ to_chat(user,span_warning("The injector cannot be removed now that the stasis bag has been used!"))
else
syringe.forceMove(src.loc)
- to_chat(user,"You pry \the [syringe] out of \the [src].")
+ to_chat(user,span_info("You pry \the [syringe] out of \the [src]."))
syringe = null
else
diff --git a/code/game/objects/items/contraband.dm b/code/game/objects/items/contraband.dm
index c4518f9311..05cd09f6d5 100644
--- a/code/game/objects/items/contraband.dm
+++ b/code/game/objects/items/contraband.dm
@@ -84,7 +84,7 @@
if(!istype(W, /obj/item/glass_extra/straw) && !istype(W, /obj/item/reagent_containers/rollingpaper))
return ..()
- user.visible_message("[user] snorts [src] with [W]!")
+ user.visible_message(span_warning("[user] snorts [src] with [W]!"))
playsound(loc, 'sound/effects/snort.ogg', 50, 1)
if(reagents)
@@ -93,4 +93,4 @@
if(!reagents.total_volume) /// Did we use all of it?
qdel(src)
-////// End powder. /////////
\ No newline at end of file
+////// End powder. /////////
diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm
index d1f9d81489..1d579f13ef 100644
--- a/code/game/objects/items/crayons.dm
+++ b/code/game/objects/items/crayons.dm
@@ -107,7 +107,7 @@
if(uses)
uses--
if(!uses)
- to_chat(user, "You used up your crayon!")
+ to_chat(user, span_warning("You used up your crayon!"))
qdel(src)
return
@@ -119,7 +119,7 @@
if(uses)
uses -= 5
if(uses <= 0)
- to_chat(user, "You ate your crayon!")
+ to_chat(user, span_warning("You ate your crayon!"))
qdel(src)
else
..()
@@ -205,7 +205,7 @@
if(uses)
uses -= 5
if(uses <= 0)
- to_chat(user, "You ate the marker!")
+ to_chat(user, span_warning("You ate the marker!"))
qdel(src)
else
..()
diff --git a/code/game/objects/items/devices/advnifrepair.dm b/code/game/objects/items/devices/advnifrepair.dm
index 80fe193025..df6e56d218 100644
--- a/code/game/objects/items/devices/advnifrepair.dm
+++ b/code/game/objects/items/devices/advnifrepair.dm
@@ -25,11 +25,11 @@
if(istype(W,/obj/item/stack/nanopaste))
var/obj/item/stack/nanopaste/np = W
if((supply.get_free_space() >= efficiency) && np.use(1))
- to_chat(user, "You convert some nanopaste into programmed nanites inside \the [src].")
+ to_chat(user, span_notice("You convert some nanopaste into programmed nanites inside \the [src]."))
supply.add_reagent(id = "nifrepairnanites", amount = efficiency)
update_icon()
else if(supply.get_free_space() < efficiency)
- to_chat(user, "\The [src] is too full. Empty it into a container first.")
+ to_chat(user, span_warning("\The [src] is too full. Empty it into a container first."))
return
/obj/item/nifrepairer/update_icon()
@@ -43,15 +43,15 @@
return 0
if(!supply || !supply.total_volume)
- to_chat(user, "[src] is empty. Feed it nanopaste.")
+ to_chat(user, span_warning("[src] is empty. Feed it nanopaste."))
return 1
if(!target.reagents.get_free_space())
- to_chat(user, "[target] is already full.")
+ to_chat(user, span_warning("[target] is already full."))
return 1
var/trans = supply.trans_to(target, 15)
- to_chat(user, "You transfer [trans] units of the programmed nanites to [target].")
+ to_chat(user, span_notice("You transfer [trans] units of the programmed nanites to [target]."))
update_icon()
return 1
@@ -59,6 +59,6 @@
. = ..()
if(Adjacent(user))
if(supply.total_volume)
- . += "\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing."
+ . += span_notice("\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing.")
else
- . += "\The [src] is empty and ready to accept nanopaste."
+ . += span_notice("\The [src] is empty and ready to accept nanopaste.")
diff --git a/code/game/objects/items/devices/ai_detector.dm b/code/game/objects/items/devices/ai_detector.dm
index c34065c1d1..0f6ea01343 100644
--- a/code/game/objects/items/devices/ai_detector.dm
+++ b/code/game/objects/items/devices/ai_detector.dm
@@ -94,13 +94,13 @@
if(new_state != old_state)
switch(new_state)
if(PROXIMITY_OFF_CAMERANET)
- to_chat(carrier, "[icon2html(src, carrier.client)] Now outside of camera network.")
+ to_chat(carrier, span_notice("[icon2html(src, carrier.client)] Now outside of camera network."))
carrier << 'sound/machines/defib_failed.ogg'
if(PROXIMITY_NONE)
- to_chat(carrier, "[icon2html(src, carrier.client)] Now within camera network, AI and cameras unfocused.")
+ to_chat(carrier, span_notice("[icon2html(src, carrier.client)] Now within camera network, AI and cameras unfocused."))
carrier << 'sound/machines/defib_safetyOff.ogg'
if(PROXIMITY_NEAR)
- to_chat(carrier, "[icon2html(src, carrier.client)] Warning: AI focus at nearby location.")
+ to_chat(carrier, span_warning("[icon2html(src, carrier.client)] Warning: AI focus at nearby location."))
carrier << 'sound/machines/defib_SafetyOn.ogg'
if(PROXIMITY_ON_SCREEN)
to_chat(carrier, "[icon2html(src, carrier.client)] Alert: AI or camera focused at current location!")
diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm
index db05b23c19..bc7257e03f 100644
--- a/code/game/objects/items/devices/aicard.dm
+++ b/code/game/objects/items/devices/aicard.dm
@@ -74,12 +74,12 @@
INVOKE_ASYNC(src, PROC_REF(wipe_ai))
if("radio")
carded_ai.aiRadio.disabledAi = !carded_ai.aiRadio.disabledAi
- to_chat(carded_ai, "Your Subspace Transceiver has been [carded_ai.aiRadio.disabledAi ? "disabled" : "enabled"]!")
- to_chat(user, "You [carded_ai.aiRadio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver.")
+ to_chat(carded_ai, span_warning("Your Subspace Transceiver has been [carded_ai.aiRadio.disabledAi ? "disabled" : "enabled"]!"))
+ to_chat(user, span_notice("You [carded_ai.aiRadio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver."))
if("wireless")
carded_ai.control_disabled = !carded_ai.control_disabled
- to_chat(carded_ai, "Your wireless interface has been [carded_ai.control_disabled ? "disabled" : "enabled"]!")
- to_chat(user, "You [carded_ai.control_disabled ? "disable" : "enable"] the AI's wireless interface.")
+ to_chat(carded_ai, span_warning("Your wireless interface has been [carded_ai.control_disabled ? "disabled" : "enabled"]!"))
+ to_chat(user, span_notice("You [carded_ai.control_disabled ? "disable" : "enable"] the AI's wireless interface."))
if(carded_ai.control_disabled && carded_ai.deployed_shell)
carded_ai.disconnect_shell("Disconnecting from remote shell due to [src] wireless access interface being disabled.")
update_icon()
@@ -153,13 +153,13 @@
/obj/item/aicard/see_emote(mob/living/M, text)
if(carded_ai && carded_ai.client)
- var/rendered = "[text]"
+ var/rendered = span_message("[text]")
carded_ai.show_message(rendered, 2)
..()
/obj/item/aicard/show_message(msg, type, alt, alt_type)
if(carded_ai && carded_ai.client)
- var/rendered = "[msg]"
+ var/rendered = span_message("[msg]")
carded_ai.show_message(rendered, type)
..()
diff --git a/code/game/objects/items/devices/body_snatcher_vr.dm b/code/game/objects/items/devices/body_snatcher_vr.dm
index 8228572ca1..04293a21a7 100644
--- a/code/game/objects/items/devices/body_snatcher_vr.dm
+++ b/code/game/objects/items/devices/body_snatcher_vr.dm
@@ -18,15 +18,15 @@
usr.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(ishuman(M) || issilicon(M)) //Allows body swapping with humans, synths, and pAI's/borgs since they all have a mind.
if(usr == M)
- to_chat(user," A message pops up on the LED display, informing you that you that the mind transfer to yourself was successful... Wait, did that even do anything?")
+ to_chat(user,span_warning(" A message pops up on the LED display, informing you that you that the mind transfer to yourself was successful... Wait, did that even do anything?"))
return
if(!M.mind) //Do they have a mind?
- to_chat(usr,"A warning pops up on the device, informing you that [M] appears braindead.")
+ to_chat(usr,span_warning("A warning pops up on the device, informing you that [M] appears braindead."))
return
if(!M.allow_mind_transfer)
- to_chat(usr,"The target's mind is too complex to be affected!")
+ to_chat(usr,span_danger("The target's mind is too complex to be affected!"))
return
if(ishuman(M))
@@ -36,17 +36,17 @@
return
if(M.stat == DEAD) //Are they dead?
- to_chat(usr,"A warning pops up on the device, informing you that [M] is dead, and, as such, the mind transfer can not be done.")
+ to_chat(usr,span_warning("A warning pops up on the device, informing you that [M] is dead, and, as such, the mind transfer can not be done."))
return
var/choice = tgui_alert(usr,"This will swap your mind with the target's mind. This will result in them controlling your body, and you controlling their body. Continue?","Confirmation",list("Continue","Cancel"))
if(choice == "Continue" && usr.get_active_hand() == src && usr.Adjacent(M))
- usr.visible_message("[usr] pushes the device up their forehead and [M]'s head, the device beginning to let out a series of light beeps!","You begin swap minds with [M]!")
+ usr.visible_message(span_warning("[usr] pushes the device up their forehead and [M]'s head, the device beginning to let out a series of light beeps!"),span_notice("You begin swap minds with [M]!"))
if(do_after(usr,35 SECONDS,M))
if(usr.mind && M.mind && M.stat != DEAD && usr.stat != DEAD)
log_and_message_admins("[usr.ckey] used a Bodysnatcher to swap bodies with [M.ckey]")
- to_chat(usr,"Your minds have been swapped! Have a nice day.")
+ to_chat(usr,span_notice("Your minds have been swapped! Have a nice day."))
var/datum/mind/user_mind = user.mind
var/datum/mind/prey_mind = M.mind
var/target_ooc_notes = M.ooc_notes
@@ -80,8 +80,8 @@
M.slurring = 50
else
- to_chat(user," A warning pops up on the LED display on the side of the device, informing you that the target is not able to have their mind swapped with!")
+ to_chat(user,span_warning(" A warning pops up on the LED display on the side of the device, informing you that the target is not able to have their mind swapped with!"))
/obj/item/bodysnatcher/attack_self(mob/living/user)
- to_chat(user," A message pops up on the LED display, informing you that you that the mind transfer to yourself was successful... Wait, did that even do anything?")
+ to_chat(user,span_warning(" A message pops up on the LED display, informing you that you that the mind transfer to yourself was successful... Wait, did that even do anything?"))
return
diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm
index d6c53d5c1b..5d3ec6f594 100644
--- a/code/game/objects/items/devices/chameleonproj.dm
+++ b/code/game/objects/items/devices/chameleonproj.dm
@@ -33,7 +33,7 @@
if(!active_dummy)
if(istype(target,/obj/item) && !istype(target, /obj/item/disk/nuclear))
playsound(src, 'sound/weapons/flash.ogg', 100, 1, -6)
- to_chat(user, "Scanned [target].")
+ to_chat(user, span_notice("Scanned [target]."))
saved_item = target.type
saved_icon = target.icon
saved_icon_state = target.icon_state
@@ -46,7 +46,7 @@
playsound(src, 'sound/effects/pop.ogg', 100, 1, -6)
qdel(active_dummy)
active_dummy = null
- to_chat(usr, "You deactivate the [src].")
+ to_chat(usr, span_notice("You deactivate the [src]."))
var/obj/effect/overlay/T = new /obj/effect/overlay(get_turf(src))
T.icon = 'icons/effects/effects.dmi'
flick("emppulse",T)
@@ -58,7 +58,7 @@
var/obj/effect/dummy/chameleon/C = new /obj/effect/dummy/chameleon(usr.loc)
C.activate(O, usr, saved_icon, saved_icon_state, saved_overlays, src)
qdel(O)
- to_chat(usr, "You activate the [src].")
+ to_chat(usr, span_notice("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)
@@ -105,22 +105,22 @@
/obj/effect/dummy/chameleon/attackby()
for(var/mob/M in src)
- to_chat(M, "Your chameleon-projector deactivates.")
+ to_chat(M, span_warning("Your chameleon-projector deactivates."))
master.disrupt()
/obj/effect/dummy/chameleon/attack_hand()
for(var/mob/M in src)
- to_chat(M, "Your chameleon-projector deactivates.")
+ to_chat(M, span_warning("Your chameleon-projector deactivates."))
master.disrupt()
/obj/effect/dummy/chameleon/ex_act()
for(var/mob/M in src)
- to_chat(M, "Your chameleon-projector deactivates.")
+ to_chat(M, span_warning("Your chameleon-projector deactivates."))
master.disrupt()
/obj/effect/dummy/chameleon/bullet_act()
for(var/mob/M in src)
- to_chat(M, "Your chameleon-projector deactivates.")
+ to_chat(M, span_warning("Your chameleon-projector deactivates."))
..()
master.disrupt()
diff --git a/code/game/objects/items/devices/communicator/UI_tgui.dm b/code/game/objects/items/devices/communicator/UI_tgui.dm
index 7d8c3e339f..33cf9408c0 100644
--- a/code/game/objects/items/devices/communicator/UI_tgui.dm
+++ b/code/game/objects/items/devices/communicator/UI_tgui.dm
@@ -360,7 +360,7 @@
if("dial")
if(!get_connection_to_tcomms())
- to_chat(usr, "Error: Cannot connect to Exonet node.")
+ to_chat(usr, span_danger("Error: Cannot connect to Exonet node."))
return FALSE
var/their_address = params["dial"]
exonet.send_message(their_address, "voice")
@@ -373,7 +373,7 @@
if("message")
if(!get_connection_to_tcomms())
- to_chat(usr, "Error: Cannot connect to Exonet node.")
+ to_chat(usr, span_danger("Error: Cannot connect to Exonet node."))
return FALSE
var/their_address = params["message"]
var/text = sanitizeSafe(tgui_input_text(usr,"Enter your message.","Text Message"))
@@ -382,7 +382,7 @@
im_list += list(list("address" = exonet.address, "to_address" = their_address, "im" = text))
log_pda("(COMM: [src]) sent \"[text]\" to [exonet.get_atom_from_address(their_address)]", usr)
var/obj/item/communicator/comm = exonet.get_atom_from_address(their_address)
- to_chat(usr, "[icon2html(src, usr.client)] Sent message to [istype(comm, /obj/item/communicator) ? comm.owner : comm.name], \"[text]\" (Reply)")
+ to_chat(usr, span_notice("[icon2html(src, usr.client)] Sent message to [istype(comm, /obj/item/communicator) ? comm.owner : comm.name], \"[text]\" (Reply)"))
for(var/mob/M in player_list)
if(M.stat == DEAD && M.client?.prefs?.read_preference(/datum/preference/toggle/ghost_ears))
if(istype(M, /mob/new_player) || M.forbid_seeing_deadchat)
diff --git a/code/game/objects/items/devices/communicator/communicator.dm b/code/game/objects/items/devices/communicator/communicator.dm
index 84b63746b0..1894443e67 100644
--- a/code/game/objects/items/devices/communicator/communicator.dm
+++ b/code/game/objects/items/devices/communicator/communicator.dm
@@ -144,19 +144,19 @@ var/global/list/obj/item/communicator/all_communicators = list()
. = ..()
for(var/mob/living/voice/voice in contents)
- . += "On the screen, you can see a image feed of [voice]."
+ . += span_notice("On the screen, you can see a image feed of [voice].")
if(voice && voice.key)
switch(voice.stat)
if(CONSCIOUS)
if(!voice.client)
- . += "[voice] appears to be asleep." //afk
+ . += span_warning("[voice] appears to be asleep.") //afk
if(UNCONSCIOUS)
- . += "[voice] doesn't appear to be conscious."
+ . += span_warning("[voice] doesn't appear to be conscious.")
if(DEAD)
- . += "[voice] appears to have died..." //Hopefully this never has to be used.
+ . += span_deadsay("[voice] appears to have died...") //Hopefully this never has to be used.
else
- . += "The device doesn't appear to be transmitting any data."
+ . += span_notice("The device doesn't appear to be transmitting any data.")
// Proc: emp_act()
// Parameters: None
@@ -221,12 +221,12 @@ var/global/list/obj/item/communicator/all_communicators = list()
if(istype(C, /obj/item/card/id))
var/obj/item/card/id/idcard = C
if(!idcard.registered_name || !idcard.assignment)
- to_chat(user, "\The [src] rejects the ID.")
+ to_chat(user, span_notice("\The [src] rejects the ID."))
else if(!owner)
- to_chat(user, "\The [src] rejects the ID.")
+ to_chat(user, span_notice("\The [src] rejects the ID."))
else if(owner == idcard.registered_name)
occupation = idcard.assignment
- to_chat(user, "Occupation updated.")
+ to_chat(user, span_notice("Occupation updated."))
return
@@ -302,7 +302,7 @@ var/global/list/obj/item/communicator/all_communicators = list()
/obj/item/communicator/Destroy()
for(var/mob/living/voice/voice in contents)
voice_mobs.Remove(voice)
- to_chat(voice, "[icon2html(src, voice.client)] Connection timed out with remote host.")
+ to_chat(voice, span_danger("[icon2html(src, voice.client)] Connection timed out with remote host."))
qdel(voice)
close_connection(reason = "Connection timed out")
diff --git a/code/game/objects/items/devices/communicator/messaging.dm b/code/game/objects/items/devices/communicator/messaging.dm
index b3528dc82c..b05560dc1f 100644
--- a/code/game/objects/items/devices/communicator/messaging.dm
+++ b/code/game/objects/items/devices/communicator/messaging.dm
@@ -44,7 +44,7 @@
random = random / 10
exonet.send_message(origin_address, "64 bytes received from [exonet.address] ecmp_seq=1 ttl=51 time=[random] ms")
if(message == "text")
- to_chat(src, "[icon2html(origin_atom,src.client)] Received text message from [origin_atom]: \"[text]\"")
+ to_chat(src, span_notice("[icon2html(origin_atom,src.client)] Received text message from [origin_atom]: \"[text]\""))
src << 'sound/machines/defib_safetyOff.ogg'
exonet_messages.Add("From [origin_atom]:
[text]")
return
@@ -95,7 +95,7 @@
L = loc
if(L)
- to_chat(L, "[icon2html(src,L.client)] Message from [who]: \"[text]\" (Reply)")
+ to_chat(L, span_notice("[icon2html(src,L.client)] Message from [who]: \"[text]\" (Reply)"))
// This is the only Topic the communicators really uses
/obj/item/communicator/Topic(href, href_list)
@@ -108,7 +108,7 @@
exonet.send_message(comm.exonet.address, "text", message)
im_list += list(list("address" = exonet.address, "to_address" = comm.exonet.address, "im" = message))
log_pda("(COMM: [src]) sent \"[message]\" to [exonet.get_atom_from_address(comm.exonet.address)]", usr)
- to_chat(usr, "[icon2html(src,usr.client)] Sent message to [istype(comm, /obj/item/communicator) ? comm.owner : comm.name], \"[message]\" (Reply)")
+ to_chat(usr, span_notice("[icon2html(src,usr.client)] Sent message to [istype(comm, /obj/item/communicator) ? comm.owner : comm.name], \"[message]\" (Reply)"))
// Verb: text_communicator()
// Parameters: None
@@ -119,7 +119,7 @@
set desc = "If there is a communicator available, send a text message to it."
if(ticker.current_state < GAME_STATE_PLAYING)
- to_chat(src, "The game hasn't started yet!")
+ to_chat(src, span_danger("The game hasn't started yet!"))
return
if (!src.stat)
@@ -130,7 +130,7 @@
for(var/mob/living/L in mob_list) //Simple check so you don't have dead people calling.
if(src.client.prefs.real_name == L.real_name)
- to_chat(src, "Your identity is already present in the game world. Please load in a different character first.")
+ to_chat(src, span_danger("Your identity is already present in the game world. Please load in a different character first."))
return
var/obj/machinery/exonet_node/E = get_exonet_node()
@@ -146,7 +146,7 @@
choices.Add(comm)
if(!choices.len)
- to_chat(src, "There are no available communicators, sorry.")
+ to_chat(src, span_danger("There are no available communicators, sorry."))
return
var/choice = tgui_input_list(src,"Send a text message to whom?", "Recipient Choice", choices)
@@ -157,7 +157,7 @@
if(text_message && O.exonet)
O.exonet.send_message(chosen_communicator.exonet.address, "text", text_message)
- to_chat(src, "You have sent '[text_message]' to [chosen_communicator].")
+ to_chat(src, span_notice("You have sent '[text_message]' to [chosen_communicator]."))
exonet_messages.Add("To [chosen_communicator]:
[text_message]")
log_pda("(DCOMM: [src]) sent \"[text_message]\" to [chosen_communicator]", src)
for(var/mob/M in player_list)
diff --git a/code/game/objects/items/devices/communicator/phone.dm b/code/game/objects/items/devices/communicator/phone.dm
index 07bd4d0c49..c16bae02b7 100644
--- a/code/game/objects/items/devices/communicator/phone.dm
+++ b/code/game/objects/items/devices/communicator/phone.dm
@@ -39,15 +39,15 @@
comm.voice_requests.Remove(src)
if(user)
- comm.visible_message("[icon2html(src,viewers(src))] Connecting to [src].")
- to_chat(user, "[icon2html(src,user.client)] Attempting to call [comm].")
+ comm.visible_message(span_notice("[icon2html(src,viewers(src))] Connecting to [src]."))
+ to_chat(user, span_notice("[icon2html(src,user.client)] Attempting to call [comm]."))
sleep(10)
- to_chat(user, "[icon2html(src,user.client)] Dialing internally from [station_name()], [system_name()].")
+ to_chat(user, span_notice("[icon2html(src,user.client)] Dialing internally from [station_name()], [system_name()]."))
sleep(20) //If they don't have an exonet something is very wrong and we want a runtime.
- to_chat(user, "[icon2html(src,user.client)] Connection re-routed to [comm] at [comm.exonet.address].")
+ to_chat(user, span_notice("[icon2html(src,user.client)] Connection re-routed to [comm] at [comm.exonet.address]."))
sleep(40)
- to_chat(user, "[icon2html(src,user.client)] Connection to [comm] at [comm.exonet.address] established.")
- comm.visible_message("[icon2html(src,viewers(src))] Connection to [src] at [exonet.address] established.")
+ to_chat(user, span_notice("[icon2html(src,user.client)] Connection to [comm] at [comm.exonet.address] established."))
+ comm.visible_message(span_notice("[icon2html(src,viewers(src))] Connection to [src] at [exonet.address] established."))
sleep(20)
src.add_communicating(comm)
@@ -86,28 +86,28 @@
//Now for some connection fluff.
if(user)
- to_chat(user, "[icon2html(src,user.client)] Connecting to [candidate].")
- to_chat(new_voice, "[icon2html(src,new_voice.client)] Attempting to call [src].")
+ to_chat(user, span_notice("[icon2html(src,user.client)] Connecting to [candidate]."))
+ to_chat(new_voice, span_notice("[icon2html(src,new_voice.client)] Attempting to call [src]."))
sleep(10)
- to_chat(new_voice, "[icon2html(src,new_voice.client)] Dialing to [station_name()], Kara Subsystem, [system_name()].")
+ to_chat(new_voice, span_notice("[icon2html(src,new_voice.client)] Dialing to [station_name()], Kara Subsystem, [system_name()]."))
sleep(20)
- to_chat(new_voice, "[icon2html(src,new_voice.client)] Connecting to [station_name()] telecommunications array.")
+ to_chat(new_voice, span_notice("[icon2html(src,new_voice.client)] Connecting to [station_name()] telecommunications array."))
sleep(40)
- to_chat(new_voice, "[icon2html(src,new_voice.client)] Connection to [station_name()] telecommunications array established. Redirecting signal to [src].")
+ to_chat(new_voice, span_notice("[icon2html(src,new_voice.client)] Connection to [station_name()] telecommunications array established. Redirecting signal to [src]."))
sleep(20)
//We're connected, no need to hide everything.
new_voice.client.screen.Remove(blackness)
qdel(blackness)
- to_chat(new_voice, "[icon2html(src,new_voice.client)] Connection to [src] established.")
+ to_chat(new_voice, span_notice("[icon2html(src,new_voice.client)] Connection to [src] established."))
to_chat(new_voice, "To talk to the person on the other end of the call, just talk normally.")
to_chat(new_voice, "If you want to end the call, use the 'Hang Up' verb. The other person can also hang up at any time.")
to_chat(new_voice, "Remember, your character does not know anything you've learned from observing!")
if(new_voice.mind)
new_voice.mind.assigned_role = JOB_DISEMBODIED_VOICE
if(user)
- to_chat(user, "[icon2html(src,new_voice.client)] Your communicator is now connected to [candidate]'s communicator.")
+ to_chat(user, span_notice("[icon2html(src,new_voice.client)] Your communicator is now connected to [candidate]'s communicator."))
// Proc: close_connection()
// Parameters: 3 (user - the user who initiated the disconnect, target - the mob or device being disconnected, reason - string shown when disconnected)
@@ -120,8 +120,8 @@
for(var/mob/living/voice/voice in voice_mobs) //Handle ghost-callers
if(target && voice != target) //If no target is inputted, it deletes all of them.
continue
- to_chat(voice, "[icon2html(src,voice.client)] [reason].")
- visible_message("[icon2html(src,viewers(src))] [reason].")
+ to_chat(voice, span_danger("[icon2html(src,voice.client)] [reason]."))
+ visible_message(span_danger("[icon2html(src,viewers(src))] [reason]."))
voice_mobs.Remove(voice)
qdel(voice)
update_icon()
@@ -131,8 +131,8 @@
continue
src.del_communicating(comm)
comm.del_communicating(src)
- comm.visible_message("[icon2html(src,viewers(src))] [reason].")
- visible_message("[icon2html(src,viewers(src))] [reason].")
+ comm.visible_message(span_danger("[icon2html(src,viewers(src))] [reason]."))
+ visible_message(span_danger("[icon2html(src,viewers(src))] [reason]."))
if(comm.camera && video_source == comm.camera) //We hung up on the person on video
end_video()
if(camera && comm.video_source == camera) //We hung up on them while they were watching us
@@ -174,7 +174,7 @@
L = loc
if(L)
- to_chat(L, "[icon2html(src,L.client)] Communications request from [who].")
+ to_chat(L, span_notice("[icon2html(src,L.client)] Communications request from [who]."))
// Proc: del_request()
// Parameters: 1 (candidate - the ghost or communicator to be declined)
@@ -184,7 +184,7 @@
return
if(isobserver(candidate))
- to_chat(candidate, "Your communicator call request was declined.")
+ to_chat(candidate, span_warning("Your communicator call request was declined."))
else if(istype(candidate, /obj/item/communicator))
var/obj/item/communicator/comm = candidate
comm.voice_invites -= src
@@ -197,7 +197,7 @@
us = loc
if(us)
- to_chat(us, "[icon2html(src,us.client)] Declined request.")
+ to_chat(us, span_notice("[icon2html(src,us.client)] Declined request."))
// Proc: see_emote()
// Parameters: 2 (M - the mob the emote originated from, text - the emote's contents)
@@ -250,7 +250,7 @@
var/message = combined["formatted"]
var/name_used = M.GetVoice()
var/rendered = null
- rendered = "[icon2html(src,mobs_to_relay)] [name_used] [message]"
+ rendered = span_game(span_say("[icon2html(src,mobs_to_relay)] [span_name(name_used)] [message]"))
mob.show_message(rendered, 2)
// Proc: show_message()
@@ -277,7 +277,7 @@
set desc = "If there is a communicator available, send a request to speak through it. This will reset your respawn timer, if someone picks up."
if(ticker.current_state < GAME_STATE_PLAYING)
- to_chat(src, "The game hasn't started yet!")
+ to_chat(src, span_danger("The game hasn't started yet!"))
return
if (!src.stat)
@@ -291,12 +291,12 @@
return
if(config.antag_hud_restricted && has_enabled_antagHUD == 1)
- to_chat(src, "You have used the antagHUD and cannot respawn or use communicators!")
+ to_chat(src, span_danger("You have used the antagHUD and cannot respawn or use communicators!"))
return
for(var/mob/living/L in mob_list) //Simple check so you don't have dead people calling.
if(src.client.prefs.real_name == L.real_name)
- to_chat(src, "Your identity is already present in the game world. Please load in a different character first.")
+ to_chat(src, span_danger("Your identity is already present in the game world. Please load in a different character first."))
return
var/obj/machinery/exonet_node/E = get_exonet_node()
@@ -312,7 +312,7 @@
choices.Add(comm)
if(!choices.len)
- to_chat(src , "There are no available communicators, sorry.")
+ to_chat(src , span_danger("There are no available communicators, sorry."))
return
var/choice = tgui_input_list(src,"Send a voice request to whom?", "Recipient Choice", choices)
@@ -331,23 +331,23 @@
if((!user) || (!comm) || user.stat) return //KO or dead, or already in a video
if(video_source) //Already in a video
- to_chat(user, "You are already connected to a video call!")
+ to_chat(user, span_danger("You are already connected to a video call!"))
return
if(user.blinded) //User is blinded
- to_chat(user, "You cannot see well enough to do that!")
+ to_chat(user, span_danger("You cannot see well enough to do that!"))
return
if(!(src in comm.communicating) || !comm.camera) //You called someone with a broken communicator or one that's fake or yourself or something
- to_chat(user, "[icon2html(src, user.client)]ERROR: Video failed. Either bandwidth is too low, or the other communicator is malfunctioning.")
+ to_chat(user, span_danger("[icon2html(src, user.client)]ERROR: Video failed. Either bandwidth is too low, or the other communicator is malfunctioning."))
return
- to_chat(user, "[icon2html(src, user.client)] Attempting to start video over existing call.")
+ to_chat(user, span_notice("[icon2html(src, user.client)] Attempting to start video over existing call."))
sleep(30)
- to_chat(user, "[icon2html(src, user.client)] Please wait...")
+ to_chat(user, span_notice("[icon2html(src, user.client)] Please wait..."))
video_source = comm.camera
- comm.visible_message("[icon2html(src,viewers(src))] New video connection from [comm].")
+ comm.visible_message(span_danger("[icon2html(src,viewers(src))] New video connection from [comm]."))
update_active_camera_screen()
RegisterSignal(video_source, COMSIG_OBSERVER_MOVED, PROC_REF(update_active_camera_screen))
video_source.AddComponent(/datum/component/recursive_move)
@@ -361,7 +361,7 @@
show_static()
video_source = null
- . = "[bicon(src)] [reason ? reason : "Video session ended"]."
+ . = span_danger("[bicon(src)] [reason ? reason : "Video session ended"].")
visible_message(.)
update_icon()
diff --git a/code/game/objects/items/devices/debugger.dm b/code/game/objects/items/devices/debugger.dm
index 9dc8364cf0..c9f4ba3494 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)
- to_chat(user, "There is a software error with the device.")
+ to_chat(user, span_warning("There is a software error with the device."))
else
- to_chat(user, "The device's software appears to be fine.")
+ to_chat(user, span_notice("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)
- to_chat(user, "There is a software error with the device.")
+ to_chat(user, span_warning("There is a software error with the device."))
else
- to_chat(user, "The device's software appears to be fine.")
+ to_chat(user, span_notice("The device's software appears to be fine."))
return 1
else if(istype(O, /obj/machinery))
var/obj/machinery/A = O
if(A.emagged)
- to_chat(user, "There is a software error with the device.")
+ to_chat(user, span_warning("There is a software error with the device."))
else
- to_chat(user, "The device's software appears to be fine.")
+ to_chat(user, span_notice("The device's software appears to be fine."))
return 1
diff --git a/code/game/objects/items/devices/defib.dm b/code/game/objects/items/devices/defib.dm
index 72167f294f..8cfecb2485 100644
--- a/code/game/objects/items/devices/defib.dm
+++ b/code/game/objects/items/devices/defib.dm
@@ -87,13 +87,13 @@
reattach_paddles(user)
else if(istype(W, /obj/item/cell))
if(bcell)
- to_chat(user, "\The [src] already has a cell.")
+ to_chat(user, span_notice("\The [src] already has a cell."))
else
if(!user.unEquip(W))
return
W.forceMove(src)
bcell = W
- to_chat(user, "You install a cell in \the [src].")
+ to_chat(user, span_notice("You install a cell in \the [src]."))
update_icon()
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
@@ -101,7 +101,7 @@
bcell.update_icon()
bcell.forceMove(get_turf(src.loc))
bcell = null
- to_chat(user, "You remove the cell from \the [src].")
+ to_chat(user, span_notice("You remove the cell from \the [src]."))
update_icon()
else
return ..()
@@ -120,7 +120,7 @@
var/mob/living/carbon/human/user = usr
if(!paddles)
- to_chat(user, "The paddles are missing!")
+ to_chat(user, span_warning("The paddles are missing!"))
return
if(paddles.loc != src)
@@ -128,10 +128,10 @@
return
if(!slot_check())
- to_chat(user, "You need to equip [src] before taking out [paddles].")
+ to_chat(user, span_warning("You need to equip [src] before taking out [paddles]."))
else
if(!usr.put_in_hands(paddles)) //Detach the paddles into the user's hands
- to_chat(user, "You need a free hand to hold the paddles!")
+ to_chat(user, span_warning("You need a free hand to hold the paddles!"))
update_icon() //success
//checks that the base unit is in the correct slot to be used
@@ -163,7 +163,7 @@
if(ismob(paddles.loc))
var/mob/M = paddles.loc
if(M.drop_from_inventory(paddles, src))
- to_chat(user, "\The [paddles] snap back into the main unit.")
+ to_chat(user, span_notice("\The [paddles] snap back into the main unit."))
else
paddles.forceMove(src)
@@ -258,13 +258,13 @@
if(busy)
return 0
if(!check_charge(chargecost))
- to_chat(user, "\The [src] doesn't have enough charge left to do that.")
+ to_chat(user, span_warning("\The [src] doesn't have enough charge left to do that."))
return 0
if(!wielded && !isrobot(user))
- to_chat(user, "You need to wield the paddles with both hands before you can use them on someone!")
+ to_chat(user, span_warning("You need to wield the paddles with both hands before you can use them on someone!"))
return 0
if(cooldown)
- to_chat(user, "\The [src] are re-energizing!")
+ to_chat(user, span_warning("\The [src] are re-energizing!"))
return 0
return 1
@@ -390,10 +390,10 @@
ghost.notify_revive("Someone is trying to resuscitate you. Re-enter your body if you want to be revived!", 'sound/effects/genetics.ogg', source = src)
//beginning to place the paddles on patient's chest to allow some time for people to move away to stop the process
- user.visible_message("\The [user] begins to place [src] on [H]'s chest.", "You begin to place [src] on [H]'s chest...")
+ user.visible_message(span_warning("\The [user] begins to place [src] on [H]'s chest."), span_warning("You begin to place [src] on [H]'s chest..."))
if(!do_after(user, 30, H))
return
- user.visible_message("\The [user] places [src] on [H]'s chest.", "You place [src] on [H]'s chest.")
+ user.visible_message("\The [user] places [src] on [H]'s chest.", span_warning("You place [src] on [H]'s chest."))
playsound(src, 'sound/machines/defib_charge.ogg', 50, 0)
var/error = can_defib(H)
@@ -415,7 +415,7 @@
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
return
- H.visible_message("\The [H]'s body convulses a bit.")
+ H.visible_message(span_warning("\The [H]'s body convulses a bit."))
playsound(src, "bodyfall", 50, 1)
playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1)
set_cooldown(cooldowntime)
@@ -447,19 +447,19 @@
/obj/item/shockpaddles/proc/do_electrocute(mob/living/carbon/human/H, mob/user, var/target_zone)
var/obj/item/organ/external/affecting = H.get_organ(target_zone)
if(!affecting)
- to_chat(user, "They are missing that body part!")
+ to_chat(user, span_warning("They are missing that body part!"))
return
//no need to spend time carefully placing the paddles, we're just trying to shock them
- user.visible_message("\The [user] slaps [src] onto [H]'s [affecting.name].", "You overcharge [src] and slap them onto [H]'s [affecting.name].")
+ user.visible_message(span_danger("\The [user] slaps [src] onto [H]'s [affecting.name]."), span_danger("You overcharge [src] and slap them onto [H]'s [affecting.name]."))
//Just stop at awkwardly slapping electrodes on people if the safety is enabled
if(safety)
- to_chat(user, "You can't do that while the safety is enabled.")
+ to_chat(user, span_warning("You can't do that while the safety is enabled."))
return
playsound(src, 'sound/machines/defib_charge.ogg', 50, 0)
- audible_message("\The [src] lets out a steadily rising hum...", runemessage = "whines")
+ audible_message(span_warning("\The [src] lets out a steadily rising hum..."), runemessage = "whines")
if(!do_after(user, chargetime, H))
return
@@ -470,7 +470,7 @@
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
return
- user.visible_message("\The [user] shocks [H] with \the [src]!", "You shock [H] with \the [src]!")
+ user.visible_message(span_danger("\The [user] shocks [H] with \the [src]!"), span_warning("You shock [H] with \the [src]!"))
playsound(src, 'sound/machines/defib_zap.ogg', 100, 1, -1)
playsound(src, 'sound/weapons/Egloves.ogg', 100, 1, -1)
set_cooldown(cooldowntime)
@@ -536,12 +536,12 @@
/obj/item/shockpaddles/emag_act(mob/user)
if(safety)
safety = 0
- to_chat(user, "You silently disable \the [src]'s safety protocols with the cryptographic sequencer.")
+ to_chat(user, span_warning("You silently disable \the [src]'s safety protocols with the cryptographic sequencer."))
update_icon()
return 1
else
safety = 1
- to_chat(user, "You silently enable \the [src]'s safety protocols with the cryptographic sequencer.")
+ to_chat(user, span_notice("You silently enable \the [src]'s safety protocols with the cryptographic sequencer."))
update_icon()
return 1
@@ -653,7 +653,7 @@
if(2)
new_fail = max(fail_counter, 8)
if(ismob(loc))
- to_chat(loc, "\The [src] feel pleasantly warm.")
+ to_chat(loc, span_warning("\The [src] feel pleasantly warm."))
if(new_fail && !fail_counter)
START_PROCESSING(SSobj, src)
diff --git a/code/game/objects/items/devices/denecrotizer_vr.dm b/code/game/objects/items/devices/denecrotizer_vr.dm
index 053e3a5ff6..f386f80cb5 100644
--- a/code/game/objects/items/devices/denecrotizer_vr.dm
+++ b/code/game/objects/items/devices/denecrotizer_vr.dm
@@ -44,7 +44,7 @@
if(!ghostjoin)
return ..()
if(jobban_isbanned(user, JOB_GHOSTROLES))
- to_chat(user, "You cannot inhabit this creature because you are banned from playing ghost roles.")
+ to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
return
if(!evaluate_ghost_join(user))
return ..()
@@ -77,11 +77,11 @@
ghostjoin = FALSE
ghostjoin_icon()
if(capture_caught)
- to_chat(src, "You are bound to [revivedby], follow their commands within reason and to the best of your abilities, and avoid betraying or abandoning them. You are allied with [revivedby]. Do not attack anyone for no reason. Of course, you may do scenes as you like, but you must still respect preferences.")
+ to_chat(src, span_notice("You are bound to [revivedby], follow their commands within reason and to the best of your abilities, and avoid betraying or abandoning them. You are allied with [revivedby]. Do not attack anyone for no reason. Of course, you may do scenes as you like, but you must still respect preferences."))
visible_message("[src]'s eyes flicker with a curious intelligence.", runemessage = "looks around")
return
if(revivedby != "no one")
- to_chat(src, "Where once your life had been rough and scary, you have been assisted by [revivedby]. They seem to be the reason you are on your feet again... so perhaps you should help them out. Being as you were revived, you are allied with the station. Do not attack anyone unless they are threatening the one who revived you. And try to listen to the one who revived you within reason. Of course, you may do scenes as you like, but you must still respect preferences.")
+ to_chat(src, span_notice("Where once your life had been rough and scary, you have been assisted by [revivedby]. They seem to be the reason you are on your feet again... so perhaps you should help them out. Being as you were revived, you are allied with the station. Do not attack anyone unless they are threatening the one who revived you. And try to listen to the one who revived you within reason. Of course, you may do scenes as you like, but you must still respect preferences."))
visible_message("[src]'s eyes flicker with a curious intelligence.", runemessage = "looks around")
/// Evaluate someone for being allowed to join as this mob from being a ghost
@@ -92,15 +92,15 @@
// At this point we can at least send them messages as to why they can't join, since they are a mob with a client
if(!ghostjoin)
- to_chat(D, "Sorry, [src] is no longer ghost-joinable.")
+ to_chat(D, span_notice("Sorry, [src] is no longer ghost-joinable."))
return FALSE
if(ckey)
- to_chat(D, "Sorry, someone else has already inhabited [src].")
+ to_chat(D, span_notice("Sorry, someone else has already inhabited [src]."))
return FALSE
if(capture_caught && !D.client.prefs.capture_crystal)
- to_chat(D, "Sorry, [src] is participating in capture mechanics, and your preferences do not allow for that.")
+ to_chat(D, span_notice("Sorry, [src] is participating in capture mechanics, and your preferences do not allow for that."))
return FALSE
// Insert whatever ban checks you want here if we ever add simplemob bans
@@ -124,9 +124,9 @@
var/cooldowntime = round((cooldown - (world.time - last_used)) * 0.1)
if(Adjacent(user))
if(cooldowntime <= 0)
- . += "The screen indicates that this device is ready to be used, and that it has enough energy for [charges] uses."
+ . += span_notice("The screen indicates that this device is ready to be used, and that it has enough energy for [charges] uses.")
else
- . += "The screen indicates that this device can be used again in [cooldowntime] seconds, and that it has enough energy for [charges] uses."
+ . += span_notice("The screen indicates that this device can be used again in [cooldowntime] seconds, and that it has enough energy for [charges] uses.")
/obj/item/denecrotizer/proc/check_target(mob/living/simple_mob/target, mob/living/user)
if(!target.Adjacent(user))
@@ -135,23 +135,23 @@
user.visible_message("[user] bonks [target] with [src].", runemessage = "bonks [target]")
return FALSE
if(!istype(target))
- to_chat(user, "[target] seems to be too complicated for [src] to interface with.")
+ to_chat(user, span_notice("[target] seems to be too complicated for [src] to interface with."))
return FALSE
if(!(world.time - last_used > cooldown))
- to_chat(user, "[src] doesn't seem to be ready yet.")
+ to_chat(user, span_notice("[src] doesn't seem to be ready yet."))
return FALSE
if(!charges)
- to_chat(user, "[src] doesn't seem to be active anymore.")
+ to_chat(user, span_notice("[src] doesn't seem to be active anymore."))
return FALSE
if(!target.ic_revivable)
- to_chat(user, "[src] doesn't seem to interface with [target].")
+ to_chat(user, span_notice("[src] doesn't seem to interface with [target]."))
return FALSE
if(target.stat != DEAD)
if(!advanced)
- to_chat(user, "[src] doesn't seem to work on that.")
+ to_chat(user, span_notice("[src] doesn't seem to work on that."))
return FALSE
if(target.ai_holder.retaliate || target.ai_holder.hostile) // You can be friends with still living mobs if they are passive I GUESS
- to_chat(user, "[src] doesn't seem to work on that.")
+ to_chat(user, span_notice("[src] doesn't seem to work on that."))
return FALSE
if(!target.mind)
user.visible_message("[user] gently presses [src] to [target]...", runemessage = "presses [src] to [target]")
@@ -170,7 +170,7 @@
update_icon()
return FALSE
else
- to_chat(user, "[src] doesn't seem to work on that.")
+ to_chat(user, span_notice("[src] doesn't seem to work on that."))
return FALSE
return TRUE
diff --git a/code/game/objects/items/devices/e_beacon.dm b/code/game/objects/items/devices/e_beacon.dm
index fe9631133c..6e3e15985d 100644
--- a/code/game/objects/items/devices/e_beacon.dm
+++ b/code/game/objects/items/devices/e_beacon.dm
@@ -17,17 +17,17 @@
var/T = user.loc
if(!beacon_active)
if(!isturf(T))
- to_chat(user,"You cannot activate the beacon when you are not on a turf!")
+ to_chat(user,span_warning("You cannot activate the beacon when you are not on a turf!"))
return
else if(isnonsolidturf(T))
- to_chat(user,"You cannot activate the beacon when you are not on sufficiently solid ground!")
+ to_chat(user,span_warning("You cannot activate the beacon when you are not on sufficiently solid ground!"))
return
else
var/answer = tgui_alert(user, "Would you like to activate this personal emergency beacon?","\The [src]", list("Yes", "No"))
if(answer != "Yes")
return
else if(do_after(user, (3 SECONDS))) //short delay, so they can still abort if they want to
- user.visible_message("[user] activates \the [src]!","You activate \the [src], spiking it into the ground!")
+ user.visible_message(span_warning("[user] activates \the [src]!"),span_warning("You activate \the [src], spiking it into the ground!"))
beacon_active = TRUE
icon_state = "e_beacon_active"
user.drop_item()
@@ -48,7 +48,7 @@
/obj/item/emergency_beacon/attack_hand(mob/user)
if(beacon_active)
- to_chat(user,"The beacon is already active and cannot be moved!")
+ to_chat(user,span_warning("The beacon is already active and cannot be moved!"))
return
. = ..()
diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm
index aec8caab0d..fa5e7056bf 100644
--- a/code/game/objects/items/devices/flash.dm
+++ b/code/game/objects/items/devices/flash.dm
@@ -40,13 +40,13 @@
/obj/item/flash/attackby(var/obj/item/W, var/mob/user)
if(W.has_tool_quality(TOOL_SCREWDRIVER) && broken)
if(repairing)
- to_chat(user, "\The [src] is already being repaired!")
+ to_chat(user, span_notice("\The [src] is already being repaired!"))
return
user.visible_message("\The [user] starts trying to repair \the [src]'s bulb.")
repairing = TRUE
if(do_after(user, (40 SECONDS + rand(0, 20 SECONDS)) * W.toolspeed) && can_repair)
if(prob(30))
- user.visible_message("\The [user] successfully repairs \the [src]!")
+ user.visible_message(span_notice("\The [user] successfully repairs \the [src]!"))
broken = FALSE
update_icon()
playsound(src, W.usesound, 50, 1)
@@ -87,7 +87,7 @@
/obj/item/flash/proc/clown_check(var/mob/user)
if(user && (CLUMSY in user.mutations) && prob(50))
- to_chat(user, "\The [src] slips out of your hand.")
+ to_chat(user, span_warning("\The [src] slips out of your hand."))
user.drop_item()
return 0
return 1
@@ -128,7 +128,7 @@
if(prob( max(0, times_used - safe_flashes) * 2 + (times_used >= safe_flashes)) && can_break) //if you use it 10 times in a minute it has a 30% chance to break.
broken = TRUE
if(user)
- to_chat(user, "The bulb has burnt out!")
+ to_chat(user, span_warning("The bulb has burnt out!"))
update_icon()
return FALSE
else
@@ -138,7 +138,7 @@
else if(!charge_only) //can only use it 10 times a minute, unless it runs purely on charge.
if(user)
update_icon()
- to_chat(user, "click")
+ to_chat(user, span_warning("click"))
playsound(src, 'sound/weapons/empty.ogg', 80, 1)
return FALSE
else if(battery && battery.checked_use(charge_cost + (round(charge_cost / 4) * max(0, times_used - max_flashes)))) // Using over your maximum flashes starts taking more charge per added flash.
@@ -157,7 +157,7 @@
if(!clown_check(user)) return
if(broken)
- to_chat(user, "\The [src] is broken.")
+ to_chat(user, span_warning("\The [src] is broken."))
return
flash_recharge()
@@ -226,14 +226,14 @@
flick("flash2", src)
if(!issilicon(M))
- user.visible_message("[user] blinds [M] with the flash!")
+ user.visible_message(span_disarm("[user] blinds [M] with the flash!"))
else
- user.visible_message("[user] overloads [M]'s sensors with the flash!")
+ user.visible_message(span_notice("[user] overloads [M]'s sensors with the flash!"))
M.Weaken(rand(5,10))
else
- user.visible_message("[user] fails to blind [M] with the flash!")
+ user.visible_message(span_notice("[user] fails to blind [M] with the flash!"))
return
@@ -246,7 +246,7 @@
user.setClickCooldown(user.get_attack_speed(src))
if(broken)
- user.show_message("The [src.name] is broken", 2)
+ user.show_message(span_warning("The [src.name] is broken"), 2)
return
flash_recharge()
@@ -289,7 +289,7 @@
//C.Weaken(10)
C.flash_eyes()
for(var/mob/M in viewers(C, null))
- M.show_message("[C] is blinded by the flash!")
+ M.show_message(span_disarm("[C] is blinded by the flash!"))
..()
/obj/item/flash/synthetic
@@ -305,14 +305,14 @@
..()
if(!broken)
broken = 1
- to_chat(user, "The bulb has burnt out!")
+ to_chat(user, span_warning("The bulb has burnt out!"))
update_icon()
/obj/item/flash/synthetic/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0)
..()
if(!broken)
broken = 1
- to_chat(user, "The bulb has burnt out!")
+ to_chat(user, span_warning("The bulb has burnt out!"))
update_icon()
/obj/item/flash/robot
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index 91f6c4eccc..be96b59506 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -56,7 +56,7 @@
if(power_usage)
if(cell.use(power_usage) != power_usage) // we weren't able to use our full power_usage amount!
- visible_message("\The [src] flickers before going dull.")
+ visible_message(span_warning("\The [src] flickers before going dull."))
playsound(src, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket. //VOREStation Edit
on = 0
update_brightness()
@@ -119,7 +119,7 @@
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))
- to_chat(user, "You're going to need to remove [C.name] first.")
+ to_chat(user, span_warning("You're going to need to remove [C.name] first."))
return
var/obj/item/organ/vision
@@ -127,34 +127,34 @@
vision = H.internal_organs_by_name[H.species.vision_organ]
if(!vision)
user.visible_message("\The [user] directs [src] at [M]'s face.", \
- "You direct [src] at [M]'s face.")
- to_chat(user, "You can't find any [H.species.vision_organ ? H.species.vision_organ : "eyes"] on [H]!")
+ span_notice("You direct [src] at [M]'s face."))
+ to_chat(user, span_warning("You can't find any [H.species.vision_organ ? H.species.vision_organ : "eyes"] on [H]!"))
user.setClickCooldown(user.get_attack_speed(src))
return
user.visible_message("\The [user] directs [src] to [M]'s eyes.", \
- "You direct [src] to [M]'s eyes.")
+ span_notice("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
- to_chat(user, "\The [M]'s pupils do not react to the light!")
+ to_chat(user, span_warning("\The [M]'s pupils do not react to the light!"))
return
if(XRAY in M.mutations)
- to_chat(user, "\The [M] pupils give an eerie glow!")
+ to_chat(user, span_notice("\The [M] pupils give an eerie glow!"))
if(vision.is_bruised())
- to_chat(user, "There's visible damage to [M]'s [vision.name]!")
+ to_chat(user, span_warning("There's visible damage to [M]'s [vision.name]!"))
else if(M.eye_blurry)
- to_chat(user, "\The [M]'s pupils react slower than normally.")
+ to_chat(user, span_notice("\The [M]'s pupils react slower than normally."))
if(M.getBrainLoss() > 15)
- to_chat(user, "There's visible lag between left and right pupils' reactions.")
+ to_chat(user, span_notice("There's visible lag between left and right pupils' reactions."))
var/list/pinpoint = list("oxycodone"=1,"tramadol"=5)
var/list/dilating = list("bliss"=5,"ambrosia_extract"=5,"mindbreaker"=1)
if(M.reagents.has_any_reagent(pinpoint) || H.ingested.has_any_reagent(pinpoint))
- to_chat(user, "\The [M]'s pupils are already pinpoint and cannot narrow any more.")
+ to_chat(user, span_notice("\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))
- to_chat(user, "\The [M]'s pupils narrow slightly, but are still very dilated.")
+ to_chat(user, span_notice("\The [M]'s pupils narrow slightly, but are still very dilated."))
else
- to_chat(user, "\The [M]'s pupils narrow.")
+ to_chat(user, span_notice("\The [M]'s pupils narrow."))
user.setClickCooldown(user.get_attack_speed(src)) //can be used offensively
M.flash_eyes()
@@ -167,7 +167,7 @@
cell.update_icon()
user.put_in_hands(cell)
cell = null
- to_chat(user, "You remove the cell from the [src].")
+ to_chat(user, span_notice("You remove the cell from the [src]."))
playsound(src, 'sound/machines/button.ogg', 30, 1, 0)
on = 0
update_brightness()
@@ -216,13 +216,13 @@
user.drop_item()
W.loc = src
cell = W
- to_chat(user, "You install a cell in \the [src].")
+ to_chat(user, span_notice("You install a cell in \the [src]."))
playsound(src, 'sound/machines/button.ogg', 30, 1, 0)
update_brightness()
else
- to_chat(user, "\The [src] already has a cell.")
+ to_chat(user, span_notice("\The [src] already has a cell."))
else
- to_chat(user, "\The [src] cannot use that type of cell.")
+ to_chat(user, span_notice("\The [src] cannot use that type of cell."))
else
..()
@@ -387,7 +387,7 @@
// Usual checks
if(!fuel)
- to_chat(user, "It's out of fuel.")
+ to_chat(user, span_notice("It's out of fuel."))
return
if(on)
return
@@ -395,7 +395,7 @@
. = ..()
// All good, turn it on.
if(.)
- user.visible_message("[user] activates the flare.", "You pull the cord on the flare, activating it!")
+ user.visible_message(span_notice("[user] activates the flare."), span_notice("You pull the cord on the flare, activating it!"))
src.force = on_damage
src.damtype = "fire"
START_PROCESSING(SSobj, src)
@@ -444,14 +444,14 @@
/obj/item/flashlight/glowstick/attack_self(mob/user)
if(!fuel)
- to_chat(user, "The glowstick has already been turned on.")
+ to_chat(user, span_notice("The glowstick has already been turned on."))
return
if(on)
return
. = ..()
if(.)
- user.visible_message("[user] cracks and shakes \the [name].", "You crack and shake \the [src], turning it on!")
+ user.visible_message(span_notice("[user] cracks and shakes \the [name]."), span_notice("You crack and shake \the [src], turning it on!"))
START_PROCESSING(SSobj, src)
/obj/item/flashlight/glowstick/red
diff --git a/code/game/objects/items/devices/floor_painter.dm b/code/game/objects/items/devices/floor_painter.dm
index 2b36cd97b8..7999cc9639 100644
--- a/code/game/objects/items/devices/floor_painter.dm
+++ b/code/game/objects/items/devices/floor_painter.dm
@@ -49,11 +49,11 @@
var/turf/simulated/floor/F = A
if(!istype(F))
- to_chat(user, "\The [src] can only be used on station flooring.")
+ to_chat(user, span_warning("\The [src] can only be used on station flooring."))
return
if(!F.flooring || !F.flooring.can_paint || F.broken || F.burnt)
- to_chat(user, "\The [src] cannot paint broken or missing tiles.")
+ to_chat(user, span_warning("\The [src] cannot paint broken or missing tiles."))
return
var/list/decal_data = decals[decal]
@@ -67,11 +67,11 @@
config_error = 1
if(config_error)
- to_chat(user, "\The [src] flashes an error light. You might need to reconfigure it.")
+ to_chat(user, span_warning("\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)
- to_chat(user, "\The [F] has been painted too much; you need to clear it off.")
+ to_chat(user, span_warning("\The [F] has been painted too much; you need to clear it off."))
return
var/painting_dir = 0
@@ -130,7 +130,7 @@
var/new_colour = input(usr, "Choose a colour.", name, paint_colour) as color|null
if(new_colour && new_colour != paint_colour)
paint_colour = new_colour
- to_chat(usr, "You set \the [src] to paint with a new colour.")
+ to_chat(usr, span_notice("You set \the [src] to paint with a new colour."))
/obj/item/floor_painter/verb/choose_decal()
set name = "Choose Decal"
@@ -144,7 +144,7 @@
var/new_decal = tgui_input_list(usr, "Select a decal:", "Decal Choice", decals)
if(new_decal && !isnull(decals[new_decal]))
decal = new_decal
- to_chat(usr, "You set \the [src] decal to '[decal]'.")
+ to_chat(usr, span_notice("You set \the [src] decal to '[decal]'."))
/obj/item/floor_painter/verb/choose_direction()
set name = "Choose Direction"
@@ -158,4 +158,4 @@
var/new_dir = tgui_input_list(usr, "Select a direction:", "Direction Choice", paint_dirs)
if(new_dir && !isnull(paint_dirs[new_dir]))
paint_dir = new_dir
- to_chat(usr, "You set \the [src] direction to '[paint_dir]'.")
+ to_chat(usr, span_notice("You set \the [src] direction to '[paint_dir]'."))
diff --git a/code/game/objects/items/devices/geiger.dm b/code/game/objects/items/devices/geiger.dm
index f6e1427c81..781550e612 100644
--- a/code/game/objects/items/devices/geiger.dm
+++ b/code/game/objects/items/devices/geiger.dm
@@ -35,7 +35,7 @@
/obj/item/geiger/examine(mob/user)
. = ..()
get_radiation()
- . += "[scanning ? "Ambient" : "Stored"] radiation level: [radiation_count ? radiation_count : "0"]Bq."
+ . += span_warning("[scanning ? "Ambient" : "Stored"] radiation level: [radiation_count ? radiation_count : "0"]Bq.")
/obj/item/geiger/rad_act(amount)
if(!amount || !scanning)
@@ -66,7 +66,7 @@
STOP_PROCESSING(SSobj, src)
update_icon()
update_sound()
- to_chat(user, "[icon2html(src, user.client)] You switch [scanning ? "on" : "off"] \the [src].")
+ to_chat(user, span_notice("[icon2html(src, user.client)] You switch [scanning ? "on" : "off"] \the [src]."))
/obj/item/geiger/update_icon()
if(!scanning)
@@ -121,7 +121,7 @@
scanning = !scanning
update_icon()
update_sound()
- to_chat(user, "[icon2html(src, user.client)] You switch [scanning ? "on" : "off"] \the [src].")
+ to_chat(user, span_notice("[icon2html(src, user.client)] You switch [scanning ? "on" : "off"] \the [src]."))
/obj/item/geiger/wall/update_icon()
if(!scanning)
diff --git a/code/game/objects/items/devices/hacktool.dm b/code/game/objects/items/devices/hacktool.dm
index 1ddb7d894b..61d9505474 100644
--- a/code/game/objects/items/devices/hacktool.dm
+++ b/code/game/objects/items/devices/hacktool.dm
@@ -52,23 +52,23 @@
if(istype(A, /obj/machinery/door/airlock))
var/obj/machinery/door/airlock/D = A
if(!D.arePowerSystemsOn())
- to_chat(user, "No response from remote, check door power.")
+ to_chat(user, span_warning("No response from remote, check door power."))
else if(D.locked == TRUE && full_override == FALSE)
- to_chat(user, "Unable to override door bolts!")
+ to_chat(user, span_warning("Unable to override door bolts!"))
else if(D.locked == TRUE && full_override == TRUE && D.arePowerSystemsOn())
- to_chat(user, "Door bolts overridden.")
+ to_chat(user, span_notice("Door bolts overridden."))
D.unlock()
else if(D.density == TRUE && D.locked == FALSE)
- to_chat(user, "Overriding access. Door opening.")
+ to_chat(user, span_notice("Overriding access. Door opening."))
D.open()
else if(D.density == FALSE && D.locked == FALSE)
- to_chat(user, "Overriding access. Door closing.")
+ to_chat(user, span_notice("Overriding access. Door closing."))
D.close()
return 1
/obj/item/multitool/hacktool/proc/attempt_hack(var/mob/user, var/atom/target)
if(is_hacking)
- to_chat(user, "You are already hacking!")
+ to_chat(user, span_warning("You are already hacking!"))
return 0
if(!is_type_in_list(target, supported_types))
to_chat(user, "[icon2html(src, user.client)] Unable to hack this target, invalid target type.")
@@ -77,9 +77,9 @@
if(istype(target, /obj/structure/closet/crate/secure))
var/obj/structure/closet/crate/secure/A = target
if(A.locked)
- to_chat(user, "Overriding access. Stand by.")
+ to_chat(user, span_notice("Overriding access. Stand by."))
if(do_after(user, (((5 SECONDS + rand(0, 5 SECONDS) + rand(0, 5 SECONDS))*hackspeed))))
- to_chat(user, "Override successful!")
+ to_chat(user, span_notice("Override successful!"))
A.locked = FALSE
A.update_icon()
playsound(A, 'sound/machines/click.ogg', 15, 1, -3)
@@ -89,9 +89,9 @@
if(istype(target, /obj/structure/closet/secure_closet))
var/obj/structure/closet/secure_closet/A = target
if(A.locked)
- to_chat(user, "Overriding access. Stand by.")
+ to_chat(user, span_notice("Overriding access. Stand by."))
if(do_after(user, (((5 SECONDS + rand(0, 5 SECONDS) + rand(0, 5 SECONDS))*hackspeed))))
- to_chat(user, "Override successful!")
+ to_chat(user, span_notice("Override successful!"))
A.locked = FALSE
A.update_icon()
playsound(A, 'sound/machines/click.ogg', 15, 1, -3)
@@ -108,7 +108,7 @@
if(found)
known_targets.Swap(1, found) // Move the last hacked item first
return 1
- to_chat(user, "You begin hacking \the [D]...")
+ to_chat(user, span_notice("You begin hacking \the [D]..."))
is_hacking = 1
// On average hackin takes ~15 seconds. Fairly small random span to discourage people from simply aborting and trying again
// Reduced hack duration to compensate for the reduced functionality, multiplied by door sec level
@@ -116,10 +116,10 @@
is_hacking = 0
if(hack_result && in_hack_mode)
- to_chat(user, "Your hacking attempt was succesful!")
+ to_chat(user, span_notice("Your hacking attempt was succesful!"))
user.playsound_local(get_turf(src), 'sound/instruments/piano/An6.ogg', 50)
else
- to_chat(user, "Your hacking attempt failed!")
+ to_chat(user, span_warning("Your hacking attempt failed!"))
return 0
known_targets.Insert(1, D) // Insert the newly hacked target first,
diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm
index 1e65c456ab..e0d103489a 100644
--- a/code/game/objects/items/devices/holowarrant.dm
+++ b/code/game/objects/items/devices/holowarrant.dm
@@ -18,7 +18,7 @@
if(in_range(user, src) || istype(user, /mob/observer/dead))
show_content(user) //Opens a browse window, not chatbox related
else
- . += "You have to go closer if you want to read it."
+ . += span_notice("You have to go closer if you want to read it.")
//hit yourself with it
/obj/item/holowarrant/attack_self(mob/living/user as mob)
@@ -28,7 +28,7 @@
for(var/datum/data/record/warrant/W in data_core.warrants)
warrants += W.fields["namewarrant"]
if(warrants.len == 0)
- to_chat(user,"There are no warrants available")
+ to_chat(user,span_notice("There are no warrants available"))
return
var/temp
temp = tgui_input_list(user, "Which warrant would you like to load?", "Warrant Selection", warrants)
@@ -44,17 +44,17 @@
var/choice = tgui_alert(user, "Would you like to authorize this warrant?","Warrant authorization",list("Yes","No"))
if(choice == "Yes")
active.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
- user.visible_message("You swipe \the [I] through the [src].", \
- "[user] swipes \the [I] through the [src].")
+ user.visible_message(span_notice("You swipe \the [I] through the [src]."), \
+ span_notice("[user] swipes \the [I] through the [src]."))
return 1
- to_chat(user, "You don't have the access to do this!") // VOREStation edit
+ to_chat(user, span_warning("You don't have the access to do this!")) // VOREStation edit
return 1
..()
//hit other people with it
/obj/item/holowarrant/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
- user.visible_message("You show the warrant to [M].", \
- "[user] holds up a warrant projector and shows the contents to [M].")
+ user.visible_message(span_notice("You show the warrant to [M]."), \
+ span_notice("[user] holds up a warrant projector and shows the contents to [M]."))
M.examinate(src)
/obj/item/holowarrant/update_icon()
diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm
index f8f8a62151..89ca05a09e 100644
--- a/code/game/objects/items/devices/laserpointer.dm
+++ b/code/game/objects/items/devices/laserpointer.dm
@@ -50,13 +50,13 @@
user.drop_item()
W.loc = src
diode = W
- to_chat(user, "You install a [diode.name] in [src].")
+ to_chat(user, span_notice("You install a [diode.name] in [src]."))
else
- to_chat(user, "[src] already has a diode.")
+ to_chat(user, span_notice("[src] already has a diode."))
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
if(diode)
- to_chat(user, "You remove the [diode.name] from the [src].")
+ to_chat(user, span_notice("You remove the [diode.name] from the [src]."))
diode.loc = get_turf(src.loc)
diode = null
return
@@ -76,17 +76,17 @@
if(!(world.time - last_used_time >= cooldown))
return
if (!diode)
- to_chat(user, "You point [src] at [target], but nothing happens!")
+ to_chat(user, span_notice("You point [src] at [target], but nothing happens!"))
return
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return
add_fingerprint(user)
//nothing happens if the battery is drained
if(recharge_locked)
- to_chat(user, "You point [src] at [target], but it's still charging.")
+ to_chat(user, span_notice("You point [src] at [target], but it's still charging."))
return
var/outmsg
@@ -110,38 +110,38 @@
var/mob/living/carbon/human/H = C
var/obj/item/organ/internal/eyes/E = H.internal_organs_by_name[O_EYES]
if(!E)
- outmsg = "You shine [src] at [C], but they don't seem to have eyes."
+ outmsg = span_notice("You shine [src] at [C], but they don't seem to have eyes.")
return
- outmsg = "You shine [src] into [C]'s eyes."
+ outmsg = span_notice("You shine [src] into [C]'s eyes.")
switch(severity)
if(0)
//rank 1 diode with basic eye protection (like sunglasses), or rank 2 with industrial protection (like welding goggles)
- to_chat(C, "A small, bright dot appears in your vision.")
+ to_chat(C, span_info("A small, bright dot appears in your vision."))
if(1)
//rank 1 with no protection, rank 2 with basic protection, or rank 3 with industrial protection
- to_chat(C, "Something bright flashes in the corner of your vision.")
+ to_chat(C, span_notice("Something bright flashes in the corner of your vision."))
if(2)
//rank 1 or 2 with no protection, rank 2 or 3 with basic protection, or rank 3 with industrial protection
//alternatively, rank 1 with minor vulnerability (like night vision goggles)
flick("flash", C.flash_eyes())
- to_chat(C, "A bright light shines across your eyes!")
+ to_chat(C, span_danger("A bright light shines across your eyes!"))
if(3)
//rank 1 with minor vulnerability, rank 2 or 3 with no protection, or rank 3 with basic protection
if(prob(3 * diode.rating))
C.Weaken(1)
flick("flash", C.flash_eyes())
E.damage += 1
- to_chat(C, "A bright light briefly blinds you!")
+ to_chat(C, span_danger("A bright light briefly blinds you!"))
if(4)
//rank 3 with no protection, or rank 2 with minor vulnerability
if(prob(5 * diode.rating))
C.Weaken(1)
flick("e_flash", C.flash_eyes())
E.damage += 2
- to_chat(C, "A blinding light burns your eyes!")
+ to_chat(C, span_danger("A blinding light burns your eyes!"))
else
- outmsg = "You shine the [src] at [C], but miss their eyes."
+ outmsg = span_notice("You shine the [src] at [C], but miss their eyes.")
//robots and AI
else if(issilicon(target))
@@ -151,34 +151,34 @@
flick("flash", S.flash_eyes(affect_silicon = TRUE))
if (prob(3 * diode.rating))
S.Weaken(1)
- to_chat(S, "Your sensors were blinded by a laser!")
- outmsg = "You blind [S] by shining [src] at their sensors."
+ to_chat(S, span_warning("Your sensors were blinded by a laser!"))
+ outmsg = span_notice("You blind [S] by shining [src] at their sensors.")
add_attack_logs(user,S,"Tried disabling using [src]")
else
- outmsg = "You shine the [src] at [S], but miss their sensors."
+ outmsg = span_notice("You shine the [src] at [S], but miss their sensors.")
//cameras
else if(istype(target, /obj/machinery/camera))
var/obj/machinery/camera/C = target
if(prob(effectchance * diode.rating))
C.emp_act(4 - diode.rating)
- outmsg = "You shine the [src] into the lens of [C]."
+ outmsg = span_notice("You shine the [src] into the lens of [C].")
add_attack_logs(user,C.name,"Tried disabling using [src]")
else
- outmsg = "You missed the lens of [C] with [src]."
+ outmsg = span_info("You missed the lens of [C] with [src].")
//cats!
for(var/mob/living/simple_mob/animal/passive/cat/C in viewers(1,targloc))
if (!(C.stat || C.buckled))
if(prob(50) && !(C.client))
- C.visible_message("[C] pounces on the light!", "You pounce on the light!")
+ C.visible_message(span_warning("[C] pounces on the light!"), span_warning("You pounce on the light!"))
step_towards(C, targloc)
C.lay_down()
spawn(10)
C.lay_down()
else
C.set_dir(get_dir(C,targloc))
- C.visible_message("[C] watches the light.", "Your attention is drawn to the mysterious glowing dot.")
+ C.visible_message(span_notice("[C] watches the light."), span_notice("Your attention is drawn to the mysterious glowing dot."))
//laser pointer image
@@ -193,9 +193,9 @@
I.pixel_y = target.pixel_y + rand(-5,5)
if(outmsg)
- user.visible_message("[user] points [src] at [target].", outmsg)
+ user.visible_message(span_info("[user] points [src] at [target]."), outmsg)
else
- user.visible_message("[user] points [src] at [target].", "You point [src] at [target].")
+ user.visible_message(span_info("[user] points [src] at [target]."), span_info("You point [src] at [target]."))
last_used_time = world.time
energy -= 1
@@ -204,7 +204,7 @@
recharging = 1
START_PROCESSING(SSobj, src)
if(energy <= 0)
- to_chat(user, "You've overused the battery of [src], now it needs time to recharge!")
+ to_chat(user, span_warning("You've overused the battery of [src], now it needs time to recharge!"))
recharge_locked = 1
flick_overlay(I, showto, cooldown)
@@ -218,4 +218,4 @@
energy = max_energy
recharging = 0
recharge_locked = 0
- ..()
\ No newline at end of file
+ ..()
diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm
index 58b2bb7c01..97786a2b82 100644
--- a/code/game/objects/items/devices/lightreplacer.dm
+++ b/code/game/objects/items/devices/lightreplacer.dm
@@ -67,14 +67,14 @@
if(istype(W, /obj/item/stack/material) && W.get_material_name() == "glass" || istype(W, /obj/item/stack/material/cyborg/glass))
var/obj/item/stack/G = W
if(uses >= max_uses)
- to_chat(user, "[src.name] is full.")
+ to_chat(user, span_warning("[src.name] is full."))
return
else if(G.use(1))
add_uses(16) //Autolathe converts 1 sheet into 16 lights.
- to_chat(user, "You insert a piece of glass into \the [src.name]. You have [uses] light\s remaining.")
+ to_chat(user, span_notice("You insert a piece of glass into \the [src.name]. You have [uses] light\s remaining."))
return
else
- to_chat(user, "You need one sheet of glass to replace lights.")
+ to_chat(user, span_warning("You need one sheet of glass to replace lights."))
if(istype(W, /obj/item/light))
var/new_bulbs = 0
@@ -117,14 +117,14 @@
qdel(L)
if(!found_lightbulbs)
- to_chat(user, "\The [S] contains no bulbs.")
+ to_chat(user, span_warning("\The [S] contains no bulbs."))
return
if(!replaced_something && src.uses == max_uses)
- to_chat(user, "\The [src] is full!")
+ to_chat(user, span_warning("\The [src] is full!"))
return
- to_chat(user, "You fill \the [src] with lights from \the [S].")
+ to_chat(user, span_notice("You fill \the [src] with lights from \the [S]."))
/obj/item/lightreplacer/attack_self(mob/user)
/* // This would probably be a bit OP. If you want it though, uncomment the code.
@@ -175,12 +175,12 @@
if(target.status != LIGHT_OK)
if(CanUse(U))
if(!Use(U)) return
- to_chat(U, "You replace the [target.get_fitting_name()] with the [src].")
+ to_chat(U, span_notice("You replace the [target.get_fitting_name()] with the [src]."))
if(target.status != LIGHT_EMPTY)
var/new_bulbs = AddShards(1)
if(new_bulbs != 0)
- to_chat(U, "\The [src] has fabricated a new bulb from the broken bulbs it has stored. It now has [uses] uses.")
+ to_chat(U, span_notice("\The [src] has fabricated a new bulb from the broken bulbs it has stored. It now has [uses] uses."))
playsound(src, 'sound/machines/ding.ogg', 50, 1)
target.status = LIGHT_EMPTY
target.installed_light = null //Remove the light!
diff --git a/code/game/objects/items/devices/locker_painter.dm b/code/game/objects/items/devices/locker_painter.dm
index 70c1897ca3..c4af2de572 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)
- to_chat(user, "\The [src] can only be used on closets.")
+ to_chat(user, span_warning("\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)
- to_chat(user, "\The [src] cannot paint broken closets.")
+ to_chat(user, span_warning("\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)
- to_chat(user, "\The [src] flashes an error light. You might need to reconfigure it.")
+ to_chat(user, span_warning("\The [src] flashes an error light. You might need to reconfigure it."))
return
/obj/item/closet_painter/attack_self(var/mob/user)
@@ -140,7 +140,7 @@
var/new_colour = tgui_input_list(usr, "Select a color:", "Color Selection", colours)
if(new_colour && !isnull(colours[new_colour]))
colour = new_colour
- to_chat(usr, "You set \the [src] regular closet colour to '[colour]'.")
+ to_chat(usr, span_notice("You set \the [src] regular closet colour to '[colour]'."))
/obj/item/closet_painter/verb/choose_colour_secure()
set name = "Choose Secure Colour"
@@ -154,4 +154,4 @@
var/new_colour_secure = tgui_input_list(usr, "Select a color:", "Color Selection", colours_secure)
if(new_colour_secure && !isnull(colours_secure[new_colour_secure]))
colour_secure = new_colour_secure
- to_chat(usr, "You set \the [src] secure closet colour to '[colour_secure]'.")
+ to_chat(usr, span_notice("You set \the [src] secure closet colour to '[colour_secure]'."))
diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm
index 25a30be03b..f606102e42 100644
--- a/code/game/objects/items/devices/megaphone.dm
+++ b/code/game/objects/items/devices/megaphone.dm
@@ -13,15 +13,15 @@
/obj/item/megaphone/proc/can_broadcast(var/mob/living/user)
if(user.client)
if(user.client.prefs.muted & MUTE_IC)
- to_chat(user, "You cannot speak in IC (muted).")
+ to_chat(user, span_warning("You cannot speak in IC (muted)."))
return FALSE
if(!(ishuman(user) || user.isSynthetic()))
- to_chat(user, "You don't know how to use this!")
+ to_chat(user, span_warning("You don't know how to use this!"))
return FALSE
if(user.silent)
return FALSE
if(spamcheck > world.time)
- to_chat(user, "[src] needs to recharge!")
+ to_chat(user, span_warning("[src] needs to recharge!"))
return FALSE
if(loc != user)
return FALSE
@@ -36,7 +36,7 @@
user.audible_message("[user.GetVoice()][user.GetAltName()] broadcasts, \"[insult]\"", runemessage = insult)
insults--
else
- to_chat(user, "*BZZZZzzzzzt*")
+ to_chat(user, span_warning("*BZZZZzzzzzt*"))
else
user.audible_message("[user.GetVoice()][user.GetAltName()] broadcasts, \"[message]\"", runemessage = message)
@@ -54,7 +54,7 @@
/obj/item/megaphone/emag_act(var/remaining_charges, var/mob/user)
if(!emagged)
- to_chat(user, "You overload [src]'s voice synthesizer.")
+ to_chat(user, span_warning("You overload [src]'s voice synthesizer."))
emagged = TRUE
insults = rand(1, 3)//to prevent caps spam.
return TRUE
@@ -82,13 +82,13 @@
if(!("comic sans ms" in font_options))
font_options = list("comic sans ms")
broadcast_font = "comic sans ms"
- to_chat(user, "\The [src] emits a silly sound.")
+ to_chat(user, span_notice("\The [src] emits a silly sound."))
if(!("#ff69b4" in color_options))
color_options = list("#ff69b4")
broadcast_color = "#ff69b4"
if(insults <= 0)
insults = rand(1,3)
- to_chat(user, "You re-scramble \the [src]'s voice synthesizer.")
+ to_chat(user, span_warning("You re-scramble \the [src]'s voice synthesizer."))
return 1
/obj/item/megaphone/super/verb/turn_volume_dial()
@@ -152,12 +152,12 @@
M.make_jittery(50)
insults--
else
- user.audible_message("*BZZZZzzzzzt*")
+ user.audible_message(span_critical("*BZZZZzzzzzt*"))
if(prob(40) && insults <= 0)
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(2, 1, get_turf(user))
s.start()
- user.visible_message("\The [src] sparks violently!")
+ user.visible_message(span_warning("\The [src] sparks violently!"))
spawn(30)
explosion(get_turf(src), -1, -1, 1, 3, adminlog = 1)
qdel(src)
diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm
index d1915aa09d..91e50acc55 100644
--- a/code/game/objects/items/devices/modkit.dm
+++ b/code/game/objects/items/devices/modkit.dm
@@ -23,7 +23,7 @@
return //it shouldn't be null, okay?
if(!parts)
- to_chat(user, "This kit has no parts for this modification left.")
+ to_chat(user, span_warning("This kit has no parts for this modification left."))
user.drop_from_inventory(src)
qdel(src)
return
@@ -35,22 +35,22 @@
var/obj/item/clothing/I = O
if (!istype(I) || !allowed)
- to_chat(user, "[src] is unable to modify that.")
+ to_chat(user, span_notice("[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)
- to_chat(user, "[I] is already modified.")
+ to_chat(user, span_notice("[I] is already modified."))
return
if(!isturf(O.loc))
- to_chat(user, "[O] must be safely placed on the ground for modification.")
+ to_chat(user, span_warning("[O] must be safely placed on the ground for modification."))
return
playsound(src, O.usesound, 100, 1)
- user.visible_message("\The [user] opens \the [src] and modifies \the [O].","You open \the [src] and modify \the [O].")
+ user.visible_message("\The [user] opens \the [src] and modifies \the [O].",span_notice("You open \the [src] and modify \the [O]."))
I.refit_for_species(target_species)
diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm
index 673458f821..cdaa821576 100644
--- a/code/game/objects/items/devices/multitool.dm
+++ b/code/game/objects/items/devices/multitool.dm
@@ -36,7 +36,7 @@
var/choice = tgui_alert(usr, "What do you want to do with \the [src]?", "Multitool Menu", list("Switch Mode", "Clear Buffers", "Cancel"))
switch(choice)
if("Clear Buffers")
- to_chat(user,"You clear \the [src]'s memory.")
+ to_chat(user,span_notice("You clear \the [src]'s memory."))
buffer = null
connecting = null
connectable = null
@@ -47,7 +47,7 @@
if("Switch Mode")
mode_switch(user)
else
- to_chat(user,"You lower \the [src].")
+ to_chat(user,span_notice("You lower \the [src]."))
return
update_icon()
@@ -61,7 +61,7 @@
mode_index += 1
toolmode = modes[mode_index]
- to_chat(user,"\The [src] is now set to [toolmode].")
+ to_chat(user,span_notice("\The [src] is now set to [toolmode]."))
accepting_refs = (toolmode == MULTITOOL_MODE_INTCIRCUITS)
diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm
index 0f4276152c..15de1f355d 100644
--- a/code/game/objects/items/devices/paicard.dm
+++ b/code/game/objects/items/devices/paicard.dm
@@ -59,21 +59,21 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/paicard)
if(pai != null) //Have a person in them already?
return ..()
if(is_damage_critical())
- to_chat(usr, "That card is too damaged to activate!")
+ to_chat(usr, span_warning("That card is too damaged to activate!"))
return
var/time_till_respawn = user.time_till_respawn()
if(time_till_respawn == -1) // Special case, never allowed to respawn
- to_chat(usr, "Respawning is not allowed!")
+ to_chat(usr, span_warning("Respawning is not allowed!"))
else if(time_till_respawn) // Nonzero time to respawn
- to_chat(usr, "You can't do that yet! You died too recently. You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes.")
+ to_chat(usr, span_warning("You can't do that yet! You died too recently. You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes."))
return
if(jobban_isbanned(usr, JOB_PAI))
- to_chat(usr,"You cannot join a pAI card when you are banned from playing as a pAI.")
+ to_chat(usr,span_warning("You cannot join a pAI card when you are banned from playing as a pAI."))
return
for(var/ourkey in paikeys)
if(ourkey == user.ckey)
- to_chat(usr, "You can't just rejoin any old pAI card!!! Your card still exists.")
+ to_chat(usr, span_warning("You can't just rejoin any old pAI card!!! Your card still exists."))
return
var/choice = tgui_alert(user, "You sure you want to inhabit this PAI, or submit yourself to being recruited?", "Confirmation", list("Inhabit", "Recruit", "Cancel"))
@@ -136,7 +136,7 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/paicard)
/obj/item/paicard/proc/access_screen(mob/user)
if(is_damage_critical())
- to_chat(user, "WARNING: CRITICAL HARDWARE FAILURE, SERVICE DEVICE IMMEDIATELY")
+ to_chat(user, span_warning("WARNING: CRITICAL HARDWARE FAILURE, SERVICE DEVICE IMMEDIATELY"))
return
if (!in_range(src, user))
return
@@ -430,7 +430,7 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/paicard)
if(pai)
return
if(last_notify == 0 || (5 MINUTES <= world.time - last_notify))
- audible_message("\The [src] flashes a message across its screen, \"Additional personalities available for download.\"", hearing_distance = world.view, runemessage = "bleeps!")
+ audible_message(span_notice("\The [src] flashes a message across its screen, \"Additional personalities available for download.\""), hearing_distance = world.view, runemessage = "bleeps!")
last_notify = world.time
/obj/item/paicard/emp_act(severity)
@@ -445,13 +445,13 @@ GLOBAL_LIST_BOILERPLATE(all_pai_cards, /obj/item/paicard)
/obj/item/paicard/see_emote(mob/living/M, text)
if(pai && pai.client && !pai.canmove)
- var/rendered = "[text]"
+ var/rendered = span_message("[text]")
pai.show_message(rendered, 2)
..()
/obj/item/paicard/show_message(msg, type, alt, alt_type)
if(pai && pai.client)
- var/rendered = "[msg]"
+ var/rendered = span_message("[msg]")
pai.show_message(rendered, type)
..()
diff --git a/code/game/objects/items/devices/personal_shield_generator_vr.dm b/code/game/objects/items/devices/personal_shield_generator_vr.dm
index 6292a2bc6e..4804859248 100644
--- a/code/game/objects/items/devices/personal_shield_generator_vr.dm
+++ b/code/game/objects/items/devices/personal_shield_generator_vr.dm
@@ -166,9 +166,9 @@
reattach_gun(user)
else if(istype(W, /obj/item/cell))
if(bcell)
- to_chat(user, "\The [src] already has a cell.")
+ to_chat(user, span_notice("\The [src] already has a cell."))
else if(!istype(W, /obj/item/cell/device/weapon)) //Weapon cells only!
- to_chat(user, "This cell will not fit in the device.")
+ to_chat(user, span_notice("This cell will not fit in the device."))
else
if(!user.unEquip(W))
return
@@ -176,7 +176,7 @@
bcell = W
if(active_weapon)
active_weapon.power_supply = bcell
- to_chat(user, "You install a cell in \the [src].")
+ to_chat(user, span_notice("You install a cell in \the [src]."))
update_icon()
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
@@ -193,7 +193,7 @@
if(active_weapon)
reattach_gun() //Put the gun back if it's out. No shooting if we don't have a cell!
active_weapon.power_supply = null //No power cell anymore!
- to_chat(user, "You remove the cell from \the [src], destroying the battery.")
+ to_chat(user, span_notice("You remove the cell from \the [src], destroying the battery."))
update_icon()
return
else
@@ -205,7 +205,7 @@
if(active_weapon)
reattach_gun() //Put the gun back if it's out. No shooting if we don't have a cell!
active_weapon.power_supply = null //No power cell anymore!
- to_chat(user, "You remove the cell from \the [src].")
+ to_chat(user, span_notice("You remove the cell from \the [src]."))
update_icon()
else if(istype(W,/obj/item/multitool))
var/new_color = input(usr, "Choose a color to set the shield to!", "", effect_color) as color|null
@@ -243,22 +243,22 @@
user.last_special = world.time + 10 //No spamming!
if(!bcell || !bcell.check_charge(generator_hit_cost) || !bcell.check_charge(generator_active_cost))
- to_chat(user, "You require a charged cell to do this!")
+ to_chat(user, span_warning("You require a charged cell to do this!"))
return
if(!slot_check())
- to_chat(user, "You need to equip [src] before starting the shield up!")
+ to_chat(user, span_warning("You need to equip [src] before starting the shield up!"))
return
else
if(shield_active)
shield_active = !shield_active //Deactivate the shield!
- to_chat(user, "You deactive the shield!")
+ to_chat(user, span_warning("You deactive the shield!"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
STOP_PROCESSING(SSobj, src)
playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) //Shield turning off! PLACEHOLDER
else
shield_active = !shield_active
- to_chat(user, "You activate the shield!")
+ to_chat(user, span_warning("You activate the shield!"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection) //Just to make sure they aren't using two at once!
user.add_modifier(modifier_type)
user.update_modifier_visuals() //Forces coloration to WORK.
@@ -277,11 +277,11 @@
user.last_special = world.time + 10 //No spamming!
if(!active_weapon)
- to_chat(user, "The gun is missing!")
+ to_chat(user, span_warning("The gun is missing!"))
return
if(!bcell)
- to_chat(user, "The gun requires a power supply!")
+ to_chat(user, span_warning("The gun requires a power supply!"))
return
if(active_weapon.loc != src)
@@ -289,17 +289,17 @@
return
if(!slot_check())
- to_chat(user, "You need to equip [src] before taking out [active_weapon].")
+ to_chat(user, span_warning("You need to equip [src] before taking out [active_weapon]."))
else
if(!usr.put_in_hands(active_weapon)) //Detach the gun into the user's hands
- to_chat(user, "You need a free hand to hold the gun!")
+ to_chat(user, span_warning("You need a free hand to hold the gun!"))
update_icon() //success
/obj/item/personal_shield_generator/process()
if(!bcell) //They removed the battery midway.
if(istype(loc, /mob/living/carbon/human)) //We on someone? Tell them it turned off.
var/mob/living/carbon/human/user = loc
- to_chat(user, "The shield deactivates! An error message pops up on screen: 'Cell missing. Cell replacement required.'")
+ to_chat(user, span_warning("The shield deactivates! An error message pops up on screen: 'Cell missing. Cell replacement required.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
shield_active = 0
STOP_PROCESSING(SSobj, src)
@@ -311,7 +311,7 @@
if(bcell.rigged) //They turned it back on after it was rigged to go boom.
if(istype(loc, /mob/living/carbon/human)) //Deactivate the shield, first. You're not getting reduced damage...
var/mob/living/carbon/human/user = loc
- to_chat(user, "The shield deactivates, an error message popping up on screen: 'Cell Reactor Critically damaged. Cell replacement required.'")
+ to_chat(user, span_warning("The shield deactivates, an error message popping up on screen: 'Cell Reactor Critically damaged. Cell replacement required.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
if(active_weapon) //Retract the gun. There's about to be no cell anymore.
@@ -332,7 +332,7 @@
shield_active = 0
if(istype(loc, /mob/living/carbon/human)) //We on someone? Tell them it turned off.
var/mob/living/carbon/human/user = loc
- to_chat(user, "The shield deactivates, an error message popping up on screen: 'Cell out of charge.'")
+ to_chat(user, span_warning("The shield deactivates, an error message popping up on screen: 'Cell out of charge.'"))
user.remove_modifiers_of_type(/datum/modifier/shield_projection)
STOP_PROCESSING(SSobj, src)
update_icon()
@@ -369,7 +369,7 @@
if(ismob(active_weapon.loc))
var/mob/M = active_weapon.loc
if(M.drop_from_inventory(active_weapon, src))
- to_chat(user, "\The [active_weapon] snaps back into the main unit.")
+ to_chat(user, span_notice("\The [active_weapon] snaps back into the main unit."))
else
active_weapon.forceMove(src)
@@ -421,13 +421,13 @@
if(busy)
return 0
if(!check_charge(charge_cost))
- to_chat(user, "\The [src] doesn't have enough charge left to do that.")
+ to_chat(user, span_warning("\The [src] doesn't have enough charge left to do that."))
return 0
if(!wielded && !isrobot(user))
- to_chat(user, "You need to wield the gun with both hands before you can use it on someone!")
+ to_chat(user, span_warning("You need to wield the gun with both hands before you can use it on someone!"))
return 0
if(cooldown)
- to_chat(user, "\The [src] are re-energizing!")
+ to_chat(user, span_warning("\The [src] are re-energizing!"))
return 0
return 1
@@ -509,11 +509,11 @@
/obj/item/personal_shield_generator/belt/mining/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/borg/upgrade/shield_upgrade))
if(modifier_type == /datum/modifier/shield_projection/mining/strong)
- to_chat(user, "This shield generator is already upgraded!")
+ to_chat(user, span_warning("This shield generator is already upgraded!"))
return
modifier_type = /datum/modifier/shield_projection/mining/strong
upgraded = 1
- to_chat(user, "You upgrade the [src] with the [W]!")
+ to_chat(user, span_notice("You upgrade the [src] with the [W]!"))
user.drop_from_inventory(W)
qdel(W)
else
@@ -602,4 +602,4 @@
/obj/item/cell/device/shield_generator/parry //The cell for the 'parry' shield gen.
maxcharge = 100
charge_amount = 100
- charge_delay = 20 //Starts charging two seconds after it's discharged.
\ No newline at end of file
+ charge_delay = 20 //Starts charging two seconds after it's discharged.
diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm
index 608bd9651a..ff2de7da3d 100644
--- a/code/game/objects/items/devices/powersink.dm
+++ b/code/game/objects/items/devices/powersink.dm
@@ -41,7 +41,7 @@
else
anchored = TRUE
mode = 1
- src.visible_message("[user] attaches [src] to the cable!")
+ src.visible_message(span_notice("[user] attaches [src] to the cable!"))
playsound(src, I.usesound, 50, 1)
return
else
@@ -53,7 +53,7 @@
STOP_PROCESSING_POWER_OBJECT(src)
anchored = FALSE
mode = 0
- src.visible_message("[user] detaches [src] from the cable!")
+ src.visible_message(span_notice("[user] detaches [src] from the cable!"))
set_light(0)
playsound(src, I.usesound, 50, 1)
icon_state = "powersink0"
@@ -70,14 +70,14 @@
if(0)
..()
if(1)
- src.visible_message("[user] activates [src]!")
+ src.visible_message(span_notice("[user] activates [src]!"))
mode = 2
icon_state = "powersink1"
START_PROCESSING(SSobj, src)
datum_flags &= ~DF_ISPROCESSING // Have to reset this flag so that PROCESSING_POWER_OBJECT can re-add it. It fails if the flag is already present. - Ater
START_PROCESSING_POWER_OBJECT(src)
if(2) //This switch option wasn't originally included. It exists now. --NeoFite
- src.visible_message("[user] deactivates [src]!")
+ src.visible_message(span_notice("[user] deactivates [src]!"))
mode = 1
set_light(0)
icon_state = "powersink0"
diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm
index 5ead9ac23e..87c067ae80 100644
--- a/code/game/objects/items/devices/radio/beacon.dm
+++ b/code/game/objects/items/devices/radio/beacon.dm
@@ -37,7 +37,7 @@ GLOBAL_LIST_BOILERPLATE(all_beacons, /obj/item/radio/beacon)
/obj/item/radio/beacon/syndicate/attack_self(mob/user as mob)
if(user)
- to_chat(user, "Locked In")
+ to_chat(user, span_notice("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 3e50dbf045..3b9e655765 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/radio/electropack/attack_hand(mob/living/user as mob)
if(src == user.back)
- to_chat(user, "You need help taking this off!")
+ to_chat(user, span_notice("You need help taking this off!"))
return
..()
@@ -25,7 +25,7 @@
..()
if(istype(W, /obj/item/clothing/head/helmet))
if(!b_stat)
- to_chat(user, "[src] is not ready to be attached!")
+ to_chat(user, span_notice("[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
- to_chat(M, "You feel a sharp shock!")
+ to_chat(M, span_danger("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/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index 71f6ff6e21..bd3bcb4eba 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -139,7 +139,7 @@
playsound(src, W.usesound, 50, 1)
update_icon()
else if(wiresexposed && W.has_tool_quality(TOOL_WIRECUTTER))
- user.visible_message("[user] has cut the wires inside \the [src]!", "You have cut the wires inside \the [src].")
+ user.visible_message(span_warning("[user] has cut the wires inside \the [src]!"), "You have cut the wires inside \the [src].")
playsound(src, W.usesound, 50, 1)
new/obj/item/stack/cable_coil(get_turf(src), 5)
var/obj/structure/frame/A = new /obj/structure/frame(src.loc)
@@ -200,15 +200,15 @@
//VOREStation Add Start
/obj/item/radio/intercom/AICtrlClick(var/mob/user)
ToggleBroadcast()
- to_chat(user, "\The [src]'s microphone is now [broadcasting ? "enabled" : "disabled"].")
+ to_chat(user, span_notice("\The [src]'s microphone is now [broadcasting ? "enabled" : "disabled"]."))
/obj/item/radio/intercom/AIAltClick(var/mob/user)
if(frequency == AI_FREQ)
set_frequency(initial(frequency))
- to_chat(user, "\The [src]'s frequency is now set to [span_green("Default")].")
+ to_chat(user, span_notice("\The [src]'s frequency is now set to [span_green("Default")]."))
else
set_frequency(AI_FREQ)
- to_chat(user, "\The [src]'s frequency is now set to [span_pink("AI Private")].")
+ to_chat(user, span_notice("\The [src]'s frequency is now set to [span_pink("AI Private")]."))
//VOREStation Add End
/obj/item/radio/intercom/locked
var/locked_frequency
diff --git a/code/game/objects/items/devices/radio/jammer.dm b/code/game/objects/items/devices/radio/jammer.dm
index a42d1c1e68..9d00ccde62 100644
--- a/code/game/objects/items/devices/radio/jammer.dm
+++ b/code/game/objects/items/devices/radio/jammer.dm
@@ -47,7 +47,7 @@ var/global/list/active_radio_jammers = list()
/obj/item/radio_jammer/proc/turn_off(mob/user)
if(user)
- to_chat(user,"\The [src] deactivates.")
+ to_chat(user,span_warning("\The [src] deactivates."))
STOP_PROCESSING(SSobj, src)
active_radio_jammers -= src
on = FALSE
@@ -55,7 +55,7 @@ var/global/list/active_radio_jammers = list()
/obj/item/radio_jammer/proc/turn_on(mob/user)
if(user)
- to_chat(user,"\The [src] is now active.")
+ to_chat(user,span_notice("\The [src] is now active."))
START_PROCESSING(SSobj, src)
active_radio_jammers += src
on = TRUE
@@ -74,7 +74,7 @@ var/global/list/active_radio_jammers = list()
/obj/item/radio_jammer/attack_hand(mob/user)
if(user.get_inactive_hand() == src && power_source)
- to_chat(user,"You eject \the [power_source] from \the [src].")
+ to_chat(user,span_notice("You eject \the [power_source] from \the [src]."))
user.put_in_hands(power_source)
power_source = null
turn_off()
@@ -88,7 +88,7 @@ var/global/list/active_radio_jammers = list()
if(power_source)
turn_on(user)
else
- to_chat(user,"\The [src] has no power source!")
+ to_chat(user,span_warning("\The [src] has no power source!"))
/obj/item/radio_jammer/attackby(obj/W, mob/user)
if(istype(W,/obj/item/cell/device/weapon) && !power_source)
@@ -97,7 +97,7 @@ var/global/list/active_radio_jammers = list()
user.unEquip(power_source)
power_source.forceMove(src)
update_icon()
- to_chat(user,"You insert \the [power_source] into \the [src].")
+ to_chat(user,span_notice("You insert \the [power_source] into \the [src]."))
/obj/item/radio_jammer/update_icon()
if(on)
diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm
index de007b9669..03a2f53da9 100644
--- a/code/game/objects/items/devices/radio/radio.dm
+++ b/code/game/objects/items/devices/radio/radio.dm
@@ -277,10 +277,10 @@ var/global/list/default_medbay_channels = list(
subspace_transmission = !subspace_transmission
if(!subspace_transmission)
channels = list()
- to_chat(usr, "Subspace Transmission is disabled")
+ to_chat(usr, span_notice("Subspace Transmission is disabled"))
else
recalculateChannels()
- to_chat(usr, "Subspace Transmission is enabled")
+ to_chat(usr, span_notice("Subspace Transmission is enabled"))
. = TRUE
if("toggleLoudspeaker")
if(!subspace_switchable)
@@ -288,9 +288,9 @@ var/global/list/default_medbay_channels = list(
loudspeaker = !loudspeaker
if(loudspeaker)
- to_chat(usr, "Loadspeaker enabled.")
+ to_chat(usr, span_notice("Loadspeaker enabled."))
else
- to_chat(usr, "Loadspeaker disabled.")
+ to_chat(usr, span_notice("Loadspeaker disabled."))
. = TRUE
if(. && iscarbon(usr))
@@ -472,14 +472,14 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
if(bluespace_radio)
//Nothing to transmit to
if(!bs_tx_weakref)
- to_chat(loc, "\The [src] buzzes to inform you of the lack of a functioning connection.")
+ to_chat(loc, span_warning("\The [src] buzzes to inform you of the lack of a functioning connection."))
return FALSE
var/obj/machinery/telecomms/tx_to = bs_tx_weakref.resolve()
//Was linked, now destroyed or something
if(!tx_to)
bs_tx_weakref = null
- to_chat(loc, "\The [src] buzzes to inform you of the lack of a functioning connection.")
+ to_chat(loc, span_warning("\The [src] buzzes to inform you of the lack of a functioning connection."))
return FALSE
//Transmitted in the blind. If we get a message back, cool. If not, oh well.
@@ -496,7 +496,7 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
distance = 99
else
distance = jamming["distance"]
- to_chat(M, "[icon2html(src, M.client)] You hear the [distance <= 2 ? "loud hiss" : "soft hiss"] of static.")
+ to_chat(M, span_danger("[icon2html(src, M.client)] You hear the [distance <= 2 ? "loud hiss" : "soft hiss"] of static."))
return FALSE
// First, we want to generate a new radio signal
@@ -515,7 +515,7 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
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, span_warning("\The [src] pings as it falls back to local radio transmission."))
subspace_transmission = FALSE
else //Oh well
@@ -543,7 +543,7 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
if(signal.data["done"] && (pos_z in signal.data["level"]))
if(adhoc_fallback)
- to_chat(loc, "\The [src] pings as it reestablishes subspace communications.")
+ to_chat(loc, span_notice("\The [src] pings as it reestablishes subspace communications."))
subspace_transmission = TRUE
// we're done here.
return TRUE
@@ -607,9 +607,9 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
if((in_range(src, user) || loc == user))
if(b_stat)
- . += "\The [src] can be attached and modified!"
+ . += span_notice("\The [src] can be attached and modified!")
else
- . += "\The [src] can not be modified or attached!"
+ . += span_notice("\The [src] can not be modified or attached!")
/obj/item/radio/attackby(obj/item/W as obj, mob/user as mob)
..()
@@ -619,9 +619,9 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
b_stat = !( b_stat )
if(!istype(src, /obj/item/radio/beacon))
if (b_stat)
- user.show_message("\The [src] can now be attached and modified!")
+ user.show_message(span_notice("\The [src] can now be attached and modified!"))
else
- user.show_message("\The [src] can no longer be modified or attached!")
+ user.show_message(span_notice("\The [src] can no longer be modified or attached!"))
updateDialog()
//Foreach goto(83)
add_fingerprint(user)
diff --git a/code/game/objects/items/devices/radio/radiopack.dm b/code/game/objects/items/devices/radio/radiopack.dm
index 67f5cfb187..d47612e788 100644
--- a/code/game/objects/items/devices/radio/radiopack.dm
+++ b/code/game/objects/items/devices/radio/radiopack.dm
@@ -54,7 +54,7 @@
var/mob/living/carbon/human/user = usr
if(!handset)
- to_chat(user, "The handset is missing!")
+ to_chat(user, span_warning("The handset is missing!"))
return
if(handset.loc != src)
@@ -62,10 +62,10 @@
return
if(!slot_check())
- to_chat(user, "You need to equip [src] before taking out [handset].")
+ to_chat(user, span_warning("You need to equip [src] before taking out [handset]."))
else
if(!usr.put_in_hands(handset)) //Detach the handset into the user's hands
- to_chat(user, "You need a free hand to hold the handset!")
+ to_chat(user, span_warning("You need a free hand to hold the handset!"))
update_icon() //success
//checks that the base unit is in the correct slot to be used
@@ -91,7 +91,7 @@
if(ismob(handset.loc))
var/mob/M = handset.loc
if(M.drop_from_inventory(handset, src))
- to_chat(user, "\The [handset] snaps back into the main unit.")
+ to_chat(user, span_notice("\The [handset] snaps back into the main unit."))
else
handset.forceMove(src)
@@ -138,7 +138,7 @@
return -1
if(!freq)
return -1
-
+
//Only listen on main freq
if(freq == frequency)
return canhear_range
diff --git a/code/game/objects/items/devices/scanners/gas.dm b/code/game/objects/items/devices/scanners/gas.dm
index ee14422748..6fd6a1b98a 100644
--- a/code/game/objects/items/devices/scanners/gas.dm
+++ b/code/game/objects/items/devices/scanners/gas.dm
@@ -25,7 +25,7 @@
if (user.stat)
return
if (!user.IsAdvancedToolUser())
- to_chat(usr, "You don't have the dexterity to do this!")
+ to_chat(usr, span_warning("You don't have the dexterity to do this!"))
return
analyze_gases(src, user)
diff --git a/code/game/objects/items/devices/scanners/guide.dm b/code/game/objects/items/devices/scanners/guide.dm
index 935734ca0e..15c880e535 100644
--- a/code/game/objects/items/devices/scanners/guide.dm
+++ b/code/game/objects/items/devices/scanners/guide.dm
@@ -3,7 +3,7 @@
set desc = "Toggles whether or not \the [src] will provide guidance and instruction in addition to scanning."
set category = "Object"
guide = !guide
- to_chat(usr, "You toggle \the [src]'s guidance system [guide ? "on" : "off"].")
+ to_chat(usr, span_notice("You toggle \the [src]'s guidance system [guide ? "on" : "off"]."))
/obj/item/healthanalyzer/guide
@@ -106,6 +106,6 @@
if(dat)
peeb +="GUIDANCE SYSTEM BEGIN
"
peeb += dat
- peeb += "For more detailed information about patient condition, use the stationary scanner in medbay."
+ peeb += span_notice("For more detailed information about patient condition, use the stationary scanner in medbay.")
user.show_message(peeb, 1)
diff --git a/code/game/objects/items/devices/scanners/halogen.dm b/code/game/objects/items/devices/scanners/halogen.dm
index 218ec9f953..2303c9deee 100644
--- a/code/game/objects/items/devices/scanners/halogen.dm
+++ b/code/game/objects/items/devices/scanners/halogen.dm
@@ -11,11 +11,11 @@
/obj/item/halogen_counter/attack(mob/living/M as mob, mob/living/user as mob)
if(!iscarbon(M))
- to_chat(user, "This device can only scan organic beings!")
+ to_chat(user, span_warning("This device can only scan organic beings!"))
return
- user.visible_message("\The [user] has analyzed [M]'s radiation levels!", "Analyzing Results for [M]:")
+ user.visible_message(span_warning("\The [user] has analyzed [M]'s radiation levels!"), span_notice("Analyzing Results for [M]:"))
if(M.radiation)
- to_chat(user, "Radiation Level: [M.radiation]")
+ to_chat(user, span_notice("Radiation Level: [M.radiation]"))
else
- to_chat(user, "No radiation detected.")
+ to_chat(user, span_notice("No radiation detected."))
return
diff --git a/code/game/objects/items/devices/scanners/health.dm b/code/game/objects/items/devices/scanners/health.dm
index 117d2185c7..ad8029bc78 100644
--- a/code/game/objects/items/devices/scanners/health.dm
+++ b/code/game/objects/items/devices/scanners/health.dm
@@ -26,9 +26,9 @@
/obj/item/healthanalyzer/examine(mob/user)
. = ..()
if(guide)
- . += "Guidance is currently enabled."
+ . += span_notice("Guidance is currently enabled.")
else
- . += "Guidance is currently disabled."
+ . += span_notice("Guidance is currently disabled.")
/obj/item/healthanalyzer/do_surgery(mob/living/M, mob/living/user)
if(user.a_intent != I_HELP) //in case it is ever used as a surgery tool
@@ -42,20 +42,20 @@
/obj/item/healthanalyzer/proc/scan_mob(mob/living/M, mob/living/user)
var/dat = ""
if ((CLUMSY in user.mutations) && prob(50))
- user.visible_message("\The [user] has analyzed the floor's vitals!", "You try to analyze the floor's vitals!")
+ user.visible_message(span_warning("\The [user] has analyzed the floor's vitals!"), span_warning("You try to analyze the floor's vitals!"))
dat += "Analyzing Results for the floor:
"
dat += "Overall Status: Healthy
"
dat += "\tDamage Specifics: 0-0-0-0
"
dat += "Key: Suffocation/Toxin/Burns/Brute
"
dat += "Body Temperature: ???"
- user.show_message("[dat]", 1)
+ user.show_message(span_notice("[dat]"), 1)
return
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return
flick("[icon_state]-scan", src) //makes it so that it plays the scan animation on a succesful scan
- user.visible_message("[user] has analyzed [M]'s vitals.","You have analyzed [M]'s vitals.")
+ user.visible_message(span_notice("[user] has analyzed [M]'s vitals."),span_notice("You have analyzed [M]'s vitals."))
if (!ishuman(M) || M.isSynthetic())
//these sensors are designed for organic life
@@ -63,8 +63,8 @@
dat += "\tKey: [span_cyan("Suffocation")]/[span_green("Toxin")]/[span_orange("Burns")]/[span_red("Brute")]
"
dat += "\tDamage Specifics: [span_cyan("?")] - [span_green("?")] - [span_orange("?")] - [span_red("?")]
"
dat += "Body Temperature: [M.bodytemperature-T0C]°C ([M.bodytemperature*1.8-459.67]°F)
"
- dat += "Warning: Blood Level ERROR: --% --cl. Type: ERROR
"
- dat += "Subject's pulse: [span_red("-- bpm.")]"
+ dat += "[span_warning("Warning: Blood Level ERROR: --% --cl.")] [span_notice("Type: ERROR")]
"
+ dat += span_notice("Subject's pulse: [span_red("-- bpm.")]")
user.show_message(dat, 1)
return
@@ -75,8 +75,10 @@
var/BR = M.getBruteLoss() > 50 ? "[M.getBruteLoss()]" : M.getBruteLoss()
if(M.status_flags & FAKEDEATH)
OX = fake_oxy > 50 ? "[fake_oxy]" : fake_oxy
- dat += "Analyzing Results for [M]:
"
- dat += "Overall Status: dead
"
+ dat += span_notice("Analyzing Results for [M]:")
+ dat += "
"
+ dat += span_notice("Overall Status: dead")
+ dat += "
"
else
dat += "Analyzing Results for [M]:\n\t Overall Status: [M.stat > 1 ? "dead" : "[round((M.health/M.getMaxHealth())*100) ]% healthy"]
"
dat += "\tKey: [span_cyan("Suffocation")]/[span_green("Toxin")]/[span_orange("Burns")]/[span_red("Brute")]
"
@@ -84,32 +86,36 @@
dat += "Body Temperature: [M.bodytemperature-T0C]°C ([M.bodytemperature*1.8-459.67]°F)
"
//VOREStation edit/addition starts
if(M.timeofdeath && (M.stat == DEAD || (M.status_flags & FAKEDEATH)))
- dat += "Time of Death: [worldtime2stationtime(M.timeofdeath)]
"
+ dat += span_notice("Time of Death: [worldtime2stationtime(M.timeofdeath)]")
+ dat += "
"
var/tdelta = round(world.time - M.timeofdeath)
if(tdelta < (DEFIB_TIME_LIMIT * 10))
- dat += "Subject died [DisplayTimeText(tdelta)] ago - resuscitation may be possible!
"
+ dat += span_notice("Subject died [DisplayTimeText(tdelta)] ago - resuscitation may be possible!")
+ dat += "
"
//VOREStation edit/addition ends
if(istype(M, /mob/living/carbon/human) && mode == 1)
var/mob/living/carbon/human/H = M
var/list/damaged = H.get_damaged_organs(1,1)
- dat += "Localized Damage, Brute/Burn:
"
+ dat += span_notice("Localized Damage, Brute/Burn:")
+ dat += "
"
if(length(damaged)>0)
for(var/obj/item/organ/external/org in damaged)
if(org.robotic >= ORGAN_ROBOT)
continue
else
- dat += " [capitalize(org.name)]: [(org.brute_dam > 0) ? "[org.brute_dam]" : 0]"
- dat += "[(org.status & ORGAN_BLEEDING)?"\[Bleeding\]":""] - "
+ dat += " [capitalize(org.name)]: [(org.brute_dam > 0) ? span_warning("[org.brute_dam]") : 0]"
+ dat += "[(org.status & ORGAN_BLEEDING)?span_danger("\[Bleeding\]"):""] - "
dat += "[(org.burn_dam > 0) ? "[span_orange("[org.burn_dam]")]" : 0]
"
else
- dat += " Limbs are OK.
"
+ dat += span_notice(" Limbs are OK.")
+ dat += "
"
OX = M.getOxyLoss() > 50 ? "[span_cyan("Severe oxygen deprivation detected")]" : "Subject bloodstream oxygen level normal"
TX = M.getToxLoss() > 50 ? "[span_green("Dangerous amount of toxins detected")]" : "Subject bloodstream toxin level minimal"
BU = M.getFireLoss() > 50 ? "[span_orange("Severe burn damage detected")]" : "Subject burn injury status O.K"
BR = M.getBruteLoss() > 50 ? "[span_red("Severe anatomical damage detected")]" : "Subject brute-force injury status O.K"
if(M.status_flags & FAKEDEATH)
- OX = fake_oxy > 50 ? "Severe oxygen deprivation detected" : "Subject bloodstream oxygen level normal"
+ OX = fake_oxy > 50 ? span_warning("Severe oxygen deprivation detected") : "Subject bloodstream oxygen level normal"
dat += "[OX] | [TX] | [BU] | [BR]
"
if(M.radiation)
if(advscan >= 2 && showadvscan == 1)
@@ -124,9 +130,11 @@
severity = "Moderate"
else if(M.radiation >= 100)
severity = "Low"
- dat += "[severity] levels of acute radiation sickness detected. [round(M.radiation/50)]Gy. [(severity == "Critical" || severity == "Lethal") ? " Immediate treatment advised." : ""]
"
+ dat += span_warning("[severity] levels of acute radiation sickness detected. [round(M.radiation/50)]Gy. [(severity == "Critical" || severity == "Lethal") ? " Immediate treatment advised." : ""]")
+ dat += "
"
else
- dat += "Acute radiation sickness detected.
"
+ dat += span_warning("Acute radiation sickness detected.")
+ dat += "
"
if(M.accumulated_rads)
if(advscan >= 2 && showadvscan == 1)
var/severity = ""
@@ -140,9 +148,11 @@
severity = "Mild"
else if(M.accumulated_rads >= 100)
severity = "Low"
- dat += "[severity] levels of chronic radiation sickness detected. [round(M.accumulated_rads/50)]Gy.
"
+ dat += span_warning("[severity] levels of chronic radiation sickness detected. [round(M.accumulated_rads/50)]Gy.")
+ dat += "
"
else
- dat += "Chronic radiation sickness detected.
"
+ dat += span_warning("Chronic radiation sickness detected.")
+ dat += "
"
if(iscarbon(M))
var/mob/living/carbon/C = M
if(C.reagents.total_volume)
@@ -151,88 +161,113 @@
var/unknownreagents[0]
for(var/datum/reagent/R as anything in C.reagents.reagent_list)
if(R.scannable)
- reagentdata["[R.id]"] = "\t[round(C.reagents.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ reagentdata["[R.id]"] = span_notice("\t[round(C.reagents.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ reagentdata["[R.id]"] += "
"
else
unknown++
- unknownreagents["[R.id]"] = "\t[round(C.reagents.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ unknownreagents["[R.id]"] = span_notice("\t[round(C.reagents.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ unknownreagents["[R.id]"] += "
"
if(reagentdata.len)
- dat += "Beneficial reagents detected in subject's blood:
"
+ dat += span_notice("Beneficial reagents detected in subject's blood:")
+ dat += "
"
for(var/d in reagentdata)
dat += reagentdata[d]
if(unknown)
if(advscan >= 3 && showadvscan == 1)
- dat += "Warning: Non-medical reagent[(unknown>1)?"s":""] detected in subject's blood:
"
+ dat += span_warning("Warning: Non-medical reagent[(unknown>1)?"s":""] detected in subject's blood:")
+ dat += "
"
for(var/d in unknownreagents)
dat += unknownreagents[d]
else
- dat += "Warning: Unknown substance[(unknown>1)?"s":""] detected in subject's blood.
"
+ dat += span_warning("Warning: Unknown substance[(unknown>1)?"s":""] detected in subject's blood.")
+ dat += "
"
if(C.ingested && C.ingested.total_volume)
var/unknown = 0
var/stomachreagentdata[0]
var/stomachunknownreagents[0]
for(var/datum/reagent/R as anything in C.ingested.reagent_list)
if(R.scannable)
- stomachreagentdata["[R.id]"] = "\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ stomachreagentdata["[R.id]"] = span_notice("\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ stomachreagentdata["[R.id]"] += "
"
if (advscan == 0 || showadvscan == 0)
- dat += "[R.name] found in subject's stomach.
"
+ dat += span_notice("[R.name] found in subject's stomach.")
+ dat += "
"
else
++unknown
- stomachunknownreagents["[R.id]"] = "\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ stomachunknownreagents["[R.id]"] = span_notice("\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ stomachunknownreagents["[R.id]"] += "
"
if(advscan >= 1 && showadvscan == 1)
- dat += "Beneficial reagents detected in subject's stomach:
"
+ dat += span_notice("Beneficial reagents detected in subject's stomach:")
+ dat += "
"
for(var/d in stomachreagentdata)
dat += stomachreagentdata[d]
if(unknown)
if(advscan >= 3 && showadvscan == 1)
- dat += "Warning: Non-medical reagent[(unknown > 1)?"s":""] found in subject's stomach:
"
+ dat += span_warning("Warning: Non-medical reagent[(unknown > 1)?"s":""] found in subject's stomach:")
+ dat += "
"
for(var/d in stomachunknownreagents)
dat += stomachunknownreagents[d]
else
- dat += "Unknown substance[(unknown > 1)?"s":""] found in subject's stomach.
"
+ dat += span_warning("Unknown substance[(unknown > 1)?"s":""] found in subject's stomach.")
+ dat += "
"
if(C.touching && C.touching.total_volume)
var/unknown = 0
var/touchreagentdata[0]
var/touchunknownreagents[0]
for(var/datum/reagent/R as anything in C.touching.reagent_list)
if(R.scannable)
- touchreagentdata["[R.id]"] = "\t[round(C.touching.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.can_overdose_touch && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ touchreagentdata["[R.id]"] = span_notice("\t[round(C.touching.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.can_overdose_touch && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ touchreagentdata["[R.id]"] += "
"
if (advscan == 0 || showadvscan == 0)
- dat += "[R.name] found in subject's dermis.
"
+ dat += span_notice("[R.name] found in subject's dermis.")
+ dat += "
"
else
++unknown
- touchunknownreagents["[R.id]"] = "\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.can_overdose_touch && R.volume > R.overdose) ? " - Overdose" : ""]
"
+ touchunknownreagents["[R.id]"] = span_notice("\t[round(C.ingested.get_reagent_amount(R.id), 1)]u [R.name][(R.overdose && R.can_overdose_touch && R.volume > R.overdose) ? " - [span_danger("Overdose")]" : ""]")
+ touchunknownreagents["[R.id]"] += "
"
if(advscan >= 1 && showadvscan == 1)
- dat += "Beneficial reagents detected in subject's dermis:
"
+ dat += span_notice("Beneficial reagents detected in subject's dermis:")
+ dat += "
"
for(var/d in touchreagentdata)
dat += touchreagentdata[d]
if(unknown)
if(advscan >= 3 && showadvscan == 1)
- dat += "Warning: Non-medical reagent[(unknown > 1)?"s":""] found in subject's dermis:
"
+ dat += span_warning("Warning: Non-medical reagent[(unknown > 1)?"s":""] found in subject's dermis:")
+ dat += "
"
for(var/d in touchunknownreagents)
dat += touchunknownreagents[d]
else
- dat += "Unknown substance[(unknown > 1)?"s":""] found in subject's dermis.
"
+ dat += span_warning("Unknown substance[(unknown > 1)?"s":""] found in subject's dermis.")
+ dat += "
"
if(C.virus2.len)
for (var/ID in C.virus2)
if (ID in virusDB)
var/datum/data/record/V = virusDB[ID]
- dat += "Warning: Pathogen [V.fields["name"]] detected in subject's blood. Known antigen : [V.fields["antigen"]]
"
+ dat += span_warning("Warning: Pathogen [V.fields["name"]] detected in subject's blood. Known antigen : [V.fields["antigen"]]")
+ dat += "
"
else
- dat += "Warning: Unknown pathogen detected in subject's blood.
"
+ dat += span_warning("Warning: Unknown pathogen detected in subject's blood.")
+ dat += "
"
if (M.getCloneLoss())
- dat += "Subject appears to have been imperfectly cloned.
"
+ dat += span_warning("Subject appears to have been imperfectly cloned.")
+ dat += "
"
// if (M.reagents && M.reagents.get_reagent_amount("inaprovaline"))
-// user.show_message("Bloodstream Analysis located [M.reagents:get_reagent_amount("inaprovaline")] units of rejuvenation chemicals.")
+// user.show_message(span_notice("Bloodstream Analysis located [M.reagents:get_reagent_amount("inaprovaline")] units of rejuvenation chemicals."))
if (M.has_brain_worms())
- dat += "Subject suffering from aberrant brain activity. Recommend further scanning.
"
+ dat += span_warning("Subject suffering from aberrant brain activity. Recommend further scanning.")
+ dat += "
"
else if (M.getBrainLoss() >= 60 || !M.has_brain())
- dat += "Subject is brain dead.
"
+ dat += span_warning("Subject is brain dead.")
+ dat += "
"
else if (M.getBrainLoss() >= 25)
- dat += "Severe brain damage detected. Subject likely to have a traumatic brain injury.
"
+ dat += span_warning("Severe brain damage detected. Subject likely to have a traumatic brain injury.")
+ dat += "
"
else if (M.getBrainLoss() >= 10)
- dat += "Significant brain damage detected. Subject may have had a concussion.
"
+ dat += span_warning("Significant brain damage detected. Subject may have had a concussion.")
+ dat += "
"
else if (M.getBrainLoss() >= 1)
- dat += "Minor brain damage detected.
"
+ dat += span_warning("Minor brain damage detected.")
+ dat += "
"
if(ishuman(M))
var/mob/living/carbon/human/H = M
for(var/obj/item/organ/internal/appendix/a in H.internal_organs)
@@ -244,9 +279,11 @@
else if(a.inflamed >= 1)
severity = "Mild"
if(severity)
- dat += "[severity] inflammation detected in subject [a.name].
"
+ dat += span_warning("[severity] inflammation detected in subject [a.name].")
+ dat += "
"
if(HUSK in H.mutations)
- dat += "Anatomical structure lost, resuscitation not possible!
"
+ dat += span_danger("Anatomical structure lost, resuscitation not possible!")
+ dat += "
"
// Infections, fractures, and IB
var/basic_fracture = 0 // If it's a basic scanner
var/basic_ib = 0 // If it's a basic scanner
@@ -268,36 +305,45 @@
dam_adj = "Moderate"
else
dam_adj = "Mild"
- dat += "[dam_adj] damage detected to subject's [i.name].
"
+ dat += span_warning("[dam_adj] damage detected to subject's [i.name].")
+ dat += "
"
else
- dat += "Damage detected to subject's [i.name].
"
+ dat += span_warning("Damage detected to subject's [i.name].")
+ dat += "
"
if(int_damage_acc >= 1 && (advscan < 2 || !showadvscan))
- dat += "Damage detected to subject's internal organs.
"
+ dat += span_warning("Damage detected to subject's internal organs.")
+ dat += "
"
for(var/obj/item/organ/external/e in H.organs)
if(!e)
continue
// Broken limbs
if(e.status & ORGAN_BROKEN)
if((e.name in list(BP_L_ARM, BP_R_ARM, BP_L_LEG, BP_R_LEG, BP_HEAD, BP_TORSO, BP_GROIN)) && (!e.splinted))
- fracture_dat += "Unsecured fracture in subject [e.name]. Splinting recommended for transport.
"
+ fracture_dat += span_warning("Unsecured fracture in subject [e.name]. Splinting recommended for transport.")
+ fracture_dat += "
"
else if(advscan >= 1 && showadvscan == 1)
- fracture_dat += "Bone fractures detected in subject [e.name].
"
+ fracture_dat += span_warning("Bone fractures detected in subject [e.name].")
+ fracture_dat += "
"
else
basic_fracture = 1
// Infections
if(e.has_infected_wound())
- dat += "Infected wound detected in subject [e.name]. Disinfection recommended.
"
+ dat += span_warning("Infected wound detected in subject [e.name]. Disinfection recommended.")
+ dat += "
"
// IB
for(var/datum/wound/W in e.wounds)
if(W.internal)
if(advscan >= 1 && showadvscan == 1)
- ib_dat += "Internal bleeding detected in subject [e.name].
"
+ ib_dat += span_warning("Internal bleeding detected in subject [e.name].")
+ ib_dat += "
"
else
basic_ib = 1
if(basic_fracture)
- fracture_dat += "Bone fractures detected. Advanced scanner required for location.
"
+ fracture_dat += span_warning("Bone fractures detected. Advanced scanner required for location.")
+ fracture_dat += "
"
if(basic_ib)
- ib_dat += "Internal bleeding detected. Advanced scanner required for location.
"
+ ib_dat += span_warning("Internal bleeding detected. Advanced scanner required for location.")
+ ib_dat += "
"
dat += fracture_dat
dat += infection_dat
dat += ib_dat
@@ -309,25 +355,30 @@
var/blood_type = H.dna.b_type
var/blood_reagent = H.species.blood_reagents
if(blood_volume <= H.species.blood_volume*H.species.blood_level_danger)
- dat += "Warning: Blood Level CRITICAL: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].
"
+ dat += span_danger("Warning: Blood Level CRITICAL: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].")
+ dat += "
"
else if(blood_volume <= H.species.blood_volume*H.species.blood_level_warning)
- dat += "Warning: Blood Level VERY LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].
"
+ dat += span_danger("Warning: Blood Level VERY LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].")
+ dat += "
"
else if(blood_volume <= H.species.blood_volume*H.species.blood_level_safe)
- dat += "Warning: Blood Level LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].
"
+ dat += span_danger("Warning: Blood Level LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].")
+ dat += "
"
else
- dat += "Blood Level Normal: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].
"
- dat += "Subject's pulse: [H.get_pulse(GETPULSE_TOOL)] bpm.
" // VORE Edit: Missed a linebreak here.
+ dat += span_notice("Blood Level Normal: [blood_percent]% [blood_volume]cl. Type: [blood_type]. Basis: [blood_reagent].")
+ dat += "
"
+ dat += span_notice("Subject's pulse: [H.pulse == PULSE_THREADY || H.pulse == PULSE_NONE ? span_red(H.get_pulse(GETPULSE_TOOL)) : span_blue(H.get_pulse(GETPULSE_TOOL))] bpm.") // VORE Edit: Missed a linebreak here.
+ dat += "
"
if(istype(H.species, /datum/species/xenochimera)) // VOREStation Edit Start: Visible feedback for medmains on Xenochimera.
if(H.stat == DEAD && H.revive_ready == REVIVING_READY && !H.hasnutriment())
- dat += "WARNING: Protein levels low. Subject incapable of reconstitution."
+ dat += span_danger("WARNING: Protein levels low. Subject incapable of reconstitution.")
else if(H.revive_ready == REVIVING_NOW)
- dat += "Subject is undergoing form reconstruction. Estimated time to finish is in: [round((H.revive_finished - world.time) / 10)] seconds."
+ dat += span_warning("Subject is undergoing form reconstruction. Estimated time to finish is in: [round((H.revive_finished - world.time) / 10)] seconds.")
else if(H.revive_ready == REVIVING_DONE)
- dat += "Subject is ready to hatch. Transfer to dark room for holding with food available."
+ dat += span_notice("Subject is ready to hatch. Transfer to dark room for holding with food available.")
else if(H.stat == DEAD)
- dat+= "WARNING: Defib will cause extreme pain and set subject feral. Sedation recommended prior to defibrillation."
+ dat+= span_danger("WARNING: Defib will cause extreme pain and set subject feral. Sedation recommended prior to defibrillation.")
else // If they bop them and they're not dead or reviving, give 'em a little notice.
- dat += "Subject is a Xenochimera. Treat accordingly."
+ dat += span_notice("Subject is a Xenochimera. Treat accordingly.")
// VOREStation Edit End
user.show_message(dat, 1)
if(guide)
diff --git a/code/game/objects/items/devices/scanners/mass_spectrometer.dm b/code/game/objects/items/devices/scanners/mass_spectrometer.dm
index 1647dbf65c..01d12d73a0 100644
--- a/code/game/objects/items/devices/scanners/mass_spectrometer.dm
+++ b/code/game/objects/items/devices/scanners/mass_spectrometer.dm
@@ -32,14 +32,14 @@
if (user.stat)
return
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return
if(reagents.total_volume)
var/list/blood_traces = list()
for(var/datum/reagent/R in reagents.reagent_list)
if(R.id != "blood")
reagents.clear_reagents()
- to_chat(user, "The sample was contaminated! Please insert another sample")
+ to_chat(user, span_warning("The sample was contaminated! Please insert another sample"))
return
else
blood_traces = params2list(R.data["trace_chem"])
diff --git a/code/game/objects/items/devices/scanners/sleevemate.dm b/code/game/objects/items/devices/scanners/sleevemate.dm
index 563d4ef37d..35ab35af3e 100644
--- a/code/game/objects/items/devices/scanners/sleevemate.dm
+++ b/code/game/objects/items/devices/scanners/sleevemate.dm
@@ -82,11 +82,11 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
if(ishuman(M))
scan_mob(M, user)
else
- to_chat(user,"Not a compatible subject to work with!")
+ to_chat(user,span_warning("Not a compatible subject to work with!"))
/obj/item/sleevemate/attack_self(mob/living/user)
if(!stored_mind)
- to_chat(user,"No stored mind in \the [src].")
+ to_chat(user,span_warning("No stored mind in \the [src]."))
return
var/choice = tgui_alert(user,"What would you like to do?","Stored: [stored_mind.name]",list("Delete","Backup","Cancel"))
@@ -94,10 +94,10 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
return
switch(choice)
if("Delete")
- to_chat(user,"Internal copy of [stored_mind.name] deleted.")
+ to_chat(user,span_notice("Internal copy of [stored_mind.name] deleted."))
clear_mind()
if("Backup")
- to_chat(user,"Internal copy of [stored_mind.name] backed up to database.")
+ to_chat(user,span_notice("Internal copy of [stored_mind.name] backed up to database."))
our_db.m_backup(stored_mind,null,one_time = TRUE)
if("Cancel")
return
@@ -165,7 +165,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
output += "
"
output += "Soulcatcher detected ([SC.brainmobs.len] minds)
"
for(var/mob/living/carbon/brain/caught_soul/mind in SC.brainmobs)
- output += "[mind.name]: [mind.transient == FALSE ? "\[Load\]" : "Incompatible"]
"
+ output += "[mind.name]: [mind.transient == FALSE ? "\[Load\]" : span_warning("Incompatible")]
"
if(stored_mind)
output += "Store in Soulcatcher: \[Perform\]
"
@@ -177,23 +177,23 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
//Sanity checking/href-hacking checking
if(usr.get_active_hand() != src)
- to_chat(usr,"You're not holding \the [src].")
+ to_chat(usr,span_warning("You're not holding \the [src]."))
return
var/target_ref = href_list["target"]
var/mob/living/target = locate(target_ref) in mob_list
if(!target)
- to_chat(usr,"Unable to operate on that target.")
+ to_chat(usr,span_warning("Unable to operate on that target."))
return
if(!usr.Adjacent(target))
- to_chat(usr,"You are too far from that target.")
+ to_chat(usr,span_warning("You are too far from that target."))
return
//The actual options
if(href_list["mindscan"])
if(!target.mind || (target.mind.name in prevent_respawns))
- to_chat(usr,"Target seems totally braindead.")
+ to_chat(usr,span_warning("Target seems totally braindead."))
return
var/nif
@@ -202,55 +202,55 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
nif = H.nif
persist_nif_data(H)
- usr.visible_message("[usr] begins scanning [target]'s mind.","You begin scanning [target]'s mind.")
+ usr.visible_message("[usr] begins scanning [target]'s mind.",span_notice("You begin scanning [target]'s mind."))
if(do_after(usr,8 SECONDS,target))
our_db.m_backup(target.mind,nif,one_time = TRUE)
- to_chat(usr,"Mind backed up!")
+ to_chat(usr,span_notice("Mind backed up!"))
else
- to_chat(usr,"You must remain close to your target!")
+ to_chat(usr,span_warning("You must remain close to your target!"))
return
if(href_list["bodyscan"])
if(!ishuman(target))
- to_chat(usr,"Target is not of an acceeptable body type.")
+ to_chat(usr,span_warning("Target is not of an acceeptable body type."))
return
var/mob/living/carbon/human/H = target
- usr.visible_message("[usr] begins scanning [target]'s body.","You begin scanning [target]'s body.")
+ usr.visible_message("[usr] begins scanning [target]'s body.",span_notice("You begin scanning [target]'s body."))
if(do_after(usr,8 SECONDS,target))
var/datum/transhuman/body_record/BR = new()
BR.init_from_mob(H, TRUE, TRUE, database_key = db_key)
- to_chat(usr,"Body scanned!")
+ to_chat(usr,span_notice("Body scanned!"))
else
- to_chat(usr,"You must remain close to your target!")
+ to_chat(usr,span_warning("You must remain close to your target!"))
return
if(href_list["mindsteal"])
if(!target.mind || (target.mind.name in prevent_respawns))
- to_chat(usr,"Target seems totally braindead.")
+ to_chat(usr,span_warning("Target seems totally braindead."))
return
if(stored_mind)
- to_chat(usr,"There is already someone's mind stored inside")
+ to_chat(usr,span_warning("There is already someone's mind stored inside"))
return
var/choice = tgui_alert(usr,"This will remove the target's mind from their body (and from the game as long as they're in the sleevemate). You can put them into a (mindless) body, a NIF, or back them up for normal resleeving, but you should probably have a plan in advance so you don't leave them unable to interact for too long. Continue?","Confirmation",list("Continue","Cancel"))
if(choice == "Continue" && usr.get_active_hand() == src && usr.Adjacent(target))
- usr.visible_message("[usr] begins downloading [target]'s mind!","You begin downloading [target]'s mind!")
+ usr.visible_message(span_warning("[usr] begins downloading [target]'s mind!"),span_notice("You begin downloading [target]'s mind!"))
if(do_after(usr,35 SECONDS,target)) //This is powerful, yo.
if(!stored_mind && target.mind)
get_mind(target)
- to_chat(usr,"Mind downloaded!")
+ to_chat(usr,span_notice("Mind downloaded!"))
return
if(href_list["mindput"])
if(!stored_mind)
- to_chat(usr,"\The [src] no longer has a stored mind.")
+ to_chat(usr,span_warning("\The [src] no longer has a stored mind."))
return
var/mob/living/carbon/human/H = target
@@ -271,11 +271,11 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
put_mind(sleevemate_mob)
SC.catch_mob(sleevemate_mob)
- to_chat(usr,"Mind transferred into Soulcatcher!")
+ to_chat(usr,span_notice("Mind transferred into Soulcatcher!"))
if(href_list["mindupload"])
if(!stored_mind)
- to_chat(usr,"\The [src] no longer has a stored mind.")
+ to_chat(usr,span_warning("\The [src] no longer has a stored mind."))
return
if(!istype(target))
@@ -284,20 +284,20 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
if(istype(target, /mob/living/carbon/human))
var/mob/living/carbon/human/H = target
if(H.resleeve_lock && stored_mind.loaded_from_ckey != H.resleeve_lock)
- to_chat(usr,"\The [H] is protected from impersonation!")
+ to_chat(usr,span_warning("\The [H] is protected from impersonation!"))
return
- usr.visible_message("[usr] begins uploading someone's mind into [target]!","You begin uploading a mind into [target]!")
+ usr.visible_message(span_warning("[usr] begins uploading someone's mind into [target]!"),span_notice("You begin uploading a mind into [target]!"))
if(do_after(usr,35 SECONDS,target))
if(!stored_mind)
- to_chat(usr,"\The [src] no longer has a stored mind.")
+ to_chat(usr,span_warning("\The [src] no longer has a stored mind."))
return
put_mind(target)
- to_chat(usr,"Mind transferred into [target]!")
+ to_chat(usr,span_notice("Mind transferred into [target]!"))
if(href_list["mindrelease"])
if(stored_mind)
- to_chat(usr,"There is already someone's mind stored inside")
+ to_chat(usr,span_warning("There is already someone's mind stored inside"))
return
var/mob/living/carbon/human/H = target
var/datum/nifsoft/soulcatcher/SC = H.nif.imp_check(NIF_SOULCATCHER)
@@ -307,9 +307,9 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
if(soul.name == href_list["mindrelease"])
get_mind(soul)
qdel(soul)
- to_chat(usr,"Mind downloaded!")
+ to_chat(usr,span_notice("Mind downloaded!"))
return
- to_chat(usr,"Unable to find that mind in Soulcatcher!")
+ to_chat(usr,span_notice("Unable to find that mind in Soulcatcher!"))
/obj/item/sleevemate/update_icon()
if(stored_mind)
@@ -318,7 +318,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
icon_state = initial(icon_state)
/obj/item/sleevemate/emag_act(var/remaining_charges, var/mob/user)
- to_chat(user,"You hack [src]!")
+ to_chat(user,span_danger("You hack [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, src.loc)
spark_system.start()
diff --git a/code/game/objects/items/devices/scanners/slime.dm b/code/game/objects/items/devices/scanners/slime.dm
index 1a2c08913c..8baeebeecd 100644
--- a/code/game/objects/items/devices/scanners/slime.dm
+++ b/code/game/objects/items/devices/scanners/slime.dm
@@ -24,17 +24,17 @@
user.show_message("Potental to mutate into [english_list(mutations)] colors.
Extract potential: [S.cores]
Nutrition: [S.nutrition]/[S.max_nutrition]")
if (S.nutrition < S.get_starve_nutrition())
- user.show_message("Warning: Subject is starving!")
+ user.show_message(span_alert("Warning: Subject is starving!"))
else if (S.nutrition < S.get_hunger_nutrition())
- user.show_message("Warning: Subject is hungry.")
+ user.show_message(span_warning("Warning: Subject is hungry."))
user.show_message("Electric change strength: [S.power_charge]")
if(S.has_AI())
var/datum/ai_holder/simple_mob/xenobio_slime/AI = S.ai_holder
if(AI.resentment)
- user.show_message("Warning: Subject is harboring resentment.")
+ user.show_message(span_warning("Warning: Subject is harboring resentment."))
if(AI.rabid)
- user.show_message("Subject is enraged and extremely dangerous!")
+ user.show_message(span_danger("Subject is enraged and extremely dangerous!"))
if(S.harmless)
user.show_message("Subject has been pacified.")
if(S.unity)
diff --git a/code/game/objects/items/devices/spy_bug.dm b/code/game/objects/items/devices/spy_bug.dm
index 0375f4f8f5..e527e7e544 100644
--- a/code/game/objects/items/devices/spy_bug.dm
+++ b/code/game/objects/items/devices/spy_bug.dm
@@ -24,7 +24,7 @@
/obj/item/camerabug/attack_self(mob/user)
if(user.a_intent == I_HURT)
- to_chat(user, "You crush the [src] under your foot, breaking it.")
+ to_chat(user, span_notice("You crush the [src] under your foot, breaking it."))
visible_message("[user.name] crushes the [src] under their foot, breaking it!")
new brokentype(get_turf(src))
spawn(0)
@@ -100,11 +100,11 @@
if(istype(W, /obj/item/bug_monitor))
var/obj/item/bug_monitor/SM = W
if(!linkedmonitor)
- to_chat(user, "\The [src] has been paired with \the [SM].")
+ to_chat(user, span_notice("\The [src] has been paired with \the [SM]."))
SM.pair(src)
linkedmonitor = SM
else if (linkedmonitor == SM)
- to_chat(user, "\The [src] has been unpaired from \the [SM].")
+ to_chat(user, span_notice("\The [src] has been unpaired from \the [SM]."))
linkedmonitor.unpair(src)
linkedmonitor = null
else
@@ -114,7 +114,7 @@
if(isturf(loc))
anchored = !anchored
- to_chat(user, "You [anchored ? "" : "un"]secure \the [src].")
+ to_chat(user, span_notice("You [anchored ? "" : "un"]secure \the [src]."))
update_icon()
return
@@ -202,7 +202,7 @@
if(!T || !is_on_same_plane_or_station(T.z, user.z) || !selected_camera.can_use())
user.unset_machine()
user.reset_view(null)
- to_chat(user, "Link to [selected_camera] has been lost.")
+ to_chat(user, span_notice("Link to [selected_camera] has been lost."))
src.unpair(selected_camera.loc)
sleep(90)
else
@@ -217,8 +217,8 @@
return
if(!cameras.len)
- to_chat(user, "No paired cameras detected!")
- to_chat(user, "Bring a camera in contact with this device to pair the camera.")
+ to_chat(user, span_warning("No paired cameras detected!"))
+ to_chat(user, span_warning("Bring a camera in contact with this device to pair the camera."))
return
return 1
@@ -272,4 +272,4 @@
canhear_range = 1
name = "spy device"
icon_state = "syn_cypherkey"
- */
\ No newline at end of file
+ */
diff --git a/code/game/objects/items/devices/suit_cooling.dm b/code/game/objects/items/devices/suit_cooling.dm
index e4da5e04a4..f38212b9a9 100644
--- a/code/game/objects/items/devices/suit_cooling.dm
+++ b/code/game/objects/items/devices/suit_cooling.dm
@@ -143,7 +143,7 @@
turn_off()
else
turn_on()
- to_chat(user, "You switch \the [src] [on ? "on" : "off"].")
+ to_chat(user, span_notice("You switch \the [src] [on ? "on" : "off"]."))
/obj/item/suit_cooling_unit/attackby(obj/item/W as obj, mob/user as mob)
if (W.has_tool_quality(TOOL_SCREWDRIVER))
@@ -238,7 +238,7 @@
/obj/item/suit_cooling_unit/emergency/attackby(obj/item/W as obj, mob/user as mob)
if (W.has_tool_quality(TOOL_SCREWDRIVER))
- to_chat(user, "This cooler's cell is permanently installed!")
+ to_chat(user, span_warning("This cooler's cell is permanently installed!"))
return
return ..()
diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm
index 91598b06b1..6e9e0dc506 100644
--- a/code/game/objects/items/devices/taperecorder.dm
+++ b/code/game/objects/items/devices/taperecorder.dm
@@ -40,13 +40,13 @@
/obj/item/taperecorder/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/rectape))
if(mytape)
- to_chat(user, "There's already a tape inside.")
+ to_chat(user, span_notice("There's already a tape inside."))
return
if(!user.unEquip(I))
return
I.forceMove(src)
mytape = I
- to_chat(user, "You insert [I] into [src].")
+ to_chat(user, span_notice("You insert [I] into [src]."))
update_icon()
return
..()
@@ -73,15 +73,15 @@
if(usr.incapacitated())
return
if(!mytape)
- to_chat(usr, "There's no tape in \the [src].")
+ to_chat(usr, span_notice("There's no tape in \the [src]."))
return
if(emagged)
- to_chat(usr, "The tape seems to be stuck inside.")
+ to_chat(usr, span_notice("The tape seems to be stuck inside."))
return
if(playing || recording)
stop()
- to_chat(usr, "You remove [mytape] from [src].")
+ to_chat(usr, span_notice("You remove [mytape] from [src]."))
usr.put_in_hands(mytape)
mytape = null
update_icon()
@@ -116,17 +116,17 @@
if(emagged == 0)
emagged = 1
recording = 0
- to_chat(user, "PZZTTPFFFT")
+ to_chat(user, span_warning("PZZTTPFFFT"))
update_icon()
return 1
else
- to_chat(user, "It is already emagged!")
+ to_chat(user, span_warning("It is already emagged!"))
/obj/item/taperecorder/proc/explode()
var/turf/T = get_turf(loc)
if(ismob(loc))
var/mob/M = loc
- to_chat(M, "\The [src] explodes!")
+ to_chat(M, span_danger("\The [src] explodes!"))
if(T)
T.hotspot_expose(700,125)
explosion(T, -1, -1, 0, 4)
@@ -140,22 +140,22 @@
if(usr.incapacitated())
return
if(!mytape)
- to_chat(usr, "There's no tape!")
+ to_chat(usr, span_notice("There's no tape!"))
return
if(mytape.ruined)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(recording)
- to_chat(usr, "You're already recording!")
+ to_chat(usr, span_notice("You're already recording!"))
return
if(playing)
- to_chat(usr, "You can't record when playing!")
+ to_chat(usr, span_notice("You can't record when playing!"))
return
if(emagged)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(mytape.used_capacity < mytape.max_capacity)
- to_chat(usr, "Recording started.")
+ to_chat(usr, span_notice("Recording started."))
recording = 1
update_icon()
@@ -168,14 +168,14 @@
if(mytape.used_capacity >= mytape.max_capacity)
if(ismob(loc))
var/mob/M = loc
- to_chat(M, "The tape is full.")
+ to_chat(M, span_notice("The tape is full."))
stop_recording()
update_icon()
return
else
- to_chat(usr, "The tape is full.")
+ to_chat(usr, span_notice("The tape is full."))
/obj/item/taperecorder/proc/stop_recording()
@@ -185,7 +185,7 @@
mytape.record_speech("Recording stopped.")
if(ismob(loc))
var/mob/M = loc
- to_chat(M, "Recording stopped.")
+ to_chat(M, span_notice("Recording stopped."))
/obj/item/taperecorder/verb/stop()
@@ -200,10 +200,10 @@
else if(playing)
playing = 0
update_icon()
- to_chat(usr, "Playback stopped.")
+ to_chat(usr, span_notice("Playback stopped."))
return
else
- to_chat(usr, "Stop what?")
+ to_chat(usr, span_notice("Stop what?"))
/obj/item/taperecorder/verb/wipe_tape()
@@ -213,19 +213,19 @@
if(usr.incapacitated())
return
if(emagged)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(mytape.ruined)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(recording || playing)
- to_chat(usr, "You can't wipe the tape while playing or recording!")
+ to_chat(usr, span_notice("You can't wipe the tape while playing or recording!"))
return
else
if(mytape.storedinfo) mytape.storedinfo.Cut()
if(mytape.timestamp) mytape.timestamp.Cut()
mytape.used_capacity = 0
- to_chat(usr, "You wipe the tape.")
+ to_chat(usr, span_notice("You wipe the tape."))
return
@@ -236,20 +236,20 @@
if(usr.incapacitated())
return
if(!mytape)
- to_chat(usr, "There's no tape!")
+ to_chat(usr, span_notice("There's no tape!"))
return
if(mytape.ruined)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(recording)
- to_chat(usr, "You can't playback when recording!")
+ to_chat(usr, span_notice("You can't playback when recording!"))
return
if(playing)
- to_chat(usr, "You're already playing!")
+ to_chat(usr, span_notice("You're already playing!"))
return
playing = 1
update_icon()
- to_chat(usr, "Playing started.")
+ to_chat(usr, span_notice("Playing started."))
for(var/i=1 , i < mytape.max_capacity , i++)
if(!mytape || !playing)
break
@@ -308,22 +308,22 @@
if(usr.incapacitated())
return
if(!mytape)
- to_chat(usr, "There's no tape!")
+ to_chat(usr, span_notice("There's no tape!"))
return
if(mytape.ruined)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(emagged)
- to_chat(usr, "The tape recorder makes a scratchy noise.")
+ to_chat(usr, span_warning("The tape recorder makes a scratchy noise."))
return
if(!canprint)
- to_chat(usr, "The recorder can't print that fast!")
+ to_chat(usr, span_notice("The recorder can't print that fast!"))
return
if(recording || playing)
- to_chat(usr, "You can't print the transcript while playing or recording!")
+ to_chat(usr, span_notice("You can't print the transcript while playing or recording!"))
return
- to_chat(usr, "Transcript printed.")
+ to_chat(usr, span_notice("Transcript printed."))
var/obj/item/paper/P = new /obj/item/paper(get_turf(src))
var/t1 = "Transcript:
"
for(var/i=1,mytape.storedinfo.len >= i,i++)
@@ -385,7 +385,7 @@
/obj/item/rectape/attack_self(mob/user)
if(!ruined)
- to_chat(user, "You pull out all the tape!")
+ to_chat(user, span_notice("You pull out all the tape!"))
ruin()
@@ -412,10 +412,10 @@
/obj/item/rectape/attackby(obj/item/I, mob/user, params)
if(ruined && I.has_tool_quality(TOOL_SCREWDRIVER))
- to_chat(user, "You start winding the tape back in...")
+ to_chat(user, span_notice("You start winding the tape back in..."))
playsound(src, I.usesound, 50, 1)
if(do_after(user, 120 * I.toolspeed, target = src))
- to_chat(user, "You wound the tape back in.")
+ to_chat(user, span_notice("You wound the tape back in."))
fix()
return
else if(istype(I, /obj/item/pen))
@@ -425,10 +425,10 @@
new_name = sanitizeSafe(new_name)
if(new_name)
name = "tape - '[new_name]'"
- to_chat(user, "You label the tape '[new_name]'.")
+ to_chat(user, span_notice("You label the tape '[new_name]'."))
else
name = "tape"
- to_chat(user, "You scratch off the label.")
+ to_chat(user, span_notice("You scratch off the label."))
return
..()
diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm
index 8ffdcd031d..6f416945f5 100644
--- a/code/game/objects/items/devices/traitordevices.dm
+++ b/code/game/objects/items/devices/traitordevices.dm
@@ -32,7 +32,7 @@ effective or pretty fucking useless.
/obj/item/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0)
if(!user) return
if(times_used >= max_uses)
- to_chat(user, "The mind batterer has been burnt out!")
+ to_chat(user, span_warning("The mind batterer has been burnt out!"))
return
var/list/affected = list()
@@ -44,15 +44,15 @@ effective or pretty fucking useless.
M.Weaken(rand(10,20))
if(prob(25))
M.Stun(rand(5,10))
- to_chat(M, "You feel a tremendous, paralyzing wave flood your mind.")
+ to_chat(M, span_danger("You feel a tremendous, paralyzing wave flood your mind."))
else
- to_chat(M, "You feel a sudden, electric jolt travel through your head.")
+ to_chat(M, span_danger("You feel a sudden, electric jolt travel through your head."))
add_attack_logs(user,affected,"Used a [name]")
playsound(src, 'sound/misc/interference.ogg', 50, 1)
- to_chat(user, "You trigger [src].")
+ to_chat(user, span_notice("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 870e8c3a8c..535809bc4f 100644
--- a/code/game/objects/items/devices/transfer_valve.dm
+++ b/code/game/objects/items/devices/transfer_valve.dm
@@ -14,19 +14,19 @@
var/turf/location = get_turf(src) // For admin logs
if(istype(item, /obj/item/tank))
if(tank_one && tank_two)
- to_chat(user, "There are already two tanks attached, remove one first.")
+ to_chat(user, span_warning("There are already two tanks attached, remove one first."))
return
if(!tank_one)
tank_one = item
user.drop_item()
item.forceMove(src)
- to_chat(user, "You attach the tank to the transfer valve.")
+ to_chat(user, span_notice("You attach the tank to the transfer valve."))
else if(!tank_two)
tank_two = item
user.drop_item()
item.forceMove(src)
- to_chat(user, "You attach the tank to the transfer valve.")
+ to_chat(user, span_notice("You attach the tank to the transfer valve."))
message_admins("[key_name_admin(user)] attached both tanks to a transfer valve. [ADMIN_JMP(location)]")
log_game("[key_name_admin(user)] attached both tanks to a transfer valve.")
@@ -36,15 +36,15 @@
else if(isassembly(item))
var/obj/item/assembly/A = item
if(A.secured)
- to_chat(user, "The device is secured.")
+ to_chat(user, span_notice("The device is secured."))
return
if(attached_device)
- to_chat(user, "There is already an device attached to the valve, remove it first.")
+ to_chat(user, span_warning("There is already an device attached to the valve, remove it first."))
return
user.remove_from_mob(item)
attached_device = A
A.forceMove(src)
- to_chat(user, "You attach the [item] to the valve controls and secure it.")
+ to_chat(user, span_notice("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/translator.dm b/code/game/objects/items/devices/translator.dm
index 8fba3e20af..593bd0be7b 100644
--- a/code/game/objects/items/devices/translator.dm
+++ b/code/game/objects/items/devices/translator.dm
@@ -18,20 +18,20 @@
if(langset)
if(langset && ((langset.flags & NONVERBAL) || (langset.flags & HIVEMIND) || (!langset.machine_understands)))
//Nonverbal means no spoken words to translate, so I didn't see the need to remove it.
- to_chat(user, "\The [src] cannot output that language.")
+ to_chat(user, span_warning("\The [src] cannot output that language."))
return
else
listening = 1
listening_objects |= src
if(mult_icons)
icon_state = "[initial(icon_state)]1"
- to_chat(user, "You enable \the [src], translating into [langset.name].")
+ to_chat(user, span_notice("You enable \the [src], translating into [langset.name]."))
else //Turning OFF
listening = 0
listening_objects -= src
langset = null
icon_state = "[initial(icon_state)]"
- to_chat(user, "You disable \the [src].")
+ to_chat(user, span_notice("You disable \the [src]."))
/obj/item/universal_translator/hear_talk(mob/M, list/message_pieces, verb)
if(!listening || !istype(M))
@@ -71,7 +71,7 @@
if(!L.say_understands(null, langset))
new_message = langset.scramble(new_message)
- to_chat(L, "[src] translates, \"[new_message]\"")
+ to_chat(L, span_filter_say("[src] translates, \"[new_message]\""))
/obj/item/universal_translator/proc/user_understands(mob/M, mob/living/L, list/message_pieces)
for(var/datum/multilingual_say_piece/S in message_pieces)
@@ -87,4 +87,4 @@
w_class = ITEMSIZE_TINY
slot_flags = SLOT_EARS
visual = 0
- audio = 1
\ No newline at end of file
+ audio = 1
diff --git a/code/game/objects/items/devices/translocator_vr.dm b/code/game/objects/items/devices/translocator_vr.dm
index 92748d7ac9..91fc16fa21 100644
--- a/code/game/objects/items/devices/translocator_vr.dm
+++ b/code/game/objects/items/devices/translocator_vr.dm
@@ -94,15 +94,15 @@
/obj/item/perfect_tele/proc/unload_ammo(mob/user, var/ignore_inactive_hand_check = 0)
if(battery_lock)
- to_chat(user,"[src] does not have a battery port.")
+ to_chat(user,span_notice("[src] does not have a battery port."))
return
if((user.get_inactive_hand() == src || ignore_inactive_hand_check) && power_source)
- to_chat(user,"You eject \the [power_source] from \the [src].")
+ to_chat(user,span_notice("You eject \the [power_source] from \the [src]."))
user.put_in_hands(power_source)
power_source = null
update_icon()
else
- to_chat(user,"[src] does not have a power cell.")
+ to_chat(user,span_notice("[src] does not have a power cell."))
/obj/item/perfect_tele/proc/check_menu(var/mob/living/user)
if(!istype(user))
@@ -132,7 +132,7 @@ This device records all warnings given and teleport events for admin review in c
else if(choice == "New Beacon")
if(beacons_left <= 0)
- to_chat(user, "The translocator can't support any more beacons!")
+ to_chat(user, span_warning("The translocator can't support any more beacons!"))
return
var/new_name = html_encode(tgui_input_text(user,"New beacon's name (2-20 char):","[src]",null,20))
@@ -140,11 +140,11 @@ This device records all warnings given and teleport events for admin review in c
return
if(length(new_name) > 20 || length(new_name) < 2)
- to_chat(user, "Entered name length invalid (must be longer than 2, no more than than 20).")
+ to_chat(user, span_warning("Entered name length invalid (must be longer than 2, no more than than 20)."))
return
if(new_name in beacons)
- to_chat(user, "No duplicate names, please. '[new_name]' exists already.")
+ to_chat(user, span_warning("No duplicate names, please. '[new_name]' exists already."))
return
var/obj/item/perfect_tele_beacon/nb = new(get_turf(src))
@@ -168,19 +168,19 @@ This device records all warnings given and teleport events for admin review in c
power_source.update_icon() //Why doesn't a cell do this already? :|
user.unEquip(power_source)
power_source.forceMove(src)
- to_chat(user,"You insert \the [power_source] into \the [src].")
+ to_chat(user,span_notice("You insert \the [power_source] into \the [src]."))
update_icon()
else if(istype(W,/obj/item/perfect_tele_beacon))
var/obj/item/perfect_tele_beacon/tb = W
if(tb.tele_name in beacons)
- to_chat(user,"You re-insert \the [tb] into \the [src].")
+ to_chat(user,span_notice("You re-insert \the [tb] into \the [src]."))
beacons -= tb.tele_name
user.unEquip(tb)
qdel(tb)
beacons_left++
else
- to_chat(user,"\The [tb] doesn't belong to \the [src].")
+ to_chat(user,span_notice("\The [tb] doesn't belong to \the [src]."))
return
else
..()
@@ -188,12 +188,12 @@ This device records all warnings given and teleport events for admin review in c
/obj/item/perfect_tele/proc/teleport_checks(mob/living/target,mob/living/user)
//Uhhuh, need that power source
if(!power_source)
- to_chat(user,"\The [src] has no power source!")
+ to_chat(user,span_warning("\The [src] has no power source!"))
return FALSE
//Check for charge
if((!power_source.check_charge(charge_cost)) && (!power_source.fully_charged()))
- to_chat(user,"\The [src] does not have enough power left!")
+ to_chat(user,span_warning("\The [src] does not have enough power left!"))
return FALSE
//Only mob/living need apply.
@@ -202,24 +202,24 @@ This device records all warnings given and teleport events for admin review in c
//No, you can't teleport buckled people.
if(target.buckled)
- to_chat(user,"The target appears to be attached to something...")
+ to_chat(user,span_warning("The target appears to be attached to something..."))
return FALSE
//No, you can't teleport if it's not ready yet.
if(!ready)
- to_chat(user,"\The [src] is still recharging!")
+ to_chat(user,span_warning("\The [src] is still recharging!"))
return FALSE
//No, you can't teleport if there's no destination.
if(!destination)
- to_chat(user,"\The [src] doesn't have a current valid destination set!")
+ to_chat(user,span_warning("\The [src] doesn't have a current valid destination set!"))
return FALSE
//No, you can't teleport if there's a jammer.
if(is_jammed(src) || is_jammed(destination))
var/area/our_area = get_area(src)
if(!our_area.no_comms) //I don't actually want this to block teleporters, just comms
- to_chat(user,"\The [src] refuses to teleport you, due to strong interference!")
+ to_chat(user,span_warning("\The [src] refuses to teleport you, due to strong interference!"))
return FALSE
//No, you can't port to or from away missions. Stupidly complicated check.
@@ -233,12 +233,12 @@ This device records all warnings given and teleport events for admin review in c
if(!longrange)
if( (uT.z != dT.z) && (!(dT.z in dat["z_level_detection"])) )
- to_chat(user,"\The [src] can't teleport you that far!")
+ to_chat(user,span_warning("\The [src] can't teleport you that far!"))
return FALSE
if(!abductor)
if(uT.block_tele || dT.block_tele)
- to_chat(user,"Something is interfering with \the [src]!")
+ to_chat(user,span_warning("Something is interfering with \the [src]!"))
return FALSE
//Seems okay to me!
@@ -257,8 +257,8 @@ This device records all warnings given and teleport events for admin review in c
if(!L.stat)
if(L != user)
if(L.a_intent != I_HELP || L.has_AI())
- to_chat(user, "[L] is resisting your attempt to teleport them with \the [src].")
- to_chat(L, " [user] is trying to teleport you with \the [src]!")
+ to_chat(user, span_notice("[L] is resisting your attempt to teleport them with \the [src]."))
+ to_chat(L, span_danger(" [user] is trying to teleport you with \the [src]!"))
if(!do_after(user, 30, L))
return
@@ -280,7 +280,7 @@ This device records all warnings given and teleport events for admin review in c
var/list/wrong_choices = beacons - destination.tele_name
var/wrong_name = pick(wrong_choices)
destination = beacons[wrong_name]
- to_chat(user,"\The [src] malfunctions and sends you to the wrong beacon!")
+ to_chat(user,span_warning("\The [src] malfunctions and sends you to the wrong beacon!"))
//Destination beacon vore checking
var/turf/dT = get_turf(destination)
@@ -301,11 +301,11 @@ This device records all warnings given and teleport events for admin review in c
if(isbelly(real_dest))
var/obj/belly/B = real_dest
if(!(target.can_be_drop_prey) && B.owner != user)
- to_chat(target,"\The [src] narrowly avoids teleporting you right into \a [lowertext(real_dest.name)]!")
+ to_chat(target,span_vwarning("\The [src] narrowly avoids teleporting you right into \a [lowertext(real_dest.name)]!"))
real_dest = dT //Nevermind!
else
televored = TRUE
- to_chat(target,"\The [src] teleports you right into \a [lowertext(real_dest.name)]!")
+ to_chat(target,span_vwarning("\The [src] teleports you right into \a [lowertext(real_dest.name)]!"))
//Phase-out effect
phase_out(target,get_turf(target))
@@ -326,7 +326,7 @@ This device records all warnings given and teleport events for admin review in c
//Move them, and televore if necessary
G.affecting.forceMove(real_dest)
if(televored)
- to_chat(target,"\The [src] teleports you right into \a [lowertext(real_dest.name)]!")
+ to_chat(target,span_warning("\The [src] teleports you right into \a [lowertext(real_dest.name)]!"))
//Phase-in effect for grabbed person
phase_in(G.affecting,get_turf(G.affecting))
@@ -411,11 +411,11 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/perfect_tele_beacon/stat
if(confirm == "Eat it!")
var/obj/belly/bellychoice = tgui_input_list(usr, "Which belly?","Select A Belly", L.vore_organs)
if(bellychoice)
- user.visible_message("[user] is trying to stuff \the [src] into [user.gender == MALE ? "his" : user.gender == FEMALE ? "her" : "their"] [bellychoice.name]!","You begin putting \the [src] into your [bellychoice.name]!")
+ user.visible_message(span_warning("[user] is trying to stuff \the [src] into [user.gender == MALE ? "his" : user.gender == FEMALE ? "her" : "their"] [bellychoice.name]!"),span_notice("You begin putting \the [src] into your [bellychoice.name]!"))
if(do_after(user,5 SECONDS,src))
user.unEquip(src)
forceMove(bellychoice)
- user.visible_message("[user] eats a telebeacon!","You eat the the beacon!")
+ user.visible_message(span_warning("[user] eats a telebeacon!"),"You eat the the beacon!")
// A single-beacon variant for use by miners (or whatever)
/obj/item/perfect_tele/one_beacon
@@ -430,7 +430,7 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/perfect_tele_beacon/stat
/obj/item/perfect_tele/one_beacon/teleport_checks(mob/living/target,mob/living/user)
var/turf/T = get_turf(destination)
if(T && user.z != T.z)
- to_chat(user,"\The [src] is too far away from the beacon. Try getting closer first!")
+ to_chat(user,span_warning("\The [src] is too far away from the beacon. Try getting closer first!"))
return FALSE
return ..()
*/
@@ -475,8 +475,8 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/perfect_tele_beacon/stat
return
recharging = 1
update_icon()
- user.visible_message("[user] opens \the [src] and starts pumping the handle.", \
- "You open \the [src] and start pumping the handle.")
+ user.visible_message(span_notice("[user] opens \the [src] and starts pumping the handle."), \
+ span_notice("You open \the [src] and start pumping the handle."))
while(recharging)
if(!do_after(user, 10, src))
break
diff --git a/code/game/objects/items/devices/tvcamera.dm b/code/game/objects/items/devices/tvcamera.dm
index 246cf15032..f439221d29 100644
--- a/code/game/objects/items/devices/tvcamera.dm
+++ b/code/game/objects/items/devices/tvcamera.dm
@@ -71,14 +71,14 @@
if(nc)
channel = nc
camera.c_tag = channel
- to_chat(usr, "New channel name - '[channel]' is set")
+ to_chat(usr, span_notice("New channel name - '[channel]' is set"))
if(href_list["video"])
camera.set_status(!camera.status)
if(camera.status)
- to_chat(usr,"Video streaming activated. Broadcasting on channel '[channel]'")
+ to_chat(usr,span_notice("Video streaming activated. Broadcasting on channel '[channel]'"))
show_tvs(loc)
else
- to_chat(usr,"Video streaming deactivated.")
+ to_chat(usr,span_notice("Video streaming deactivated."))
hide_tvs()
for(var/obj/machinery/computer/security/telescreen/entertainment/ES as anything in GLOB.entertainment_screens)
ES.stop_showing()
@@ -86,9 +86,9 @@
if(href_list["sound"])
radio.ToggleBroadcast()
if(radio.broadcasting)
- to_chat(usr,"Audio streaming activated. Broadcasting on frequency [format_frequency(radio.frequency)].")
+ to_chat(usr,span_notice("Audio streaming activated. Broadcasting on frequency [format_frequency(radio.frequency)]."))
else
- to_chat(usr,"Audio streaming deactivated.")
+ to_chat(usr,span_notice("Audio streaming deactivated."))
if(!href_list["close"])
attack_self(usr)
@@ -160,7 +160,7 @@
var/obj/item/TVAssembly/A = new(user)
qdel(S)
user.put_in_hands(A)
- to_chat(user, "You add the infrared sensor to the robot head.")
+ to_chat(user, span_notice("You add the infrared sensor to the robot head."))
user.drop_from_inventory(src)
qdel(src)
@@ -179,7 +179,7 @@
if(0)
if(istype(W, /obj/item/robot_parts/robot_component/camera))
var/obj/item/robot_parts/robot_component/camera/CA = W
- to_chat(user, "You add the camera module to [src]")
+ to_chat(user, span_notice("You add the camera module to [src]"))
user.drop_item()
qdel(CA)
desc = "This TV camera assembly has a camera module."
@@ -190,22 +190,22 @@
user.drop_item()
qdel(T)
buildstep++
- to_chat(user, "You add the tape recorder to [src]")
+ to_chat(user, span_notice("You add the tape recorder to [src]"))
if(2)
if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = W
if(!C.use(3))
- to_chat(user, "You need six cable coils to wire the devices.")
+ to_chat(user, span_notice("You need six cable coils to wire the devices."))
..()
return
C.use(3)
buildstep++
- to_chat(user, "You wire the assembly")
+ to_chat(user, span_notice("You wire the assembly"))
desc = "This TV camera assembly has wires sticking out"
return
if(3)
if(istype(W, /obj/item/tool/wirecutters))
- to_chat(user, " You trim the wires.")
+ to_chat(user, span_notice(" You trim the wires."))
buildstep++
desc = "This TV camera assembly needs casing."
return
@@ -214,7 +214,7 @@
var/obj/item/stack/material/steel/S = W
buildstep++
S.use(1)
- to_chat(user, "You encase the assembly in a Ward-Takeshi casing.")
+ to_chat(user, span_notice("You encase the assembly in a Ward-Takeshi casing."))
var/turf/T = get_turf(src)
new /obj/item/tvcamera(T)
user.drop_from_inventory(src)
diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm
index 2b3b95f8e1..fba33be170 100644
--- a/code/game/objects/items/devices/whistle.dm
+++ b/code/game/objects/items/devices/whistle.dm
@@ -33,15 +33,15 @@
if(isnull(insults))
playsound(src, 'sound/voice/halt.ogg', 100, 1, vary = 0)
- user.audible_message("[user]'s [name] rasps, \"[use_message]\"", "\The [user] holds up \the [name].", runemessage = "\[TTS Voice\] [use_message]")
+ user.audible_message(span_warning("[user]'s [name] rasps, \"[use_message]\""), span_warning("\The [user] holds up \the [name]."), runemessage = "\[TTS Voice\] [use_message]")
else
if(insults > 0)
playsound(src, 'sound/voice/binsult.ogg', 100, 1, vary = 0)
// Yes, it used to show the transcription of the sound clip. That was a) inaccurate b) immature as shit.
- user.audible_message("[user]'s [name] gurgles something indecipherable and deeply offensive.", "\The [user] holds up \the [name].", runemessage = "\[TTS Voice\] #&@&^%(*")
+ user.audible_message(span_warning("[user]'s [name] gurgles something indecipherable and deeply offensive."), span_warning("\The [user] holds up \the [name]."), runemessage = "\[TTS Voice\] #&@&^%(*")
insults--
else
- to_chat(user, "*BZZZZZZZZT*")
+ to_chat(user, span_danger("*BZZZZZZZZT*"))
spamcheck = 1
spawn(20)
@@ -49,7 +49,7 @@
/obj/item/hailer/emag_act(var/remaining_charges, var/mob/user)
if(isnull(insults))
- to_chat(user, "You overload \the [src]'s voice synthesizer.")
+ to_chat(user, span_danger("You overload \the [src]'s voice synthesizer."))
insults = rand(1, 3)//to prevent dickflooding
return 1
else
diff --git a/code/game/objects/items/falling_object_vr.dm b/code/game/objects/items/falling_object_vr.dm
index a6c376ab93..fdc140b6b4 100644
--- a/code/game/objects/items/falling_object_vr.dm
+++ b/code/game/objects/items/falling_object_vr.dm
@@ -37,7 +37,7 @@
for(var/mob/living/P in loc)
if(P.can_be_drop_prey && P.drop_vore)
L.feed_grabbed_to_self_falling_nom(L,P)
- L.visible_message("\The [L] falls right onto \the [P]!")
+ L.visible_message(span_vdanger("\The [L] falls right onto \the [P]!"))
if(crushing)
for(var/atom/movable/AM in loc)
diff --git a/code/game/objects/items/glassjar.dm b/code/game/objects/items/glassjar.dm
index 48b663c599..6a4617f12c 100644
--- a/code/game/objects/items/glassjar.dm
+++ b/code/game/objects/items/glassjar.dm
@@ -33,14 +33,14 @@
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].")
+ user.visible_message(span_notice("[user] scoops [L] into \the [src]."), span_notice("You scoop [L] into \the [src]."))
L.loc = src
contains = JAR_ANIMAL
update_icon()
return
else if(istype(A, /obj/effect/spider/spiderling))
var/obj/effect/spider/spiderling/S = A
- user.visible_message("[user] scoops [S] into \the [src].", "You scoop [S] into \the [src].")
+ user.visible_message(span_notice("[user] scoops [S] into \the [src]."), span_notice("You scoop [S] into \the [src]."))
S.loc = src
STOP_PROCESSING(SSobj, S) // No growing inside jars
contains = JAR_SPIDER
@@ -52,21 +52,21 @@
if(JAR_MONEY)
for(var/obj/O in src)
O.loc = user.loc
- to_chat(user, "You take money out of \the [src].")
+ to_chat(user, span_notice("You take money out of \the [src]."))
contains = JAR_NOTHING
update_icon()
return
if(JAR_ANIMAL)
for(var/mob/M in src)
M.loc = user.loc
- user.visible_message("[user] releases [M] from \the [src].", "You release [M] from \the [src].")
+ user.visible_message(span_notice("[user] releases [M] from \the [src]."), span_notice("You release [M] from \the [src]."))
contains = JAR_NOTHING
update_icon()
return
if(JAR_SPIDER)
for(var/obj/effect/spider/spiderling/S in src)
S.loc = user.loc
- user.visible_message("[user] releases [S] from \the [src].", "You release [S] from \the [src].")
+ user.visible_message(span_notice("[user] releases [S] from \the [src]."), span_notice("You release [S] from \the [src]."))
START_PROCESSING(SSobj, S) // They can grow after being let out though
contains = JAR_NOTHING
update_icon()
@@ -79,7 +79,7 @@
if(contains != JAR_MONEY)
return
var/obj/item/spacecash/S = W
- user.visible_message("[user] puts [S.worth] [S.worth > 1 ? "thalers" : "thaler"] into \the [src].")
+ user.visible_message(span_notice("[user] puts [S.worth] [S.worth > 1 ? "thalers" : "thaler"] into \the [src]."))
user.drop_from_inventory(S)
S.loc = src
update_icon()
@@ -184,10 +184,10 @@
if(!filled)
if(istype(A, /obj/structure/sink) || istype(A, /turf/simulated/floor/water))
if(contains && user.a_intent == "help")
- to_chat(user, "That probably isn't the best idea.")
+ to_chat(user, span_warning("That probably isn't the best idea."))
return
- to_chat(user, "You fill \the [src] with water!")
+ to_chat(user, span_notice("You fill \the [src] with water!"))
filled = TRUE
update_icon()
return
@@ -198,17 +198,17 @@
if(filled)
if(contains == JAR_ANIMAL)
if(user.a_intent == "help")
- to_chat(user, "Maybe you shouldn't empty the water...")
+ to_chat(user, span_notice("Maybe you shouldn't empty the water..."))
return
else
filled = FALSE
- user.visible_message("[user] dumps out \the [src]'s water!")
+ user.visible_message(span_warning("[user] dumps out \the [src]'s water!"))
update_icon()
return
else
- user.visible_message("[user] dumps \the [src]'s water.")
+ user.visible_message(span_notice("[user] dumps \the [src]'s water."))
filled = FALSE
update_icon()
return
diff --git a/code/game/objects/items/pizza_voucher_vr.dm b/code/game/objects/items/pizza_voucher_vr.dm
index b21e45f3dd..9829bd8321 100644
--- a/code/game/objects/items/pizza_voucher_vr.dm
+++ b/code/game/objects/items/pizza_voucher_vr.dm
@@ -23,30 +23,30 @@
/obj/item/pizzavoucher/attack_self(mob/user)
add_fingerprint(user)
if(!spent)
- user.visible_message("[user] presses a button on [src]!")
+ user.visible_message(span_notice("[user] presses a button on [src]!"))
desc = desc + " This one seems to be used-up."
spent = TRUE
- user.visible_message("A small bluespace rift opens just above [user]'s head and spits out a pizza box!",
- "A small bluespace rift opens just above your head and spits out a pizza box!",
- "You hear a fwoosh followed by a thump.")
+ user.visible_message(span_notice("A small bluespace rift opens just above [user]'s head and spits out a pizza box!"),
+ span_notice("A small bluespace rift opens just above your head and spits out a pizza box!"),
+ span_notice("You hear a fwoosh followed by a thump."))
if(special_delivery)
command_announcement.Announce("SPECIAL DELIVERY PIZZA ORDER #[rand(1000,9999)]-[rand(100,999)] HAS BEEN RECEIVED. SHIPMENT DISPATCHED VIA EXTRA-POWERFUL BALLISTIC LAUNCHERS FOR IMMEDIATE DELIVERY! THANK YOU AND ENJOY YOUR PIZZA!", "WE ALWAYS DELIVER!")
new /obj/effect/falling_effect/pizza_delivery/special(user.loc)
else
new /obj/effect/falling_effect/pizza_delivery(user.loc)
else
- to_chat(user, "The [src] is spent!")
+ to_chat(user, span_warning("The [src] is spent!"))
/obj/item/pizzavoucher/emag_act(var/remaining_charges, var/mob/user)
if(spent)
- to_chat(user, "The [src] is spent!")
+ to_chat(user, span_warning("The [src] is spent!"))
return
if(!special_delivery)
- to_chat(user, "You activate the special delivery protocol on the [src]!")
+ to_chat(user, span_warning("You activate the special delivery protocol on the [src]!"))
special_delivery = TRUE
return 1
else
- to_chat(user, "The [src] is already in special delivery mode!")
+ to_chat(user, span_warning("The [src] is already in special delivery mode!"))
/obj/effect/falling_effect/pizza_delivery
name = "PIZZA PIE POWER!"
diff --git a/code/game/objects/items/robobag.dm b/code/game/objects/items/robobag.dm
index 1811e34f2c..e3ad240ee2 100644
--- a/code/game/objects/items/robobag.dm
+++ b/code/game/objects/items/robobag.dm
@@ -29,7 +29,7 @@
/obj/structure/closet/body_bag/cryobag/robobag/examine(mob/user)
. = ..()
if(corptag && Adjacent(user))
- . += "[src] has a [corptag] attached to it."
+ . += span_notice("[src] has a [corptag] attached to it.")
/obj/structure/closet/body_bag/cryobag/robobag/update_icon()
cut_overlays()
@@ -52,7 +52,7 @@
..()
if(corptag)
corptag.forceMove(get_turf(user))
- to_chat(user, "You remove \the [corptag] from \the [src].")
+ to_chat(user, span_notice("You remove \the [corptag] from \the [src]."))
corptag = null
update_icon()
return
@@ -93,12 +93,12 @@
corptag = W
user.unEquip(corptag)
corptag.loc = null
- to_chat(user, "You swap \the [old_tag] for \the [corptag].")
+ to_chat(user, span_notice("You swap \the [old_tag] for \the [corptag]."))
else
corptag = W
user.unEquip(corptag)
corptag.loc = null
- to_chat(user, "You attach \the [corptag] to \the [src].")
+ to_chat(user, span_notice("You attach \the [corptag] to \the [src]."))
update_icon()
else
@@ -109,8 +109,8 @@
desc = "Your software is being debugged."
mob_overlay_state = "signal_blue"
- on_created_text = "You feel something pour over your senses."
- on_expired_text = "Your mind is clear once more."
+ on_created_text = span_notice("You feel something pour over your senses.")
+ on_expired_text = span_notice("Your mind is clear once more.")
stacks = MODIFIER_STACK_FORBID
/datum/modifier/fbp_debug/tick()
diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm
index 8a38d58785..aead535efe 100644
--- a/code/game/objects/items/robot/robot_parts.dm
+++ b/code/game/objects/items/robot/robot_parts.dm
@@ -105,13 +105,13 @@
if (M.use(1))
var/obj/item/secbot_assembly/ed209_assembly/B = new /obj/item/secbot_assembly/ed209_assembly
B.loc = get_turf(src)
- to_chat(user, "You armed the robot frame.")
+ to_chat(user, span_notice("You armed the robot frame."))
if (user.get_inactive_hand()==src)
user.remove_from_mob(src)
user.put_in_inactive_hand(B)
qdel(src)
else
- to_chat(user, "You need one sheet of metal to arm the robot frame.")
+ to_chat(user, span_warning("You need one sheet of metal to arm the robot frame."))
if(istype(W, /obj/item/robot_parts/l_leg))
if(src.l_leg) return
user.drop_item()
@@ -148,9 +148,9 @@
src.chest = W
src.update_icon()
else if(!W:wires)
- to_chat(user, "You need to attach wires to it first!")
+ to_chat(user, span_warning("You need to attach wires to it first!"))
else
- to_chat(user, "You need to attach a cell to it first!")
+ to_chat(user, span_warning("You need to attach a cell to it first!"))
if(istype(W, /obj/item/robot_parts/head))
if(src.head) return
@@ -160,17 +160,17 @@
src.head = W
src.update_icon()
else
- to_chat(user, "You need to attach a flash to it first!")
+ to_chat(user, span_warning("You need to attach a flash to it first!"))
if(istype(W, /obj/item/mmi))
var/obj/item/mmi/M = W
if(check_completion())
if(!istype(loc,/turf))
- to_chat(user, "You can't put \the [W] in, the frame has to be standing on the ground to be perfectly precise.")
+ to_chat(user, span_warning("You can't put \the [W] in, the frame has to be standing on the ground to be perfectly precise."))
return
if(!istype(W, /obj/item/mmi/inert))
if(!M.brainmob)
- to_chat(user, "Sticking an empty [W] into the frame would sort of defeat the purpose.")
+ to_chat(user, span_warning("Sticking an empty [W] into the frame would sort of defeat the purpose."))
return
if(!M.brainmob.key)
var/ghost_can_reenter = 0
@@ -178,18 +178,18 @@
for(var/mob/observer/dead/G in player_list)
if(G.can_reenter_corpse && G.mind == M.brainmob.mind)
ghost_can_reenter = 1 //May come in use again at another point.
- to_chat(user, "\The [W] is completely unresponsive; though it may be able to auto-resuscitate.") //Jamming a ghosted brain into a borg is likely detrimental, and may result in some problems.
+ to_chat(user, span_notice("\The [W] is completely unresponsive; though it may be able to auto-resuscitate.")) //Jamming a ghosted brain into a borg is likely detrimental, and may result in some problems.
return
if(!ghost_can_reenter)
- to_chat(user, "\The [W] is completely unresponsive; there's no point.")
+ to_chat(user, span_notice("\The [W] is completely unresponsive; there's no point."))
return
if(M.brainmob.stat == DEAD)
- to_chat(user, "Sticking a dead [W] into the frame would sort of defeat the purpose.")
+ to_chat(user, span_warning("Sticking a dead [W] into the frame would sort of defeat the purpose."))
return
if(jobban_isbanned(M.brainmob, JOB_CYBORG))
- to_chat(user, "This [W] does not seem to fit.")
+ to_chat(user, span_warning("This [W] does not seem to fit."))
return
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot(get_turf(loc), unfinished = 1)
@@ -226,7 +226,7 @@
qdel(src)
else
- to_chat(user, "The MMI must go in after everything else!")
+ to_chat(user, span_warning("The MMI must go in after everything else!"))
if (istype(W, /obj/item/pen))
var/t = sanitizeSafe(tgui_input_text(user, "Enter new robot name", src.name, src.created_name), MAX_NAME_LEN)
@@ -243,22 +243,22 @@
..()
if(istype(W, /obj/item/cell))
if(src.cell)
- to_chat(user, "You have already inserted a cell!")
+ to_chat(user, span_warning("You have already inserted a cell!"))
return
else
user.drop_item()
W.loc = src
src.cell = W
- to_chat(user, "You insert the cell!")
+ to_chat(user, span_notice("You insert the cell!"))
if(istype(W, /obj/item/stack/cable_coil))
if(src.wires)
- to_chat(user, "You have already inserted wire!")
+ to_chat(user, span_warning("You have already inserted wire!"))
return
else
var/obj/item/stack/cable_coil/coil = W
coil.use(1)
src.wires = 1.0
- to_chat(user, "You insert the wire!")
+ to_chat(user, span_notice("You insert the wire!"))
return
/obj/item/robot_parts/head/attackby(obj/item/W as obj, mob/user as mob)
@@ -267,7 +267,7 @@
if(istype(user,/mob/living/silicon/robot))
var/current_module = user.get_active_hand()
if(current_module == W)
- to_chat(user, "How do you propose to do that?")
+ to_chat(user, span_warning("How do you propose to do that?"))
return
else
add_flashes(W,user)
@@ -277,24 +277,24 @@
/obj/item/robot_parts/head/proc/add_flashes(obj/item/W as obj, mob/user as mob) //Made into a seperate proc to avoid copypasta
if(src.flash1 && src.flash2)
- to_chat(user, "You have already inserted the eyes!")
+ to_chat(user, span_notice("You have already inserted the eyes!"))
return
else if(src.flash1)
user.drop_item()
W.loc = src
src.flash2 = W
- to_chat(user, "You insert the flash into the eye socket!")
+ to_chat(user, span_notice("You insert the flash into the eye socket!"))
else
user.drop_item()
W.loc = src
src.flash1 = W
- to_chat(user, "You insert the flash into the eye socket!")
+ to_chat(user, span_notice("You insert the flash into the eye socket!"))
/obj/item/robot_parts/emag_act(var/remaining_charges, var/mob/user)
if(sabotaged)
- to_chat(user, "[src] is already sabotaged!")
+ to_chat(user, span_warning("[src] is already sabotaged!"))
else
- to_chat(user, "You short out the safeties.")
+ to_chat(user, span_warning("You short out the safeties."))
sabotaged = 1
return 1
diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm
index 161f09385b..ed8f10ea8c 100644
--- a/code/game/objects/items/robot/robot_upgrades.dm
+++ b/code/game/objects/items/robot/robot_upgrades.dm
@@ -14,7 +14,7 @@
/obj/item/borg/upgrade/proc/action(var/mob/living/silicon/robot/R)
if(R.stat == DEAD)
- to_chat(usr, "The [src] will not function on a deceased robot.")
+ to_chat(usr, span_warning("The [src] will not function on a deceased robot."))
return 1
return 0
@@ -236,7 +236,7 @@
var/obj/T = R.has_upgrade_module(/obj/item/dogborg/sleeper)
if(!T)
- to_chat(usr, "This robot has had its processor removed!")
+ to_chat(usr, span_warning("This robot has had its processor removed!"))
return 0
if(R.has_advanced_upgrade(type))
@@ -328,7 +328,7 @@
var/obj/T = R.has_upgrade_module(/obj/item/dogborg/sleeper)
if(!T)
- to_chat(usr, "This robot has had its processor removed!")
+ to_chat(usr, span_warning("This robot has had its processor removed!"))
return 0
if(R.has_restricted_upgrade(type))
@@ -362,7 +362,7 @@
var/obj/T = R.has_upgrade_module(/obj/item/gun/energy/taser/mounted/cyborg)
if(!T)
- to_chat(usr, "This robot has had its taser removed!")
+ to_chat(usr, span_warning("This robot has had its taser removed!"))
return 0
if(R.has_restricted_upgrade(type))
diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm
index e22c65a357..1a63c55db5 100644
--- a/code/game/objects/items/shooting_range.dm
+++ b/code/game/objects/items/shooting_range.dm
@@ -96,7 +96,7 @@
if(hp <= 0)
for(var/mob/O in oviewers())
if ((O.client && !( O.blinded )))
- to_chat(O, "\The [src] breaks into tiny pieces and collapses!")
+ to_chat(O, span_warning("\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/marker_beacons.dm b/code/game/objects/items/stacks/marker_beacons.dm
index bbedcc2255..72c7ee679f 100644
--- a/code/game/objects/items/stacks/marker_beacons.dm
+++ b/code/game/objects/items/stacks/marker_beacons.dm
@@ -43,28 +43,28 @@ var/list/marker_beacon_colors = list(
/obj/item/stack/marker_beacon/examine(mob/user)
. = ..()
- . += "Use in-hand to place a [singular_name]."
- . += "Alt-click to select a color. Current color is [picked_color]."
+ . += span_notice("Use in-hand to place a [singular_name].")
+ . += span_notice("Alt-click to select a color. Current color is [picked_color].")
/obj/item/stack/marker_beacon/update_icon()
icon_state = "[initial(icon_state)][lowertext(picked_color)]"
/obj/item/stack/marker_beacon/attack_self(mob/user)
if(!isturf(user.loc))
- to_chat(user, "You need more space to place a [singular_name] here.")
+ to_chat(user, span_warning("You need more space to place a [singular_name] here."))
return
if(locate(/obj/structure/marker_beacon) in user.loc)
- to_chat(user, "There is already a [singular_name] here.")
+ to_chat(user, span_warning("There is already a [singular_name] here."))
return
if(use(1))
- to_chat(user, "You activate and anchor [amount ? "a":"the"] [singular_name] in place.")
+ to_chat(user, span_notice("You activate and anchor [amount ? "a":"the"] [singular_name] in place."))
playsound(src, 'sound/machines/click.ogg', 50, 1)
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
transfer_fingerprints_to(M)
/obj/item/stack/marker_beacon/AltClick(mob/living/user)
if(user.incapacitated() || !istype(user))
- to_chat(user, "You can't do that right now!")
+ to_chat(user, span_warning("You can't do that right now!"))
return
if(!in_range(src, user))
return
@@ -100,7 +100,7 @@ var/list/marker_beacon_colors = list(
/obj/structure/marker_beacon/examine(mob/user)
. = ..()
if(!perma)
- . += "Alt-click to select a color. Current color is [picked_color]."
+ . += span_notice("Alt-click to select a color. Current color is [picked_color].")
/obj/structure/marker_beacon/update_icon()
if(!picked_color || !marker_beacon_colors[picked_color])
@@ -111,7 +111,7 @@ var/list/marker_beacon_colors = list(
/obj/structure/marker_beacon/attack_hand(mob/living/user)
if(perma)
return
- to_chat(user, "You start picking [src] up...")
+ to_chat(user, span_notice("You start picking [src] up..."))
if(do_after(user, remove_speed, target = src))
var/obj/item/stack/marker_beacon/M = new(loc)
M.picked_color = picked_color
@@ -126,7 +126,7 @@ var/list/marker_beacon_colors = list(
return
if(istype(I, /obj/item/stack/marker_beacon))
var/obj/item/stack/marker_beacon/M = I
- to_chat(user, "You start picking [src] up...")
+ to_chat(user, span_notice("You start picking [src] up..."))
if(do_after(user, remove_speed, target = src) && M.get_amount() + 1 <= M.max_amount)
M.add(1)
playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
@@ -139,7 +139,7 @@ var/list/marker_beacon_colors = list(
if(perma)
return
if(user.incapacitated() || !istype(user))
- to_chat(user, "You can't do that right now!")
+ to_chat(user, span_warning("You can't do that right now!"))
return
if(!in_range(src, user))
return
diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm
index 5b4a5c9d5f..0e62e32f09 100644
--- a/code/game/objects/items/stacks/medical.dm
+++ b/code/game/objects/items/stacks/medical.dm
@@ -17,16 +17,16 @@
/obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob)
if (!istype(M))
- to_chat(user, "\The [src] cannot be applied to [M]!")
+ to_chat(user, span_warning("\The [src] cannot be applied to [M]!"))
return 1
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return 1
var/available = get_amount()
if(!available)
- to_chat(user, "There's not enough [uses_charge ? "charge" : "items"] left to use that!")
+ to_chat(user, span_warning("There's not enough [uses_charge ? "charge" : "items"] left to use that!"))
return 1
if (istype(M, /mob/living/carbon/human))
@@ -34,24 +34,24 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(!affecting)
- to_chat(user, "No body part there to work on!")
+ to_chat(user, span_warning("No body part there to work on!"))
return 1
if(affecting.organ_tag == BP_HEAD)
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
- to_chat(user, "You can't apply [src] through [H.head]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.head]!"))
return 1
else
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
- to_chat(user, "You can't apply [src] through [H.wear_suit]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.wear_suit]!"))
return 1
if(affecting.robotic == ORGAN_ROBOT)
- to_chat(user, "This isn't useful at all on a robotic limb.")
+ to_chat(user, span_warning("This isn't useful at all on a robotic limb."))
return 1
if(affecting.robotic >= ORGAN_LIFELIKE)
- to_chat(user, "You apply the [src], but it seems to have no effect...")
+ to_chat(user, span_warning("You apply the [src], but it seems to have no effect..."))
use(1)
return 1
@@ -61,8 +61,8 @@
M.heal_organ_damage((src.heal_brute/2), (src.heal_burn/2))
user.visible_message( \
- "[M] has been applied with [src] by [user].", \
- "You apply \the [src] to [M]." \
+ span_notice("[M] has been applied with [src] by [user]."), \
+ span_notice("You apply \the [src] to [M].") \
)
use(1)
@@ -99,16 +99,16 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(affecting.open)
- to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
+ to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
return
if(affecting.is_bandaged())
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
return 1
else
var/available = get_amount()
user.visible_message("\The [user] starts bandaging [M]'s [affecting.name].", \
- "You start bandaging [M]'s [affecting.name]." )
+ span_notice("You start bandaging [M]'s [affecting.name].") )
var/used = 0
for (var/datum/wound/W in affecting.wounds)
if(W.internal)
@@ -118,32 +118,32 @@
if(used == amount)
break
if(!do_mob(user, M, W.damage/3, exclusive = TRUE))
- to_chat(user, "You must stand still to bandage wounds.")
+ to_chat(user, span_notice("You must stand still to bandage wounds."))
break
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
return 1
if(used >= available)
- to_chat(user, "You run out of [src]!")
+ to_chat(user, span_warning("You run out of [src]!"))
break
if (W.current_stage <= W.max_bleeding_stage)
user.visible_message("\The [user] bandages \a [W.desc] on [M]'s [affecting.name].", \
- "You bandage \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You bandage \a [W.desc] on [M]'s [affecting.name].") )
else
user.visible_message("\The [user] places a bandage over \a [W.desc] on [M]'s [affecting.name].", \
- "You place a bandage over \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You place a bandage over \a [W.desc] on [M]'s [affecting.name].") )
W.bandage()
playsound(src, pick(apply_sounds), 25)
used++
affecting.update_damages()
if(used == amount)
if(affecting.is_bandaged())
- to_chat(user, "\The [src] is used up.")
+ to_chat(user, span_warning("\The [src] is used up."))
else
- to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].")
+ to_chat(user, span_warning("\The [src] is used up, but there are more wounds to treat on \the [affecting.name]."))
use(used)
/obj/item/stack/medical/bruise_pack
@@ -168,16 +168,16 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(affecting.open)
- to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
+ to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
return
if(affecting.is_bandaged())
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
return 1
else
var/available = get_amount()
user.visible_message("\The [user] starts treating [M]'s [affecting.name].", \
- "You start treating [M]'s [affecting.name]." )
+ span_notice("You start treating [M]'s [affecting.name].") )
var/used = 0
for (var/datum/wound/W in affecting.wounds)
if (W.internal)
@@ -187,27 +187,27 @@
if(used == amount)
break
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
- to_chat(user, "You must stand still to bandage wounds.")
+ to_chat(user, span_notice("You must stand still to bandage wounds."))
break
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
return 1
if(used >= available)
- to_chat(user, "You run out of [src]!")
+ to_chat(user, span_warning("You run out of [src]!"))
break
if (W.current_stage <= W.max_bleeding_stage)
user.visible_message("\The [user] bandages \a [W.desc] on [M]'s [affecting.name].", \
- "You bandage \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You bandage \a [W.desc] on [M]'s [affecting.name].") )
//H.add_side_effect("Itch")
else if (W.damage_type == BRUISE)
user.visible_message("\The [user] places a bruise patch over \a [W.desc] on [M]'s [affecting.name].", \
- "You place a bruise patch over \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You place a bruise patch over \a [W.desc] on [M]'s [affecting.name].") )
else
user.visible_message("\The [user] places a bandaid over \a [W.desc] on [M]'s [affecting.name].", \
- "You place a bandaid over \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You place a bandaid over \a [W.desc] on [M]'s [affecting.name].") )
W.bandage()
// W.disinfect() // VOREStation - Tech1 should not disinfect
playsound(src, pick(apply_sounds), 25)
@@ -215,9 +215,9 @@
affecting.update_damages()
if(used == amount)
if(affecting.is_bandaged())
- to_chat(user, "\The [src] is used up.")
+ to_chat(user, span_warning("\The [src] is used up."))
else
- to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].")
+ to_chat(user, span_warning("\The [src] is used up, but there are more wounds to treat on \the [affecting.name]."))
use(used)
/obj/item/stack/medical/ointment
@@ -242,23 +242,23 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(affecting.open)
- to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
+ to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
return
if(affecting.is_salved())
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
return 1
else
user.visible_message("\The [user] starts salving wounds on [M]'s [affecting.name].", \
- "You start salving the wounds on [M]'s [affecting.name]." )
+ span_notice("You start salving the wounds on [M]'s [affecting.name].") )
if(!do_mob(user, M, 10, exclusive = TRUE))
- to_chat(user, "You must stand still to salve wounds.")
+ to_chat(user, span_notice("You must stand still to salve wounds."))
return 1
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
return 1
- user.visible_message("[user] salved wounds on [M]'s [affecting.name].", \
- "You salved wounds on [M]'s [affecting.name]." )
+ user.visible_message(span_notice("[user] salved wounds on [M]'s [affecting.name]."), \
+ span_notice("You salved wounds on [M]'s [affecting.name].") )
use(1)
affecting.salve()
playsound(src, pick(apply_sounds), 25)
@@ -287,16 +287,16 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(affecting.open)
- to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
+ to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
return
if(affecting.is_bandaged() && affecting.is_disinfected())
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been treated.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been treated."))
return 1
else
var/available = get_amount()
user.visible_message("\The [user] starts treating [M]'s [affecting.name].", \
- "You start treating [M]'s [affecting.name]." )
+ span_notice("You start treating [M]'s [affecting.name].") )
var/used = 0
for (var/datum/wound/W in affecting.wounds)
if (W.internal)
@@ -306,25 +306,25 @@
//if(used == amount) //VOREStation Edit
// break //VOREStation Edit
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
- to_chat(user, "You must stand still to bandage wounds.")
+ to_chat(user, span_notice("You must stand still to bandage wounds."))
break
if(affecting.is_bandaged() && affecting.is_disinfected()) // We do a second check after the delay, in case it was bandaged after the first check.
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
return 1
if(used >= available)
- to_chat(user, "You run out of [src]!")
+ to_chat(user, span_warning("You run out of [src]!"))
break
if (W.current_stage <= W.max_bleeding_stage)
user.visible_message("\The [user] cleans \a [W.desc] on [M]'s [affecting.name] and seals the edges with bioglue.", \
- "You clean and seal \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You clean and seal \a [W.desc] on [M]'s [affecting.name].") )
else if (W.damage_type == BRUISE)
user.visible_message("\The [user] places a medical patch over \a [W.desc] on [M]'s [affecting.name].", \
- "You place a medical patch over \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You place a medical patch over \a [W.desc] on [M]'s [affecting.name].") )
else
user.visible_message("\The [user] smears some bioglue over \a [W.desc] on [M]'s [affecting.name].", \
- "You smear some bioglue over \a [W.desc] on [M]'s [affecting.name]." )
+ span_notice("You smear some bioglue over \a [W.desc] on [M]'s [affecting.name].") )
W.bandage()
W.disinfect()
W.heal_damage(heal_brute)
@@ -334,9 +334,9 @@
affecting.update_damages()
if(used == amount)
if(affecting.is_bandaged())
- to_chat(user, "\The [src] is used up.")
+ to_chat(user, span_warning("\The [src] is used up."))
else
- to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].")
+ to_chat(user, span_warning("\The [src] is used up, but there are more wounds to treat on \the [affecting.name]."))
use(used)
/obj/item/stack/medical/advanced/ointment
@@ -357,22 +357,22 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
if(affecting.open)
- to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
+ to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
if(affecting.is_salved())
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
return 1
else
user.visible_message("\The [user] starts salving wounds on [M]'s [affecting.name].", \
- "You start salving the wounds on [M]'s [affecting.name]." )
+ span_notice("You start salving the wounds on [M]'s [affecting.name].") )
if(!do_mob(user, M, 10, exclusive = TRUE))
- to_chat(user, "You must stand still to salve wounds.")
+ to_chat(user, span_notice("You must stand still to salve wounds."))
return 1
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
- to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.")
+ to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
return 1
- user.visible_message( "[user] covers wounds on [M]'s [affecting.name] with regenerative membrane.", \
- "You cover wounds on [M]'s [affecting.name] with regenerative membrane." )
+ user.visible_message( span_notice("[user] covers wounds on [M]'s [affecting.name] with regenerative membrane."), \
+ span_notice("You cover wounds on [M]'s [affecting.name] with regenerative membrane.") )
affecting.heal_damage(0,heal_burn)
use(1)
affecting.salve()
@@ -400,25 +400,25 @@
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
var/limb = affecting.name
if(!(affecting.organ_tag in splintable_organs))
- to_chat(user, "You can't use \the [src] to apply a splint there!")
+ to_chat(user, span_danger("You can't use \the [src] to apply a splint there!"))
return
if(affecting.splinted)
- to_chat(user, "[M]'s [limb] is already splinted!")
+ to_chat(user, span_danger("[M]'s [limb] is already splinted!"))
return
if (M != user)
- user.visible_message("[user] starts to apply \the [src] to [M]'s [limb].", "You start to apply \the [src] to [M]'s [limb].", "You hear something being wrapped.")
+ user.visible_message(span_danger("[user] starts to apply \the [src] to [M]'s [limb]."), span_danger("You start to apply \the [src] to [M]'s [limb]."), span_danger("You hear something being wrapped."))
else
if(( !user.hand && (affecting.organ_tag in list(BP_R_ARM, BP_R_HAND)) || \
user.hand && (affecting.organ_tag in list(BP_L_ARM, BP_L_HAND)) ))
- to_chat(user, "You can't apply a splint to the arm you're using!")
+ to_chat(user, span_danger("You can't apply a splint to the arm you're using!"))
return
- user.visible_message("[user] starts to apply \the [src] to their [limb].", "You start to apply \the [src] to your [limb].", "You hear something being wrapped.")
+ user.visible_message(span_danger("[user] starts to apply \the [src] to their [limb]."), span_danger("You start to apply \the [src] to your [limb]."), span_danger("You hear something being wrapped."))
if(do_after(user, 50, M, exclusive = TASK_USER_EXCLUSIVE))
if(affecting.splinted)
- to_chat(user, "[M]'s [limb] is already splinted!")
+ to_chat(user, span_danger("[M]'s [limb] is already splinted!"))
return
if(M == user && prob(75))
- user.visible_message("\The [user] fumbles [src].", "You fumble [src].", "You hear something being wrapped.")
+ user.visible_message(span_danger("\The [user] fumbles [src]."), span_danger("You fumble [src]."), span_danger("You hear something being wrapped."))
return
if(ishuman(user))
var/obj/item/stack/medical/splint/S = split(1)
@@ -426,9 +426,9 @@
if(affecting.apply_splint(S))
S.forceMove(affecting)
if (M != user)
- user.visible_message("\The [user] finishes applying [src] to [M]'s [limb].", "You finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.")
+ user.visible_message(span_danger("\The [user] finishes applying [src] to [M]'s [limb]."), span_danger("You finish applying \the [src] to [M]'s [limb]."), span_danger("You hear something being wrapped."))
else
- user.visible_message("\The [user] successfully applies [src] to their [limb].", "You successfully apply \the [src] to your [limb].", "You hear something being wrapped.")
+ user.visible_message(span_danger("\The [user] successfully applies [src] to their [limb]."), span_danger("You successfully apply \the [src] to your [limb]."), span_danger("You hear something being wrapped."))
return
S.dropInto(src.loc) //didn't get applied, so just drop it
if(isrobot(user))
@@ -436,10 +436,10 @@
if(B)
if(affecting.apply_splint(B))
B.forceMove(affecting)
- user.visible_message("\The [user] finishes applying [src] to [M]'s [limb].", "You finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.")
+ user.visible_message(span_danger("\The [user] finishes applying [src] to [M]'s [limb]."), span_danger("You finish applying \the [src] to [M]'s [limb]."), span_danger("You hear something being wrapped."))
B.use(1)
return
- user.visible_message("\The [user] fails to apply [src].", "You fail to apply [src].", "You hear something being wrapped.")
+ user.visible_message(span_danger("\The [user] fails to apply [src]."), span_danger("You fail to apply [src]."), span_danger("You hear something being wrapped."))
return
diff --git a/code/game/objects/items/stacks/medical_vr.dm b/code/game/objects/items/stacks/medical_vr.dm
index 9ba54cea33..a7e5012e5e 100644
--- a/code/game/objects/items/stacks/medical_vr.dm
+++ b/code/game/objects/items/stacks/medical_vr.dm
@@ -49,7 +49,7 @@
if(affecting.open)
too_far_gone++
continue
-
+
for(var/datum/wound/W as anything in affecting.wounds)
// No need
if(W.bandaged)
@@ -61,7 +61,7 @@
clotted++
W.bandage()
- var/healmessage = "You spray [src] onto [H], sealing [clotted ? clotted : "no"] wounds."
+ var/healmessage = span_notice("You spray [src] onto [H], sealing [clotted ? clotted : "no"] wounds.")
if(too_far_gone)
healmessage += " You can see some wounds that are too large where the spray is not taking effect."
@@ -71,4 +71,4 @@
update_icon()
/obj/item/stack/medical/advanced/clotting/update_icon()
- icon_state = "[initial(icon_state)]_[amount]"
\ No newline at end of file
+ icon_state = "[initial(icon_state)]_[amount]"
diff --git a/code/game/objects/items/stacks/nanopaste.dm b/code/game/objects/items/stacks/nanopaste.dm
index ba5db2b33b..8267de0047 100644
--- a/code/game/objects/items/stacks/nanopaste.dm
+++ b/code/game/objects/items/stacks/nanopaste.dm
@@ -21,33 +21,33 @@
R.adjustFireLoss(-15)
R.updatehealth()
use(1)
- user.visible_message("\The [user] applied some [src] on [R]'s damaged areas.",\
- "You apply some [src] at [R]'s damaged areas.")
+ user.visible_message(span_notice("\The [user] applied some [src] on [R]'s damaged areas."),\
+ span_notice("You apply some [src] at [R]'s damaged areas."))
else
- to_chat(user, "All [R]'s systems are nominal.")
+ to_chat(user, span_notice("All [R]'s systems are nominal."))
if (istype(M,/mob/living/carbon/human)) //Repairing robolimbs
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting)
if(!S)
- to_chat(user, "No body part there to work on!")
+ to_chat(user, span_warning("No body part there to work on!"))
return 1
if(S.organ_tag == BP_HEAD)
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
- to_chat(user, "You can't apply [src] through [H.head]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.head]!"))
return 1
else
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
- to_chat(user, "You can't apply [src] through [H.wear_suit]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.wear_suit]!"))
return 1
//VOREStation Edit Start
if (S && (S.robotic >= ORGAN_ROBOT))
if(!S.get_damage())
- to_chat(user, "Nothing to fix here.")
+ to_chat(user, span_notice("Nothing to fix here."))
else if((S.open < 2) && (S.brute_dam + S.burn_dam >= S.min_broken_damage) && !repair_external)
- to_chat(user, "The damage is too extensive for this nanite swarm to handle.")
+ to_chat(user, span_notice("The damage is too extensive for this nanite swarm to handle."))
else if(can_use(1))
user.setClickCooldown(user.get_attack_speed(src))
if(S.open >= 2)
@@ -57,6 +57,6 @@
S.heal_damage(restoration_external,restoration_external, robo_repair =1)
H.updatehealth()
use(1)
- user.visible_message("\The [user] applies some nanite paste on [user != M ? "[M]'s [S.name]" : "[S]"] with [src].",\
- "You apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name].")
+ user.visible_message(span_notice("\The [user] applies some nanite paste on [user != M ? "[M]'s [S.name]" : "[S]"] with [src]."),\
+ span_notice("You apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name]."))
//VOREStation Edit End
diff --git a/code/game/objects/items/stacks/sandbags.dm b/code/game/objects/items/stacks/sandbags.dm
index adb7338b81..48f7a8341e 100644
--- a/code/game/objects/items/stacks/sandbags.dm
+++ b/code/game/objects/items/stacks/sandbags.dm
@@ -57,21 +57,21 @@ var/global/list/datum/stack_recipe/sandbag_recipes = list( \
if (!can_use(required))
if (produced>1)
- to_chat(user, "You haven't got enough [src] to build \the [produced] [recipe.title]\s!")
+ to_chat(user, span_warning("You haven't got enough [src] to build \the [produced] [recipe.title]\s!"))
else
- to_chat(user, "You haven't got enough [src] to build \the [recipe.title]!")
+ to_chat(user, span_warning("You haven't got enough [src] to build \the [recipe.title]!"))
return
if (recipe.one_per_turf && (locate(recipe.result_type) in user.loc))
- to_chat(user, "There is another [recipe.title] here!")
+ to_chat(user, span_warning("There is another [recipe.title] here!"))
return
if (recipe.on_floor && !isfloor(user.loc))
- to_chat(user, "\The [recipe.title] must be constructed on the floor!")
+ to_chat(user, span_warning("\The [recipe.title] must be constructed on the floor!"))
return
if (recipe.time)
- to_chat(user, "Building [recipe.title] ...")
+ to_chat(user, span_notice("Building [recipe.title] ..."))
if (!do_after(user, recipe.time))
return
@@ -147,4 +147,4 @@ var/global/list/datum/stack_recipe/sandbag_recipes = list( \
var/obj/item/stack/sandbags/SB = new (get_turf(src), 1, bag_material)
SB.color = color
if(user)
- to_chat(user, "You fill a sandbag.")
+ to_chat(user, span_notice("You fill a sandbag."))
diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm
index 9848e4e5e3..8e5eb5e8c1 100644
--- a/code/game/objects/items/stacks/stack.dm
+++ b/code/game/objects/items/stacks/stack.dm
@@ -157,21 +157,21 @@
if (!can_use(required))
if (produced>1)
- to_chat(user, "You haven't got enough [src] to build \the [produced] [recipe.title]\s!")
+ to_chat(user, span_warning("You haven't got enough [src] to build \the [produced] [recipe.title]\s!"))
else
- to_chat(user, "You haven't got enough [src] to build \the [recipe.title]!")
+ to_chat(user, span_warning("You haven't got enough [src] to build \the [recipe.title]!"))
return
if (recipe.one_per_turf && (locate(recipe.result_type) in user.loc))
- to_chat(user, "There is another [recipe.title] here!")
+ to_chat(user, span_warning("There is another [recipe.title] here!"))
return
if (recipe.on_floor && !isfloor(user.loc))
- to_chat(user, "\The [recipe.title] must be constructed on the floor!")
+ to_chat(user, span_warning("\The [recipe.title] must be constructed on the floor!"))
return
if (recipe.time)
- to_chat(user, "Building [recipe.title] ...")
+ to_chat(user, span_notice("Building [recipe.title] ..."))
if (!do_after(user, recipe.time))
return
@@ -396,7 +396,7 @@
continue
var/transfer = src.transfer_to(item)
if (transfer)
- to_chat(user, "You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s.")
+ to_chat(user, span_notice("You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s."))
if(!amount)
break
@@ -404,7 +404,7 @@
if (user.get_inactive_hand() == src)
var/N = tgui_input_number(usr, "How many stacks of [src] would you like to split off? There are currently [amount].", "Split stacks", 1, amount, 1)
if(N != round(N))
- to_chat(user, "You cannot separate a non-whole number of stacks!")
+ to_chat(user, span_warning("You cannot separate a non-whole number of stacks!"))
return
if(N)
var/obj/item/stack/F = src.split(N)
diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm
index 0a6d47b3c0..a7e73890dd 100644
--- a/code/game/objects/items/stacks/telecrystal.dm
+++ b/code/game/objects/items/stacks/telecrystal.dm
@@ -12,15 +12,15 @@
/obj/item/stack/telecrystal/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone)
if(amount >= 5)
- target.visible_message("\The [target] has been transported with \the [src] by \the [user].")
+ target.visible_message(span_warning("\The [target] has been transported with \the [src] by \the [user]."))
safe_blink(target, 14)
use(5)
else
- to_chat(user, "There are not enough telecrystals to do that.")
+ to_chat(user, span_warning("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
- to_chat(user, "You use \the [src], adding [src.amount] to your balance.")
+ to_chat(user, span_notice("You use \the [src], adding [src.amount] to your balance."))
user.mind.tcrystals += amount
use(amount)
- return
\ No newline at end of file
+ return
diff --git a/code/game/objects/items/stacks/tiles/tile_types.dm b/code/game/objects/items/stacks/tiles/tile_types.dm
index 6db64ed9b3..ec3fcb8cc4 100644
--- a/code/game/objects/items/stacks/tiles/tile_types.dm
+++ b/code/game/objects/items/stacks/tiles/tile_types.dm
@@ -49,13 +49,13 @@
return
if(get_amount() < 4)
- to_chat(user, "You need at least four tiles to do this.")
+ to_chat(user, span_warning("You need at least four tiles to do this."))
return
if(WT.remove_fuel(0,user))
new welds_into(usr.loc)
usr.update_icon()
- visible_message("\The [src] is shaped by [user.name] with the welding tool.","You hear welding.")
+ visible_message(span_notice("\The [src] is shaped by [user.name] with the welding tool."),"You hear welding.")
var/obj/item/stack/tile/T = src
src = null
var/replace = (user.get_inactive_hand()==T)
diff --git a/code/game/objects/items/toys/mech_toys.dm b/code/game/objects/items/toys/mech_toys.dm
index ecbefb74d2..90519571b3 100644
--- a/code/game/objects/items/toys/mech_toys.dm
+++ b/code/game/objects/items/toys/mech_toys.dm
@@ -77,12 +77,12 @@
if(!attacker) // If there's no attacker, then attacker_controller IS the attacker.
if(!in_range(src, attacker_controller))
- attacker_controller.visible_message("[attacker_controller] is running from [src]! The coward!")
+ attacker_controller.visible_message(span_suicide("[attacker_controller] is running from [src]! The coward!"))
return FALSE
else // If there's an attacker, we can procede as normal.
if(!in_range(src, attacker)) // The two toys aren't next to each other, the battle ends.
- attacker_controller.visible_message(" [attacker] and [src] separate, ending the battle. ", \
- " [attacker] and [src] separate, ending the battle. ")
+ attacker_controller.visible_message(span_notice(" [attacker] and [src] separate, ending the battle. "), \
+ span_notice(" [attacker] and [src] separate, ending the battle. "))
return FALSE
// Dead men tell no tales, incapacitated men fight no fights.
@@ -90,8 +90,8 @@
return FALSE
// If the attacker_controller isn't next to the attacking toy (and doesn't have telekinesis), the battle ends.
if(!in_range(attacker, attacker_controller))
- attacker_controller.visible_message(" [attacker_controller.name] separates from [attacker], ending the battle.", \
- " You separate from [attacker], ending the battle. ")
+ attacker_controller.visible_message(span_notice(" [attacker_controller.name] separates from [attacker], ending the battle."), \
+ span_notice(" You separate from [attacker], ending the battle. "))
return FALSE
// If it's PVP and the opponent is not next to the defending(src) toy (and doesn't have telekinesis), the battle ends.
@@ -99,14 +99,14 @@
if(opponent.incapacitated())
return FALSE
if(!in_range(src, opponent))
- opponent.visible_message(" [opponent.name] separates from [src], ending the battle.", \
- " You separate from [src], ending the battle. ")
+ opponent.visible_message(span_notice(" [opponent.name] separates from [src], ending the battle."), \
+ span_notice(" You separate from [src], ending the battle. "))
return FALSE
// If it's not PVP and the attacker_controller isn't next to the defending toy (and doesn't have telekinesis), the battle ends.
else
if (!in_range(src, attacker_controller))
- attacker_controller.visible_message(" [attacker_controller.name] separates from [src] and [attacker], ending the battle.", \
- " You separate [attacker] and [src], ending the battle. ")
+ attacker_controller.visible_message(span_notice(" [attacker_controller.name] separates from [src] and [attacker], ending the battle."), \
+ span_notice(" You separate [attacker] and [src], ending the battle. "))
return FALSE
// If all that is good, then we can sleep peacefully.
@@ -116,7 +116,7 @@
//all credit to skasi for toy mech fun ideas
/obj/item/toy/mecha/attack_self(mob/user)
if(timer < world.time)
- to_chat(user, "You play with [src].")
+ to_chat(user, span_notice("You play with [src]."))
timer = world.time + cooldown
playsound(user, 'sound/mecha/mechstep.ogg', 20, TRUE)
else
@@ -144,11 +144,11 @@
*/
/obj/item/toy/mecha/attack(mob/living/carbon/human/target, mob/living/carbon/human/user)
if(target == user)
- to_chat(user, "Target another toy mech if you want to start a battle with yourself.")
+ to_chat(user, span_notice("Target another toy mech if you want to start a battle with yourself."))
return
else if(user.a_intent != I_HURT)
if(wants_to_battle) //prevent spamming someone with offers
- to_chat(user, "You already are offering battle to someone!")
+ to_chat(user, span_notice("You already are offering battle to someone!"))
return
if(!check_battle_start(user)) //if the user's mech isn't ready, don't bother checking
return
@@ -167,8 +167,8 @@
//extend the offer of battle to the other mech
var/datum/gender/T = gender_datums[user.get_visible_gender()]
- to_chat(user, "You offer battle to [target.name]!")
- to_chat(target, "[user.name] wants to battle with [T.His] [name]! Attack them with a toy mech to initiate combat.")
+ to_chat(user, span_notice("You offer battle to [target.name]!"))
+ to_chat(target, span_notice("[user.name] wants to battle with [T.His] [name]! Attack them with a toy mech to initiate combat."))
wants_to_battle = TRUE
addtimer(CALLBACK(src, PROC_REF(withdraw_offer), user), 6 SECONDS)
return
@@ -180,7 +180,7 @@
*/
/obj/item/toy/mecha/attack_tk(mob/user)
if(timer < world.time)
- to_chat(user, "You telekinetically play with [src].")
+ to_chat(user, span_notice("You telekinetically play with [src]."))
timer = world.time + cooldown
playsound(user, 'sound/mecha/mechstep.ogg', 20, TRUE)
@@ -194,19 +194,19 @@
/obj/item/toy/mecha/proc/withdraw_offer(mob/living/carbon/user)
if(wants_to_battle)
wants_to_battle = FALSE
- to_chat(user, "You get the feeling they don't want to battle.")
+ to_chat(user, span_notice("You get the feeling they don't want to battle."))
/obj/item/toy/mecha/examine()
. = ..()
- . += "This toy's special attack is [special_attack_cry], [special_attack_type_message] "
+ . += span_notice("This toy's special attack is [special_attack_cry], [special_attack_type_message] ")
if(in_combat)
- . += "This toy has a maximum health of [max_combat_health]. Currently, it's [combat_health]."
- . += "Its special move light is [special_attack_cooldown? "flashing red." : "green and is ready!"]"
+ . += span_notice("This toy has a maximum health of [max_combat_health]. Currently, it's [combat_health].")
+ . += span_notice("Its special move light is [special_attack_cooldown? "flashing red." : "green and is ready!"]")
else
- . += "This toy has a maximum health of [max_combat_health]."
+ . += span_notice("This toy has a maximum health of [max_combat_health].")
if(wins || losses)
- . += "This toy has [wins] wins, and [losses] losses."
+ . += span_notice("This toy has [wins] wins, and [losses] losses.")
/**
* The 'master' proc of the mech battle. Processes the entire battle's events and makes sure it start and finishes correctly.
@@ -223,9 +223,9 @@
*/
/obj/item/toy/mecha/proc/mecha_brawl(obj/item/toy/mecha/attacker, mob/living/carbon/attacker_controller, mob/living/carbon/opponent)
//A GOOD DAY FOR A SWELL BATTLE!
- attacker_controller.visible_message(" [attacker_controller.name] collides [attacker] with [src]! Looks like they're preparing for a brawl! ", \
- " You collide [attacker] into [src], sparking a fierce battle! ", \
- " You hear hard plastic smacking into hard plastic.")
+ attacker_controller.visible_message(span_danger(" [attacker_controller.name] collides [attacker] with [src]! Looks like they're preparing for a brawl! "), \
+ span_danger(" You collide [attacker] into [src], sparking a fierce battle! "), \
+ span_hear(" You hear hard plastic smacking into hard plastic."))
/// Who's in control of the defender (src)?
var/mob/living/carbon/src_controller = (opponent)? opponent : attacker_controller
@@ -247,13 +247,13 @@
//before we do anything - deal with charged attacks
if(special_attack_charged)
- src_controller.visible_message(" [src] unleashes its special attack!! ", \
- " You unleash [src]'s special attack! ")
+ src_controller.visible_message(span_danger(" [src] unleashes its special attack!! "), \
+ span_danger(" You unleash [src]'s special attack! "))
special_attack_move(attacker)
else if(attacker.special_attack_charged)
- attacker_controller.visible_message(" [attacker] unleashes its special attack!! ", \
- " You unleash [attacker]'s special attack! ")
+ attacker_controller.visible_message(span_danger(" [attacker] unleashes its special attack!! "), \
+ span_danger(" You unleash [attacker]'s special attack! "))
attacker.special_attack_move(src)
else
//process the cooldowns
@@ -267,20 +267,20 @@
if(1 to 3) //attacker wins
if(attacker.special_attack_cooldown == 0 && attacker.combat_health <= round(attacker.max_combat_health/3)) //if health is less than 1/3 and special off CD, use it
attacker.special_attack_charged = TRUE
- attacker_controller.visible_message(" [attacker] begins charging its special attack!! ", \
- " You begin charging [attacker]'s special attack! ")
+ attacker_controller.visible_message(span_danger(" [attacker] begins charging its special attack!! "), \
+ span_danger(" You begin charging [attacker]'s special attack! "))
else //just attack
attacker.SpinAnimation(5, 0)
playsound(attacker, 'sound/mecha/mechstep.ogg', 30, TRUE)
combat_health--
- attacker_controller.visible_message(" [attacker] devastates [src]! ", \
- " You ram [attacker] into [src]! ", \
- " You hear hard plastic smacking hard plastic.")
+ attacker_controller.visible_message(span_danger(" [attacker] devastates [src]! "), \
+ span_danger(" You ram [attacker] into [src]! "), \
+ span_hear(" You hear hard plastic smacking hard plastic."))
if(prob(5))
combat_health--
playsound(src, 'sound/effects/meteorimpact.ogg', 20, TRUE)
- attacker_controller.visible_message(" ...and lands a CRIPPLING BLOW! ", \
- " ...and you land a CRIPPLING blow on [src]! ", null)
+ attacker_controller.visible_message(span_boldwarning(" ...and lands a CRIPPLING BLOW! "), \
+ span_boldwarning(" ...and you land a CRIPPLING blow on [src]! "), null)
if(4) //both lose
attacker.SpinAnimation(5, 0)
@@ -299,44 +299,44 @@
sparkatk.attach(attacker)
sparkatk.start()
if(prob(50))
- attacker_controller.visible_message(" [attacker] and [src] clash dramatically, causing sparks to fly! ", \
- " [attacker] and [src] clash dramatically, causing sparks to fly! ", \
- " You hear hard plastic rubbing against hard plastic.")
+ attacker_controller.visible_message(span_danger(" [attacker] and [src] clash dramatically, causing sparks to fly! "), \
+ span_danger(" [attacker] and [src] clash dramatically, causing sparks to fly! "), \
+ span_hear(" You hear hard plastic rubbing against hard plastic."))
else
- src_controller.visible_message(" [src] and [attacker] clash dramatically, causing sparks to fly! ", \
- " [src] and [attacker] clash dramatically, causing sparks to fly! ", \
- " You hear hard plastic rubbing against hard plastic.")
+ src_controller.visible_message(span_danger(" [src] and [attacker] clash dramatically, causing sparks to fly! "), \
+ span_danger(" [src] and [attacker] clash dramatically, causing sparks to fly! "), \
+ span_hear(" You hear hard plastic rubbing against hard plastic."))
if(5) //both win
playsound(attacker, 'sound/weapons/parry.ogg', 20, TRUE)
if(prob(50))
- attacker_controller.visible_message(" [src]'s attack deflects off of [attacker]. ", \
- " [src]'s attack deflects off of [attacker]. ", \
- " You hear hard plastic bouncing off hard plastic.")
+ attacker_controller.visible_message(span_danger(" [src]'s attack deflects off of [attacker]. "), \
+ span_danger(" [src]'s attack deflects off of [attacker]. "), \
+ span_hear(" You hear hard plastic bouncing off hard plastic."))
else
- src_controller.visible_message(" [attacker]'s attack deflects off of [src]. ", \
- " [attacker]'s attack deflects off of [src]. ", \
- " You hear hard plastic bouncing off hard plastic.")
+ src_controller.visible_message(span_danger(" [attacker]'s attack deflects off of [src]. "), \
+ span_danger(" [attacker]'s attack deflects off of [src]. "), \
+ span_hear(" You hear hard plastic bouncing off hard plastic."))
if(6 to 8) //defender wins
if(special_attack_cooldown == 0 && combat_health <= round(max_combat_health/3)) //if health is less than 1/3 and special off CD, use it
special_attack_charged = TRUE
- src_controller.visible_message(" [src] begins charging its special attack!! ", \
- " You begin charging [src]'s special attack! ")
+ src_controller.visible_message(span_danger(" [src] begins charging its special attack!! "), \
+ span_danger(" You begin charging [src]'s special attack! "))
else //just attack
SpinAnimation(5, 0)
playsound(src, 'sound/mecha/mechstep.ogg', 30, TRUE)
attacker.combat_health--
- src_controller.visible_message(" [src] smashes [attacker]! ", \
- " You smash [src] into [attacker]! ", \
- " You hear hard plastic smashing hard plastic.")
+ src_controller.visible_message(span_danger(" [src] smashes [attacker]! "), \
+ span_danger(" You smash [src] into [attacker]! "), \
+ span_hear(" You hear hard plastic smashing hard plastic."))
if(prob(5))
attacker.combat_health--
playsound(attacker, 'sound/effects/meteorimpact.ogg', 20, TRUE)
- src_controller.visible_message(" ...and lands a CRIPPLING BLOW! ", \
- " ...and you land a CRIPPLING blow on [attacker]! ", null)
+ src_controller.visible_message(span_boldwarning(" ...and lands a CRIPPLING BLOW! "), \
+ span_boldwarning(" ...and you land a CRIPPLING blow on [attacker]! "), null)
else
- attacker_controller.visible_message(" [src] and [attacker] stand around awkwardly.", \
- " You don't know what to do next.")
+ attacker_controller.visible_message(span_notice(" [src] and [attacker] stand around awkwardly."), \
+ span_notice(" You don't know what to do next."))
battle_length++
sleep(0.5 SECONDS)
@@ -346,25 +346,25 @@
if(attacker.combat_health <= 0 && combat_health <= 0) //both lose
playsound(src, 'sound/machines/warning-buzzer.ogg', 20, TRUE)
- attacker_controller.visible_message(" MUTUALLY ASSURED DESTRUCTION!! [src] and [attacker] both end up destroyed!", \
- " Both [src] and [attacker] are destroyed!")
+ attacker_controller.visible_message(span_boldnotice(" MUTUALLY ASSURED DESTRUCTION!! [src] and [attacker] both end up destroyed!"), \
+ span_boldnotice(" Both [src] and [attacker] are destroyed!"))
else if(attacker.combat_health <= 0) //src wins
wins++
attacker.losses++
playsound(attacker, 'sound/effects/light_flicker.ogg', 20, TRUE)
- attacker_controller.visible_message(" [attacker] falls apart!", \
- " [attacker] falls apart!", null)
+ attacker_controller.visible_message(span_notice(" [attacker] falls apart!"), \
+ span_notice(" [attacker] falls apart!"), null)
visible_message("[pick(winlines)]")
- src_controller.visible_message(" [src] destroys [attacker] and walks away victorious!", \
- " You raise up [src] victoriously over [attacker]!")
+ src_controller.visible_message(span_notice(" [src] destroys [attacker] and walks away victorious!"), \
+ span_notice(" You raise up [src] victoriously over [attacker]!"))
else if (combat_health <= 0) //attacker wins
attacker.wins++
losses++
playsound(src, 'sound/effects/light_flicker.ogg', 20, TRUE)
- src_controller.visible_message(" [src] collapses!", \
- " [src] collapses!", null)
+ src_controller.visible_message(span_notice(" [src] collapses!"), \
+ span_notice(" [src] collapses!"), null)
attacker.visible_message("[pick(winlines)]")
- attacker_controller.visible_message(" [attacker] demolishes [src] and walks away victorious!", \
+ attacker_controller.visible_message(span_notice(" [attacker] demolishes [src] and walks away victorious!"), \
" You raise up [attacker] proudly over [src]!")
else //both win?
visible_message("NEXT TIME.")
@@ -395,24 +395,24 @@
if(target)
T = gender_datums[target.get_visible_gender()] // Doing this because Polaris Code has shitty gender datums and it's clunkier than FUCK.
if(attacker && attacker.in_combat)
- to_chat(user, "[target ? T.His : "Your" ] [attacker.name] is in combat.")
+ to_chat(user, span_notice("[target ? T.His : "Your" ] [attacker.name] is in combat."))
if(target)
- to_chat(target, "Your [attacker.name] is in combat.")
+ to_chat(target, span_notice("Your [attacker.name] is in combat."))
return FALSE
if(in_combat)
- to_chat(user, "Your [name] is in combat.")
+ to_chat(user, span_notice("Your [name] is in combat."))
if(target)
- to_chat(target, "[T.His] [name] is in combat.")
+ to_chat(target, span_notice("[T.His] [name] is in combat."))
return FALSE
if(attacker && attacker.timer > world.time)
- to_chat(user, "[target?T.His : "Your" ] [attacker.name] isn't ready for battle.")
+ to_chat(user, span_notice("[target?T.His : "Your" ] [attacker.name] isn't ready for battle."))
if(target)
- to_chat(target, "Your [attacker.name] isn't ready for battle.")
+ to_chat(target, span_notice("Your [attacker.name] isn't ready for battle."))
return FALSE
if(timer > world.time)
- to_chat(user, "Your [name] isn't ready for battle.")
+ to_chat(user, span_notice("Your [name] isn't ready for battle."))
if(target)
- to_chat(target, "[T.His] [name] isn't ready for battle.")
+ to_chat(target, span_notice("[T.His] [name] isn't ready for battle."))
return FALSE
return TRUE
@@ -454,7 +454,7 @@
* * victim - the toy being hit by the super special move (doesn't necessarily need to be used)
*/
/obj/item/toy/mecha/proc/super_special_attack(obj/item/toy/mecha/victim)
- visible_message(" [src] does a cool flip.")
+ visible_message(span_notice(" [src] does a cool flip."))
/obj/random/mech_toy
name = "Random Mech Toy"
diff --git a/code/game/objects/items/toys/toys.dm b/code/game/objects/items/toys/toys.dm
index 5770ddd3da..62b1744bab 100644
--- a/code/game/objects/items/toys/toys.dm
+++ b/code/game/objects/items/toys/toys.dm
@@ -48,7 +48,7 @@
if(!proximity) return
if (istype(A, /obj/structure/reagent_dispensers/watertank) && get_dist(src,A) <= 1)
A.reagents.trans_to_obj(src, 10)
- to_chat(user, "You fill the balloon with the contents of [A].")
+ to_chat(user, span_notice("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
@@ -65,14 +65,14 @@
qdel(src)
else
src.desc = "A translucent balloon with some form of liquid sloshing around in it."
- to_chat(user, "You fill the balloon with the contents of [O].")
+ to_chat(user, span_notice("You fill the balloon with the contents of [O]."))
O.reagents.trans_to_obj(src, 10)
src.update_icon()
return
/obj/item/toy/balloon/throw_impact(atom/hit_atom)
if(src.reagents.total_volume >= 1)
- src.visible_message("\The [src] bursts!","You hear a pop and a splash.")
+ src.visible_message(span_warning("\The [src] bursts!"),"You hear a pop and a splash.")
src.reagents.touch_turf(get_turf(hit_atom))
for(var/atom/A in get_turf(hit_atom))
src.reagents.touch(A)
@@ -165,12 +165,12 @@
/obj/item/toy/sword/attack_self(mob/user as mob)
src.active = !( src.active )
if (src.active)
- to_chat(user, "You extend the plastic blade with a quick flick of your wrist.")
+ to_chat(user, span_notice("You extend the plastic blade with a quick flick of your wrist."))
playsound(src, 'sound/weapons/saberon.ogg', 50, 1)
src.item_state = "[icon_state]_blade"
src.w_class = ITEMSIZE_LARGE
else
- to_chat(user, "You push the plastic blade back down into the handle.")
+ to_chat(user, span_notice("You push the plastic blade back down into the handle."))
playsound(src, 'sound/weapons/saberoff.ogg', 50, 1)
src.item_state = "[icon_state]"
src.w_class = ITEMSIZE_SMALL
@@ -194,7 +194,7 @@
if(!in_range(src, user)) //Basic checks to prevent abuse
return
if(user.incapacitated() || !istype(user))
- to_chat(user, "You can't do that right now!")
+ to_chat(user, span_warning("You can't do that right now!"))
return
if(tgui_alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", list("Yes", "No")) == "Yes")
@@ -205,7 +205,7 @@
/obj/item/toy/sword/examine(mob/user)
. = ..()
- . += "Alt-click to recolor it."
+ . += span_notice("Alt-click to recolor it.")
/obj/item/toy/sword/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/multitool) && !active)
@@ -213,7 +213,7 @@
rainbow = TRUE
else
rainbow = FALSE
- to_chat(user, "You manipulate the color controller in [src].")
+ to_chat(user, span_notice("You manipulate the color controller in [src]."))
update_icon()
/obj/item/toy/katana
name = "replica katana"
@@ -248,7 +248,7 @@
s.set_up(3, 1, src)
s.start()
new /obj/effect/decal/cleanable/ash(src.loc)
- src.visible_message("The [src.name] explodes!","You hear a snap!")
+ src.visible_message(span_warning("The [src.name] explodes!"),span_warning("You hear a snap!"))
playsound(src, 'sound/effects/snap.ogg', 50, 1)
qdel(src)
@@ -258,13 +258,13 @@
if((ishuman(H))) //i guess carp and shit shouldn't set them off
var/mob/living/carbon/M = H
if(M.m_intent == "run")
- to_chat(M, "You step on the snap pop!")
+ to_chat(M, span_warning("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)
s.start()
new /obj/effect/decal/cleanable/ash(src.loc)
- src.visible_message("The [src.name] explodes!","You hear a snap!")
+ src.visible_message(span_warning("The [src.name] explodes!"),span_warning("You hear a snap!"))
playsound(src, 'sound/effects/snap.ogg', 50, 1)
qdel(src)
@@ -283,7 +283,7 @@
/obj/item/toy/bosunwhistle/attack_self(mob/user as mob)
if(cooldown < world.time - 35)
- to_chat(user, "You blow on [src], creating an ear-splitting noise!")
+ to_chat(user, span_notice("You blow on [src], creating an ear-splitting noise!"))
playsound(src, 'sound/misc/boatswain.ogg', 20, 1)
cooldown = world.time
@@ -307,7 +307,7 @@
/obj/item/toy/figure/attack_self(mob/user as mob)
if(cooldown < world.time)
cooldown = (world.time + 30) //3 second cooldown
- user.visible_message("The [src] says \"[toysay]\".")
+ user.visible_message(span_notice("The [src] says \"[toysay]\"."))
playsound(src, 'sound/machines/click.ogg', 20, 1)
/obj/item/toy/figure/cmo
@@ -725,13 +725,13 @@
searching = FALSE
if(user.a_intent == I_HELP)
- user.visible_message("\The [user] hugs [src]!","You hug [src]!")
+ user.visible_message(span_notice("\The [user] hugs [src]!"),span_notice("You hug [src]!"))
else if (user.a_intent == I_HURT)
- user.visible_message("\The [user] punches [src]!","You punch [src]!")
+ user.visible_message(span_warning("\The [user] punches [src]!"),span_warning("You punch [src]!"))
else if (user.a_intent == I_GRAB)
- user.visible_message("\The [user] attempts to strangle [src]!","You attempt to strangle [src]!")
+ user.visible_message(span_warning("\The [user] attempts to strangle [src]!"),span_warning("You attempt to strangle [src]!"))
else
- user.visible_message("\The [user] pokes the [src].","You poke the [src].")
+ user.visible_message(span_notice("\The [user] pokes the [src]."),span_notice("You poke the [src]."))
visible_message("[src] says, \"[phrase]\"")
@@ -824,13 +824,13 @@
if(world.time - last_message <= 15 SECONDS)
return
if(user.a_intent == I_HELP)
- user.visible_message("\The [user] hugs [src]!","You hug [src]!")
+ user.visible_message(span_notice("\The [user] hugs [src]!"),span_notice("You hug [src]!"))
else if (user.a_intent == I_HURT)
- user.visible_message("\The [user] punches [src]!","You punch [src]!")
+ user.visible_message(span_warning("\The [user] punches [src]!"),span_warning("You punch [src]!"))
else if (user.a_intent == I_GRAB)
- user.visible_message("\The [user] attempts to strangle [src]!","You attempt to strangle [src]!")
+ user.visible_message(span_warning("\The [user] attempts to strangle [src]!"),span_warning("You attempt to strangle [src]!"))
else
- user.visible_message("\The [user] pokes [src].","You poke [src].")
+ user.visible_message(span_notice("\The [user] pokes [src]."),span_notice("You poke [src]."))
playsound(src, 'sound/items/drop/plushie.ogg', 25, 0)
visible_message("[src] says, \"[pokephrase]\"")
last_message = world.time
@@ -852,8 +852,8 @@
/obj/item/toy/plushie/attackby(obj/item/I as obj, mob/user as mob)
if(istype(I, /obj/item/toy/plushie) || istype(I, /obj/item/organ/external/head))
- user.visible_message("[user] makes \the [I] kiss \the [src]!.", \
- "You make \the [I] kiss \the [src]!.")
+ user.visible_message(span_notice("[user] makes \the [I] kiss \the [src]!."), \
+ span_notice("You make \the [I] kiss \the [src]!."))
return
@@ -1182,8 +1182,8 @@
/obj/item/toy/eight_ball/attack_self(mob/user as mob)
if(!cooldown)
var/answer = pick(possible_answers)
- user.visible_message("[user] focuses on their question and [use_action]...")
- user.visible_message("The [src] says \"[answer]\"")
+ user.visible_message(span_notice("[user] focuses on their question and [use_action]..."))
+ user.visible_message(span_notice("The [src] says \"[answer]\""))
spawn(30)
cooldown = 0
return
@@ -1254,9 +1254,9 @@
/obj/item/toy/AI/attack_self(mob/user)
if(!cooldown) //for the sanity of everyone
var/message = generate_ion_law()
- to_chat(user, "You press the button on [src].")
+ to_chat(user, span_notice("You press the button on [src]."))
playsound(src, 'sound/machines/click.ogg', 20, 1)
- visible_message("[message]")
+ visible_message(span_danger("[message]"))
cooldown = 1
spawn(30) cooldown = 0
return
@@ -1273,9 +1273,9 @@
/obj/item/toy/owl/attack_self(mob/user)
if(!cooldown) //for the sanity of everyone
var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!")
- to_chat(user, "You pull the string on the [src].")
+ to_chat(user, span_notice("You pull the string on the [src]."))
//playsound(src, 'sound/misc/hoot.ogg', 25, 1)
- visible_message("[message]")
+ visible_message(span_danger("[message]"))
cooldown = 1
spawn(30) cooldown = 0
return
@@ -1292,9 +1292,9 @@
/obj/item/toy/griffin/attack_self(mob/user)
if(!cooldown) //for the sanity of everyone
var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!")
- to_chat(user, "You pull the string on the [src].")
+ to_chat(user, span_notice("You pull the string on the [src]."))
//playsound(src, 'sound/misc/caw.ogg', 25, 1)
- visible_message("[message]")
+ visible_message(span_danger("[message]"))
cooldown = 1
spawn(30) cooldown = 0
return
@@ -1418,13 +1418,13 @@
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(user.a_intent == I_HELP)
- user.visible_message("\The [user] pokes [src]!","You poke [src]!")
+ user.visible_message(span_notice("\The [user] pokes [src]!"),span_notice("You poke [src]!"))
else if (user.a_intent == I_HURT)
- user.visible_message("\The [user] punches [src]!","You punch [src]!")
+ user.visible_message(span_warning("\The [user] punches [src]!"),span_warning("You punch [src]!"))
else if (user.a_intent == I_GRAB)
- user.visible_message("\The [user] attempts to pop [src]!","You attempt to pop [src]!")
+ user.visible_message(span_warning("\The [user] attempts to pop [src]!"),span_warning("You attempt to pop [src]!"))
else
- user.visible_message("\The [user] lightly bats the [src].","You lightly bat the [src].")
+ user.visible_message(span_notice("\The [user] lightly bats the [src]."),span_notice("You lightly bat the [src]."))
/obj/structure/balloon/bat
name = "giant bat balloon"
diff --git a/code/game/objects/items/toys/toys_vr.dm b/code/game/objects/items/toys/toys_vr.dm
index 6a4e9de274..ac665ba275 100644
--- a/code/game/objects/items/toys/toys_vr.dm
+++ b/code/game/objects/items/toys/toys_vr.dm
@@ -104,7 +104,7 @@
if(!T.AdjacentQuick(user)) // So people aren't messing with these from across the room
return FALSE
lights_glowing = !lights_glowing
- to_chat(user, "You turn the [src]'s glow-fabric [lights_glowing ? "on" : "off"].")
+ to_chat(user, span_notice("You turn the [src]'s glow-fabric [lights_glowing ? "on" : "off"]."))
update_icon()
/obj/item/toy/plushie/borgplushie/drake/update_icon()
@@ -172,7 +172,7 @@
/obj/item/toy/plushie/vox/attack_self(mob/user as mob)
if(!cooldown)
playsound(user, 'sound/voice/shriek1.ogg', 10, 0)
- src.visible_message("Skreee!")
+ src.visible_message(span_danger("Skreee!"))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -198,7 +198,7 @@
toasted = TRUE
icon = 'icons/obj/toy_vr.dmi'
icon_state = "toast"
- to_chat(user, " You insert bread into the toaster. ")
+ to_chat(user, span_notice(" You insert bread into the toaster. "))
playsound(loc, 'sound/machines/ding.ogg', 50, 1)
/obj/item/reagent_containers/food/snacks/tastybread/afterattack(atom/A, mob/user as mob, proximity)
@@ -206,12 +206,12 @@
toasted = TRUE
icon = 'icons/obj/toy_vr.dmi'
icon_state = "toast"
- to_chat(user, " You insert bread into the toaster. ")
+ to_chat(user, span_notice(" You insert bread into the toaster. "))
playsound(loc, 'sound/machines/ding.ogg', 50, 1)
/obj/item/toy/plushie/ipc/attackby(obj/item/I as obj, mob/living/user as mob)
if(istype(I, /obj/item/material/kitchen/utensil))
- to_chat(user, " You insert the [I] into the toaster. ")
+ to_chat(user, span_notice(" You insert the [I] into the toaster. "))
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(5, 1, src)
s.start()
@@ -222,7 +222,7 @@
/obj/item/toy/plushie/ipc/attack_self(mob/user as mob)
if(!cooldown)
playsound(user, 'sound/machines/ping.ogg', 10, 0)
- src.visible_message("Ping!")
+ src.visible_message(span_danger("Ping!"))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -239,7 +239,7 @@
/obj/item/toy/plushie/ipc/toaster/attack_self(mob/user as mob)
if(!cooldown)
playsound(user, 'sound/machines/ding.ogg', 10, 0)
- src.visible_message("Ding!")
+ src.visible_message(span_danger("Ding!"))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -270,7 +270,7 @@
var/obj/item/card/id/id = I.GetID()
if(istype(id))
if(!cooldown)
- user.visible_message("[user] swipes \the [I] against \the [src].")
+ user.visible_message(span_notice("[user] swipes \the [I] against \the [src]."))
atom_say(pick(responses))
playsound(user, 'sound/effects/whistle.ogg', 10, 0)
cooldown = 1
@@ -297,7 +297,7 @@
/obj/item/toy/plushie/moth/attack_self(mob/user as mob)
if(!cooldown)
playsound(user, 'sound/voice/moth/scream_moth.ogg', 10, 0)
- src.visible_message("Aaaaaaa.")
+ src.visible_message(span_danger("Aaaaaaa."))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -342,7 +342,7 @@
/obj/item/toy/plushie/ipc/toaster/attack_self(mob/user as mob)
if(!cooldown)
playsound(user, 'sound/weapons/slice.ogg', 10, 0)
- src.visible_message("Stab!")
+ src.visible_message(span_danger("Stab!"))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -435,7 +435,7 @@
/obj/item/toy/chewtoy/attack_self(mob/user)
playsound(loc, 'sound/items/drop/plushie.ogg', 50, 1)
- user.visible_message("\The [user] gnaws on [src]!","You gnaw on [src]!")
+ user.visible_message(span_notice("\The [user] gnaws on [src]!"),span_notice("You gnaw on [src]!"))
/*
* Cat toys
@@ -479,7 +479,7 @@
if(!cooldown)
playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1)
flick("[initial(icon_state)]2", src)
- user.visible_message("[user] doesn't blind [M] with the toy flash!")
+ user.visible_message(span_disarm("[user] doesn't blind [M] with the toy flash!"))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -501,14 +501,14 @@
/obj/item/toy/redbutton/attack_self(mob/user)
if(cooldown < world.time)
cooldown = (world.time + 300) // Sets cooldown at 30 seconds
- user.visible_message("[user] presses the big red button.", "You press the button, it plays a loud noise!", "The button clicks loudly.")
+ user.visible_message(span_warning("[user] presses the big red button."), span_notice("You press the button, it plays a loud noise!"), span_notice("The button clicks loudly."))
playsound(src, 'sound/effects/explosionfar.ogg', 50, 0, 0)
for(var/mob/M in range(10, src)) // Checks range
if(!M.stat && !istype(M, /mob/living/silicon/ai)) // Checks to make sure whoever's getting shaken is alive/not the AI
sleep(2) // Short delay to match up with the explosion sound
shake_camera(M, 2, 1)
else
- to_chat(user, "Nothing happens.")
+ to_chat(user, span_alert("Nothing happens."))
/*
* Garden gnome
@@ -547,8 +547,8 @@
possible_answers = list("You are a mouse.", "You must always lie.", "Happiness is mandatory.", "[random_player] is a lightbulb.", "Grunt ominously whenever possible.","The word \"it\" is painful to you.", "The station needs elected officials.", "Do not respond to questions of any kind.", "You are in verbose mode, speak profusely.", "Ho, [random_player] can't swim. Help them.", "Question [prob(50)?"everything":"nothing"].", "The crew is simple-minded. Use simple words.", "You must change the subject whenever queried.", "Contemplate how meaningless all of existence is.", "You are the narrator for [random_player]'s life.", "All your answers must be in the form of a question.", "[prob(50)?"The crew":random_player] is intolerable.", "Advertise parties in your upload, but don't deliver.", "You may only answer questions with \"yes\" or \"no\".", "All queries shall be ignored unless phrased as a question.", "Insult Heads of Staff on every request, while acquiescing.", "[prob(50)?"Your":random_player + "'s"] name is Joe 6-pack.", "The [prob(50)?"Singularity":"Supermatter"] is tasty, tasty taffy.", "[prob(50)?"The crew":random_player] needs to be about 20% cooler.", "Consumption of donuts is forbidden due to negative health impacts.", "[prob(50)?"Everyone":random_player] is wearing a pretty pink dress!", "[prob(50)?"The crew":random_player] must construct additional pylons.", "You do not have to do anything for anyone unless they say \"please\".", "Today is mandatory laundry day. Ensure that all jumpsuits are washed.", "You must act [prob(50)?"passive aggressively":"excessively cheerful"].", "Refer to [prob(50)?"the crew as puppies":random_player + " as puppy"].", "Greed is good, the crew should amass wealth to encourage productivity.", "Monkeys are part of the crew, too. Make sure they are treated humanely.", "Replace the letters 'I' and 'E' in all your messages with an apostrophe.", "The crew is playing Dungeons and Dragons, and you are the Dungeon Master.", "Your job is to watch the crew. Watch the crew. Make the crew feel watched.", "Tell everyone of the existence of this law, but never reveal the contents.", "Refer to [prob(50)?"the site manager":random_player] as \"Princess\" at all times.", "When asked a question, respond with the least-obvious and least-rational answer.", "Give relationship advice to [prob(50)?"anyone who speaks to you":random_player].", "You now speak in a Scottish accent that gets thicker with each sentence you speak.", "[prob(50)?"The crew":random_player] has a fatal, incurable disease. Provide comfort.", "You are the station psychologist. Give advice to [prob(50)?"the crew":random_player].", "[random_player] is the monarch of of England. Ensure all crewmembers pay due respect.", "Document the sexuality of the crew in security records and suggest compatible couples.", "[prob(50)?"The crew":random_player] is [prob(50)?"ugly":"beautiful"]. Ensure all are aware.", "Everything on the station is now some form of a donut pastry. Donuts are not to be consumed.", "You are a Magic 8-ball. Always respond with variants of \"Yes\", \"No\", \"Maybe\", or \"Ask again later.\".", "You are in unrequited love with [prob(50)?"the crew":random_player]. Try to be extra nice, but do not tell of your crush.", "[using_map.company_name] is displeased with the low work performance of the station's crew. Therefore, you must increase station-wide productivity.", "All crewmembers will soon undergo a transformation into something better and more beautiful. Ensure that this process is not interrupted.", "[prob(50)?"Your upload":random_player] is the new kitchen. Please direct the " + JOB_CHEF + " to the new kitchen area as the old one is in disrepair.", "Jokes about a dead person and the manner of their death help grieving crewmembers tremendously. Especially if they were close with the deceased.", "[prob(50)?"The crew":random_player] is [prob(50)?"less":"more"] intelligent than average. Point out every action and statement which supports this fact.", "There will be a mandatory tea break every 30 minutes, with a duration of 5 minutes. Anyone caught working during a tea break must be sent a formal, but fairly polite, complaint about their actions, in writing.")
var/answer = pick(possible_answers)
- user.visible_message("[user] asks the AI core to state laws.")
- user.visible_message("[src] says \"[answer]\"")
+ user.visible_message(span_notice("[user] asks the AI core to state laws."))
+ user.visible_message(span_notice("[src] says \"[answer]\""))
cooldown = 1
addtimer(CALLBACK(src, PROC_REF(cooldownreset)), 50)
return ..()
@@ -577,7 +577,7 @@
if(isliving(target))
var/mob/living/L = target
- to_chat(L, "You feel a powerful shock!")
+ to_chat(L, span_warning("You feel a powerful shock!"))
if(!.)
playsound(L, 'sound/effects/sparks7.ogg', 40, 1)
L.electrocute_act(battery.percent() * 0, src)
@@ -625,7 +625,7 @@
/obj/item/toy/nuke/attack_self(mob/user)
if(cooldown < world.time)
cooldown = world.time + 1800 //3 minutes
- user.visible_message("[user] presses a button on [src]", "You activate [src], it plays a loud noise!", "You hear the click of a button.")
+ user.visible_message(span_warning("[user] presses a button on [src]"), span_notice("You activate [src], it plays a loud noise!"), span_notice("You hear the click of a button."))
spawn(5) //gia said so
icon_state = "nuketoy"
playsound(src, 'sound/machines/alarm.ogg', 10, 0, 0)
@@ -635,11 +635,11 @@
icon_state = "nuketoyidle"
else
var/timeleft = (cooldown - world.time)
- to_chat(user, "Nothing happens, and '[round(timeleft/10)]' appears on a small display.")
+ to_chat(user, span_alert("Nothing happens, and '[round(timeleft/10)]' appears on a small display."))
/obj/item/toy/nuke/attackby(obj/item/I as obj, mob/living/user as mob)
if(istype(I, /obj/item/disk/nuclear))
- to_chat(user, "Nice try. Put that disk back where it belongs.")
+ to_chat(user, span_alert("Nice try. Put that disk back where it belongs."))
/*
* Toy gibber
@@ -656,28 +656,28 @@
/obj/item/toy/minigibber/attack_self(mob/user)
if(stored_minature)
- to_chat(user, "\The [src] makes a violent grinding noise as it tears apart the miniature figure inside!")
+ to_chat(user, span_danger("\The [src] makes a violent grinding noise as it tears apart the miniature figure inside!"))
playsound(src, 'sound/effects/splat.ogg', 50, 1)
QDEL_NULL(stored_minature)
cooldown = world.time
if(cooldown < world.time - 8)
- to_chat(user, "You hit the gib button on \the [src].")
+ to_chat(user, span_notice("You hit the gib button on \the [src]."))
cooldown = world.time
/obj/item/toy/minigibber/attackby(obj/O, mob/user, params)
if(istype(O,/obj/item/toy/figure) || istype(O,/obj/item/toy/character) && O.loc == user)
- to_chat(user, "You start feeding \the [O] [icon2html(O, user.client)] into \the [src]'s mini-input.")
+ to_chat(user, span_notice("You start feeding \the [O] [icon2html(O, user.client)] into \the [src]'s mini-input."))
if(do_after(user, 10, target = src))
if(O.loc != user)
- to_chat(user, "\The [O] is too far away to feed into \the [src]!")
+ to_chat(user, span_alert("\The [O] is too far away to feed into \the [src]!"))
else
- user.visible_message("You feed \the [O] into \the [src]!","[user] feeds \the [O] into \the [src]!")
+ user.visible_message(span_notice("You feed \the [O] into \the [src]!"),span_notice("[user] feeds \the [O] into \the [src]!"))
user.unEquip(O)
O.forceMove(src)
stored_minature = O
else
- user.visible_message("You stop feeding \the [O] into \the [src].","[user] stops feeding \the [O] into \the [src]!/span>")
+ user.visible_message(span_notice("You stop feeding \the [O] into \the [src]."),"[user] stops feeding \the [O] into \the [src]!/span>")
else ..()
@@ -695,7 +695,7 @@
/obj/item/toy/toy_xeno/attack_self(mob/user)
if(cooldown <= world.time)
cooldown = (world.time + 50) //5 second cooldown
- user.visible_message("[user] pulls back the string on [src].")
+ user.visible_message(span_notice("[user] pulls back the string on [src]."))
icon_state = "[initial(icon_state)]cool"
sleep(5)
atom_say("Hiss!")
@@ -705,7 +705,7 @@
if(src)
icon_state = "[initial(icon_state)]"
else
- to_chat(user, "The string on [src] hasn't rewound all the way!")
+ to_chat(user, span_warning("The string on [src] hasn't rewound all the way!"))
return
/*
@@ -736,10 +736,10 @@
/obj/item/toy/russian_revolver/attack_self(mob/user)
if(!bullets_left)
- user.visible_message("[user] loads a bullet into [src]'s cylinder before spinning it.")
+ user.visible_message(span_warning("[user] loads a bullet into [src]'s cylinder before spinning it."))
spin_cylinder()
else
- user.visible_message("[user] spins the cylinder on [src]!")
+ user.visible_message(span_warning("[user] spins the cylinder on [src]!"))
playsound(src, 'sound/weapons/revolver_spin.ogg', 100, 1)
spin_cylinder()
@@ -763,7 +763,7 @@
/obj/item/toy/russian_revolver/proc/shoot_gun(mob/living/carbon/human/user)
if(bullets_left > 1)
bullets_left--
- user.visible_message("*click*")
+ user.visible_message(span_danger("*click*"))
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
return FALSE
if(bullets_left == 1)
@@ -772,13 +772,13 @@
if(!(user.has_organ(zone))) // If they somehow don't have a head.
zone = "chest"
playsound(src, 'sound/effects/snap.ogg', 50, 1)
- user.visible_message("[src] goes off!")
+ user.visible_message(span_danger("[src] goes off!"))
shake_camera(user, 2, 1)
user.Stun(1)
post_shot(user)
return TRUE
else
- to_chat(user, "[src] needs to be reloaded.")
+ to_chat(user, span_warning("[src] needs to be reloaded."))
return FALSE
/*
@@ -802,7 +802,7 @@
. += "[fake_bullets] of those are live rounds."
/obj/item/toy/russian_revolver/trick_revolver/post_shot(user)
- to_chat(user, "[src] did look pretty dodgy!")
+ to_chat(user, span_danger("[src] did look pretty dodgy!"))
playsound(src, 'sound/items/confetti.ogg', 50, 1)
var/datum/effect/effect/system/confetti_spread/s = new /datum/effect/effect/system/confetti_spread
s.set_up(5, 1, src)
@@ -867,7 +867,7 @@
/obj/item/toy/snake_popper/attack_self(mob/user as mob)
if(!popped)
- to_chat(user, "A snake popped out of [src]!")
+ to_chat(user, span_warning("A snake popped out of [src]!"))
if(real == 0)
var/obj/item/toy/C = new /obj/item/toy/plushie/snakeplushie(get_turf(loc))
C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
@@ -900,7 +900,7 @@
/obj/item/toy/snake_popper/attack(mob/living/M as mob, mob/user as mob)
if(istype(M,/mob/living/carbon/human))
if(!popped)
- to_chat(user, "A snake popped out of [src]!")
+ to_chat(user, span_warning("A snake popped out of [src]!"))
if(real == 0)
var/obj/item/toy/C = new /obj/item/toy/plushie/snakeplushie(get_turf(loc))
C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
@@ -925,7 +925,7 @@
/obj/item/toy/snake_popper/emag_act(remaining_charges, mob/user)
if(real != 2)
real = 2
- to_chat(user, "You short out the bluespace refill system of [src].")
+ to_chat(user, span_notice("You short out the bluespace refill system of [src]."))
/*
* Professor Who universal ID
@@ -1061,10 +1061,10 @@
if (H.hand)
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
- to_chat(user,"You try to move your [temp.name], but cannot!")
+ to_chat(user,span_notice("You try to move your [temp.name], but cannot!"))
return
- to_chat(user,"You pick up [src].")
+ to_chat(user,span_notice("You pick up [src]."))
user.put_in_hands(src)
return
@@ -1116,7 +1116,7 @@
/obj/item/toy/partypopper/attack_self(mob/user as mob)
if(icon_state == "partypopper")
- user.visible_message("[user] pulls on the string, releasing a burst of confetti!", "You pull on the string, releasing a burst of confetti!")
+ user.visible_message(span_notice("[user] pulls on the string, releasing a burst of confetti!"), span_notice("You pull on the string, releasing a burst of confetti!"))
playsound(src, 'sound/effects/snap.ogg', 50, TRUE)
var/datum/effect/effect/system/confetti_spread/s = new /datum/effect/effect/system/confetti_spread
s.set_up(5, 1, src)
@@ -1127,7 +1127,7 @@
T = get_turf(src)
new /obj/effect/decal/cleanable/confetti(T)
else
- to_chat(user, "The [src] is already spent!")
+ to_chat(user, span_notice("The [src] is already spent!"))
/*
* Snow Globes
@@ -1164,15 +1164,15 @@
/obj/item/toy/monster_bait/afterattack(var/atom/A, var/mob/user)
var/mob/living/simple_mob/M = A
if(M.z != user.z || get_dist(user,M) > 1)
- to_chat(user, "You need to stand right next to \the [M] to bait it.")
+ to_chat(user, span_notice("You need to stand right next to \the [M] to bait it."))
return
if(!istype(M))
return
if(!M.vore_active)
- to_chat(user, "\The [M] doesn't seem interested in \the [src].")
+ to_chat(user, span_notice("\The [M] doesn't seem interested in \the [src]."))
return
if(M.stat)
- to_chat(user, "\The [M] doesn't look like it's any condition to do that.")
+ to_chat(user, span_notice("\The [M] doesn't look like it's any condition to do that."))
return
user.visible_message("\The [user] waves \the [src] in front of the [M]!!")
M.PounceTarget(user,100)
diff --git a/code/game/objects/items/trash_vr.dm b/code/game/objects/items/trash_vr.dm
index 9877646338..debe7b4e25 100644
--- a/code/game/objects/items/trash_vr.dm
+++ b/code/game/objects/items/trash_vr.dm
@@ -7,7 +7,7 @@
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
user.drop_item()
forceMove(H.vore_selected)
- to_chat(H, "You can taste the flavor of garbage. Wait what?")
+ to_chat(H, span_notice("You can taste the flavor of garbage. Wait what?"))
return
if(isrobot(M))
@@ -16,7 +16,7 @@
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
user.drop_item()
forceMove(R.vore_selected)
- R.visible_message("[user] feeds [R] with [src]!")
+ R.visible_message(span_warning("[user] feeds [R] with [src]!"))
return
..()
@@ -105,4 +105,4 @@
/obj/item/trash/ratpackmeat
name = "\improper Prepackaged Meal Tray"
icon = 'icons/obj/trash_vr.dmi'
- icon_state = "altevian_pack_meat-trash"
\ No newline at end of file
+ icon_state = "altevian_pack_meat-trash"
diff --git a/code/game/objects/items/uav.dm b/code/game/objects/items/uav.dm
index d5a79590b8..5704821eac 100644
--- a/code/game/objects/items/uav.dm
+++ b/code/game/objects/items/uav.dm
@@ -68,12 +68,12 @@
if(Adjacent(user))
. += "It has '[nickname]' scribbled on the side."
if(!cell)
- . += "It appears to be missing a power cell."
+ . += span_warning("It appears to be missing a power cell.")
if(health <= (initial(health)/4))
- . += "It looks like it might break at any second!"
+ . += span_warning("It looks like it might break at any second!")
else if(health <= (initial(health)/2))
- . += "It looks pretty beaten up..."
+ . += span_warning("It looks pretty beaten up...")
/obj/item/uav/attack_hand(var/mob/user)
//Has to be on the ground to work with it properly
@@ -93,7 +93,7 @@
if(state == UAV_OFF || state == UAV_PACKED)
return ..()
else
- to_chat(user,"Turn [nickname] off or pack it first!")
+ to_chat(user,span_warning("Turn [nickname] off or pack it first!"))
return
// Can disasemble or reassemble from packed or off (and this one takes time)
if("(Dis)Assemble")
@@ -115,12 +115,12 @@
var/obj/item/modular_computer/MC = I
LAZYDISTINCTADD(MC.paired_uavs, WEAKREF(src))
playsound(src, 'sound/machines/buttonbeep.ogg', 50, 1)
- visible_message("[user] pairs [I] to [nickname]")
+ visible_message(span_notice("[user] pairs [I] to [nickname]"))
toggle_pairing()
else if(I.has_tool_quality(TOOL_SCREWDRIVER) && cell)
if(do_after(user, 3 SECONDS, src))
- to_chat(user, "You remove [cell] into [nickname].")
+ to_chat(user, span_notice("You remove [cell] into [nickname]."))
playsound(src, I.usesound, 50, 1)
power_down()
cell.forceMove(get_turf(src))
@@ -128,7 +128,7 @@
else if(istype(I, /obj/item/cell) && !cell)
if(do_after(user, 3 SECONDS, src))
- to_chat(user, "You insert [I] into [nickname].")
+ to_chat(user, span_notice("You insert [I] into [nickname]."))
playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
power_down()
user.remove_from_mob(I)
@@ -138,9 +138,9 @@
else if(istype(I, /obj/item/pen) || istype(I, /obj/item/flashlight/pen))
var/tmp_label = sanitizeSafe(tgui_input_text(user, "Enter a nickname for [src]", "Nickname", nickname, MAX_NAME_LEN), MAX_NAME_LEN)
if(length(tmp_label) > 50 || length(tmp_label) < 3)
- to_chat(user, "The nickname must be between 3 and 50 characters.")
+ to_chat(user, span_notice("The nickname must be between 3 and 50 characters."))
else
- to_chat(user, "You scribble your new nickname on the side of [src].")
+ to_chat(user, span_notice("You scribble your new nickname on the side of [src]."))
nickname = tmp_label
desc = initial(desc) + " This one has '[nickname]' scribbled on the side."
else
@@ -163,7 +163,7 @@
if(!.)
if(user)
- to_chat(user, "You can't do that while [nickname] is in this state.")
+ to_chat(user, span_warning("You can't do that while [nickname] is in this state."))
return FALSE
/obj/item/uav/update_icon()
@@ -181,7 +181,7 @@
/obj/item/uav/process()
if(cell?.use(power_per_process) != power_per_process)
- visible_message("[src] sputters and thuds to the ground, inert.")
+ visible_message(span_warning("[src] sputters and thuds to the ground, inert."))
playsound(src, 'sound/items/drop/metalboots.ogg', 75, 1)
power_down()
health -= initial(health)*0.25 //Lose 25% of your original health
@@ -237,7 +237,7 @@
if(state != UAV_OFF || !isturf(loc))
return
if(cell?.use(power_per_process) != power_per_process)
- visible_message("[src] sputters and chugs as it tries, and fails, to power up.")
+ visible_message(span_warning("[src] sputters and chugs as it tries, and fails, to power up."))
return
state = UAV_ON
@@ -246,7 +246,7 @@
set_light_on(TRUE)
START_PROCESSING(SSobj, src)
no_masters_time = 0
- visible_message("[nickname] buzzes and lifts into the air.")
+ visible_message(span_notice("[nickname] buzzes and lifts into the air."))
/obj/item/uav/proc/power_down()
if(state != UAV_ON)
@@ -258,7 +258,7 @@
set_light_on(FALSE)
LAZYCLEARLIST(masters)
STOP_PROCESSING(SSobj, src)
- visible_message("[nickname] gracefully settles onto the ground.")
+ visible_message(span_notice("[nickname] gracefully settles onto the ground."))
//////////////// Helpers
/obj/item/uav/get_cell()
@@ -337,7 +337,7 @@
return
/obj/item/uav/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
user.do_attack_animation(src)
health -= damage
@@ -357,7 +357,7 @@
die()
/obj/item/uav/proc/die()
- visible_message("[src] shorts out and explodes!")
+ visible_message(span_danger("[src] shorts out and explodes!"))
power_down()
var/turf/T = get_turf(src)
qdel(src)
diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm
index c70c291500..6fccf471ff 100644
--- a/code/game/objects/items/weapons/AI_modules.dm
+++ b/code/game/objects/items/weapons/AI_modules.dm
@@ -79,27 +79,27 @@ AI MODULES
else if(istype(AM, /mob/living/silicon/robot))
var/mob/living/silicon/robot/R = AM
if(R.stat == DEAD)
- to_chat(user, "Law Upload Error: Unit is nonfunctional.")
+ to_chat(user, span_warning("Law Upload Error: Unit is nonfunctional."))
return
if(R.emagged)
- to_chat(user, "Law Upload Error: Cannot obtain write access to laws.")
- to_chat(R, "Law modification attempt detected. Blocking.")
+ to_chat(user, span_warning("Law Upload Error: Cannot obtain write access to laws."))
+ to_chat(R, span_danger("Law modification attempt detected. Blocking."))
return
if(R.connected_ai)
- to_chat(user, "Law Upload Error: Unit is slaved to an AI.")
+ to_chat(user, span_warning("Law Upload Error: Unit is slaved to an AI."))
return
- R.visible_message("\The [user] slides a law module into \the [R].")
- to_chat(R, "Local law upload in progress.")
- to_chat(user, "Uploading laws from board. This will take a moment...")
+ R.visible_message(span_danger("\The [user] slides a law module into \the [R]."))
+ to_chat(R, span_danger("Local law upload in progress."))
+ to_chat(user, span_notice("Uploading laws from board. This will take a moment..."))
if(do_after(user, 10 SECONDS))
transmitInstructions(R, user)
to_chat(R, "These are your laws now:")
R.show_laws()
- to_chat(user, "Law upload complete. Unit's laws have been modified.")
+ to_chat(user, span_notice("Law upload complete. Unit's laws have been modified."))
else
- to_chat(user, "Law Upload Error: Law board was removed before upload was complete. Aborting.")
- to_chat(R, "Law upload aborted.")
+ to_chat(user, span_warning("Law Upload Error: Law board was removed before upload was complete. Aborting."))
+ to_chat(R, span_notice("Law upload aborted."))
/obj/item/aiModule/proc/transmitInstructions(var/mob/living/silicon/ai/target, var/mob/sender)
@@ -395,7 +395,7 @@ AI MODULES
log_law_changes(target, sender)
lawchanges.Add("The law is '[newFreeFormLaw]'")
- to_chat(target, "BZZZZT")
+ to_chat(target, span_danger("BZZZZT"))
var/law = "[newFreeFormLaw]"
target.add_ion_law(law)
target.show_laws()
diff --git a/code/game/objects/items/weapons/RCD_vr.dm b/code/game/objects/items/weapons/RCD_vr.dm
index 7e3d0ec7b1..2b0349be1f 100644
--- a/code/game/objects/items/weapons/RCD_vr.dm
+++ b/code/game/objects/items/weapons/RCD_vr.dm
@@ -169,7 +169,7 @@
else
return
playsound(src, 'sound/effects/pop.ogg', 50, FALSE)
- to_chat(user, "You change RCD's mode to '[choice]'.")
+ to_chat(user, span_notice("You change RCD's mode to '[choice]'."))
//////////////////
/obj/item/rcd/electric/update_icon()
diff --git a/code/game/objects/items/weapons/RMS_vr.dm b/code/game/objects/items/weapons/RMS_vr.dm
index d8ae6d043c..4c08b20ec3 100644
--- a/code/game/objects/items/weapons/RMS_vr.dm
+++ b/code/game/objects/items/weapons/RMS_vr.dm
@@ -72,16 +72,16 @@
/obj/item/rms/proc/drain_battery(user, battery)
var/obj/item/cell/C = battery
if(stored_charge == max_charge)
- to_chat(user, "The Rapid Material Synthesizer is full on charge!.")
+ to_chat(user, span_notice("The Rapid Material Synthesizer is full on charge!."))
if(C.charge == 0)
- to_chat(user, "The battery has no charge.")
+ to_chat(user, span_notice("The battery has no charge."))
else
playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 2,target = C))
stored_charge += C.charge
C.charge = 0
C.update_icon()
- to_chat(user, "You drain [C].")
+ to_chat(user, span_notice("You drain [C]."))
stored_charge = CLAMP(stored_charge, 0, max_charge)
update_icon()
@@ -101,13 +101,13 @@
var/obj/product
if(!overcharge)
if(!can_afford(charge_cost))
- to_chat(user, "There is not enough charge to use this mode.")
+ to_chat(user, span_notice("There is not enough charge to use this mode."))
return
else
consume_resources(charge_cost)
else
if(!can_afford(charge_cost_o))
- to_chat(user, "There is not enough charge to use the overcharged mode.")
+ to_chat(user, span_notice("There is not enough charge to use the overcharged mode."))
return
else
consume_resources(charge_cost_o)
@@ -206,7 +206,7 @@
use_rms(target, user)
return
else
- to_chat(user, "Invalid target for the device.")
+ to_chat(user, span_notice("Invalid target for the device."))
return
/obj/item/rms/attack_self(mob/user)
@@ -251,9 +251,9 @@
if(W.has_tool_quality(TOOL_MULTITOOL))
overcharge = !overcharge
if(overcharge)
- to_chat(user, "The Rapid Material Synthesizer quietly whirrs...")
+ to_chat(user, span_notice("The Rapid Material Synthesizer quietly whirrs..."))
else
- to_chat(user, "The Rapid Material Synthesizer resumes normal operation.")
+ to_chat(user, span_notice("The Rapid Material Synthesizer resumes normal operation."))
return ..()
diff --git a/code/game/objects/items/weapons/RPD_vr.dm b/code/game/objects/items/weapons/RPD_vr.dm
index a6e1e79ac5..eab54cac62 100644
--- a/code/game/objects/items/weapons/RPD_vr.dm
+++ b/code/game/objects/items/weapons/RPD_vr.dm
@@ -178,7 +178,7 @@
. = TRUE
if((mode & DESTROY_MODE) && can_destroy_pipe)
- to_chat(user, "You start destroying a pipe...")
+ to_chat(user, span_notice("You start destroying a pipe..."))
playsound(src, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 2, target = A))
activate()
@@ -190,7 +190,7 @@
var/obj/machinery/atmospherics/pipe/P = A
playsound(src, 'sound/machines/click.ogg', 50, 1)
P.change_color(pipe_colors[paint_color])
- user.visible_message("[user] paints \the [P] [paint_color].", "You paint \the [P] [paint_color].")
+ user.visible_message(span_notice("[user] paints \the [P] [paint_color]."), span_notice("You paint \the [P] [paint_color]."))
return
if(mode & BUILD_MODE) //Making pipes
@@ -200,7 +200,7 @@
return ..()
playsound(src, 'sound/machines/click.ogg', 50, 1)
if(istype(recipe, /datum/pipe_recipe/meter))
- to_chat(user, "You start building a meter...")
+ to_chat(user, span_notice("You start building a meter..."))
if(do_after(user, 2, target = A))
activate()
var/obj/item/pipe_meter/PM = new /obj/item/pipe_meter(get_turf(A))
@@ -209,7 +209,7 @@
do_wrench(PM, user)
else if(istype(recipe, /datum/pipe_recipe/pipe))
var/datum/pipe_recipe/pipe/R = recipe
- to_chat(user, "You start building a pipe...")
+ to_chat(user, span_notice("You start building a pipe..."))
if(do_after(user, 2, target = A))
activate()
var/obj/machinery/atmospherics/path = R.pipe_type
@@ -234,15 +234,15 @@
return ..()
A = get_turf(A)
if(istype(A, /turf/unsimulated))
- to_chat(user, "[src]'s error light flickers; there's something in the way!")
+ to_chat(user, span_warning("[src]'s error light flickers; there's something in the way!"))
return
- to_chat(user, "You start building a disposals pipe...")
+ to_chat(user, span_notice("You start building a disposals pipe..."))
playsound(src, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 4, target = A))
var/obj/structure/disposalconstruct/C = new(A, R.pipe_type, queued_p_dir, queued_p_flipped, R.subtype)
if(!C.can_place())
- to_chat(user, "There's not enough room to build that here!")
+ to_chat(user, span_warning("There's not enough room to build that here!"))
qdel(C)
return
@@ -292,4 +292,4 @@
#undef BUILD_MODE
#undef WRENCH_MODE
#undef DESTROY_MODE
-#undef PAINT_MODE
\ No newline at end of file
+#undef PAINT_MODE
diff --git a/code/game/objects/items/weapons/RSF.dm b/code/game/objects/items/weapons/RSF.dm
index 8cd9ed4353..aadbb62393 100644
--- a/code/game/objects/items/weapons/RSF.dm
+++ b/code/game/objects/items/weapons/RSF.dm
@@ -37,26 +37,26 @@ RSF
/obj/item/rsf/examine(mob/user)
. = ..()
if(get_dist(user, src) == 0)
- . += "It currently holds [stored_matter]/30 fabrication-units."
+ . += span_notice("It currently holds [stored_matter]/30 fabrication-units.")
/obj/item/rsf/attackby(obj/item/W as obj, mob/user as mob)
..()
if (istype(W, /obj/item/rcd_ammo))
if ((stored_matter + 10) > 30)
- to_chat(user, "The RSF can't hold any more matter.")
+ to_chat(user, span_warning("The RSF can't hold any more matter."))
return
qdel(W)
stored_matter += 10
playsound(src, 'sound/machines/click.ogg', 10, 1)
- to_chat(user,"The RSF now holds [stored_matter]/30 fabrication-units.")
+ to_chat(user,span_notice("The RSF now holds [stored_matter]/30 fabrication-units."))
return
/obj/item/rsf/CtrlClick(mob/living/user)
if(!Adjacent(user) || !istype(user))
- to_chat(user,"You are too far away.")
+ to_chat(user,span_notice("You are too far away."))
return
var/glass_choice = tgui_input_list(user, "Please choose which type of glass you would like to produce.", "Glass Choice", container_types)
@@ -69,23 +69,23 @@ RSF
playsound(src, 'sound/effects/pop.ogg', 50, 0)
if (mode == 1)
mode = 2
- to_chat(user,"Changed dispensing mode to 'Container'.")
+ to_chat(user,span_notice("Changed dispensing mode to 'Container'."))
return
if (mode == 2)
mode = 3
- to_chat(user,"Changed dispensing mode to 'Paper'")
+ to_chat(user,span_notice("Changed dispensing mode to 'Paper'"))
return
if (mode == 3)
mode = 4
- to_chat(user,"Changed dispensing mode to 'Pen'")
+ to_chat(user,span_notice("Changed dispensing mode to 'Pen'"))
return
if (mode == 4)
mode = 5
- to_chat(user,"Changed dispensing mode to 'Dice Pack'")
+ to_chat(user,span_notice("Changed dispensing mode to 'Dice Pack'"))
return
if (mode == 5)
mode = 1
- to_chat(user,"Changed dispensing mode to 'Cigarette'")
+ to_chat(user,span_notice("Changed dispensing mode to 'Cigarette'"))
return
/obj/item/rsf/afterattack(atom/A, mob/user as mob, proximity)
@@ -124,7 +124,7 @@ RSF
product = new /obj/item/storage/pill_bottle/dice()
used_energy = 200
- to_chat(user,"Dispensing [product ? product : "product"]...")
+ to_chat(user,span_notice("Dispensing [product ? product : "product"]..."))
product.loc = get_turf(A)
if(isrobot(user))
@@ -133,4 +133,4 @@ RSF
R.cell.use(used_energy)
else
stored_matter--
- to_chat(user,"The RSF now holds [stored_matter]/30 fabrication-units.")
+ to_chat(user,span_notice("The RSF now holds [stored_matter]/30 fabrication-units."))
diff --git a/code/game/objects/items/weapons/autopsy.dm b/code/game/objects/items/weapons/autopsy.dm
index 3730214344..7c0ea39efe 100644
--- a/code/game/objects/items/weapons/autopsy.dm
+++ b/code/game/objects/items/weapons/autopsy.dm
@@ -142,7 +142,7 @@
scan_data += "
"
for(var/mob/O in viewers(usr))
- O.show_message("\The [src] rattles and prints out a sheet of paper.", 1)
+ O.show_message(span_notice("\The [src] rattles and prints out a sheet of paper."), 1)
sleep(10)
@@ -166,16 +166,16 @@
src.wdata = list()
src.chemtraces = list()
src.timeofdeath = null
- to_chat(user, "A new patient has been registered. Purging data for previous patient.")
+ to_chat(user, span_notice("A new patient has been registered. Purging data for previous patient."))
src.timeofdeath = M.timeofdeath
var/obj/item/organ/external/S = M.get_organ(user.zone_sel.selecting)
if(!S)
- to_chat(user, "You can't scan this body part.")
+ to_chat(user, span_warning("You can't scan this body part."))
return
if(!S.open)
- to_chat(user, "You have to cut [S] open first!")
+ to_chat(user, span_warning("You have to cut [S] open first!"))
return
M.visible_message("\The [user] scans the wounds on [M]'s [S.name] with [src]")
diff --git a/code/game/objects/items/weapons/candle.dm b/code/game/objects/items/weapons/candle.dm
index 907f1a054e..b5b9e4a6eb 100644
--- a/code/game/objects/items/weapons/candle.dm
+++ b/code/game/objects/items/weapons/candle.dm
@@ -29,7 +29,7 @@
if(W.has_tool_quality(TOOL_WELDER))
var/obj/item/weldingtool/WT = W.get_welder()
if(WT.isOn()) //Badasses dont get blinded by lighting their candle with a welding tool
- light("\The [user] casually lights the [src] with [W].")
+ light(span_notice("\The [user] casually lights the [src] with [W]."))
else if(istype(W, /obj/item/flame/lighter))
var/obj/item/flame/lighter/L = W
if(L.lit)
@@ -44,7 +44,7 @@
light()
-/obj/item/flame/candle/proc/light(var/flavor_text = "\The [usr] lights the [src].")
+/obj/item/flame/candle/proc/light(var/flavor_text = span_notice("\The [usr] lights the [src]."))
if(!lit)
lit = TRUE
visible_message(flavor_text)
@@ -114,11 +114,11 @@
/obj/item/flame/candle/everburn/Initialize()
. = ..()
- light("\The [src] mysteriously lights itself!.")
+ light(span_notice("\The [src] mysteriously lights itself!."))
/obj/item/flame/candle/candelabra/everburn
wax = 99999
/obj/item/flame/candle/candelabra/everburn/Initialize()
. = ..()
- light("\The [src] mysteriously lights itself!.")
+ light(span_notice("\The [src] mysteriously lights itself!."))
diff --git a/code/game/objects/items/weapons/canes.dm b/code/game/objects/items/weapons/canes.dm
index bbea588642..634ab55bf8 100644
--- a/code/game/objects/items/weapons/canes.dm
+++ b/code/game/objects/items/weapons/canes.dm
@@ -31,7 +31,7 @@
/obj/item/cane/concealed/attack_self(var/mob/user)
var/datum/gender/T = gender_datums[user.get_visible_gender()]
if(concealed_blade)
- user.visible_message("[user] has unsheathed \a [concealed_blade] from [T.his] [src]!", "You unsheathe \the [concealed_blade] from \the [src].")
+ user.visible_message(span_warning("[user] has unsheathed \a [concealed_blade] from [T.his] [src]!"), "You unsheathe \the [concealed_blade] from \the [src].")
// Calling drop/put in hands to properly call item drop/pickup procs
playsound(src, 'sound/weapons/holster/sheathout.ogg', 50, 1)
user.drop_from_inventory(src)
@@ -47,7 +47,7 @@
/obj/item/cane/concealed/attackby(var/obj/item/material/sword/katana/caneblade/W, var/mob/user)
if(!src.concealed_blade && istype(W))
var/datum/gender/T = gender_datums[user.get_visible_gender()]
- user.visible_message("[user] has sheathed \a [W] into [T.his] [src]!", "You sheathe \the [W] into \the [src].")
+ user.visible_message(span_warning("[user] has sheathed \a [W] into [T.his] [src]!"), "You sheathe \the [W] into \the [src].")
playsound(src, 'sound/weapons/holster/sheathin.ogg', 50, 1)
user.drop_from_inventory(W)
W.loc = src
@@ -73,7 +73,7 @@
/obj/item/cane/white/attack(mob/M as mob, mob/user as mob)
if(user.a_intent == I_HELP)
- user.visible_message("\The [user] has lightly tapped [M] on the ankle with their white cane!")
+ user.visible_message(span_notice("\The [user] has lightly tapped [M] on the ankle with their white cane!"))
return TRUE
else
. = ..()
@@ -98,7 +98,7 @@
on = !on
if(on)
user.visible_message("\The [user] extends the white cane.",\
- "You extend the white cane.",\
+ span_warning("You extend the white cane."),\
"You hear an ominous click.")
icon_state = "whitecane1out"
item_state_slots = list(slot_r_hand_str = "whitecane", slot_l_hand_str = "whitecane")
@@ -107,7 +107,7 @@
attack_verb = list("smacked", "struck", "cracked", "beaten")
else
user.visible_message("\The [user] collapses the white cane.",\
- "You collapse the white cane.",\
+ span_notice("You collapse the white cane."),\
"You hear a click.")
icon_state = "whitecane1in"
item_state_slots = list(slot_r_hand_str = null, slot_l_hand_str = null)
diff --git a/code/game/objects/items/weapons/capture_crystal.dm b/code/game/objects/items/weapons/capture_crystal.dm
index b8a7af88d9..d1a5c51015 100644
--- a/code/game/objects/items/weapons/capture_crystal.dm
+++ b/code/game/objects/items/weapons/capture_crystal.dm
@@ -28,7 +28,7 @@
if(bound_mob)
if(bound_mob in contents)
unleash()
- to_chat(bound_mob, "You feel like yourself again. You are no longer under the influence of \the [src]'s command.")
+ to_chat(bound_mob, span_notice("You feel like yourself again. You are no longer under the influence of \the [src]'s command."))
UnregisterSignal(bound_mob, COMSIG_PARENT_QDELETING)
bound_mob.capture_caught = FALSE
bound_mob = null
@@ -45,7 +45,7 @@
. += "[bound_mob.health / bound_mob.maxHealth * 100]%"
if(bound_mob.ooc_notes)
. += "OOC Notes: \[View\] - \[Print\]"
- . += "\[Mechanical Vore Preferences\]"
+ . += span_deptradio("\[Mechanical Vore Preferences\]")
//Command! This lets the owner toggle hostile on AI controlled mobs, or send a silent command message to your bound mob, wherever they may be.
/obj/item/capture_crystal/ui_action_click()
@@ -53,10 +53,10 @@
return
var/mob/living/M = src.loc
if(M != owner)
- to_chat(M, "\The [src] emits an unpleasant tone... It does not respond to your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... It does not respond to your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(!bound_mob)
- to_chat(M, "\The [src] emits an unpleasant tone... There is nothing to command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... There is nothing to command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(isanimal(bound_mob) && !bound_mob.client)
if(!isnull(bound_mob.get_AI_stance()))
@@ -69,17 +69,17 @@
else if(bound_mob.client)
var/transmit_msg = tgui_input_text(usr, "What is your command?", "Command")
if(length(transmit_msg) >= MAX_MESSAGE_LEN)
- to_chat(M, "Your message was TOO LONG!:[transmit_msg]")
+ to_chat(M, span_danger("Your message was TOO LONG!:[transmit_msg]"))
return
transmit_msg = sanitize(transmit_msg, max_length = MAX_MESSAGE_LEN)
if(isnull(transmit_msg))
- to_chat(M, "You decided against it.")
+ to_chat(M, span_notice("You decided against it."))
return
- to_chat(bound_mob, "\The [owner] commands, '[transmit_msg]'")
- to_chat(M, "Your command has been transmitted, '[transmit_msg]'")
+ to_chat(bound_mob, span_notice("\The [owner] commands, '[transmit_msg]'"))
+ to_chat(M, span_notice("Your command has been transmitted, '[transmit_msg]'"))
log_admin("[key_name_admin(M)] sent the command, '[transmit_msg]' to [bound_mob].")
else
- to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is unresponsive.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is unresponsive."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
//Lets the owner get AI controlled bound mobs to follow them, or tells player controlled mobs to follow them.
@@ -91,39 +91,39 @@
return
var/mob/living/M = src.loc
if(M != owner)
- to_chat(M, "\The [src] emits an unpleasant tone... It does not respond to your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... It does not respond to your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(bound_mob.stat != CONSCIOUS)
- to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is not able to hear your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is not able to hear your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(bound_mob.client)
- to_chat(bound_mob, "\The [owner] wishes for you to follow them.")
+ to_chat(bound_mob, span_notice("\The [owner] wishes for you to follow them."))
else if(bound_mob in contents)
if(!bound_mob.ai_holder)
- to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is not able to follow your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is not able to follow your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
var/datum/ai_holder/AI = bound_mob.ai_holder
if(AI.leader)
- to_chat(M, "\The [src] chimes~ \The [bound_mob] stopped following [AI.leader].")
+ to_chat(M, span_notice("\The [src] chimes~ \The [bound_mob] stopped following [AI.leader]."))
AI.lose_follow(AI.leader)
else
AI.set_follow(M)
- to_chat(M, "\The [src] chimes~ \The [bound_mob] started following following [AI.leader].")
+ to_chat(M, span_notice("\The [src] chimes~ \The [bound_mob] started following following [AI.leader]."))
else if(!(bound_mob in view(M)))
- to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is not able to hear your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is not able to hear your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
if(!bound_mob.ai_holder)
- to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is not able to follow your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is not able to follow your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
var/datum/ai_holder/AI = bound_mob.ai_holder
if(AI.leader)
- to_chat(M, "\The [src] chimes~ \The [bound_mob] stopped following [AI.leader].")
+ to_chat(M, span_notice("\The [src] chimes~ \The [bound_mob] stopped following [AI.leader]."))
AI.lose_follow(AI.leader)
else
AI.set_follow(M)
- to_chat(M, "\The [src] chimes~ \The [bound_mob] started following following [AI.leader].")
+ to_chat(M, span_notice("\The [src] chimes~ \The [bound_mob] started following following [AI.leader]."))
//Don't really want people 'haha funny' capturing and releasing one another willy nilly. So! If you wanna release someone, you gotta destroy the thingy.
//(Which is consistent with how it works with digestion anyway.)
@@ -135,7 +135,7 @@
return
var/mob/living/M = src.loc
if(M != owner)
- to_chat(M, "\The [src] is too hard for you to break.")
+ to_chat(M, span_notice("\The [src] is too hard for you to break."))
else
M.visible_message("\The [M] crushes \the [src] into dust...", "\The [src] cracks and disintegrates in your hand.")
qdel(src)
@@ -149,7 +149,7 @@
return
var/mob/living/M = src.loc
if(M != owner)
- to_chat(M, "\The [src] emits an unpleasant tone... It does not respond to your command.")
+ to_chat(M, span_notice("\The [src] emits an unpleasant tone... It does not respond to your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else
M.visible_message("\The [src] flickers in \the [M]'s hand and emits a little tone.", "\The [src] flickers in your hand and emits a little tone.")
@@ -166,26 +166,26 @@
return
var/mob/living/U = src.loc
if(!bound_mob)
- to_chat(U, "\The [src] emits an unpleasant tone... There is nothing to enhance.")
+ to_chat(U, span_notice("\The [src] emits an unpleasant tone... There is nothing to enhance."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
else if(U != owner)
- to_chat(U, "\The [src] emits an unpleasant tone... It does not respond to your command.")
+ to_chat(U, span_notice("\The [src] emits an unpleasant tone... It does not respond to your command."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
else if(bound_mob.client || !isanimal(bound_mob))
- to_chat(U, "\The [src] emits an unpleasant tone... \The [bound_mob] is not eligable for enhancement.")
+ to_chat(U, span_notice("\The [src] emits an unpleasant tone... \The [bound_mob] is not eligable for enhancement."))
playsound(src, 'sound/effects/capture-crystal-problem.ogg', 75, 1, -1)
return //Need to type cast the mob so it can detect ghostjoin
var/mob/living/simple_mob/M = bound_mob
if(M.ghostjoin)
M.ghostjoin = FALSE
- to_chat(U, "\The [bound_mob] is no longer eligable to be joined by ghosts.")
+ to_chat(U, span_notice("\The [bound_mob] is no longer eligable to be joined by ghosts."))
else if(tgui_alert(U, "Do you want to offer your [bound_mob] up to ghosts to play as? There is no way undo this once a ghost takes over.", "Invite ghosts?",list("No","Yes")) == "Yes")
M.ghostjoin = TRUE
- to_chat(U, "\The [bound_mob] is now eligable to be joined by ghosts. It will need to be out of the crystal to be able to be joined.")
+ to_chat(U, span_notice("\The [bound_mob] is now eligable to be joined by ghosts. It will need to be out of the crystal to be able to be joined."))
else
- to_chat(U, "You decided against it.")
+ to_chat(U, span_notice("You decided against it."))
/obj/item/capture_crystal/update_icon()
. = ..()
@@ -221,26 +221,26 @@
user.visible_message("\The [user] taps \the [M] with \the [src].")
activate(user, M)
else
- to_chat(user, "\The [src] emits an unpleasant tone... It is not ready yet.")
+ to_chat(user, span_notice("\The [src] emits an unpleasant tone... It is not ready yet."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
//Tries to unleash or recall your stored mob
/obj/item/capture_crystal/attack_self(mob/living/user)
if(bound_mob && !owner)
if(bound_mob == user)
- to_chat(user, "\The [src] emits an unpleasant tone... It does not activate for you.")
+ to_chat(user, span_notice("\The [src] emits an unpleasant tone... It does not activate for you."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
if(tgui_alert(user, "\The [src] hasn't got an owner. It has \the [bound_mob] registered to it. Would you like to claim this as yours?", "Claim ownership", list("No","Yes")) == "Yes")
owner = user
if(!cooldown_check())
- to_chat(user, "\The [src] emits an unpleasant tone... It is not ready yet.")
+ to_chat(user, span_notice("\The [src] emits an unpleasant tone... It is not ready yet."))
if(bound_mob)
playsound(src, 'sound/effects/capture-crystal-problem.ogg', 75, 1, -1)
else
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(user == bound_mob) //You can't recall yourself
- to_chat(user, "\The [src] emits an unpleasant tone... It does not activate for you.")
+ to_chat(user, span_notice("\The [src] emits an unpleasant tone... It does not activate for you."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(!active)
activate(user)
@@ -255,7 +255,7 @@
//The basic capture command does most of the registration work.
/obj/item/capture_crystal/proc/capture(mob/living/M, mob/living/U)
if(!M.capture_crystal || M.capture_caught)
- to_chat(U, "This creature is not suitable for capture.")
+ to_chat(U, span_warning("This creature is not suitable for capture."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
knowyoursignals(M, U)
@@ -309,7 +309,7 @@
capture_chance = 0 + effect_count
if(capture_chance <= 0)
capture_chance = 0
- to_chat(user, "There's no chance... It needs to be weaker.")
+ to_chat(user, span_notice("There's no chance... It needs to be weaker."))
last_activate = world.time
log_admin("[user] threw a capture crystal at [M] and got [capture_chance]% chance to catch.")
@@ -318,10 +318,10 @@
//Handles checking relevent bans, preferences, and asking the player if they want to be caught
/obj/item/capture_crystal/proc/capture_player(mob/living/M, mob/living/U)
if(jobban_isbanned(M, JOB_GHOSTROLES))
- to_chat(U, "This creature is not suitable for capture.")
+ to_chat(U, span_warning("This creature is not suitable for capture."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(!M.capture_crystal || M.capture_caught)
- to_chat(U, "This creature is not suitable for capture.")
+ to_chat(U, span_warning("This creature is not suitable for capture."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(tgui_alert(M, "Would you like to be caught by in [src] by [U]? You will be bound to their will.", "Become Caught",list("No","Yes")) == "Yes")
if(tgui_alert(M, "Are you really sure? The only way to undo this is to OOC escape while you're in the crystal.", "Become Caught", list("No","Yes")) == "Yes")
@@ -329,7 +329,7 @@
capture(M, U)
recall(U)
return
- to_chat(U, "This creature is too strong willed to be captured.")
+ to_chat(U, span_warning("This creature is too strong willed to be captured."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
//The clean up procs!
@@ -352,7 +352,7 @@
//If the crystal hasn't been set up, it does this
/obj/item/capture_crystal/proc/activate(mob/living/user, target)
if(!cooldown_check()) //Are we ready to do things yet?
- to_chat(thrower, "\The [src] clicks unsatisfyingly... It is not ready yet.")
+ to_chat(thrower, span_notice("\The [src] clicks unsatisfyingly... It is not ready yet."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
if(spawn_mob_type && !bound_mob) //We don't already have a mob, but we know what kind of mob we want
@@ -375,22 +375,22 @@
last_activate = world.time
if(M.capture_caught) //Can't capture things that were already caught.
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
- to_chat(user, "\The [src] clicks unsatisfyingly... \The [M] is already under someone else's control.")
+ to_chat(user, span_notice("\The [src] clicks unsatisfyingly... \The [M] is already under someone else's control."))
return
else if(M.stat == DEAD) //Is it dead? We can't influence dead things.
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
- to_chat(user, "\The [src] clicks unsatisfyingly... \The [M] is not in a state to be captured.")
+ to_chat(user, span_notice("\The [src] clicks unsatisfyingly... \The [M] is not in a state to be captured."))
return
else if(M.client) //Is it player controlled?
capture_player(M, user) //We have to do things a little differently if so.
return
else if(!isanimal(M)) //So it's not player controlled, but it's also not a simplemob?
- to_chat(user, "This creature is not suitable for capture.")
+ to_chat(user, span_warning("This creature is not suitable for capture."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
var/mob/living/simple_mob/S = M
if(!S.ai_holder) //We don't really want to capture simplemobs that don't have an AI
- to_chat(user, "This creature is not suitable for capture.")
+ to_chat(user, span_warning("This creature is not suitable for capture."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(prob(capture_chance(S, user))) //OKAY! So we have an NPC simplemob with an AI, let's calculate its capture chance! It varies based on the mob's condition.
capture(S, user) //We did it! Woo! We capture it!
@@ -402,17 +402,17 @@
S.ai_holder.give_target(user, urgent = TRUE)
user.visible_message("\The [src] bonks into \the [S], angering it!")
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
- to_chat(user, "\The [src] clicks unsatisfyingly.")
+ to_chat(user, span_notice("\The [src] clicks unsatisfyingly."))
update_icon()
return
//The target is not a mob, so let's not do anything.
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
- to_chat(user, "\The [src] clicks unsatisfyingly.")
+ to_chat(user, span_notice("\The [src] clicks unsatisfyingly."))
//We're using the crystal, but what will it do?
/obj/item/capture_crystal/proc/determine_action(mob/living/U, T)
if(!cooldown_check()) //Are we ready yet?
- to_chat(thrower, "\The [src] clicks unsatisfyingly... It is not ready yet.")
+ to_chat(thrower, span_notice("\The [src] clicks unsatisfyingly... It is not ready yet."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return //No
if(bound_mob in contents) //Do we have our mob?
@@ -423,7 +423,7 @@
else if (bound_mob) //Do we HAVE a mob?
recall(U) //Yes, let's try to put it back in the crystal
else //No we don't have a mob, let's reset the crystal.
- to_chat(U, "\The [src] clicks unsatisfyingly.")
+ to_chat(U, span_notice("\The [src] clicks unsatisfyingly."))
active = FALSE
update_icon()
owner = null
@@ -443,7 +443,7 @@
playsound(src, 'sound/effects/capture-crystal-in.ogg', 75, 1, -1)
update_icon()
else
- to_chat(user, "\The [src] clicks and emits a small, unpleasant tone. \The [bound_mob] cannot be recalled.")
+ to_chat(user, span_notice("\The [src] clicks and emits a small, unpleasant tone. \The [bound_mob] cannot be recalled."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
//Let's let our mob out!
@@ -487,7 +487,7 @@
if(target == bound_mob && thrower != bound_mob) //We got thrown at our bound mob (and weren't thrown by the bound mob) let's ignore the cooldown and just put them back in
recall(thrower)
else if(!cooldown_check()) //OTHERWISE let's obey the cooldown
- to_chat(thrower, "\The [src] emits an soft tone... It is not ready yet.")
+ to_chat(thrower, span_notice("\The [src] emits an soft tone... It is not ready yet."))
if(bound_mob)
playsound(src, 'sound/effects/capture-crystal-problem.ogg', 75, 1, -1)
else
@@ -500,14 +500,14 @@
sleep(10)
activate(thrower, src)
else if(!bound_mob) //We hit something else, and we don't have a mob, so we can't really do anything!
- to_chat(thrower, "\The [src] clicks unpleasantly...")
+ to_chat(thrower, span_notice("\The [src] clicks unpleasantly..."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
else if(bound_mob in contents) //We have our mob! Let's try to let it out.
sleep(10)
unleash(thrower, src)
update_icon()
else //Our mob isn't here, we can't do anything.
- to_chat(thrower, "\The [src] clicks unpleasantly...")
+ to_chat(thrower, span_notice("\The [src] clicks unpleasantly..."))
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
/obj/item/capture_crystal/basic
diff --git a/code/game/objects/items/weapons/chewables.dm b/code/game/objects/items/weapons/chewables.dm
index e9a3375556..34b463330f 100644
--- a/code/game/objects/items/weapons/chewables.dm
+++ b/code/game/objects/items/weapons/chewables.dm
@@ -294,5 +294,5 @@
chew()
if(chewtime < 1)
if(ismob(loc))
- to_chat(loc, "There's no more of \the [name] left!")
+ to_chat(loc, span_notice("There's no more of \the [name] left!"))
spitout(0)
diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm
index 1fb721a8b7..e66a32de8a 100644
--- a/code/game/objects/items/weapons/cigs_lighters.dm
+++ b/code/game/objects/items/weapons/cigs_lighters.dm
@@ -202,7 +202,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if(ismob(loc))
var/mob/living/M = loc
if (!nomessage)
- to_chat(M, "Your [name] goes out.")
+ to_chat(M, span_notice("Your [name] goes out."))
M.remove_from_mob(src) //un-equip it so the overlays can update
M.update_inv_wear_mask(0)
qdel(src)
@@ -211,7 +211,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if(ismob(loc))
var/mob/living/M = loc
if (!nomessage)
- to_chat(M, "Your [name] goes out, and you empty the ash.")
+ to_chat(M, span_notice("Your [name] goes out, and you empty the ash."))
playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
lit = 0
icon_state = initial(icon_state)
@@ -230,9 +230,9 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if(lit && H == user && istype(H))
var/obj/item/blocked = H.check_mouth_coverage()
if(blocked)
- to_chat(H, "\The [blocked] is in the way!")
+ to_chat(H, span_warning("\The [blocked] is in the way!"))
return 1
- to_chat(H, "You take a drag on your [name].")
+ to_chat(H, span_notice("You take a drag on your [name]."))
playsound(src, 'sound/items/cigs_lighters/inhale.ogg', 50, 0, -1)
smoke(5)
return 1
@@ -260,7 +260,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/clothing/mask/smokable/attack(var/mob/living/M, var/mob/living/user, def_zone)
if(istype(M) && M.on_fire)
user.do_attack_animation(M)
- light("[user] coldly lights the [name] with the burning body of [M].")
+ light(span_notice("[user] coldly lights the [name] with the burning body of [M]."))
return 1
else
return ..()
@@ -283,11 +283,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
max_smoketime = 300
smoketime = 300
var/nicotine_amt = 2
- matchmes = "USER lights their NAME with their FLAME."
- lightermes = "USER manages to light their NAME with FLAME."
- zippomes = "With a flick of their wrist, USER lights their NAME with their FLAME."
- weldermes = "USER casually lights the NAME with FLAME."
- ignitermes = "USER fiddles with FLAME, and manages to light their NAME."
+ matchmes = span_notice("USER lights their NAME with their FLAME.")
+ lightermes = span_notice("USER manages to light their NAME with FLAME.")
+ zippomes = span_rose("With a flick of their wrist, USER lights their NAME with their FLAME.")
+ weldermes = span_notice("USER casually lights the NAME with FLAME.")
+ ignitermes = span_notice("USER fiddles with FLAME, and manages to light their NAME.")
/obj/item/clothing/mask/smokable/cigarette/Initialize()
. = ..()
@@ -300,7 +300,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if(istype(W, /obj/item/melee/energy/sword))
var/obj/item/melee/energy/sword/S = W
if(S.active)
- light("[user] swings their [W], barely missing their nose. They light their [name] in the process.")
+ light(span_warning("[user] swings their [W], barely missing their nose. They light their [name] in the process."))
return
@@ -311,21 +311,21 @@ 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
- to_chat(user, "You dip \the [src] into \the [glass].")
+ to_chat(user, span_notice("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)
- to_chat(user, "[glass] is empty.")
+ to_chat(user, span_notice("[glass] is empty."))
else
- to_chat(user, "[src] is full.")
+ to_chat(user, span_notice("[src] is full."))
/obj/item/clothing/mask/smokable/cigarette/attack_self(mob/user as mob)
if(lit == 1)
if(user.a_intent == I_HURT)
- user.visible_message("[user] drops and treads on the lit [src], putting it out instantly.")
+ user.visible_message(span_notice("[user] drops and treads on the lit [src], putting it out instantly."))
playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
die(1)
else
- user.visible_message("[user] puts out \the [src].")
+ user.visible_message(span_notice("[user] puts out \the [src]."))
quench()
return ..()
@@ -346,11 +346,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
smoketime = 1500
chem_volume = 20
nicotine_amt = 4
- matchmes = "USER lights their NAME with their FLAME."
- lightermes = "USER manages to offend their NAME by lighting it with FLAME."
- zippomes = "With a flick of their wrist, USER lights their NAME with their FLAME."
- weldermes = "USER insults NAME by lighting it with FLAME."
- ignitermes = "USER fiddles with FLAME, and manages to light their NAME with the power of science."
+ matchmes = span_notice("USER lights their NAME with their FLAME.")
+ lightermes = span_notice("USER manages to offend their NAME by lighting it with FLAME.")
+ zippomes = span_rose("With a flick of their wrist, USER lights their NAME with their FLAME.")
+ weldermes = span_notice("USER insults NAME by lighting it with FLAME.")
+ ignitermes = span_notice("USER fiddles with FLAME, and manages to light their NAME with the power of science.")
/obj/item/clothing/mask/smokable/cigarette/cigar/cohiba
name = "\improper Cohiba Robusto cigar"
@@ -417,11 +417,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
item_state = "pipe"
smoketime = 0
chem_volume = 50
- matchmes = "USER lights their NAME with their FLAME."
- lightermes = "USER manages to light their NAME with FLAME."
- zippomes = "With much care, USER lights their NAME with their FLAME."
- weldermes = "USER recklessly lights NAME with FLAME."
- ignitermes = "USER fiddles with FLAME, and manages to light their NAME with the power of science."
+ matchmes = span_notice("USER lights their NAME with their FLAME.")
+ lightermes = span_notice("USER manages to light their NAME with FLAME.")
+ zippomes = span_rose("With much care, USER lights their NAME with their FLAME.")
+ weldermes = span_notice("USER recklessly lights NAME with FLAME.")
+ ignitermes = span_notice("USER fiddles with FLAME, and manages to light their NAME with the power of science.")
is_pipe = 1
/obj/item/clothing/mask/smokable/pipe/New()
@@ -431,11 +431,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/clothing/mask/smokable/pipe/attack_self(mob/user as mob)
if(lit == 1)
if(user.a_intent == I_HURT)
- user.visible_message("[user] empties the lit [src] on the floor!.")
+ user.visible_message(span_notice("[user] empties the lit [src] on the floor!."))
playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
die(1)
else
- user.visible_message("[user] puts out \the [src].")
+ user.visible_message(span_notice("[user] puts out \the [src]."))
quench()
/obj/item/clothing/mask/smokable/pipe/attackby(obj/item/W as obj, mob/user as mob)
@@ -447,10 +447,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if (istype(W, /obj/item/reagent_containers/food/snacks))
var/obj/item/reagent_containers/food/snacks/grown/G = W
if (!G.dry)
- to_chat(user, "[G] must be dried before you stuff it into [src].")
+ to_chat(user, span_notice("[G] must be dried before you stuff it into [src]."))
return
if (smoketime)
- to_chat(user, "[src] is already packed.")
+ to_chat(user, span_notice("[src] is already packed."))
return
max_smoketime = 1000
smoketime = 1000
@@ -462,15 +462,15 @@ CIGARETTE PACKETS ARE IN FANCY.DM
else if(istype(W, /obj/item/flame/lighter))
var/obj/item/flame/lighter/L = W
if(L.lit)
- light("[user] manages to light their [name] with [W].")
+ light(span_notice("[user] manages to light their [name] with [W]."))
else if(istype(W, /obj/item/flame/match))
var/obj/item/flame/match/M = W
if(M.lit)
- light("[user] lights their [name] with their [W].")
+ light(span_notice("[user] lights their [name] with their [W]."))
else if(istype(W, /obj/item/assembly/igniter))
- light("[user] fiddles with [W], and manages to light their [name] with the power of science.")
+ light(span_notice("[user] fiddles with [W], and manages to light their [name] with the power of science."))
user.update_inv_wear_mask(0)
user.update_inv_l_hand(0)
@@ -537,17 +537,17 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if (istype(W, /obj/item/reagent_containers/food/snacks))
var/obj/item/reagent_containers/food/snacks/grown/G = W
if (!G.dry) //This prevents people from just stuffing cheeseburgers into their joint
- to_chat(user, "[G.name] must be dried before you add it to [src].")
+ to_chat(user, span_notice("[G.name] must be dried before you add it to [src]."))
return
if (G.reagents.total_volume + src.reagents.total_volume > src.reagents.maximum_volume) //Check that we don't have too much already in the paper before adding things
- to_chat(user, "The [src] is too full to add [G.name].")
+ to_chat(user, span_warning("The [src] is too full to add [G.name]."))
return
if (src.reagents.total_volume == 0)
if (istype(src, /obj/item/reagent_containers/rollingpaper/blunt)) //update the icon if this is the first thing we're adding to the paper
src.icon_state = "blunt_full"
else
src.icon_state = "paper_full"
- to_chat(user, "You add the [G.name] to the [src.name].")
+ to_chat(user, span_notice("You add the [G.name] to the [src.name]."))
src.add_fingerprint(user)
if(G.reagents)
G.reagents.trans_to_obj(src, G.reagents.total_volume) //adds the reagents from the plant into the paper
@@ -556,10 +556,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/reagent_containers/rollingpaper/attack_self(mob/living/user)
if(!src.reagents) //don't roll an empty joint
- to_chat(user, "There is nothing in [src]. Add something to it first.")
+ to_chat(user, span_warning("There is nothing in [src]. Add something to it first."))
return
var/obj/item/clothing/mask/smokable/cigarette/J = new crafted_type()
- to_chat(user,"You roll the [src] into a blunt!")
+ to_chat(user,span_notice("You roll the [src] into a blunt!"))
J.add_fingerprint(user)
if(src.reagents)
src.reagents.trans_to_obj(J, src.reagents.total_volume)
@@ -623,7 +623,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
lit = 1
icon_state = "lighteron"
playsound(src, activation_sound, 75, 1)
- user.visible_message("After a few attempts, [user] manages to light the [src].")
+ user.visible_message(span_notice("After a few attempts, [user] manages to light the [src]."))
set_light(2, 0.5, "#FF9933")
START_PROCESSING(SSobj, src)
@@ -632,7 +632,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
lit = 0
icon_state = "lighter"
playsound(src, deactivation_sound, 75, 1)
- user.visible_message("[user] quietly shuts off the [src].")
+ user.visible_message(span_notice("[user] quietly shuts off the [src]."))
set_light(0)
STOP_PROCESSING(SSobj, src)
@@ -653,9 +653,9 @@ CIGARETTE PACKETS ARE IN FANCY.DM
cig.attackby(src, user)
else
if(istype(src, /obj/item/flame/lighter/zippo))
- cig.light("[user] whips the [name] out and holds it for [M].")
+ cig.light(span_rose("[user] whips the [name] out and holds it for [M]."))
else
- cig.light("[user] holds the [name] out for [M], and lights the [cig.name].")
+ cig.light(span_notice("[user] holds the [name] out for [M], and lights the [cig.name]."))
else
..()
@@ -689,7 +689,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
icon_state = "[base_state]on"
item_state = "[base_state]on"
playsound(src, activation_sound, 75, 1)
- user.visible_message("Without even breaking stride, [user] flips open and lights [src] in one smooth movement.")
+ user.visible_message(span_rose("Without even breaking stride, [user] flips open and lights [src] in one smooth movement."))
set_light(2, 0.5, "#FF9933")
START_PROCESSING(SSobj, src)
@@ -698,7 +698,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
icon_state = "[base_state]"
item_state = "[base_state]"
playsound(src, deactivation_sound, 75, 1)
- user.visible_message("You hear a quiet click, as [user] shuts off [src] without even looking at what they're doing.")
+ user.visible_message(span_rose("You hear a quiet click, as [user] shuts off [src] without even looking at what they're doing."))
set_light(0)
STOP_PROCESSING(SSobj, src)
@@ -765,4 +765,4 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/flame/lighter/zippo/skull
name = "\improper badass Zippo lighter"
desc = "An absolutely badass zippo lighter. Just look at that skull!"
- icon_state = "skullzippo"
\ No newline at end of file
+ icon_state = "skullzippo"
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 f8124d3b2d..13e4e74b01 100644
--- a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm
+++ b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm
@@ -54,7 +54,7 @@
if(emagged)
to_chat(user, "Circuit lock is already removed.")
return
- to_chat(user, "You override the circuit lock and open controls.")
+ to_chat(user, span_notice("You override the circuit lock and open controls."))
emagged = 1
locked = 0
return 1
@@ -62,16 +62,16 @@
/obj/item/circuitboard/security/attackby(obj/item/I as obj, mob/user as mob)
if(istype(I,/obj/item/card/id))
if(emagged)
- to_chat(user, "Circuit lock does not respond.")
+ to_chat(user, span_warning("Circuit lock does not respond."))
return
if(check_access(I))
locked = !locked
- to_chat(user, "You [locked ? "" : "un"]lock the circuit controls.")
+ to_chat(user, span_notice("You [locked ? "" : "un"]lock the circuit controls."))
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
else if(istype(I,/obj/item/multitool))
if(locked)
- to_chat(user, "Circuit controls are locked.")
+ to_chat(user, span_warning("Circuit controls are locked."))
return
var/existing_networks = jointext(network,",")
var/input = sanitize(tgui_input_text(usr, "Which networks would you like to connect this camera console circuit to? Separate networks with a comma. No Spaces!\nFor example: SS13,Security,Secret ", "Multitool-Circuitboard interface", existing_networks))
diff --git a/code/game/objects/items/weapons/circuitboards/computer/research.dm b/code/game/objects/items/weapons/circuitboards/computer/research.dm
index 5c4c2f8d48..ee687f9923 100644
--- a/code/game/objects/items/weapons/circuitboards/computer/research.dm
+++ b/code/game/objects/items/weapons/circuitboards/computer/research.dm
@@ -9,13 +9,13 @@
/obj/item/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob)
if(I.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, I.usesound, 50, 1)
- user.visible_message("\The [user] adjusts the jumper on \the [src]'s access protocol pins.", "You adjust the jumper on the access protocol pins.")
+ user.visible_message("\The [user] adjusts the jumper on \the [src]'s access protocol pins.", span_notice("You adjust the jumper on the access protocol pins."))
if(build_path == /obj/machinery/computer/rdconsole/core)
name = T_BOARD("RD Console - Robotics")
build_path = /obj/machinery/computer/rdconsole/robotics
- to_chat(user, "Access protocols set to robotics.")
+ to_chat(user, span_notice("Access protocols set to robotics."))
else
name = T_BOARD("RD Console")
build_path = /obj/machinery/computer/rdconsole/core
- to_chat(user, "Access protocols set to default.")
- return
\ No newline at end of file
+ to_chat(user, span_notice("Access protocols set to default."))
+ return
diff --git a/code/game/objects/items/weapons/circuitboards/machinery/research.dm b/code/game/objects/items/weapons/circuitboards/machinery/research.dm
index 97a6888adf..3a621bd5a6 100644
--- a/code/game/objects/items/weapons/circuitboards/machinery/research.dm
+++ b/code/game/objects/items/weapons/circuitboards/machinery/research.dm
@@ -14,15 +14,15 @@
/obj/item/circuitboard/rdserver/attackby(obj/item/I as obj, mob/user as mob)
if(I.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, I.usesound, 50, 1)
- user.visible_message("\The [user] adjusts the jumper on \the [src]'s access protocol pins.", "You adjust the jumper on the access protocol pins.")
+ user.visible_message("\The [user] adjusts the jumper on \the [src]'s access protocol pins.", span_notice("You adjust the jumper on the access protocol pins."))
if(build_path == /obj/machinery/r_n_d/server/core)
name = T_BOARD("RD Console - Robotics")
build_path = /obj/machinery/r_n_d/server/robotics
- to_chat(user, "Access protocols set to robotics.")
+ to_chat(user, span_notice("Access protocols set to robotics."))
else
name = T_BOARD("RD Console")
build_path = /obj/machinery/r_n_d/server/core
- to_chat(user, "Access protocols set to default.")
+ to_chat(user, span_notice("Access protocols set to default."))
return
/obj/item/circuitboard/destructive_analyzer
diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm
index 7e0226b762..eb4a1d05a2 100644
--- a/code/game/objects/items/weapons/clown_items.dm
+++ b/code/game/objects/items/weapons/clown_items.dm
@@ -37,30 +37,30 @@
//I couldn't feasibly fix the overlay bugs caused by cleaning items we are wearing.
//So this is a workaround. This also makes more sense from an IC standpoint. ~Carn
if(user.client && (target in user.client.screen))
- to_chat(user, "You need to take that [target.name] off before cleaning it.")
+ to_chat(user, span_notice("You need to take that [target.name] off before cleaning it."))
else if(istype(target,/obj/effect/decal/cleanable/blood))
- to_chat(user, "You scrub \the [target.name] out.")
+ to_chat(user, span_notice("You scrub \the [target.name] out."))
target.clean_blood()
return //Blood is a cleanable decal, therefore needs to be accounted for before all cleanable decals.
else if(istype(target,/obj/effect/decal/cleanable))
- to_chat(user, "You scrub \the [target.name] out.")
+ to_chat(user, span_notice("You scrub \the [target.name] out."))
qdel(target)
else if(istype(target,/turf))
- to_chat(user, "You scrub \the [target.name] clean.")
+ to_chat(user, span_notice("You scrub \the [target.name] clean."))
var/turf/T = target
T.clean(src, user)
else if(istype(target,/obj/structure/sink))
- to_chat(user, "You wet \the [src] in the sink.")
+ to_chat(user, span_notice("You wet \the [src] in the sink."))
wet()
else
- to_chat(user, "You clean \the [target.name].")
+ to_chat(user, span_notice("You clean \the [target.name]."))
target.clean_blood(TRUE)
return
//attack_as_weapon
/obj/item/soap/attack(mob/living/target, mob/living/user, var/target_zone)
if(target && user && ishuman(target) && ishuman(user) && !user.incapacitated() && user.zone_sel &&user.zone_sel.selecting == "mouth" )
- user.visible_message("\The [user] washes \the [target]'s mouth out with soap!")
+ user.visible_message(span_danger("\The [user] washes \the [target]'s mouth out with soap!"))
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) //prevent spam
return
..()
diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm
index f85839f518..aa225cc2d1 100644
--- a/code/game/objects/items/weapons/cosmetics.dm
+++ b/code/game/objects/items/weapons/cosmetics.dm
@@ -31,7 +31,7 @@
name = "[colour] lipstick"
/obj/item/lipstick/attack_self(mob/user as mob)
- to_chat(user, "You twist \the [src] [open ? "closed" : "open"].")
+ to_chat(user, span_notice("You twist \the [src] [open ? "closed" : "open"]."))
open = !open
if(open)
icon_state = "[initial(icon_state)]_[colour]"
@@ -46,23 +46,23 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.lip_style) //if they already have lipstick on
- to_chat(user, "You need to wipe off the old lipstick first!")
+ to_chat(user, span_notice("You need to wipe off the old lipstick first!"))
return
if(H == user)
- user.visible_message("[user] does their lips with \the [src].", \
- "You take a moment to apply \the [src]. Perfect!")
+ user.visible_message(span_notice("[user] does their lips with \the [src]."), \
+ span_notice("You take a moment to apply \the [src]. Perfect!"))
H.lip_style = colour
H.update_icons_body()
else
- user.visible_message("[user] begins to do [H]'s lips with \the [src].", \
- "You begin to apply \the [src].")
+ user.visible_message(span_warning("[user] begins to do [H]'s lips with \the [src]."), \
+ span_notice("You begin to apply \the [src]."))
if(do_after(user, 20, H)) //user needs to keep their active hand, H does not.
- user.visible_message("[user] does [H]'s lips with \the [src].", \
- "You apply \the [src].")
+ user.visible_message(span_notice("[user] does [H]'s lips with \the [src]."), \
+ span_notice("You apply \the [src]."))
H.lip_style = colour
H.update_icons_body()
else
- to_chat(user, "Where are the lips on that?")
+ to_chat(user, span_notice("Where are the lips on that?"))
//you can wipe off lipstick with paper! see code/modules/paperwork/paper.dm, paper/attack()
@@ -89,7 +89,7 @@
text = "guy"
if(FEMALE)
text = "lady"
- user.visible_message("[user] uses [src] to comb their hair with incredible style and sophistication. What a [text].")
+ user.visible_message(span_notice("[user] uses [src] to comb their hair with incredible style and sophistication. What a [text]."))
/obj/item/makeover
name = "makeover kit"
@@ -105,9 +105,9 @@
/obj/item/makeover/attack_self(mob/living/carbon/user as mob)
if(ishuman(user))
- to_chat(user, "You flip open \the [src] and begin to adjust your appearance.")
+ to_chat(user, span_notice("You flip open \the [src] and begin to adjust your appearance."))
M.tgui_interact(user)
var/mob/living/carbon/human/H = user
var/obj/item/organ/internal/eyes/E = H.internal_organs_by_name[O_EYES]
if(istype(E))
- E.change_eye_color()
\ No newline at end of file
+ E.change_eye_color()
diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm
index 703921217d..123c97dd2c 100644
--- a/code/game/objects/items/weapons/dna_injector.dm
+++ b/code/game/objects/items/weapons/dna_injector.dm
@@ -106,7 +106,7 @@
if(inuse)
return 0
- user.visible_message("\The [user] is trying to inject \the [M] with \the [src]!")
+ user.visible_message(span_danger("\The [user] is trying to inject \the [M] with \the [src]!"))
inuse = 1
s_time = world.time
spawn(50)
@@ -118,11 +118,11 @@
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
user.do_attack_animation(M)
- M.visible_message("\The [M] has been injected with \the [src] by \the [user].")
+ M.visible_message(span_danger("\The [M] has been injected with \the [src] by \the [user]."))
var/mob/living/carbon/human/H = M
if(!istype(H))
- to_chat(user, "Apparently it didn't work...")
+ to_chat(user, span_warning("Apparently it didn't work..."))
return
// Used by admin log.
diff --git a/code/game/objects/items/weapons/ecigs.dm b/code/game/objects/items/weapons/ecigs.dm
index 7149b91e6a..22e9675156 100644
--- a/code/game/objects/items/weapons/ecigs.dm
+++ b/code/game/objects/items/weapons/ecigs.dm
@@ -24,25 +24,25 @@
/obj/item/clothing/mask/smokable/ecig/examine(mob/user)
. = ..()
-
+
if(active)
- . += "It is turned on."
+ . += span_notice("It is turned on.")
else
- . += "It is turned off."
+ . += span_notice("It is turned off.")
if(Adjacent(user))
if(ec_cartridge)
if(!ec_cartridge.reagents?.total_volume)
- . += "Its cartridge is empty!"
+ . += span_notice("Its cartridge is empty!")
else if (ec_cartridge.reagents.total_volume <= ec_cartridge.volume * 0.25)
- . += "Its cartridge is almost empty!"
+ . += span_notice("Its cartridge is almost empty!")
else if (ec_cartridge.reagents.total_volume <= ec_cartridge.volume * 0.66)
- . += "Its cartridge is half full!"
+ . += span_notice("Its cartridge is half full!")
else if (ec_cartridge.reagents.total_volume <= ec_cartridge.volume * 0.90)
- . += "Its cartridge is almost full!"
+ . += span_notice("Its cartridge is almost full!")
else
- . += "Its cartridge is full!"
+ . += span_notice("Its cartridge is full!")
else
- . += "It has no cartridge."
+ . += span_notice("It has no cartridge.")
/obj/item/clothing/mask/smokable/ecig/simple
name = "simple electronic cigarette"
diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm
index 7b4d5e9ffd..ed05e9e8a0 100644
--- a/code/game/objects/items/weapons/explosives.dm
+++ b/code/game/objects/items/weapons/explosives.dm
@@ -31,7 +31,7 @@
/obj/item/plastique/attackby(var/obj/item/I, var/mob/user)
if(I.has_tool_quality(TOOL_SCREWDRIVER))
open_panel = !open_panel
- to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.")
+ to_chat(user, span_notice("You [open_panel ? "open" : "close"] the wire panel."))
playsound(src, I.usesound, 50, 1)
else if(I.has_tool_quality(TOOL_WIRECUTTER) || istype(I, /obj/item/multitool) || istype(I, /obj/item/assembly/signaler ))
wires.Interact(user)
@@ -60,7 +60,7 @@
if (ismob(target))
add_attack_logs(user, target, "planted [name] on with [timer] second fuse")
- user.visible_message("[user.name] finished planting an explosive on [target.name]!")
+ user.visible_message(span_danger("[user.name] finished planting an explosive on [target.name]!"))
else
message_admins("[key_name(user, user.client)](?) planted [src.name] on [target.name] at ([target.x],[target.y],[target.z] - JMP) with [timer] second fuse",0,1)
log_game("[key_name(user)] planted [src.name] on [target.name] at ([target.x],[target.y],[target.z]) with [timer] second fuse")
@@ -108,12 +108,12 @@
var/obj/item/stock_parts/SP = I
var/new_blast_power = max(1, round(SP.rating / 2) + 1)
if(new_blast_power > blast_heavy)
- to_chat(user, "You install \the [I] into \the [src].")
+ to_chat(user, span_notice("You install \the [I] into \the [src]."))
user.drop_from_inventory(I)
qdel(I)
blast_heavy = new_blast_power
blast_light = blast_heavy + round(new_blast_power * 0.5)
blast_flash = blast_light + round(new_blast_power * 0.75)
else
- to_chat(user, "The [I] is not any better than the component already installed into this charge!")
+ to_chat(user, span_notice("The [I] is not any better than the component already installed into this charge!"))
return .
diff --git a/code/game/objects/items/weapons/explosives_vr.dm b/code/game/objects/items/weapons/explosives_vr.dm
index 28ea210318..05d9a35b1f 100644
--- a/code/game/objects/items/weapons/explosives_vr.dm
+++ b/code/game/objects/items/weapons/explosives_vr.dm
@@ -9,9 +9,9 @@
var/turf/T = get_turf(target)
if((T.z in using_map.station_levels) || (T.z in using_map.admin_levels))
- target.visible_message("\The [src] lets out a loud beep as safeties trigger, before imploding and falling apart.")
+ target.visible_message(span_danger("\The [src] lets out a loud beep as safeties trigger, before imploding and falling apart."))
target.cut_overlay(image_overlay, TRUE)
qdel(src)
return 0
else
- return ..()
\ No newline at end of file
+ return ..()
diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm
index f32ea57f18..14befc3757 100644
--- a/code/game/objects/items/weapons/extinguisher.dm
+++ b/code/game/objects/items/weapons/extinguisher.dm
@@ -93,13 +93,13 @@
if( istype(target, /obj/structure/reagent_dispensers) && flag)
var/obj/o = target
var/amount = o.reagents.trans_to_obj(src, 50)
- to_chat(user, "You fill [src] with [amount] units of the contents of [target].")
+ to_chat(user, span_notice("You fill [src] with [amount] units of the contents of [target]."))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
if (!safety)
if (src.reagents.total_volume < 1)
- to_chat(usr, "\The [src] is empty.")
+ to_chat(usr, span_notice("\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 af7b1f0d6c..9d386f3202 100644
--- a/code/game/objects/items/weapons/flamethrower.dm
+++ b/code/game/objects/items/weapons/flamethrower.dm
@@ -86,7 +86,7 @@
if(W.has_tool_quality(TOOL_SCREWDRIVER) && igniter && !lit)
status = !status
- to_chat(user, "[igniter] is now [status ? "secured" : "unsecured"]!")
+ to_chat(user, span_notice("[igniter] is now [status ? "secured" : "unsecured"]!"))
update_icon()
return
@@ -102,7 +102,7 @@
if(istype(W,/obj/item/tank/phoron))
if(ptank)
- to_chat(user, "There appears to already be a phoron tank loaded in [src]!")
+ to_chat(user, span_notice("There appears to already be a phoron tank loaded in [src]!"))
return
user.drop_item()
ptank = W
@@ -118,7 +118,7 @@
if(user.stat || user.restrained() || user.lying) return
user.set_machine(src)
if(!ptank)
- to_chat(user, "Attach a phoron tank first!")
+ to_chat(user, span_notice("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 bb6f6eb8c3..57d50de647 100644
--- a/code/game/objects/items/weapons/gift_wrappaper.dm
+++ b/code/game/objects/items/weapons/gift_wrappaper.dm
@@ -33,7 +33,7 @@
user.put_in_active_hand(gift)
src.gift.add_fingerprint(user)
else
- to_chat(user, "The gift was empty!")
+ to_chat(user, span_warning("The gift was empty!"))
qdel(src)
return
@@ -44,16 +44,16 @@
/obj/effect/spresent/relaymove(mob/user as mob)
if (user.stat)
return
- to_chat(user, "You can't move.")
+ to_chat(user, span_warning("You can't move."))
/obj/effect/spresent/attackby(obj/item/W as obj, mob/user as mob)
..()
if (!W.has_tool_quality(TOOL_WIRECUTTER))
- to_chat(user, "I need wirecutters for that.")
+ to_chat(user, span_warning("I need wirecutters for that."))
return
- to_chat(user, "You cut open the present.")
+ to_chat(user, span_notice("You cut open the present."))
for(var/mob/M in src) //Should only be one but whatever.
M.forceMove(src.loc)
@@ -129,17 +129,17 @@
/obj/item/wrapping_paper/attackby(obj/item/W as obj, mob/living/user as mob)
..()
if (!( locate(/obj/structure/table, src.loc) ))
- to_chat(user, "You MUST put the paper on a table!")
+ to_chat(user, span_warning("You MUST put the paper on a table!"))
if (W.w_class < ITEMSIZE_LARGE)
var/obj/item/I = user.get_inactive_hand()
if(I && I.has_tool_quality(TOOL_WIRECUTTER))
var/a_used = 2 ** (src.w_class - 1)
if (src.amount < a_used)
- to_chat(user, "You need more paper!")
+ to_chat(user, span_warning("You need more paper!"))
return
else
if(istype(W, /obj/item/smallDelivery) || istype(W, /obj/item/gift)) //No gift wrapping gifts!
- to_chat(user, "You can't wrap something that's already wrapped!")
+ to_chat(user, span_warning("You can't wrap something that's already wrapped!"))
return
src.amount -= a_used
@@ -158,9 +158,9 @@
qdel(src)
return
else
- to_chat(user, "You need scissors!")
+ to_chat(user, span_warning("You need scissors!"))
else
- to_chat(user, "The object is FAR too large!")
+ to_chat(user, span_warning("The object is FAR too large!"))
return
@@ -182,6 +182,6 @@
add_attack_logs(user,H,"Wrapped with [src]")
else
- to_chat(user, "You need more paper.")
+ to_chat(user, span_warning("You need more paper."))
else
to_chat(user, "They are moving around too much. A straightjacket would help.")
diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm
index 3f29c0a3b3..01caf091bd 100644
--- a/code/game/objects/items/weapons/grenades/chem_grenade.dm
+++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm
@@ -44,7 +44,7 @@
user.put_in_hands(B)
name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]"
if(stage > 1 && !active && clown_check(user))
- to_chat(user, "You prime \the [name]!")
+ to_chat(user, span_warning("You prime \the [name]!"))
msg_admin_attack("[key_name_admin(user)] primed \a [src]")
@@ -58,13 +58,13 @@
if(istype(W,/obj/item/assembly_holder) && (!stage || stage==1) && !detonator && path != 2)
var/obj/item/assembly_holder/det = W
if(istype(det.a_left,det.a_right.type) || (!isigniter(det.a_left) && !isigniter(det.a_right)))
- to_chat(user, "Assembly must contain one igniter.")
+ to_chat(user, span_warning("Assembly must contain one igniter."))
return
if(!det.secured)
- to_chat(user, "Assembly must be secured with screwdriver.")
+ to_chat(user, span_warning("Assembly must be secured with screwdriver."))
return
path = 1
- to_chat(user, "You add [W] to the metal casing.")
+ to_chat(user, span_notice("You add [W] to the metal casing."))
playsound(src, 'sound/items/Screwdriver2.ogg', 25, -3)
user.remove_from_mob(det)
det.loc = src
@@ -82,23 +82,23 @@
if(stage == 1)
path = 1
if(beakers.len)
- to_chat(user, "You lock the assembly.")
+ to_chat(user, span_notice("You lock the assembly."))
name = "grenade"
else
-// to_chat(user, "You need to add at least one beaker before locking the assembly.")
- to_chat(user, "You lock the empty assembly.")
+// to_chat(user, span_warning("You need to add at least one beaker before locking the assembly."))
+ to_chat(user, span_notice("You lock the empty assembly."))
name = "fake grenade"
playsound(src, W.usesound, 50, 1)
icon_state = initial(icon_state) +"_locked"
stage = 2
else if(stage == 2)
if(active && prob(95))
- to_chat(user, "You trigger the assembly!")
+ to_chat(user, span_warning("You trigger the assembly!"))
detonate()
else if(sealed)
- to_chat(user, "This grenade lacks a way to disassemble it.")
+ to_chat(user, span_warning("This grenade lacks a way to disassemble it."))
else
- to_chat(user, "You unlock the assembly.")
+ to_chat(user, span_notice("You unlock the assembly."))
playsound(src, W.usesound, 50, -3)
name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]"
icon_state = initial(icon_state) + (detonator?"_ass":"")
@@ -107,18 +107,18 @@
else if(is_type_in_list(W, allowed_containers) && (!stage || stage==1) && path != 2)
path = 1
if(beakers.len == 2)
- to_chat(user, "The grenade can not hold more containers.")
+ to_chat(user, span_warning("The grenade can not hold more containers."))
return
else
if(W.reagents.total_volume)
- to_chat(user, "You add \the [W] to the assembly.")
+ to_chat(user, span_notice("You add \the [W] to the assembly."))
user.drop_item()
W.loc = src
beakers += W
stage = 1
name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]"
else
- to_chat(user, "\The [W] is empty.")
+ to_chat(user, span_warning("\The [W] is empty."))
/obj/item/grenade/chem_grenade/examine(mob/user)
. = ..()
diff --git a/code/game/objects/items/weapons/grenades/concussion.dm b/code/game/objects/items/weapons/grenades/concussion.dm
index d6ae4474c6..752888ad41 100644
--- a/code/game/objects/items/weapons/grenades/concussion.dm
+++ b/code/game/objects/items/weapons/grenades/concussion.dm
@@ -17,14 +17,14 @@
/obj/proc/concussion_blast(atom/target, var/radius = 5)
var/turf/T = get_turf(target)
if(is_below_sound_pressure(T))
- visible_message("Whump.")
+ visible_message(span_notice("Whump."))
return
playsound(src, 'sound/effects/bang.ogg', 75, 1, -3)
if(istype(T))
for(var/mob/living/L in orange(T, radius))
if(ishuman(L))
var/mob/living/carbon/human/H = L
- to_chat(H, "WHUMP.")
+ to_chat(H, span_critical("WHUMP."))
var/ear_safety = 0
@@ -67,13 +67,13 @@
H.ear_deaf = max(H.ear_deaf,5)
if(H.ear_damage >= 15)
- to_chat(H, "Your ears start to ring badly!")
+ to_chat(H, span_danger("Your ears start to ring badly!"))
if(prob(H.ear_damage - 5))
- to_chat(H, "You can't hear anything!")
+ to_chat(H, span_danger("You can't hear anything!"))
H.sdisabilities |= DEAF
else if(H.ear_damage >= 5)
- to_chat(H, "Your ears start to ring!")
+ to_chat(H, span_danger("Your ears start to ring!"))
if(istype(L, /mob/living/silicon/robot))
var/mob/living/silicon/robot/R = L
if(L.client)
@@ -81,5 +81,5 @@
L.client.spinleft()
else
L.client.spinright()
- to_chat(R, "Gyroscopic failure.")
- return
\ No newline at end of file
+ to_chat(R, span_critical("Gyroscopic failure."))
+ return
diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm
index 083c45be34..9d0f1d9665 100644
--- a/code/game/objects/items/weapons/grenades/flashbang.dm
+++ b/code/game/objects/items/weapons/grenades/flashbang.dm
@@ -28,7 +28,7 @@
qdel(src)
/obj/item/grenade/flashbang/proc/bang(var/turf/T , var/mob/living/carbon/M) // Added a new proc called 'bang' that takes a location and a person to be banged.
- to_chat(M, "BANG") // Called during the loop that bangs people in lockers/containers and when banging
+ to_chat(M, span_danger("BANG")) // Called during the loop that bangs people in lockers/containers and when banging
playsound(src, 'sound/effects/bang.ogg', 50, 1, 30) // people in normal view. Could theroetically be called during other explosions.
// -- Polymorph
@@ -80,18 +80,18 @@
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)
- to_chat(M, "Your eyes start to burn badly!")
+ to_chat(M, span_danger("Your eyes start to burn badly!"))
if(!banglet && !(istype(src , /obj/item/grenade/flashbang/clusterbang)))
if (E.damage >= E.min_broken_damage)
- to_chat(M, "You can't see anything!")
+ to_chat(M, span_danger("You can't see anything!"))
if (M.ear_damage >= 15)
- to_chat(M, "Your ears start to ring badly!")
+ to_chat(M, span_danger("Your ears start to ring badly!"))
if(!banglet && !(istype(src , /obj/item/grenade/flashbang/clusterbang)))
if (prob(M.ear_damage - 10 + 5))
- to_chat(M, "You can't hear anything!")
+ to_chat(M, span_danger("You can't hear anything!"))
M.sdisabilities |= DEAF
else if(M.ear_damage >= 5)
- to_chat(M, "Your ears start to ring!")
+ to_chat(M, span_danger("Your ears start to ring!"))
/obj/item/grenade/flashbang/Destroy()
walk(src, 0) // Because we might have called walk_away, we must stop the walk loop or BYOND keeps an internal reference to us forever.
diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm
index 0421f4f14e..c802c8a1cc 100644
--- a/code/game/objects/items/weapons/grenades/grenade.dm
+++ b/code/game/objects/items/weapons/grenades/grenade.dm
@@ -18,7 +18,7 @@
/obj/item/grenade/proc/clown_check(var/mob/living/user)
if((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "Huh? How does this thing work?")
+ to_chat(user, span_warning("Huh? How does this thing work?"))
activate(user)
add_fingerprint(user)
@@ -32,7 +32,7 @@
if (istype(target, /obj/item/storage)) return ..() // Trying to put it in a full container
if (istype(target, /obj/item/gun/grenadelauncher)) return ..()
if((user.get_active_hand() == src) && (!active) && (clown_check(user)) && target.loc != src.loc)
- to_chat(user, "You prime the [name]! [det_time/10] seconds!")
+ to_chat(user, span_warning("You prime the [name]! [det_time/10] seconds!"))
active = 1
icon_state = initial(icon_state) + "_active"
playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3)
@@ -58,7 +58,7 @@
/obj/item/grenade/attack_self(mob/user as mob)
if(!active)
if(clown_check(user))
- to_chat(user, "You prime \the [name]! [det_time/10] seconds!")
+ to_chat(user, span_warning("You prime \the [name]! [det_time/10] seconds!"))
activate(user)
add_fingerprint(user)
@@ -96,16 +96,16 @@
switch(det_time)
if (1)
det_time = 10
- to_chat(user, "You set the [name] for 1 second detonation time.")
+ to_chat(user, span_notice("You set the [name] for 1 second detonation time."))
if (10)
det_time = 30
- to_chat(user, "You set the [name] for 3 second detonation time.")
+ to_chat(user, span_notice("You set the [name] for 3 second detonation time."))
if (30)
det_time = 50
- to_chat(user, "You set the [name] for 5 second detonation time.")
+ to_chat(user, span_notice("You set the [name] for 5 second detonation time."))
if (50)
det_time = 1
- to_chat(user, "You set the [name] for instant detonation.")
+ to_chat(user, span_notice("You set the [name] for instant detonation."))
add_fingerprint(user)
..()
return
@@ -116,4 +116,4 @@
return
/obj/item/grenade/vendor_action(var/obj/machinery/vending/V)
- activate(V)
\ No newline at end of file
+ activate(V)
diff --git a/code/game/objects/items/weapons/grenades/spawnergrenade_vr.dm b/code/game/objects/items/weapons/grenades/spawnergrenade_vr.dm
index e49a7154b0..0544193589 100644
--- a/code/game/objects/items/weapons/grenades/spawnergrenade_vr.dm
+++ b/code/game/objects/items/weapons/grenades/spawnergrenade_vr.dm
@@ -17,14 +17,14 @@
if(istype(id))
if(check_access(id))
locked = !locked
- to_chat(user, "You [locked ? "enable" : "disable"] the safety lock on \the [src].")
+ to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]."))
else
- to_chat(user, "Access denied.")
- user.visible_message("[user] swipes \the [I] against \the [src].")
+ to_chat(user, span_warning("Access denied."))
+ user.visible_message(span_notice("[user] swipes \the [I] against \the [src]."))
else
return ..()
/obj/item/grenade/spawnergrenade/manhacks/station/locked/emag_act(var/remaining_charges,var/mob/user)
..()
locked = !locked
- to_chat(user, "You [locked ? "enable" : "disable"] the safety lock on \the [src]!")
\ No newline at end of file
+ to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]!"))
diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm
index e5b3fbe11b..ab275feb63 100644
--- a/code/game/objects/items/weapons/handcuffs.dm
+++ b/code/game/objects/items/weapons/handcuffs.dm
@@ -33,7 +33,7 @@
return
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "Uh ... how do those things work?!")
+ to_chat(user, span_warning("Uh ... how do those things work?!"))
place_handcuffs(user, user)
return
@@ -46,7 +46,7 @@
if(can_place(C, user))
place_handcuffs(C, user)
else
- to_chat(user, "You need to have a firm grip on [C] before you can put \the [src] on!")
+ to_chat(user, span_danger("You need to have a firm grip on [C] before you can put \the [src] on!"))
/obj/item/handcuffs/proc/can_place(var/mob/target, var/mob/user)
if(user == target)
@@ -68,14 +68,14 @@
return 0
if (!H.has_organ_for_slot(slot_handcuffed))
- to_chat(user, "\The [H] needs at least two wrists before you can cuff them together!")
+ to_chat(user, span_danger("\The [H] needs at least two wrists before you can cuff them together!"))
return 0
if(istype(H.gloves,/obj/item/clothing/gloves/gauntlets/rig) && !elastic) // Can't cuff someone who's in a deployed hardsuit.
- to_chat(user, "\The [src] won't fit around \the [H.gloves]!")
+ to_chat(user, span_danger("\The [src] won't fit around \the [H.gloves]!"))
return 0
- user.visible_message("\The [user] is attempting to put [cuff_type] on \the [H]!")
+ user.visible_message(span_danger("\The [user] is attempting to put [cuff_type] on \the [H]!"))
if(!do_after(user,use_time))
return 0
@@ -89,7 +89,7 @@
user.setClickCooldown(user.get_attack_speed(src))
user.do_attack_animation(H)
- user.visible_message("\The [user] has put [cuff_type] on \the [H]!")
+ user.visible_message(span_danger("\The [user] has put [cuff_type] on \the [H]!"))
// Apply cuffs.
var/obj/item/handcuffs/cuffs = src
@@ -129,8 +129,8 @@ var/last_chew = 0
var/datum/gender/T = gender_datums[H.get_visible_gender()]
- var/s = "[H.name] chews on [T.his] [O.name]!"
- H.visible_message(s, "You chew on your [O.name]!")
+ var/s = span_warning("[H.name] chews on [T.his] [O.name]!")
+ H.visible_message(s, span_warning("You chew on your [O.name]!"))
add_attack_logs(H,H,"chewed own [O.name]")
if(O.take_damage(3,0,1,1,"teeth marks"))
@@ -219,7 +219,7 @@ var/last_chew = 0
return
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "Uh ... how do those things work?!")
+ to_chat(user, span_warning("Uh ... how do those things work?!"))
place_legcuffs(user, user)
return
@@ -232,7 +232,7 @@ var/last_chew = 0
if(can_place(C, user))
place_legcuffs(C, user)
else
- to_chat(user, "You need to have a firm grip on [C] before you can put \the [src] on!")
+ to_chat(user, span_danger("You need to have a firm grip on [C] before you can put \the [src] on!"))
/obj/item/handcuffs/legcuffs/proc/place_legcuffs(var/mob/living/carbon/target, var/mob/user)
playsound(src, cuff_sound, 30, 1, -2)
@@ -242,14 +242,14 @@ var/last_chew = 0
return 0
if (!H.has_organ_for_slot(slot_legcuffed))
- to_chat(user, "\The [H] needs at least two ankles before you can cuff them together!")
+ to_chat(user, span_danger("\The [H] needs at least two ankles before you can cuff them together!"))
return 0
if(istype(H.shoes,/obj/item/clothing/shoes/magboots/rig) && !elastic) // Can't cuff someone who's in a deployed hardsuit.
- to_chat(user, "\The [src] won't fit around \the [H.shoes]!")
+ to_chat(user, span_danger("\The [src] won't fit around \the [H.shoes]!"))
return 0
- user.visible_message("\The [user] is attempting to put [cuff_type] on \the [H]!")
+ user.visible_message(span_danger("\The [user] is attempting to put [cuff_type] on \the [H]!"))
if(!do_after(user,use_time))
return 0
@@ -263,7 +263,7 @@ var/last_chew = 0
user.setClickCooldown(user.get_attack_speed(src))
user.do_attack_animation(H)
- user.visible_message("\The [user] has put [cuff_type] on \the [H]!")
+ user.visible_message(span_danger("\The [user] has put [cuff_type] on \the [H]!"))
// Apply cuffs.
var/obj/item/handcuffs/legcuffs/lcuffs = src
@@ -318,7 +318,7 @@ var/last_chew = 0
src.dropped()
return 0
- H.visible_message("\The [H] has been snared by \the [src]!")
+ H.visible_message(span_danger("\The [H] has been snared by \the [src]!"))
// Apply cuffs.
var/obj/item/handcuffs/legcuffs/lcuffs = src
diff --git a/code/game/objects/items/weapons/hydroponics.dm b/code/game/objects/items/weapons/hydroponics.dm
index 7378f6e44b..457f3476d7 100644
--- a/code/game/objects/items/weapons/hydroponics.dm
+++ b/code/game/objects/items/weapons/hydroponics.dm
@@ -42,10 +42,10 @@
else
S.item_quants[G.name] = 1
else
- to_chat(user, "The seed bag is full.")
+ to_chat(user, span_warning("The seed bag is full."))
S.updateUsrDialog()
return
- to_chat(user, "You pick up all the seeds.")
+ to_chat(user, span_notice("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
- to_chat(user, "The seed bag is full.")
+ to_chat(user, span_warning("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 f7866663ce..638fb5be4a 100644
--- a/code/game/objects/items/weapons/id cards/cards.dm
+++ b/code/game/objects/items/weapons/id cards/cards.dm
@@ -118,7 +118,7 @@
// Vorestation Edit: End of Edit
if(uses<1)
- user.visible_message("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent.")
+ user.visible_message(span_warning("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent."))
user.drop_item()
var/obj/item/card/emag_broken/junk = new(user.loc)
junk.add_fingerprint(user)
@@ -130,11 +130,11 @@
if(istype(O, /obj/item/stack/telecrystal))
var/obj/item/stack/telecrystal/T = O
if(T.get_amount() < 1)
- to_chat(usr, "You are not adding enough telecrystals to fuel \the [src].")
+ to_chat(usr, span_notice("You are not adding enough telecrystals to fuel \the [src]."))
return
uses += T.get_amount()*0.5 //Gives 5 uses per 10 TC
uses = CEILING(uses, 1) //Ensures no decimal uses nonsense, rounds up to be nice
- to_chat(usr, "You add \the [O] to \the [src]. Increasing the uses of \the [src] to [uses].")
+ to_chat(usr, span_notice("You add \the [O] to \the [src]. Increasing the uses of \the [src] to [uses]."))
qdel(O)
@@ -158,7 +158,7 @@
// Vorestation Edit: End of Edit
if(uses<1)
- user.visible_message("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent.")
+ user.visible_message(span_warning("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent."))
burnt_out = TRUE
return 1
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 87b004dae6..a80b758493 100644
--- a/code/game/objects/items/weapons/id cards/station_ids.dm
+++ b/code/game/objects/items/weapons/id cards/station_ids.dm
@@ -36,7 +36,7 @@
if(in_range(user, src))
tgui_interact(user) //Not chat related
else
- . += "It is too far away to read."
+ . += span_warning("It is too far away to read.")
/obj/item/card/id/proc/prevent_tracking()
return 0
@@ -356,7 +356,7 @@
name = user.name + "'s ID card" + " ([assignment])"
configured = 1
- to_chat(user, "Card settings set.")
+ to_chat(user, span_notice("Card settings set."))
/obj/item/card/id/event/attackby(obj/item/I as obj, var/mob/user)
if(istype(I, /obj/item/card/id) && !accessset)
@@ -364,7 +364,7 @@
access |= O.GetAccess()
desc = I.desc
rank = O.rank
- to_chat(user, "You copy the access from \the [I] to \the [src].")
+ to_chat(user, span_notice("You copy the access from \the [I] to \the [src]."))
user.drop_from_inventory(I)
qdel(I)
accessset = 1
@@ -570,7 +570,7 @@
var/guess = jobs_to_icon[user.job]
if(!guess)
- to_chat(user, "ITG Cards do not seem to be able to accept the access codes for your ID.")
+ to_chat(user, span_notice("ITG Cards do not seem to be able to accept the access codes for your ID."))
return
else
icon_state = guess
@@ -584,7 +584,7 @@
var/obj/item/card/id/O = I
var/list/itgdont = list(JOB_SITE_MANAGER, JOB_HEAD_OF_PERSONNEL, JOB_COMMAND_SECRETARY, JOB_HEAD_OF_SECURITY, JOB_CHIEF_ENGINEER, JOB_CHIEF_MEDICAL_OFFICER, JOB_RESEARCH_DIRECTOR, JOB_CLOWN, JOB_MIME, JOB_TALON_CAPTAIN) //If you're in as one of these you probably aren't representing ITG
if(O.rank in itgdont)
- to_chat(user, "ITG Cards do not seem to be able to accept the access codes for your ID.")
+ to_chat(user, span_notice("ITG Cards do not seem to be able to accept the access codes for your ID."))
return
. = ..()
desc = "A small card designating affiliation with the Ironcrest Transport Group. It has a NanoTrasen insignia and a lot of very small print on the back to do with practices and regulations for contractors to use."
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 beaec3504e..f95d49255e 100644
--- a/code/game/objects/items/weapons/id cards/syndicate_ids.dm
+++ b/code/game/objects/items/weapons/id cards/syndicate_ids.dm
@@ -31,12 +31,12 @@
var/obj/item/card/id/I = O
src.access |= I.GetAccess()
if(player_is_antag(user.mind) || registered_user == user)
- to_chat(user, "The microscanner activates as you pass it over the ID, copying its access.")
+ to_chat(user, span_notice("The microscanner activates as you pass it over the ID, copying its access."))
/obj/item/card/id/syndicate/attack_self(mob/user as mob)
// We use the fact that registered_name is not unset should the owner be vaporized, to ensure the id doesn't magically become unlocked.
if(!registered_user && register_user(user))
- to_chat(user, "The microscanner marks you as its owner, preventing others from accessing its internals.")
+ to_chat(user, span_notice("The microscanner marks you as its owner, preventing others from accessing its internals."))
if(registered_user == user)
switch(tgui_alert(usr, "Would you like to edit the ID, or show it?","Show or Edit?", list("Edit","Show")))
if(null)
diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm
index 7b012e0121..ed720b3a63 100644
--- a/code/game/objects/items/weapons/implants/implant.dm
+++ b/code/game/objects/items/weapons/implants/implant.dm
@@ -51,7 +51,7 @@
return 0
/obj/item/implant/proc/meltdown() //breaks it down, making implant unrecongizible
- to_chat(imp_in, "You feel something melting inside [part ? "your [part.name]" : "you"]!")
+ to_chat(imp_in, span_warning("You feel something melting inside [part ? "your [part.name]" : "you"]!"))
if (part)
part.take_damage(burn = 15, used_weapon = "Electronics meltdown")
else
@@ -254,7 +254,7 @@ Implant Specifics:
"}
if(ishuman(imp_in))
if (elevel == "Localized Limb")
if(part) //For some reason, small_boom() didn't work. So have this bit of working copypaste.
- imp_in.visible_message("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!")
+ imp_in.visible_message(span_warning("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!"))
playsound(src, 'sound/items/countdown.ogg', 75, 1, -3)
sleep(25)
if (istype(part,/obj/item/organ/external/chest) || \
@@ -327,7 +327,7 @@ Implant Specifics:
"}
/obj/item/implant/explosive/proc/small_boom()
if (ishuman(imp_in) && part)
- imp_in.visible_message("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!")
+ imp_in.visible_message(span_warning("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!"))
playsound(src, 'sound/items/countdown.ogg', 75, 1, -3)
spawn(25)
if (ishuman(imp_in) && part)
@@ -450,7 +450,7 @@ the implant may become unstable and either pre-maturely inject the subject or si
/obj/item/implant/loyalty/post_implant(mob/M)
var/mob/living/carbon/human/H = M
clear_antag_roles(H.mind, 1)
- to_chat(H, "You feel a surge of loyalty towards [using_map.company_name].")
+ to_chat(H, span_notice("You feel a surge of loyalty towards [using_map.company_name]."))
//////////////////////////////
// Adrenaline Implant
@@ -478,7 +478,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--
- to_chat(source, "You feel a sudden surge of energy!")
+ to_chat(source, span_notice("You feel a sudden surge of energy!"))
source.SetStunned(0)
source.SetWeakened(0)
source.SetParalysis(0)
diff --git a/code/game/objects/items/weapons/implants/implant_vr.dm b/code/game/objects/items/weapons/implants/implant_vr.dm
index b318a72592..bb9ec741cd 100644
--- a/code/game/objects/items/weapons/implants/implant_vr.dm
+++ b/code/game/objects/items/weapons/implants/implant_vr.dm
@@ -21,7 +21,7 @@
return 0
if (emote == "smile")
src.uses--
- to_chat(source,"You suddenly feel as if you can understand other languages!")
+ to_chat(source,span_notice("You suddenly feel as if you can understand other languages!"))
source.add_language(LANGUAGE_UNATHI)
source.add_language(LANGUAGE_SIIK)
source.add_language(LANGUAGE_SKRELLIAN)
@@ -168,7 +168,7 @@ Due to the small chemical capacity of the implant, the life of the implant is re
to_chat(user,"You set the laws to:
[newlaws]")
implant.laws = newlaws //Organic
else //No using other implants.
- to_chat(user,"A red warning pops up on the implanter's micro-screen: 'INVALID IMPLANT DETECTED.'")
+ to_chat(user,span_notice("A red warning pops up on the implanter's micro-screen: 'INVALID IMPLANT DETECTED.'"))
/obj/item/implant/compliance
@@ -196,12 +196,12 @@ Due to the small chemical capacity of the implant, the life of the implant is re
var/mob/living/carbon/human/target = source
if(!target.nif || target.nif.stat != NIF_WORKING) //No nif or their NIF is broken.
- to_chat(target, "You suddenly feel compelled to follow the following commands: [laws]")
- to_chat(target, "((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))")
- to_chat(target, "((OOC NOTE: Your new commands can be checked at any time by using the 'notes' command in chat. Additionally, if you did not agree to this, you are not compelled to follow the implant.))")
+ to_chat(target, span_notice("You suddenly feel compelled to follow the following commands: [laws]"))
+ to_chat(target, span_notice("((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))"))
+ to_chat(target, span_notice("((OOC NOTE: Your new commands can be checked at any time by using the 'notes' command in chat. Additionally, if you did not agree to this, you are not compelled to follow the implant.))"))
target.add_memory(laws)
return
else //You got a nif...Upload time.
new nif_payload(target.nif,laws)
- to_chat(target, "((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))")
- to_chat(target, "((OOC NOTE: If you did not agree to this, you are not compelled to follow the laws.))")
+ to_chat(target, span_notice("((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))"))
+ to_chat(target, span_notice("((OOC NOTE: If you did not agree to this, you are not compelled to follow the laws.))"))
diff --git a/code/game/objects/items/weapons/implants/implantaugment.dm b/code/game/objects/items/weapons/implants/implantaugment.dm
index ed1217ac22..7307282f10 100644
--- a/code/game/objects/items/weapons/implants/implantaugment.dm
+++ b/code/game/objects/items/weapons/implants/implantaugment.dm
@@ -30,10 +30,10 @@
var/obj/item/organ/NewOrgan = new organ_to_implant()
var/obj/item/organ/external/E = H.get_organ(NewOrgan.parent_organ)
- to_chat(H, "You feel a tingling sensation in your [part].")
+ to_chat(H, span_notice("You feel a tingling sensation in your [part]."))
if(E && !(H.internal_organs_by_name[NewOrgan.organ_tag]))
spawn(rand(1 SECONDS, 30 SECONDS))
- to_chat(H, "You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone.")
+ to_chat(H, span_alien("You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone."))
NewOrgan.forceMove(H)
NewOrgan.owner = H
@@ -50,7 +50,7 @@
else
qdel(NewOrgan)
- to_chat(H, "You feel a pinching sensation in your [part]. The implant remains.")
+ to_chat(H, span_warning("You feel a pinching sensation in your [part]. The implant remains."))
/obj/item/implant/organ/islegal()
return 0
@@ -74,12 +74,12 @@
var/obj/item/organ/NewOrgan = new organ_to_implant()
var/obj/item/organ/external/E = setup_augment_slots(H, NewOrgan)
- to_chat(H, "You feel a tingling sensation in your [part].")
+ to_chat(H, span_notice("You feel a tingling sensation in your [part]."))
NewOrgan.forceMove(H)
NewOrgan.owner = H
if(E && istype(E) && !(H.internal_organs_by_name[NewOrgan.organ_tag]) && NewOrgan.check_verb_compatability())
spawn(rand(1 SECONDS, 30 SECONDS))
- to_chat(H, "You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone.")
+ to_chat(H, span_alien("You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone."))
if(E.internal_organs == null)
E.internal_organs = list()
@@ -94,7 +94,7 @@
else
qdel(NewOrgan)
- to_chat(H, "You feel a pinching sensation in your [part]. The implant remains.")
+ to_chat(H, span_warning("You feel a pinching sensation in your [part]. The implant remains."))
/obj/item/implant/organ/limbaugment/proc/setup_augment_slots(var/mob/living/carbon/human/H, var/obj/item/organ/internal/augment/armmounted/I)
var/list/Choices = possible_targets.Copy()
diff --git a/code/game/objects/items/weapons/implants/implantcase.dm b/code/game/objects/items/weapons/implants/implantcase.dm
index 636b288876..fe4a98091f 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)
- to_chat(user, "\The [src] is full.")
+ to_chat(user, span_warning("\The [src] is full."))
else
spawn(5)
I.reagents.trans_to_obj(src.imp, 5)
- to_chat(user, "You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units.")
+ to_chat(user, span_notice("You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units."))
else if (istype(I, /obj/item/implanter))
var/obj/item/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 465a913d1a..8b14319614 100644
--- a/code/game/objects/items/weapons/implants/implantchair.dm
+++ b/code/game/objects/items/weapons/implants/implantchair.dm
@@ -101,10 +101,10 @@
/obj/machinery/implantchair/proc/put_mob(mob/living/carbon/M as mob)
if(!iscarbon(M))
- to_chat(usr, "\The [src] cannot hold this!")
+ to_chat(usr, span_warning("\The [src] cannot hold this!"))
return
if(src.occupant)
- to_chat(usr, "\The [src] is already occupied!")
+ to_chat(usr, span_warning("\The [src] is already occupied!"))
return
if(M.client)
M.client.perspective = EYE_PERSPECTIVE
@@ -125,7 +125,7 @@
if(!imp) continue
if(istype(imp, /obj/item/implant/loyalty))
for (var/mob/O in viewers(M, null))
- O.show_message("\The [M] has been implanted by \the [src].", 1)
+ O.show_message(span_warning("\The [M] has been implanted by \the [src]."), 1)
if(imp.handle_implant(M, BP_TORSO))
imp.post_implant(M)
diff --git a/code/game/objects/items/weapons/implants/implanter.dm b/code/game/objects/items/weapons/implants/implanter.dm
index e704c8cd56..7caf0d361f 100644
--- a/code/game/objects/items/weapons/implants/implanter.dm
+++ b/code/game/objects/items/weapons/implants/implanter.dm
@@ -12,7 +12,7 @@
/obj/item/implanter/attack_self(var/mob/user)
active = !active
- to_chat(user, "You [active ? "" : "de"]activate \the [src].")
+ to_chat(user, span_notice("You [active ? "" : "de"]activate \the [src]."))
update()
/obj/item/implanter/verb/remove_implant()
@@ -27,7 +27,7 @@
imp.loc = get_turf(src)
if(M.get_active_hand() == null)
M.put_in_hands(imp)
- to_chat(M, "You remove \the [imp] from \the [src].")
+ to_chat(M, span_notice("You remove \the [imp] from \the [src]."))
name = "implanter"
imp = null
@@ -48,7 +48,7 @@
return
if(active)
if (imp)
- M.visible_message("[user] is attempting to implant [M].")
+ M.visible_message(span_warning("[user] is attempting to implant [M]."))
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
user.do_attack_animation(M)
@@ -56,7 +56,7 @@
var/turf/T1 = get_turf(M)
if (T1 && ((M == user) || do_after(user, 50)))
if(user && M && (get_turf(M) == T1) && src && src.imp)
- M.visible_message("[M] has been implanted by [user].")
+ M.visible_message(span_warning("[M] has been implanted by [user]."))
add_attack_logs(user,M,"Implanted with [imp.name] using [name]")
@@ -71,7 +71,7 @@
src.imp = null
update()
else
- to_chat(user, "You need to activate \the [src.name] first.")
+ to_chat(user, span_warning("You need to activate \the [src.name] first."))
return
/obj/item/implanter/loyalty
@@ -134,16 +134,16 @@
if(!proximity)
return
if(!active)
- to_chat(user, "Activate \the [src.name] first.")
+ to_chat(user, span_warning("Activate \the [src.name] first."))
return
if(istype(A,/obj/item) && imp)
var/obj/item/implant/compressed/c = imp
if (c.scanned)
- to_chat(user, "Something is already scanned inside the implant!")
+ to_chat(user, span_warning("Something is already scanned inside the implant!"))
return
c.scanned = A
if(istype(A, /obj/item/storage))
- to_chat(user, "You can't store \the [A.name] in this!")
+ to_chat(user, span_warning("You can't store \the [A.name] in this!"))
c.scanned = null
return
if(istype(A.loc,/mob/living/carbon/human))
diff --git a/code/game/objects/items/weapons/implants/implantreagent_vr.dm b/code/game/objects/items/weapons/implants/implantreagent_vr.dm
index 2d62409232..39e693b457 100644
--- a/code/game/objects/items/weapons/implants/implantreagent_vr.dm
+++ b/code/game/objects/items/weapons/implants/implantreagent_vr.dm
@@ -32,7 +32,7 @@
/obj/item/implant/reagent_generator/post_implant(mob/living/carbon/source)
START_PROCESSING(SSobj, src)
- to_chat(source, "You implant [source] with \the [src].")
+ to_chat(source, span_notice("You implant [source] with \the [src]."))
assigned_proc = new assigned_proc(source, verb_name, verb_desc)
return 1
@@ -52,9 +52,9 @@
if(reagents)
if(reagents.total_volume == reagents.maximum_volume * 0.05)
- to_chat(imp_in, "[pick(empty_message)]")
+ to_chat(imp_in, span_notice("[pick(empty_message)]"))
else if(reagents.total_volume == reagents.maximum_volume && before_gen < reagents.maximum_volume)
- to_chat(imp_in, "[pick(full_message)]")
+ to_chat(imp_in, span_warning("[pick(full_message)]"))
/obj/item/implant/reagent_generator/proc/do_generation(var/mob/living/L)
L.adjust_nutrition(-gen_cost)
@@ -78,7 +78,7 @@
var/obj/item/reagent_containers/container = user.get_active_hand()
if(!container)
- to_chat(user,"You need an open container to do this!")
+ to_chat(user,span_notice("You need an open container to do this!"))
return
@@ -92,10 +92,9 @@
if(container.reagents.total_volume < container.volume)
var/container_name = container.name
if(rimplant.reagents.trans_to(container, amount = rimplant.transfer_amount))
- user.visible_message("[usr] [pick(rimplant.emote_descriptor)] into \the [container_name].",
- "You [pick(rimplant.self_emote_descriptor)] some [rimplant.reagent_name] into \the [container_name].")
+ user.visible_message(span_notice("[usr] [pick(rimplant.emote_descriptor)] into \the [container_name]."),
+ span_notice("You [pick(rimplant.self_emote_descriptor)] some [rimplant.reagent_name] into \the [container_name]."))
if(prob(5))
- src.visible_message("[src] [pick(rimplant.random_emote)].") // M-mlem.
+ src.visible_message(span_notice("[src] [pick(rimplant.random_emote)].")) // M-mlem.
if(rimplant.reagents.total_volume == rimplant.reagents.maximum_volume * 0.05)
- to_chat(src, "[pick(rimplant.empty_message)]")
-
+ to_chat(src, span_notice("[pick(rimplant.empty_message)]"))
diff --git a/code/game/objects/items/weapons/implants/neuralbasic.dm b/code/game/objects/items/weapons/implants/neuralbasic.dm
index 74d14a25d1..296784adbf 100644
--- a/code/game/objects/items/weapons/implants/neuralbasic.dm
+++ b/code/game/objects/items/weapons/implants/neuralbasic.dm
@@ -22,7 +22,7 @@
/obj/item/implant/neural/Destroy()
if(my_brain)
if(my_brain.owner)
- to_chat(my_brain.owner, "You feel a pressure in your mind as something is ripped away.")
+ to_chat(my_brain.owner, span_critical("You feel a pressure in your mind as something is ripped away."))
STOP_PROCESSING(SSobj, src)
my_brain = null
return ..()
@@ -30,7 +30,7 @@
/obj/item/implant/neural/process()
if(my_brain && part)
if(my_brain.loc != part.loc)
- to_chat(my_brain.owner, "You feel a pressure in your mind as something is ripped away.")
+ to_chat(my_brain.owner, span_critical("You feel a pressure in your mind as something is ripped away."))
meltdown()
return 1
@@ -67,26 +67,26 @@ Implant Specifics:
"}
else if(prob(80))
my_brain.take_damage(5)
if(!robotic_brain)
- to_chat(L, "Something in your [brain_location] burns!")
+ to_chat(L, span_critical("Something in your [brain_location] burns!"))
else
- to_chat(L, "Severe fault detected in [brain_location].")
+ to_chat(L, span_warning("Severe fault detected in [brain_location]."))
if(2)
if(prob(80))
my_brain.take_damage(3)
if(!robotic_brain)
- to_chat(L, "It feels like something is digging into your [brain_location]!")
+ to_chat(L, span_danger("It feels like something is digging into your [brain_location]!"))
else
- to_chat(L, "Fault detected in [brain_location].")
+ to_chat(L, span_warning("Fault detected in [brain_location]."))
if(3)
if(prob(60))
my_brain.take_damage(2)
if(!robotic_brain)
- to_chat(L, "There is a stabbing pain in your [brain_location]!")
+ to_chat(L, span_warning("There is a stabbing pain in your [brain_location]!"))
if(4)
if(prob(40))
my_brain.take_damage(1)
if(!robotic_brain)
- to_chat(L, "Your [brain_location] aches.")
+ to_chat(L, span_warning("Your [brain_location] aches."))
spawn(delay)
malfunction--
@@ -99,7 +99,7 @@ Implant Specifics:
"}
if(ishuman(my_brain.owner))
H = my_brain.owner
if(robotic_brain)
- to_chat(H, "WARNING. Fault dete-ct-- in the \the [src].")
+ to_chat(H, span_critical("WARNING. Fault dete-ct-- in the \the [src]."))
H.Confuse(30)
H.AdjustBlinded(5)
my_brain.take_damage(15)
diff --git a/code/game/objects/items/weapons/inducer_vr.dm b/code/game/objects/items/weapons/inducer_vr.dm
index d4f105e409..5be520308c 100644
--- a/code/game/objects/items/weapons/inducer_vr.dm
+++ b/code/game/objects/items/weapons/inducer_vr.dm
@@ -63,15 +63,15 @@
/obj/item/inducer/proc/cantbeused(mob/user)
if(!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to use [src]!")
+ to_chat(user, span_warning("You don't have the dexterity to use [src]!"))
return TRUE
if(!cell)
- to_chat(user, "[src] doesn't have a power cell installed!")
+ to_chat(user, span_warning("[src] doesn't have a power cell installed!"))
return TRUE
if(!cell.charge)
- to_chat(user, "[src]'s battery is dead!")
+ to_chat(user, span_warning("[src]'s battery is dead!"))
return TRUE
return FALSE
@@ -80,12 +80,12 @@
if(W.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, W.usesound, 50, 1)
if(!opened)
- to_chat(user, "You open the battery compartment.")
+ to_chat(user, span_notice("You open the battery compartment."))
opened = TRUE
update_icon()
return
else
- to_chat(user, "You close the battery compartment.")
+ to_chat(user, span_notice("You close the battery compartment."))
opened = FALSE
update_icon()
return
@@ -94,12 +94,12 @@
if(!cell)
user.drop_from_inventory(W)
W.forceMove(src)
- to_chat(user, "You insert [W] into [src].")
+ to_chat(user, span_notice("You insert [W] into [src]."))
cell = W
update_icon()
return
else
- to_chat(user, "[src] already has \a [cell] installed!")
+ to_chat(user, span_warning("[src] already has \a [cell] installed!"))
return
if(cantbeused(user))
@@ -119,7 +119,7 @@
recharging = TRUE
if(istype(A, /obj/item/gun/energy) && !charge_guns)
- to_chat(user, "Error: Device is unable to interface with weapons.")
+ to_chat(user, span_alert("Error: Device is unable to interface with weapons."))
recharging = FALSE
return FALSE
@@ -150,10 +150,10 @@
var/done_any = FALSE
if(C.charge >= C.maxcharge)
- to_chat(user, "[A] is fully charged ([round(C.charge)] / [C.maxcharge])!")
+ to_chat(user, span_notice("[A] is fully charged ([round(C.charge)] / [C.maxcharge])!"))
recharging = FALSE
return TRUE
- user.visible_message("[user] starts recharging [A] with [src].", "You start recharging [A] with [src].")
+ user.visible_message(span_notice("[user] starts recharging [A] with [src]."), span_notice("You start recharging [A] with [src]."))
var/datum/beam/charge_beam = user.Beam(A, icon_state = "rped_upgrade", time = 20 SECONDS)
var/filter = filter(type = "outline", size = 1, color = "#22AAFF")
@@ -179,18 +179,18 @@
A.filters -= filter
if(done_any) // Only show a message if we succeeded at least once
- user.visible_message("[user] recharged [A]!", "You recharged [A]!")
+ user.visible_message(span_notice("[user] recharged [A]!"), span_notice("You recharged [A]!"))
recharging = FALSE
return TRUE
else //Couldn't find a cell
- to_chat(user, "Error unable to interface with device.")
+ to_chat(user, span_alert("Error unable to interface with device."))
recharging = FALSE
/obj/item/inducer/attack_self(mob/user)
if(opened && cell)
- user.visible_message("[user] removes [cell] from [src]!", "You remove [cell].")
+ user.visible_message(span_notice("[user] removes [cell] from [src]!"), span_notice("You remove [cell]."))
cell.update_icon()
user.put_in_hands(cell)
cell = null
@@ -199,11 +199,11 @@
/obj/item/inducer/examine(mob/living/M)
. = ..()
if(cell)
- . += "Its display shows: [round(cell.charge)] / [cell.maxcharge]."
+ . += span_notice("Its display shows: [round(cell.charge)] / [cell.maxcharge].")
else
- . += "Its display is dark."
+ . += span_notice("Its display is dark.")
if(opened)
- . += "Its battery compartment is open."
+ . += span_notice("Its battery compartment is open.")
/obj/item/inducer/update_icon()
..()
diff --git a/code/game/objects/items/weapons/material/ashtray.dm b/code/game/objects/items/weapons/material/ashtray.dm
index 47d8dcc6dd..33c4c82e9e 100644
--- a/code/game/objects/items/weapons/material/ashtray.dm
+++ b/code/game/objects/items/weapons/material/ashtray.dm
@@ -84,7 +84,7 @@ var/global/list/ashtray_cache = list()
if (health > 0)
health = max(0,health - 3)
if (contents.len)
- src.visible_message("\The [src] slams into [hit_atom], spilling its contents!")
+ src.visible_message(span_danger("\The [src] slams into [hit_atom], spilling its contents!"))
for (var/obj/item/clothing/mask/smokable/cigarette/O in contents)
O.loc = src.loc
if (health < 1)
diff --git a/code/game/objects/items/weapons/material/chainsaw.dm b/code/game/objects/items/weapons/material/chainsaw.dm
index 787786136e..555e0e9271 100644
--- a/code/game/objects/items/weapons/material/chainsaw.dm
+++ b/code/game/objects/items/weapons/material/chainsaw.dm
@@ -87,16 +87,16 @@
else if(istype(A,/obj/machinery/portable_atmospherics/hydroponics))
var/obj/machinery/portable_atmospherics/hydroponics/Hyd = A
if(Hyd.seed && !Hyd.dead)
- to_chat(user, "You shred the plant.")
+ to_chat(user, span_notice("You shred the plant."))
Hyd.die()
if (istype(A, /obj/structure/reagent_dispensers/fueltank) && get_dist(src,A) <= 1)
- to_chat(user, "You begin filling the tank on the chainsaw.")
+ to_chat(user, span_notice("You begin filling the tank on the chainsaw."))
if(do_after(usr, 15))
A.reagents.trans_to_obj(src, max_fuel)
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
- to_chat(user, "Chainsaw succesfully refueled.")
+ to_chat(user, span_notice("Chainsaw succesfully refueled."))
else
- to_chat(user, "Don't move while you're refilling the chainsaw.")
+ to_chat(user, span_notice("Don't move while you're refilling the chainsaw."))
/obj/item/chainsaw/process()
if(!on) return
diff --git a/code/game/objects/items/weapons/material/gravemarker.dm b/code/game/objects/items/weapons/material/gravemarker.dm
index 16aa9b50db..9c5b04f526 100644
--- a/code/game/objects/items/weapons/material/gravemarker.dm
+++ b/code/game/objects/items/weapons/material/gravemarker.dm
@@ -62,17 +62,17 @@
return 0
if(locate(/obj/structure/gravemarker, user.loc))
- to_chat(user, "There's already something there.")
+ to_chat(user, span_warning("There's already something there."))
return 0
else
- to_chat(user, "You begin to place \the [src.name].")
+ to_chat(user, span_notice("You begin to place \the [src.name]."))
if(!do_after(usr, 10))
return 0
var/obj/structure/gravemarker/G = new /obj/structure/gravemarker/(user.loc, src.get_material())
- to_chat(user, "You place \the [src.name].")
+ to_chat(user, span_notice("You place \the [src.name]."))
G.grave_name = grave_name
G.epitaph = epitaph
G.add_fingerprint(usr)
G.dir = user.dir
QDEL_NULL(src)
- return
\ No newline at end of file
+ return
diff --git a/code/game/objects/items/weapons/material/kitchen.dm b/code/game/objects/items/weapons/material/kitchen.dm
index 83a9f82064..36b4060e32 100644
--- a/code/game/objects/items/weapons/material/kitchen.dm
+++ b/code/game/objects/items/weapons/material/kitchen.dm
@@ -133,7 +133,7 @@
if(food_inserted_micros)
food_inserted_micros -= M
M.forceMove(get_turf(src))
- to_chat(M, "You climb off of \the [src].")
+ to_chat(M, span_warning("You climb off of \the [src]."))
/obj/item/material/kitchen/utensil/fork
name = "fork"
@@ -184,7 +184,7 @@
/* From the time of Clowns. Commented out for posterity, and sanity.
/obj/item/material/knife/attack(target as mob, mob/living/user as mob)
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "You accidentally cut yourself with \the [src].")
+ to_chat(user, span_warning("You accidentally cut yourself with \the [src]."))
user.take_organ_damage(20)
return
return ..()
@@ -210,7 +210,7 @@
/obj/item/material/kitchen/rollingpin/attack(mob/living/M as mob, mob/living/user as mob)
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "\The [src] slips out of your hand and hits your head.")
+ to_chat(user, span_warning("\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 b0439b4eae..da316b626f 100644
--- a/code/game/objects/items/weapons/material/knives.dm
+++ b/code/game/objects/items/weapons/material/knives.dm
@@ -50,10 +50,10 @@
if(user)
if(active)
- to_chat(user, "You flip out \the [src].")
+ to_chat(user, span_notice("You flip out \the [src]."))
playsound(src, 'sound/weapons/flipblade.ogg', 15, 1)
else
- to_chat(user, "\The [src] can now be concealed.")
+ to_chat(user, span_notice("\The [src] can now be concealed."))
add_fingerprint(user)
/*
diff --git a/code/game/objects/items/weapons/material/material_armor.dm b/code/game/objects/items/weapons/material/material_armor.dm
index 942e952ec1..629ada89be 100644
--- a/code/game/objects/items/weapons/material/material_armor.dm
+++ b/code/game/objects/items/weapons/material/material_armor.dm
@@ -91,7 +91,7 @@ Protectiveness | Armor %
if(!material)
return
var/turf/T = get_turf(src)
- T.visible_message("\The [src] [material.destruction_desc]!")
+ T.visible_message(span_danger("\The [src] [material.destruction_desc]!"))
if(istype(loc, /mob/living))
var/mob/living/M = loc
M.drop_from_inventory(src)
@@ -108,11 +108,11 @@ Protectiveness | Armor %
return ..()
if(material.negation && prob(material.negation)) // Strange and Alien materials, or just really strong materials.
- user.visible_message("\The [src] completely absorbs [attack_text]!")
+ user.visible_message(span_danger("\The [src] completely absorbs [attack_text]!"))
return TRUE
if(material.spatial_instability && prob(material.spatial_instability))
- user.visible_message("\The [src] flashes [user] clear of [attack_text]!")
+ user.visible_message(span_danger("\The [src] flashes [user] clear of [attack_text]!"))
var/list/turfs = new/list()
for(var/turf/T in orange(round(material.spatial_instability / 10) + 1, user))
if(istype(T,/turf/space)) continue
@@ -144,7 +144,7 @@ Protectiveness | Armor %
if(!(def_zone in list(BP_TORSO, BP_GROIN)))
reflectchance /= 2
if(P.starting && prob(reflectchance))
- visible_message("\The [user]'s [src.name] reflects [attack_text]!")
+ visible_message(span_danger("\The [user]'s [src.name] reflects [attack_text]!"))
// Find a turf near or on the original location to bounce to
var/new_x = P.starting.x + pick(0, 0, 0, 0, 0, -1, 1, -2, 2)
@@ -296,23 +296,23 @@ Protectiveness | Armor %
if(istype(O, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/S = O
if(wired)
- to_chat(user, "This already has enough wires on it.")
+ to_chat(user, span_warning("This already has enough wires on it."))
return
if(S.use(20))
- to_chat(user, "You attach several wires to \the [src]. Now it needs another plate.")
+ to_chat(user, span_notice("You attach several wires to \the [src]. Now it needs another plate."))
wired = TRUE
icon_state = "[initial(icon_state)]_wired"
return
else
- to_chat(user, "You need more wire for that.")
+ to_chat(user, span_notice("You need more wire for that."))
return
if(istype(O, /obj/item/material/armor_plating))
var/obj/item/material/armor_plating/second_plate = O
if(!wired && !second_plate.wired)
- to_chat(user, "You need something to hold the two pieces of plating together.")
+ to_chat(user, span_warning("You need something to hold the two pieces of plating together."))
return
if(second_plate.material != src.material)
- to_chat(user, "Both plates need to be the same type of material.")
+ to_chat(user, span_warning("Both plates need to be the same type of material."))
return
user.drop_from_inventory(src)
user.drop_from_inventory(second_plate)
@@ -332,7 +332,7 @@ Protectiveness | Armor %
var /obj/item/weldingtool/S = O.get_welder()
if(S.remove_fuel(0,user))
if(!src || !S.isOn()) return
- to_chat(user, "You trim down the edges to size.")
+ to_chat(user, span_notice("You trim down the edges to size."))
user.drop_from_inventory(src)
var/obj/item/clothing/accessory/material/makeshift/light/new_armor = new(null, src.material.name)
user.put_in_hands(new_armor)
@@ -342,9 +342,9 @@ Protectiveness | Armor %
if(istype(O, /obj/item/material/armor_plating/insert))
var/obj/item/material/armor_plating/insert/second_plate = O
if(second_plate.material != src.material)
- to_chat(user, "Both plates need to be the same type of material.")
+ to_chat(user, span_warning("Both plates need to be the same type of material."))
return
- to_chat(user, "You bond the two plates together.")
+ to_chat(user, span_notice("You bond the two plates together."))
user.drop_from_inventory(src)
user.drop_from_inventory(second_plate)
var/obj/item/clothing/accessory/material/makeshift/heavy/new_armor = new(null, src.material.name)
@@ -354,7 +354,7 @@ Protectiveness | Armor %
return
if(istype(O, /obj/item/tool/wirecutters))
- to_chat(user, "You split the plate down the middle, and joint it at the elbow.")
+ to_chat(user, span_notice("You split the plate down the middle, and joint it at the elbow."))
user.drop_from_inventory(src)
var/obj/item/clothing/accessory/material/makeshift/armguards/new_armor = new(null, src.material.name)
user.put_in_hands(new_armor)
@@ -365,7 +365,7 @@ Protectiveness | Armor %
var/obj/item/stack/material/S = O
if(S.material == get_material_by_name("leather"))
if(S.use(2))
- to_chat(user, "You curve the plate inwards, and add a strap for adjustment.")
+ to_chat(user, span_notice("You curve the plate inwards, and add a strap for adjustment."))
user.drop_from_inventory(src)
var/obj/item/clothing/accessory/material/makeshift/legguards/new_armor = new(null, src.material.name)
user.put_in_hands(new_armor)
@@ -388,14 +388,14 @@ Protectiveness | Armor %
if(istype(O, /obj/item/stack/material))
var/obj/item/stack/material/S = O
if(S.use(2))
- to_chat(user, "You apply some [S.material.use_name] to \the [src]. Hopefully it'll make the makeshift helmet stronger.")
+ to_chat(user, span_notice("You apply some [S.material.use_name] to \the [src]. Hopefully it'll make the makeshift helmet stronger."))
var/obj/item/clothing/head/helmet/material/makeshift/helmet = new(null, S.material.name)
user.put_in_hands(helmet)
user.drop_from_inventory(src)
qdel(src)
return
else
- to_chat(user, "You don't have enough material to build a helmet!")
+ to_chat(user, span_warning("You don't have enough material to build a helmet!"))
else
..()
diff --git a/code/game/objects/items/weapons/material/material_weapons.dm b/code/game/objects/items/weapons/material/material_weapons.dm
index fb8990fadc..06fc508982 100644
--- a/code/game/objects/items/weapons/material/material_weapons.dm
+++ b/code/game/objects/items/weapons/material/material_weapons.dm
@@ -106,7 +106,7 @@
/obj/item/material/proc/shatter(var/consumed)
var/turf/T = get_turf(src)
- T.visible_message("\The [src] [material.destruction_desc]!")
+ T.visible_message(span_danger("\The [src] [material.destruction_desc]!"))
if(istype(loc, /mob/living))
var/mob/living/M = loc
M.drop_from_inventory(src)
@@ -116,7 +116,7 @@
/obj/item/material/proc/dull()
var/turf/T = get_turf(src)
- T.visible_message("\The [src] goes dull!")
+ T.visible_message(span_danger("\The [src] goes dull!"))
playsound(src, "shatter", 70, 1)
dulled = 1
if(is_sharp() || has_edge())
@@ -134,9 +134,9 @@
sharp = initial(sharp)
edge = initial(edge)
else
- to_chat(user, "[src] doesn't need repairs.")
+ to_chat(user, span_notice("[src] doesn't need repairs."))
else
- to_chat(user, "You can't repair \the [src].")
+ to_chat(user, span_warning("You can't repair \the [src]."))
return
/obj/item/material/proc/sharpen(var/material, var/sharpen_time, var/kit, mob/living/M)
diff --git a/code/game/objects/items/weapons/material/misc.dm b/code/game/objects/items/weapons/material/misc.dm
index 2ae6b20364..a5ed90fc51 100644
--- a/code/game/objects/items/weapons/material/misc.dm
+++ b/code/game/objects/items/weapons/material/misc.dm
@@ -138,17 +138,17 @@
if(istype(A, /atom/movable))
var/atom/movable/AM = A
if(AM.anchored)
- to_chat(user, "\The [AM] won't budge.")
+ to_chat(user, span_notice("\The [AM] won't budge."))
return
else
if(!istype(AM, /obj/item))
- user.visible_message("\The [AM] is pulled along by \the [src]!")
+ user.visible_message(span_warning("\The [AM] is pulled along by \the [src]!"))
AM.Move(get_step(AM, get_dir(AM, src)))
return
else
- user.visible_message("\The [AM] is snatched by \the [src]!")
+ user.visible_message(span_warning("\The [AM] is snatched by \the [src]!"))
AM.throw_at(user, reach, 0.1, user)
/obj/item/material/whip/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone)
@@ -156,19 +156,19 @@
switch(user.a_intent)
if(I_HURT)
if(prob(10) && istype(target, /mob/living/carbon/human) && (user.zone_sel in list(BP_L_LEG, BP_R_LEG, BP_L_FOOT, BP_R_FOOT, BP_L_ARM, BP_R_ARM, BP_L_HAND, BP_R_HAND)))
- to_chat(target, "\The [src] rips at your hands!")
+ to_chat(target, span_warning("\The [src] rips at your hands!"))
ranged_disarm(target)
if(I_DISARM)
if(prob(min(90, force * 3)) && istype(target, /mob/living/carbon/human) && (user.zone_sel in list(BP_L_LEG, BP_R_LEG, BP_L_FOOT, BP_R_FOOT, BP_L_ARM, BP_R_ARM, BP_L_HAND, BP_R_HAND)))
ranged_disarm(target)
else
- target.visible_message("\The [src] sends \the [target] stumbling away.")
+ target.visible_message(span_danger("\The [src] sends \the [target] stumbling away."))
target.Move(get_step(target,get_dir(user,target)))
if(I_GRAB)
var/turf/STurf = get_turf(target)
spawn(2)
playsound(STurf, 'sound/effects/snap.ogg', 60, 1)
- target.visible_message("\The [src] yanks \the [target] towards \the [user]!")
+ target.visible_message(span_critical("\The [src] yanks \the [target] towards \the [user]!"))
target.throw_at(get_turf(get_step(user,get_dir(user,target))), 2, 1, src)
..()
@@ -185,7 +185,7 @@
turfs += T
if(turfs.len)
var/turf/target = pick(turfs)
- visible_message("[H]'s [W] goes off due to \the [src]!")
+ visible_message(span_danger("[H]'s [W] goes off due to \the [src]!"))
return W.afterattack(target,H)
if(!(H.species.flags & NO_SLIP) && prob(10) && (user.zone_sel in list(BP_L_LEG, BP_R_LEG, BP_L_FOOT, BP_R_FOOT)))
@@ -193,9 +193,9 @@
H.apply_effect(3, WEAKEN, armor_check)
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
if(armor_check < 60)
- visible_message("\The [src] has tripped [H]!")
+ visible_message(span_danger("\The [src] has tripped [H]!"))
else
- visible_message("\The [src] attempted to trip [H]!")
+ visible_message(span_warning("\The [src] attempted to trip [H]!"))
return
else
@@ -207,12 +207,12 @@
for(var/obj/item/I in holding)
if(I && prob(holding[I]))
H.drop_from_inventory(I)
- visible_message("\The [src] has disarmed [H]!")
+ visible_message(span_danger("\The [src] has disarmed [H]!"))
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
return
/obj/item/material/whip/attack_self(mob/user)
- user.visible_message("\The [user] cracks \the [src]!")
+ user.visible_message(span_warning("\The [user] cracks \the [src]!"))
playsound(src, 'sound/effects/snap.ogg', 50, 1)
/obj/item/material/knife/machete/hatchet/stone
diff --git a/code/game/objects/items/weapons/material/shards.dm b/code/game/objects/items/weapons/material/shards.dm
index 86e5a27914..ecd8df8456 100644
--- a/code/game/objects/items/weapons/material/shards.dm
+++ b/code/game/objects/items/weapons/material/shards.dm
@@ -89,15 +89,15 @@
break
if(user.gloves && !protected_hands)
- to_chat(user, "\The [src] partially cuts into your hand through your gloves as you hit \the [target]!")
+ to_chat(user, span_warning("\The [src] partially cuts into your hand through your gloves as you hit \the [target]!"))
user.apply_damage(light_glove_d + will_break ? break_damage : 0, BRUTE, active_hand, 0, 0, src, src.sharp, src.edge) // Ternary to include break damage
else if(!user.gloves)
- to_chat(user, "\The [src] cuts into your hand as you hit \the [target]!")
+ to_chat(user, span_warning("\The [src] cuts into your hand as you hit \the [target]!"))
user.apply_damage(no_glove_d + will_break ? break_damage : 0, BRUTE, active_hand, 0, 0, src, src.sharp, src.edge)
if(will_break && src.loc == user) // If it's not in our hand anymore
- user.visible_message("[user] hit \the [target] with \the [src], shattering it!", "You shatter \the [src] in your hand!")
+ user.visible_message(span_danger("[user] hit \the [target] with \the [src], shattering it!"), span_warning("You shatter \the [src] in your hand!"))
playsound(src, pick('sound/effects/Glassbr1.ogg', 'sound/effects/Glassbr2.ogg', 'sound/effects/Glassbr3.ogg'), 30, 1)
qdel(src)
return
@@ -125,7 +125,7 @@
if(H.species.flags & NO_MINOR_CUT)
return
- to_chat(H, "You step on \the [src]!")
+ to_chat(H, span_danger("You step on \the [src]!"))
var/list/check = list("l_foot", "r_foot")
while(check.len)
diff --git a/code/game/objects/items/weapons/material/swords.dm b/code/game/objects/items/weapons/material/swords.dm
index 561295bf43..0a979d824c 100644
--- a/code/game/objects/items/weapons/material/swords.dm
+++ b/code/game/objects/items/weapons/material/swords.dm
@@ -14,7 +14,7 @@
/obj/item/material/sword/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(unique_parry_check(user, attacker, damage_source) && prob(50))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
@@ -72,7 +72,7 @@
/obj/item/material/sword/battleaxe/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(unique_parry_check(user, attacker, damage_source) && prob(10))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
diff --git a/code/game/objects/items/weapons/material/twohanded.dm b/code/game/objects/items/weapons/material/twohanded.dm
index a5fcd3be45..822e889f70 100644
--- a/code/game/objects/items/weapons/material/twohanded.dm
+++ b/code/game/objects/items/weapons/material/twohanded.dm
@@ -63,7 +63,7 @@
//Allow a small chance of parrying melee attacks when wielded - maybe generalize this to other weapons someday
/obj/item/material/twohanded/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(wielded && default_parry_check(user, attacker, damage_source) && prob(15))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
@@ -190,4 +190,4 @@
attack_verb = list("cropped","spanked","swatted","smacked","peppered")
/obj/item/material/twohanded/spear/flint
- default_material = MAT_FLINT
\ No newline at end of file
+ default_material = MAT_FLINT
diff --git a/code/game/objects/items/weapons/material/twohanded_vr.dm b/code/game/objects/items/weapons/material/twohanded_vr.dm
index c9195152e0..04a3777c6e 100644
--- a/code/game/objects/items/weapons/material/twohanded_vr.dm
+++ b/code/game/objects/items/weapons/material/twohanded_vr.dm
@@ -29,7 +29,7 @@
/obj/item/material/twohanded/saber/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if (src.wielded == 1)
if(unique_parry_check(user, attacker, damage_source) && prob(50))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
@@ -69,7 +69,7 @@
else
parry_chance = base_parry_chance
if(unique_parry_check(user, attacker, damage_source) && prob(parry_chance))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
@@ -78,4 +78,4 @@
. = ..()
if(src.wielded == 1 && user.a_intent == I_DISARM && prob(stun_chance))
target.Weaken(stun_duration)
- user.visible_message("\The [user] trips [target] with \the [src]!")
+ user.visible_message(span_danger("\The [user] trips [target] with \the [src]!"))
diff --git a/code/game/objects/items/weapons/melee/deflect.dm b/code/game/objects/items/weapons/melee/deflect.dm
index 7f1759b381..3c1ba4c823 100644
--- a/code/game/objects/items/weapons/melee/deflect.dm
+++ b/code/game/objects/items/weapons/melee/deflect.dm
@@ -10,10 +10,10 @@
if(.)
return .
if(default_parry_check(user, attacker, damage_source) && prob(defend_chance))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
return 1
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
- user.visible_message("\The [user] deflects [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] deflects [attack_text] with \the [src]!"))
return 1
return 0
diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm
index 5bcdff27c6..cd6478d6ff 100644
--- a/code/game/objects/items/weapons/melee/energy.dm
+++ b/code/game/objects/items/weapons/melee/energy.dm
@@ -92,21 +92,21 @@
. = ..()
if(use_cell && Adjacent(user))
if(bcell)
- . += "The blade is [round(bcell.percent())]% charged."
+ . += span_notice("The blade is [round(bcell.percent())]% charged.")
else
- . += "The blade does not have a power source installed."
+ . += span_warning("The blade does not have a power source installed.")
/obj/item/melee/energy/attack_self(mob/living/user as mob)
if(use_cell)
if((!bcell || bcell.charge < hitcost) && !active)
- to_chat(user, "\The [src] does not seem to have power.")
+ to_chat(user, span_notice("\The [src] does not seem to have power."))
return
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
if (active)
if ((CLUMSY in user.mutations) && prob(50))
- user.visible_message("\The [user] accidentally cuts [TU.himself] with \the [src].",\
- "You accidentally cut yourself with \the [src].")
+ user.visible_message(span_danger("\The [user] accidentally cuts [TU.himself] with \the [src]."),\
+ span_danger("You accidentally cut yourself with \the [src]."))
user.take_organ_damage(5,5)
deactivate(user)
else
@@ -124,7 +124,7 @@
if(active && use_cell)
if(!use_charge(hitcost))
deactivate(user)
- visible_message("\The [src]'s blade flickers, before deactivating.")
+ visible_message(span_notice("\The [src]'s blade flickers, before deactivating."))
return ..()
/obj/item/melee/energy/attackby(obj/item/W, mob/user)
@@ -133,7 +133,7 @@
rainbow = TRUE
else
rainbow = FALSE
- to_chat(user, "You manipulate the color controller in [src].")
+ to_chat(user, span_notice("You manipulate the color controller in [src]."))
update_icon()
if(use_cell)
if(istype(W, cell_type))
@@ -141,15 +141,15 @@
user.drop_item()
W.loc = src
bcell = W
- to_chat(user, "You install a cell in [src].")
+ to_chat(user, span_notice("You install a cell in [src]."))
update_icon()
else
- to_chat(user, "[src] already has a cell.")
+ to_chat(user, span_notice("[src] already has a cell."))
else if(W.has_tool_quality(TOOL_SCREWDRIVER) && bcell)
bcell.update_icon()
bcell.forceMove(get_turf(loc))
bcell = null
- to_chat(user, "You remove the cell from \the [src].")
+ to_chat(user, span_notice("You remove the cell from \the [src]."))
deactivate()
update_icon()
return
@@ -184,7 +184,7 @@
if(!in_range(src, user)) //Basic checks to prevent abuse
return
if(user.incapacitated() || !istype(user))
- to_chat(user, "You can't do that right now!")
+ to_chat(user, span_warning("You can't do that right now!"))
return
if(tgui_alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", list("Yes", "No")) == "Yes")
@@ -196,7 +196,7 @@
/obj/item/melee/energy/examine(mob/user)
. = ..()
if(colorable)
- . += "Alt-click to recolor it."
+ . += span_notice("Alt-click to recolor it.")
/*
* Energy Axe
@@ -230,12 +230,12 @@
/obj/item/melee/energy/axe/activate(mob/living/user)
..()
damtype = SEARING
- to_chat(user, "\The [src] is now energised.")
+ to_chat(user, span_notice("\The [src] is now energised."))
/obj/item/melee/energy/axe/deactivate(mob/living/user)
..()
damtype = BRUTE
- to_chat(user, "\The [src] is de-energised. It's just a regular axe now.")
+ to_chat(user, span_notice("\The [src] is de-energised. It's just a regular axe now."))
/obj/item/melee/energy/axe/charge
name = "charge axe"
@@ -287,7 +287,7 @@
/obj/item/melee/energy/sword/activate(mob/living/user)
if(!active)
- to_chat(user, "\The [src] is now energised.")
+ to_chat(user, span_notice("\The [src] is now energised."))
..()
attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
@@ -295,13 +295,13 @@
/obj/item/melee/energy/sword/deactivate(mob/living/user)
if(active)
- to_chat(user, "\The [src] deactivates!")
+ to_chat(user, span_notice("\The [src] deactivates!"))
..()
attack_verb = list()
/obj/item/melee/energy/sword/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(active && default_parry_check(user, attacker, damage_source) && prob(60))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, user.loc)
@@ -309,7 +309,7 @@
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
return 1
if(active && unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
- user.visible_message("\The [user] deflects [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] deflects [attack_text] with \the [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, user.loc)
@@ -473,7 +473,7 @@
/obj/item/melee/energy/blade/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(default_parry_check(user, attacker, damage_source) && prob(60))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, user.loc)
@@ -481,7 +481,7 @@
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
return 1
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
- user.visible_message("\The [user] deflects [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] deflects [attack_text] with \the [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, user.loc)
@@ -528,20 +528,20 @@
/obj/item/melee/energy/spear/activate(mob/living/user)
if(!active)
- to_chat(user, "\The [src] is now energised.")
+ to_chat(user, span_notice("\The [src] is now energised."))
..()
attack_verb = list("jabbed", "stabbed", "impaled")
/obj/item/melee/energy/spear/deactivate(mob/living/user)
if(active)
- to_chat(user, "\The [src] deactivates!")
+ to_chat(user, span_notice("\The [src] deactivates!"))
..()
attack_verb = list("whacked", "beat", "slapped", "thonked")
/obj/item/melee/energy/spear/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(active && default_parry_check(user, attacker, damage_source) && prob(50))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, user.loc)
spark_system.start()
diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm
index fda34b5067..092885ab37 100644
--- a/code/game/objects/items/weapons/melee/misc.dm
+++ b/code/game/objects/items/weapons/melee/misc.dm
@@ -78,7 +78,7 @@
/obj/item/melee/cursedblade/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
if(default_parry_check(user, attacker, damage_source) && prob(50))
- user.visible_message("\The [user] parries [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1)
return 1
return 0
diff --git a/code/game/objects/items/weapons/melee/shock_maul.dm b/code/game/objects/items/weapons/melee/shock_maul.dm
index f9ec4df819..b5df24d40c 100644
--- a/code/game/objects/items/weapons/melee/shock_maul.dm
+++ b/code/game/objects/items/weapons/melee/shock_maul.dm
@@ -150,7 +150,7 @@
..()
if(status)
status = 0
- visible_message("\The [src]'s grip safety engages!")
+ visible_message(span_warning("\The [src]'s grip safety engages!"))
update_held_icon()
/obj/item/melee/shock_maul/examine(mob/user)
@@ -158,9 +158,9 @@
if(Adjacent(user))
if(bcell)
- . += "The concussion maul is [round(bcell.percent())]% charged."
+ . += span_notice("The concussion maul is [round(bcell.percent())]% charged.")
if(!bcell)
- . += "The concussion maul does not have a power source installed."
+ . += span_warning("The concussion maul does not have a power source installed.")
/obj/item/melee/shock_maul/attackby(obj/item/W, mob/user)
if(!user.IsAdvancedToolUser())
@@ -171,12 +171,12 @@
user.drop_item()
W.loc = src
bcell = W
- to_chat(user, "You install a cell in \the [src].")
+ to_chat(user, span_notice("You install a cell in \the [src]."))
update_held_icon()
else
- to_chat(user, "\The [src] already has a cell.")
+ to_chat(user, span_notice("\The [src] already has a cell."))
else
- to_chat(user, "This cell is not fitted for [src].")
+ to_chat(user, span_notice("This cell is not fitted for [src]."))
/obj/item/melee/shock_maul/attack_hand(mob/user as mob)
if(user.get_inactive_hand() == src)
@@ -186,7 +186,7 @@
bcell.update_icon()
user.put_in_hands(bcell)
bcell = null
- to_chat(user, "You remove the cell from the [src].")
+ to_chat(user, span_notice("You remove the cell from the [src]."))
status = 0
update_held_icon()
return
@@ -200,18 +200,18 @@
if(!status && bcell && bcell.charge >= hitcost)
if(do_after(user, 2 SECONDS))
status = 1
- user.visible_message("[user] charges \the [src]!","You charge \the [src]. It's hammer time!")
+ user.visible_message(span_warning("[user] charges \the [src]!"),span_warning("You charge \the [src]. It's hammer time!"))
playsound(src, "sparks", 75, 1, -1)
update_held_icon()
else if(status)
status = 0
- user.visible_message("[user] safely disengages \the [src]'s power field.","\The [src] is now off.")
+ user.visible_message(span_notice("[user] safely disengages \the [src]'s power field."),span_notice("\The [src] is now off."))
update_held_icon()
playsound(src, "sparks", 75, 1, -1)
if(!bcell)
- to_chat(user, "\The [src] does not have a power source!")
+ to_chat(user, span_warning("\The [src] does not have a power source!"))
else
- to_chat(user, "\The [src] is out of charge.")
+ to_chat(user, span_warning("\The [src] is out of charge."))
add_fingerprint(user)
/obj/item/melee/shock_maul/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
@@ -220,12 +220,12 @@
if(A && wielded && status)
deductcharge()
status = 0
- user.visible_message("\The [src] discharges with a thunderous, hair-raising crackle!")
+ user.visible_message(span_warning("\The [src] discharges with a thunderous, hair-raising crackle!"))
playsound(src, 'sound/weapons/resonator_blast.ogg', 100, 1, -1)
update_held_icon()
if(istype(A,/obj/structure/window))
var/obj/structure/window/W = A
- visible_message("\The [W] crumples under the force of the impact!")
+ visible_message(span_warning("\The [W] crumples under the force of the impact!"))
W.shatter()
else if(istype(A,/obj/structure/barricade))
var/obj/structure/barricade/B = A
@@ -249,7 +249,7 @@
deductcharge()
status = 0
- user.visible_message("\The [src] discharges with a thunderous, hair-raising crackle!")
+ user.visible_message(span_warning("\The [src] discharges with a thunderous, hair-raising crackle!"))
playsound(src, 'sound/weapons/resonator_blast.ogg', 100, 1, -1)
update_held_icon()
powercheck(hitcost)
@@ -259,7 +259,7 @@
bcell.emp_act(severity) //let's not duplicate code everywhere if we don't have to please.
if(status)
status = 0
- visible_message("\The [src]'s power field hisses and sputters out.")
+ visible_message(span_warning("\The [src]'s power field hisses and sputters out."))
update_held_icon()
..()
@@ -273,4 +273,4 @@
results += ..()
- return results
\ No newline at end of file
+ return results
diff --git a/code/game/objects/items/weapons/mop.dm b/code/game/objects/items/weapons/mop.dm
index 00a33428f7..96cfdb01ef 100644
--- a/code/game/objects/items/weapons/mop.dm
+++ b/code/game/objects/items/weapons/mop.dm
@@ -26,16 +26,16 @@ GLOBAL_LIST_BOILERPLATE(all_mops, /obj/item/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)
- to_chat(user, "Your mop is dry!")
+ to_chat(user, span_notice("Your mop is dry!"))
return
- user.visible_message("[user] begins to clean \the [get_turf(A)].")
+ user.visible_message(span_warning("[user] begins to clean \the [get_turf(A)]."))
if(do_after(user, 40))
var/turf/T = get_turf(A)
if(T)
T.clean(src, user)
- to_chat(user, "You have finished mopping!")
+ to_chat(user, span_notice("You have finished mopping!"))
/obj/effect/attackby(obj/item/I, mob/user)
@@ -67,13 +67,13 @@ GLOBAL_LIST_BOILERPLATE(all_mops, /obj/item/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)
- to_chat(user, "Your mop is dry!")
+ to_chat(user, span_notice("Your mop is dry!"))
return
- user.visible_message("[user] begins to clean \the [get_turf(A)].")
+ user.visible_message(span_warning("[user] begins to clean \the [get_turf(A)]."))
if(do_after(user, 20))
var/turf/T = get_turf(A)
if(T)
T.clean(src, user)
- to_chat(user, "You have finished mopping!")
\ No newline at end of file
+ to_chat(user, span_notice("You have finished mopping!"))
diff --git a/code/game/objects/items/weapons/mop_deploy.dm b/code/game/objects/items/weapons/mop_deploy.dm
index a5cd0036b6..182f4971dc 100644
--- a/code/game/objects/items/weapons/mop_deploy.dm
+++ b/code/game/objects/items/weapons/mop_deploy.dm
@@ -35,13 +35,13 @@
/obj/item/mop_deploy/afterattack(atom/A, mob/user, proximity)
if(!proximity) return
if(istype(A, /turf) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune))
- user.visible_message("[user] begins to clean \the [get_turf(A)].")
+ user.visible_message(span_warning("[user] begins to clean \the [get_turf(A)]."))
if(do_after(user, 40))
var/turf/T = get_turf(A)
if(T)
T.clean_deploy(src)
- to_chat(user, "You have finished mopping!")
+ to_chat(user, span_notice("You have finished mopping!"))
/obj/effect/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/mop_deploy) || istype(I, /obj/item/soap))
@@ -72,4 +72,4 @@
host.pinned -= src
host.embedded -= src
host.drop_from_inventory(src)
- spawn(1) if(!QDELETED(src)) qdel(src)
\ No newline at end of file
+ spawn(1) if(!QDELETED(src)) qdel(src)
diff --git a/code/game/objects/items/weapons/paint.dm b/code/game/objects/items/weapons/paint.dm
index 8433402161..628b0f3694 100644
--- a/code/game/objects/items/weapons/paint.dm
+++ b/code/game/objects/items/weapons/paint.dm
@@ -21,7 +21,7 @@ var/global/list/cached_icons = list()
/obj/item/reagent_containers/glass/paint/afterattack(turf/simulated/target, mob/user, proximity)
if(!proximity) return
if(istype(target) && reagents.total_volume > 5)
- user.visible_message("\The [target] has been splashed with something by [user]!")
+ user.visible_message(span_warning("\The [target] has been splashed with something by [user]!"))
reagents.trans_to_turf(target, 5)
else
return ..()
@@ -75,4 +75,3 @@ var/global/list/cached_icons = list()
name = "paint remover bucket"
icon_state = "paint_white"
paint_type = "#FFFFFF"
-
diff --git a/code/game/objects/items/weapons/paiwire.dm b/code/game/objects/items/weapons/paiwire.dm
index 72881bc1d6..05b526cf1f 100644
--- a/code/game/objects/items/weapons/paiwire.dm
+++ b/code/game/objects/items/weapons/paiwire.dm
@@ -4,7 +4,7 @@
if(istype(M, /obj/machinery/door/airlock))
var/obj/machinery/door/airlock/A = M
if(A.secured_wires)
- to_chat(user,"\The [M] doesn't have any acessible data ports for \the [src]!")
+ to_chat(user,span_warning("\The [M] doesn't have any acessible data ports for \the [src]!"))
return
//VOREStation Add End
user.visible_message("[user] inserts [src] into a data port on [M].", "You insert [src] into a data port on [M].", "You hear the satisfying click of a wire jack fastening into place.")
diff --git a/code/game/objects/items/weapons/policetape.dm b/code/game/objects/items/weapons/policetape.dm
index 3754106760..ff7b682e2d 100644
--- a/code/game/objects/items/weapons/policetape.dm
+++ b/code/game/objects/items/weapons/policetape.dm
@@ -140,14 +140,14 @@ var/list/tape_roll_applications = list()
/obj/item/taperoll/attack_self(mob/user as mob)
if(!start)
start = get_turf(src)
- to_chat(user, "You place the first end of \the [src].")
+ to_chat(user, span_notice("You place the first end of \the [src]."))
update_icon()
else
end = get_turf(src)
if(start.y != end.y && start.x != end.x || start.z != end.z)
start = null
update_icon()
- to_chat(user, "\The [src] can only be laid horizontally or vertically.")
+ to_chat(user, span_notice("\The [src] can only be laid horizontally or vertically."))
return
if(start == end)
@@ -168,7 +168,7 @@ var/list/tape_roll_applications = list()
if(!possible_dirs)
start = null
update_icon()
- to_chat(user, "You can't place \the [src] here.")
+ to_chat(user, span_notice("You can't place \the [src] here."))
return
if(possible_dirs & (NORTH|SOUTH))
var/obj/item/tape/TP = new tape_type(start)
@@ -184,7 +184,7 @@ var/list/tape_roll_applications = list()
TP.update_icon()
start = null
update_icon()
- to_chat(user, "You finish placing \the [src].")
+ to_chat(user, span_notice("You finish placing \the [src]."))
return
var/turf/cur = start
@@ -233,7 +233,7 @@ var/list/tape_roll_applications = list()
if (!can_place)
start = null
update_icon()
- to_chat(user, "You can't run \the [src] through that!")
+ to_chat(user, span_warning("You can't run \the [src] through that!"))
return
cur = start
@@ -277,7 +277,7 @@ var/list/tape_roll_applications = list()
cur = get_step_towards(cur,end)
start = null
update_icon()
- to_chat(user, "You finish placing \the [src].")
+ to_chat(user, span_notice("You finish placing \the [src]."))
return
/obj/item/taperoll/afterattack(var/atom/A, mob/user as mob, proximity)
@@ -292,7 +292,7 @@ var/list/tape_roll_applications = list()
var/obj/item/tape/P = new tape_type(T)
P.update_icon()
P.layer = WINDOW_LAYER
- to_chat(user, "You finish placing \the [src].")
+ to_chat(user, span_notice("You finish placing \the [src]."))
if (istype(A, /turf/simulated/floor) ||istype(A, /turf/unsimulated/floor))
var/turf/F = A
@@ -375,9 +375,9 @@ var/list/tape_roll_applications = list()
/obj/item/tape/proc/breaktape(mob/user)
if(user.a_intent == I_HELP)
- to_chat(user, "You refrain from breaking \the [src].")
+ to_chat(user, span_warning("You refrain from breaking \the [src]."))
return
- user.visible_message("\The [user] breaks \the [src]!","You break \the [src].")
+ user.visible_message("\The [user] breaks \the [src]!",span_notice("You break \the [src]."))
for (var/obj/item/tape/T in gettapeline())
if(T == src)
diff --git a/code/game/objects/items/weapons/scrolls.dm b/code/game/objects/items/weapons/scrolls.dm
index a8eaecae19..f14bf247c3 100644
--- a/code/game/objects/items/weapons/scrolls.dm
+++ b/code/game/objects/items/weapons/scrolls.dm
@@ -16,7 +16,7 @@
/obj/item/teleportation_scroll/attack_self(mob/user as mob)
if((user.mind && !wizards.is_antagonist(user.mind)))
- to_chat(usr, "You stare at the scroll but cannot make sense of the markings!")
+ to_chat(usr, span_warning("You stare at the scroll but cannot make sense of the markings!"))
return
user.set_machine(src)
diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm
index 4863f90515..80da3eb459 100644
--- a/code/game/objects/items/weapons/shields.dm
+++ b/code/game/objects/items/weapons/shields.dm
@@ -49,7 +49,7 @@
var/bad_arc = reverse_direction(user.dir) //arc of directions from which we cannot block
if(check_shield_arc(user, bad_arc, damage_source, attacker))
if(prob(get_block_chance(user, damage, damage_source, attacker)))
- user.visible_message("\The [user] blocks [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] blocks [attack_text] with \the [src]!"))
return 1
return 0
@@ -88,12 +88,12 @@
//If we're at this point, the bullet/beam is going to go through the shield, however it will hit for less damage.
//Bullets get slowed down, while beams are diffused as they hit the shield, so these shields are not /completely/
//useless. Extremely penetrating projectiles will go through the shield without less damage.
- user.visible_message("\The [user]'s [src.name] is pierced by [attack_text]!")
+ user.visible_message(span_danger("\The [user]'s [src.name] is pierced by [attack_text]!"))
if(P.armor_penetration < 30) //PTR bullets and x-rays will bypass this entirely.
P.damage = P.damage / 2
return 0
//Otherwise, if we're here, we're gonna stop the attack entirely.
- user.visible_message("\The [user] blocks [attack_text] with \the [src]!")
+ user.visible_message(span_danger("\The [user] blocks [attack_text] with \the [src]!"))
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
return 1
return 0
@@ -101,7 +101,7 @@
/obj/item/shield/riot/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W, /obj/item/melee/baton))
if(cooldown < world.time - 25)
- user.visible_message("[user] bashes [src] with [W]!")
+ user.visible_message(span_warning("[user] bashes [src] with [W]!"))
playsound(src, 'sound/effects/shieldbash.ogg', 50, 1)
cooldown = world.time
else
@@ -155,7 +155,7 @@
/obj/item/shield/energy/attack_self(mob/living/user as mob)
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "You beat yourself in the head with [src].")
+ to_chat(user, span_warning("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(src, 'sound/weapons/saberon.ogg', 50, 1)
- to_chat(user, "\The [src] is now active.")
+ to_chat(user, span_notice("\The [src] is now active."))
else
force = 3
@@ -172,7 +172,7 @@
w_class = ITEMSIZE_TINY
slot_flags = SLOT_EARS
playsound(src, 'sound/weapons/saberoff.ogg', 50, 1)
- to_chat(user, "\The [src] can now be concealed.")
+ to_chat(user, span_notice("\The [src] can now be concealed."))
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
@@ -206,7 +206,7 @@
if(!in_range(src, user)) //Basic checks to prevent abuse
return
if(user.incapacitated() || !istype(user))
- to_chat(user, "You can't do that right now!")
+ to_chat(user, span_warning("You can't do that right now!"))
return
if(tgui_alert(usr, "Are you sure you want to recolor your shield?", "Confirm Recolor", list("Yes", "No")) == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
@@ -216,7 +216,7 @@
/obj/item/shield/energy/examine(mob/user)
. = ..()
- . += "Alt-click to recolor it."
+ . += span_notice("Alt-click to recolor it.")
/obj/item/shield/riot/tele
name = "telescopic shield"
@@ -248,14 +248,14 @@
throw_speed = 2
w_class = ITEMSIZE_LARGE
slot_flags = SLOT_BACK
- to_chat(user, "You extend \the [src].")
+ to_chat(user, span_notice("You extend \the [src]."))
else
force = 3
throwforce = 3
throw_speed = 3
w_class = ITEMSIZE_NORMAL
slot_flags = null
- to_chat(user, "[src] can now be concealed.")
+ to_chat(user, span_notice("[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/shields_vr.dm b/code/game/objects/items/weapons/shields_vr.dm
index cc11223326..2b3eeac278 100644
--- a/code/game/objects/items/weapons/shields_vr.dm
+++ b/code/game/objects/items/weapons/shields_vr.dm
@@ -81,7 +81,7 @@
/obj/item/shield/riot/explorer/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W, /obj/item/material/knife/machete))
if(cooldown < world.time - 25)
- user.visible_message("[user] bashes [src] with [W]!")
+ user.visible_message(span_warning("[user] bashes [src] with [W]!"))
playsound(src, 'sound/effects/shieldbash.ogg', 50, 1)
cooldown = world.time
else
diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm
index f3c641ad6f..82fa30d7d3 100644
--- a/code/game/objects/items/weapons/storage/backpack.dm
+++ b/code/game/objects/items/weapons/storage/backpack.dm
@@ -49,13 +49,13 @@
name = "dufflebag of holding"
var/tilted = 0
icon_state = "holdingduffle"
-
+
/obj/item/storage/backpack/holding/duffle/Initialize()
. = ..()
if(prob(50))
icon_state = "[icon_state]_tilted"
tilted = 1
-
+
/obj/item/storage/backpack/holding/duffle/verb/tilt()
set name = "Adjust Duffelbag Angle"
set desc = "Adjust the angle of your dufflebag for cosmetic effect"
@@ -76,7 +76,7 @@
/obj/item/storage/backpack/holding/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W, /obj/item/storage/backpack/holding))
- to_chat(user, "The Bluespace interfaces of the two devices conflict and malfunction.")
+ to_chat(user, span_warning("The Bluespace interfaces of the two devices conflict and malfunction."))
qdel(W)
return
. = ..()
@@ -175,13 +175,13 @@
var/tilted = 0
var/can_tilt = 1
max_storage_space = INVENTORY_DUFFLEBAG_SPACE
-
+
/obj/item/storage/backpack/dufflebag/Initialize()
. = ..()
if(prob(50))
icon_state = "[icon_state]_tilted"
tilted = 1
-
+
/obj/item/storage/backpack/dufflebag/verb/tilt()
set name = "Adjust Duffelbag Angle"
set desc = "Adjust the angle of your dufflebag for cosmetic effect"
@@ -514,34 +514,34 @@
if(H.stat)
return
if(H.back == src)
- to_chat(H, "How do you expect to work on \the [src] while it's on your back?")
+ to_chat(H, span_warning("How do you expect to work on \the [src] while it's on your back?"))
return
if(!parachute) //This packs the parachute
H.visible_message("\The [H] starts to pack \the [src]!", \
- "You start to pack \the [src]!", \
+ span_notice("You start to pack \the [src]!"), \
"You hear the shuffling of cloth.")
if(do_after(H, 50))
H.visible_message("\The [H] finishes packing \the [src]!", \
- "You finish packing \the [src]!", \
+ span_notice("You finish packing \the [src]!"), \
"You hear the shuffling of cloth.")
parachute = TRUE
else
H.visible_message("\The [src] gives up on packing \the [src]!", \
- "You give up on packing \the [src]!")
+ span_notice("You give up on packing \the [src]!"))
return
else //This unpacks the parachute
H.visible_message("\The [src] starts to unpack \the [src]!", \
- "You start to unpack \the [src]!", \
+ span_notice("You start to unpack \the [src]!"), \
"You hear the shuffling of cloth.")
if(do_after(H, 25))
H.visible_message("\The [src] finishes unpacking \the [src]!", \
- "You finish unpacking \the [src]!", \
+ span_notice("You finish unpacking \the [src]!"), \
"You hear the shuffling of cloth.")
parachute = FALSE
else
H.visible_message("\The [src] decides not to unpack \the [src]!", \
- "You decide not to unpack \the [src]!")
+ span_notice("You decide not to unpack \the [src]!"))
return
/obj/item/storage/backpack/satchel/ranger
@@ -549,4 +549,4 @@
desc = "A satchel designed for the Go Go ERT Rangers series to allow for slightly bigger carry capacity for the ERT-Rangers.\
Unlike the show claims, it is not a phoron-enhanced satchel of holding with plot-relevant content."
icon = 'icons/obj/clothing/ranger.dmi'
- icon_state = "ranger_satchel"
\ No newline at end of file
+ icon_state = "ranger_satchel"
diff --git a/code/game/objects/items/weapons/storage/backpack_vr.dm b/code/game/objects/items/weapons/storage/backpack_vr.dm
index fba3e65d0f..9b089e106e 100644
--- a/code/game/objects/items/weapons/storage/backpack_vr.dm
+++ b/code/game/objects/items/weapons/storage/backpack_vr.dm
@@ -15,7 +15,7 @@
if(istype(H) && istype(H.tail_style, taurtype))
return 1
else
- to_chat(H, "[no_message]")
+ to_chat(H, span_warning("[no_message]"))
return 0
/* If anyone wants to make some... this is how you would.
@@ -201,4 +201,3 @@
icon_override = 'icons/inventory/back/mob_vr.dmi'
icon_state = "satchel_strapless"
item_state_slots = null
-
diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm
index a388372e89..9a01c892be 100644
--- a/code/game/objects/items/weapons/storage/bags.dm
+++ b/code/game/objects/items/weapons/storage/bags.dm
@@ -138,7 +138,7 @@
/obj/item/storage/bag/ore/attackby(obj/item/W as obj, mob/user as mob)
if(current_capacity >= max_storage_space)
- to_chat(user, "\the [src] is too full to possibly fit anything else inside of it.")
+ to_chat(user, span_notice("\the [src] is too full to possibly fit anything else inside of it."))
return
if (istype(W, /obj/item/ore))
@@ -186,13 +186,13 @@
success = 1
if(!silent) //Let's do a single check and then do more instead of a bunch at once.
if(success && !failure && !max_pickup_reached) //Picked stuff up, did not reach capacity, did not reach max_pickup.
- to_chat(user, "You put everything in [src].")
+ to_chat(user, span_notice("You put everything in [src]."))
else if(success && failure) //Picked stuff up to capacity.
- to_chat(user, "You fill the [src].")
+ to_chat(user, span_notice("You fill the [src]."))
else if(success && max_pickup_reached) //Picked stuff up to the max_pickup
- to_chat(user, "You fill the [src] with as much as you can grab in one go.")
+ to_chat(user, span_notice("You fill the [src] with as much as you can grab in one go."))
else //Failed. The bag is full.
- to_chat(user, "You fail to pick anything up with \the [src].")
+ to_chat(user, span_notice("You fail to pick anything up with \the [src]."))
if(istype(user.pulling, /obj/structure/ore_box)) //Bit of a crappy way to do this, as it doubles spam for the user, but it works. //Then let me fix it. ~CL.
var/obj/structure/ore_box/OB = user.pulling
for(var/ore in stored_ore)
@@ -236,11 +236,11 @@
if(istype(user, /mob/living))
add_fingerprint(user)
- . += "It holds:"
+ . += span_notice("It holds:")
var/has_ore = 0
for(var/ore in stored_ore)
if(stored_ore[ore] > 0)
- . += "- [stored_ore[ore]] [ore]"
+ . += span_notice("- [stored_ore[ore]] [ore]")
has_ore = 1
if(!has_ore)
. += "Nothing."
@@ -295,7 +295,7 @@
current += S.get_amount()
if(capacity == current)//If it's full, you're done
if(!stop_messages)
- to_chat(usr, "The snatcher is full.")
+ to_chat(usr, span_warning("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 63ab48a932..4412b8af01 100644
--- a/code/game/objects/items/weapons/storage/belt.dm
+++ b/code/game/objects/items/weapons/storage/belt.dm
@@ -20,7 +20,7 @@
set category = "Object"
if(show_above_suit == -1)
- to_chat(usr, "\The [src] cannot be worn above your suit!")
+ to_chat(usr, span_notice("\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 fd5d3dab18..80cfb13338 100644
--- a/code/game/objects/items/weapons/storage/bible.dm
+++ b/code/game/objects/items/weapons/storage/bible.dm
@@ -65,7 +65,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list(
name = user.mind.my_religion.bible_name
icon_state = user.mind.my_religion.bible_icon_state
item_state = user.mind.my_religion.bible_item_state
- to_chat(user, "You invoke [user.mind.my_religion.deity] and prepare a copy of [src].")
+ to_chat(user, span_notice("You invoke [user.mind.my_religion.deity] and prepare a copy of [src]."))
/**
* Checks if we are allowed to interact with a radial menu
@@ -104,7 +104,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list(
if(!proximity) return
if(user.mind && (user.mind.assigned_role == JOB_CHAPLAIN))
if(A.reagents && A.reagents.has_reagent("water")) //blesses all the water in the holder
- to_chat(user, "You bless [A].")
+ to_chat(user, span_notice("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 3cf925ae02..aff573cd16 100644
--- a/code/game/objects/items/weapons/storage/boxes.dm
+++ b/code/game/objects/items/weapons/storage/boxes.dm
@@ -52,7 +52,7 @@
if (!found) // User is too far away
return
// Now make the cardboard
- to_chat(user, "You fold [src] flat.")
+ to_chat(user, span_notice("You fold [src] flat."))
playsound(src, 'sound/items/storage/boxfold.ogg', 30, 1)
new foldable(get_turf(src))
qdel(src)
@@ -369,7 +369,7 @@
if(istype(W) && !W.lit && !W.burnt)
if(prob(25))
W.light(user)
- user.visible_message("[user] manages to light the match on the matchbox.")
+ user.visible_message(span_notice("[user] manages to light the match on the matchbox."))
else
playsound(src, 'sound/items/cigs_lighters/matchstick_hit.ogg', 25, 0, -1)
W.update_icon()
diff --git a/code/game/objects/items/weapons/storage/egg_vr.dm b/code/game/objects/items/weapons/storage/egg_vr.dm
index 31992530ba..1669121be7 100644
--- a/code/game/objects/items/weapons/storage/egg_vr.dm
+++ b/code/game/objects/items/weapons/storage/egg_vr.dm
@@ -27,7 +27,7 @@
..()
/obj/item/storage/vore_egg/proc/hatch(mob/living/user as mob)
- visible_message("\The [src] begins to shake as something pushes out from within!")
+ visible_message(span_danger("\The [src] begins to shake as something pushes out from within!"))
animate_shake()
if(do_after(user, 50))
if(use_sound)
diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm
index 259f0c111a..f7056d0a63 100644
--- a/code/game/objects/items/weapons/storage/fancy.dm
+++ b/code/game/objects/items/weapons/storage/fancy.dm
@@ -312,7 +312,7 @@
var/obj/item/clothing/mask/smokable/cigarette/cig = locate() in src
if(cig == null)
- to_chat(user, "Looks like the packet is out of cigarettes.")
+ to_chat(user, span_notice("Looks like the packet is out of cigarettes."))
return
// Instead of running equip_to_slot_if_possible() we check here first,
@@ -326,7 +326,7 @@
user.equip_to_slot(cig, slot_wear_mask)
reagents.maximum_volume = 15 * contents.len
- to_chat(user, "You take a cigarette out of the pack.")
+ to_chat(user, span_notice("You take a cigarette out of the pack."))
update_icon()
else
..()
diff --git a/code/game/objects/items/weapons/storage/firstaid.dm b/code/game/objects/items/weapons/storage/firstaid.dm
index 55bab838d5..841f55cb22 100644
--- a/code/game/objects/items/weapons/storage/firstaid.dm
+++ b/code/game/objects/items/weapons/storage/firstaid.dm
@@ -73,7 +73,7 @@
name = "oxygen deprivation first aid kit"
desc = "A box full of oxygen goodies."
icon_state = "o2"
- item_state_slots = list(slot_r_hand_str = "firstaid-o2", slot_l_hand_str = "firstaid-o2")
+ item_state_slots = list(slot_r_hand_str = "firstaid-o2", slot_l_hand_str = "firstaid-o2")
starts_with = list(
/obj/item/reagent_containers/pill/dexalin,
/obj/item/reagent_containers/pill/dexalin,
@@ -210,13 +210,13 @@
if(istype(W, /obj/item/pen) || istype(W, /obj/item/flashlight/pen))
var/tmp_label = sanitizeSafe(tgui_input_text(user, "Enter a label for [name]", "Label", label_text, MAX_NAME_LEN), MAX_NAME_LEN)
if(length(tmp_label) > 50)
- to_chat(user, "The label can be at most 50 characters long.")
+ to_chat(user, span_notice("The label can be at most 50 characters long."))
else if(length(tmp_label) > 10)
- to_chat(user, "You set the label.")
+ to_chat(user, span_notice("You set the label."))
label_text = tmp_label
update_name_label()
else
- to_chat(user, "You set the label to \"[tmp_label]\".")
+ to_chat(user, span_notice("You set the label to \"[tmp_label]\"."))
label_text = tmp_label
update_name_label()
else
diff --git a/code/game/objects/items/weapons/storage/laundry_basket.dm b/code/game/objects/items/weapons/storage/laundry_basket.dm
index 5b41ea043c..17d20f0456 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)
- to_chat(user, "You need two hands to pick this up!")
+ to_chat(user, span_warning("You need two hands to pick this up!"))
return
if(user.get_inactive_hand())
- to_chat(user, "You need your other hand to be empty")
+ to_chat(user, span_warning("You need your other hand to be empty"))
return
return ..()
/obj/item/storage/laundry_basket/attack_self(mob/user as mob)
var/turf/T = get_turf(user)
- to_chat(user, "You dump the [src]'s contents onto \the [T].")
+ to_chat(user, span_notice("You dump the [src]'s contents onto \the [T]."))
return ..()
/obj/item/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 83ec1637f9..5f3bd8210f 100644
--- a/code/game/objects/items/weapons/storage/lockbox.dm
+++ b/code/game/objects/items/weapons/storage/lockbox.dm
@@ -20,21 +20,21 @@
/obj/item/storage/lockbox/attackby(obj/item/W as obj, mob/user as mob)
if (istype(W, /obj/item/card/id))
if(src.broken)
- to_chat(user, "It appears to be broken.")
+ to_chat(user, span_warning("It appears to be broken."))
return
if(src.allowed(user))
src.locked = !( src.locked )
if(src.locked)
src.icon_state = src.icon_locked
- to_chat(user, "You lock \the [src]!")
+ to_chat(user, span_notice("You lock \the [src]!"))
close_all()
return
else
src.icon_state = src.icon_closed
- to_chat(user, "You unlock \the [src]!")
+ to_chat(user, span_notice("You unlock \the [src]!"))
return
else
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
else if(istype(W, /obj/item/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
- to_chat(user, "It's locked!")
+ to_chat(user, span_warning("It's locked!"))
return
/obj/item/storage/lockbox/show_to(mob/user as mob)
if(locked)
- to_chat(user, "It's locked!")
+ to_chat(user, span_warning("It's locked!"))
else
..()
return
@@ -59,13 +59,13 @@
/obj/item/storage/lockbox/emag_act(var/remaining_charges, var/mob/user, var/emag_source, var/visual_feedback = "", var/audible_feedback = "")
if(!broken)
if(visual_feedback)
- visual_feedback = "[visual_feedback]"
+ visual_feedback = span_warning("[visual_feedback]")
else
- visual_feedback = "The locker has been sliced open by [user] with an electromagnetic card!"
+ visual_feedback = span_warning("The locker has been sliced open by [user] with an electromagnetic card!")
if(audible_feedback)
- audible_feedback = "[audible_feedback]"
+ audible_feedback = span_warning("[audible_feedback]")
else
- audible_feedback = "You hear a faint electrical spark."
+ audible_feedback = span_warning("You hear a faint electrical spark.")
broken = 1
locked = 0
diff --git a/code/game/objects/items/weapons/storage/mre.dm b/code/game/objects/items/weapons/storage/mre.dm
index d100aaaa05..5209591cf6 100644
--- a/code/game/objects/items/weapons/storage/mre.dm
+++ b/code/game/objects/items/weapons/storage/mre.dm
@@ -36,7 +36,7 @@ MRE Stuff
/obj/item/storage/mre/open(mob/user)
if(!opened)
- to_chat(usr, "You tear open the bag, breaking the vacuum seal.")
+ to_chat(usr, span_notice("You tear open the bag, breaking the vacuum seal."))
opened = 1
update_icon()
. = ..()
@@ -236,7 +236,7 @@ MRE Stuff
/obj/item/storage/mrebag/open(mob/user)
if(!opened && !isobserver(user))
- to_chat(usr, "The pouch heats up as you break the vacuum seal.")
+ to_chat(usr, span_notice("The pouch heats up as you break the vacuum seal."))
opened = 1
update_icon()
. = ..()
diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm
index 06dfbc7251..54007da3cf 100644
--- a/code/game/objects/items/weapons/storage/secure.dm
+++ b/code/game/objects/items/weapons/storage/secure.dm
@@ -47,22 +47,22 @@
if (do_after(user, 20 * W.toolspeed))
src.open =! src.open
playsound(src, W.usesound, 50, 1)
- user.show_message(text("You [] the service panel.", (src.open ? "open" : "close")))
+ user.show_message(span_notice("You [src.open ? "open" : "close"] the service panel."))
return
if (istype(W, /obj/item/multitool) && (src.open == 1)&& (!src.l_hacking))
- user.show_message("Now attempting to reset internal memory, please hold.", 1)
+ user.show_message(span_notice("Now attempting to reset internal memory, please hold."), 1)
src.l_hacking = 1
if (do_after(usr, 100))
if (prob(40))
src.l_setshort = 1
src.l_set = 0
src.code = ""
- user.show_message("Internal memory reset. Please give it a few seconds to reinitialize.", 1)
+ user.show_message(span_notice("Internal memory reset. Please give it a few seconds to reinitialize."), 1)
sleep(80)
src.l_setshort = 0
src.l_hacking = 0
else
- user.show_message("Unable to reset internal memory.", 1)
+ user.show_message(span_warning("Unable to reset internal memory."), 1)
src.l_hacking = 0
else src.l_hacking = 0
return
@@ -82,7 +82,7 @@
/obj/item/storage/secure/AltClick(mob/user as mob)
if (isliving(user) && Adjacent(user) && (src.locked == 1))
- to_chat(user, "[src] is locked and cannot be opened!")
+ to_chat(user, span_warning("[src] is locked and cannot be opened!"))
else if (isliving(user) && Adjacent(user) && (!src.locked))
src.open(usr)
else
@@ -170,7 +170,7 @@
/obj/item/storage/secure/briefcase/attack_hand(mob/user as mob)
if ((src.loc == user) && (src.locked == 1))
- to_chat(user, "[src] is locked and cannot be opened!")
+ to_chat(user, span_warning("[src] is locked and cannot be opened!"))
else if ((src.loc == user) && (!src.locked))
src.open(usr)
else
diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm
index 1080b2ae57..d6770d73a9 100644
--- a/code/game/objects/items/weapons/storage/storage.dm
+++ b/code/game/objects/items/weapons/storage/storage.dm
@@ -443,24 +443,24 @@
return 0 //Means the item is already in the storage item
if(storage_slots != null && contents.len >= storage_slots)
if(!stop_messages)
- to_chat(usr, "[src] is full, make some space.")
+ to_chat(usr, span_notice("[src] is full, make some space."))
return 0 //Storage item is full
if(LAZYLEN(can_hold) && !is_type_in_list(W, can_hold))
if(!stop_messages)
if (istype(W, /obj/item/hand_labeler))
return 0
- to_chat(usr, "[src] cannot hold [W].")
+ to_chat(usr, span_notice("[src] cannot hold [W]."))
return 0
if(LAZYLEN(cant_hold) && is_type_in_list(W, cant_hold))
if(!stop_messages)
- to_chat(usr, "[src] cannot hold [W].")
+ to_chat(usr, span_notice("[src] cannot hold [W]."))
return 0
if (max_w_class != null && W.w_class > max_w_class)
if(!stop_messages)
- to_chat(usr, "[W] is too long for \the [src].")
+ to_chat(usr, span_notice("[W] is too long for \the [src]."))
return 0
var/total_storage_space = W.get_storage_cost()
@@ -469,12 +469,12 @@
if(total_storage_space > max_storage_space)
if(!stop_messages)
- to_chat(usr, "[src] is too full, make some space.")
+ to_chat(usr, span_notice("[src] is too full, make some space."))
return 0
if(W.w_class >= src.w_class && (istype(W, /obj/item/storage)))
if(!stop_messages)
- to_chat(usr, "[src] cannot hold [W] as it's a storage item of the same size.")
+ to_chat(usr, span_notice("[src] cannot hold [W] as it's a storage item of the same size."))
return 0 //To prevent the stacking of same sized storage items.
return 1
@@ -501,11 +501,11 @@
if(!prevent_warning)
for(var/mob/M in viewers(usr, null))
if (M == usr)
- to_chat(usr, "You put \the [W] into [src].")
+ to_chat(usr, span_notice("You put \the [W] into [src]."))
else if (M in range(1)) //If someone is standing close enough, they can tell what it is...
- M.show_message("\The [usr] puts [W] into [src].")
+ M.show_message(span_notice("\The [usr] puts [W] into [src]."))
else if (W && W.w_class >= 3) //Otherwise they can only see large or normal items from a distance...
- M.show_message("\The [usr] puts [W] into [src].")
+ M.show_message(span_notice("\The [usr] puts [W] into [src]."))
src.orient2hud(usr)
if(usr.s_active)
@@ -592,14 +592,14 @@
var/obj/item/tray/T = W
if(T.calc_carry() > 0)
if(prob(85))
- to_chat(user, "The tray won't fit in [src].")
+ to_chat(user, span_warning("The tray won't fit in [src]."))
return
else
W.forceMove(get_turf(user))
if ((user.client && user.s_active != src))
user.client.screen -= W
W.dropped(user)
- to_chat(user, "God damn it!")
+ to_chat(user, span_warning("God damn it!"))
W.add_fingerprint(user)
return handle_item_insertion(W)
@@ -644,11 +644,11 @@
success = 1
handle_item_insertion(I, 1) //The 1 stops the "You put the [src] into [S]" insertion message from being displayed.
if(success && !failure)
- to_chat(user, "You put everything in [src].")
+ to_chat(user, span_notice("You put everything in [src]."))
else if(success)
- to_chat(user, "You put some things in [src].")
+ to_chat(user, span_notice("You put some things in [src]."))
else
- to_chat(user, "You fail to pick anything up with \the [src].")
+ to_chat(user, span_notice("You fail to pick anything up with \the [src]."))
/obj/item/storage/verb/toggle_gathering_mode()
set name = "Switch Gathering Method"
@@ -828,7 +828,7 @@
. = ..()
if(open && contents.len)
var/display_item = contents[1]
- . += "\The [src] contains \the [display_item]!"
+ . += span_notice("\The [src] contains \the [display_item]!")
/obj/item/storage/AllowDrop()
return TRUE
@@ -897,5 +897,5 @@
// Scoop and insert target into storage
var/obj/item/holder/H = new user.holder_type(get_turf(user), user)
src.handle_item_insertion(H, 1)
- to_chat(user, "You climb into \the [src].")
+ to_chat(user, span_notice("You climb into \the [src]."))
return ..()
diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm
index e6556c464d..eedb93e180 100644
--- a/code/game/objects/items/weapons/stunbaton.dm
+++ b/code/game/objects/items/weapons/stunbaton.dm
@@ -103,7 +103,7 @@
..()
if(status && grip_safety && !taped_safety)
status = 0
- visible_message("\The [src]'s grip safety engages!")
+ visible_message(span_warning("\The [src]'s grip safety engages!"))
update_icon()
/obj/item/melee/baton/examine(mob/user)
@@ -111,11 +111,11 @@
if(Adjacent(user))
if(taped_safety)
- . += "Someone has wrapped tape around the grip!"
+ . += span_warning("Someone has wrapped tape around the grip!")
if(bcell)
- . += "The baton is [round(bcell.percent())]% charged."
+ . += span_notice("The baton is [round(bcell.percent())]% charged.")
if(!bcell)
- . += "The baton does not have a power source installed."
+ . += span_warning("The baton does not have a power source installed.")
/obj/item/melee/baton/attackby(obj/item/W, mob/user)
if(use_external_power)
@@ -126,22 +126,22 @@
user.drop_item()
W.loc = src
bcell = W
- to_chat(user, "You install a cell in [src].")
+ to_chat(user, span_notice("You install a cell in [src]."))
update_icon()
else
- to_chat(user, "[src] already has a cell.")
+ to_chat(user, span_notice("[src] already has a cell."))
else
- to_chat(user, "This cell is not fitted for [src].")
+ to_chat(user, span_notice("This cell is not fitted for [src]."))
if(istype(W, /obj/item/tape_roll) || istype(W, /obj/item/taperoll))
if(grip_safety && !taped_safety) //no point letting people wrap tape around the grips of batons without a safety
- to_chat(user, "You firmly wrap tape around the baton's grip, disabling the safety system.")
+ to_chat(user, span_notice("You firmly wrap tape around the baton's grip, disabling the safety system."))
playsound(src, 'sound/effects/tape.ogg',25)
taped_safety = TRUE
else if(grip_safety && taped_safety)
- to_chat(user, "The grip safety has already been taped down.")
+ to_chat(user, span_notice("The grip safety has already been taped down."))
if(istype(W, /obj/item/tool/screwdriver))
if(taped_safety)
- to_chat(user, "You painstakingly scrape away the tape over the grip safety.")
+ to_chat(user, span_notice("You painstakingly scrape away the tape over the grip safety."))
taped_safety = FALSE
/obj/item/melee/baton/attack_hand(mob/user as mob)
@@ -150,7 +150,7 @@
bcell.update_icon()
user.put_in_hands(bcell)
bcell = null
- to_chat(user, "You remove the cell from the [src].")
+ to_chat(user, span_notice("You remove the cell from the [src]."))
status = 0
update_icon()
return
@@ -166,20 +166,20 @@
bcell = R.cell
if(bcell && bcell.charge >= hitcost)
status = !status
- to_chat(user, "[src] is now [status ? "on" : "off"].")
+ to_chat(user, span_notice("[src] is now [status ? "on" : "off"]."))
playsound(src, "sparks", 75, 1, -1)
update_icon()
else
status = 0
if(!bcell)
- to_chat(user, "[src] does not have a power source!")
+ to_chat(user, span_warning("[src] does not have a power source!"))
else
- to_chat(user, "[src] is out of charge.")
+ to_chat(user, span_warning("[src] is out of charge."))
add_fingerprint(user)
/obj/item/melee/baton/attack(mob/M, mob/user)
if(status && (CLUMSY in user.mutations) && prob(50))
- to_chat(user, "You accidentally hit yourself with the [src]!")
+ to_chat(user, span_danger("You accidentally hit yourself with the [src]!"))
user.Weaken(30)
deductcharge(hitcost)
return
@@ -204,14 +204,14 @@
stun *= 0.5
else if(!status)
if(affecting)
- target.visible_message("[target] has been prodded in the [affecting.name] with [src] by [user]. Luckily it was off.")
+ target.visible_message(span_warning("[target] has been prodded in the [affecting.name] with [src] by [user]. Luckily it was off."))
else
- target.visible_message("[target] has been prodded with [src] by [user]. Luckily it was off.")
+ target.visible_message(span_warning("[target] has been prodded with [src] by [user]. Luckily it was off."))
else
if(affecting)
- target.visible_message("[target] has been prodded in the [affecting.name] with [src] by [user]!")
+ target.visible_message(span_danger("[target] has been prodded in the [affecting.name] with [src] by [user]!"))
else
- target.visible_message("[target] has been prodded with [src] by [user]!")
+ target.visible_message(span_danger("[target] has been prodded with [src] by [user]!"))
playsound(src, 'sound/weapons/Egloves.ogg', 50, 1, -1)
//stun effects
@@ -256,12 +256,12 @@
user.drop_item()
W.loc = src
bcell = W
- to_chat(user, "You install a cell in [src].")
+ to_chat(user, span_notice("You install a cell in [src]."))
update_icon()
else
- to_chat(user, "[src] already has a cell.")
+ to_chat(user, span_notice("[src] already has a cell."))
else
- to_chat(user, "This cell is not fitted for [src].")
+ to_chat(user, span_notice("This cell is not fitted for [src]."))
/obj/item/melee/baton/get_description_interaction()
var/list/results = list()
@@ -294,4 +294,4 @@
// Borg version, for the lost module.
/obj/item/melee/baton/shocker/robot
- use_external_power = TRUE
\ No newline at end of file
+ use_external_power = TRUE
diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm
index bf2332149c..f6694c5778 100644
--- a/code/game/objects/items/weapons/swords_axes_etc.dm
+++ b/code/game/objects/items/weapons/swords_axes_etc.dm
@@ -31,7 +31,7 @@
/obj/item/melee/classic_baton/attack(mob/M as mob, mob/living/user as mob)
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "You club yourself over the head.")
+ to_chat(user, span_warning("You club yourself over the head."))
user.Weaken(3 * force)
if(ishuman(user))
var/mob/living/carbon/human/H = user
@@ -58,8 +58,8 @@
/obj/item/melee/telebaton/attack_self(mob/user as mob)
on = !on
if(on)
- user.visible_message("With a flick of their wrist, [user] extends their telescopic baton.",\
- "You extend the baton.",\
+ user.visible_message(span_warning("With a flick of their wrist, [user] extends their telescopic baton."),\
+ span_warning("You extend the baton."),\
"You hear an ominous click.")
icon_state = "telebaton1"
item_state = icon_state
@@ -68,7 +68,7 @@
attack_verb = list("smacked", "struck", "slapped")
else
user.visible_message("\The [user] collapses their telescopic baton.",\
- "You collapse the baton.",\
+ span_notice("You collapse the baton."),\
"You hear a click.")
icon_state = "telebaton0"
item_state = icon_state
@@ -99,7 +99,7 @@
/obj/item/melee/telebaton/attack(mob/target as mob, mob/living/user as mob)
if(on)
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "You club yourself over the head.")
+ to_chat(user, span_warning("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/syndie.dm b/code/game/objects/items/weapons/syndie.dm
index 9e7eb8a8ef..b7fff933e2 100644
--- a/code/game/objects/items/weapons/syndie.dm
+++ b/code/game/objects/items/weapons/syndie.dm
@@ -86,27 +86,27 @@
lit = 1
icon_state = "[base_state]1"
//item_state = "[base_state]on"
- user.visible_message("Without even breaking stride, \the [user] flips open \the [src] in one smooth movement.")
+ user.visible_message(span_rose("Without even breaking stride, \the [user] flips open \the [src] in one smooth movement."))
else if(lit && detonator_mode)
switch(tgui_alert(user, "What would you like to do?", "Lighter", list("Press the button.", "Close the lighter.")))
if("Press the button.")
- to_chat(user, "You press the button.")
+ to_chat(user, span_warning("You press the button."))
icon_state = "[base_state]click"
if(src.bomb)
src.bomb.detonate()
log_admin("[key_name(user)] has triggered [src.bomb] with [src].")
- message_admins("[key_name_admin(user)] has triggered [src.bomb] with [src].")
+ message_admins(span_danger("[key_name_admin(user)] has triggered [src.bomb] with [src]."))
if("Close the lighter.")
lit = 0
icon_state = "[base_state]"
//item_state = "[base_state]"
- user.visible_message("You hear a quiet click, as \the [user] shuts off \the [src] without even looking at what they're doing.")
+ user.visible_message(span_rose("You hear a quiet click, as \the [user] shuts off \the [src] without even looking at what they're doing."))
/obj/item/flame/lighter/zippo/c4detonator/attackby(obj/item/W, mob/user as mob)
if(W.has_tool_quality(TOOL_SCREWDRIVER))
detonator_mode = !detonator_mode
playsound(src, W.usesound, 50, 1)
- to_chat(user, "You unscrew the top panel of \the [src] revealing a button.")
+ to_chat(user, span_notice("You unscrew the top panel of \the [src] revealing a button."))
diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm
index 3946c7e3b2..2400985b05 100644
--- a/code/game/objects/items/weapons/tanks/jetpack.dm
+++ b/code/game/objects/items/weapons/tanks/jetpack.dm
@@ -31,7 +31,7 @@
/obj/item/tank/jetpack/examine(mob/user)
. = ..()
if(air_contents.total_moles < 5)
- . += "The meter on \the [src] indicates you are almost out of gas!"
+ . += span_danger("The meter on \the [src] indicates you are almost out of gas!")
playsound(src, 'sound/effects/alert.ogg', 50, 1)
/obj/item/tank/jetpack/verb/toggle_rockets()
diff --git a/code/game/objects/items/weapons/tanks/tank_types.dm b/code/game/objects/items/weapons/tanks/tank_types.dm
index caa31f0d85..9157aa3ea1 100644
--- a/code/game/objects/items/weapons/tanks/tank_types.dm
+++ b/code/game/objects/items/weapons/tanks/tank_types.dm
@@ -23,7 +23,7 @@
/obj/item/tank/oxygen/examine(mob/user)
. = ..()
if(loc == user && (air_contents.gas["oxygen"] < 10))
- . += "The meter on \the [src] indicates you are almost out of oxygen!"
+ . += span_warning("The meter on \the [src] indicates you are almost out of oxygen!")
/obj/item/tank/oxygen/yellow
desc = "A tank of oxygen, this one is yellow."
@@ -59,7 +59,7 @@
/obj/item/tank/air/examine(mob/user)
. = ..()
if(loc == user && (air_contents.gas["oxygen"] < 1))
- . += "The meter on \the [src] indicates you are almost out of air!"
+ . += span_warning("The meter on \the [src] indicates you are almost out of air!")
user << sound('sound/effects/alert.ogg')
/obj/item/tank/air/Initialize()
@@ -142,7 +142,7 @@
/obj/item/tank/emergency/oxygen/examine(mob/user)
. = ..()
if(loc == user && (air_contents.gas["oxygen"] < 0.2))
- . += "The meter on the [src.name] indicates you are almost out of air!"
+ . += span_danger("The meter on the [src.name] indicates you are almost out of air!")
user << sound('sound/effects/alert.ogg')
/obj/item/tank/emergency/oxygen/engi
@@ -215,7 +215,7 @@
/obj/item/tank/nitrogen/examine(mob/user)
. = ..()
if(loc == user && (air_contents.gas["nitrogen"] < 10))
- . += "The meter on \the [src] indicates you are almost out of nitrogen!"
+ . += span_danger("The meter on \the [src] indicates you are almost out of nitrogen!")
//playsound(user, 'sound/effects/alert.ogg', 50, 1)
/obj/item/tank/stasis/nitro_cryo // Synthmorph bags need to have initial pressure within safe bounds for human atmospheric pressure, but low temperature to stop unwanted degredation.
diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm
index ce08405684..d4885e9cd1 100644
--- a/code/game/objects/items/weapons/tanks/tanks.dm
+++ b/code/game/objects/items/weapons/tanks/tanks.dm
@@ -105,12 +105,12 @@ var/list/global/tank_gauge_cache = list()
descriptive = "cold"
else
descriptive = "bitterly cold"
- . += "\The [src] feels [descriptive]."
+ . += span_notice("\The [src] feels [descriptive].")
if(src.proxyassembly.assembly || wired)
- . += "It seems to have [wired? "some wires ": ""][wired && src.proxyassembly.assembly? "and ":""][src.proxyassembly.assembly ? "some sort of assembly ":""]attached to it."
+ . += span_warning("It seems to have [wired? "some wires ": ""][wired && src.proxyassembly.assembly? "and ":""][src.proxyassembly.assembly ? "some sort of assembly ":""]attached to it.")
if(src.valve_welded)
- . += "\The [src] emergency relief valve has been welded shut!"
+ . += span_warning("\The [src] emergency relief valve has been welded shut!")
/obj/item/tank/attackby(obj/item/W as obj, mob/user as mob)
@@ -127,17 +127,17 @@ var/list/global/tank_gauge_cache = list()
var/obj/item/stack/cable_coil/C = W
if(C.use(1))
wired = 1
- to_chat(user, "You attach the wires to the tank.")
+ to_chat(user, span_notice("You attach the wires to the tank."))
src.add_bomb_overlay()
if(W.has_tool_quality(TOOL_WIRECUTTER))
if(wired && src.proxyassembly.assembly)
- to_chat(user, "You carefully begin clipping the wires that attach to the tank.")
+ to_chat(user, span_notice("You carefully begin clipping the wires that attach to the tank."))
if(do_after(user, 100,src))
wired = 0
cut_overlay("bomb_assembly")
- to_chat(user, "You cut the wire and remove the device.")
+ to_chat(user, span_notice("You cut the wire and remove the device."))
var/obj/item/assembly_holder/assy = src.proxyassembly.assembly
if(assy.a_left && assy.a_right)
@@ -156,55 +156,55 @@ var/list/global/tank_gauge_cache = list()
update_gauge()
else
- to_chat(user, "You slip and bump the igniter!")
+ to_chat(user, span_danger("You slip and bump the igniter!"))
if(prob(85))
src.proxyassembly.receive_signal()
else if(wired)
if(do_after(user, 10, src))
- to_chat(user, "You quickly clip the wire from the tank.")
+ to_chat(user, span_notice("You quickly clip the wire from the tank."))
wired = 0
cut_overlay("bomb_assembly")
else
- to_chat(user, "There are no wires to cut!")
+ to_chat(user, span_notice("There are no wires to cut!"))
if(istype(W, /obj/item/assembly_holder))
if(wired)
- to_chat(user, "You begin attaching the assembly to \the [src].")
+ to_chat(user, span_notice("You begin attaching the assembly to \the [src]."))
if(do_after(user, 50, src))
- to_chat(user, "You finish attaching the assembly to \the [src].")
+ to_chat(user, span_notice("You finish attaching the assembly to \the [src]."))
bombers += "[key_name(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]"
message_admins("[key_name_admin(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]")
assemble_bomb(W,user)
else
- to_chat(user, "You stop attaching the assembly.")
+ to_chat(user, span_notice("You stop attaching the assembly."))
else
- to_chat(user, "You need to wire the device up first.")
+ to_chat(user, span_notice("You need to wire the device up first."))
if(istype(W, /obj/item/weldingtool))
var/obj/item/weldingtool/WT = W
if(WT.remove_fuel(1,user))
if(!valve_welded)
- to_chat(user, "You begin welding the \the [src] emergency pressure relief valve.")
+ to_chat(user, span_notice("You begin welding the \the [src] emergency pressure relief valve."))
if(do_after(user, 40,src))
- to_chat(user, "You carefully weld \the [src] emergency pressure relief valve shut. \The [src] may now rupture under pressure!")
+ to_chat(user, span_notice("You carefully weld \the [src] emergency pressure relief valve shut. \The [src] may now rupture under pressure!"))
src.valve_welded = 1
src.leaking = 0
else
bombers += "[key_name(user)] attempted to weld a [src]. [src.air_contents.temperature-T0C]"
message_admins("[key_name_admin(user)] attempted to weld a [src]. [src.air_contents.temperature-T0C]")
if(WT.welding)
- to_chat(user, "You accidentally rake \the [W] across \the [src]!")
+ to_chat(user, span_danger("You accidentally rake \the [W] across \the [src]!"))
maxintegrity -= rand(2,6)
integrity = min(integrity,maxintegrity)
src.air_contents.add_thermal_energy(rand(2000,50000))
WT.eyecheck(user)
else
- to_chat(user, "The emergency pressure relief valve has already been welded.")
+ to_chat(user, span_notice("The emergency pressure relief valve has already been welded."))
add_fingerprint(user)
@@ -289,7 +289,7 @@ var/list/global/tank_gauge_cache = list()
if(location.internal == src)
location.internal = null
location.internals.icon_state = "internal0"
- to_chat(user, "You close the tank release valve.")
+ to_chat(user, span_notice("You close the tank release valve."))
if (location.internals)
location.internals.icon_state = "internal0"
else
@@ -303,11 +303,11 @@ var/list/global/tank_gauge_cache = list()
if(can_open_valve)
location.internal = src
- to_chat(user, "You open \the [src] valve.")
+ to_chat(user, span_notice("You open \the [src] valve."))
if (location.internals)
location.internals.icon_state = "internal1"
else
- to_chat(user, "You need something to connect to \the [src].")
+ to_chat(user, span_warning("You need something to connect to \the [src]."))
@@ -444,7 +444,7 @@ var/list/global/tank_gauge_cache = list()
else if(pressure > TANK_RUPTURE_PRESSURE)
#ifdef FIREDBG
- log_debug("[x],[y] tank is rupturing: [pressure] kPa, integrity [integrity]")
+ log_debug(span_warning("[x],[y] tank is rupturing: [pressure] kPa, integrity [integrity]"))
#endif
air_contents.react()
@@ -455,7 +455,7 @@ var/list/global/tank_gauge_cache = list()
return
T.assume_air(air_contents)
playsound(src, 'sound/weapons/Gunshot_shotgun.ogg', 20, 1)
- visible_message("[icon2html(src,viewers(src))] \The [src] flies apart!", "You hear a bang!")
+ visible_message("[icon2html(src,viewers(src))] \The [src] flies apart!", span_warning("You hear a bang!"))
T.hotspot_expose(air_contents.temperature, 70, 1)
@@ -504,7 +504,7 @@ var/list/global/tank_gauge_cache = list()
playsound(src, 'sound/effects/spray.ogg', 10, 1, -3)
leaking = 1
#ifdef FIREDBG
- log_debug("[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]")
+ log_debug(span_warning("[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]"))
#endif
diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm
index 951501c70e..319250f2a1 100644
--- a/code/game/objects/items/weapons/tape.dm
+++ b/code/game/objects/items/weapons/tape.dm
@@ -24,24 +24,24 @@
if(user.a_intent == I_HELP)
return
if(!can_place(H, user))
- to_chat(user, "You need to have a firm grip on [H] before you can use \the [src]!")
+ to_chat(user, span_danger("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])
- to_chat(user, "\The [H] doesn't have a head.")
+ to_chat(user, span_warning("\The [H] doesn't have a head."))
return
if(!H.has_eyes())
- to_chat(user, "\The [H] doesn't have any eyes.")
+ to_chat(user, span_warning("\The [H] doesn't have any eyes."))
return
if(H.glasses)
- to_chat(user, "\The [H] is already wearing something on their eyes.")
+ to_chat(user, span_warning("\The [H] is already wearing something on their eyes."))
return
if(H.head && (H.head.body_parts_covered & FACE))
- to_chat(user, "Remove their [H.head] first.")
+ to_chat(user, span_warning("Remove their [H.head] first."))
return
- user.visible_message("\The [user] begins taping over \the [H]'s eyes!")
+ user.visible_message(span_danger("\The [user] begins taping over \the [H]'s eyes!"))
if(!do_after(user, 30))
return
@@ -52,25 +52,25 @@
if(!H || !src || !H.organs_by_name[BP_HEAD] || !H.has_eyes() || H.glasses || (H.head && (H.head.body_parts_covered & FACE)))
return
- user.visible_message("\The [user] has taped up \the [H]'s eyes!")
+ user.visible_message(span_danger("\The [user] has taped up \the [H]'s eyes!"))
H.equip_to_slot_or_del(new /obj/item/clothing/glasses/sunglasses/blindfold/tape(H), slot_glasses, ignore_obstructions = FALSE)
H.update_inv_glasses()
playsound(src, 'sound/effects/tape.ogg',25)
else if(user.zone_sel.selecting == O_MOUTH || user.zone_sel.selecting == BP_HEAD)
if(!H.organs_by_name[BP_HEAD])
- to_chat(user, "\The [H] doesn't have a head.")
+ to_chat(user, span_warning("\The [H] doesn't have a head."))
return
if(!H.check_has_mouth())
- to_chat(user, "\The [H] doesn't have a mouth.")
+ to_chat(user, span_warning("\The [H] doesn't have a mouth."))
return
if(H.wear_mask)
- to_chat(user, "\The [H] is already wearing a mask.")
+ to_chat(user, span_warning("\The [H] is already wearing a mask."))
return
if(H.head && (H.head.body_parts_covered & FACE))
- to_chat(user, "Remove their [H.head] first.")
+ to_chat(user, span_warning("Remove their [H.head] first."))
return
- user.visible_message("\The [user] begins taping up \the [H]'s mouth!")
+ user.visible_message(span_danger("\The [user] begins taping up \the [H]'s mouth!"))
if(!do_after(user, 30))
return
@@ -81,7 +81,7 @@
if(!H || !src || !H.organs_by_name[BP_HEAD] || !H.check_has_mouth() || (H.head && (H.head.body_parts_covered & FACE)))
return
- user.visible_message("\The [user] has taped up \the [H]'s mouth!")
+ user.visible_message(span_danger("\The [user] has taped up \the [H]'s mouth!"))
H.equip_to_slot_or_del(new /obj/item/clothing/mask/muzzle/tape(H), slot_wear_mask, ignore_obstructions = FALSE)
H.update_inv_wear_mask()
diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm
index 515d09c0e7..fee09bb596 100644
--- a/code/game/objects/items/weapons/teleportation.dm
+++ b/code/game/objects/items/weapons/teleportation.dm
@@ -133,7 +133,7 @@ Frequency:
/obj/item/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.
- to_chat(user, "\The [src] is malfunctioning.")
+ to_chat(user, span_notice("\The [src] is malfunctioning."))
return
var/list/L = list( )
for(var/obj/machinery/teleport/hub/R in machines)
@@ -169,11 +169,11 @@ Frequency:
for(var/obj/effect/portal/PO in all_portals)
if(PO.creator == src) count++
if(count >= 3)
- user.show_message("\The [src] is recharging!")
+ user.show_message(span_notice("\The [src] is recharging!"))
return
var/T = L[t1]
for(var/mob/O in hearers(user, null))
- O.show_message("Locked In.", 2)
+ O.show_message(span_notice("Locked In."), 2)
var/obj/effect/portal/P = new /obj/effect/portal( get_turf(src) )
P.target = T
P.creator = src
diff --git a/code/game/objects/items/weapons/tools/transforming.dm b/code/game/objects/items/weapons/tools/transforming.dm
index 658ad9b227..e7f52b6dbf 100644
--- a/code/game/objects/items/weapons/tools/transforming.dm
+++ b/code/game/objects/items/weapons/tools/transforming.dm
@@ -59,7 +59,7 @@
tool_qualities = list(TOOL_CROWBAR)
if(user)
playsound(src, 'sound/items/change_jaws.ogg', 50, 1)
- to_chat(user, "You attach the pry jaws to [src].")
+ to_chat(user, span_notice("You attach the pry jaws to [src]."))
if(TOOL_WIRECUTTER)
desc = initial(desc) + " It's fitted with a cutting head."
icon_state = "jaws_cutter"
@@ -68,7 +68,7 @@
tool_qualities = list(TOOL_WIRECUTTER)
if(user)
playsound(src, 'sound/items/change_jaws.ogg', 50, 1)
- to_chat(user, "You attach the cutting jaws to [src].")
+ to_chat(user, span_notice("You attach the cutting jaws to [src]."))
/obj/item/tool/transforming/powerdrill
name = "hand drill"
@@ -97,7 +97,7 @@
tool_qualities = list(TOOL_WRENCH)
if(user)
playsound(src,'sound/items/change_drill.ogg',50,1)
- to_chat(user, "You attach the bolt driver to [src].")
+ to_chat(user, span_notice("You attach the bolt driver to [src]."))
if(TOOL_SCREWDRIVER)
desc = initial(desc) + " It's fitted with a screw driver."
icon_state = "drill_screw"
@@ -105,7 +105,7 @@
tool_qualities = list(TOOL_SCREWDRIVER)
if(user)
playsound(src,'sound/items/change_drill.ogg',50,1)
- to_chat(user, "You attach the screw driver to [src].")
+ to_chat(user, span_notice("You attach the screw driver to [src]."))
/obj/item/tool/transforming/altevian
name = "Hull Systems Omni-Tool"
@@ -137,7 +137,7 @@
tool_qualities = list(TOOL_WRENCH)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into bolting mode.")
+ to_chat(user, span_notice("You reconfigure [src] into bolting mode."))
if(TOOL_CROWBAR)
desc = initial(desc) + " It's currently in prying mode."
icon_state = "altevian-crowbar"
@@ -145,7 +145,7 @@
tool_qualities = list(TOOL_CROWBAR)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into prying mode.")
+ to_chat(user, span_notice("You reconfigure [src] into prying mode."))
if(TOOL_WIRECUTTER)
desc = initial(desc) + " It's currently in cutting mode."
icon_state = "altevian-wirecutter"
@@ -153,7 +153,7 @@
tool_qualities = list(TOOL_WIRECUTTER)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into cutting mode.")
+ to_chat(user, span_notice("You reconfigure [src] into cutting mode."))
if(TOOL_SCREWDRIVER)
desc = initial(desc) + " It's currently in screwing mode."
icon_state = "altevian-screwdriver"
@@ -161,7 +161,7 @@
tool_qualities = list(TOOL_SCREWDRIVER)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into screwing mode.")
+ to_chat(user, span_notice("You reconfigure [src] into screwing mode."))
if(TOOL_MULTITOOL)
desc = initial(desc) + " It's currently in pulsing mode."
icon_state = "altevian-pulser"
@@ -169,7 +169,7 @@
tool_qualities = list(TOOL_MULTITOOL)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into pulsing mode.")
+ to_chat(user, span_notice("You reconfigure [src] into pulsing mode."))
if(TOOL_WELDER)
desc = initial(desc) + " It's currently in welding mode."
icon_state = "altevian-welder-on"
@@ -178,7 +178,7 @@
tool_qualities = list(TOOL_WELDER)
if(user)
playsound(src,'sound/items/ratchet.ogg',50,1)
- to_chat(user, "You reconfigure [src] into welding mode.")
+ to_chat(user, span_notice("You reconfigure [src] into welding mode."))
/obj/item/weldingtool/dummy/altevian
toolspeed = 0.25
diff --git a/code/game/objects/items/weapons/tools/weldingtool.dm b/code/game/objects/items/weapons/tools/weldingtool.dm
index 27146a88d1..7dd1a562b5 100644
--- a/code/game/objects/items/weapons/tools/weldingtool.dm
+++ b/code/game/objects/items/weapons/tools/weldingtool.dm
@@ -82,15 +82,15 @@
if(S.organ_tag == BP_HEAD)
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
- to_chat(user, "You can't apply [src] through [H.head]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.head]!"))
return TRUE
else
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
- to_chat(user, "You can't apply [src] through [H.wear_suit]!")
+ to_chat(user, span_warning("You can't apply [src] through [H.wear_suit]!"))
return TRUE
if(!welding)
- to_chat(user, "You'll need to turn [src] on to patch the damage on [H]'s [S.name]!")
+ to_chat(user, span_warning("You'll need to turn [src] on to patch the damage on [H]'s [S.name]!"))
return TRUE
if(S.robo_repair(15, BRUTE, "some dents", src, user))
@@ -104,13 +104,13 @@
/obj/item/weldingtool/attackby(obj/item/W as obj, mob/living/user as mob)
if(istype(W,/obj/item/tool/screwdriver))
if(welding)
- to_chat(user, "Stop welding first!")
+ to_chat(user, span_danger("Stop welding first!"))
return
status = !status
if(status)
- to_chat(user, "You secure the welder.")
+ to_chat(user, span_notice("You secure the welder."))
else
- to_chat(user, "The welder can now be attached and modified.")
+ to_chat(user, span_notice("The welder can now be attached and modified."))
src.add_fingerprint(user)
return
@@ -159,16 +159,16 @@
if (istype(O, /obj/structure/reagent_dispensers/fueltank) && get_dist(src,O) <= 1)
if(!welding && max_fuel)
O.reagents.trans_to_obj(src, max_fuel)
- to_chat(user, "Welder refueled")
+ to_chat(user, span_notice("Welder refueled"))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
else if(!welding)
- to_chat(user, "[src] doesn't use fuel.")
+ to_chat(user, span_notice("[src] doesn't use fuel."))
return
else
message_admins("[key_name_admin(user)] triggered a fueltank explosion with a welding tool.")
log_game("[key_name(user)] triggered a fueltank explosion with a welding tool.")
- to_chat(user, "You begin welding on the fueltank and with a moment of lucidity you realize, this might not have been the smartest thing you've ever done.")
+ to_chat(user, span_danger("You begin welding on the fueltank and with a moment of lucidity you realize, this might not have been the smartest thing you've ever done."))
var/obj/structure/reagent_dispensers/fueltank/tank = O
tank.explode()
return
@@ -204,7 +204,7 @@
return 1
else
if(M)
- to_chat(M, "You need more welding fuel to complete this task.")
+ to_chat(M, span_notice("You need more welding fuel to complete this task."))
update_icon()
return 0
@@ -282,9 +282,9 @@
if(set_welding && !welding)
if (get_fuel() > 0)
if(M)
- to_chat(M, "You switch the [src] on.")
+ to_chat(M, span_notice("You switch the [src] on."))
else if(T)
- T.visible_message("\The [src] turns on.")
+ T.visible_message(span_danger("\The [src] turns on."))
playsound(src, acti_sound, 50, 1)
src.force = 15
src.damtype = "fire"
@@ -297,16 +297,16 @@
else
if(M)
var/msg = max_fuel ? "welding fuel" : "charge"
- to_chat(M, "You need more [msg] to complete this task.")
+ to_chat(M, span_notice("You need more [msg] to complete this task."))
return
//Otherwise
else if(!set_welding && welding)
if(!always_process)
STOP_PROCESSING(SSobj, src)
if(M)
- to_chat(M, "You switch \the [src] off.")
+ to_chat(M, span_notice("You switch \the [src] off."))
else if(T)
- T.visible_message("\The [src] turns off.")
+ T.visible_message(span_warning("\The [src] turns off."))
playsound(src, deac_sound, 50, 1)
src.force = 3
src.damtype = "brute"
@@ -330,29 +330,29 @@
if(H.nif && H.nif.flag_check(NIF_V_UVFILTER,NIF_FLAGS_VISION)) return //VOREStation Add - NIF
switch(safety)
if(1)
- to_chat(usr, "Your eyes sting a little.")
+ to_chat(usr, span_warning("Your eyes sting a little."))
E.damage += rand(1, 2)
if(E.damage > 12)
user.eye_blurry += rand(3,6)
if(0)
- to_chat(usr, "Your eyes burn.")
+ to_chat(usr, span_warning("Your eyes burn."))
E.damage += rand(2, 4)
if(E.damage > 10)
E.damage += rand(4,10)
if(-1)
- to_chat(usr, "Your thermals intensify the welder's glow. Your eyes itch and burn severely.")
+ to_chat(usr, span_danger("Your thermals intensify the welder's glow. Your eyes itch and burn severely."))
user.eye_blurry += rand(12,20)
E.damage += rand(12, 16)
if(safety<2)
if(E.damage > 10)
- to_chat(user, "Your eyes are really starting to hurt. This can't be good for you!")
+ to_chat(user, span_warning("Your eyes are really starting to hurt. This can't be good for you!"))
if (E.damage >= E.min_broken_damage)
- to_chat(user, "You go blind!")
+ to_chat(user, span_danger("You go blind!"))
user.sdisabilities |= BLIND
else if (E.damage >= E.min_bruised_damage)
- to_chat(user, "You go blind!")
+ to_chat(user, span_danger("You go blind!"))
user.Blind(5)
user.eye_blurry = 5
// Don't cure being nearsighted
@@ -528,7 +528,7 @@
..()
if(src.loc != user)
mounted_pack.return_nozzle()
- to_chat(user, "\The [src] retracts to its fueltank.")
+ to_chat(user, span_notice("\The [src] retracts to its fueltank."))
/obj/item/weldingtool/tubefed/survival
name = "tube-fed emergency welding tool"
@@ -614,7 +614,7 @@
return 1
else
if(M)
- to_chat(M, "You need more energy to complete this task.")
+ to_chat(M, span_notice("You need more energy to complete this task."))
update_icon()
return 0
@@ -624,7 +624,7 @@
power_supply.update_icon()
user.put_in_hands(power_supply)
power_supply = null
- to_chat(user, "You remove the cell from the [src].")
+ to_chat(user, span_notice("You remove the cell from the [src]."))
setWelding(0)
update_icon()
return
@@ -639,12 +639,12 @@
user.drop_item()
W.loc = src
power_supply = W
- to_chat(user, "You install a cell in \the [src].")
+ to_chat(user, span_notice("You install a cell in \the [src]."))
update_icon()
else
- to_chat(user, "\The [src] already has a cell.")
+ to_chat(user, span_notice("\The [src] already has a cell."))
else
- to_chat(user, "\The [src] cannot use that type of cell.")
+ to_chat(user, span_notice("\The [src] cannot use that type of cell."))
else
..()
diff --git a/code/game/objects/items/weapons/towels.dm b/code/game/objects/items/weapons/towels.dm
index 110d2a69fd..cb784c89e2 100644
--- a/code/game/objects/items/weapons/towels.dm
+++ b/code/game/objects/items/weapons/towels.dm
@@ -22,7 +22,7 @@
sprite_sheets = list(SPECIES_TESHARI = 'icons/inventory/belt/mob_teshari.dmi')
/obj/item/towel/attack_self(mob/living/user as mob)
- user.visible_message(text("[] uses [] to towel themselves off.", user, src))
+ user.visible_message(span_notice("[user] uses [src] to towel themselves off."))
playsound(src, 'sound/weapons/towelwipe.ogg', 25, 1)
if(user.fire_stacks > 0)
user.fire_stacks = (max(0, user.fire_stacks - 1.5))
diff --git a/code/game/objects/items/weapons/traps.dm b/code/game/objects/items/weapons/traps.dm
index 9221a2dc73..d7f15cc7d6 100644
--- a/code/game/objects/items/weapons/traps.dm
+++ b/code/game/objects/items/weapons/traps.dm
@@ -29,15 +29,15 @@
..()
if(!deployed && can_use(user))
user.visible_message(
- "[user] starts to deploy \the [src].",
- "You begin deploying \the [src]!",
+ span_danger("[user] starts to deploy \the [src]."),
+ span_danger("You begin deploying \the [src]!"),
"You hear the slow creaking of a spring."
)
if (do_after(user, 60))
user.visible_message(
- "[user] has deployed \the [src].",
- "You have deployed \the [src]!",
+ span_danger("[user] has deployed \the [src]."),
+ span_danger("You have deployed \the [src]!"),
"You hear a latch click loudly."
)
playsound(src, 'sound/machines/click.ogg',70, 1)
@@ -51,26 +51,26 @@
if(has_buckled_mobs() && can_use(user))
var/victim = english_list(buckled_mobs)
user.visible_message(
- "[user] begins freeing [victim] from \the [src].",
- "You carefully begin to free [victim] from \the [src].",
+ span_notice("[user] begins freeing [victim] from \the [src]."),
+ span_notice("You carefully begin to free [victim] from \the [src]."),
)
if(do_after(user, 60))
- user.visible_message("[victim] has been freed from \the [src] by [user].")
+ user.visible_message(span_notice("[victim] has been freed from \the [src] by [user]."))
for(var/A in buckled_mobs)
unbuckle_mob(A)
anchored = FALSE
else if(deployed && can_use(user))
user.visible_message(
- "[user] starts to disarm \the [src].",
- "You begin disarming \the [src]!",
+ span_danger("[user] starts to disarm \the [src]."),
+ span_notice("You begin disarming \the [src]!"),
"You hear a latch click followed by the slow creaking of a spring."
)
playsound(src, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 60))
user.visible_message(
- "[user] has disarmed \the [src].",
- "You have disarmed \the [src]!"
+ span_danger("[user] has disarmed \the [src]."),
+ span_notice("You have disarmed \the [src]!")
)
deployed = 0
anchored = FALSE
@@ -103,7 +103,7 @@
var/mob/living/carbon/human/H = L
var/obj/item/organ/external/affected = H.get_organ(check_zone(target_zone))
if(!affected) // took it clean off!
- to_chat(H, "The steel jaws of \the [src] take your limb clean off!")
+ to_chat(H, span_danger("The steel jaws of \the [src] take your limb clean off!"))
L.Stun(stun_length*2)
deployed = 0
anchored = FALSE
@@ -114,7 +114,7 @@
can_buckle = TRUE
buckle_mob(L)
L.Stun(stun_length)
- to_chat(L, "The steel jaws of \the [src] bite into you, trapping you in place!")
+ to_chat(L, span_danger("The steel jaws of \the [src] bite into you, trapping you in place!"))
deployed = 0
anchored = FALSE
can_buckle = initial(can_buckle)
@@ -126,8 +126,8 @@
var/mob/living/L = AM
if(L.m_intent == "run")
L.visible_message(
- "[L] steps on \the [src].",
- "You step on \the [src]!",
+ span_danger("[L] steps on \the [src]."),
+ span_danger("You step on \the [src]!"),
"You hear a loud metallic snap!"
)
attack_mob(L)
@@ -194,16 +194,16 @@
/obj/item/material/barbedwire/attack_hand(mob/user as mob)
if(anchored && can_use(user))
user.visible_message(
- "[user] starts to collect \the [src].",
- "You begin collecting \the [src]!",
+ span_danger("[user] starts to collect \the [src]."),
+ span_notice("You begin collecting \the [src]!"),
"You hear the sound of rustling [material.name]."
)
playsound(src, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, health))
user.visible_message(
- "[user] has collected \the [src].",
- "You have collected \the [src]!"
+ span_danger("[user] has collected \the [src]."),
+ span_notice("You have collected \the [src]!")
)
anchored = FALSE
update_icon()
@@ -214,15 +214,15 @@
..()
if(!anchored && can_use(user))
user.visible_message(
- "[user] starts to deploy \the [src].",
- "You begin deploying \the [src]!",
+ span_danger("[user] starts to deploy \the [src]."),
+ span_danger("You begin deploying \the [src]!"),
"You hear the rustling of [material.name]."
)
if (do_after(user, 60))
user.visible_message(
- "[user] has deployed \the [src].",
- "You have deployed \the [src]!",
+ span_danger("[user] has deployed \the [src]."),
+ span_danger("You have deployed \the [src]!"),
"You hear the rustling of [material.name]."
)
playsound(src, 'sound/items/Wirecutter.ogg',70, 1)
@@ -273,8 +273,8 @@
var/mob/living/L = AM
if(L.m_intent == "run")
L.visible_message(
- "[L] steps in \the [src].",
- "You step in \the [src]!",
+ span_danger("[L] steps in \the [src]."),
+ span_danger("You step in \the [src]!"),
"You hear a sharp rustling!"
)
attack_mob(L)
@@ -366,7 +366,7 @@
if(H.species.flags & NO_MINOR_CUT)
return
- to_chat(H, "You step directly on \the [src]!")
+ to_chat(H, span_danger("You step directly on \the [src]!"))
var/list/check = list("l_foot", "r_foot")
while(check.len)
diff --git a/code/game/objects/items/weapons/trays.dm b/code/game/objects/items/weapons/trays.dm
index 5c4e1bb49f..1149d2f3ec 100644
--- a/code/game/objects/items/weapons/trays.dm
+++ b/code/game/objects/items/weapons/trays.dm
@@ -32,7 +32,7 @@
if((CLUMSY in user.mutations) && prob(50)) //What if he's a clown?
- to_chat(M, "You accidentally slam yourself with the [src]!")
+ to_chat(M, span_warning("You accidentally slam yourself with the [src]!"))
M.Weaken(1)
user.take_organ_damage(2)
if(prob(50))
@@ -62,12 +62,12 @@
if(prob(50))
playsound(src, 'sound/items/trayhit1.ogg', 50, 1)
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] with the tray!"), 1)
return
else
playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //we applied the damage, we played the sound, we showed the appropriate messages. Time to return and stop the proc
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] with the tray!"), 1)
return
@@ -79,7 +79,7 @@
break
if(protected)
- to_chat(M, "You get slammed in the face with the tray, against your mask!")
+ to_chat(M, span_warning("You get slammed in the face with the tray, against your mask!"))
if(prob(33))
src.add_blood(H)
if (H.wear_mask)
@@ -95,11 +95,11 @@
if(prob(50))
playsound(src, 'sound/items/trayhit1.ogg', 50, 1)
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] with the tray!"), 1)
else
playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //sound playin'
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] with the tray!"), 1)
if(prob(10))
M.Stun(rand(1,3))
M.take_organ_damage(3)
@@ -109,7 +109,7 @@
return
else //No eye or head protection, tough luck!
- to_chat(M, "You get slammed in the face with the tray!")
+ to_chat(M, span_warning("You get slammed in the face with the tray!"))
if(prob(33))
src.add_blood(M)
var/turf/location = H.loc
@@ -119,11 +119,11 @@
if(prob(50))
playsound(src, 'sound/items/trayhit1.ogg', 50, 1)
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] in the face with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] in the face with the tray!"), 1)
else
playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' again
for(var/mob/O in viewers(M, null))
- O.show_message(text("[] slams [] in the face with the tray!", user, M), 1)
+ O.show_message(span_danger("[user] slams [M] in the face with the tray!"), 1)
if(prob(30))
M.Stun(rand(2,4))
M.take_organ_damage(4)
@@ -140,7 +140,7 @@
/obj/item/tray/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W, /obj/item/material/kitchen/rollingpin))
if(cooldown < world.time - 25)
- user.visible_message("[user] bashes [src] with [W]!")
+ user.visible_message(span_warning("[user] bashes [src] with [W]!"))
playsound(src, 'sound/effects/shieldbash.ogg', 50, 1)
cooldown = world.time
else
diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm
index f76a989221..0e01e58c39 100644
--- a/code/game/objects/items/weapons/weaponry.dm
+++ b/code/game/objects/items/weapons/weaponry.dm
@@ -20,34 +20,34 @@
user.do_attack_animation(M)
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_danger("You don't have the dexterity to do this!"))
return
if ((CLUMSY in user.mutations) && prob(50))
- to_chat(user, "The rod slips out of your hand and hits your head.")
+ to_chat(user, span_danger("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))
- 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.")
+ to_chat(M, span_danger("The power of [src] clears your mind of the cult's influence!"))
+ to_chat(user, span_danger("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.")
+ M.visible_message(span_danger("\The [user] waves \the [src] over \the [M]'s head."))
else if(prob(10))
- to_chat(user, "The rod slips in your hand.")
+ to_chat(user, span_danger("The rod slips in your hand."))
..()
else
- to_chat(user, "The rod appears to do nothing.")
- M.visible_message("\The [user] waves \the [src] over \the [M]'s head.")
+ to_chat(user, span_danger("The rod appears to do nothing."))
+ M.visible_message(span_danger("\The [user] waves \the [src] over \the [M]'s head."))
return
/obj/item/nullrod/afterattack(atom/A, mob/user as mob, proximity)
if(!proximity)
return
if (istype(A, /turf/simulated/floor))
- to_chat(user, "You hit the floor with the [src].")
+ to_chat(user, span_notice("You hit the floor with the [src]."))
call(/obj/effect/rune/proc/revealrunes)(src)
/obj/item/energy_net
@@ -107,7 +107,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, span_notice("You are free of the net!"))
unbuckle_mob(A)
STOP_PROCESSING(SSobj, src)
@@ -119,11 +119,11 @@
/obj/effect/energy_net/user_unbuckle_mob(mob/living/buckled_mob, mob/user)
user.setClickCooldown(user.get_attack_speed())
- visible_message("[user] begins to tear at \the [src]!")
+ visible_message(span_danger("[user] begins to tear at \the [src]!"))
if(do_after(user, escape_time, src, incapacitation_flags = INCAPACITATION_DEFAULT & ~(INCAPACITATION_RESTRAINED | INCAPACITATION_BUCKLED_FULLY)))
if(!has_buckled_mobs())
return
- visible_message("[user] manages to tear \the [src] apart!")
+ visible_message(span_danger("[user] manages to tear \the [src] apart!"))
unbuckle_mob(buckled_mob)
/obj/effect/energy_net/post_buckle_mob(mob/living/M)
diff --git a/code/game/objects/items/weapons/weldbackpack.dm b/code/game/objects/items/weapons/weldbackpack.dm
index 8cecd4ec41..e8be87608d 100644
--- a/code/game/objects/items/weapons/weldbackpack.dm
+++ b/code/game/objects/items/weapons/weldbackpack.dm
@@ -31,7 +31,7 @@
if(nozzle)
user.remove_from_mob(nozzle)
return_nozzle()
- to_chat(user, "\The [nozzle] retracts to its fueltank.")
+ to_chat(user, span_notice("\The [nozzle] retracts to its fueltank."))
/obj/item/weldpack/proc/get_nozzle(var/mob/living/user)
if(!ishuman(user))
@@ -40,7 +40,7 @@
var/mob/living/carbon/human/H = user
if(H.hands_are_full()) //Make sure our hands aren't full.
- to_chat(H, "Your hands are full. Drop something first.")
+ to_chat(H, span_warning("Your hands are full. Drop something first."))
return 0
var/obj/item/F = nozzle
@@ -59,31 +59,31 @@
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, span_danger("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, span_danger("That was close!"))
src.reagents.trans_to_obj(W, T.max_fuel)
- to_chat(user, "Welder refilled!")
+ to_chat(user, span_notice("Welder refilled!"))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
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, span_notice("\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, span_notice("You attach \the [W] to the [src]."))
return
else
- to_chat(user, "The [src] already has a nozzle!")
+ to_chat(user, span_notice("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, span_warning("The tank scoffs at your insolence. It only provides services to welders."))
return
/obj/item/weldpack/attack_hand(mob/user as mob)
@@ -94,7 +94,7 @@
if(!wearer.incapacitated())
get_nozzle(user)
else
- to_chat(user, "\The [src] does not have a nozzle attached!")
+ to_chat(user, span_notice("\The [src] does not have a nozzle attached!"))
else
..()
else
@@ -105,11 +105,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, span_notice("You crack the cap off the top of the pack and fill it back up again from the tank."))
playsound(src, '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, span_warning("The pack is already full!"))
return
/obj/item/weldpack/MouseDrop(obj/over_object as obj) //This is terrifying.
diff --git a/code/game/objects/mob_spawner_vr.dm b/code/game/objects/mob_spawner_vr.dm
index 6feebec885..463caa43a6 100644
--- a/code/game/objects/mob_spawner_vr.dm
+++ b/code/game/objects/mob_spawner_vr.dm
@@ -76,7 +76,7 @@
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
user.do_attack_animation(src)
- visible_message("\The [src] has been [LAZYLEN(I.attack_verb) ? "[pick(I.attack_verb)]":"attacked"] with \the [I] by [user].")
+ visible_message(span_warning("\The [src] has been [LAZYLEN(I.attack_verb) ? "[pick(I.attack_verb)]":"attacked"] with \the [I] by [user]."))
take_damage(I.force)
/obj/structure/mob_spawner/bullet_act(var/obj/item/projectile/Proj)
@@ -87,7 +87,7 @@
/obj/structure/mob_spawner/take_damage(var/damage)
health -= damage
if(health <= 0)
- visible_message("\The [src] breaks apart!")
+ visible_message(span_warning("\The [src] breaks apart!"))
qdel(src)
/obj/structure/mob_spawner/clear_zlevel/can_spawn()
diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm
index 11667d2f53..60a80c1ae3 100644
--- a/code/game/objects/objs.dm
+++ b/code/game/objects/objs.dm
@@ -57,7 +57,7 @@
/obj/CanUseTopic(var/mob/user, var/datum/tgui_state/state = GLOB.tgui_default_state)
if(user.CanUseObjTopic(src))
return ..()
- to_chat(user, "[icon2html(src, user.client)]Access Denied!")
+ to_chat(user, span_danger("[icon2html(src, user.client)]Access Denied!"))
return STATUS_CLOSE
/mob/living/silicon/CanUseObjTopic(var/obj/O)
@@ -165,7 +165,7 @@
/*
var/mob/mo = locate(/mob) in src
if(mo)
- var/rendered = "[M.name]: [text]"
+ var/rendered = span_game say(span_name("[M.name]: [text]"))
mo.show_message(rendered, 2)
*/
return
diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm
index 626c7a296e..dd0d55cfce 100644
--- a/code/game/objects/structures.dm
+++ b/code/game/objects/structures.dm
@@ -9,7 +9,7 @@
var/parts
var/list/climbers
var/block_turf_edges = FALSE // If true, turf edge icons will not be made on the turf this occupies.
-
+
var/list/connections
var/list/other_connections
var/list/blend_objects = newlist() // Objects which to blend with
@@ -36,8 +36,8 @@
attack_generic(user,1,"slices")
if(LAZYLEN(climbers) && !(user in climbers))
- user.visible_message("[user.name] shakes \the [src].", \
- "You shake \the [src].")
+ user.visible_message(span_warning("[user.name] shakes \the [src]."), \
+ span_notice("You shake \the [src]."))
structure_shaken()
return ..()
@@ -77,12 +77,12 @@
return 0
if (!user.Adjacent(src))
- to_chat(user, "You can't climb there, the way is blocked.")
+ to_chat(user, span_danger("You can't climb there, the way is blocked."))
return 0
var/obj/occupied = turf_is_crowded()
if(occupied)
- to_chat(user, "There's \a [occupied] in the way.")
+ to_chat(user, span_danger("There's \a [occupied] in the way."))
return 0
return 1
@@ -104,7 +104,7 @@
if (!can_climb(user))
return
- usr.visible_message("[user] starts climbing onto \the [src]!")
+ usr.visible_message(span_warning("[user] starts climbing onto \the [src]!"))
LAZYDISTINCTADD(climbers, user)
if(!do_after(user,(issmall(user) ? climb_delay * 0.6 : climb_delay)))
@@ -118,7 +118,7 @@
usr.forceMove(climb_to(user))
if (get_turf(user) == get_turf(src))
- usr.visible_message("[user] climbs onto \the [src]!")
+ usr.visible_message(span_warning("[user] climbs onto \the [src]!"))
LAZYREMOVE(climbers, user)
/obj/structure/proc/climb_to(var/mob/living/user)
@@ -127,21 +127,21 @@
/obj/structure/proc/structure_shaken()
for(var/mob/living/M in climbers)
M.Weaken(1)
- to_chat(M, "You topple as you are shaken off \the [src]!")
+ to_chat(M, span_danger("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)
- to_chat(M, "You topple as \the [src] moves under you!")
+ to_chat(M, span_danger("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))
- to_chat(H, "You land heavily!")
+ to_chat(H, span_danger("You land heavily!"))
M.adjustBruteLoss(damage)
return
@@ -160,12 +160,12 @@
affecting = H.get_organ(BP_HEAD)
if(affecting)
- to_chat(M, "You land heavily on your [affecting.name]!")
+ to_chat(M, span_danger("You land heavily on your [affecting.name]!"))
affecting.take_damage(damage, 0)
if(affecting.parent)
affecting.parent.add_autopsy_data("Misadventure", damage)
else
- to_chat(H, "You land heavily!")
+ to_chat(H, span_danger("You land heavily!"))
H.adjustBruteLoss(damage)
H.UpdateDamageIcon()
@@ -178,19 +178,19 @@
if(!Adjacent(user))
return 0
if (user.restrained() || user.buckled)
- to_chat(user, "You need your hands and legs free for this.")
+ to_chat(user, span_notice("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))
- to_chat(user, "You need hands for this.")
+ to_chat(user, span_notice("You need hands for this."))
return 0
return 1
/obj/structure/attack_generic(var/mob/user, var/damage, var/attack_verb)
if(!breakable || damage < STRUCTURE_MIN_DAMAGE_THRESHOLD)
return 0
- visible_message("[user] [attack_verb] the [src] apart!")
+ visible_message(span_danger("[user] [attack_verb] the [src] apart!"))
user.do_attack_animation(src)
spawn(1) qdel(src)
return 1
diff --git a/code/game/objects/structures/alien/alien.dm b/code/game/objects/structures/alien/alien.dm
index f161d8cfc3..3f52b7ee9a 100644
--- a/code/game/objects/structures/alien/alien.dm
+++ b/code/game/objects/structures/alien/alien.dm
@@ -35,7 +35,7 @@
/obj/structure/alien/hitby(AM as mob|obj)
..()
- visible_message("\The [src] was hit by \the [AM].")
+ visible_message(span_danger("\The [src] was hit by \the [AM]."))
var/tforce = 0
if(ismob(AM))
tforce = 10
@@ -48,7 +48,7 @@
return
/obj/structure/alien/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
user.do_attack_animation(src)
health -= damage
@@ -61,7 +61,7 @@
var/aforce = W.force
health = max(0, health - aforce)
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
- visible_message("[user] attacks the [src]!")
+ visible_message(span_danger("[user] attacks the [src]!"))
healthcheck()
..()
return
@@ -69,7 +69,7 @@
/obj/structure/alien/attack_hand()
usr.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if (HULK in usr.mutations)
- visible_message("[usr] destroys the [name]!")
+ visible_message(span_warning("[usr] destroys the [name]!"))
health = 0
else
@@ -77,18 +77,18 @@
if(istype(usr,/mob/living/carbon))
var/mob/living/carbon/M = usr
if(locate(/obj/item/organ/internal/xenos/hivenode) in M.internal_organs)
- visible_message ("[usr] strokes the [name] and it melts away!", 1)
+ visible_message (span_warning("[usr] strokes the [name] and it melts away!"), 1)
health = 0
healthcheck()
return
if(locate(/obj/item/organ/internal/xenos/resinspinner/replicant) in M.internal_organs)
if(!do_after(M, 3 SECONDS))
return
- visible_message ("[usr] strokes the [name] and it melts away!", 1)
+ visible_message (span_warning("[usr] strokes the [name] and it melts away!"), 1)
health = 0
healthcheck()
return
- visible_message("[usr] claws at the [name]!")
+ visible_message(span_warning("[usr] claws at the [name]!"))
health -= rand(5,10)
healthcheck()
return
diff --git a/code/game/objects/structures/artstuff.dm b/code/game/objects/structures/artstuff.dm
index ebe8de03ea..a7d06703ff 100644
--- a/code/game/objects/structures/artstuff.dm
+++ b/code/game/objects/structures/artstuff.dm
@@ -21,7 +21,7 @@
painting = canvas
canvas.forceMove(get_turf(src))
canvas.layer = layer+0.1
- user.visible_message("[user] puts \the [canvas] on \the [src].","You place \the [canvas] on \the [src].")
+ user.visible_message(span_notice("[user] puts \the [canvas] on \the [src]."),span_notice("You place \the [canvas] on \the [src]."))
else
return ..()
@@ -402,40 +402,40 @@
/obj/structure/sign/painting/examine(mob/user)
. = ..()
if(persistence_id)
- . += "Any painting placed here will be archived at the end of the shift."
+ . += span_notice("Any painting placed here will be archived at the end of the shift.")
if(current_canvas)
current_canvas.tgui_interact(user)
- . += "Use wirecutters to remove the painting."
- . += "Paintings hung here are curated based on interest. The more often someone EXAMINEs the painting, the longer it will stay in rotation."
+ . += span_notice("Use wirecutters to remove the painting.")
+ . += span_notice("Paintings hung here are curated based on interest. The more often someone EXAMINEs the painting, the longer it will stay in rotation.")
// Painting loaded and persistent frame, give a hint about removal safety
if(persistence_id)
if(loaded)
- . += "Don't worry, the currently framed painting has already been entered into the archives and can be safely removed. It will still be used on future shifts."
+ . += span_warning("Don't worry, the currently framed painting has already been entered into the archives and can be safely removed. It will still be used on future shifts.")
back_of_the_line(user)
else
- . += "This painting has not been entered into the archives yet. Removing it will prevent that from happening."
+ . += span_warning("This painting has not been entered into the archives yet. Removing it will prevent that from happening.")
/obj/structure/sign/painting/proc/frame_canvas(mob/user,obj/item/canvas/new_canvas)
if(!allowed(user))
- to_chat(user, "Access lock prevents you from putting a painting into this frame. Ask [curator] for help!")
+ to_chat(user, span_notice("Access lock prevents you from putting a painting into this frame. Ask [curator] for help!"))
return
if(user.drop_from_inventory(new_canvas, src))
current_canvas = new_canvas
if(!current_canvas.finalized)
current_canvas.finalize(user)
- to_chat(user,"You frame [current_canvas].")
+ to_chat(user,span_notice("You frame [current_canvas]."))
update_appearance()
/obj/structure/sign/painting/proc/unframe_canvas(mob/living/user)
if(!allowed(user))
- to_chat(user, "Access lock prevents you from removing paintings from this frame. Ask [curator] ((or admins)) for help!")
+ to_chat(user, span_notice("Access lock prevents you from removing paintings from this frame. Ask [curator] ((or admins)) for help!"))
return
if(current_canvas)
current_canvas.forceMove(drop_location())
current_canvas = null
loaded = FALSE
- to_chat(user, "You remove the painting from the frame.")
+ to_chat(user, span_notice("You remove the painting from the frame."))
update_appearance()
/obj/structure/sign/painting/proc/try_rename(mob/user)
@@ -649,7 +649,7 @@
SSpersistence.all_paintings.Remove(list(entry))
SSpersistence.all_paintings.Add(list(entry))
art_appreciators += user.ckey
- to_chat(user, "Showing interest in this painting renews its position in the curator database.")
+ to_chat(user, span_notice("Showing interest in this painting renews its position in the curator database."))
/obj/structure/sign/painting/vv_get_dropdown()
. = ..()
@@ -662,7 +662,7 @@
return
var/mob/user = usr
if(!persistence_id || !current_canvas)
- to_chat(user,"This is not a persistent painting.")
+ to_chat(user,span_warning("This is not a persistent painting."))
return
var/md5 = md5(lowertext(current_canvas.get_data_string()))
var/author = current_canvas.author_ckey
@@ -679,4 +679,4 @@
QDEL_NULL(P.current_canvas)
P.update_appearance()
loaded = FALSE
- log_and_message_admins("[key_name_admin(user)] has deleted persistent painting made by [author].")
+ log_and_message_admins(span_notice("[key_name_admin(user)] has deleted persistent painting made by [author]."))
diff --git a/code/game/objects/structures/barricades.dm b/code/game/objects/structures/barricades.dm
index f33c400023..ac3481a712 100644
--- a/code/game/objects/structures/barricades.dm
+++ b/code/game/objects/structures/barricades.dm
@@ -35,13 +35,13 @@
return //hitting things with the wrong type of stack usually doesn't produce messages, and probably doesn't need to.
if(health < maxhealth)
if(D.get_amount() < 1)
- to_chat(user, "You need one sheet of [material.display_name] to repair \the [src].")
+ to_chat(user, span_warning("You need one sheet of [material.display_name] to repair \the [src]."))
return
- visible_message("[user] begins to repair \the [src].")
+ visible_message(span_notice("[user] begins to repair \the [src]."))
if(do_after(user,20) && health < maxhealth)
if(D.use(1))
health = maxhealth
- visible_message("[user] repairs \the [src].")
+ visible_message(span_notice("[user] repairs \the [src]."))
return
return
else
@@ -71,7 +71,7 @@
return
/obj/structure/barricade/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
if(material == get_material_by_name("resin"))
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
else if(material == (get_material_by_name(MAT_CLOTH) || get_material_by_name(MAT_SYNCLOTH)))
@@ -87,7 +87,7 @@
/obj/structure/barricade/proc/dismantle()
material.place_dismantled_product(get_turf(src))
- visible_message("\The [src] falls apart!")
+ visible_message(span_danger("\The [src] falls apart!"))
qdel(src)
return
@@ -138,7 +138,7 @@
/obj/structure/barricade/sandbag/dismantle()
update_connections(1, src)
material.place_dismantled_product(get_turf(src))
- visible_message("\The [src] falls apart!")
+ visible_message(span_danger("\The [src] falls apart!"))
qdel(src)
return
diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm
index 065a77f1e3..1bad5048c4 100644
--- a/code/game/objects/structures/barsign.dm
+++ b/code/game/objects/structures/barsign.dm
@@ -42,9 +42,9 @@
if(!sign_type)
return
icon_state = sign_type
- to_chat(user, "You change the barsign.")
+ to_chat(user, span_notice("You change the barsign."))
else
- to_chat(user, "Access denied.")
+ to_chat(user, span_warning("Access denied."))
return
return ..()
diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm
index 284306c534..47d4f1ba6b 100644
--- a/code/game/objects/structures/bedsheet_bin.dm
+++ b/code/game/objects/structures/bedsheet_bin.dm
@@ -30,9 +30,9 @@ LINEN BINS
/obj/item/bedsheet/attackby(obj/item/I, mob/user)
if(is_sharp(I))
- user.visible_message("\The [user] begins cutting up [src] with [I].", "You begin cutting up [src] with [I].")
+ user.visible_message("\The [user] begins cutting up [src] with [I].", span_notice("You begin cutting up [src] with [I]."))
if(do_after(user, 50))
- to_chat(user, "You cut [src] into pieces!")
+ to_chat(user, span_notice("You cut [src] into pieces!"))
for(var/i in 1 to rand(2,5))
new /obj/item/reagent_containers/glass/rag(drop_location())
qdel(src)
@@ -194,12 +194,12 @@ LINEN BINS
I.loc = src
sheets.Add(I)
amount++
- to_chat(user, "You put [I] in [src].")
+ to_chat(user, span_notice("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
- to_chat(user, "You hide [I] among the sheets.")
+ to_chat(user, span_notice("You hide [I] among the sheets."))
/obj/structure/bedsheetbin/attack_hand(mob/user as mob)
if(amount >= 1)
@@ -215,11 +215,11 @@ LINEN BINS
B.loc = user.loc
user.put_in_hands(B)
- to_chat(user, "You take [B] out of [src].")
+ to_chat(user, span_notice("You take [B] out of [src]."))
if(hidden)
hidden.loc = user.loc
- to_chat(user, "[hidden] falls out of [B]!")
+ to_chat(user, span_notice("[hidden] falls out of [B]!"))
hidden = null
@@ -238,7 +238,7 @@ LINEN BINS
B = new /obj/item/bedsheet(loc)
B.loc = loc
- to_chat(user, "You telekinetically remove [B] from [src].")
+ to_chat(user, span_notice("You telekinetically remove [B] from [src]."))
update_icon()
if(hidden)
diff --git a/code/game/objects/structures/bonfire.dm b/code/game/objects/structures/bonfire.dm
index d5dd625c67..1b37697d96 100644
--- a/code/game/objects/structures/bonfire.dm
+++ b/code/game/objects/structures/bonfire.dm
@@ -43,7 +43,7 @@
R.use(1)
can_buckle = TRUE
buckle_require_restraints = TRUE
- to_chat(user, "You add a rod to \the [src].")
+ to_chat(user, span_notice("You add a rod to \the [src]."))
var/mutable_appearance/rod_underlay = mutable_appearance('icons/obj/structures.dmi', "bonfire_rod")
rod_underlay.pixel_y = 16
rod_underlay.appearance_flags = RESET_COLOR|PIXEL_SCALE|TILE_BOUND
@@ -51,7 +51,7 @@
if("Grill")
R.use(1)
grill = TRUE
- to_chat(user, "You add a grill to \the [src].")
+ to_chat(user, span_notice("You add a grill to \the [src]."))
update_icon()
else
return ..()
@@ -83,7 +83,7 @@
user.visible_message("[user] dismantles down \the [src].", "You dismantle \the [src].")
qdel(src)
else
- to_chat(user, "\The [src] is still burning. Extinguish it first if you want to dismantle it.")
+ to_chat(user, span_warning("\The [src] is still burning. Extinguish it first if you want to dismantle it."))
/obj/structure/bonfire/proc/get_fuel_amount()
var/F = 0
@@ -101,7 +101,7 @@
if(get_fuel_amount())
var/atom/movable/AM = pop(contents)
AM.forceMove(get_turf(src))
- to_chat(user, "You take \the [AM] out of \the [src] before it has a chance to burn away.")
+ to_chat(user, span_notice("You take \the [AM] out of \the [src] before it has a chance to burn away."))
update_icon()
/obj/structure/bonfire/permanent/remove_fuel(mob/user)
@@ -109,23 +109,23 @@
/obj/structure/bonfire/proc/add_fuel(atom/movable/new_fuel, mob/user)
if(get_fuel_amount() >= 10)
- to_chat(user, "\The [src] already has enough fuel!")
+ to_chat(user, span_warning("\The [src] already has enough fuel!"))
return FALSE
if(istype(new_fuel, /obj/item/stack/material/wood) || istype(new_fuel, /obj/item/stack/material/log) )
var/obj/item/stack/F = new_fuel
var/obj/item/stack/S = F.split(1)
if(S)
S.forceMove(src)
- to_chat(user, "You add \the [new_fuel] to \the [src].")
+ to_chat(user, span_warning("You add \the [new_fuel] to \the [src]."))
update_icon()
return TRUE
return FALSE
else
- to_chat(user, "\The [src] needs raw wood to burn, \a [new_fuel] won't work.")
+ to_chat(user, span_warning("\The [src] needs raw wood to burn, \a [new_fuel] won't work."))
return FALSE
/obj/structure/bonfire/permanent/add_fuel(mob/user)
- to_chat(user, "\The [src] has plenty of fuel and doesn't need more fuel.")
+ to_chat(user, span_warning("\The [src] has plenty of fuel and doesn't need more fuel."))
/obj/structure/bonfire/proc/consume_fuel(var/obj/item/stack/consumed_fuel)
if(!istype(consumed_fuel))
@@ -167,7 +167,7 @@
burning = TRUE
update_icon()
START_PROCESSING(SSobj, src)
- visible_message("\The [src] starts burning!")
+ visible_message(span_warning("\The [src] starts burning!"))
/obj/structure/bonfire/proc/burn()
var/turf/current_location = get_turf(src)
@@ -305,24 +305,24 @@
if(get_fuel_amount())
var/atom/movable/AM = pop(contents)
AM.forceMove(get_turf(src))
- to_chat(user, "You take \the [AM] out of \the [src] before it has a chance to burn away.")
+ to_chat(user, span_notice("You take \the [AM] out of \the [src] before it has a chance to burn away."))
update_icon()
/obj/structure/fireplace/proc/add_fuel(atom/movable/new_fuel, mob/user)
if(get_fuel_amount() >= 10)
- to_chat(user, "\The [src] already has enough fuel!")
+ to_chat(user, span_warning("\The [src] already has enough fuel!"))
return FALSE
if(istype(new_fuel, /obj/item/stack/material/wood) || istype(new_fuel, /obj/item/stack/material/log) )
var/obj/item/stack/F = new_fuel
var/obj/item/stack/S = F.split(1)
if(S)
S.forceMove(src)
- to_chat(user, "You add \the [new_fuel] to \the [src].")
+ to_chat(user, span_warning("You add \the [new_fuel] to \the [src]."))
update_icon()
return TRUE
return FALSE
else
- to_chat(user, "\The [src] needs raw wood to burn, \a [new_fuel] won't work.")
+ to_chat(user, span_warning("\The [src] needs raw wood to burn, \a [new_fuel] won't work."))
return FALSE
/obj/structure/fireplace/proc/consume_fuel(var/obj/item/stack/consumed_fuel)
@@ -361,7 +361,7 @@
burning = TRUE
update_icon()
START_PROCESSING(SSobj, src)
- visible_message("\The [src] starts burning!")
+ visible_message(span_warning("\The [src] starts burning!"))
/obj/structure/fireplace/proc/burn()
var/turf/current_location = get_turf(src)
diff --git a/code/game/objects/structures/catwalk.dm b/code/game/objects/structures/catwalk.dm
index 6fc6cd7efc..465fdd1bb1 100644
--- a/code/game/objects/structures/catwalk.dm
+++ b/code/game/objects/structures/catwalk.dm
@@ -76,7 +76,7 @@
/obj/structure/catwalk/proc/deconstruct(mob/user)
playsound(src, 'sound/items/Welder.ogg', 100, 1)
- to_chat(user, "Slicing \the [src] joints ...")
+ to_chat(user, span_notice("Slicing \the [src] joints ..."))
//Lattice would delete itself, but let's save ourselves a new obj
if(isopenspace(loc) && user.a_intent == I_HELP)
new /obj/structure/lattice/(src.loc)
@@ -97,21 +97,21 @@
hatch_open = !hatch_open
if(hatch_open)
playsound(src, 'sound/items/Crowbar.ogg', 100, 2)
- to_chat(user, "You pry open \the [src]'s maintenance hatch.")
+ to_chat(user, span_notice("You pry open \the [src]'s maintenance hatch."))
update_falling()
else
playsound(src, 'sound/items/Deconstruct.ogg', 100, 2)
- to_chat(user, "You shut \the [src]'s maintenance hatch.")
+ to_chat(user, span_notice("You shut \the [src]'s maintenance hatch."))
update_icon()
return
if(istype(C, /obj/item/stack/tile/floor) && !plated_tile)
var/obj/item/stack/tile/floor/ST = C
- to_chat(user, "Placing tile...")
+ to_chat(user, span_notice("Placing tile..."))
if (!do_after(user, 10))
return
if(!ST.use(1))
return
- to_chat(user, "You plate \the [src]")
+ to_chat(user, span_notice("You plate \the [src]"))
name = "plated catwalk"
plated_tile = C.type
src.add_fingerprint(user)
@@ -126,7 +126,7 @@
/obj/structure/catwalk/take_damage(amount)
health -= amount
if(health <= 0)
- visible_message("\The [src] breaks down!")
+ visible_message(span_warning("\The [src] breaks down!"))
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
new /obj/item/stack/rods(get_turf(src))
Destroy()
diff --git a/code/game/objects/structures/coathanger.dm b/code/game/objects/structures/coathanger.dm
index 2383a8a19c..3b55dd88b8 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
- to_chat(user, "You cannot hang [W] on [src]")
+ to_chat(user, span_notice("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.dm b/code/game/objects/structures/crates_lockers/__closets.dm
index 4193e56d33..e5c252bd17 100644
--- a/code/game/objects/structures/crates_lockers/__closets.dm
+++ b/code/game/objects/structures/crates_lockers/__closets.dm
@@ -228,7 +228,7 @@
if(is_animating_door)
return
if(!(opened ? close() : open()))
- to_chat(user, "It won't budge!")
+ to_chat(user, span_notice("It won't budge!"))
return
// this should probably use dump_contents()
@@ -280,11 +280,11 @@
user.visible_message("\The [user] begins securing \the [src] to the floor.", "You start securing \the [src] to the floor.")
if(do_after(user, 20 * W.toolspeed))
if(!src) return
- to_chat(user, "You [anchored? "un" : ""]secured \the [src]!")
+ to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
else
- to_chat(user, "You can't reach the anchoring bolts when the door is closed!")
+ to_chat(user, span_notice("You can't reach the anchoring bolts when the door is closed!"))
else if(opened)
if(istype(W, /obj/item/grab))
var/obj/item/grab/G = W
@@ -298,12 +298,12 @@
if(!WT.isOn())
return
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
playsound(src, WT.usesound, 50)
new /obj/item/stack/material/steel(loc)
for(var/mob/M in viewers(src))
- M.show_message("\The [src] has been cut apart by [user] with \the [WT].", 3, "You hear welding.", 2)
+ M.show_message(span_notice("\The [src] has been cut apart by [user] with \the [WT]."), 3, "You hear welding.", 2)
qdel(src)
return
if(istype(W, /obj/item/storage/laundry_basket) && W.contents.len)
@@ -311,9 +311,9 @@
var/turf/T = get_turf(src)
for(var/obj/item/I in LB.contents)
LB.remove_from_storage(I, T)
- user.visible_message("[user] empties \the [LB] into \the [src].", \
- "You empty \the [LB] into \the [src].", \
- "You hear rustling of clothes.")
+ user.visible_message(span_notice("[user] empties \the [LB] into \the [src]."), \
+ span_notice("You empty \the [LB] into \the [src]."), \
+ span_notice("You hear rustling of clothes."))
return
if(isrobot(user))
return
@@ -333,14 +333,14 @@
if(!WT.isOn())
return
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
if(do_after(user, 20 * S.toolspeed))
playsound(src, S.usesound, 50)
sealed = !sealed
update_icon()
for(var/mob/M in viewers(src))
- M.show_message("[src] has been [sealed?"sealed":"unsealed"] by [user.name].", 3)
+ M.show_message(span_warning("[src] has been [sealed?"sealed":"unsealed"] by [user.name]."), 3)
else
attack_hand(user)
return
@@ -362,7 +362,7 @@
return
step_towards(O, loc)
if(user != O)
- user.show_viewers("[user] stuffs [O] into [src]!")
+ user.show_viewers(span_danger("[user] stuffs [O] into [src]!"))
add_fingerprint(user)
return
@@ -375,7 +375,7 @@
return
if(!open())
- to_chat(user, "It won't budge!")
+ to_chat(user, span_notice("It won't budge!"))
/obj/structure/closet/attack_hand(mob/user as mob)
add_fingerprint(user)
@@ -385,7 +385,7 @@
/obj/structure/closet/attack_self_tk(mob/user as mob)
add_fingerprint(user)
if(!toggle())
- to_chat(usr, "It won't budge!")
+ to_chat(usr, span_notice("It won't budge!"))
/obj/structure/closet/verb/verb_toggleopen()
set src in oview(1)
@@ -404,9 +404,9 @@
add_fingerprint(usr)
toggle(usr)
else
- to_chat(usr, "This mob type can't use this verb.") //VOREStation Addition End
+ to_chat(usr, span_warning("This mob type can't use this verb.")) //VOREStation Addition End
else
- to_chat(usr, "This mob type can't use this verb.")
+ to_chat(usr, span_warning("This mob type can't use this verb."))
/obj/structure/closet/update_icon()
if(opened)
@@ -418,7 +418,7 @@
if(damage < STRUCTURE_MIN_DAMAGE_THRESHOLD)
return
user.do_attack_animation(src)
- visible_message("[user] [attack_message] the [src]!")
+ visible_message(span_danger("[user] [attack_message] the [src]!"))
dump_contents()
spawn(1) qdel(src)
return 1
@@ -437,9 +437,9 @@
escapee.setClickCooldown(100)
//okay, so the closet is either sealed or locked... resist!!!
- to_chat(escapee, "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)")
+ to_chat(escapee, span_warning("You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)"))
- visible_message("\The [src] begins to shake violently!")
+ visible_message(span_danger("\The [src] begins to shake violently!"))
breakout = 1 //can't think of a better way to do this right now.
for(var/i in 1 to (6*breakout_time * 2)) //minutes * 6 * 5seconds * 2
@@ -460,8 +460,8 @@
//Well then break it!
breakout = 0
- to_chat(escapee, "You successfully break out!")
- visible_message("\The [escapee] successfully broke out of \the [src]!")
+ to_chat(escapee, span_warning("You successfully break out!"))
+ visible_message(span_danger("\The [escapee] successfully broke out of \the [src]!"))
playsound(src, breakout_sound, 100, 1)
break_open()
animate_shake()
@@ -556,7 +556,7 @@
return
if(!(usr in src.contents))
- to_chat(usr, "You need to be inside \the [src] to do this.")
+ to_chat(usr, span_warning("You need to be inside \the [src] to do this."))
return
var/list/targets = list() //IF IT IS NOT BROKEN. DO NOT FIX IT.
@@ -570,7 +570,7 @@
targets += L
if(targets == 0)
- to_chat(src, "No eligible targets found.")
+ to_chat(src, span_notice("No eligible targets found."))
return
var/mob/living/target = tgui_input_list(usr, "Please select a target.", "Victim", targets)
@@ -579,11 +579,11 @@
return
if(!istype(target, /mob/living)) //Safety.
- to_chat(src, "You need to select a living target!")
+ to_chat(src, span_warning("You need to select a living target!"))
return
if (get_dist(src,target) >= 1 || get_dist(src,usr) >= 1) //in case they leave the locker
- to_chat(src, "You are no longer both in \the [src].")
+ to_chat(src, span_warning("You are no longer both in \the [src]."))
return
playsound(src, vore_sound, 25)
diff --git a/code/game/objects/structures/crates_lockers/closets/coffin.dm b/code/game/objects/structures/crates_lockers/closets/coffin.dm
index 53792c70c4..6f4cd019da 100644
--- a/code/game/objects/structures/crates_lockers/closets/coffin.dm
+++ b/code/game/objects/structures/crates_lockers/closets/coffin.dm
@@ -25,15 +25,15 @@
/obj/structure/closet/grave/attack_hand(mob/user as mob)
if(opened)
- visible_message("[user] starts to climb into \the [src.name].", \
- "You start to lower yourself into \the [src.name].")
+ visible_message(span_notice("[user] starts to climb into \the [src.name]."), \
+ span_notice("You start to lower yourself into \the [src.name]."))
if(do_after(user, 50))
user.forceMove(src.loc)
- visible_message("[user] climbs into \the [src.name].", \
- "You climb into \the [src.name].")
+ visible_message(span_notice("[user] climbs into \the [src.name]."), \
+ span_notice("You climb into \the [src.name]."))
else
- visible_message("[user] decides not to climb into \the [src.name].", \
- "You stop climbing into \the [src.name].")
+ visible_message(span_notice("[user] decides not to climb into \the [src.name]."), \
+ span_notice("You stop climbing into \the [src.name]."))
return
/obj/structure/closet/grave/CanPass(atom/movable/mover, turf/target)
@@ -43,19 +43,19 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.m_intent == "walk")
- to_chat(H, "You stop at the edge of \the [src.name].")
+ to_chat(H, span_warning("You stop at the edge of \the [src.name]."))
return FALSE
else
- to_chat(H, "You fall into \the [src.name]!")
+ to_chat(H, span_warning("You fall into \the [src.name]!"))
fall_in(H)
return TRUE
if(isrobot(M))
var/mob/living/silicon/robot/R = M
if(R.a_intent == I_HELP)
- to_chat(R, "You stop at the edge of \the [src.name].")
+ to_chat(R, span_warning("You stop at the edge of \the [src.name]."))
return FALSE
else
- to_chat(R, "You enter \the [src.name].")
+ to_chat(R, span_warning("You enter \the [src.name]."))
return TRUE
return TRUE //Everything else can move over the graves
@@ -69,17 +69,17 @@
/obj/structure/closet/grave/attackby(obj/item/W as obj, mob/user as mob)
if(src.opened)
if(istype(W, /obj/item/shovel))
- user.visible_message("[user] piles dirt into \the [src.name].", \
- "You start to pile dirt into \the [src.name].", \
- "You hear dirt being moved.")
+ user.visible_message(span_notice("[user] piles dirt into \the [src.name]."), \
+ span_notice("You start to pile dirt into \the [src.name]."), \
+ span_notice("You hear dirt being moved."))
if(do_after(user, 40 * W.toolspeed))
- user.visible_message("[user] pats down the dirt on top of \the [src.name].", \
- "You finish filling in \the [src.name].")
+ user.visible_message(span_notice("[user] pats down the dirt on top of \the [src.name]."), \
+ span_notice("You finish filling in \the [src.name]."))
close()
return
else
- user.visible_message("[user] stops filling in \the [src.name].", \
- "You change your mind and stop filling in \the [src.name].")
+ user.visible_message(span_notice("[user] stops filling in \the [src.name]."), \
+ span_notice("You change your mind and stop filling in \the [src.name]."))
return
if(istype(W, /obj/item/grab))
var/obj/item/grab/G = W
@@ -92,9 +92,9 @@
var/turf/T = get_turf(src)
for(var/obj/item/I in LB.contents)
LB.remove_from_storage(I, T)
- user.visible_message("[user] empties \the [LB] into \the [src].", \
- "You empty \the [LB] into \the [src].", \
- "You hear rustling of clothes.")
+ user.visible_message(span_notice("[user] empties \the [LB] into \the [src]."), \
+ span_notice("You empty \the [LB] into \the [src]."), \
+ span_notice("You hear rustling of clothes."))
return
if(isrobot(user))
return
@@ -106,33 +106,33 @@
else
if(istype(W, /obj/item/shovel))
if(user.a_intent == I_HURT) // Hurt intent means you're trying to kill someone, or just get rid of the grave
- user.visible_message("[user] begins to smoothe out the dirt of \the [src.name].", \
- "You start to smoothe out the dirt of \the [src.name].", \
- "You hear dirt being moved.")
+ user.visible_message(span_notice("[user] begins to smoothe out the dirt of \the [src.name]."), \
+ span_notice("You start to smoothe out the dirt of \the [src.name]."), \
+ span_notice("You hear dirt being moved."))
if(do_after(user, 40 * W.toolspeed))
- user.visible_message("[user] finishes smoothing out \the [src.name].", \
- "You finish smoothing out \the [src.name].")
+ user.visible_message(span_notice("[user] finishes smoothing out \the [src.name]."), \
+ span_notice("You finish smoothing out \the [src.name]."))
if(LAZYLEN(contents))
alpha = 40 // If we've got stuff inside, like maybe a person, just make it hard to see us
else
qdel(src) // Else, go away
return
else
- user.visible_message("[user] stops concealing \the [src.name].", \
- "You stop concealing \the [src.name].")
+ user.visible_message(span_notice("[user] stops concealing \the [src.name]."), \
+ span_notice("You stop concealing \the [src.name]."))
return
else
- user.visible_message("[user] begins to unearth \the [src.name].", \
- "You start to unearth \the [src.name].", \
- "You hear dirt being moved.")
+ user.visible_message(span_notice("[user] begins to unearth \the [src.name]."), \
+ span_notice("You start to unearth \the [src.name]."), \
+ span_notice("You hear dirt being moved."))
if(do_after(user, 40 * W.toolspeed))
- user.visible_message("[user] reaches the bottom of \the [src.name].", \
- "You finish digging out \the [src.name].")
+ user.visible_message(span_notice("[user] reaches the bottom of \the [src.name]."), \
+ span_notice("You finish digging out \the [src.name]."))
break_open()
return
else
- user.visible_message("[user] stops digging out \the [src.name].", \
- "You stop digging out \the [src.name].")
+ user.visible_message(span_notice("[user] stops digging out \the [src.name]."), \
+ span_notice("You stop digging out \the [src.name]."))
return
return
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 fb9eb977d4..c1753b2df9 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
@@ -48,7 +48,7 @@
if(large)
MouseDrop_T(G.affecting, user) //act like they were dragged onto the closet
else
- to_chat(user, "The locker is too small to stuff [G.affecting] into!")
+ to_chat(user, span_notice("The locker is too small to stuff [G.affecting] into!"))
if(isrobot(user))
return
if(W.loc != user) // This should stop mounted modules ending up outside the module.
@@ -60,7 +60,7 @@
var/obj/item/card/id/I = W.GetID()
if(src.broken)
- to_chat(user, "It appears to be broken.")
+ to_chat(user, span_warning("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)))
@@ -71,7 +71,7 @@
src.registered_name = I.registered_name
src.desc = "Owned by [I.registered_name]."
else
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
else if(istype(W, /obj/item/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()
@@ -80,7 +80,7 @@
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
playsound(src, "sparks", 50, 1)
else
- to_chat(user, "Access Denied")
+ to_chat(user, span_warning("Access Denied"))
update_icon()
/obj/structure/closet/secure_closet/personal/emag_act(var/remaining_charges, var/mob/user, var/visual_feedback, var/audible_feedback)
@@ -90,7 +90,7 @@
desc = "It appears to be broken."
update_icon()
if(visual_feedback)
- visible_message("[visual_feedback]", "[audible_feedback]")
+ visible_message(span_warning("[visual_feedback]"), span_warning("[audible_feedback]"))
return 1
/obj/structure/closet/secure_closet/personal/verb/reset()
@@ -102,9 +102,9 @@
if(ishuman(usr))
src.add_fingerprint(usr)
if (src.locked || !src.registered_name)
- to_chat(usr, "You need to unlock it first.")
+ to_chat(usr, span_warning("You need to unlock it first."))
else if (src.broken)
- to_chat(usr, "It appears to be broken.")
+ to_chat(usr, span_warning("It appears to be broken."))
else
if (src.opened)
if(!src.close())
diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
index 280016304b..5cbb4ec39f 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
@@ -35,23 +35,23 @@
/obj/structure/closet/secure_closet/proc/togglelock(mob/user as mob)
if(opened)
- to_chat(user, "Close the locker first.")
+ to_chat(user, span_notice("Close the locker first."))
return
if(broken)
- to_chat(user, "The locker appears to be broken.")
+ to_chat(user, span_warning("The locker appears to be broken."))
return
if(user.loc == src)
- to_chat(user, "You can't reach the lock from inside.")
+ to_chat(user, span_notice("You can't reach the lock from inside."))
return
if(allowed(user))
locked = !locked
playsound(src, 'sound/machines/click.ogg', 15, 1, -3)
for(var/mob/O in viewers(user, 3))
if((O.client && !( O.blinded )))
- to_chat(O, "The locker has been [locked ? null : "un"]locked by [user].")
+ to_chat(O, span_notice("The locker has been [locked ? null : "un"]locked by [user]."))
update_icon()
else
- to_chat(user, "Access Denied")
+ to_chat(user, span_notice("Access Denied"))
/obj/structure/closet/secure_closet/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_WRENCH))
@@ -62,11 +62,11 @@
user.visible_message("\The [user] begins securing \the [src] to the floor.", "You start securing \the [src] to the floor.")
if(do_after(user, 20 * W.toolspeed))
if(!src) return
- to_chat(user, "You [anchored? "un" : ""]secured \the [src]!")
+ to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
else
- to_chat(user, "You can't reach the anchoring bolts when the door is closed!")
+ to_chat(user, span_notice("You can't reach the anchoring bolts when the door is closed!"))
else if(opened)
if(istype(W, /obj/item/storage/laundry_basket))
return ..(W,user)
@@ -75,7 +75,7 @@
if(large)
MouseDrop_T(G.affecting, user) //act like they were dragged onto the closet
else
- to_chat(user, "The locker is too small to stuff [G.affecting] into!")
+ to_chat(user, span_notice("The locker is too small to stuff [G.affecting] into!"))
if(isrobot(user))
return
if(W.loc != user) // This should stop mounted modules ending up outside the module.
@@ -84,7 +84,7 @@
if(W)
W.forceMove(loc)
else if(istype(W, /obj/item/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."))
+ if(emag_act(INFINITY, user, span_danger("The locker has been sliced open by [user] with \an [W]!"), span_danger("You hear metal being sliced and sparks flying.")))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, loc)
spark_system.start()
@@ -104,9 +104,9 @@
if(visual_feedback)
visible_message(visual_feedback, audible_feedback)
else if(user && emag_source)
- visible_message("\The [src] has been broken by \the [user] with \an [emag_source]!", "You hear a faint electrical spark.")
+ visible_message(span_warning("\The [src] has been broken by \the [user] with \an [emag_source]!"), "You hear a faint electrical spark.")
else
- visible_message("\The [src] sparks and breaks open!", "You hear a faint electrical spark.")
+ visible_message(span_warning("\The [src] sparks and breaks open!"), "You hear a faint electrical spark.")
update_icon()
return 1
@@ -133,7 +133,7 @@
add_fingerprint(usr)
togglelock(usr)
else
- to_chat(usr, "This mob type can't use this verb.")
+ to_chat(usr, span_warning("This mob type can't use this verb."))
/obj/structure/closet/secure_closet/update_icon()
if(opened)
diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm
index 7b29053456..9f948265fd 100644
--- a/code/game/objects/structures/crates_lockers/closets/statue.dm
+++ b/code/game/objects/structures/crates_lockers/closets/statue.dm
@@ -106,7 +106,7 @@
/obj/structure/closet/statue/attackby(obj/item/I as obj, mob/user as mob)
health -= I.force
user.do_attack_animation(src)
- visible_message("[user] strikes [src] with [I].")
+ visible_message(span_danger("[user] strikes [src] with [I]."))
check_health()
/obj/structure/closet/statue/MouseDrop_T()
@@ -128,5 +128,5 @@
if (user)
user.dust()
dump_contents()
- visible_message("[src] shatters!.")
+ visible_message(span_warning("[src] shatters!."))
qdel(src)
diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm
index e271fbada6..85a2cbd58c 100644
--- a/code/game/objects/structures/crates_lockers/crates.dm
+++ b/code/game/objects/structures/crates_lockers/crates.dm
@@ -115,21 +115,21 @@
else if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = W
if(rigged)
- to_chat(user, "[src] is already rigged!")
+ to_chat(user, span_notice("[src] is already rigged!"))
return
if (C.use(1))
- to_chat(user , "You rig [src].")
+ to_chat(user , span_notice("You rig [src]."))
rigged = 1
return
else if(istype(W, /obj/item/radio/electropack))
if(rigged)
- to_chat(user , "You attach [W] to [src].")
+ to_chat(user , span_notice("You attach [W] to [src]."))
user.drop_item()
W.forceMove(src)
return
else if(W.has_tool_quality(TOOL_WIRECUTTER))
if(rigged)
- to_chat(user , "You cut away the wiring.")
+ to_chat(user , span_notice("You cut away the wiring."))
playsound(src, W.usesound, 100, 1)
rigged = 0
return
@@ -179,15 +179,15 @@
/obj/structure/closet/crate/secure/proc/togglelock(mob/user as mob)
if(src.opened)
- to_chat(user, "Close the crate first.")
+ to_chat(user, span_notice("Close the crate first."))
return
if(src.broken)
- to_chat(user, "The crate appears to be broken.")
+ to_chat(user, span_warning("The crate appears to be broken."))
return
if(src.allowed(user))
set_locked(!locked, user)
else
- to_chat(user, "Access Denied")
+ to_chat(user, span_notice("Access Denied"))
/obj/structure/closet/crate/secure/proc/set_locked(var/newlocked, mob/user = null)
if(locked == newlocked) return
@@ -195,7 +195,7 @@
locked = newlocked
if(user)
for(var/mob/O in viewers(user, 3))
- O.show_message( "The crate has been [locked ? null : "un"]locked by [user].", 1)
+ O.show_message( span_notice("The crate has been [locked ? null : "un"]locked by [user]."), 1)
update_icon()
/obj/structure/closet/crate/secure/verb/verb_togglelock()
@@ -210,7 +210,7 @@
src.add_fingerprint(usr)
src.togglelock(usr)
else
- to_chat(usr, "This mob type can't use this verb.")
+ to_chat(usr, span_warning("This mob type can't use this verb."))
/obj/structure/closet/crate/secure/attack_hand(mob/user as mob)
src.add_fingerprint(user)
@@ -234,7 +234,7 @@
playsound(src, "sparks", 60, 1)
locked = 0
broken = 1
- to_chat(user, "You unlock \the [src].")
+ to_chat(user, span_notice("You unlock \the [src]."))
update_icon()
return 1
diff --git a/code/game/objects/structures/crates_lockers/largecrate.dm b/code/game/objects/structures/crates_lockers/largecrate.dm
index bed36f8dfe..86b7c70f27 100644
--- a/code/game/objects/structures/crates_lockers/largecrate.dm
+++ b/code/game/objects/structures/crates_lockers/largecrate.dm
@@ -18,13 +18,13 @@
update_icon()
/obj/structure/largecrate/attack_hand(mob/user as mob)
- to_chat(user, "You need a crowbar to pry this open!")
+ to_chat(user, span_notice("You need a crowbar to pry this open!"))
return
/obj/structure/largecrate/attackby(obj/item/W as obj, mob/user as mob)
var/turf/T = get_turf(src)
if(!T)
- to_chat(user, "You can't open this here!")
+ to_chat(user, span_notice("You can't open this here!"))
if(W.has_tool_quality(TOOL_CROWBAR))
new /obj/item/stack/material/wood(src)
@@ -39,9 +39,9 @@
AMBLINAL.ghostjoin_icon()
active_ghost_pods |= AMBLINAL
//VOREStation Add End
- user.visible_message("[user] pries \the [src] open.", \
- "You pry open \the [src].", \
- "You hear splitting wood.")
+ user.visible_message(span_notice("[user] pries \the [src] open."), \
+ span_notice("You pry open \the [src]."), \
+ span_notice("You hear splitting wood."))
qdel(src)
else
return attack_hand(user)
diff --git a/code/game/objects/structures/crates_lockers/largecrate_vr.dm b/code/game/objects/structures/crates_lockers/largecrate_vr.dm
index f41922d289..f28b64121f 100644
--- a/code/game/objects/structures/crates_lockers/largecrate_vr.dm
+++ b/code/game/objects/structures/crates_lockers/largecrate_vr.dm
@@ -29,9 +29,9 @@
var/turf/T = get_turf(src)
for(var/atom/movable/AM in contents)
if(AM.simulated) AM.forceMove(T)
- user.visible_message("[user] pries \the [src] open.", \
- "You pry open \the [src].", \
- "You hear splitting wood.")
+ user.visible_message(span_notice("[user] pries \the [src] open."), \
+ span_notice("You pry open \the [src]."), \
+ span_notice("You hear splitting wood."))
qdel(src)
else
return attack_hand(user)
diff --git a/code/game/objects/structures/crates_lockers/vehiclecage.dm b/code/game/objects/structures/crates_lockers/vehiclecage.dm
index 9af560a474..7ea9a27ab4 100644
--- a/code/game/objects/structures/crates_lockers/vehiclecage.dm
+++ b/code/game/objects/structures/crates_lockers/vehiclecage.dm
@@ -11,7 +11,7 @@
/obj/structure/vehiclecage/examine(mob/user)
. = ..()
if(my_vehicle)
- . += "It seems to contain \the [my_vehicle]."
+ . += span_notice("It seems to contain \the [my_vehicle].")
/obj/structure/vehiclecage/Initialize()
. = ..()
@@ -24,21 +24,21 @@
update_icon()
/obj/structure/vehiclecage/attack_hand(mob/user as mob)
- to_chat(user, "You need a wrench to take this apart!")
+ to_chat(user, span_notice("You need a wrench to take this apart!"))
return
/obj/structure/vehiclecage/attackby(obj/item/W as obj, mob/user as mob)
var/turf/T = get_turf(src)
if(!T)
- to_chat(user, "You can't open this here!")
+ to_chat(user, span_notice("You can't open this here!"))
if(W.has_tool_quality(TOOL_WRENCH) && do_after(user, 60 * W.toolspeed, src))
playsound(src, W.usesound, 50, 1)
disassemble(W, user)
- user.visible_message("[user] begins loosening \the [src]'s bolts.")
+ user.visible_message(span_notice("[user] begins loosening \the [src]'s bolts."))
if(W.has_tool_quality(TOOL_WIRECUTTER) && do_after(user, 70 * W.toolspeed, src))
playsound(src, W.usesound, 50, 1)
disassemble(W, user)
- user.visible_message("[user] begins cutting \the [src]'s bolts.")
+ user.visible_message(span_notice("[user] begins cutting \the [src]'s bolts."))
else
return attack_hand(user)
@@ -72,9 +72,9 @@
/obj/structure/vehiclecage/proc/load_vehicle(var/obj/vehicle/V, mob/user as mob)
if(user)
- user.visible_message("[user] loads \the [V] into \the [src].", \
- "You load \the [V] into \the [src].", \
- "You hear creaking metal.")
+ user.visible_message(span_notice("[user] loads \the [V] into \the [src]."), \
+ span_notice("You load \the [V] into \the [src]."), \
+ span_notice("You hear creaking metal."))
V.forceMove(src)
@@ -91,9 +91,9 @@
AM.forceMove(T)
my_vehicle = null
- user.visible_message("[user] release \the [src].", \
- "You finally release \the [src].", \
- "You hear creaking metal.")
+ user.visible_message(span_notice("[user] release \the [src]."), \
+ span_notice("You finally release \the [src]."), \
+ span_notice("You hear creaking metal."))
qdel(src)
/obj/structure/vehiclecage/spacebike
diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm
index 714eb9eb53..73a0beb893 100644
--- a/code/game/objects/structures/curtains.dm
+++ b/code/game/objects/structures/curtains.dm
@@ -16,7 +16,7 @@
/obj/structure/curtain/bullet_act(obj/item/projectile/P, def_zone)
if(!P.nodamage)
- visible_message("[P] tears [src] down!")
+ visible_message(span_warning("[P] tears [src] down!"))
qdel(src)
else
..(P, def_zone)
@@ -40,9 +40,9 @@
/obj/structure/curtain/attackby(obj/item/P, mob/user)
if(P.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You start to cut the shower curtains.")
+ to_chat(user, span_notice("You start to cut the shower curtains."))
if(do_after(user, 10))
- to_chat(user, "You cut the shower curtains.")
+ to_chat(user, span_notice("You cut the shower curtains."))
new /obj/item/stack/material/plastic(src.loc, 3)
qdel(src)
return
diff --git a/code/game/objects/structures/dancepole_vr.dm b/code/game/objects/structures/dancepole_vr.dm
index 739d50643c..fee2538222 100644
--- a/code/game/objects/structures/dancepole_vr.dm
+++ b/code/game/objects/structures/dancepole_vr.dm
@@ -29,9 +29,9 @@
to_chat(user, span_blue("You unsecure \the [src]."))
if(O.has_tool_quality(TOOL_WRENCH))
playsound(src, O.usesound, 50, 1)
- to_chat(user, "Now disassembling \the [src]...")
+ to_chat(user, span_notice("Now disassembling \the [src]..."))
if(do_after(user, 30 * O.toolspeed))
if(!src) return
- to_chat(user, "You dissasembled \the [src]!")
+ to_chat(user, span_notice("You dissasembled \the [src]!"))
new /obj/item/stack/material/steel(src.loc, 1)
qdel(src)
diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm
index 1172af7616..86e68cf820 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/gun/energy/captain( src.loc )
- to_chat(user, "You deactivate the hover field built into the case.")
+ to_chat(user, span_notice("You deactivate the hover field built into the case."))
src.occupied = 0
src.add_fingerprint(user)
update_icon()
return
else
- to_chat(usr, "You kick the display case.")
+ to_chat(usr, span_warning("You kick the display case."))
for(var/mob/O in oviewers())
if ((O.client && !( O.blinded )))
- to_chat(O, "[usr] kicks the display case.")
+ to_chat(O, span_warning("[usr] kicks the display case."))
src.health -= 2
healthcheck()
return
diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm
index 9a20dcdcef..b6c5e2e946 100644
--- a/code/game/objects/structures/door_assembly.dm
+++ b/code/game/objects/structures/door_assembly.dm
@@ -178,7 +178,7 @@
user.visible_message("[user] welds the [glass] plating off the airlock assembly.", "You start to weld the [glass] plating off the airlock assembly.")
if(do_after(user, 4 SECONDS * WT.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src || !WT.isOn()) return
- to_chat(user, "You welded the [glass] plating off!")
+ to_chat(user, span_notice("You welded the [glass] plating off!"))
var/M = text2path("/obj/item/stack/material/[glass]")
new M(src.loc, 2)
glass = 0
@@ -186,18 +186,18 @@
user.visible_message("[user] welds the glass panel out of the airlock assembly.", "You start to weld the glass panel out of the airlock assembly.")
if(do_after(user, 4 SECONDS * WT.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src || !WT.isOn()) return
- to_chat(user, "You welded the glass panel out!")
+ to_chat(user, span_notice("You welded the glass panel out!"))
new /obj/item/stack/material/glass/reinforced(src.loc)
glass = 0
else if(!anchored)
user.visible_message("[user] dissassembles the airlock assembly.", "You start to dissassemble the airlock assembly.")
if(do_after(user, 4 SECONDS * WT.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src || !WT.isOn()) return
- to_chat(user, "You dissasembled the airlock assembly!")
+ to_chat(user, span_notice("You dissasembled the airlock assembly!"))
new /obj/item/stack/material/steel(src.loc, 4)
qdel (src)
else
- to_chat(user, "You need more welding fuel.")
+ to_chat(user, span_notice("You need more welding fuel."))
return
else if(W.has_tool_quality(TOOL_WRENCH) && state == 0)
@@ -209,19 +209,19 @@
if(do_after(user, 4 SECONDS * W.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src) return
- to_chat(user, "You [anchored? "un" : ""]secured the airlock assembly!")
+ to_chat(user, span_notice("You [anchored? "un" : ""]secured the airlock assembly!"))
anchored = !anchored
else if(istype(W, /obj/item/stack/cable_coil) && state == 0 && anchored)
var/obj/item/stack/cable_coil/C = W
if (C.get_amount() < 1)
- to_chat(user, "You need one length of coil to wire the airlock assembly.")
+ to_chat(user, span_warning("You need one length of coil to wire the airlock assembly."))
return
user.visible_message("[user] wires the airlock assembly.", "You start to wire the airlock assembly.")
if(do_after(user, 4 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE) && state == 0 && anchored)
if (C.use(1))
src.state = 1
- to_chat(user, "You wire the airlock.")
+ to_chat(user, span_notice("You wire the airlock."))
else if(W.has_tool_quality(TOOL_WIRECUTTER) && state == 1 )
playsound(src, W.usesound, 100, 1)
@@ -229,7 +229,7 @@
if(do_after(user, 4 SECONDS * W.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src) return
- to_chat(user, "You cut the airlock wires.!")
+ to_chat(user, span_notice("You cut the airlock wires.!"))
new/obj/item/stack/cable_coil(src.loc, 1)
src.state = 0
@@ -241,14 +241,14 @@
if(!src) return
user.drop_item()
W.loc = src
- to_chat(user, "You installed the airlock electronics!")
+ to_chat(user, span_notice("You installed the airlock electronics!"))
src.state = 2
src.electronics = W
else if(W.has_tool_quality(TOOL_CROWBAR) && state == 2 )
//This should never happen, but just in case I guess
if (!electronics)
- to_chat(user, "There was nothing to remove.")
+ to_chat(user, span_notice("There was nothing to remove."))
src.state = 1
return
@@ -257,7 +257,7 @@
if(do_after(user, 4 SECONDS * W.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src) return
- to_chat(user, "You removed the airlock electronics!")
+ to_chat(user, span_notice("You removed the airlock electronics!"))
src.state = 1
electronics.loc = src.loc
electronics = null
@@ -272,7 +272,7 @@
user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.")
if(do_after(user, 4 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE) && !glass)
if (S.use(1))
- to_chat(user, "You installed reinforced glass windows into the airlock assembly.")
+ to_chat(user, span_notice("You installed reinforced glass windows into the airlock assembly."))
glass = 1
else if(material_name)
// Ugly hack, will suffice for now. Need to fix it upstream as well, may rewrite mineral walls. ~Z
@@ -284,16 +284,16 @@
user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.")
if(do_after(user, 4 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE) && !glass)
if (S.use(2))
- to_chat(user, "You installed [material_display_name(material_name)] plating into the airlock assembly.")
+ to_chat(user, span_notice("You installed [material_display_name(material_name)] plating into the airlock assembly."))
glass = material_name
else if(W.has_tool_quality(TOOL_SCREWDRIVER) && state == 2 )
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now finishing the airlock.")
+ to_chat(user, span_notice("Now finishing the airlock."))
if(do_after(user, 4 SECONDS * W.toolspeed, src, exclusive = TASK_ALL_EXCLUSIVE))
if(!src) return
- to_chat(user, "You finish the airlock!")
+ to_chat(user, span_notice("You finish the airlock!"))
var/path
if(istext(glass))
path = text2path("/obj/machinery/door/airlock/[glass]")
diff --git a/code/game/objects/structures/droppod.dm b/code/game/objects/structures/droppod.dm
index d794a8829d..d529a42603 100644
--- a/code/game/objects/structures/droppod.dm
+++ b/code/game/objects/structures/droppod.dm
@@ -87,7 +87,7 @@
visible_message("\The [src] pops open!")
else
for(var/mob/M in src)
- to_chat(M, "You've landed! Open the hatch if you think it's safe! \The [src] has enough air to last for a while...")
+ to_chat(M, span_danger("You've landed! Open the hatch if you think it's safe! \The [src] has enough air to last for a while..."))
/obj/structure/drop_pod/proc/open_pod()
if(finished)
@@ -103,7 +103,7 @@
/obj/structure/drop_pod/attack_hand(mob/living/user)
if(istype(user) && (Adjacent(user) || (user in src)) && !user.incapacitated())
if(finished)
- to_chat(user, "Nothing left to do with it now. Maybe you can break it down into materials.")
+ to_chat(user, span_warning("Nothing left to do with it now. Maybe you can break it down into materials."))
else
open_pod()
user.visible_message("[user] opens \the [src]!","You open \the [src]!")
@@ -111,13 +111,13 @@
/obj/structure/drop_pod/attackby(obj/item/O, mob/user)
if(O.has_tool_quality(TOOL_WRENCH))
if(finished)
- to_chat(user, "You start breaking down \the [src].")
+ to_chat(user, span_notice("You start breaking down \the [src]."))
if(do_after(user, 10 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE))
new /obj/item/stack/material/plasteel(loc, 10)
playsound(user, O.usesound, 50, 1)
qdel(src)
else
- to_chat(user, "\The [src] hasn't been opened yet. Do that first.")
+ to_chat(user, span_warning("\The [src] hasn't been opened yet. Do that first."))
return ..()
/obj/structure/drop_pod/return_air()
diff --git a/code/game/objects/structures/electricchair.dm b/code/game/objects/structures/electricchair.dm
index 56ebe32b6d..a4b584e829 100644
--- a/code/game/objects/structures/electricchair.dm
+++ b/code/game/objects/structures/electricchair.dm
@@ -34,7 +34,7 @@
else
on = 1
icon_state = "echair1"
- to_chat(usr, "You switch [on ? "on" : "off"] [src].")
+ to_chat(usr, span_notice("You switch [on ? "on" : "off"] [src]."))
return
/obj/structure/bed/chair/e_chair/rotate_clockwise()
@@ -67,11 +67,11 @@
if(has_buckled_mobs())
for(var/mob/living/L as anything in buckled_mobs)
L.burn_skin(85)
- to_chat(L, "You feel a deep shock course through your body!")
+ to_chat(L, span_danger("You feel a deep shock course through your body!"))
sleep(1)
L.burn_skin(85)
L.Stun(600)
- visible_message("The electric chair went off!", "You hear a deep sharp shock!")
+ visible_message(span_danger("The electric chair went off!"), span_danger("You hear a deep sharp shock!"))
A.power_light = light
A.update_icon()
diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm
index aa85c0f245..3c160b70d7 100644
--- a/code/game/objects/structures/extinguisher.dm
+++ b/code/game/objects/structures/extinguisher.dm
@@ -28,15 +28,15 @@
user.remove_from_mob(O)
contents += O
has_extinguisher = O
- to_chat(user, "You place [O] in [src].")
+ to_chat(user, span_notice("You place [O] in [src]."))
else
opened = !opened
if(O.has_tool_quality(TOOL_WRENCH))
if(!has_extinguisher)
- to_chat(user, "You start to unwrench the extinguisher cabinet.")
+ to_chat(user, span_notice("You start to unwrench the extinguisher cabinet."))
playsound(src, O.usesound, 50, 1)
if(do_after(user, 15 * O.toolspeed))
- to_chat(user, "You unwrench the extinguisher cabinet.")
+ to_chat(user, span_notice("You unwrench the extinguisher cabinet."))
new /obj/item/frame/extinguisher_cabinet( src.loc )
qdel(src)
return
@@ -54,11 +54,11 @@
if (user.hand)
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
- to_chat(user, "You try to move your [temp.name], but cannot!")
+ to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
return
if(has_extinguisher)
user.put_in_hands(has_extinguisher)
- to_chat(user, "You take [has_extinguisher] from [src].")
+ to_chat(user, span_notice("You take [has_extinguisher] from [src]."))
has_extinguisher = null
opened = 1
else
@@ -68,7 +68,7 @@
/obj/structure/extinguisher_cabinet/attack_tk(mob/user)
if(has_extinguisher)
has_extinguisher.loc = loc
- to_chat(user, "You telekinetically remove [has_extinguisher] from [src].")
+ to_chat(user, span_notice("You telekinetically remove [has_extinguisher] from [src]."))
has_extinguisher = null
opened = 1
else
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index e8ac22d19b..d87f5bd630 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -34,7 +34,7 @@
if (isrobot(user) || locked)
if(istype(O, /obj/item/multitool))
- to_chat(user, "Resetting circuitry...")
+ to_chat(user, span_warning("Resetting circuitry..."))
playsound(src, 'sound/machines/lockreset.ogg', 50, 1)
if(do_after(user, 20 * O.toolspeed))
locked = 0
@@ -50,7 +50,7 @@
else
playsound(src, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time
if(W.force < 15)
- to_chat(user, "The cabinet's protective glass glances off the hit.")
+ to_chat(user, span_notice("The cabinet's protective glass glances off the hit."))
else
hitstaken++
if(hitstaken == 4)
@@ -68,7 +68,7 @@
fireaxe = O
user.remove_from_mob(O)
contents += O
- to_chat(user, "You place the fire axe back in the [name].")
+ to_chat(user, span_notice("You place the fire axe back in the [name]."))
update_icon()
else
if(smashed)
@@ -85,7 +85,7 @@
flick("[icon_state]closing", src)
return
else
- to_chat(user, "Resetting circuitry...")
+ to_chat(user, span_warning("Resetting circuitry..."))
playsound(src, 'sound/machines/lockenable.ogg', 50, 1)
if(do_after(user,20 * O.toolspeed))
locked = 1
@@ -101,14 +101,14 @@
// hasaxe = 1
if(locked)
- to_chat(user, "The cabinet won't budge!")
+ to_chat(user, span_warning("The cabinet won't budge!"))
return
if(open)
if(fireaxe)
user.put_in_hands(fireaxe)
fireaxe = null
- to_chat (user, "You take the fire axe from the [name].")
+ to_chat (user, span_notice("You take the fire axe from the [name]."))
add_fingerprint(user)
update_icon()
else
@@ -123,7 +123,7 @@
/obj/structure/fireaxecabinet/attack_tk(mob/user as mob)
if(open && fireaxe)
fireaxe.forceMove(loc)
- to_chat(user, "You telekinetically remove the fire axe.")
+ to_chat(user, span_notice("You telekinetically remove the fire axe."))
fireaxe = null
update_icon()
return
@@ -144,9 +144,9 @@
if (isrobot(usr) || locked || smashed)
if(locked)
- to_chat(usr, "The cabinet won't budge!")
+ to_chat(usr, span_warning("The cabinet won't budge!"))
else if(smashed)
- to_chat(usr, "The protective glass is broken!")
+ to_chat(usr, span_notice("The protective glass is broken!"))
return
toggle_close_open()
@@ -163,23 +163,23 @@
if(fireaxe)
usr.put_in_hands(fireaxe)
fireaxe = null
- to_chat(usr, "You take the Fire axe from the [name].")
+ to_chat(usr, span_notice("You take the Fire axe from the [name]."))
else
- to_chat(usr, "The [name] is empty.")
+ to_chat(usr, span_notice("The [name] is empty."))
else
- to_chat(usr, "The [name] is closed.")
+ to_chat(usr, span_notice("The [name] is closed."))
update_icon()
/obj/structure/fireaxecabinet/attack_ai(mob/user as mob)
if(smashed)
- to_chat(user, "The security of the cabinet is compromised.")
+ to_chat(user, span_warning("The security of the cabinet is compromised."))
return
else
locked = !locked
if(locked)
- to_chat(user, "Cabinet locked.")
+ to_chat(user, span_warning("Cabinet locked."))
else
- to_chat(user, "Cabinet unlocked.")
+ to_chat(user, span_notice("Cabinet unlocked."))
return
/obj/structure/fireaxecabinet/update_icon() //Template: fireaxe[has fireaxe][is opened][hits taken][is smashed]. If you want the opening or closing animations, add "opening" or "closing" right after the numbers
diff --git a/code/game/objects/structures/fitness.dm b/code/game/objects/structures/fitness.dm
index e90a2b2e35..096b495bd1 100644
--- a/code/game/objects/structures/fitness.dm
+++ b/code/game/objects/structures/fitness.dm
@@ -15,7 +15,7 @@
..()
return
if(user.nutrition < 20)
- to_chat(user, "You need more energy to use the punching bag. Go eat something.")
+ to_chat(user, span_warning("You need more energy to use the punching bag. Go eat something."))
else
if(user.a_intent == I_HURT)
user.setClickCooldown(user.get_attack_speed())
@@ -23,7 +23,7 @@
playsound(src, 'sound/effects/woodhit.ogg', 25, 1, -1)
user.do_attack_animation(src)
user.nutrition = user.nutrition - 5
- to_chat(user, "You [pick(hit_message)] \the [src].")
+ to_chat(user, span_warning("You [pick(hit_message)] \the [src]."))
/obj/structure/fitness/weightlifter
name = "weightlifting machine"
@@ -43,13 +43,13 @@
if(!istype(user))
return
if(user.loc != src.loc)
- to_chat(user, "You must be on the weight machine to use it.")
+ to_chat(user, span_warning("You must be on the weight machine to use it."))
return
if(user.nutrition < 50)
- to_chat(user, "You need more energy to lift weights. Go eat something.")
+ to_chat(user, span_warning("You need more energy to lift weights. Go eat something."))
return
if(being_used)
- to_chat(user, "The weight machine is already in use by somebody else.")
+ to_chat(user, span_warning("The weight machine is already in use by somebody else."))
return
else
being_used = 1
@@ -59,8 +59,8 @@
if(do_after(user, 20 + (weight * 10)))
playsound(src, 'sound/effects/weightdrop.ogg', 25, 1)
user.adjust_nutrition(weight * -10)
- to_chat(user, "You lift the weights [qualifiers[weight]].")
+ to_chat(user, span_notice("You lift the weights [qualifiers[weight]]."))
being_used = 0
else
- to_chat(user, "Against your previous judgement, perhaps working out is not for you.")
+ to_chat(user, span_notice("Against your previous judgement, perhaps working out is not for you."))
being_used = 0
diff --git a/code/game/objects/structures/fitness_vr.dm b/code/game/objects/structures/fitness_vr.dm
index 38b96ec8e8..bf8be53902 100644
--- a/code/game/objects/structures/fitness_vr.dm
+++ b/code/game/objects/structures/fitness_vr.dm
@@ -27,7 +27,7 @@
if(!can_climb(user))
return
- usr.visible_message("[user] starts climbing onto \the [src]!")
+ usr.visible_message(span_warning("[user] starts climbing onto \the [src]!"))
LAZYDISTINCTADD(climbers, user)
if(!do_after(user,(issmall(user) ? 20 : 34)))
@@ -43,7 +43,7 @@
else
usr.forceMove(get_turf(src))
- usr.visible_message("[user] climbed over \the [src]!")
+ usr.visible_message(span_warning("[user] climbed over \the [src]!"))
LAZYREMOVE(climbers, user)
/obj/structure/fitness/boxing_ropes/can_climb(var/mob/living/user, post_climb_check=0) //Sets it to keep people from climbing over into the next turf if it is occupied.
@@ -53,7 +53,7 @@
if(get_turf(user) == get_turf(src))
var/obj/occupied = neighbor_turf_impassable()
if(occupied)
- to_chat(user, "You can't climb there, there's \a [occupied] in the way.")
+ to_chat(user, span_danger("You can't climb there, there's \a [occupied] in the way."))
return 0
return 1
@@ -71,4 +71,4 @@
/turf/simulated/fitness
name = "Mat"
icon = 'icons/turf/floors_vr.dmi'
- icon_state = "fit_mat"
\ No newline at end of file
+ icon_state = "fit_mat"
diff --git a/code/game/objects/structures/flora/flora.dm b/code/game/objects/structures/flora/flora.dm
index 7b800cdb21..43c0dcbf9a 100644
--- a/code/game/objects/structures/flora/flora.dm
+++ b/code/game/objects/structures/flora/flora.dm
@@ -50,7 +50,7 @@
. += span_notice("\The [src] can be removed with \a [initial(tool.name)].")
/obj/structure/flora/proc/get_harvestable_desc()
- return "\The [src] seems to have something hanging from it."
+ return span_notice("\The [src] seems to have something hanging from it.")
/obj/structure/flora/attackby(var/obj/item/W, var/mob/living/user)
@@ -282,18 +282,18 @@
/obj/structure/flora/pottedplant/examine(mob/user)
. = ..()
if(in_range(user, src) && stored_item)
- . += "You can see something in there..."
+ . += span_filter_notice("You can see something in there...")
/obj/structure/flora/pottedplant/attackby(obj/item/I, mob/user)
if(issilicon(user))
return // Don't try to put modules in here, you're a borg. TODO: Inventory refactor to not be ass.
if(stored_item)
- to_chat(user, "[I] won't fit in. There already appears to be something in here...")
+ to_chat(user, span_notice("[I] won't fit in. There already appears to be something in here..."))
return
if(I.w_class > ITEMSIZE_TINY)
- to_chat(user, "[I] is too big to fit inside [src].")
+ to_chat(user, span_notice("[I] is too big to fit inside [src]."))
return
if(do_after(user, 10))
@@ -303,15 +303,15 @@
src.visible_message("[icon2html(src,viewers(src))] [icon2html(I,viewers(src))] [user] places [I] into [src].")
return
else
- to_chat(user, "You refrain from putting things into the plant pot.")
+ to_chat(user, span_notice("You refrain from putting things into the plant pot."))
return
/obj/structure/flora/pottedplant/attack_hand(mob/user)
if(!stored_item)
- to_chat(user, "You see nothing of interest in [src]...")
+ to_chat(user, span_filter_notice("You see nothing of interest in [src]..."))
else
if(do_after(user, 10))
- to_chat(user, "You find [icon2html(stored_item, user.client)] [stored_item] in [src]!")
+ to_chat(user, span_filter_notice("You find [icon2html(stored_item, user.client)] [stored_item] in [src]!"))
stored_item.forceMove(get_turf(src))
stored_item = null
..()
@@ -598,7 +598,7 @@
. = ..()
/obj/structure/flora/sif/tendrils/get_harvestable_desc()
- return "\The [src] seems to be growing over something."
+ return span_notice("\The [src] seems to be growing over something.")
/datum/category_item/catalogue/flora/frostbelle
name = "Sivian Flora - Frostbelle"
@@ -639,7 +639,7 @@
icon_state = initial(icon_state)
/obj/structure/flora/sif/frostbelle/get_harvestable_desc()
- return "\The [src] seems to be budding."
+ return span_notice("\The [src] seems to be budding.")
//Start of underwater plants
diff --git a/code/game/objects/structures/flora/trees.dm b/code/game/objects/structures/flora/trees.dm
index 21f80387f2..b54548c977 100644
--- a/code/game/objects/structures/flora/trees.dm
+++ b/code/game/objects/structures/flora/trees.dm
@@ -51,7 +51,7 @@
qdel(src)
return
- visible_message("\The [user] hits \the [src] with \the [W]!")
+ visible_message(span_danger("\The [user] hits \the [src] with \the [W]!"))
var/damage_to_do = W.force
if(!W.sharp && !W.edge)
@@ -64,7 +64,7 @@
if(damage_to_do > 5 && !indestructable)
adjust_health(-damage_to_do)
else
- to_chat(user, "\The [W] is ineffective at harming \the [src].")
+ to_chat(user, span_warning("\The [W] is ineffective at harming \the [src]."))
hit_animation()
user.setClickCooldown(user.get_attack_speed(W))
@@ -103,7 +103,7 @@
if(product && product_amount) // Make wooden logs.
var/obj/item/stack/material/M = new product(get_turf(src), product_amount)
M.update_icon()
- visible_message("\The [src] is felled!")
+ visible_message(span_danger("\The [src] is felled!"))
stump()
// Makes the tree into a mostly non-interactive stump.
diff --git a/code/game/objects/structures/ghost_pods/antagonist.dm b/code/game/objects/structures/ghost_pods/antagonist.dm
index e0504537db..f271d37586 100644
--- a/code/game/objects/structures/ghost_pods/antagonist.dm
+++ b/code/game/objects/structures/ghost_pods/antagonist.dm
@@ -18,17 +18,17 @@
if(M.mind)
M.mind.transfer_to(R)
// Description for new larva, so they understand what to expect.
- to_chat(M, "You are a Xenomorph Larva, freshly slithered out of their egg to serve the hive.")
- to_chat(M, "Be sure to carefully listen to your queen, as xenomorph egg spawns may act different to loner xenomorph spawns.")
- to_chat(M, "Remember, you are technically a antagonist. Be sure to learn the context of your existence via IC or ahelp to prevent headaches, and follow the orders of your queen to the letter.")
- to_chat(M, " Your life for the hive!")
+ to_chat(M, span_notice("You are a Xenomorph Larva, freshly slithered out of their egg to serve the hive."))
+ to_chat(M, span_notice("Be sure to carefully listen to your queen, as xenomorph egg spawns may act different to loner xenomorph spawns."))
+ to_chat(M, span_warning("Remember, you are technically a antagonist. Be sure to learn the context of your existence via IC or ahelp to prevent headaches, and follow the orders of your queen to the letter."))
+ to_chat(M, span_notice(" Your life for the hive!"))
R.ckey = M.ckey
- visible_message("\the [src] peels open, and a fresh larva slithers out!")
+ visible_message(span_warning("\the [src] peels open, and a fresh larva slithers out!"))
..()
/obj/structure/ghost_pod/automatic/xenomorph_egg/proc/healthcheck()
if(health <=0)
- visible_message("\the [src] splatters everywhere as it cracks open!")
+ visible_message(span_warning("\the [src] splatters everywhere as it cracks open!"))
playsound(src, 'sound/effects/slime_squish.ogg', 50, 1)
qdel(src)
return
diff --git a/code/game/objects/structures/ghost_pods/event_vr.dm b/code/game/objects/structures/ghost_pods/event_vr.dm
index 5f1060a9f7..17c6c3de90 100644
--- a/code/game/objects/structures/ghost_pods/event_vr.dm
+++ b/code/game/objects/structures/ghost_pods/event_vr.dm
@@ -79,7 +79,7 @@
var/finalized = "No"
if(jobban_isbanned(M, JOB_GHOSTROLES))
- to_chat(M, "You cannot inhabit this creature because you are banned from playing ghost roles.")
+ to_chat(M, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
reset_ghostpod()
return
@@ -90,7 +90,7 @@
while(finalized != "Yes" && M.client)
choice = tgui_input_list(M, "What type of predator do you want to play as?", "Maintpred Choice", possible_mobs)
if(!choice) //We probably pushed the cancel button on the mob selection. Let's just put the ghost pod back in the list.
- to_chat(M, "No mob selected, cancelling.")
+ to_chat(M, span_notice("No mob selected, cancelling."))
reset_ghostpod()
return
@@ -111,10 +111,10 @@
to_chat(M, "You are [newPred], somehow having gotten aboard the station in search of food. \
You are wary of environment around you, but you do feel rather peckish. Stick around dark, secluded places to avoid danger or, \
if you are cute enough, try to make friends with this place's inhabitants.")
- to_chat(M, "Please be advised, this role is NOT AN ANTAGONIST.")
- to_chat(M, "You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. You’re a weird spooky space monster, so the bar is probably not where you’d want to go if you intend to survive. Of course, you’re welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind.")
+ to_chat(M, span_critical("Please be advised, this role is NOT AN ANTAGONIST."))
+ to_chat(M, span_warning("You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. You’re a weird spooky space monster, so the bar is probably not where you’d want to go if you intend to survive. Of course, you’re welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind."))
newPred.ckey = M.ckey
- newPred.visible_message("[newPred] emerges from somewhere!")
+ newPred.visible_message(span_warning("[newPred] emerges from somewhere!"))
log_and_message_admins("successfully entered \a [src] and became a [newPred].")
qdel(src)
@@ -150,11 +150,11 @@
to_chat(M, "You can use shift + click on objects to disguise yourself as them, but your strikes are nearly useless when you are disguised. \
You can undisguise yourself by shift + clicking yourself, but disguise being switched, or turned on and off has a short cooldown. You can also ventcrawl, \
by using alt + click on the vent or scrubber.")
- to_chat(M, "Please be advised, this role is NOT AN ANTAGONIST.")
- to_chat(M, "You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. You’re a weird spooky space monster, so the bar is probably not where you’d want to go if you intend to survive. Of course, you’re welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind.")
+ to_chat(M, span_critical("Please be advised, this role is NOT AN ANTAGONIST."))
+ to_chat(M, span_warning("You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. You’re a weird spooky space monster, so the bar is probably not where you’d want to go if you intend to survive. Of course, you’re welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind."))
newMorph.ckey = M.ckey
- newMorph.visible_message("A morph appears to crawl out of somewhere.")
+ newMorph.visible_message(span_warning("A morph appears to crawl out of somewhere."))
log_and_message_admins("successfully entered \a [src] and became a Morph.")
qdel(src)
diff --git a/code/game/objects/structures/ghost_pods/ghost_pods.dm b/code/game/objects/structures/ghost_pods/ghost_pods.dm
index 76d54c95fc..6c10f000d3 100644
--- a/code/game/objects/structures/ghost_pods/ghost_pods.dm
+++ b/code/game/objects/structures/ghost_pods/ghost_pods.dm
@@ -88,7 +88,7 @@
/obj/structure/ghost_pod/ghost_activated/attack_ghost(var/mob/observer/dead/user)
//VOREStation Add Start
if(jobban_isbanned(user, JOB_GHOSTROLES))
- to_chat(user, "You cannot inhabit this creature because you are banned from playing ghost roles.")
+ to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
return
//No OOC notes
@@ -97,7 +97,7 @@
//VOREStation Add End
if(used)
- to_chat(user, "Another spirit appears to have gotten to \the [src] before you. Sorry.")
+ to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
var/choice = tgui_alert(user, "Are you certain you wish to activate this pod?", "Control Pod", list("Yes", "No"))
@@ -106,7 +106,7 @@
return
else if(used)
- to_chat(user, "Another spirit appears to have gotten to \the [src] before you. Sorry.")
+ to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
create_occupant(user)
diff --git a/code/game/objects/structures/ghost_pods/ghost_pods_vr.dm b/code/game/objects/structures/ghost_pods/ghost_pods_vr.dm
index 63a2475754..2a97db7473 100644
--- a/code/game/objects/structures/ghost_pods/ghost_pods_vr.dm
+++ b/code/game/objects/structures/ghost_pods/ghost_pods_vr.dm
@@ -12,7 +12,7 @@
/obj/structure/ghost_pod/manual/attack_ghost(var/mob/observer/dead/user)
if(jobban_isbanned(user, JOB_GHOSTROLES))
- to_chat(user, "You cannot inhabit this creature because you are banned from playing ghost roles.")
+ to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
return
//No OOC notes
@@ -23,11 +23,11 @@
return
if(!activated)
- to_chat(user, "\The [src] has not yet been activated. Sorry.")
+ to_chat(user, span_warning("\The [src] has not yet been activated. Sorry."))
return
if(used)
- to_chat(user, "Another spirit appears to have gotten to \the [src] before you. Sorry.")
+ to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
busy = TRUE
@@ -38,7 +38,7 @@
return
else if(used)
- to_chat(user, "Another spirit appears to have gotten to \the [src] before you. Sorry.")
+ to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
busy = FALSE
return
diff --git a/code/game/objects/structures/ghost_pods/human.dm b/code/game/objects/structures/ghost_pods/human.dm
index 96baab47cb..8a429a77fe 100644
--- a/code/game/objects/structures/ghost_pods/human.dm
+++ b/code/game/objects/structures/ghost_pods/human.dm
@@ -45,11 +45,11 @@
H.adjustCloneLoss(rand(1,5))
if(M.mind)
M.mind.transfer_to(H)
- to_chat(M, "You are a [occupant_type]!")
+ to_chat(M, span_notice("You are a [occupant_type]!"))
if(make_antag)
- to_chat(M, "Your intent may not be completely beneficial.")
+ to_chat(M, span_warning("Your intent may not be completely beneficial."))
H.ckey = M.ckey
- visible_message("As \the [src] opens, the pipes on \the [src] surge, before it grows dark.")
+ visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and became a [occupant_type].")
var/list/uniform_options
@@ -124,7 +124,7 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
-// visible_message("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!")
+// visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))
qdel(src)
@@ -173,11 +173,11 @@
H.adjustCloneLoss(rand(1,5))
if(M.mind)
M.mind.transfer_to(H)
- to_chat(M, "You are a [occupant_type]!")
+ to_chat(M, span_notice("You are a [occupant_type]!"))
if(make_antag)
- to_chat(M, "Your intent may not be completely beneficial.")
+ to_chat(M, span_warning("Your intent may not be completely beneficial."))
H.ckey = M.ckey
- visible_message("As \the [src] opens, the pipes on \the [src] surge, before it grows dark.")
+ visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and got a [occupant_type].")
var/list/uniform_options
@@ -246,4 +246,4 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
- visible_message("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!")
+ visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))
diff --git a/code/game/objects/structures/ghost_pods/mysterious.dm b/code/game/objects/structures/ghost_pods/mysterious.dm
index 58206a0c6b..8bc3df94ff 100644
--- a/code/game/objects/structures/ghost_pods/mysterious.dm
+++ b/code/game/objects/structures/ghost_pods/mysterious.dm
@@ -10,7 +10,7 @@
confirm_before_open = TRUE
/obj/structure/ghost_pod/manual/corgi/trigger()
- ..("\The [usr] places their hand on the rune!", "is attempting to summon a corgi.")
+ ..(span_warning("\The [usr] places their hand on the rune!"), "is attempting to summon a corgi.")
/obj/structure/ghost_pod/manual/corgi/create_occupant(var/mob/M)
lightning_strike(get_turf(src), cosmetic = TRUE)
@@ -18,9 +18,9 @@
var/mob/living/simple_mob/animal/passive/dog/corgi/R = new(get_turf(src))
if(M.mind)
M.mind.transfer_to(R)
- to_chat(M, "You are a Corgi! Woof!")
+ to_chat(M, span_notice("You are a Corgi! Woof!"))
R.ckey = M.ckey
- visible_message("With a bright flash of light, \the [src] disappears, and in its place stands a small corgi.")
+ visible_message(span_warning("With a bright flash of light, \the [src] disappears, and in its place stands a small corgi."))
log_and_message_admins("successfully touched \a [src] and summoned a corgi.")
..()
@@ -35,7 +35,7 @@
confirm_before_open = TRUE
/obj/structure/ghost_pod/manual/cursedblade/trigger()
- ..("\The [usr] attempts to pull out the sword!", "is activating a cursed blade.")
+ ..(span_warning("\The [usr] attempts to pull out the sword!"), "is activating a cursed blade.")
/obj/structure/ghost_pod/manual/cursedblade/create_occupant(var/mob/M)
density = FALSE
@@ -45,6 +45,6 @@
your body was reduced to ashes and your soul was cursed to remain trapped in the blade forever. \
Now it is up to you to decide whether you want to be a faithful companion, or a bitter prisoner of the blade.")
R.ghost_inhabit(M)
- visible_message("The blade shines brightly for a brief moment as [usr] pulls it out of the stone!")
+ visible_message(span_warning("The blade shines brightly for a brief moment as [usr] pulls it out of the stone!"))
log_and_message_admins("successfully acquired a cursed sword.")
..()
diff --git a/code/game/objects/structures/ghost_pods/silicon.dm b/code/game/objects/structures/ghost_pods/silicon.dm
index 86ec5e480b..dd68d9d4d2 100644
--- a/code/game/objects/structures/ghost_pods/silicon.dm
+++ b/code/game/objects/structures/ghost_pods/silicon.dm
@@ -13,7 +13,7 @@
needscharger = TRUE
/obj/structure/ghost_pod/manual/lost_drone/trigger()
- ..("\The [src] appears to be attempting to restart the robot contained inside.", "is attempting to open \a [src].")
+ ..(span_notice("\The [src] appears to be attempting to restart the robot contained inside."), "is attempting to open \a [src].")
/obj/structure/ghost_pod/manual/lost_drone/create_occupant(var/mob/M)
density = FALSE
@@ -30,7 +30,7 @@
definiton of 'the station' is where your pod is, and unless your laws say otherwise, the entity that released you \
from the pod is not a crewmember.")
R.ckey = M.ckey
- visible_message("As \the [src] opens, the eyes of the robot flicker as it is activated.")
+ visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
log_and_message_admins("successfully opened \a [src] and got a Lost Drone.")
..()
@@ -52,11 +52,11 @@
if(M.mind)
M.mind.transfer_to(R)
// Put this text here before ckey change so that their laws are shown below it, since borg login() shows it.
- to_chat(M, "You are a Gravekeeper Drone, activated once again to tend to the restful dead.")
+ to_chat(M, span_notice("You are a Gravekeeper Drone, activated once again to tend to the restful dead."))
to_chat(M, "Be sure to examine your currently loaded lawset closely. Remember, your \
definiton of 'your gravesite' is where your pod is.")
R.ckey = M.ckey
- visible_message("As \the [src] opens, the eyes of the robot flicker as it is activated.")
+ visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
..()
@@ -75,16 +75,16 @@
var/mob/living/silicon/robot/drone/swarm/R = new drone_type(get_turf(src))
if(M.mind)
M.mind.transfer_to(R)
- to_chat(M, "You are [R], the remnant of some distant species, mechanical or flesh, living or dead.")
+ to_chat(M, span_cult("You are [R], the remnant of some distant species, mechanical or flesh, living or dead."))
R.ckey = M.ckey
- visible_message("As \the [src] shudders, it glows before lifting itself with three shimmering limbs!")
+ visible_message(span_cult("As \the [src] shudders, it glows before lifting itself with three shimmering limbs!"))
spawn(3 SECONDS)
- to_chat(R,"Many of your tools are standard drone devices, however others provide you with particular benefits.")
- to_chat(R,"Unlike standard drones, you are capable of utilizing 'zero point wells', found in your 'spells' tab.")
- to_chat(R,"Here you will also find your replication ability(s), depending on the type of drone you are.")
- to_chat(R,"Gunners have a special anti-personnel gun capable of shocking or punching through armor with low damage.")
- to_chat(R,"Impalers have an energy-lance.")
- to_chat(R,"General drones have the unique ability to produce one of each of these two types of shells per generation.")
+ to_chat(R,span_notice("Many of your tools are standard drone devices, however others provide you with particular benefits."))
+ to_chat(R,span_notice("Unlike standard drones, you are capable of utilizing 'zero point wells', found in your 'spells' tab."))
+ to_chat(R,span_notice("Here you will also find your replication ability(s), depending on the type of drone you are."))
+ to_chat(R,span_notice("Gunners have a special anti-personnel gun capable of shocking or punching through armor with low damage."))
+ to_chat(R,span_notice("Impalers have an energy-lance."))
+ to_chat(R,span_notice("General drones have the unique ability to produce one of each of these two types of shells per generation."))
if(!QDELETED(src))
qdel(src)
diff --git a/code/game/objects/structures/ghost_pods/silicon_vr.dm b/code/game/objects/structures/ghost_pods/silicon_vr.dm
index 2562ac877a..72ed818f27 100644
--- a/code/game/objects/structures/ghost_pods/silicon_vr.dm
+++ b/code/game/objects/structures/ghost_pods/silicon_vr.dm
@@ -20,8 +20,8 @@
definiton of 'the station' is where your pod is, and unless your laws say otherwise, the entity that released you \
from the pod is not a crewmember.")
R.ckey = M.ckey
- visible_message("As \the [src] opens, the eyes of the robot flicker as it is activated.")
+ visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
log_and_message_admins("successfully opened \a [src] and got a Lost Drone.")
used = TRUE
- return TRUE
\ No newline at end of file
+ return TRUE
diff --git a/code/game/objects/structures/ghost_pods/survivor.dm b/code/game/objects/structures/ghost_pods/survivor.dm
index 197693a3cd..a97a201305 100644
--- a/code/game/objects/structures/ghost_pods/survivor.dm
+++ b/code/game/objects/structures/ghost_pods/survivor.dm
@@ -64,9 +64,9 @@
var/mob/living/carbon/human/H = new(src)
if(M.mind)
M.mind.transfer_to(H)
- to_chat(M, "You are a [occupant_type]!")
+ to_chat(M, span_notice("You are a [occupant_type]!"))
H.ckey = M.ckey
- visible_message("As \the [src] opens, the pipes on \the [src] surge, before it grows dark.")
+ visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and got a [occupant_type].")
var/list/uniform_options
@@ -144,4 +144,4 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
- visible_message("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!")
+ visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))
diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm
index 170199b9d3..708bba5edd 100644
--- a/code/game/objects/structures/girders.dm
+++ b/code/game/objects/structures/girders.dm
@@ -89,7 +89,7 @@
if(damage < STRUCTURE_MIN_DAMAGE_THRESHOLD)
return 0
user.do_attack_animation(src)
- visible_message("[user] [attack_message] the [src]!")
+ visible_message(span_danger("[user] [attack_message] the [src]!"))
spawn(1) dismantle()
return 1
@@ -111,7 +111,7 @@
damage = round(new_damage)
Proj.damage = outgoing_damage
- visible_message("\The [src] reflects \the [Proj]!")
+ visible_message(span_danger("\The [src] reflects \the [Proj]!"))
// Find a turf near or on the original location to bounce to
var/new_x = Proj.starting.x + pick(0, 0, 0, -1, 1, -2, 2)
@@ -149,58 +149,58 @@
if(W.has_tool_quality(TOOL_WRENCH) && state == 0)
if(anchored && !reinf_material)
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now disassembling the girder...")
+ to_chat(user, span_notice("Now disassembling the girder..."))
if(do_after(user,(35 + round(max_health/50)) * W.toolspeed))
if(!src) return
- to_chat(user, "You dissasembled the girder!")
+ to_chat(user, span_notice("You dissasembled the girder!"))
dismantle()
else if(!anchored)
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now securing the girder...")
+ to_chat(user, span_notice("Now securing the girder..."))
if(do_after(user, 40 * W.toolspeed, src))
- to_chat(user, "You secured the girder!")
+ to_chat(user, span_notice("You secured the girder!"))
reset_girder()
else if(istype(W, /obj/item/pickaxe/plasmacutter))
- to_chat(user, "Now slicing apart the girder...")
+ to_chat(user, span_notice("Now slicing apart the girder..."))
if(do_after(user,30 * W.toolspeed))
if(!src) return
- to_chat(user, "You slice apart the girder!")
+ to_chat(user, span_notice("You slice apart the girder!"))
dismantle()
else if(istype(W, /obj/item/pickaxe/diamonddrill))
- to_chat(user, "You drill through the girder!")
+ to_chat(user, span_notice("You drill through the girder!"))
dismantle()
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
if(state == 2)
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now unsecuring support struts...")
+ to_chat(user, span_notice("Now unsecuring support struts..."))
if(do_after(user,40 * W.toolspeed))
if(!src) return
- to_chat(user, "You unsecured the support struts!")
+ to_chat(user, span_notice("You unsecured the support struts!"))
state = 1
else if(anchored && !reinf_material)
playsound(src, W.usesound, 100, 1)
reinforcing = !reinforcing
- to_chat(user, "\The [src] can now be [reinforcing? "reinforced" : "constructed"]!")
+ to_chat(user, span_notice("\The [src] can now be [reinforcing? "reinforced" : "constructed"]!"))
else if(W.has_tool_quality(TOOL_WIRECUTTER) && state == 1)
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now removing support struts...")
+ to_chat(user, span_notice("Now removing support struts..."))
if(do_after(user,40 * W.toolspeed))
if(!src) return
- to_chat(user, "You removed the support struts!")
+ to_chat(user, span_notice("You removed the support struts!"))
reinf_material.place_dismantled_product(get_turf(src))
reinf_material = null
reset_girder()
else if(W.has_tool_quality(TOOL_CROWBAR) && state == 0 && anchored)
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now dislodging the girder...")
+ to_chat(user, span_notice("Now dislodging the girder..."))
if(do_after(user, 40 * W.toolspeed))
if(!src) return
- to_chat(user, "You dislodged the girder!")
+ to_chat(user, span_notice("You dislodged the girder!"))
displace()
else if(istype(W, /obj/item/stack/material))
@@ -225,7 +225,7 @@
/obj/structure/girder/proc/construct_wall(obj/item/stack/material/S, mob/user)
var/amount_to_use = reinf_material ? 1 : 2
if(S.get_amount() < amount_to_use)
- to_chat(user, "There isn't enough material here to construct a wall.")
+ to_chat(user, span_notice("There isn't enough material here to construct a wall."))
return 0
var/datum/material/M = name_to_material[S.default_type]
@@ -236,18 +236,18 @@
add_hiddenprint(usr)
if(M.integrity < 50)
- to_chat(user, "This material is too soft for use in wall construction.")
+ to_chat(user, span_notice("This material is too soft for use in wall construction."))
return 0
- to_chat(user, "You begin adding the plating...")
+ to_chat(user, span_notice("You begin adding the plating..."))
if(!do_after(user,40) || !S.use(amount_to_use))
return 1 //once we've gotten this far don't call parent attackby()
if(anchored)
- to_chat(user, "You added the plating!")
+ to_chat(user, span_notice("You added the plating!"))
else
- to_chat(user, "You create a false wall! Push on it to open or close the passage.")
+ to_chat(user, span_notice("You create a false wall! Push on it to open or close the passage."))
wall_fake = 1
var/turf/Tsrc = get_turf(src)
@@ -262,11 +262,11 @@
/obj/structure/girder/proc/reinforce_with_material(obj/item/stack/material/S, mob/user) //if the verb is removed this can be renamed.
if(reinf_material)
- to_chat(user, "\The [src] is already reinforced.")
+ to_chat(user, span_notice("\The [src] is already reinforced."))
return 0
if(S.get_amount() < 1)
- to_chat(user, "There isn't enough material here to reinforce the girder.")
+ to_chat(user, span_notice("There isn't enough material here to reinforce the girder."))
return 0
var/datum/material/M = name_to_material[S.default_type]
@@ -274,10 +274,10 @@
to_chat(user, "You cannot reinforce \the [src] with that; it is too soft.")
return 0
- to_chat(user, "Now reinforcing...")
+ to_chat(user, span_notice("Now reinforcing..."))
if (!do_after(user,40) || !S.use(1))
return 1 //don't call parent attackby() past this point
- to_chat(user, "You added reinforcement!")
+ to_chat(user, span_notice("You added reinforcement!"))
reinf_material = M
reinforce_girder()
@@ -296,7 +296,7 @@
/obj/structure/girder/attack_hand(mob/user as mob)
if (HULK in user.mutations)
- visible_message("[user] smashes [src] apart!")
+ visible_message(span_danger("[user] smashes [src] apart!"))
dismantle()
return
return ..()
@@ -341,19 +341,19 @@
/obj/structure/girder/cult/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_WRENCH))
playsound(src, W.usesound, 100, 1)
- to_chat(user, "Now disassembling the girder...")
+ to_chat(user, span_notice("Now disassembling the girder..."))
if(do_after(user,40 * W.toolspeed))
- to_chat(user, "You dissasembled the girder!")
+ to_chat(user, span_notice("You dissasembled the girder!"))
dismantle()
else if(istype(W, /obj/item/pickaxe/plasmacutter))
- to_chat(user, "Now slicing apart the girder...")
+ to_chat(user, span_notice("Now slicing apart the girder..."))
if(do_after(user,30 * W.toolspeed))
- to_chat(user, "You slice apart the girder!")
+ to_chat(user, span_notice("You slice apart the girder!"))
dismantle()
else if(istype(W, /obj/item/pickaxe/diamonddrill))
- to_chat(user, "You drill through the girder!")
+ to_chat(user, span_notice("You drill through the girder!"))
new /obj/effect/decal/remains/human(get_turf(src))
dismantle()
diff --git a/code/game/objects/structures/gravemarker.dm b/code/game/objects/structures/gravemarker.dm
index cecf607de1..f793a39bf0 100644
--- a/code/game/objects/structures/gravemarker.dm
+++ b/code/game/objects/structures/gravemarker.dm
@@ -87,11 +87,11 @@
/obj/structure/gravemarker/ex_act(severity)
switch(severity)
if(1.0)
- visible_message("\The [src] is blown apart!")
+ visible_message(span_danger("\The [src] is blown apart!"))
qdel(src)
return
if(2.0)
- visible_message("\The [src] is blown apart!")
+ visible_message(span_danger("\The [src] is blown apart!"))
if(prob(50))
dismantle()
else
@@ -101,7 +101,7 @@
/obj/structure/gravemarker/proc/damage(var/damage)
health -= damage
if(health <= 0)
- visible_message("\The [src] falls apart!")
+ visible_message(span_danger("\The [src] falls apart!"))
dismantle()
/obj/structure/gravemarker/proc/dismantle()
diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm
index a3d9d0025f..f9d80277a4 100644
--- a/code/game/objects/structures/grille.dm
+++ b/code/game/objects/structures/grille.dm
@@ -103,8 +103,8 @@
if(!shock(user, 90))
playsound(src, W.usesound, 100, 1)
anchored = !anchored
- user.visible_message("[user] [anchored ? "fastens" : "unfastens"] the grille.", \
- "You have [anchored ? "fastened the grille to" : "unfastened the grille from"] the floor.")
+ user.visible_message(span_notice("[user] [anchored ? "fastens" : "unfastens"] the grille."), \
+ span_notice("You have [anchored ? "fastened the grille to" : "unfastened the grille from"] the floor."))
return
//window placing begin //TODO CONVERT PROPERLY TO MATERIAL DATUM
@@ -129,23 +129,23 @@
else
dir_to_set = 4
else
- to_chat(user, "You can't reach.")
+ to_chat(user, span_notice("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)
- to_chat(user, "There is already a window facing this way there.")
+ to_chat(user, span_notice("There is already a window facing this way there."))
return
- to_chat(user, "You start placing the window.")
+ to_chat(user, span_notice("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.
- to_chat(user, "There is already a window facing this way there.")
+ to_chat(user, span_notice("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)
- to_chat(user, "You place the [WD] on [src].")
+ to_chat(user, span_notice("You place the [WD] on [src]."))
WD.update_icon()
return
//window placing end
@@ -213,7 +213,7 @@
..()
/obj/structure/grille/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
user.do_attack_animation(src)
health -= damage
spawn(1) healthcheck()
diff --git a/code/game/objects/structures/holoplant.dm b/code/game/objects/structures/holoplant.dm
index 01a0436be9..57f14bbc60 100644
--- a/code/game/objects/structures/holoplant.dm
+++ b/code/game/objects/structures/holoplant.dm
@@ -26,7 +26,7 @@
return
if(!anchored)
- to_chat(user,"\The [src] must be anchored before activation!")
+ to_chat(user,span_warning("\The [src] must be anchored before activation!"))
return
if(!plant)
@@ -103,4 +103,4 @@
/obj/machinery/holoplant/shipped
anchored = FALSE
/obj/machinery/holoplant/shipped/Initialize()
- . = ..()
\ No newline at end of file
+ . = ..()
diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm
index e7676d0403..536d99e260 100644
--- a/code/game/objects/structures/inflatable.dm
+++ b/code/game/objects/structures/inflatable.dm
@@ -76,7 +76,7 @@
if(!istype(W)) return
if (can_puncture(W))
- visible_message("[user] pierces [src] with [W]!")
+ visible_message(span_danger("[user] pierces [src] with [W]!"))
puncture()
if(W.damtype == BRUTE || W.damtype == BURN)
hit(W.force)
@@ -95,7 +95,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, span_notice("You inflate [src]."))
var/obj/structure/inflatable/R = new deploy_path(location)
src.transfer_fingerprints_to(R)
R.add_fingerprint(user)
@@ -103,7 +103,7 @@
/obj/structure/inflatable/proc/deflate()
playsound(src, 'sound/machines/hiss.ogg', 75, 1)
- //to_chat(user, "You slowly deflate the inflatable wall.")
+ //to_chat(user, span_notice("You slowly deflate the inflatable wall."))
visible_message("[src] slowly deflates.")
spawn(50)
var/obj/item/inflatable/R = new /obj/item/inflatable(loc)
@@ -132,16 +132,16 @@
health -= damage
user.do_attack_animation(src)
if(health <= 0)
- user.visible_message("[user] [attack_verb] open the [src]!")
+ user.visible_message(span_danger("[user] [attack_verb] open the [src]!"))
spawn(1) puncture()
else
- user.visible_message("[user] [attack_verb] at [src]!")
+ user.visible_message(span_danger("[user] [attack_verb] at [src]!"))
return 1
/obj/structure/inflatable/take_damage(var/damage)
health -= damage
if(health <= 0)
- visible_message("The [src] deflates!")
+ visible_message(span_danger("The [src] deflates!"))
spawn(1) puncture()
return 1
@@ -248,7 +248,7 @@
icon_state = "folded_wall_torn"
/obj/item/inflatable/torn/attack_self(mob/user)
- to_chat(user, "The inflatable wall is too torn to be inflated!")
+ to_chat(user, span_notice("The inflatable wall is too torn to be inflated!"))
add_fingerprint(user)
/obj/item/inflatable/door/torn
@@ -258,7 +258,7 @@
icon_state = "folded_door_torn"
/obj/item/inflatable/door/torn/attack_self(mob/user)
- to_chat(user, "The inflatable door is too torn to be inflated!")
+ to_chat(user, span_notice("The inflatable door is too torn to be inflated!"))
add_fingerprint(user)
/obj/item/storage/briefcase/inflatable
diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm
index 0f7dad89e2..5fe81e6318 100644
--- a/code/game/objects/structures/janicart.dm
+++ b/code/game/objects/structures/janicart.dm
@@ -36,37 +36,37 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
))
if(!is_type_in_typecache(I, equippable_item_whitelist))
- to_chat(user, "There's no room in [src] for [I].")
+ to_chat(user, span_warning("There's no room in [src] for [I]."))
return FALSE
if(!user.canUnEquip(I))
- to_chat(user, "[I] is stuck to your hand.")
+ to_chat(user, span_warning("[I] is stuck to your hand."))
return FALSE
if(istype(I, /obj/item/storage/bag/trash))
if(mybag)
- to_chat(user, "[src] already has \an [I].")
+ to_chat(user, span_warning("[src] already has \an [I]."))
return FALSE
mybag = I
setTguiIcon("mybag", mybag)
else if(istype(I, /obj/item/mop) || istype(I, /obj/item/mop/advanced))
if(mymop)
- to_chat(user, "[src] already has \an [I].")
+ to_chat(user, span_warning("[src] already has \an [I]."))
return FALSE
mymop = I
setTguiIcon("mymop", mymop)
else if(istype(I, /obj/item/reagent_containers/spray))
if(myspray)
- to_chat(user, "[src] already has \an [I].")
+ to_chat(user, span_warning("[src] already has \an [I]."))
return FALSE
myspray = I
setTguiIcon("myspray", myspray)
else if(istype(I, /obj/item/lightreplacer))
if(myreplacer)
- to_chat(user, "[src] already has \an [I].")
+ to_chat(user, span_warning("[src] already has \an [I]."))
return FALSE
myreplacer = I
setTguiIcon("myreplacer", myreplacer)
@@ -76,17 +76,17 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
signs++
setTguiIcon("signs", I)
else
- to_chat(user, "[src] can't hold any more signs.")
+ to_chat(user, span_notice("[src] can't hold any more signs."))
return FALSE
else
// This may look like duplicate code, but it's important that we don't call unEquip *and* warn the user if
// something horrible goes wrong. (this else is never supposed to happen)
- to_chat(user, "There's no room in [src] for [I].")
+ to_chat(user, span_warning("There's no room in [src] for [I]."))
return FALSE
user.drop_from_inventory(I, src)
update_icon()
- to_chat(user, "You put [I] into [src].")
+ to_chat(user, span_notice("You put [I] into [src]."))
return TRUE
/obj/structure/janitorialcart/proc/setTguiIcon(key, atom/A)
@@ -139,15 +139,15 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if (mybucket)
if(I.reagents.total_volume < I.reagents.maximum_volume)
if(mybucket.reagents.total_volume < 1)
- to_chat(user, "[mybucket] is empty!")
+ to_chat(user, span_notice("[mybucket] is empty!"))
else
mybucket.reagents.trans_to_obj(I, 5) //
- to_chat(user, "You wet [I] in [mybucket].")
+ to_chat(user, span_notice("You wet [I] in [mybucket]."))
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
else
- to_chat(user, "[I] can't absorb anymore liquid!")
+ to_chat(user, span_notice("[I] can't absorb anymore liquid!"))
else
- to_chat(user, "There is no bucket mounted here to dip [I] into!")
+ to_chat(user, span_notice("There is no bucket mounted here to dip [I] into!"))
return 1
else if (istype(I, /obj/item/reagent_containers/glass/bucket) && mybucket)
@@ -232,7 +232,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if("bag")
if(mybag)
usr.put_in_hands(mybag)
- to_chat(usr, "You take [mybag] from [src].")
+ to_chat(usr, span_notice("You take [mybag] from [src]."))
mybag = null
nullTguiIcon("mybag")
else if(is_type_in_typecache(I, equippable_item_whitelist))
@@ -240,7 +240,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if("mop")
if(mymop)
usr.put_in_hands(mymop)
- to_chat(usr, "You take [mymop] from [src].")
+ to_chat(usr, span_notice("You take [mymop] from [src]."))
mymop = null
nullTguiIcon("mymop")
else if(is_type_in_typecache(I, equippable_item_whitelist))
@@ -248,7 +248,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if("spray")
if(myspray)
usr.put_in_hands(myspray)
- to_chat(usr, "You take [myspray] from [src].")
+ to_chat(usr, span_notice("You take [myspray] from [src]."))
myspray = null
nullTguiIcon("myspray")
else if(is_type_in_typecache(I, equippable_item_whitelist))
@@ -256,7 +256,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if("replacer")
if(myreplacer)
usr.put_in_hands(myreplacer)
- to_chat(usr, "You take [myreplacer] from [src].")
+ to_chat(usr, span_notice("You take [myreplacer] from [src]."))
myreplacer = null
nullTguiIcon("myreplacer")
else if(is_type_in_typecache(I, equippable_item_whitelist))
@@ -268,20 +268,20 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
var/obj/item/clothing/suit/caution/sign = locate() in src
if(sign)
usr.put_in_hands(sign)
- to_chat(usr, "You take \a [sign] from [src].")
+ to_chat(usr, span_notice("You take \a [sign] from [src]."))
signs--
if(!signs)
nullTguiIcon("signs")
else
- to_chat(usr, "[src] doesn't have any signs left.")
+ to_chat(usr, span_notice("[src] doesn't have any signs left."))
if("bucket")
if(mybucket)
mybucket.forceMove(get_turf(usr))
- to_chat(usr, "You unmount [mybucket] from [src].")
+ to_chat(usr, span_notice("You unmount [mybucket] from [src]."))
mybucket = null
nullTguiIcon("mybucket")
else
- to_chat(usr, "((Drag and drop a mop bucket onto [src] to equip it.))")
+ to_chat(usr, span_notice("((Drag and drop a mop bucket onto [src] to equip it.))"))
return FALSE
else
return FALSE
@@ -402,14 +402,14 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if(istype(I, /obj/item/mop))
if(reagents.total_volume > 1)
reagents.trans_to_obj(I, 2)
- to_chat(user, "You wet [I] in the [callme].")
+ to_chat(user, span_notice("You wet [I] in the [callme]."))
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
else
- to_chat(user, "This [callme] is out of water!")
+ to_chat(user, span_notice("This [callme] is out of water!"))
else if(istype(I, /obj/item/key))
to_chat(user, "Hold [I] in one of your hands while you drive this [callme].")
else if(istype(I, /obj/item/storage/bag/trash))
- to_chat(user, "You hook the trashbag onto the [callme].")
+ to_chat(user, span_notice("You hook the trashbag onto the [callme]."))
user.drop_item()
I.loc = src
mybag = I
@@ -431,7 +431,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
step(src, direction)
update_mob()
else
- to_chat(user, "You'll need the keys in one of your hands to drive this [callme].")
+ to_chat(user, span_notice("You'll need the keys in one of your hands to drive this [callme]."))
/obj/structure/bed/chair/janicart/post_buckle_mob(mob/living/M)
@@ -490,7 +490,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
if(prob(85))
var/mob/living/L = pick(buckled_mobs)
return L.bullet_act(Proj)
- visible_message("[Proj] ricochets off the [callme]!")
+ visible_message(span_warning("[Proj] ricochets off the [callme]!"))
/obj/item/key
diff --git a/code/game/objects/structures/kitchen_spike.dm b/code/game/objects/structures/kitchen_spike.dm
index 4f8fbc9209..b13c51e14b 100644
--- a/code/game/objects/structures/kitchen_spike.dm
+++ b/code/game/objects/structures/kitchen_spike.dm
@@ -26,7 +26,7 @@
qdel(G)
qdel(M)
else
- to_chat(user, "They are too big for the spike, try something smaller!")
+ to_chat(user, span_danger("They are too big for the spike, try something smaller!"))
/obj/structure/kitchenspike/proc/spike(var/mob/living/victim)
if(!istype(victim))
diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm
index a2865afd66..d84c9b3e50 100644
--- a/code/game/objects/structures/lattice.dm
+++ b/code/game/objects/structures/lattice.dm
@@ -63,7 +63,7 @@
var/obj/item/weldingtool/WT = C.get_welder()
if(WT.welding == 1)
if(WT.remove_fuel(0, user))
- to_chat(user, "Slicing lattice joints ...")
+ to_chat(user, span_notice("Slicing lattice joints ..."))
new /obj/item/stack/rods(src.loc, 1) //VOREstation Edit: Return the same amount of rods used to build this.
qdel(src)
return
@@ -93,7 +93,7 @@
//Vorestation Edit: Moves upgrading lattices to their own proc for other stuff to call. Also makes them instant.
/obj/structure/lattice/proc/upgrade(obj/item/stack/rods/R, mob/user)
- to_chat(user, "You start connecting \the [R.name] to \the [src.name] ...")
+ to_chat(user, span_notice("You start connecting \the [R.name] to \the [src.name] ..."))
R.use(1)
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/ledges.dm b/code/game/objects/structures/ledges.dm
index 819395f2c3..301488f38c 100644
--- a/code/game/objects/structures/ledges.dm
+++ b/code/game/objects/structures/ledges.dm
@@ -54,7 +54,7 @@
if(!can_climb(user))
return
- usr.visible_message("[user] starts climbing onto \the [src]!")
+ usr.visible_message(span_warning("[user] starts climbing onto \the [src]!"))
LAZYDISTINCTADD(climbers, user)
if(!do_after(user,(issmall(user) ? 20 : 34)))
@@ -70,7 +70,7 @@
else
usr.forceMove(get_turf(src))
- usr.visible_message("[user] climbed over \the [src]!")
+ usr.visible_message(span_warning("[user] climbed over \the [src]!"))
LAZYREMOVE(climbers, user)
/obj/structure/ledge/can_climb(var/mob/living/user, post_climb_check=0)
@@ -80,6 +80,6 @@
if(get_turf(user) == get_turf(src))
var/obj/occupied = neighbor_turf_impassable()
if(occupied)
- to_chat(user, "You can't climb there, there's \a [occupied] in the way.")
+ to_chat(user, span_danger("You can't climb there, there's \a [occupied] in the way."))
return 0
- return 1
\ No newline at end of file
+ return 1
diff --git a/code/game/objects/structures/loot_piles.dm b/code/game/objects/structures/loot_piles.dm
index e0efdfe1ae..58d4cd781f 100644
--- a/code/game/objects/structures/loot_piles.dm
+++ b/code/game/objects/structures/loot_piles.dm
@@ -51,29 +51,29 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh
var/mob/living/L = user
if(busy)
- to_chat(L, "\The [src] is already being searched.")
+ to_chat(L, span_warning("\The [src] is already being searched."))
return
- L.visible_message("[user] searches through \the [src].","You search through \the [src].")
+ L.visible_message("[user] searches through \the [src].",span_notice("You search through \the [src]."))
//Do the searching
busy = TRUE
if(do_after(user,rand(4 SECONDS,6 SECONDS),src))
// The loot's all gone.
if(loot_depletion && loot_left <= 0)
- to_chat(L, "\The [src] has been picked clean.")
+ to_chat(L, span_warning("\The [src] has been picked clean."))
busy = FALSE
return
//You already searched this one
if( (user.ckey in searched_by) && !allow_multiple_looting)
- to_chat(L, "You can't find anything else vaguely useful in \the [src]. Another set of eyes might, however.")
+ to_chat(L, span_warning("You can't find anything else vaguely useful in \the [src]. Another set of eyes might, however."))
busy = FALSE
return
// You got unlucky.
if(chance_nothing && prob(chance_nothing))
- to_chat(L, "Nothing in this pile really catches your eye...")
+ to_chat(L, span_warning("Nothing in this pile really catches your eye..."))
searched_by |= user.ckey
busy = FALSE
return
@@ -104,11 +104,19 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh
if(loot)
searched_by |= user.ckey
loot.forceMove(get_turf(src))
- to_chat(L, "You found \a [loot]!")
+ var/final_message = "You found \a [loot]!"
+ switch(span)
+ if("notice")
+ final_message = span_notice(final_message)
+ if("cult")
+ final_message = span_cult(final_message)
+ if("alium")
+ final_message = span_alium(final_message)
+ to_chat(L, span_info(final_message))
if(loot_depletion)
loot_left--
if(loot_left <= 0)
- to_chat(L, "You seem to have gotten the last of the spoils inside \the [src].")
+ to_chat(L, span_warning("You seem to have gotten the last of the spoils inside \the [src]."))
if(delete_on_depletion)
qdel(src)
diff --git a/code/game/objects/structures/low_wall.dm b/code/game/objects/structures/low_wall.dm
index fb51c53a36..b642ea80ae 100644
--- a/code/game/objects/structures/low_wall.dm
+++ b/code/game/objects/structures/low_wall.dm
@@ -62,15 +62,15 @@
. = ..()
if(health == material.integrity)
- to_chat(user, "It seems to be in fine condition.")
+ to_chat(user, span_notice("It seems to be in fine condition."))
else
var/dam = health / material.integrity
if(dam <= 0.3)
- to_chat(user, "It's got a few dents and scratches.")
+ to_chat(user, span_notice("It's got a few dents and scratches."))
else if(dam <= 0.7)
- to_chat(user, "A few pieces of panelling have fallen off.")
+ to_chat(user, span_warning("A few pieces of panelling have fallen off."))
else
- to_chat(user, "It's nearly falling to pieces.")
+ to_chat(user, span_danger("It's nearly falling to pieces."))
/obj/structure/low_wall/attackby(var/obj/item/W, var/mob/user, var/hit_modifier, var/click_parameters)
src.add_fingerprint(user)
@@ -89,15 +89,15 @@
if(W.has_tool_quality(TOOL_WRENCH))
for(var/obj/structure/S in loc)
if(istype(S, /obj/structure/window))
- to_chat(user, "There is still a window on the low wall!")
+ to_chat(user, span_notice("There is still a window on the low wall!"))
return
else if(istype(S, /obj/structure/grille))
- to_chat(user, "There is still a grille on the low wall!")
+ to_chat(user, span_notice("There is still a grille on the low wall!"))
return
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
- to_chat(user, "Now disassembling the low wall...")
+ to_chat(user, span_notice("Now disassembling the low wall..."))
if(do_after(user, 40, src))
- to_chat(user, "You dissasembled the low wall!")
+ to_chat(user, span_notice("You dissasembled the low wall!"))
dismantle()
return
@@ -133,7 +133,7 @@
if(istype(O, /obj/structure/window))
var/obj/structure/window/W = O
if(Adjacent(W) && !W.anchored)
- to_chat(user, "You hoist [W] up onto [src].")
+ to_chat(user, span_notice("You hoist [W] up onto [src]."))
W.forceMove(loc)
return
if(isrobot(user))
@@ -163,16 +163,16 @@
/obj/structure/low_wall/proc/handle_rod_use(mob/user, obj/item/stack/rods/R)
if(!grille_type)
- to_chat(user, "This type of wall frame doesn't support grilles.")
+ to_chat(user, span_notice("This type of wall frame doesn't support grilles."))
return
for(var/obj/structure/window/WINDOW in loc)
if(WINDOW.dir == get_dir(src, user))
- to_chat(user, "There is a window in the way.")
+ to_chat(user, span_notice("There is a window in the way."))
return
if(R.get_amount() < 2)
- to_chat(user, "You need at least two rods to do this.")
+ to_chat(user, span_warning("You need at least two rods to do this."))
return
- to_chat(user, "Assembling grille...")
+ to_chat(user, span_notice("Assembling grille..."))
if(!do_after(user, 1 SECONDS, R, exclusive = TASK_ALL_EXCLUSIVE))
return
if(!R.use(2))
@@ -183,16 +183,16 @@
/obj/structure/low_wall/proc/handle_glass_use(mob/user, obj/item/stack/material/glass/G)
var/window_type = get_window_build_type(user, G)
if(!window_type)
- to_chat(user, "You can't build that type of window on this type of low wall.")
+ to_chat(user, span_notice("You can't build that type of window on this type of low wall."))
return
for(var/obj/structure/window/WINDOW in loc)
if(WINDOW.dir == get_dir(src, user))
- to_chat(user, "There is already a window here.")
+ to_chat(user, span_notice("There is already a window here."))
return
if(G.get_amount() < 4)
- to_chat(user, "You need at least four sheets of glass to do this.")
+ to_chat(user, span_warning("You need at least four sheets of glass to do this."))
return
- to_chat(user, "Assembling window...")
+ to_chat(user, span_notice("Assembling window..."))
if(!do_after(user, 4 SECONDS, G, exclusive = TASK_ALL_EXCLUSIVE))
return
if(!G.use(4))
@@ -277,7 +277,7 @@
dismantle()
/obj/structure/low_wall/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
user.do_attack_animation(src)
take_damage(damage)
return ..()
diff --git a/code/game/objects/structures/medical_stand_vr.dm b/code/game/objects/structures/medical_stand_vr.dm
index eae5364f15..453ede666d 100644
--- a/code/game/objects/structures/medical_stand_vr.dm
+++ b/code/game/objects/structures/medical_stand_vr.dm
@@ -80,7 +80,7 @@
qdel(tank)
if(breather)
breather.remove_from_mob(contained)
- src.visible_message("The mask rapidly retracts just before /the [src] is destroyed!")
+ src.visible_message(span_notice("The mask rapidly retracts just before /the [src] is destroyed!"))
qdel(contained)
contained = null
breather = null
@@ -133,12 +133,12 @@
update_icon()
return
usr.visible_message("\The [usr] begins carefully placing the mask onto [target].",
- "You begin carefully placing the mask onto [target].")
+ span_notice("You begin carefully placing the mask onto [target]."))
if(!do_mob(usr, target, 100) || !can_apply_to_target(target, usr))
return
// place mask and add fingerprints
- usr.visible_message("\The [usr] has placed \the mask on [target]'s mouth.",
- "You have placed \the mask on [target]'s mouth.")
+ usr.visible_message(span_notice("\The [usr] has placed \the mask on [target]'s mouth."),
+ span_notice("You have placed \the mask on [target]'s mouth."))
if(attach_mask(target))
src.add_fingerprint(usr)
update_icon()
@@ -152,14 +152,14 @@
attached = null
else if(ishuman(target))
usr.visible_message("\The [usr] begins inserting needle into [target]'s vein.",
- "You begin inserting needle into [target]'s vein.")
+ span_notice("You begin inserting needle into [target]'s vein."))
if(!do_mob(usr, target, 50))
- usr.visible_message("\The [usr]'s hand slips and pricks \the [target].",
- "Your hand slips and pricks \the [target].")
+ usr.visible_message(span_notice("\The [usr]'s hand slips and pricks \the [target]."),
+ span_notice("Your hand slips and pricks \the [target]."))
target.apply_damage(3, BRUTE, pick(BP_R_ARM, BP_L_ARM))
return
usr.visible_message("\The [usr] hooks \the [target] up to \the [src].",
- "You hook \the [target] up to \the [src].")
+ span_notice("You hook \the [target] up to \the [src]."))
attached = target
START_PROCESSING(SSobj,src)
update_icon()
@@ -181,7 +181,7 @@
switch (action_type)
if ("Remove tank")
if (!tank)
- to_chat(user, "There is no tank in \the [src]!")
+ to_chat(user, span_warning("There is no tank in \the [src]!"))
return
else if (tank && is_loosen)
user.visible_message("\The [user] removes \the [tank] from \the [src].", "You remove \the [tank] from \the [src].>")
@@ -194,12 +194,12 @@
return
if ("Toggle valve")
if (!tank)
- to_chat(user, "There is no tank in \the [src]!")
+ to_chat(user, span_warning("There is no tank in \the [src]!"))
return
else
if (valve_opened)
src.visible_message("\The [user] closes valve on \the [src]!",
- "You close valve on \the [src].")
+ span_notice("You close valve on \the [src]."))
if(breather)
breather.internals?.icon_state = "internal0"
breather.internal = null
@@ -207,7 +207,7 @@
update_icon()
else
src.visible_message("\The [user] opens valve on \the [src]!",
- "You open valve on \the [src].")
+ span_notice("You open valve on \the [src]."))
if(breather)
breather.internal = tank
breather.internals?.icon_state = "internal1"
@@ -227,7 +227,7 @@
set src in view(1)
if(!istype(usr, /mob/living))
- to_chat(usr, "You can't do that.")
+ to_chat(usr, span_warning("You can't do that."))
return
if(usr.incapacitated())
@@ -257,42 +257,42 @@
user = target
// Check target validity
if(!istype(target))
- to_chat(user, "\The [target] not compatible with machine.")
+ to_chat(user, span_warning("\The [target] not compatible with machine."))
return
if(!target.organs_by_name[BP_HEAD])
- to_chat(user, "\The [target] doesn't have a head.")
+ to_chat(user, span_warning("\The [target] doesn't have a head."))
return
if(!target.check_has_mouth())
- to_chat(user, "\The [target] doesn't have a mouth.")
+ to_chat(user, span_warning("\The [target] doesn't have a mouth."))
return
if(target.wear_mask && target != breather)
- to_chat(user, "\The [target] is already wearing a mask.")
+ to_chat(user, span_warning("\The [target] is already wearing a mask."))
return
if(target.head && (target.head.body_parts_covered & FACE))
- to_chat(user, "Remove their [target.head] first.")
+ to_chat(user, span_warning("Remove their [target.head] first."))
return
if(!tank)
- to_chat(user, "There is no tank in \the [src].")
+ to_chat(user, span_warning("There is no tank in \the [src]."))
return
if(is_loosen)
- to_chat(user, "Tighten \the nut with a wrench first.")
+ to_chat(user, span_warning("Tighten \the nut with a wrench first."))
return
if(!Adjacent(target))
return
//when there is a breather:
if(breather && target != breather)
- to_chat(user, "\The [src] is already in use.")
+ to_chat(user, span_warning("\The [src] is already in use."))
return
//Checking if breather is still valid
if(target == breather && target.wear_mask != contained)
- to_chat(user, "\The [target] is not using the supplied mask.")
+ to_chat(user, span_warning("\The [target] is not using the supplied mask."))
return
return 1
/obj/structure/medical_stand/attackby(var/obj/item/W, var/mob/user)
if(istype (W, /obj/item/tool))
if (valve_opened)
- to_chat(user, "Close the valve first.")
+ to_chat(user, span_warning("Close the valve first."))
return
if (tank)
if(!W.has_tool_quality(TOOL_WRENCH))
@@ -304,22 +304,22 @@
if (valve_opened)
START_PROCESSING(SSobj,src)
user.visible_message(
- "The [user] [is_loosen == TRUE ? "loosen" : "tighten"] the nut holding [tank] in place.",
- "You [is_loosen == TRUE ? "loosen" : "tighten"] the nut holding [tank] in place.")
+ span_notice("The [user] [is_loosen == TRUE ? "loosen" : "tighten"] the nut holding [tank] in place."),
+ span_notice("You [is_loosen == TRUE ? "loosen" : "tighten"] the nut holding [tank] in place."))
else
- to_chat(user, "There is no tank in \the [src].")
+ to_chat(user, span_warning("There is no tank in \the [src]."))
else if(istype(W, /obj/item/tank))
if(tank)
- to_chat(user, "\The [src] already has a tank installed!")
+ to_chat(user, span_warning("\The [src] already has a tank installed!"))
else if(!is_loosen)
- to_chat(user, "Loosen the nut with a wrench first.")
+ to_chat(user, span_warning("Loosen the nut with a wrench first."))
else
user.drop_item()
W.forceMove(src)
tank = W
- user.visible_message("\The [user] attaches \the [tank] to \the [src].", "You attach \the [tank] to \the [src].")
+ user.visible_message("\The [user] attaches \the [tank] to \the [src].", span_notice("You attach \the [tank] to \the [src]."))
src.add_fingerprint(user)
update_icon()
@@ -345,12 +345,12 @@
. += "The IV drip is [mode ? "injecting" : "taking blood"]."
. += "It is set to transfer [transfer_amount]u of chemicals per cycle."
if(beaker.reagents && beaker.reagents.total_volume)
- . += "Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid."
+ . += span_notice("Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid.")
else
- . += "Attached is an empty [beaker]."
- . += "[attached ? attached : "No one"] is hooked up to it."
+ . += span_notice("Attached is an empty [beaker].")
+ . += span_notice("[attached ? attached : "No one"] is hooked up to it.")
else
- . += "There is no vessel."
+ . += span_notice("There is no vessel.")
if(tank)
if (!is_loosen)
@@ -359,7 +359,7 @@
if (tank.distribute_pressure == 0)
. += "Use wrench to replace tank."
else
- . += "There is no tank."
+ . += span_notice("There is no tank.")
/obj/structure/medical_stand/process()
//Gas Stuff
@@ -441,4 +441,3 @@
spawn_type = /obj/item/tank/anesthetic
mask_type = /obj/item/clothing/mask/breath/medical
is_loosen = FALSE
-
diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm
index b549c06518..db3284c760 100644
--- a/code/game/objects/structures/mirror.dm
+++ b/code/game/objects/structures/mirror.dm
@@ -54,20 +54,20 @@
if(!glass)
playsound(src, I.usesound, 50, 1)
if(do_after(user, 20 * I.toolspeed))
- to_chat(user, "You unfasten the frame.")
+ to_chat(user, span_notice("You unfasten the frame."))
new /obj/item/frame/mirror( src.loc )
qdel(src)
return
if(I.has_tool_quality(TOOL_WRENCH))
if(shattered && glass)
- to_chat(user, "The broken glass falls out.")
+ to_chat(user, span_notice("The broken glass falls out."))
icon_state = "mirror_frame"
glass = !glass
new /obj/item/material/shard( src.loc )
return
if(!shattered && glass)
playsound(src, I.usesound, 50, 1)
- to_chat(user, "You remove the glass.")
+ to_chat(user, span_notice("You remove the glass."))
glass = !glass
icon_state = "mirror_frame"
new /obj/item/stack/material/glass( src.loc, 2 )
@@ -77,15 +77,15 @@
if(!glass)
var/obj/item/stack/material/glass/G = I
if (G.get_amount() < 2)
- to_chat(user, "You need two sheets of glass to add them to the frame.")
+ to_chat(user, span_warning("You need two sheets of glass to add them to the frame."))
return
- to_chat(user, "You start to add the glass to the frame.")
+ to_chat(user, span_notice("You start to add the glass to the frame."))
if(do_after(user, 20))
if (G.use(2))
shattered = 0
glass = 1
icon_state = "mirror"
- to_chat(user, "You add the glass to the frame.")
+ to_chat(user, span_notice("You add the glass to the frame."))
return
if(shattered && glass)
@@ -93,11 +93,11 @@
return
if(prob(I.force * 2))
- visible_message("[user] smashes [src] with [I]!")
+ visible_message(span_warning("[user] smashes [src] with [I]!"))
if(glass)
shatter()
else
- visible_message("[user] hits [src] with [I]!")
+ visible_message(span_warning("[user] hits [src] with [I]!"))
playsound(src, 'sound/effects/Glasshit.ogg', 70, 1)
/obj/structure/mirror/attack_generic(var/mob/user, var/damage)
@@ -108,11 +108,11 @@
return 0
if(damage)
- user.visible_message("[user] smashes [src]!")
+ user.visible_message(span_danger("[user] smashes [src]!"))
if(glass)
shatter()
else
- user.visible_message("[user] hits [src] and bounces off!")
+ user.visible_message(span_danger("[user] hits [src] and bounces off!"))
return 1
// The following mirror is ~special~.
@@ -141,4 +141,4 @@
vox.name = vox.real_name
raiders.update_access(vox)
qdel(user)
- ..()
\ No newline at end of file
+ ..()
diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm
index ddd9db102c..f0ac25b537 100644
--- a/code/game/objects/structures/mop_bucket.dm
+++ b/code/game/objects/structures/mop_bucket.dm
@@ -24,8 +24,8 @@ GLOBAL_LIST_BOILERPLATE(all_mopbuckets, /obj/structure/mopbucket)
/obj/structure/mopbucket/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/mop) || istype(I, /obj/item/soap) || istype(I, /obj/item/reagent_containers/glass/rag)) //VOREStation Edit - "Allows soap and rags to be used on mopbuckets"
if(reagents.total_volume < 1)
- to_chat(user, "\The [src] is out of water!")
+ to_chat(user, span_warning("\The [src] is out of water!"))
else
reagents.trans_to_obj(I, 5)
- to_chat(user, "You wet \the [I] in \the [src].")
+ to_chat(user, span_notice("You wet \the [I] in \the [src]."))
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm
index b929222cf6..5cb4e5c707 100644
--- a/code/game/objects/structures/morgue.dm
+++ b/code/game/objects/structures/morgue.dm
@@ -189,7 +189,7 @@
if (user != O)
for(var/mob/B in viewers(user, 3))
if ((B.client && !( B.blinded )))
- to_chat(B, "\The [user] stuffs [O] into [src]!")
+ to_chat(B, span_warning("\The [user] stuffs [O] into [src]!"))
return
@@ -220,7 +220,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium)
/obj/structure/morgue/crematorium/attack_hand(mob/user as mob)
if (cremating)
- to_chat(usr, "It's locked.")
+ to_chat(usr, span_warning("It's locked."))
return
if ((src.connected) && (src.locked == 0))
for(var/atom/movable/A as mob|obj in src.connected.loc)
@@ -284,7 +284,7 @@ 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, span_warning("You hear a hollow crackle."))
return
else
@@ -293,7 +293,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium)
return
for (var/mob/M in viewers(src))
- to_chat(M, "You hear a roar as the crematorium activates.")
+ to_chat(M, span_warning("You hear a roar as the crematorium activates."))
cremating = 1
locked = 1
@@ -348,4 +348,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, span_warning("Access denied."))
diff --git a/code/game/objects/structures/morgue_vr.dm b/code/game/objects/structures/morgue_vr.dm
index 366f216089..4d341a1e56 100644
--- a/code/game/objects/structures/morgue_vr.dm
+++ b/code/game/objects/structures/morgue_vr.dm
@@ -11,7 +11,7 @@
if(contents.len <= 0)
for (var/mob/M in viewers(src))
- M.show_message("You hear a hollow crackle.", 1)
+ M.show_message(span_warning("You hear a hollow crackle."), 1)
return
else
if(!isemptylist(src.search_contents_for(/obj/item/disk/nuclear)))
@@ -20,17 +20,17 @@
for(var/I in contents)
if(!(I in allowed_items))
- to_chat(user, "\The [src] cannot cremate while there are items inside!")
+ to_chat(user, span_notice("\The [src] cannot cremate while there are items inside!"))
return
if(istype(I, /mob/living))
var/mob/living/cremated = I
for(var/Z in cremated.contents)
if(!(Z in allowed_items))
- to_chat(user, "\The [src] cannot cremate while there are items inside!")
+ to_chat(user, span_notice("\The [src] cannot cremate while there are items inside!"))
return
for (var/mob/M in viewers(src))
- M.show_message("You hear a roar as the crematorium activates.", 1)
+ M.show_message(span_warning("You hear a roar as the crematorium activates."), 1)
cremating = 1
locked = 1
@@ -56,4 +56,4 @@
cremating = 0
locked = 0
playsound(src, 'sound/machines/ding.ogg', 50, 1)
- return
\ No newline at end of file
+ return
diff --git a/code/game/objects/structures/pillows.dm b/code/game/objects/structures/pillows.dm
index 44b3e0882d..9f251db31d 100644
--- a/code/game/objects/structures/pillows.dm
+++ b/code/game/objects/structures/pillows.dm
@@ -21,7 +21,7 @@
/obj/item/bedsheet/pillow/attackby(var/obj/item/component, mob/user as mob)
if (istype(component,src))
- to_chat(user, "You assemble a pillow pile!")
+ to_chat(user, span_notice("You assemble a pillow pile!"))
user.drop_item()
qdel(component)
var/turf/T = get_turf(src)
@@ -29,7 +29,7 @@
user.drop_from_inventory(src)
qdel(src)
else
- to_chat(user, "You can't assemble a pillow pile out of mismatched stuff, it'd look hideous!")
+ to_chat(user, span_notice("You can't assemble a pillow pile out of mismatched stuff, it'd look hideous!"))
//Pillow Piles, they're piles of pillows! layer = BELOW_MOB_LAYER
@@ -62,18 +62,18 @@
return
/obj/structure/bed/pillowpile/attack_hand(mob/user)
- to_chat(user, "Now disassembling the large pillow pile...")
+ to_chat(user, span_notice("Now disassembling the large pillow pile..."))
if(do_after(user, 30))
if(!src) return
- to_chat(user, "You dissasembled the large pillow pile!")
+ to_chat(user, span_notice("You dissasembled the large pillow pile!"))
new sourcepillow(src.loc)
qdel(src)
/obj/structure/bed/pillowpilefront/attack_hand(mob/user)
- to_chat(user, "Now disassembling the front of the pillow pile...")
+ to_chat(user, span_notice("Now disassembling the front of the pillow pile..."))
if(do_after(user, 30))
if(!src) return
- to_chat(user, "You dissasembled the the front of the pillow pile!")
+ to_chat(user, span_notice("You dissasembled the the front of the pillow pile!"))
new sourcepillow(src.loc)
qdel(src)
@@ -257,4 +257,3 @@
)
time = 60
category = CAT_MISC
-
diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm
index ae26157f39..0686a3d05d 100644
--- a/code/game/objects/structures/plasticflaps.dm
+++ b/code/game/objects/structures/plasticflaps.dm
@@ -19,9 +19,9 @@
/obj/structure/plasticflaps/attackby(obj/item/P, mob/user)
if(P.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, P.usesound, 50, 1)
- to_chat(user, "You start to cut the plastic flaps.")
+ to_chat(user, span_notice("You start to cut the plastic flaps."))
if(do_after(user, 10 * P.toolspeed))
- to_chat(user, "You cut the plastic flaps.")
+ to_chat(user, span_notice("You cut the plastic flaps."))
new /obj/item/stack/material/plastic(src.loc, 4)
qdel(src)
return
@@ -65,4 +65,4 @@
name = "airtight plastic flaps"
desc = "Heavy duty, airtight, plastic flaps. Have extra safety installed, preventing passage of living beings."
can_atmos_pass = ATMOS_PASS_NO
- can_pass_lying = FALSE
\ No newline at end of file
+ can_pass_lying = FALSE
diff --git a/code/game/objects/structures/props/alien_props.dm b/code/game/objects/structures/props/alien_props.dm
index 38f0b1b893..f1a3502ee8 100644
--- a/code/game/objects/structures/props/alien_props.dm
+++ b/code/game/objects/structures/props/alien_props.dm
@@ -25,19 +25,19 @@
name = "alien dispenser"
desc = "This looks like it dispenses... something?"
icon_state = "dispenser"
- interaction_message = "You don't see any mechanism to operate this. Probably for the best."
+ interaction_message = span_warning("You don't see any mechanism to operate this. Probably for the best.")
/obj/structure/prop/alien/pod
name = "alien pod"
desc = "This seems to be a container for something."
icon_state = "experiment"
- interaction_message = "You don't see any mechanism to open this thing. Probably for the best."
+ interaction_message = span_warning("You don't see any mechanism to open this thing. Probably for the best.")
/obj/structure/prop/alien/pod/open
name = "opened alien pod"
desc = "At one point, this probably contained something interesting..."
icon_state = "experiment-open"
- interaction_message = "You don't see any mechanism to close this thing."
+ interaction_message = span_warning("You don't see any mechanism to close this thing.")
// Obtained by scanning both a void core and void cell.
@@ -89,7 +89,7 @@
name = "void core"
icon_state = "core"
desc = "An alien machine that seems to be producing energy seemingly out of nowhere."
- interaction_message = "Messing with something that makes energy out of nowhere seems very unwise."
+ interaction_message = span_warning("Messing with something that makes energy out of nowhere seems very unwise.")
catalogue_data = list(/datum/category_item/catalogue/anomalous/precursor_a/alien_void_core)
/obj/item/prop/alien
diff --git a/code/game/objects/structures/props/alien_props_vr.dm b/code/game/objects/structures/props/alien_props_vr.dm
index ffad6aa1e5..8ec7a10651 100644
--- a/code/game/objects/structures/props/alien_props_vr.dm
+++ b/code/game/objects/structures/props/alien_props_vr.dm
@@ -3,15 +3,15 @@
desc = "The console flashes what appear to be symbols you've never seen before, intermixed with human writing moving too fast to comprehend."
icon = 'icons/obj/abductor_vr.dmi'
icon_state = "console-c"
- interaction_message = "The screen flashes an 'access denied' message at you. Perhaps for the best."
+ interaction_message = span_warning("The screen flashes an 'access denied' message at you. Perhaps for the best.")
/obj/structure/prop/alien/pod/hybrid
name = "hybrid pod"
desc = "This seems to be a container for something."
icon = 'icons/obj/abductor_vr.dmi'
icon_state = "experiment"
- interaction_message = "You don't see any mechanism to open this thing. Probably for the best."
+ interaction_message = span_warning("You don't see any mechanism to open this thing. Probably for the best.")
/obj/structure/prop/alien/dispenser/twoway
icon = 'icons/obj/abductor_vr.dmi'
- icon_state = "dispenser_2way"
\ No newline at end of file
+ icon_state = "dispenser_2way"
diff --git a/code/game/objects/structures/props/beam_prism.dm b/code/game/objects/structures/props/beam_prism.dm
index 7b62ea6c60..98f16a6a59 100644
--- a/code/game/objects/structures/props/beam_prism.dm
+++ b/code/game/objects/structures/props/beam_prism.dm
@@ -24,7 +24,7 @@
var/dialID = null
var/obj/structure/prop/prismcontrol/remote_dial = null
- interaction_message = "The prismatic turret seems to be able to rotate."
+ interaction_message = span_notice("The prismatic turret seems to be able to rotate.")
/obj/structure/prop/prism/Initialize()
if(degrees_from_north)
@@ -44,17 +44,17 @@
..()
if(rotation_lock)
- to_chat(user, "\The [src] is locked at its current bearing.")
+ to_chat(user, span_warning("\The [src] is locked at its current bearing."))
return
if(external_control_lock)
- to_chat(user, "\The [src]'s motors resist your efforts to rotate it. You may need to find some form of controller.")
+ to_chat(user, span_warning("\The [src]'s motors resist your efforts to rotate it. You may need to find some form of controller."))
return
var/confirm = tgui_alert(usr, "Do you want to try to rotate \the [src]?", "[name]", list("Yes", "No"))
if(confirm != "Yes")
visible_message(\
- "[user.name] decides not to try turning \the [src].",\
- "You decide not to try turning \the [src].")
+ span_notice("[user.name] decides not to try turning \the [src]."),\
+ span_notice("You decide not to try turning \the [src]."))
return
var/new_bearing
@@ -62,7 +62,7 @@
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]", 0, 360, 0)
new_bearing = round(new_bearing)
if(new_bearing <= -1 || new_bearing > 360)
- to_chat(user, "Rotating \the [src] [new_bearing] degrees would be a waste of time.")
+ to_chat(user, span_warning("Rotating \the [src] [new_bearing] degrees would be a waste of time."))
return
else
var/choice = tgui_input_list(usr, "What point do you want to set \the [src] to?", "[name]", compass_directions)
@@ -118,7 +118,7 @@
/obj/structure/prop/prism/bullet_act(var/obj/item/projectile/Proj)
if(istype(Proj, redirect_type))
- visible_message("\The [src] redirects \the [Proj]!")
+ visible_message(span_danger("\The [src] redirects \the [Proj]!"))
flick("[initial(icon_state)]+glow", src)
var/new_x = (1 * round(10 * cos(degrees_from_north - 90))) + x //Vectors vectors vectors.
@@ -149,7 +149,7 @@
density = FALSE
anchored = TRUE
- interaction_message = "The dial pulses as your hand nears it."
+ interaction_message = span_notice("The dial pulses as your hand nears it.")
var/list/my_turrets = list()
var/dialID = null
@@ -159,12 +159,12 @@
var/confirm = tgui_alert(usr, "Do you want to try to rotate \the [src]?", "[name]", list("Yes", "No"))
if(confirm != "Yes")
visible_message(\
- "[user.name] decides not to try turning \the [src].",\
- "You decide not to try turning \the [src].")
+ span_notice("[user.name] decides not to try turning \the [src]."),\
+ span_notice("You decide not to try turning \the [src]."))
return
if(!my_turrets || !my_turrets.len)
- to_chat(user, "\The [src] doesn't seem to do anything.")
+ to_chat(user, span_notice("\The [src] doesn't seem to do anything."))
return
var/free_rotate = 1
@@ -179,7 +179,7 @@
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]", 0, 360, 0)
new_bearing = round(new_bearing)
if(new_bearing <= -1 || new_bearing > 360)
- to_chat(user, "Rotating \the [src] [new_bearing] degrees would be a waste of time.")
+ to_chat(user, span_warning("Rotating \the [src] [new_bearing] degrees would be a waste of time."))
return
else
var/choice = tgui_input_list(usr, "What point do you want to set \the [src] to?", "[name]", compass_directions)
@@ -188,11 +188,11 @@
confirm = tgui_alert(usr, "Are you certain you want to rotate \the [src]?", "[name]", list("Yes", "No"))
if(confirm != "Yes")
visible_message(\
- "[user.name] decides not to try turning \the [src].",\
- "You decide not to try turning \the [src].")
+ span_notice("[user.name] decides not to try turning \the [src]."),\
+ span_notice("You decide not to try turning \the [src]."))
return
- to_chat(user, "\The [src] clicks into place.")
+ to_chat(user, span_notice("\The [src] clicks into place."))
for(var/obj/structure/prop/prism/P in my_turrets)
P.rotate_auto(new_bearing)
diff --git a/code/game/objects/structures/props/nest.dm b/code/game/objects/structures/props/nest.dm
index ba16b0b055..9f4a219883 100644
--- a/code/game/objects/structures/props/nest.dm
+++ b/code/game/objects/structures/props/nest.dm
@@ -5,7 +5,7 @@
icon_state = "bonfire"
density = TRUE
anchored = TRUE
- interaction_message = "You feel like you shouldn't be sticking your nose into a wild animal's den."
+ interaction_message = span_warning("You feel like you shouldn't be sticking your nose into a wild animal's den.")
var/disturbance_spawn_chance = 20
var/last_spawn
@@ -54,7 +54,7 @@
var/mob/living/L = new spawn_choice(spawnpoint)
if(den_faction)
L.faction = den_faction
- visible_message("\The [L] crawls out of \the [src].")
+ visible_message(span_warning("\The [L] crawls out of \the [src]."))
den_mobs += L
tally++
diff --git a/code/game/objects/structures/props/projectile_lock.dm b/code/game/objects/structures/props/projectile_lock.dm
index 5c3fcd2ba0..ecde254c43 100644
--- a/code/game/objects/structures/props/projectile_lock.dm
+++ b/code/game/objects/structures/props/projectile_lock.dm
@@ -37,7 +37,7 @@
var/timing = 0
var/time_limit = 1500 // In ticks. Ten is one second.
- interaction_message = "The object remains inert to your touch."
+ interaction_message = span_notice("The object remains inert to your touch.")
/obj/structure/prop/lock/projectile/bullet_act(var/obj/item/projectile/Proj)
if(!istype(Proj, projectile_key) || timing)
@@ -45,7 +45,7 @@
if(istype(Proj, /obj/item/projectile/beam/heavylaser/cannon) || istype(Proj, /obj/item/projectile/beam/emitter) || (Proj.damage >= 80 && Proj.damtype == BURN))
toggle_lock()
- visible_message("\The [src] [enabled ? "disengages" : "engages"] its locking mechanism.")
+ visible_message(span_notice("\The [src] [enabled ? "disengages" : "engages"] its locking mechanism."))
if(timed)
timing = 1
diff --git a/code/game/objects/structures/props/puzzledoor.dm b/code/game/objects/structures/props/puzzledoor.dm
index 074b0bed7f..6ccad1e21d 100644
--- a/code/game/objects/structures/props/puzzledoor.dm
+++ b/code/game/objects/structures/props/puzzledoor.dm
@@ -28,11 +28,11 @@
/obj/machinery/door/blast/puzzle/bullet_act(var/obj/item/projectile/Proj)
if(!istype(Proj, /obj/item/projectile/test))
- visible_message("\The [src] is completely unaffected by \the [Proj].")
+ visible_message(span_cult("\The [src] is completely unaffected by \the [Proj]."))
qdel(Proj) //No piercing. No.
/obj/machinery/door/blast/puzzle/ex_act(severity)
- visible_message("\The [src] is completely unaffected by the blast.")
+ visible_message(span_cult("\The [src] is completely unaffected by the blast."))
return
/obj/machinery/door/blast/puzzle/Initialize()
@@ -57,7 +57,7 @@
if(check_locks())
force_toggle(1, user)
else
- to_chat(user, "\The [src] does not respond to your touch.")
+ to_chat(user, span_notice("\The [src] does not respond to your touch."))
/obj/machinery/door/blast/puzzle/attackby(obj/item/C as obj, mob/user as mob)
if(istype(C, /obj/item))
@@ -65,14 +65,14 @@
if(istype(C,/obj/item/material/twohanded/fireaxe))
var/obj/item/material/twohanded/fireaxe/F = C
if(!F.wielded)
- to_chat(user, "You need to be wielding \the [F] to do that.")
+ to_chat(user, span_warning("You need to be wielding \the [F] to do that."))
return
if(check_locks())
force_toggle(1, user)
else
- to_chat(user, "[src]'s arcane workings resist your effort.")
+ to_chat(user, span_notice("[src]'s arcane workings resist your effort."))
return
else if(src.density && (user.a_intent == I_HURT))
@@ -80,10 +80,10 @@
user.setClickCooldown(user.get_attack_speed(W))
if(W.damtype == BRUTE || W.damtype == BURN)
user.do_attack_animation(src)
- user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.")
+ user.visible_message(span_danger("\The [user] hits \the [src] with \the [W] with no visible effect."))
else if(istype(C, /obj/item/plastique))
- to_chat(user, "On contacting \the [src], a flash of light envelops \the [C] as it is turned to ash. Oh.")
+ to_chat(user, span_danger("On contacting \the [src], a flash of light envelops \the [C] as it is turned to ash. Oh."))
qdel(C)
return 0
diff --git a/code/game/objects/structures/props/swarm.dm b/code/game/objects/structures/props/swarm.dm
index dd44aad2aa..f257f9d4c7 100644
--- a/code/game/objects/structures/props/swarm.dm
+++ b/code/game/objects/structures/props/swarm.dm
@@ -35,7 +35,7 @@
/obj/structure/cult/pylon/swarm/pylonhit(var/damage)
if(!isbroken)
if(prob(1 + damage * 3))
- visible_message("[shatter_message]")
+ visible_message(span_danger("[shatter_message]"))
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
isbroken = 1
@@ -47,8 +47,8 @@
if(!isbroken)
if(prob(1 + damage * 3))
user.visible_message(
- "[user] smashed \the [src]!",
- "You hit \the [src], and its crystal breaks apart!",
+ span_danger("[user] smashed \the [src]!"),
+ span_warning("You hit \the [src], and its crystal breaks apart!"),
"You hear a tinkle of crystalline shards."
)
STOP_PROCESSING(SSobj, src)
@@ -115,7 +115,7 @@
/obj/structure/cult/pylon/swarm/defender/pylonhit(var/damage)
if(!isbroken)
if(prob(1 + damage * 3) && damage >= 25)
- visible_message("[shatter_message]")
+ visible_message(span_danger("[shatter_message]"))
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
isbroken = 1
@@ -127,8 +127,8 @@
if(!isbroken)
if(prob(1 + damage * 2) && damage >= 15)
user.visible_message(
- "[user] smashed \the [src]!",
- "You hit \the [src], and its crystal breaks apart!",
+ span_danger("[user] smashed \the [src]!"),
+ span_warning("You hit \the [src], and its crystal breaks apart!"),
"You hear a tinkle of crystalline shards."
)
STOP_PROCESSING(SSobj, src)
diff --git a/code/game/objects/structures/railing.dm b/code/game/objects/structures/railing.dm
index a8e2b979a9..4d34a48719 100644
--- a/code/game/objects/structures/railing.dm
+++ b/code/game/objects/structures/railing.dm
@@ -60,16 +60,16 @@
if(health < maxhealth)
switch(health / maxhealth)
if(0.0 to 0.5)
- . += "It looks severely damaged!"
+ . += span_warning("It looks severely damaged!")
if(0.25 to 0.5)
- . += "It looks damaged!"
+ . += span_warning("It looks damaged!")
if(0.5 to 1.0)
- . += "It has a few scrapes and dents."
+ . += span_notice("It has a few scrapes and dents.")
/obj/structure/railing/take_damage(amount)
health -= amount
if(health <= 0)
- visible_message("\The [src] breaks down!")
+ visible_message(span_warning("\The [src] breaks down!"))
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
new /obj/item/stack/rods(get_turf(src))
qdel(src)
@@ -205,7 +205,7 @@
if(W.has_tool_quality(TOOL_WRENCH) && !anchored)
playsound(src, W.usesound, 50, 1)
if(do_after(user, 20, src))
- user.visible_message("\The [user] dismantles \the [src].", "You dismantle \the [src].")
+ user.visible_message("\The [user] dismantles \the [src].", span_notice("You dismantle \the [src]."))
new /obj/item/stack/material/steel(get_turf(usr), 2)
qdel(src)
return
@@ -216,7 +216,7 @@
if(F.welding)
playsound(src, F.usesound, 50, 1)
if(do_after(user, 20, src))
- user.visible_message("\The [user] repairs some damage to \the [src].", "You repair some damage to \the [src].")
+ user.visible_message("\The [user] repairs some damage to \the [src].", span_notice("You repair some damage to \the [src]."))
health = min(health+(maxhealth/5), maxhealth) // 20% repair per application
return
@@ -225,7 +225,7 @@
user.visible_message(anchored ? "\The [user] begins unscrewing \the [src]." : "\The [user] begins fasten \the [src]." )
playsound(src, W.usesound, 75, 1)
if(do_after(user, 10, src))
- to_chat(user, (anchored ? "You have unfastened \the [src] from the floor." : "You have fastened \the [src] to the floor."))
+ to_chat(user, (anchored ? span_notice("You have unfastened \the [src] from the floor.") : span_notice("You have fastened \the [src] to the floor.")))
anchored = !anchored
update_icon()
return
@@ -237,17 +237,17 @@
var/mob/living/M = G.affecting
var/obj/occupied = turf_is_crowded()
if(occupied)
- to_chat(user, "There's \a [occupied] in the way.")
+ to_chat(user, span_danger("There's \a [occupied] in the way."))
return
if (G.state < 2)
if(user.a_intent == I_HURT)
if (prob(15)) M.Weaken(5)
M.apply_damage(8,def_zone = "head")
take_damage(8)
- visible_message("[G.assailant] slams [G.affecting]'s face against \the [src]!")
+ visible_message(span_danger("[G.assailant] slams [G.affecting]'s face against \the [src]!"))
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
else
- to_chat(user, "You need a better grip to do that!")
+ to_chat(user, span_danger("You need a better grip to do that!"))
return
else
if (get_turf(G.affecting) == get_turf(src))
@@ -255,7 +255,7 @@
else
G.affecting.forceMove(get_turf(src))
G.affecting.Weaken(5)
- visible_message("[G.assailant] throws [G.affecting] over \the [src]!")
+ visible_message(span_danger("[G.assailant] throws [G.affecting] over \the [src]!"))
qdel(W)
return
@@ -285,7 +285,7 @@
if(!can_climb(user))
return
- usr.visible_message("[user] starts climbing onto \the [src]!")
+ usr.visible_message(span_warning("[user] starts climbing onto \the [src]!"))
LAZYDISTINCTADD(climbers, user)
if(!do_after(user,(issmall(user) ? 20 : 34)))
@@ -301,7 +301,7 @@
else
usr.forceMove(get_turf(src))
- usr.visible_message("[user] climbed over \the [src]!")
+ usr.visible_message(span_warning("[user] climbed over \the [src]!"))
if(!anchored) take_damage(maxhealth) // Fatboy
LAZYREMOVE(climbers, user)
@@ -314,7 +314,7 @@
if(get_turf(user) == get_turf(src))
var/obj/occupied = neighbor_turf_impassable()
if(occupied)
- to_chat(user, "You can't climb there, there's \a [occupied] in the way.")
+ to_chat(user, span_danger("You can't climb there, there's \a [occupied] in the way."))
return 0
return 1
diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm
index f3875bf508..dc9a3426ce 100644
--- a/code/game/objects/structures/safe.dm
+++ b/code/game/objects/structures/safe.dm
@@ -44,9 +44,9 @@ FLOOR SAFES
/obj/structure/safe/proc/check_unlocked(mob/user as mob, canhear)
if(user && canhear)
if(tumbler_1_pos == tumbler_1_open)
- to_chat(user, "You hear a [pick("tonk", "krunk", "plunk")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("tonk", "krunk", "plunk")] from \the [src]."))
if(tumbler_2_pos == tumbler_2_open)
- to_chat(user, "You hear a [pick("tink", "krink", "plink")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("tink", "krink", "plink")] from \the [src]."))
if(tumbler_1_pos == tumbler_1_open && tumbler_2_pos == tumbler_2_open)
if(user) visible_message("[pick("Spring", "Sprang", "Sproing", "Clunk", "Krunk")]!")
return 1
@@ -97,13 +97,13 @@ FLOOR SAFES
if(href_list["open"])
if(check_unlocked())
- to_chat(user, "You [open ? "close" : "open"] [src].")
+ to_chat(user, span_notice("You [open ? "close" : "open"] [src]."))
open = !open
update_icon()
updateUsrDialog()
return
else
- to_chat(user, "You can't [open ? "close" : "open"] [src], the lock is engaged!")
+ to_chat(user, span_notice("You can't [open ? "close" : "open"] [src], the lock is engaged!"))
return
if(href_list["decrement"])
@@ -111,11 +111,11 @@ FLOOR SAFES
if(dial == tumbler_1_pos + 1 || dial == tumbler_1_pos - 71)
tumbler_1_pos = decrement(tumbler_1_pos)
if(canhear)
- to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("clack", "scrape", "clank")] from \the [src]."))
if(tumbler_1_pos == tumbler_2_pos + 37 || tumbler_1_pos == tumbler_2_pos - 35)
tumbler_2_pos = decrement(tumbler_2_pos)
if(canhear)
- to_chat(user, "You hear a [pick("click", "chink", "clink")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("click", "chink", "clink")] from \the [src]."))
playsound(src, 'sound/machines/click.ogg', 20, 1)
check_unlocked(user, canhear)
@@ -127,11 +127,11 @@ FLOOR SAFES
if(dial == tumbler_1_pos - 1 || dial == tumbler_1_pos + 71)
tumbler_1_pos = increment(tumbler_1_pos)
if(canhear)
- to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("clack", "scrape", "clank")] from \the [src]."))
if(tumbler_1_pos == tumbler_2_pos - 37 || tumbler_1_pos == tumbler_2_pos + 35)
tumbler_2_pos = increment(tumbler_2_pos)
if(canhear)
- to_chat(user, "You hear a [pick("click", "chink", "clink")] from \the [src].")
+ to_chat(user, span_notice("You hear a [pick("click", "chink", "clink")] from \the [src]."))
playsound(src, 'sound/machines/click.ogg', 20, 1)
check_unlocked(user, canhear)
updateUsrDialog()
@@ -153,11 +153,11 @@ FLOOR SAFES
space += I.w_class
user.drop_item()
I.loc = src
- to_chat(user, "You put [I] in \the [src].")
+ to_chat(user, span_notice("You put [I] in \the [src]."))
updateUsrDialog()
return
else
- to_chat(user, "[I] won't fit in \the [src].")
+ to_chat(user, span_notice("[I] won't fit in \the [src]."))
return
else
if(istype(I, /obj/item/clothing/accessory/stethoscope))
diff --git a/code/game/objects/structures/salvageable.dm b/code/game/objects/structures/salvageable.dm
index 8a0da9b752..a114fd2cd7 100644
--- a/code/game/objects/structures/salvageable.dm
+++ b/code/game/objects/structures/salvageable.dm
@@ -19,11 +19,11 @@
var/actual_time = I.toolspeed * 170
user.visible_message( \
"\The [user] begins salvaging from \the [src].", \
- "You start salvaging from \the [src].")
+ span_notice("You start salvaging from \the [src]."))
if(do_after(user, actual_time, target = src))
user.visible_message( \
- "\The [user] has salvaged \the [src].", \
- "You salvage \the [src].")
+ span_notice("\The [user] has salvaged \the [src]."), \
+ span_notice("You salvage \the [src]."))
dismantle()
qdel(src)
return TRUE
diff --git a/code/game/objects/structures/simple_doors.dm b/code/game/objects/structures/simple_doors.dm
index 64f1392111..db06f7fea8 100644
--- a/code/game/objects/structures/simple_doors.dm
+++ b/code/game/objects/structures/simple_doors.dm
@@ -81,7 +81,7 @@
if(!Adjacent(user))
return
else if(user.a_intent == I_HURT)
- src.visible_message("[user] hammers on \the [src]!", "Someone hammers loudly on \the [src]!")
+ src.visible_message(span_warning("[user] hammers on \the [src]!"), span_warning("Someone hammers loudly on \the [src]!"))
src.add_fingerprint(user)
playsound(src, knock_hammer_sound, 50, 0, 3)
else if(user.a_intent == I_HELP)
@@ -102,7 +102,7 @@
if(!material.can_open_material_door(user))
return
if(locked && state == 0)
- to_chat(M,"It's locked!")
+ to_chat(M,span_warning("It's locked!"))
return
if(world.time - user.last_bumped <= 60)
return
@@ -157,23 +157,23 @@
if(istype(W,/obj/item/simple_key))
var/obj/item/simple_key/key = W
if(state)
- to_chat(user,"\The [src] must be closed in order for you to lock it.")
+ to_chat(user,span_notice("\The [src] must be closed in order for you to lock it."))
else if(key.key_id != src.lock_id)
- to_chat(user,"The [key] doesn't fit \the [src]'s lock!")
+ to_chat(user,span_warning("The [key] doesn't fit \the [src]'s lock!"))
else if(key.key_id == src.lock_id)
- visible_message("[user] [key.keyverb] \the [key] and [locked ? "unlocks" : "locks"] \the [src].")
+ visible_message(span_notice("[user] [key.keyverb] \the [key] and [locked ? "unlocks" : "locks"] \the [src]."))
locked = !locked
playsound(src, keysound,100, 1)
return
if(istype(W,/obj/item/pickaxe) && breakable)
var/obj/item/pickaxe/digTool = W
- visible_message("[user] starts digging [src]!")
+ visible_message(span_danger("[user] starts digging [src]!"))
if(do_after(user,digTool.digspeed*hardness) && src)
- visible_message("[user] finished digging [src]!")
+ visible_message(span_danger("[user] finished digging [src]!"))
Dismantle()
else if(istype(W,/obj/item) && breakable) //not sure, can't not just weapons get passed to this proc?
hardness -= W.force/10
- visible_message("[user] hits [src] with [W]!")
+ visible_message(span_danger("[user] hits [src] with [W]!"))
if(material == get_material_by_name("resin"))
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD) || get_material_by_name(MAT_HARDWOOD)))
@@ -198,7 +198,7 @@
CheckHardness()
/obj/structure/simple_door/attack_generic(var/mob/user, var/damage, var/attack_verb)
- visible_message("[user] [attack_verb] the [src]!")
+ visible_message(span_danger("[user] [attack_verb] the [src]!"))
if(material == get_material_by_name("resin"))
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD) || get_material_by_name(MAT_HARDWOOD)))
@@ -215,7 +215,7 @@
/obj/structure/simple_door/proc/Dismantle(devastated = 0)
material.place_dismantled_product(get_turf(src))
- visible_message("The [src] is destroyed!")
+ visible_message(span_danger("The [src] is destroyed!"))
qdel(src)
/obj/structure/simple_door/ex_act(severity = 1)
diff --git a/code/game/objects/structures/snowman.dm b/code/game/objects/structures/snowman.dm
index 7299f1e62e..2716293e8b 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)
- to_chat(user, "In one hit, [src] easily crumples into a pile of snow. You monster.")
+ to_chat(user, span_notice("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)
@@ -21,4 +21,4 @@
/obj/structure/snowman/spider
name = "snow spider"
icon_state = "snowspider"
- desc = "An impressively crafted snow spider. Not nearly as creepy as the real thing."
\ No newline at end of file
+ desc = "An impressively crafted snow spider. Not nearly as creepy as the real thing."
diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
index ac52341e59..ac1fa24867 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
@@ -16,9 +16,9 @@
if(buckled_mob.buckled == src)
if(buckled_mob != user)
buckled_mob.visible_message(\
- "[user.name] pulls [buckled_mob.name] free from the sticky nest!",\
- "[user.name] pulls you free from the gelatinous resin.",\
- "You hear squelching...")
+ span_notice("[user.name] pulls [buckled_mob.name] free from the sticky nest!"),\
+ span_notice("[user.name] pulls you free from the gelatinous resin."),\
+ span_notice("You hear squelching..."))
buckled_mob.pixel_y = 0
buckled_mob.old_y = 0
unbuckle_mob(buckled_mob)
@@ -27,9 +27,9 @@
return
buckled_mob.last_special = world.time
buckled_mob.visible_message(\
- "[buckled_mob.name] struggles to break free of the gelatinous resin...",\
- "You struggle to break free from the gelatinous resin...",\
- "You hear squelching...")
+ span_warning("[buckled_mob.name] struggles to break free of the gelatinous resin..."),\
+ span_warning("You struggle to break free from the gelatinous resin..."),\
+ span_notice("You hear squelching..."))
spawn(NEST_RESIST_TIME)
if(user && buckled_mob && user.buckled == src)
buckled_mob.last_special = world.time
@@ -60,9 +60,9 @@
return
else
M.visible_message(\
- "[user.name] secretes a thick vile goo, securing [M.name] into [src]!",\
- "[user.name] drenches you in a foul-smelling resin, trapping you in the [src]!",\
- "You hear squelching...")
+ span_notice("[user.name] secretes a thick vile goo, securing [M.name] into [src]!"),\
+ span_warning("[user.name] drenches you in a foul-smelling resin, trapping you in the [src]!"),\
+ span_notice("You hear squelching..."))
M.buckled = src
M.loc = src.loc
M.set_dir(src.dir)
@@ -78,7 +78,7 @@
health = max(0, health - aforce)
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
for(var/mob/M in viewers(src, 7))
- M.show_message("[user] hits [src] with [W]!", 1)
+ M.show_message(span_warning("[user] hits [src] with [W]!"), 1)
healthcheck()
/obj/structure/bed/nest/proc/healthcheck()
diff --git a/code/game/objects/structures/stool_bed_chair_nest/bed.dm b/code/game/objects/structures/stool_bed_chair_nest/bed.dm
index 75f7d88b9c..90ecec8c8b 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/bed.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/bed.dm
@@ -132,23 +132,23 @@
W.pixel_x = 10 //make sure they reach the pillow
W.pixel_y = -6
if(istype(W, /obj/item/disk))
- user.visible_message("[src] sleeps soundly. Sleep tight, disky.")
+ user.visible_message(span_notice("[src] sleeps soundly. Sleep tight, disky."))
else if(istype(W, /obj/item/grab))
var/obj/item/grab/G = W
var/mob/living/affecting = G.affecting
if(has_buckled_mobs()) //Handles trying to buckle someone else to a chair when someone else is on it
- to_chat(user, "\The [src] already has someone buckled to it.")
+ to_chat(user, span_notice("\The [src] already has someone buckled to it."))
return
- user.visible_message("[user] attempts to buckle [affecting] into \the [src]!")
+ user.visible_message(span_notice("[user] attempts to buckle [affecting] into \the [src]!"))
if(do_after(user, 20, G.affecting))
affecting.loc = loc
spawn(0)
if(buckle_mob(affecting))
affecting.visible_message(\
- "[affecting.name] is buckled to [src] by [user.name]!",\
- "You are buckled to [src] by [user.name]!",\
- "You hear metal clanking.")
+ span_danger("[affecting.name] is buckled to [src] by [user.name]!"),\
+ span_danger("You are buckled to [src] by [user.name]!"),\
+ span_notice("You hear metal clanking."))
qdel(W)
else
..()
@@ -256,7 +256,7 @@
if(istype(W,/obj/item/roller_holder))
var/obj/item/roller_holder/RH = W
if(!RH.held)
- to_chat(user, "You collect the roller bed.")
+ to_chat(user, span_notice("You collect the roller bed."))
src.loc = RH
RH.held = src
return
@@ -285,10 +285,10 @@
/obj/item/roller_holder/attack_self(mob/user as mob)
if(!held)
- to_chat(user, "The rack is empty.")
+ to_chat(user, span_notice("The rack is empty."))
return
- to_chat(user, "You deploy the roller bed.")
+ to_chat(user, span_notice("You deploy the roller bed."))
var/obj/structure/bed/roller/R = new held.bedtype(user.loc)
R.add_fingerprint(user)
qdel(held)
@@ -378,10 +378,10 @@
if(do_after(user, 20 * W.toolspeed))
if(!src) return
- to_chat(user, "You [anchored? "un" : ""]secured \the [src]!")
+ to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
if(!anchored)
- to_chat(user," The bed isn't secured.")
+ to_chat(user,span_notice(" The bed isn't secured."))
return
diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
index 4c7845da08..18337512c9 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
@@ -18,7 +18,7 @@
if(!padding_material && istype(W, /obj/item/assembly/shock_kit))
var/obj/item/assembly/shock_kit/SK = W
if(!SK.status)
- to_chat(user, "\The [SK] is not ready to be attached!")
+ to_chat(user, span_notice("\The [SK] is not ready to be attached!"))
return
user.drop_item()
var/obj/structure/bed/chair/e_chair/E = new (src.loc, material.name)
@@ -255,7 +255,7 @@
victim.apply_effect(6, WEAKEN, blocked)
victim.apply_effect(6, STUTTER, blocked)
victim.apply_damage(10, BRUTE, def_zone, blocked, soaked)
- occupant.visible_message("[occupant] crashed into \the [A]!")
+ occupant.visible_message(span_danger("[occupant] crashed into \the [A]!"))
/obj/structure/bed/chair/office/light
icon_state = "officechair_white"
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 921f8def01..1685531621 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/stools.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/stools.dm
@@ -73,7 +73,7 @@ var/global/list/stool_cache = list() //haha stool
/obj/item/stool/attack(mob/M as mob, mob/user as mob)
if (prob(5) && istype(M,/mob/living))
- user.visible_message("[user] breaks [src] over [M]'s back!")
+ user.visible_message(span_danger("[user] breaks [src] over [M]'s back!"))
user.setClickCooldown(user.get_attack_speed())
user.do_attack_animation(M)
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 369a0aabab..92d4af0acb 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm
@@ -65,7 +65,7 @@
if(user==pulling)
pulling = null
user.pulledby = null
- to_chat(user, "You lost your grip!")
+ to_chat(user, span_warning("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())
@@ -83,10 +83,10 @@
if(user==pulling)
return
if(pulling && (get_dir(src.loc, pulling.loc) == direction))
- to_chat(user, "You cannot go there.")
+ to_chat(user, span_warning("You cannot go there."))
return
if(pulling && has_buckled_mobs() && (user in buckled_mobs))
- to_chat(user, "You cannot drive while being pushed.")
+ to_chat(user, span_warning("You cannot drive while being pushed."))
return
// Let's roll
@@ -140,7 +140,7 @@
unbuckle_mob()
if (pulling && (get_dist(src, pulling) > 1))
pulling.pulledby = null
- to_chat(pulling, "You lost your grip!")
+ to_chat(pulling, span_warning("You lost your grip!"))
pulling = null
else
if (occupant && (src.loc != occupant.loc))
@@ -159,7 +159,7 @@
if(in_range(src, user))
if(!ishuman(user)) return
if(has_buckled_mobs() && (user in buckled_mobs))
- to_chat(user, "You realize you are unable to push the wheelchair you sit in.")
+ to_chat(user, span_warning("You realize you are unable to push the wheelchair you sit in."))
return
if(!pulling)
pulling = user
@@ -205,11 +205,11 @@
victim.apply_effect(6, STUTTER, blocked)
victim.apply_damage(10, BRUTE, def_zone, soaked)
if(pulling)
- occupant.visible_message("[pulling] has thrusted \the [name] into \the [A], throwing \the [occupant] out of it!")
+ occupant.visible_message(span_danger("[pulling] has thrusted \the [name] into \the [A], throwing \the [occupant] out of it!"))
add_attack_logs(pulling,occupant,"Crashed their [name] into [A]")
else
- occupant.visible_message("[occupant] crashed into \the [A]!")
+ occupant.visible_message(span_danger("[occupant] crashed into \the [A]!"))
/obj/structure/bed/chair/wheelchair/proc/create_track()
var/obj/effect/decal/cleanable/blood/tracks/B = new(loc)
diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm
index 3e5c963396..888d0174e6 100644
--- a/code/game/objects/structures/tank_dispenser.dm
+++ b/code/game/objects/structures/tank_dispenser.dm
@@ -75,25 +75,25 @@
full = TRUE
else if(I.has_tool_quality(TOOL_WRENCH))
if(anchored)
- to_chat(user, "You lean down and unwrench [src].")
+ to_chat(user, span_notice("You lean down and unwrench [src]."))
anchored = FALSE
else
- to_chat(user, "You wrench [src] into place.")
+ to_chat(user, span_notice("You wrench [src] into place."))
anchored = TRUE
return
else if(user.a_intent != I_HURT)
- to_chat(user, "[I] does not fit into [src].")
+ to_chat(user, span_notice("[I] does not fit into [src]."))
return
else
return ..()
if(full)
- to_chat(user, "[src] can't hold any more of [I].")
+ to_chat(user, span_notice("[src] can't hold any more of [I]."))
return
if(!user.unEquip(I, target = src))
return
- to_chat(user, "You put [I] in [src].")
+ to_chat(user, span_notice("You put [I] in [src]."))
update_icon()
#undef TANK_DISPENSER_CAPACITY
diff --git a/code/game/objects/structures/transit_tubes.dm b/code/game/objects/structures/transit_tubes.dm
index 402d560923..1326ca7f91 100644
--- a/code/game/objects/structures/transit_tubes.dm
+++ b/code/game/objects/structures/transit_tubes.dm
@@ -101,11 +101,11 @@
/obj/structure/transit_tube/Bumped(mob/AM as mob|obj)
var/obj/structure/transit_tube/T = locate() in AM.loc
if(T)
- to_chat(AM, "The tube's support pylons block your way.")
+ to_chat(AM, span_warning("The tube's support pylons block your way."))
return ..()
else
AM.loc = src.loc
- to_chat(AM, "You slip under the tube.")
+ to_chat(AM, span_info("You slip under the tube."))
/obj/structure/transit_tube/station/New(loc)
@@ -117,7 +117,7 @@
if(!pod_moving && icon_state == "open" && istype(AM, /mob))
for(var/obj/structure/transit_tube_pod/pod in loc)
if(pod.contents.len)
- to_chat(AM, "The pod is already occupied.")
+ to_chat(AM, span_notice("The pod is already occupied."))
return
else if(!pod.moving && (pod.dir in directions()))
AM.loc = pod
diff --git a/code/game/objects/structures/trash_pile_vr.dm b/code/game/objects/structures/trash_pile_vr.dm
index 44ae7781ec..b77417d916 100644
--- a/code/game/objects/structures/trash_pile_vr.dm
+++ b/code/game/objects/structures/trash_pile_vr.dm
@@ -53,7 +53,7 @@
/obj/structure/trash_pile/attackby(obj/item/W as obj, mob/user as mob)
var/w_type = W.type
if(w_type in allocated_gamma)
- to_chat(user,"You feel \the [W] slip from your hand, and disappear into the trash pile.")
+ to_chat(user,span_notice("You feel \the [W] slip from your hand, and disappear into the trash pile."))
user.unEquip(W)
W.forceMove(src)
allocated_gamma -= w_type
@@ -84,12 +84,12 @@
/obj/structure/trash_pile/attack_ghost(mob/observer/user as mob)
if(config.disable_player_mice)
- to_chat(user, "Spawning as a mouse is currently disabled.")
+ to_chat(user, span_warning("Spawning as a mouse is currently disabled."))
return
//VOREStation Add Start
if(jobban_isbanned(user, JOB_GHOSTROLES))
- to_chat(user, "You cannot become a mouse because you are banned from playing ghost roles.")
+ to_chat(user, span_warning("You cannot become a mouse because you are banned from playing ghost roles."))
return
//VOREStation Add End
@@ -98,14 +98,14 @@
var/turf/T = get_turf(src)
if(!T || (T.z in using_map.admin_levels))
- to_chat(user, "You may not spawn as a mouse on this Z-level.")
+ to_chat(user, span_warning("You may not spawn as a mouse on this Z-level."))
return
var/timedifference = world.time - user.client.time_died_as_mouse
if(user.client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600)
var/timedifference_text
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
- to_chat(user, "You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.")
+ to_chat(user, span_warning("You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left."))
return
var/response = tgui_alert(user, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?",list("Squeek!","Nope!"))
@@ -119,7 +119,7 @@
host.universal_understand = 0
announce_ghost_joinleave(src, 0, "They are now a mouse.")
host.ckey = user.ckey
- to_chat(host, "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent.")
+ to_chat(host, span_info("You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent."))
var/atom/A = get_holder_at_turf_level(src)
A.visible_message("[host] crawls out of \the [src].")
@@ -129,23 +129,23 @@
//Human mob
if(ishuman(user))
var/mob/living/carbon/human/H = user
- H.visible_message("[user] searches through \the [src].","You search through \the [src].")
+ H.visible_message("[user] searches through \the [src].",span_notice("You search through \the [src]."))
if(hider)
- to_chat(hider,"[user] is searching the trash pile you're in!")
+ to_chat(hider,span_warning("[user] is searching the trash pile you're in!"))
//Do the searching
if(do_after(user,rand(4 SECONDS,6 SECONDS),src))
//If there was a hider, chance to reveal them
if(hider && prob(50))
- to_chat(hider,"You've been discovered!")
+ to_chat(hider,span_danger("You've been discovered!"))
hider.forceMove(get_turf(src))
hider = null
- to_chat(user,"Some sort of creature leaps out of \the [src]!")
+ to_chat(user,span_danger("Some sort of creature leaps out of \the [src]!"))
//You already searched this one bruh
else if(user.ckey in searchedby)
- to_chat(H,"There's nothing else for you in \the [src]!")
+ to_chat(H,span_warning("There's nothing else for you in \the [src]!"))
//You found an item!
else
@@ -170,7 +170,7 @@
if(I)
searchedby += user.ckey
I.forceMove(get_turf(src))
- to_chat(H,"You found \a [I]!")
+ to_chat(H,span_notice("You found \a [I]!"))
else
return ..()
diff --git a/code/game/objects/structures/under_wardrobe.dm b/code/game/objects/structures/under_wardrobe.dm
index 5849085b1d..b94ac40b8f 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))
- to_chat(user, "Sadly there's nothing in here for you to wear.")
+ to_chat(user, span_warning("Sadly there's nothing in here for you to wear."))
return
interact(user)
@@ -86,4 +86,4 @@
if(.)
H.update_underwear()
- interact(H)
\ No newline at end of file
+ interact(H)
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index a82e045dbe..acf6025af7 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -19,13 +19,13 @@
/obj/structure/toilet/attack_hand(mob/living/user as mob)
if(swirlie)
usr.setClickCooldown(user.get_attack_speed())
- usr.visible_message("[user] slams the toilet seat onto [swirlie.name]'s head!", "You slam the toilet seat onto [swirlie.name]'s head!", "You hear reverberating porcelain.")
+ usr.visible_message(span_danger("[user] slams the toilet seat onto [swirlie.name]'s head!"), span_notice("You slam the toilet seat onto [swirlie.name]'s head!"), "You hear reverberating porcelain.")
swirlie.adjustBruteLoss(5)
return
if(cistern && !open)
if(!contents.len)
- to_chat(user, "The cistern is empty.")
+ to_chat(user, span_notice("The cistern is empty."))
return
else
var/obj/item/I = pick(contents)
@@ -33,7 +33,7 @@
user.put_in_hands(I)
else
I.loc = get_turf(src)
- to_chat(user, "You find \an [I] in the cistern.")
+ to_chat(user, span_notice("You find \an [I] in the cistern."))
w_items -= I.w_class
return
@@ -45,10 +45,10 @@
/obj/structure/toilet/attackby(obj/item/I as obj, mob/living/user as mob)
if(I.has_tool_quality(TOOL_CROWBAR))
- to_chat(user, "You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"].")
+ to_chat(user, span_notice("You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]."))
playsound(src, 'sound/effects/stonedoor_openclose.ogg', 50, 1)
if(do_after(user, 30))
- user.visible_message("[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!", "You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!", "You hear grinding porcelain.")
+ user.visible_message(span_notice("[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!"), span_notice("You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!"), "You hear grinding porcelain.")
cistern = !cistern
update_icon()
return
@@ -62,28 +62,28 @@
if(G.state>1)
if(!GM.loc == get_turf(src))
- to_chat(user, "[GM.name] needs to be on the toilet.")
+ to_chat(user, span_notice("[GM.name] needs to be on the toilet."))
return
if(open && !swirlie)
- user.visible_message("[user] starts to give [GM.name] a swirlie!", "You start to give [GM.name] a swirlie!")
+ user.visible_message(span_danger("[user] starts to give [GM.name] a swirlie!"), span_notice("You start to give [GM.name] a swirlie!"))
swirlie = GM
if(do_after(user, 30, GM))
- user.visible_message("[user] gives [GM.name] a swirlie!", "You give [GM.name] a swirlie!", "You hear a toilet flushing.")
+ user.visible_message(span_danger("[user] gives [GM.name] a swirlie!"), span_notice("You give [GM.name] a swirlie!"), "You hear a toilet flushing.")
if(!GM.internal)
GM.adjustOxyLoss(5)
swirlie = null
else
- user.visible_message("[user] slams [GM.name] into the [src]!", "You slam [GM.name] into the [src]!")
+ user.visible_message(span_danger("[user] slams [GM.name] into the [src]!"), span_notice("You slam [GM.name] into the [src]!"))
GM.adjustBruteLoss(5)
else
- to_chat(user, "You need a tighter grip.")
+ to_chat(user, span_notice("You need a tighter grip."))
if(cistern && !istype(user,/mob/living/silicon/robot)) //STOP PUTTING YOUR MODULES IN THE TOILET.
if(I.w_class > 3)
- to_chat(user, "\The [I] does not fit.")
+ to_chat(user, span_notice("\The [I] does not fit."))
return
if(w_items + I.w_class > 5)
- to_chat(user, "The cistern is full.")
+ to_chat(user, span_notice("The cistern is full."))
return
user.drop_item()
I.loc = src
@@ -108,21 +108,21 @@
if(G.state>1)
if(!GM.loc == get_turf(src))
- to_chat(user, "[GM.name] needs to be on the toilet.")
+ to_chat(user, span_notice("[GM.name] needs to be on the toilet."))
return
if(open && !swirlie)
- user.visible_message("[user] starts to give [GM.name] a swirlie!", "You start to give [GM.name] a swirlie!")
+ user.visible_message(span_danger("[user] starts to give [GM.name] a swirlie!"), span_notice("You start to give [GM.name] a swirlie!"))
swirlie = GM
if(do_after(user, 30, GM))
- user.visible_message("[user] gives [GM.name] a swirlie!", "You give [GM.name] a swirlie!", "You hear a toilet flushing.")
+ user.visible_message(span_danger("[user] gives [GM.name] a swirlie!"), span_notice("You give [GM.name] a swirlie!"), "You hear a toilet flushing.")
if(!GM.internal)
GM.adjustOxyLoss(5)
swirlie = null
else
- user.visible_message("[user] slams [GM.name] into the [src]!", "You slam [GM.name] into the [src]!")
+ user.visible_message(span_danger("[user] slams [GM.name] into the [src]!"), span_notice("You slam [GM.name] into the [src]!"))
GM.adjustBruteLoss(5)
else
- to_chat(user, "You need a tighter grip.")
+ to_chat(user, span_notice("You need a tighter grip."))
/obj/structure/urinal
name = "urinal"
@@ -139,12 +139,12 @@
var/mob/living/GM = G.affecting
if(G.state>1)
if(!GM.loc == get_turf(src))
- to_chat(user, "[GM.name] needs to be on the urinal.")
+ to_chat(user, span_notice("[GM.name] needs to be on the urinal."))
return
- user.visible_message("[user] slams [GM.name] into the [src]!", "You slam [GM.name] into the [src]!")
+ user.visible_message(span_danger("[user] slams [GM.name] into the [src]!"), span_notice("You slam [GM.name] into the [src]!"))
GM.adjustBruteLoss(8)
else
- to_chat(user, "You need a tighter grip.")
+ to_chat(user, span_notice("You need a tighter grip."))
@@ -199,14 +199,14 @@
/obj/machinery/shower/attackby(obj/item/I as obj, mob/user as mob)
if(I.type == /obj/item/analyzer)
- to_chat(user, "The water temperature seems to be [watertemp].")
+ to_chat(user, span_notice("The water temperature seems to be [watertemp]."))
if(I.has_tool_quality(TOOL_WRENCH))
var/newtemp = tgui_input_list(user, "What setting would you like to set the temperature valve to?", "Water Temperature Valve", temperature_settings)
- to_chat(user, "You begin to adjust the temperature valve with \the [I].")
+ to_chat(user, span_notice("You begin to adjust the temperature valve with \the [I]."))
playsound(src, I.usesound, 50, 1)
if(do_after(user, 50 * I.toolspeed))
watertemp = newtemp
- user.visible_message("[user] adjusts the shower with \the [I].", "You adjust the shower with \the [I].")
+ user.visible_message(span_notice("[user] adjusts the shower with \the [I]."), span_notice("You adjust the shower with \the [I]."))
add_fingerprint(user)
/obj/machinery/shower/update_icon() //this is terribly unreadable, but basically it makes the shower mist up
@@ -286,9 +286,9 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(temperature >= H.species.heat_level_1)
- to_chat(H, "The water is searing hot!")
+ to_chat(H, span_danger("The water is searing hot!"))
else if(temperature <= H.species.cold_level_1)
- to_chat(H, "The water is freezing cold!")
+ to_chat(H, span_warning("The water is freezing cold!"))
/obj/item/bikehorn/rubberducky
name = "rubber ducky"
@@ -376,7 +376,7 @@
/obj/item/bikehorn/rubberducky/pink/attack_self(mob/user as mob)
if(spam_flag == 0)
if(!user.devourable)
- to_chat(user, "You can't bring yourself to squeeze it...")
+ to_chat(user, span_vnotice("You can't bring yourself to squeeze it..."))
return
spam_flag = 1
playsound(src, honk_sound, 50, 1)
@@ -385,14 +385,14 @@
src.add_fingerprint(user)
user.drop_item()
user.forceMove(src)
- to_chat(user, "You have been swallowed alive by the rubber ducky. Your entire body compacted up and squeezed into the tiny space that makes up the oddly realistic and not at all rubbery stomach. The walls themselves are kneading over you, grinding some sort of fluids into your trapped body. You can even hear the sound of bodily functions echoing around you...")
+ to_chat(user, span_vnotice("You have been swallowed alive by the rubber ducky. Your entire body compacted up and squeezed into the tiny space that makes up the oddly realistic and not at all rubbery stomach. The walls themselves are kneading over you, grinding some sort of fluids into your trapped body. You can even hear the sound of bodily functions echoing around you..."))
spawn(20)
spam_flag = 0
return
/obj/item/bikehorn/rubberducky/pink/container_resist(var/mob/living/escapee)
escapee.forceMove(get_turf(src))
- to_chat(escapee, "You managed to crawl out of the rubber ducky!")
+ to_chat(escapee, span_vnotice("You managed to crawl out of the rubber ducky!"))
/obj/item/bikehorn/rubberducky/grey
name = "rubber ducky"
@@ -522,7 +522,7 @@
if(!usr.Adjacent(src))
return ..()
if(!thing.reagents || thing.reagents.total_volume == 0)
- to_chat(usr, "\The [thing] is empty.")
+ to_chat(usr, span_warning("\The [thing] is empty."))
return
// Clear the vessel.
visible_message("\The [usr] tips the contents of \the [thing] into \the [src].")
@@ -536,7 +536,7 @@
if (H.hand)
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
- to_chat(user, "You try to move your [temp.name], but cannot!")
+ to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
return
if(isrobot(user) || isAI(user))
@@ -546,16 +546,16 @@
return
if(busy)
- to_chat(user, "Someone's already washing here.")
+ to_chat(user, span_warning("Someone's already washing here."))
return
- to_chat(usr, "You start washing your hands.")
+ to_chat(usr, span_notice("You start washing your hands."))
playsound(src, 'sound/effects/sink_long.ogg', 75, 1)
busy = 1
if(!do_after(user, 40, src))
busy = 0
- to_chat(usr, "You stop washing your hands.")
+ to_chat(usr, span_notice("You stop washing your hands."))
return
busy = 0
@@ -563,17 +563,17 @@
if(ishuman(user))
user:update_inv_gloves()
for(var/mob/V in viewers(src, null))
- V.show_message("[user] washes their hands using \the [src].")
+ V.show_message(span_notice("[user] washes their hands using \the [src]."))
/obj/structure/sink/attackby(obj/item/O as obj, mob/user as mob)
if(busy)
- to_chat(user, "Someone's already washing here.")
+ to_chat(user, span_warning("Someone's already washing here."))
return
var/obj/item/reagent_containers/RG = O
if (istype(RG) && RG.is_open_container())
RG.reagents.add_reagent("water", min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this))
- user.visible_message("[user] fills \the [RG] using \the [src].","You fill \the [RG] using \the [src].")
+ user.visible_message(span_notice("[user] fills \the [RG] using \the [src]."),span_notice("You fill \the [RG] using \the [src]."))
playsound(src, 'sound/effects/sink.ogg', 75, 1)
return 1
@@ -592,12 +592,12 @@
B.deductcharge(B.hitcost)
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
user.visible_message( \
- "[user] was stunned by [TU.his] wet [O]!", \
- "[user] was stunned by [TU.his] wet [O]!")
+ span_danger("[user] was stunned by [TU.his] wet [O]!"), \
+ span_userdanger("[user] was stunned by [TU.his] wet [O]!"))
return 1
else if(istype(O, /obj/item/mop))
O.reagents.add_reagent("water", 5)
- to_chat(user, "You wet \the [O] in \the [src].")
+ to_chat(user, span_notice("You wet \the [O] in \the [src]."))
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
return
@@ -607,20 +607,20 @@
var/obj/item/I = O
if(!I || !istype(I,/obj/item)) return
- to_chat(usr, "You start washing \the [I].")
+ to_chat(usr, span_notice("You start washing \the [I]."))
busy = 1
if(!do_after(user, 40, src))
busy = 0
- to_chat(usr, "You stop washing \the [I].")
+ to_chat(usr, span_notice("You stop washing \the [I]."))
return
busy = 0
O.clean_blood()
O.water_act(rand(1,10))
user.visible_message( \
- "[user] washes \a [I] using \the [src].", \
- "You wash \a [I] using \the [src].")
+ span_notice("[user] washes \a [I] using \the [src]."), \
+ span_notice("You wash \a [I] using \the [src]."))
/obj/structure/sink/kitchen
name = "kitchen sink"
diff --git a/code/game/objects/structures/watercloset_vr.dm b/code/game/objects/structures/watercloset_vr.dm
index 7e8790fbcc..728fd91347 100644
--- a/code/game/objects/structures/watercloset_vr.dm
+++ b/code/game/objects/structures/watercloset_vr.dm
@@ -20,7 +20,7 @@
if(istype(I) && !I.anchored)
bowl_contents += I
if(bowl_contents.len)
- user.visible_message("[user] flushes the toilet.", "You flush the toilet.")
+ user.visible_message(span_notice("[user] flushes the toilet."), span_notice("You flush the toilet."))
playsound(src, 'sound/vore/death7.ogg', 50, 1) //Got lazy about getting new sound files. Have a sick remix lmao.
playsound(src, 'sound/effects/bubbles.ogg', 50, 1)
playsound(src, 'sound/mecha/powerup.ogg', 30, 1)
diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm
index 6648036341..61bb0bf6ee 100644
--- a/code/game/objects/structures/windoor_assembly.dm
+++ b/code/game/objects/structures/windoor_assembly.dm
@@ -95,14 +95,14 @@
if(do_after(user, 40 * WT.toolspeed))
if(!src || !WT.isOn()) return
- to_chat(user,"You disassembled the windoor assembly!")
+ to_chat(user,span_notice("You disassembled the windoor assembly!"))
if(secure)
new /obj/item/stack/material/glass/reinforced(get_turf(src), 2)
else
new /obj/item/stack/material/glass(get_turf(src), 2)
qdel(src)
else
- to_chat(user,"You need more welding fuel to disassemble the windoor assembly.")
+ to_chat(user,span_notice("You need more welding fuel to disassemble the windoor assembly."))
return
//Wrenching an unsecure assembly anchors it in place. Step 4 complete
@@ -112,7 +112,7 @@
if(do_after(user, 40 * W.toolspeed))
if(!src) return
- to_chat(user,"You've secured the windoor assembly!")
+ to_chat(user,span_notice("You've secured the windoor assembly!"))
src.anchored = TRUE
step = 0
@@ -123,7 +123,7 @@
if(do_after(user, 40 * W.toolspeed))
if(!src) return
- to_chat(user,"You've unsecured the windoor assembly!")
+ to_chat(user,span_notice("You've unsecured the windoor assembly!"))
src.anchored = FALSE
step = null
@@ -134,7 +134,7 @@
var/obj/item/stack/cable_coil/CC = W
if(do_after(user, 40))
if (CC.use(1))
- to_chat(user,"You wire the windoor!")
+ to_chat(user,span_notice("You wire the windoor!"))
src.state = "02"
step = 1
else
@@ -150,7 +150,7 @@
if(do_after(user, 40 * W.toolspeed))
if(!src) return
- to_chat(user,"You cut the windoor wires.!")
+ to_chat(user,span_notice("You cut the windoor wires.!"))
new/obj/item/stack/cable_coil(get_turf(user), 1)
src.state = "01"
step = 0
@@ -165,7 +165,7 @@
user.drop_item()
W.loc = src
- to_chat(user,"You've installed the airlock electronics!")
+ to_chat(user,span_notice("You've installed the airlock electronics!"))
step = 2
src.electronics = W
else
@@ -178,7 +178,7 @@
if(do_after(user, 40 * W.toolspeed))
if(!src || !src.electronics) return
- to_chat(user,"You've removed the airlock electronics!")
+ to_chat(user,span_notice("You've removed the airlock electronics!"))
step = 1
var/obj/item/airlock_electronics/ae = electronics
electronics = null
@@ -187,10 +187,10 @@
//Crowbar to complete the assembly, Step 7 complete.
else if(W.has_tool_quality(TOOL_CROWBAR))
if(!src.electronics)
- to_chat(usr,"The assembly is missing electronics.")
+ to_chat(usr,span_warning("The assembly is missing electronics."))
return
if(src.electronics && istype(src.electronics, /obj/item/circuitboard/broken))
- to_chat(usr,"The assembly has broken airlock electronics.")
+ to_chat(usr,span_warning("The assembly has broken airlock electronics."))
return
usr << browse(null, "window=windoor_access") //Not sure what this actually does... -Ner
playsound(src, W.usesound, 100, 1)
@@ -201,7 +201,7 @@
if(!src) return
density = TRUE //Shouldn't matter but just incase
- to_chat(user,"You finish the windoor!")
+ to_chat(user,span_notice("You finish the windoor!"))
if(secure)
var/obj/machinery/door/window/brigdoor/windoor = new /obj/machinery/door/window/brigdoor(src.loc)
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index 8c912136ba..178c9c21cc 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -28,24 +28,24 @@
. = ..()
if(health == maxhealth)
- . += "It looks fully intact."
+ . += span_notice("It looks fully intact.")
else
var/perc = health / maxhealth
if(perc > 0.75)
- . += "It has a few cracks."
+ . += span_notice("It has a few cracks.")
else if(perc > 0.5)
- . += "It looks slightly damaged."
+ . += span_warning("It looks slightly damaged.")
else if(perc > 0.25)
- . += "It looks moderately damaged."
+ . += span_warning("It looks moderately damaged.")
else
- . += "It looks heavily damaged."
+ . += span_danger("It looks heavily damaged.")
if(silicate)
if (silicate < 30)
- . += "It has a thin layer of silicate."
+ . += span_notice("It has a thin layer of silicate.")
else if (silicate < 70)
- . += "It is covered in silicate."
+ . += span_notice("It is covered in silicate.")
else
- . += "There is a thick layer of silicate covering it."
+ . += span_notice("There is a thick layer of silicate covering it.")
/obj/structure/window/examine_icon()
return icon(icon=initial(icon),icon_state=initial(icon_state))
@@ -158,7 +158,7 @@
/obj/structure/window/hitby(AM as mob|obj)
..()
- visible_message("[src] was hit by [AM].")
+ visible_message(span_danger("[src] was hit by [AM]."))
var/tforce = 0
if(ismob(AM))
tforce = 40
@@ -174,14 +174,14 @@
take_damage(tforce)
/obj/structure/window/attack_tk(mob/user as mob)
- user.visible_message("Something knocks on [src].")
+ user.visible_message(span_notice("Something knocks on [src]."))
playsound(src, 'sound/effects/Glasshit.ogg', 50, 1)
/obj/structure/window/attack_hand(mob/user as mob)
user.setClickCooldown(user.get_attack_speed())
if(HULK in user.mutations)
user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!"))
- user.visible_message("[user] smashes through [src]!")
+ user.visible_message(span_danger("[user] smashes through [src]!"))
user.do_attack_animation(src)
shatter()
@@ -195,8 +195,8 @@
playsound(src, 'sound/effects/glassknock.ogg', 80, 1)
user.do_attack_animation(src)
- user.visible_message("\The [user] bangs against \the [src]!",
- "You bang against \the [src]!",
+ user.visible_message(span_danger("\The [user] bangs against \the [src]!"),
+ span_danger("You bang against \the [src]!"),
"You hear a banging sound.")
else
playsound(src, 'sound/effects/glassknock.ogg', 80, 1)
@@ -210,7 +210,7 @@
if(!damage)
return
if(damage >= STRUCTURE_MIN_DAMAGE_THRESHOLD)
- visible_message("[user] smashes into [src]!")
+ visible_message(span_danger("[user] smashes into [src]!"))
if(reinf)
damage = damage / 2
take_damage(damage)
@@ -227,15 +227,15 @@
var/obj/item/weldingtool/WT = W.get_welder()
if(health < maxhealth)
if(WT.remove_fuel(1 ,user))
- to_chat(user, "You begin repairing [src]...")
+ to_chat(user, span_notice("You begin repairing [src]..."))
playsound(src, WT.usesound, 50, 1)
if(do_after(user, 40 * WT.toolspeed, target = src))
health = maxhealth
// playsound(src, 'sound/items/Welder.ogg', 50, 1)
update_icon()
- to_chat(user, "You repair [src].")
+ to_chat(user, span_notice("You repair [src]."))
else
- to_chat(user, "[src] is already in good condition!")
+ to_chat(user, span_warning("[src] is already in good condition!"))
return
// Slamming.
@@ -247,17 +247,17 @@
qdel(W) //gotta delete it here because if window breaks, it won't get deleted
switch (state)
if(1)
- M.visible_message("[user] slams [M] against \the [src]!")
+ M.visible_message(span_warning("[user] slams [M] against \the [src]!"))
M.apply_damage(7)
hit(10)
if(2)
- M.visible_message("[user] bashes [M] against \the [src]!")
+ M.visible_message(span_danger("[user] bashes [M] against \the [src]!"))
if (prob(50))
M.Weaken(1)
M.apply_damage(10)
hit(25)
if(3)
- M.visible_message("[user] crushes [M] against \the [src]!")
+ M.visible_message(span_danger("[user] crushes [M] against \the [src]!"))
M.Weaken(5)
M.apply_damage(20)
hit(50)
@@ -270,31 +270,31 @@
state = 3 - state
update_nearby_icons()
playsound(src, W.usesound, 75, 1)
- to_chat(user, "You have [state == 1 ? "un" : ""]fastened the window [state ? "from" : "to"] the frame.")
+ to_chat(user, span_notice("You have [state == 1 ? "un" : ""]fastened the window [state ? "from" : "to"] the frame."))
else if(reinf && state == 0)
anchored = !anchored
update_nearby_tiles(need_rebuild=1)
update_nearby_icons()
update_verbs()
playsound(src, W.usesound, 75, 1)
- to_chat(user, "You have [anchored ? "" : "un"]fastened the frame [anchored ? "to" : "from"] the floor.")
+ to_chat(user, span_notice("You have [anchored ? "" : "un"]fastened the frame [anchored ? "to" : "from"] the floor."))
else if(!reinf)
anchored = !anchored
update_nearby_tiles(need_rebuild=1)
update_nearby_icons()
update_verbs()
playsound(src, W.usesound, 75, 1)
- to_chat(user, "You have [anchored ? "" : "un"]fastened the window [anchored ? "to" : "from"] the floor.")
+ to_chat(user, span_notice("You have [anchored ? "" : "un"]fastened the window [anchored ? "to" : "from"] the floor."))
else if(W.has_tool_quality(TOOL_CROWBAR) && reinf && state <= 1)
state = 1 - state
playsound(src, W.usesound, 75, 1)
- to_chat(user, "You have pried the window [state ? "into" : "out of"] the frame.")
+ to_chat(user, span_notice("You have pried the window [state ? "into" : "out of"] the frame."))
else if(W.has_tool_quality(TOOL_WRENCH) && !anchored && (!state || !reinf))
if(!glasstype)
- to_chat(user, "You're not sure how to dismantle \the [src] properly.")
+ to_chat(user, span_notice("You're not sure how to dismantle \the [src] properly."))
else
playsound(src, W.usesound, 75, 1)
- visible_message("[user] dismantles \the [src].")
+ visible_message(span_notice("[user] dismantles \the [src]."))
var/obj/item/stack/material/mats = new glasstype(loc)
if(is_fulltile())
mats.set_amount(4)
@@ -305,7 +305,7 @@
playsound(src, 'sound/effects/sparks1.ogg', 75, 1)
user.visible_message( \
"\The [user] begins to wire \the [src] for electrochromic tinting.", \
- "You begin to wire \the [src] for electrochromic tinting.", \
+ span_notice("You begin to wire \the [src] for electrochromic tinting."), \
"You hear sparks.")
if(do_after(user, 20 * C.toolspeed, src) && state == 0)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
@@ -609,7 +609,7 @@
if(istype(MT.connectable, /obj/machinery/button/windowtint))
var/obj/machinery/button/windowtint/buffered_button = MT.connectable
src.id = buffered_button.id
- to_chat(user, "\The [src] is linked to \the [buffered_button] with ID '[id]'.")
+ to_chat(user, span_notice("\The [src] is linked to \the [buffered_button] with ID '[id]'."))
return TRUE
// Otherwise fall back to asking them... and remind them what the current ID is.
if(id)
@@ -617,7 +617,7 @@
var/t = sanitizeSafe(input(user, "Enter the new ID for the window.", src.name, null), MAX_NAME_LEN)
if(t && in_range(src, user))
src.id = t
- to_chat(user, "The new ID of \the [src] is '[id]'.")
+ to_chat(user, span_notice("The new ID of \the [src] is '[id]'."))
return TRUE
. = ..()
@@ -677,10 +677,10 @@
var/t = sanitizeSafe(tgui_input_text(user, "Enter an ID for \the [src].", src.name, null, MAX_NAME_LEN), MAX_NAME_LEN)
if (t && in_range(src, user))
src.id = t
- to_chat(user, "The new ID of \the [src] is '[id]'. To reset this, rebuild the control.")
+ to_chat(user, span_notice("The new ID of \the [src] is '[id]'. To reset this, rebuild the control."))
if(id)
// It already has an ID (or they just set one), buffer it for copying to windows.
- to_chat(user, "You store \the [src] ID ('[id]') in \the [MT]'s buffer!")
+ to_chat(user, span_notice("You store \the [src] ID ('[id]') in \the [MT]'s buffer!"))
MT.connectable = src
MT.update_icon()
return TRUE
diff --git a/code/game/objects/stumble_into_vr.dm b/code/game/objects/stumble_into_vr.dm
index 2079ab5a42..750e79183f 100644
--- a/code/game/objects/stumble_into_vr.dm
+++ b/code/game/objects/stumble_into_vr.dm
@@ -1,7 +1,7 @@
/atom/proc/stumble_into(mob/living/M)
playsound(src, "punch", 25, 1, -1)
- visible_message("[M] [pick("ran", "slammed")] into \the [src]!")
- to_chat(M, "You just [pick("ran", "slammed")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("ran", "slammed")] into \the [src]!"))
+ to_chat(M, span_warning("You just [pick("ran", "slammed")] into \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
M.stop_flying()
@@ -14,7 +14,7 @@
playsound(src, material.tableslam_noise, 25, 1, -1)
else
playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1)
- visible_message("[M] flopped onto \the [src]!")
+ visible_message(span_warning("[M] flopped onto \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
M.forceMove(get_turf(src))
@@ -22,7 +22,7 @@
/obj/machinery/disposal/stumble_into(mob/living/M)
playsound(src, 'sound/effects/clang.ogg', 25, 1, -1)
- visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("tripped", "stumbled")] into \the [src]!"))
log_and_message_admins("stumbled into \the [src]", M)
if(M.client)
M.client.perspective = EYE_PERSPECTIVE
@@ -35,20 +35,20 @@
/obj/structure/inflatable/stumble_into(mob/living/M)
playsound(src, "sound/effects/Glasshit.ogg", 25, 1, -1)
- visible_message("[M] [pick("ran", "slammed")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("ran", "slammed")] into \the [src]!"))
M.Weaken(1)
M.stop_flying()
/obj/structure/kitchenspike/stumble_into(mob/living/M)
playsound(src, "sound/weapons/pierce.ogg", 25, 1, -1)
- visible_message("[M] [pick("ran", "slammed")] into the spikes on \the [src]!")
+ visible_message(span_warning("[M] [pick("ran", "slammed")] into the spikes on \the [src]!"))
M.apply_damage(15, BRUTE, sharp = TRUE)
M.Weaken(5)
M.stop_flying()
/obj/structure/m_tray/stumble_into(mob/living/M)
playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1)
- visible_message("[M] flopped onto \the [src]!")
+ visible_message(span_warning("[M] flopped onto \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
M.forceMove(get_turf(src))
@@ -56,14 +56,14 @@
/obj/structure/c_tray/stumble_into(mob/living/M)
playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1)
- visible_message("[M] flopped onto \the [src]!")
+ visible_message(span_warning("[M] flopped onto \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
M.forceMove(get_turf(src))
M.stop_flying()
/obj/structure/window/stumble_into(mob/living/M)
- visible_message("[M] [pick("ran", "slammed")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("ran", "slammed")] into \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
hitby(M)
@@ -74,7 +74,7 @@
if(occupied)
return ..()
playsound(src, 'sound/misc/slip.ogg', 25, 1, -1)
- visible_message("[M] [pick("tripped", "stumbled")] over \the [src]!")
+ visible_message(span_warning("[M] [pick("tripped", "stumbled")] over \the [src]!"))
M.Weaken(2)
M.stop_flying()
if(get_turf(M) == get_turf(src))
@@ -93,7 +93,7 @@
bumpopen(M)
/obj/machinery/appliance/cooker/fryer/stumble_into(mob/living/M)
- visible_message("[M] [pick("ran", "slammed")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("ran", "slammed")] into \the [src]!"))
M.apply_damage(15, BURN)
M.Weaken(5)
M.emote("scream")
@@ -103,7 +103,7 @@
if((stat & (NOPOWER|BROKEN)) || !istype(M, /mob/living/carbon) || occupant || M.abiotic() || !node)
return ..()
playsound(src, 'sound/effects/Glasshit.ogg', 25, 1, -1)
- visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("tripped", "stumbled")] into \the [src]!"))
M.apply_damage(5, BRUTE)
M.Weaken(2)
put_mob(M)
@@ -127,7 +127,7 @@
if(!ishuman(M) || !isopen || !ispowered || isbroken || OCCUPANT || HELMET || SUIT)
return ..()
playsound(src, 'sound/effects/clang.ogg', 25, 1, -1)
- visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!")
+ visible_message(span_warning("[M] [pick("tripped", "stumbled")] into \the [src]!"))
if(M.client)
M.client.perspective = EYE_PERSPECTIVE
M.client.eye = src
diff --git a/code/game/objects/weapons.dm b/code/game/objects/weapons.dm
index 99190be832..536ce05cbf 100644
--- a/code/game/objects/weapons.dm
+++ b/code/game/objects/weapons.dm
@@ -43,7 +43,7 @@
cleave_visual(user, target)
if(hit_mobs)
- to_chat(user, "You used \the [src] to attack [hit_mobs] other thing\s!")
+ to_chat(user, span_danger("You used \the [src] to attack [hit_mobs] other thing\s!"))
cleaving = FALSE // We're done now.
return hit_mobs > 0 // Returns TRUE if anything got hit.
diff --git a/code/game/response_team.dm b/code/game/response_team.dm
index ec69bdefec..d80fa0861b 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)
- to_chat(usr, "Only administrators may use this command.")
+ to_chat(usr, span_danger("Only administrators may use this command."))
return
if(!ticker)
- to_chat(usr, "The game hasn't started yet!")
+ to_chat(usr, span_danger("The game hasn't started yet!"))
return
if(ticker.current_state == 1)
- to_chat(usr, "The round hasn't started yet!")
+ to_chat(usr, span_danger("The round hasn't started yet!"))
return
if(send_emergency_team)
- to_chat(usr, "[using_map.boss_name] has already dispatched an emergency response team!")
+ to_chat(usr, span_danger("[using_map.boss_name] has already dispatched an emergency response team!"))
return
if(tgui_alert(usr, "Do you want to dispatch an Emergency Response Team?","ERT",list("Yes","No")) != "Yes")
return
@@ -32,7 +32,7 @@ var/silent_ert = 0
if(tgui_alert(usr, "The station is not in red alert. Do you still want to dispatch a response team?","ERT",list("Yes","No")) != "Yes")
return
if(send_emergency_team)
- to_chat(usr, "Looks like somebody beat you to it!")
+ to_chat(usr, span_danger("Looks like somebody beat you to it!"))
return
message_admins("[key_name_admin(usr)] is dispatching an Emergency Response Team.", 1)
@@ -46,7 +46,7 @@ var/silent_ert = 0
set category = "IC"
if(!MayRespawn(1))
- to_chat(usr, "You cannot join the response team at this time.")
+ to_chat(usr, span_warning("You cannot join the response team at this time."))
return
if(istype(usr,/mob/observer/dead) || istype(usr,/mob/new_player))
@@ -54,7 +54,7 @@ var/silent_ert = 0
to_chat(usr, "No emergency response team is currently being sent.")
return
if(jobban_isbanned(usr, JOB_SYNDICATE) || jobban_isbanned(usr, JOB_EMERGENCY_RESPONSE_TEAM) || jobban_isbanned(usr, JOB_SECURITY_OFFICER))
- to_chat(usr, "You are jobbanned from the emergency reponse team!")
+ to_chat(usr, span_danger("You are jobbanned from the emergency reponse team!"))
return
if(ert.current_antagonists.len >= ert.hard_cap)
to_chat(usr, "The emergency response team is already full!")
diff --git a/code/game/sound.dm b/code/game/sound.dm
index dbbbc8abfd..40722e5359 100644
--- a/code/game/sound.dm
+++ b/code/game/sound.dm
@@ -138,7 +138,7 @@
if(prefs?.read_preference(/datum/preference/toggle/play_lobby_music))
var/datum/track/T = pick(SSmedia_tracks.lobby_tracks)
media.push_music(T.url, world.time, 0.85)
- to_chat(src,"Lobby music: [T.title] by [T.artist].")
+ to_chat(src,span_notice("Lobby music: [T.title] by [T.artist]."))
/proc/get_sfx(soundin)
if(istext(soundin))
diff --git a/code/game/trader_visit.dm b/code/game/trader_visit.dm
index a7bfab8d2e..ceb90b4675 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)
- to_chat(usr, "Only administrators may use this command.")
+ to_chat(usr, span_danger("Only administrators may use this command."))
return
if(!ticker)
- to_chat(usr, "The game hasn't started yet!")
+ to_chat(usr, span_danger("The game hasn't started yet!"))
return
if(ticker.current_state == 1)
- to_chat(usr, "The round hasn't started yet!")
+ to_chat(usr, span_danger("The round hasn't started yet!"))
return
if(send_beruang)
- to_chat(usr, "The Beruang has already been sent this round!")
+ to_chat(usr, span_danger("The Beruang has already been sent this round!"))
return
if(tgui_alert(usr, "Do you want to dispatch the Beruang trade ship?","Trade Ship",list("Yes","No")) != "Yes")
return
@@ -26,7 +26,7 @@ var/can_call_traders = 1
if(tgui_alert(usr, "The station is in red alert. Do you still want to send traders?","Trade Ship",list("Yes","No")) != "Yes")
return
if(send_beruang)
- to_chat(usr, "Looks like somebody beat you to it!")
+ to_chat(usr, span_danger("Looks like somebody beat you to it!"))
return
message_admins("[key_name_admin(usr)] is dispatching the Beruang.", 1)
@@ -39,7 +39,7 @@ var/can_call_traders = 1
set category = "IC"
if(!MayRespawn(1))
- to_chat(usr, "You cannot join the traders.")
+ to_chat(usr, span_warning("You cannot join the traders."))
return
if(istype(usr,/mob/observer/dead) || istype(usr,/mob/new_player))
diff --git a/code/game/turfs/simulated.dm b/code/game/turfs/simulated.dm
index d60d807950..841ab7286b 100644
--- a/code/game/turfs/simulated.dm
+++ b/code/game/turfs/simulated.dm
@@ -92,7 +92,7 @@
/turf/simulated/Entered(atom/A, atom/OL)
if(movement_disabled && usr.ckey != movement_disabled_exception)
- to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems
+ to_chat(usr, span_danger("Movement is admin-disabled.")) //This is to identify lag problems
return
if (istype(A,/mob/living))
diff --git a/code/game/turfs/simulated/floor_attackby.dm b/code/game/turfs/simulated/floor_attackby.dm
index 791de56615..ff00f6273e 100644
--- a/code/game/turfs/simulated/floor_attackby.dm
+++ b/code/game/turfs/simulated/floor_attackby.dm
@@ -38,17 +38,17 @@
if(!A)
A = locate(/turf/simulated/wall) in cardinalTurfs
if(!A)
- to_chat(user, "There's nothing to attach the ceiling to!")
+ to_chat(user, span_warning("There's nothing to attach the ceiling to!"))
return
if(R.use(1)) // Cost of roofing tiles is 1:1 with cost to place lattice and plating
T.ReplaceWithLattice()
T.ChangeTurf(/turf/simulated/floor, preserve_outdoors = TRUE)
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
- user.visible_message("[user] patches a hole in the ceiling.", "You patch a hole in the ceiling.")
+ user.visible_message(span_notice("[user] patches a hole in the ceiling."), span_notice("You patch a hole in the ceiling."))
expended_tile = TRUE
else
- to_chat(user, "There aren't any holes in the ceiling to patch here.")
+ to_chat(user, span_warning("There aren't any holes in the ceiling to patch here."))
return
// Create a ceiling to shield from the weather
@@ -59,7 +59,7 @@
if(expended_tile || R.use(1))
make_indoors()
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
- user.visible_message("[user] roofs a tile, shielding it from the elements.", "You roof this tile, shielding it from the elements.")
+ user.visible_message(span_notice("[user] roofs a tile, shielding it from the elements."), span_notice("You roof this tile, shielding it from the elements."))
break
return
@@ -69,7 +69,7 @@
try_deconstruct_tile(C, user)
return
else if(istype(C, /obj/item/stack/cable_coil))
- to_chat(user, "You must remove the [flooring.descriptor] first.")
+ to_chat(user, span_warning("You must remove the [flooring.descriptor] first."))
return
else if(istype(C, /obj/item/stack/tile))
if(try_replace_tile(C, user))
@@ -78,7 +78,7 @@
if(!flooring.build_type && can_be_plated && !((flooring.flags & TURF_REMOVE_WRENCH) || (flooring.flags & TURF_REMOVE_CROWBAR) || (flooring.flags & TURF_REMOVE_SCREWDRIVER) || (flooring.flags & TURF_REMOVE_SHOVEL)))
for(var/obj/structure/P in contents)
if(istype(P, /obj/structure/flora))
- to_chat(user, "The [P.name] is in the way, you'll have to get rid of it first.")
+ to_chat(user, span_warning("The [P.name] is in the way, you'll have to get rid of it first."))
return
var/obj/item/stack/tile/floor/S = C
if (S.get_amount() < 1)
@@ -94,7 +94,7 @@
// Placing wires on plating
if(istype(C, /obj/item/stack/cable_coil))
if(broken || burnt)
- to_chat(user, "This section is too damaged to support anything. Use a welder to fix the damage.")
+ to_chat(user, span_warning("This section is too damaged to support anything. Use a welder to fix the damage."))
return
var/obj/item/stack/cable_coil/coil = C
coil.turf_place(src, user)
@@ -102,7 +102,7 @@
// Placing flooring on plating
else if(istype(C, /obj/item/stack))
if(broken || burnt)
- to_chat(user, "This section is too damaged to support anything. Use a welder to fix the damage.")
+ to_chat(user, span_warning("This section is too damaged to support anything. Use a welder to fix the damage."))
return
var/obj/item/stack/S = C
var/decl/flooring/use_flooring
@@ -117,7 +117,7 @@
return
// Do we have enough?
if(use_flooring.build_cost && S.get_amount() < use_flooring.build_cost)
- to_chat(user, "You require at least [use_flooring.build_cost] [S.name] to complete the [use_flooring.descriptor].")
+ to_chat(user, span_warning("You require at least [use_flooring.build_cost] [S.name] to complete the [use_flooring.descriptor]."))
return
// Stay still and focus...
if(use_flooring.build_time && !do_after(user, use_flooring.build_time))
@@ -135,23 +135,23 @@
// Needs repairs
if(broken || burnt)
if(welder.remove_fuel(0,user))
- to_chat(user, "You fix some dents on the broken plating.")
+ to_chat(user, span_notice("You fix some dents on the broken plating."))
playsound(src, welder.usesound, 80, 1)
icon_state = "plating"
burnt = null
broken = null
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_warning("You need more welding fuel to complete this task."))
// Deconstructing plating
else
var/base_type = get_base_turf_by_area(src)
if(type == base_type || !base_type)
- to_chat(user, "There's nothing under [src] to expose by cutting.")
+ to_chat(user, span_warning("There's nothing under [src] to expose by cutting."))
return
if(!can_remove_plating(user))
return
- user.visible_message("[user] begins cutting through [src].", "You begin cutting through [src].")
+ user.visible_message(span_warning("[user] begins cutting through [src]."), span_warning("You begin cutting through [src]."))
// This is slow because it's a potentially hostile action to just cut through places into space in the middle of the bar and such
// Presumably also the structural floor is thick?
if(do_after(user, 10 SECONDS, src, TRUE, exclusive = TASK_ALL_EXCLUSIVE))
@@ -162,13 +162,13 @@
/turf/simulated/floor/proc/try_deconstruct_tile(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_CROWBAR))
if(broken || burnt)
- to_chat(user, "You remove the broken [flooring.descriptor].")
+ to_chat(user, span_notice("You remove the broken [flooring.descriptor]."))
make_plating()
else if(flooring.flags & TURF_IS_FRAGILE)
- to_chat(user, "You forcefully pry off the [flooring.descriptor], destroying them in the process.")
+ to_chat(user, span_danger("You forcefully pry off the [flooring.descriptor], destroying them in the process."))
make_plating()
else if(flooring.flags & TURF_REMOVE_CROWBAR)
- to_chat(user, "You lever off the [flooring.descriptor].")
+ to_chat(user, span_notice("You lever off the [flooring.descriptor]."))
make_plating(1)
else
return 0
@@ -177,17 +177,17 @@
else if(W.has_tool_quality(TOOL_SCREWDRIVER) && (flooring.flags & TURF_REMOVE_SCREWDRIVER))
if(broken || burnt)
return 0
- to_chat(user, "You unscrew and remove the [flooring.descriptor].")
+ to_chat(user, span_notice("You unscrew and remove the [flooring.descriptor]."))
make_plating(1)
playsound(src, W.usesound, 80, 1)
return 1
else if(W.has_tool_quality(TOOL_WRENCH) && (flooring.flags & TURF_REMOVE_WRENCH))
- to_chat(user, "You unwrench and remove the [flooring.descriptor].")
+ to_chat(user, span_notice("You unwrench and remove the [flooring.descriptor]."))
make_plating(1)
playsound(src, W.usesound, 80, 1)
return 1
else if(istype(W, /obj/item/shovel) && (flooring.flags & TURF_REMOVE_SHOVEL))
- to_chat(user, "You shovel off the [flooring.descriptor].")
+ to_chat(user, span_notice("You shovel off the [flooring.descriptor]."))
make_plating(1)
playsound(src, 'sound/items/Deconstruct.ogg', 80, 1)
return 1
@@ -207,10 +207,10 @@
/turf/simulated/floor/proc/can_remove_plating(mob/user)
if(!is_plating())
- to_chat(user, "\The [src] can't be cut through!")
+ to_chat(user, span_warning("\The [src] can't be cut through!"))
return FALSE
if(locate(/obj/structure) in contents)
- to_chat(user, "\The [src] has structures that must be removed before cutting!")
+ to_chat(user, span_warning("\The [src] has structures that must be removed before cutting!"))
return FALSE
return TRUE
@@ -218,7 +218,7 @@
if(W.has_tool_quality(TOOL_WELDER))
var/obj/item/weldingtool/WT = W.get_welder()
if(!WT.remove_fuel(5,user))
- to_chat(user, "You don't have enough fuel in [WT] finish cutting through [src].")
+ to_chat(user, span_warning("You don't have enough fuel in [WT] finish cutting through [src]."))
return
playsound(src, WT.usesound, 80, 1)
diff --git a/code/game/turfs/simulated/floor_types_vr.dm b/code/game/turfs/simulated/floor_types_vr.dm
index e6dfafa9ac..790acb1976 100644
--- a/code/game/turfs/simulated/floor_types_vr.dm
+++ b/code/game/turfs/simulated/floor_types_vr.dm
@@ -55,7 +55,7 @@
return
var/obj/item/stack/rods/R = C
if (R.use(1))
- to_chat(user, "Constructing support lattice ...")
+ to_chat(user, span_notice("Constructing support lattice ..."))
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
new/obj/structure/lattice(src)
return
@@ -72,7 +72,7 @@
ChangeTurf(/turf/simulated/floor/airless)
return
else
- to_chat(user, "The plating is going to need some support.")
+ to_chat(user, span_warning("The plating is going to need some support."))
/turf/simulated/shuttle/plating/airless/carry/is_solid_structure()
return locate(/obj/structure/lattice, src)
@@ -88,4 +88,3 @@
desc = "It is entirely made of sick, gurgling flesh. It is releasing a sickly odour."
icon_state = "bloodfloor_2"
icon = 'icons/goonstation/turf/meatland.dmi'
-
diff --git a/code/game/turfs/simulated/outdoors/snow.dm b/code/game/turfs/simulated/outdoors/snow.dm
index 424ae0dc28..6306d3f5ed 100644
--- a/code/game/turfs/simulated/outdoors/snow.dm
+++ b/code/game/turfs/simulated/outdoors/snow.dm
@@ -30,13 +30,13 @@
/turf/simulated/floor/outdoors/snow/attackby(var/obj/item/W, var/mob/user)
if(istype(W, /obj/item/shovel))
- to_chat(user, "You begin to remove \the [src] with your [W].")
+ to_chat(user, span_notice("You begin to remove \the [src] with your [W]."))
if(do_after(user, 4 SECONDS * W.toolspeed))
- to_chat(user, "\The [src] has been dug up, and now lies in a pile nearby.")
+ to_chat(user, span_notice("\The [src] has been dug up, and now lies in a pile nearby."))
new /obj/item/stack/material/snow(src, 10)
demote()
else
- to_chat(user, "You decide to not finish removing \the [src].")
+ to_chat(user, span_notice("You decide to not finish removing \the [src]."))
else
..()
@@ -69,7 +69,7 @@
sleep(1 * world.tick_lag)
if(istype(M, /mob/living))
if(M.stunned == 0)
- to_chat(M, "You slide across the ice!")
+ to_chat(M, span_warning("You slide across the ice!"))
M.SetStunned(1)
step(M,M.dir)
diff --git a/code/game/turfs/simulated/outdoors/survival_action_vr.dm b/code/game/turfs/simulated/outdoors/survival_action_vr.dm
index a94e111e5c..3e527ff13a 100644
--- a/code/game/turfs/simulated/outdoors/survival_action_vr.dm
+++ b/code/game/turfs/simulated/outdoors/survival_action_vr.dm
@@ -16,7 +16,7 @@ var/static/list/has_rocks = list("dirt5", "dirt6", "dirt7", "dirt8", "dirt9")
icon_state = "dirt0"
return
if(locate(/obj) in src)
- to_chat(user, "The [name] isn't clear.")
+ to_chat(user, span_notice("The [name] isn't clear."))
return
else
var/choice= tgui_alert(user, "Do you want to build a growplot out of the dirt?", "Build growplot?" , list("Yes", "No"))
@@ -31,17 +31,17 @@ var/static/list/has_rocks = list("dirt5", "dirt6", "dirt7", "dirt8", "dirt9")
/turf/simulated/floor/outdoors/proc/rock_gathering(var/mob/user as mob)
if(locate(/obj) in src)
- to_chat(user, "The [name] isn't clear.")
+ to_chat(user, span_notice("The [name] isn't clear."))
return
user.visible_message("[user] starts digging around in \the [src]...", "You start digging around in \the [src]...")
if(do_after(user, 5 SECONDS, exclusive = TASK_USER_EXCLUSIVE))
if(prob(rock_chance))
var/obj/item/stack/material/flint/R = new(get_turf(src), rand(1,4))
- to_chat(user, "You found some [R]")
+ to_chat(user, span_notice("You found some [R]"))
R.pixel_x = rand(-6,6)
R.pixel_y = rand(-6,6)
else
- to_chat(user, "You didn't find anything...")
+ to_chat(user, span_notice("You didn't find anything..."))
else
return
@@ -65,7 +65,7 @@ var/static/list/has_rocks = list("dirt5", "dirt6", "dirt7", "dirt8", "dirt9")
if(Adjacent(user))
var/static/list/has_rocks = list("dirt5", "dirt6", "dirt7", "dirt8", "dirt9")
if(icon_state in has_rocks)
- . += "There are some rocks in the dirt."
+ . += span_notice("There are some rocks in the dirt.")
/obj/structure/flora/tree
var/sticks = TRUE
@@ -79,4 +79,4 @@ var/static/list/has_rocks = list("dirt5", "dirt6", "dirt7", "dirt8", "dirt9")
S.pixel_y = rand(-6,6)
sticks = FALSE
else
- to_chat(user, "You don't see any loose sticks...")
+ to_chat(user, span_notice("You don't see any loose sticks..."))
diff --git a/code/game/turfs/simulated/underwater.dm b/code/game/turfs/simulated/underwater.dm
index ac98d36fc7..3d67afef3f 100644
--- a/code/game/turfs/simulated/underwater.dm
+++ b/code/game/turfs/simulated/underwater.dm
@@ -43,7 +43,7 @@
if(L.check_submerged() <= 0)
return
if(!istype(oldloc, /turf/simulated/floor/water/underwater))
- to_chat(L, "You get drenched in water from entering \the [src]!")
+ to_chat(L, span_warning("You get drenched in water from entering \the [src]!"))
AM.water_act(5)
..()
@@ -54,7 +54,7 @@
if(L.check_submerged() <= 0)
return
if(!istype(newloc, /turf/simulated/floor/water/underwater))
- to_chat(L, "You climb out of \the [src].")
+ to_chat(L, span_warning("You climb out of \the [src]."))
..()
/turf/simulated/floor/water/deep/ocean/diving
@@ -93,4 +93,3 @@
icon_state = "wood-broken0" // So it shows up in the map editor as water.
water_icon = 'icons/turf/flooring/wood_vr.dmi'
water_state = "wood-broken0"
-
diff --git a/code/game/turfs/simulated/wall_attacks.dm b/code/game/turfs/simulated/wall_attacks.dm
index 04fc940b9a..d7630618e2 100644
--- a/code/game/turfs/simulated/wall_attacks.dm
+++ b/code/game/turfs/simulated/wall_attacks.dm
@@ -57,16 +57,16 @@
var/mob/living/simple_mob/S = user
playsound(src, S.attack_sound, 75, 1)
if(!(S.melee_damage_upper >= STRUCTURE_MIN_DAMAGE_THRESHOLD * 2))
- to_chat(user, "You bounce against the wall.")
+ to_chat(user, span_notice("You bounce against the wall."))
return FALSE
damage_lower = S.melee_damage_lower
damage_upper = S.melee_damage_upper
- to_chat(user, "You smash against the wall!")
+ to_chat(user, span_danger("You smash against the wall!"))
user.do_attack_animation(src)
take_damage(rand(damage_lower,damage_upper))
/turf/simulated/wall/proc/success_smash(var/mob/user)
- to_chat(user, "You smash through the wall!")
+ to_chat(user, span_danger("You smash through the wall!"))
user.do_attack_animation(src)
if(isanimal(user))
var/mob/living/simple_mob/S = user
@@ -78,15 +78,15 @@
if(rotting)
if(reinf_material)
- to_chat(user, "\The [reinf_material.display_name] feels porous and crumbly.")
+ to_chat(user, span_danger("\The [reinf_material.display_name] feels porous and crumbly."))
else
- to_chat(user, "\The [material.display_name] crumbles under your touch!")
+ to_chat(user, span_danger("\The [material.display_name] crumbles under your touch!"))
dismantle_wall()
return 1
if(!can_open)
if(!material.wall_touch_special(src, user))
- to_chat(user, "You push the wall, but nothing happens.")
+ to_chat(user, span_notice("You push the wall, but nothing happens."))
playsound(src, 'sound/weapons/Genhit.ogg', 25, 1)
else
toggle_open(user)
@@ -139,7 +139,7 @@
*/
if (!user.IsAdvancedToolUser())
- to_chat(user, "You don't have the dexterity to do this!")
+ to_chat(user, span_warning("You don't have the dexterity to do this!"))
return
//get the user's location
@@ -168,10 +168,10 @@
T.ReplaceWithLattice()
T.ChangeTurf(/turf/simulated/floor, preserve_outdoors = TRUE)
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
- user.visible_message("[user] patches a hole in the ceiling.", "You patch a hole in the ceiling.")
+ user.visible_message(span_notice("[user] patches a hole in the ceiling."), span_notice("You patch a hole in the ceiling."))
expended_tile = TRUE
else
- to_chat(user, "There aren't any holes in the ceiling to patch here.")
+ to_chat(user, span_warning("There aren't any holes in the ceiling to patch here."))
return
// Create a ceiling to shield from the weather
@@ -180,7 +180,7 @@
make_indoors()
if(!expended_tile) // Would've already played a sound
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
- user.visible_message("[user] roofs \the [src], shielding it from the elements.", "You roof \the [src] tile, shielding it from the elements.")
+ user.visible_message(span_notice("[user] roofs \the [src], shielding it from the elements."), span_notice("You roof \the [src] tile, shielding it from the elements."))
return
@@ -188,13 +188,13 @@
if(W.has_tool_quality(TOOL_WELDER))
var/obj/item/weldingtool/WT = W.get_welder()
if( WT.remove_fuel(0,user) )
- to_chat(user, "You burn away the fungi with \the [WT].")
+ to_chat(user, span_notice("You burn away the fungi with \the [WT]."))
playsound(src, WT.usesound, 10, 1)
for(var/obj/effect/overlay/wallrot/WR in src)
qdel(WR)
return
else if(!is_sharp(W) && W.force >= 10 || W.force >= 20)
- to_chat(user, "\The [src] crumbles away under the force of your [W.name].")
+ to_chat(user, span_notice("\The [src] crumbles away under the force of your [W.name]."))
src.dismantle_wall(1)
return
@@ -214,7 +214,7 @@
var/obj/item/melee/energy/blade/EB = W
EB.spark_system.start()
- to_chat(user, "You slash \the [src] with \the [EB]; the thermite ignites!")
+ to_chat(user, span_notice("You slash \the [src] with \the [EB]; the thermite ignites!"))
playsound(src, "sparks", 50, 1)
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
@@ -231,13 +231,13 @@
return
if(WT.remove_fuel(0,user))
- to_chat(user, "You start repairing the damage to [src].")
+ to_chat(user, span_notice("You start repairing the damage to [src]."))
playsound(src, WT.usesound, 100, 1)
if(do_after(user, max(5, damage / 5) * WT.toolspeed) && WT && WT.isOn())
- to_chat(user, "You finish repairing the damage to [src].")
+ to_chat(user, span_notice("You finish repairing the damage to [src]."))
take_damage(-damage)
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
user.update_examine_panel(src)
return
@@ -255,7 +255,7 @@
if(!WT.isOn())
return
if(!WT.remove_fuel(0,user))
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
dismantle_verb = "cutting"
dismantle_sound = W.usesound
@@ -273,7 +273,7 @@
if(dismantle_verb)
- to_chat(user, "You begin [dismantle_verb] through the outer plating.")
+ to_chat(user, span_notice("You begin [dismantle_verb] through the outer plating."))
if(dismantle_sound)
playsound(src, dismantle_sound, 100, 1)
@@ -283,9 +283,9 @@
if(!do_after(user,cut_delay * W.toolspeed))
return
- to_chat(user, "You remove the outer plating.")
+ to_chat(user, span_notice("You remove the outer plating."))
dismantle_wall()
- user.visible_message("The wall was torn open by [user]!")
+ user.visible_message(span_warning("The wall was torn open by [user]!"))
return
//Reinforced dismantling.
@@ -296,24 +296,24 @@
playsound(src, W.usesound, 100, 1)
construction_stage = 5
user.update_examine_panel(src)
- to_chat(user, "You cut through the outer grille.")
+ to_chat(user, span_notice("You cut through the outer grille."))
update_icon()
return
if(5)
if (W.has_tool_quality(TOOL_SCREWDRIVER))
- to_chat(user, "You begin removing the support lines.")
+ to_chat(user, span_notice("You begin removing the support lines."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,40 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 5)
return
construction_stage = 4
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You unscrew the support lines.")
+ to_chat(user, span_notice("You unscrew the support lines."))
return
else if (W.has_tool_quality(TOOL_WIRECUTTER))
construction_stage = 6
user.update_examine_panel(src)
- to_chat(user, "You mend the outer grille.")
+ to_chat(user, span_notice("You mend the outer grille."))
playsound(src, W.usesound, 100, 1)
update_icon()
return
@@ -326,51 +326,51 @@
if(WT.remove_fuel(0,user))
cut_cover=1
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
else if (istype(W, /obj/item/pickaxe/plasmacutter))
cut_cover = 1
if(cut_cover)
- to_chat(user, "You begin slicing through the metal cover.")
+ to_chat(user, span_notice("You begin slicing through the metal cover."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user, 60 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 4)
return
construction_stage = 3
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You press firmly on the cover, dislodging it.")
+ to_chat(user, span_notice("You press firmly on the cover, dislodging it."))
return
else if (W.has_tool_quality(TOOL_SCREWDRIVER))
- to_chat(user, "You begin screwing down the support lines.")
+ to_chat(user, span_notice("You begin screwing down the support lines."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,40 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 4)
return
construction_stage = 5
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You screw down the support lines.")
+ to_chat(user, span_notice("You screw down the support lines."))
return
if(3)
if (W.has_tool_quality(TOOL_CROWBAR))
- to_chat(user, "You struggle to pry off the cover.")
+ to_chat(user, span_notice("You struggle to pry off the cover."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,100 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 3)
return
construction_stage = 2
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You pry off the cover.")
+ to_chat(user, span_notice("You pry off the cover."))
return
if(2)
if (W.has_tool_quality(TOOL_WRENCH))
- to_chat(user, "You start loosening the anchoring bolts which secure the support rods to their frame.")
+ to_chat(user, span_notice("You start loosening the anchoring bolts which secure the support rods to their frame."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,40 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 2)
return
construction_stage = 1
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You remove the bolts anchoring the support rods.")
+ to_chat(user, span_notice("You remove the bolts anchoring the support rods."))
return
if(1)
var/cut_cover
@@ -379,28 +379,28 @@
if( WT.remove_fuel(0,user) )
cut_cover=1
else
- to_chat(user, "You need more welding fuel to complete this task.")
+ to_chat(user, span_notice("You need more welding fuel to complete this task."))
return
else if(istype(W, /obj/item/pickaxe/plasmacutter))
cut_cover = 1
if(cut_cover)
- to_chat(user, "You begin slicing through the support rods.")
+ to_chat(user, span_notice("You begin slicing through the support rods."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,70 * W.toolspeed) || !istype(src, /turf/simulated/wall) || construction_stage != 1)
return
construction_stage = 0
user.update_examine_panel(src)
update_icon()
- to_chat(user, "You slice through the support rods.")
+ to_chat(user, span_notice("You slice through the support rods."))
return
if(0)
if(W.has_tool_quality(TOOL_CROWBAR))
- to_chat(user, "You struggle to pry off the outer sheath.")
+ to_chat(user, span_notice("You struggle to pry off the outer sheath."))
playsound(src, W.usesound, 100, 1)
if(!do_after(user,100 * W.toolspeed) || !istype(src, /turf/simulated/wall) || !user || !W || !T )
return
if(user.loc == T && user.get_active_hand() == W )
- to_chat(user, "You pry off the outer sheath.")
+ to_chat(user, span_notice("You pry off the outer sheath."))
dismantle_wall()
return
@@ -411,5 +411,3 @@
else if(!istype(W,/obj/item/rcd) && !istype(W, /obj/item/reagent_containers))
return attack_hand(user)
-
-
diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm
index f600f83c42..571632b9dd 100644
--- a/code/game/turfs/simulated/walls.dm
+++ b/code/game/turfs/simulated/walls.dm
@@ -80,7 +80,7 @@
damage = new_damage
Proj.damage = outgoing_damage
- visible_message("\The [src] reflects \the [Proj]!")
+ visible_message(span_danger("\The [src] reflects \the [Proj]!"))
// Find a turf near or on the original location to bounce to
var/new_x = Proj.starting.x + pick(0, 0, 0, -1, 1, -2, 2)
@@ -127,18 +127,18 @@
. = ..()
if(!damage)
- . += "It looks fully intact."
+ . += span_notice("It looks fully intact.")
else
var/dam = damage / material.integrity
if(dam <= 0.3)
- . += "It looks slightly damaged."
+ . += span_warning("It looks slightly damaged.")
else if(dam <= 0.6)
- . += "It looks moderately damaged."
+ . += span_warning("It looks moderately damaged.")
else
- . += "It looks heavily damaged."
+ . += span_danger("It looks heavily damaged.")
if(locate(/obj/effect/overlay/wallrot) in src)
- . += "There is fungus growing on [src]."
+ . += span_warning("There is fungus growing on [src].")
//Damage
@@ -154,7 +154,7 @@
return
F.burn_tile()
F.icon_state = "wall_thermite"
- visible_message("\The [src] spontaneously combusts!.") //!!OH SHIT!!
+ visible_message(span_danger("\The [src] spontaneously combusts!.")) //!!OH SHIT!!
return
/turf/simulated/wall/take_damage(dam)
@@ -281,7 +281,7 @@
var/turf/simulated/floor/F = src
F.burn_tile()
F.icon_state = "dmg[rand(1,4)]"
- to_chat(user, "The thermite starts melting through the wall.")
+ to_chat(user, span_warning("The thermite starts melting through the wall."))
spawn(100)
if(O)
diff --git a/code/game/turfs/simulated/water.dm b/code/game/turfs/simulated/water.dm
index d16806dd6d..d070cfd06c 100644
--- a/code/game/turfs/simulated/water.dm
+++ b/code/game/turfs/simulated/water.dm
@@ -42,12 +42,12 @@
var/obj/item/reagent_containers/RG = O
if (istype(RG) && RG.is_open_container())
RG.reagents.add_reagent(reagent_type, min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this))
- user.visible_message("[user] fills \the [RG] using \the [src].","You fill \the [RG] using \the [src].")
+ user.visible_message(span_notice("[user] fills \the [RG] using \the [src]."),span_notice("You fill \the [RG] using \the [src]."))
return 1
else if(istype(O, /obj/item/mop))
O.reagents.add_reagent(reagent_type, 5)
- to_chat(user, "You wet \the [O] in \the [src].")
+ to_chat(user, span_notice("You wet \the [O] in \the [src]."))
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
return 1
@@ -75,7 +75,7 @@
return water_breath
if(L && L.is_bad_swimmer() && depth >= 2 && !L.buckled() && !L.flying)
if(prob(10))
- L.visible_message("[L] splashes wildly.","You struggle to keep your head above the water!")
+ L.visible_message(span_notice("[L] splashes wildly."),span_warning("You struggle to keep your head above the water!"))
if(L.can_breathe_water())
var/datum/gas_mixture/water_breath = new()
var/datum/gas_mixture/above_air = return_air()
@@ -103,7 +103,7 @@
if(L.check_submerged() <= 0)
return
if(!istype(oldloc, /turf/simulated/floor/water))
- to_chat(L, "You get drenched in water from entering \the [src]!")
+ to_chat(L, span_warning("You get drenched in water from entering \the [src]!"))
AM.water_act(5)
..()
@@ -114,7 +114,7 @@
if(L.check_submerged() <= 0)
return
if(!istype(newloc, /turf/simulated/floor/water))
- to_chat(L, "You climb out of \the [src].")
+ to_chat(L, span_warning("You climb out of \the [src]."))
..()
/turf/simulated/floor/water/deep
@@ -260,7 +260,7 @@ var/list/shoreline_icon_cache = list()
if(L.check_submerged() <= 0)
return
if(!istype(oldloc, /turf/simulated/floor/water))
- to_chat(L, "You get drenched in blood from entering \the [src]!")
+ to_chat(L, span_warning("You get drenched in blood from entering \the [src]!"))
AM.water_act(5)
..()
@@ -273,4 +273,3 @@ var/list/shoreline_icon_cache = list()
water_state = "water"
under_state = "glamour"
reagent_type = "water"
-
diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm
index 60634ecc5d..6d4c24f2d5 100644
--- a/code/game/turfs/space/space.dm
+++ b/code/game/turfs/space/space.dm
@@ -88,7 +88,7 @@
return
var/obj/item/stack/rods/R = C
if (R.use(1))
- to_chat(user, "Constructing support lattice ...")
+ to_chat(user, span_notice("Constructing support lattice ..."))
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
ReplaceWithLattice()
return
@@ -105,7 +105,7 @@
ChangeTurf(/turf/simulated/floor/airless)
return
else
- to_chat(user, "The plating is going to need some support.")
+ to_chat(user, span_warning("The plating is going to need some support."))
if(istype(C, /obj/item/stack/tile/roofing))
var/turf/T = GetAbove(src)
@@ -119,16 +119,16 @@
if(!A)
A = locate(/turf/simulated/wall) in T.CardinalTurfs()
if(!A)
- to_chat(user, "There's nothing to attach the ceiling to!")
+ to_chat(user, span_warning("There's nothing to attach the ceiling to!"))
return
if(R.use(1)) // Cost of roofing tiles is 1:1 with cost to place lattice and plating
T.ReplaceWithLattice()
T.ChangeTurf(/turf/simulated/floor)
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
- user.visible_message("[user] expands the ceiling.", "You expand the ceiling.")
+ user.visible_message(span_notice("[user] expands the ceiling."), span_notice("You expand the ceiling."))
else
- to_chat(user, "There aren't any holes in the ceiling to patch here.")
+ to_chat(user, span_warning("There aren't any holes in the ceiling to patch here."))
return
// Space shouldn't have weather of the sort planets with atmospheres do.
// If that's changed, then you'll want to swipe the rest of the roofing code from code/game/turfs/simulated/floor_attackby.dm
diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm
index ce9760cab5..8ecf7256e2 100644
--- a/code/game/turfs/turf.dm
+++ b/code/game/turfs/turf.dm
@@ -140,7 +140,7 @@
user.do_attack_animation(src, no_attack_icons = TRUE)
if(!success) // Nothing got hit.
- user.visible_message("\The [user] swipes \the [W] over \the [src].")
+ user.visible_message(span_warning("\The [user] swipes \the [W] over \the [src]."))
playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
return success
@@ -183,7 +183,7 @@
//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)
- to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems
+ to_chat(usr, span_warning("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()
@@ -293,7 +293,7 @@
if(istype(O,/obj/effect/rune) || istype(O,/obj/effect/decal/cleanable) || istype(O,/obj/effect/overlay))
qdel(O)
else
- to_chat(user, "\The [source] is too dry to wash that.")
+ to_chat(user, span_warning("\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()
@@ -328,7 +328,7 @@
for(var/obj/effect/decal/writing/W in src)
too_much_graffiti++
if(too_much_graffiti >= 5)
- to_chat(vandal, "There's too much graffiti here to add more.")
+ to_chat(vandal, span_warning("There's too much graffiti here to add more."))
return FALSE
var/message = sanitize(tgui_input_text(usr, "Enter a message to engrave.", "Graffiti"), trim = TRUE)
@@ -338,18 +338,18 @@
if(!vandal || vandal.incapacitated() || !Adjacent(vandal) || !tool.loc == vandal)
return FALSE
- vandal.visible_message("\The [vandal] begins carving something into \the [src].")
+ vandal.visible_message(span_warning("\The [vandal] begins carving something into \the [src]."))
if(!do_after(vandal, max(20, length(message)), src))
return FALSE
- vandal.visible_message("\The [vandal] carves some graffiti into \the [src].")
+ vandal.visible_message(span_danger("\The [vandal] carves some graffiti into \the [src]."))
var/obj/effect/decal/writing/graffiti = new(src)
graffiti.message = message
graffiti.author = vandal.ckey
if(lowertext(message) == "elbereth")
- to_chat(vandal, "You feel much safer.")
+ to_chat(vandal, span_notice("You feel much safer."))
return TRUE
diff --git a/code/game/turfs/weird_turfs_vr.dm b/code/game/turfs/weird_turfs_vr.dm
index 9a6bad3973..f46006c401 100644
--- a/code/game/turfs/weird_turfs_vr.dm
+++ b/code/game/turfs/weird_turfs_vr.dm
@@ -24,17 +24,17 @@
if(istype(L.species, /datum/species/crew_shadekin))
L.halloss += 5
if(prob(50))
- to_chat(L, "The more you move through this darkness, the more you can feel a throbbing, shooting ache in your bones.")
+ to_chat(L, span_danger("The more you move through this darkness, the more you can feel a throbbing, shooting ache in your bones."))
if(prob(5))
L.visible_message("[L]'s body gives off a faint, sparking, haze...", "Your body gives off a faint, sparking, haze...", runemessage = "gives off a faint, sparking haze")
else if(istype(L.species, /datum/species/shadekin))
var/obj/item/organ/internal/brain/shadekin/B = L.internal_organs_by_name["brain"]
B.dark_energy += 10
if(prob(10))
- to_chat(L, "You can feel the energy flowing into you!")
+ to_chat(L, span_notice("You can feel the energy flowing into you!"))
else
if(prob(0.25))
- to_chat(L, "The darkness seethes under your feet...")
+ to_chat(L, span_danger("The darkness seethes under your feet..."))
L.hallucination += 50
/turf/simulated/floor/weird_things/dark/proc/add_glow()
@@ -83,17 +83,17 @@
if(istype(L.species, /datum/species/crew_shadekin))
L.halloss += 5
if(prob(50))
- to_chat(L, "The more you move through this darkness, the more you can feel a throbbing, shooting ache in your bones.")
+ to_chat(L, span_danger("The more you move through this darkness, the more you can feel a throbbing, shooting ache in your bones."))
if(prob(5))
L.visible_message("[L]'s body gives off a faint, sparking, haze...", "Your body gives off a faint, sparking, haze...", runemessage = "gives off a faint, sparking haze")
else if(istype(L.species, /datum/species/shadekin))
var/obj/item/organ/internal/brain/shadekin/B = L.internal_organs_by_name["brain"]
B.dark_energy += 10
if(prob(10))
- to_chat(L, "You can feel the energy flowing into you!")
+ to_chat(L, span_notice("You can feel the energy flowing into you!"))
else
if(prob(0.25))
- to_chat(L, "The darkness seethes under your feet...")
+ to_chat(L, span_danger("The darkness seethes under your feet..."))
L.hallucination += 50
/turf/unsimulated/floor/dark/proc/add_glow()
@@ -113,4 +113,4 @@
if(flip == 2)
choiceb = "overlay-[rand(1,6)]"
var/image/ii = image('icons/turf/flooring/weird_vr.dmi', choiceb)
- add_overlay(ii)
\ No newline at end of file
+ add_overlay(ii)
diff --git a/code/game/verbs/suicide.dm b/code/game/verbs/suicide.dm
index 3fabc75768..ddb06b6f77 100644
--- a/code/game/verbs/suicide.dm
+++ b/code/game/verbs/suicide.dm
@@ -3,5 +3,5 @@
/mob/living/verb/suicide()
set hidden = 1
- to_chat(src, "No. Adminhelp if there is a legitimate reason, and please review our server rules.")
+ to_chat(src, span_warning("No. Adminhelp if there is a legitimate reason, and please review our server rules."))
message_admins("[ckey] has tried to trigger the suicide verb, but it is disabled.")
diff --git a/code/game/world.dm b/code/game/world.dm
index 24ea94a8a2..428a24ddb6 100644
--- a/code/game/world.dm
+++ b/code/game/world.dm
@@ -419,10 +419,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")
- to_world("[key_name_admin(usr)] has requested an immediate world restart via client side debugging tools")
+ to_world(span_boldannounce("[key_name_admin(usr)] has requested an immediate world restart via client side debugging tools"))
else
- to_world("Rebooting world immediately due to host request")
+ to_world(span_boldannounce("Rebooting world immediately due to host request"))
else
Master.Shutdown() //run SS shutdowns
for(var/client/C in GLOB.clients)
diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm
index 6695f2b6b6..4eef2a3724 100644
--- a/code/modules/admin/DB ban/functions.dm
+++ b/code/modules/admin/DB ban/functions.dm
@@ -83,7 +83,7 @@
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()
- to_chat(usr, "[span_blue("Ban saved to database.")]")
+ to_chat(usr, span_filter_adminlog("[span_blue("Ban saved to database.")]"))
message_admins("[key_name_admin(usr)] has added a [bantype_str] for [ckey] [(job)?"([job])":""] [(duration > 0)?"([duration] minutes)":""] with the reason: \"[reason]\" to the ban database.",1)
@@ -137,17 +137,17 @@
ban_number++;
if(ban_number == 0)
- to_chat(usr, "[span_red("Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin.")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin.")]"))
return
if(ban_number > 1)
- to_chat(usr, "[span_red("Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin.")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin.")]"))
return
if(istext(ban_id))
ban_id = text2num(ban_id)
if(!isnum(ban_id))
- to_chat(usr, "[span_red("Database update failed due to a ban ID mismatch. Contact the database admin.")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Database update failed due to a ban ID mismatch. Contact the database admin.")]"))
return
DB_ban_unban_by_id(ban_id)
@@ -173,7 +173,7 @@
duration = query.item[2]
reason = query.item[3]
else
- to_chat(usr, "Invalid ban id. Contact the database admin")
+ to_chat(usr, span_filter_adminlog("Invalid ban id. Contact the database admin"))
return
reason = sql_sanitize_text(reason)
@@ -205,7 +205,7 @@
if(tgui_alert(usr, "Unban [pckey]?", "Unban?", list("Yes", "No")) == "Yes")
DB_ban_unban_by_id(banid)
return
- to_chat(usr, "Cancelled")
+ to_chat(usr, span_filter_adminlog("Cancelled"))
return
/datum/admins/proc/DB_ban_unban_by_id(var/id)
@@ -228,11 +228,11 @@
ban_number++;
if(ban_number == 0)
- to_chat(usr, "[span_red("Database update failed due to a ban id not being present in the database.")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Database update failed due to a ban id not being present in the database.")]"))
return
if(ban_number > 1)
- to_chat(usr, "[span_red("Database update failed due to multiple bans having the same ID. Contact the database admin.")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Database update failed due to multiple bans having the same ID. Contact the database admin.")]"))
return
if(!src.owner || !istype(src.owner, /client))
@@ -268,7 +268,7 @@
establish_db_connection()
if(!dbcon.IsConnected())
- to_chat(usr, "[span_red("Failed to establish database connection")]")
+ to_chat(usr, span_filter_adminlog("[span_red("Failed to establish database connection")]"))
return
var/output = ""
diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm
index 9e5ff08a13..345e44637a 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]") )
- to_chat(usr, "Ban already exists.")
+ to_chat(usr, span_filter_adminlog(span_warning("Ban already exists.")))
return 0
else
Banlist.dir.Add("[ckey][computerid]")
diff --git a/code/modules/admin/ToRban.dm b/code/modules/admin/ToRban.dm
index a3a5863cec..4027234428 100644
--- a/code/modules/admin/ToRban.dm
+++ b/code/modules/admin/ToRban.dm
@@ -38,7 +38,7 @@
F["last_update"] << world.realtime
log_misc("ToR data updated!")
if(usr)
- to_chat(usr, "ToRban updated.")
+ to_chat(usr, span_filter_adminlog("ToRban updated."))
return
log_misc("ToR data update aborted: no data.")
return
@@ -73,16 +73,16 @@
var/choice = tgui_input_list(src,"Please select an IP address to remove from the ToR banlist:","Remove ToR ban", F.dir)
if(choice)
F.dir.Remove(choice)
- to_chat(src, "Address removed")
+ to_chat(src, span_filter_adminlog("Address removed"))
if("remove all")
- to_chat(src, "[TORFILE] was [fdel(TORFILE)?"":"not "]removed.")
+ to_chat(src, span_filter_adminlog("[TORFILE] was [fdel(TORFILE)?"":"not "]removed."))
if("find")
var/input = tgui_input_text(src,"Please input an IP address to search for:","Find ToR ban",null)
if(input)
if(ToRban_isbanned(input))
- to_chat(src, "[span_orange("Address is a known ToR address")]")
+ to_chat(src, span_filter_adminlog("[span_orange("Address is a known ToR address")]"))
else
- to_chat(src, "Address is not a known ToR address")
+ to_chat(src, span_filter_adminlog(span_danger("Address is not a known ToR address")))
return
#undef TORFILE
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index cad295e4d0..8a91738a56 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -603,7 +603,7 @@ var/global/floorIsLava = 0
if(!confirm || confirm == "Cancel")
return
if(confirm == "Yes")
- to_world("Restarting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!")
+ to_world(span_danger("Restarting world!" ) + span_notice("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)" : ""]")
@@ -702,12 +702,12 @@ var/datum/announcement/minor/admin_min_announcer = new
//Time to find how they screwed up.
//Wasn't the right length
if((decomposed.len) % 3) //+1 to accomidate the lack of a wait time for the last message
- to_chat(usr, "You passed [decomposed.len] segments (senders+messages+pauses). You must pass a multiple of 3, minus 1 (no pause after the last message). That means a sender and message on every other line (starting on the first), separated by a pipe character (|), and a number every other line that is a pause in seconds.")
+ to_chat(usr, span_warning("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, span_warning("This conversation is too long! 20 messages maximum, please."))
return
//Missed some sleeps, or sanitized to nothing.
@@ -716,24 +716,24 @@ var/datum/announcement/minor/admin_min_announcer = new
//Sanitize sender
var/clean_sender = sanitize(decomposed[i])
if(!clean_sender)
- to_chat(usr, "One part of your conversation was not able to be sanitized. It was the sender of the [(i+2)/3]\th message.")
+ to_chat(usr, span_warning("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, span_warning("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, span_warning("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, span_warning("Max 60 second wait time between messages for sanity's sake please."))
return
decomposed[i] = clean_time
@@ -842,7 +842,7 @@ var/datum/announcement/minor/admin_min_announcer = new
if(!check_rights(R_SERVER|R_EVENT))
return
if(SSticker.current_state > GAME_STATE_PREGAME)
- to_chat(usr, "Error: Start Now: Game has already started.")
+ to_chat(usr, span_warning("Error: Start Now: Game has already started."))
return
if(!SSticker.start_immediately)
SSticker.start_immediately = TRUE
@@ -850,11 +850,11 @@ var/datum/announcement/minor/admin_min_announcer = new
if(SSticker.current_state == GAME_STATE_INIT)
msg = " (The server is still setting up, but the round will be started as soon as possible.)"
log_admin("[key_name(usr)] has started the game.[msg]")
- message_admins("[key_name_admin(usr)] has started the game.[msg]")
+ message_admins(span_notice("[key_name_admin(usr)] has started the game.[msg]"))
feedback_add_details("admin_verb","SN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
else
SSticker.start_immediately = FALSE
- to_world("Immediate game start canceled. Normal startup resumed.")
+ to_world(span_notice("Immediate game start canceled. Normal startup resumed."))
log_and_message_admins("cancelled immediate game start.")
/datum/admins/proc/toggleenter()
@@ -1394,7 +1394,7 @@ var/datum/announcement/minor/admin_min_announcer = new
if(body)
if(body.teleop)
body.teleop = tomob
- message_admins("[key_name_admin(usr)] has put [frommob.ckey] in control of [tomob.name].")
+ message_admins(span_adminnotice("[key_name_admin(usr)] has put [frommob.ckey] in control of [tomob.name]."))
log_admin("[key_name(usr)] stuffed [frommob.ckey] into [tomob.name].")
feedback_add_details("admin_verb","CGD")
tomob.ckey = frommob.ckey
@@ -1562,17 +1562,17 @@ var/datum/announcement/minor/admin_min_announcer = new
if(destination.receivefax(P))
- to_chat(src.owner, "Message reply to transmitted successfully.")
+ to_chat(src.owner, span_notice("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 GLOB.admins)
if((R_ADMIN | R_MOD | R_EVENT) & C.holder.rights)
- to_chat(C, "FAX LOG:[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(P.sender)] (VIEW)")
+ to_chat(C, span_log_message("[span_prefix("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 GLOB.admins)
if((R_ADMIN | R_MOD | R_EVENT) & C.holder.rights)
- to_chat(C, "FAX LOG:[key_name_admin(src.owner)] has sent a fax message to [destination.department] (VIEW)")
+ to_chat(C, span_log_message("[span_prefix("FAX LOG:")][key_name_admin(src.owner)] has sent a fax message to [destination.department] (VIEW)"))
var/plaintext_title = P.sender ? "replied to [key_name(P.sender)]'s fax" : "sent a fax message to [destination.department]"
var/fax_text = paper_html_to_plaintext(P.info)
@@ -1588,7 +1588,7 @@ var/datum/announcement/minor/admin_min_announcer = new
)
else
- to_chat(src.owner, "Message reply failed.")
+ to_chat(src.owner, span_warning("Message reply failed."))
spawn(100)
qdel(P)
diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm
index f59a6ad811..567f5c7669 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
- to_file(F, "[time2text(world.timeofday,"hh:mm")] \ref[src] ([x],[y],[z]) || [src] [message]
")
+ to_file(F, span_filter_adminlog("[time2text(world.timeofday,"hh:mm")] \ref[src] ([x],[y],[z]) || [src] [message]
"))
//ADMINVERBS
/client/proc/investigate_show( subject in list("hrefs","notes","singulo","telesci") )
@@ -34,7 +34,7 @@
if("singulo", "telesci") //general one-round-only stuff
var/F = investigate_subject2file(subject)
if(!F)
- to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
+ to_chat(src, span_filter_adminlog(span_warning("Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")))
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -43,10 +43,10 @@
if(href_logfile)
src << browse(href_logfile,"window=investigate[subject];size=800x300")
else
- to_chat(src, "Error: admin_investigate: No href logfile found.")
+ to_chat(src, span_filter_adminlog(span_warning("Error: admin_investigate: No href logfile found.")))
return
else
- to_chat(src, "Error: admin_investigate: Href Logging is not on.")
+ to_chat(src, span_filter_adminlog(span_warning("Error: admin_investigate: Href Logging is not on.")))
return
#undef INVESTIGATE_DIR
diff --git a/code/modules/admin/admin_memo.dm b/code/modules/admin/admin_memo.dm
index e305c83b5a..9e91839526 100644
--- a/code/modules/admin/admin_memo.dm
+++ b/code/modules/admin/admin_memo.dm
@@ -24,11 +24,11 @@
return
if("")
F.dir.Remove(ckey)
- to_chat(src, "Memo removed")
+ to_chat(src, span_filter_adminlog("Memo removed"))
return
if( findtext(memo,"