Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes backslashes from a bunch of visible_message calls #8218

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code/_onclick/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
if(user.get_active_hand())
to_chat(user, SPAN_WARNING("You can't unstrap \the [back_item] from [xeno] with your hands full."))
return
user.visible_message(SPAN_NOTICE("\The [user] starts unstrapping \the [back_item] from [xeno]"), \
user.visible_message(SPAN_NOTICE("\The [user] starts unstrapping \the [back_item] from [xeno]"),
SPAN_NOTICE("You start unstrapping \the [back_item] from [xeno]."), null, 5, CHAT_TYPE_FLUFF_ACTION)
if(!do_after(user, HUMAN_STRIP_DELAY * user.get_skill_duration_multiplier(SKILL_CQC), INTERRUPT_ALL, BUSY_ICON_GENERIC, xeno, INTERRUPT_MOVED, BUSY_ICON_GENERIC))
to_chat(user, SPAN_WARNING("You were interrupted!"))
Expand Down Expand Up @@ -142,13 +142,13 @@

var/mob/living/carbon/human/target = dropping

user.visible_message(SPAN_WARNING("[src] starts loading [target] onto their back."),\
user.visible_message(SPAN_WARNING("[src] starts loading [target] onto their back."),
SPAN_WARNING("You start loading [target] onto your back."))

if(!do_after(src, carry_delay * get_skill_duration_multiplier(SKILL_FIREMAN), INTERRUPT_ALL, BUSY_ICON_HOSTILE, pulling, INTERRUPT_MOVED, BUSY_ICON_HOSTILE))
return

user.visible_message(SPAN_WARNING("[src] loads [target] onto their back."),\
user.visible_message(SPAN_WARNING("[src] loads [target] onto their back."),
SPAN_WARNING("You load [target] onto your back."))

if(pulling != dropping || !dropping || QDELETED(dropping))
Expand Down
4 changes: 2 additions & 2 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

if (user.a_intent == INTENT_HELP && ((user.client?.prefs && user.client?.prefs?.toggle_prefs & TOGGLE_HELP_INTENT_SAFETY) || (user.mob_flags & SURGERY_MODE_ON)))
playsound(loc, 'sound/effects/pop.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[M] has been poked with [src][showname]"),\
user.visible_message(SPAN_NOTICE("[M] has been poked with [src][showname]"),
SPAN_NOTICE("You poke [M == user ? "yourself":M] with [src]."), null, 4)

return FALSE
Expand All @@ -93,7 +93,7 @@
var/used_verb = "attacked"
if(LAZYLEN(attack_verb))
used_verb = pick(attack_verb)
user.visible_message(SPAN_DANGER("[M] has been [used_verb] with [src][showname]."), \
user.visible_message(SPAN_DANGER("[M] has been [used_verb] with [src][showname]."),
SPAN_DANGER("You [used_verb] [M == user ? "yourself":M] with [src]."), null, 5, CHAT_TYPE_MELEE_HIT)

user.animation_attack_on(M)
Expand Down
4 changes: 2 additions & 2 deletions code/_onclick/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
animation_attack_on(target)
playsound(loc, 'sound/weapons/alien_claw_swipe.ogg', 10, 1) //Quiet to limit spam/nuisance.
if(firepatted)
src.visible_message(SPAN_DANGER("\The [src] pats at the fire!"), \
src.visible_message(SPAN_DANGER("\The [src] pats at the fire!"),
SPAN_DANGER("We pat the fire!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
src.visible_message(SPAN_DANGER("\The [src] swipes at \the [target]!"), \
src.visible_message(SPAN_DANGER("\The [src] swipes at \the [target]!"),
SPAN_DANGER("We swipe at \the [target]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
return TRUE

Expand Down
2 changes: 1 addition & 1 deletion code/datums/ammo/bullet/bullet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
shake_camera(execution_target, 3, 4)
execution_target.update_headshot_overlay(headshot_state) //...and add a gory headshot overlay.

execution_target.visible_message(SPAN_HIGHDANGER(uppertext("[execution_target] WAS EXECUTED!")), \
execution_target.visible_message(SPAN_HIGHDANGER(uppertext("[execution_target] WAS EXECUTED!")),
SPAN_HIGHDANGER("You WERE EXECUTED!"))

user.count_niche_stat(STATISTICS_NICHE_EXECUTION, 1, firing_projectile.weapon_cause_data?.cause_name)
Expand Down
4 changes: 2 additions & 2 deletions code/datums/elements/bullet_trait/incendiary.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
projectile_target.adjust_fire_stacks(burn_stacks/2 + floor(damage_actual / 4), burn_reagent)
projectile_target.IgniteMob()
projectile_target.visible_message(
SPAN_DANGER("[projectile_target] bursts into flames!"), \
SPAN_XENODANGER("You burst into flames!! Auuugh! Resist to put out the flames!") \
SPAN_DANGER("[projectile_target] bursts into flames!"),
SPAN_XENODANGER("You burst into flames!! Auuugh! Resist to put out the flames!")
)
2 changes: 1 addition & 1 deletion code/game/machinery/OpTable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@

/obj/structure/machinery/optable/proc/take_victim(mob/living/carbon/C, mob/living/carbon/user)
if (C == user)
user.visible_message(SPAN_NOTICE("[user] climbs on the operating table."), \
user.visible_message(SPAN_NOTICE("[user] climbs on the operating table."),
SPAN_NOTICE("You climb on the operating table."), null, null, 4)
else
visible_message(SPAN_NOTICE("[C] has been laid on the operating table by [user]."), null, 4)
Expand Down
20 changes: 10 additions & 10 deletions code/game/machinery/colony_floodlights.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ GLOBAL_LIST_INIT(all_breaker_switches, list())

if(repair_state == FLOODLIGHT_REPAIR_UNSCREW)
playsound(loc, 'sound/items/Screwdriver.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] starts unscrewing [src]'s maintenance hatch."), \
user.visible_message(SPAN_NOTICE("[user] starts unscrewing [src]'s maintenance hatch."),
SPAN_NOTICE("You start unscrewing [src]'s maintenance hatch."))
if(do_after(user, 2 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
if(QDELETED(src) || repair_state != FLOODLIGHT_REPAIR_UNSCREW)
return
playsound(loc, 'sound/items/Screwdriver.ogg', 25, 1)
repair_state = FLOODLIGHT_REPAIR_CROWBAR
user.visible_message(SPAN_NOTICE("[user] unscrews [src]'s maintenance hatch."), \
user.visible_message(SPAN_NOTICE("[user] unscrews [src]'s maintenance hatch."),
SPAN_NOTICE("You unscrew [src]'s maintenance hatch."))

else if(repair_state == FLOODLIGHT_REPAIR_SCREW)
playsound(loc, 'sound/items/Screwdriver.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] starts screwing [src]'s maintenance hatch closed."), \
user.visible_message(SPAN_NOTICE("[user] starts screwing [src]'s maintenance hatch closed."),
SPAN_NOTICE("You start screwing [src]'s maintenance hatch closed."))
if(do_after(user, 2 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
if(QDELETED(src) || repair_state != FLOODLIGHT_REPAIR_SCREW)
Expand All @@ -165,7 +165,7 @@ GLOBAL_LIST_INIT(all_breaker_switches, list())
damaged = FALSE
repair_state = FLOODLIGHT_REPAIR_UNSCREW
health = initial(health)
user.visible_message(SPAN_NOTICE("[user] screws [src]'s maintenance hatch closed."), \
user.visible_message(SPAN_NOTICE("[user] screws [src]'s maintenance hatch closed."),
SPAN_NOTICE("You screw [src]'s maintenance hatch closed."))
if(is_on)
set_light(lum_value)
Expand All @@ -179,14 +179,14 @@ GLOBAL_LIST_INIT(all_breaker_switches, list())

if(repair_state == FLOODLIGHT_REPAIR_CROWBAR)
playsound(loc, 'sound/items/Crowbar.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] starts prying [src]'s damaged lighting assembly out."),\
user.visible_message(SPAN_NOTICE("[user] starts prying [src]'s damaged lighting assembly out."),
SPAN_NOTICE("You start prying [src]'s damaged lighting assembly out."))
if(do_after(user, 2 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
if(QDELETED(src) || repair_state != FLOODLIGHT_REPAIR_CROWBAR)
return
playsound(loc, 'sound/items/Crowbar.ogg', 25, 1)
repair_state = FLOODLIGHT_REPAIR_WELD
user.visible_message(SPAN_NOTICE("[user] pries [src]'s damaged lighting assembly out."),\
user.visible_message(SPAN_NOTICE("[user] pries [src]'s damaged lighting assembly out."),
SPAN_NOTICE("You pry [src]'s damaged lighting assembly out."))
return TRUE

Expand Down Expand Up @@ -228,15 +228,15 @@ GLOBAL_LIST_INIT(all_breaker_switches, list())
to_chat(user, SPAN_WARNING("You need two coils of wire to replace the damaged cables."))
return
playsound(loc, 'sound/items/Deconstruct.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] starts replacing [src]'s damaged cables."),\
user.visible_message(SPAN_NOTICE("[user] starts replacing [src]'s damaged cables."),
SPAN_NOTICE("You start replacing [src]'s damaged cables."))
if(do_after(user, 2 SECONDS, INTERRUPT_ALL, BUSY_ICON_GENERIC))
if(QDELETED(src) || repair_state != FLOODLIGHT_REPAIR_CABLE)
return
if(coil.use(2))
playsound(loc, 'sound/items/Deconstruct.ogg', 25, 1)
repair_state = FLOODLIGHT_REPAIR_SCREW
user.visible_message(SPAN_NOTICE("[user] replaces [src]'s damaged cables."),\
user.visible_message(SPAN_NOTICE("[user] replaces [src]'s damaged cables."),
SPAN_NOTICE("You replace [src]'s damaged cables."))
return TRUE

Expand All @@ -257,14 +257,14 @@ GLOBAL_LIST_INIT(all_breaker_switches, list())
to_chat(user, replacer.failmsg)
return FALSE
playsound(loc, 'sound/items/Crowbar.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] starts replacing [src]'s damaged lighting assembly."),\
user.visible_message(SPAN_NOTICE("[user] starts replacing [src]'s damaged lighting assembly."),
SPAN_NOTICE("You start replacing [src]'s damaged lighting assembly."))
if(do_after(user, 2 SECONDS, INTERRUPT_ALL, BUSY_ICON_GENERIC))
if(QDELETED(src) || repair_state == FLOODLIGHT_REPAIR_SCREW)
return
replacer.Use(user)
repair_state = FLOODLIGHT_REPAIR_SCREW
user.visible_message(SPAN_NOTICE("[user] replaces [src]'s damaged lighting assembly."),\
user.visible_message(SPAN_NOTICE("[user] replaces [src]'s damaged lighting assembly."),
SPAN_NOTICE("You replace [src]'s damaged lighting assembly."))
return TRUE

Expand Down
12 changes: 6 additions & 6 deletions code/game/machinery/doors/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,13 @@ GLOBAL_LIST_INIT(airlock_wire_descriptions, list(
add_fingerprint(user)

if(istype(attacking_item, /obj/item/weapon/zombie_claws) && (welded || locked))
user.visible_message(SPAN_NOTICE("[user] starts tearing into the door on [src]!"), \
SPAN_NOTICE("You start prying your hand into the gaps of the door with your fingers... This will take about 30 seconds."), \
user.visible_message(SPAN_NOTICE("[user] starts tearing into the door on [src]!"),
SPAN_NOTICE("You start prying your hand into the gaps of the door with your fingers... This will take about 30 seconds."),
SPAN_NOTICE("You hear tearing noises!"))

if(do_after(user, 300, INTERRUPT_ALL, BUSY_ICON_HOSTILE))
user.visible_message(SPAN_NOTICE("[user] slams the door open [src]!"), \
SPAN_NOTICE("You slam the door open!"), \
user.visible_message(SPAN_NOTICE("[user] slams the door open [src]!"),
SPAN_NOTICE("You slam the door open!"),
SPAN_NOTICE("You hear metal screeching!"))
locked = 0
welded = 0
Expand All @@ -601,8 +601,8 @@ GLOBAL_LIST_INIT(airlock_wire_descriptions, list(
to_chat(user, SPAN_WARNING("\The [W] needs to be on!"))
return
if(W.remove_fuel(0,user))
user.visible_message(SPAN_NOTICE("[user] starts working on \the [src] with \the [W]."), \
SPAN_NOTICE("You start working on \the [src] with \the [W]."), \
user.visible_message(SPAN_NOTICE("[user] starts working on \the [src] with \the [W]."),
SPAN_NOTICE("You start working on \the [src] with \the [W]."),
SPAN_NOTICE("You hear welding."))
playsound(loc, 'sound/items/weldingtool_weld.ogg', 25)
if(do_after(user, weldtime, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD) && density)
Expand Down
28 changes: 14 additions & 14 deletions code/game/machinery/doors/firedoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
to_chat(user, SPAN_WARNING("Access denied. Please wait for authorities to arrive, or for the alert to clear."))
return
else
user.visible_message(SPAN_NOTICE("\The [src] [density ? "open" : "close"]s for \the [user]."),\
"\The [src] [density ? "open" : "close"]s.",\
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.")

var/needs_to_close = 0
Expand Down Expand Up @@ -175,8 +175,8 @@
var/obj/item/tool/weldingtool/W = C
if(W.remove_fuel(0, user))
blocked = !blocked
user.visible_message(SPAN_DANGER("\The [user] [blocked ? "welds" : "unwelds"] \the [src] with \a [W]."),\
"You [blocked ? "weld" : "unweld"] \the [src] with \the [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.")
update_icon()
return
Expand All @@ -186,19 +186,19 @@
return

if(blocked)
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!",\
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

user.visible_message(SPAN_DANGER("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [C]!"),\
SPAN_NOTICE("You start forcing \the [src] [density ? "open" : "closed"] with \the [C]!"),\
user.visible_message(SPAN_DANGER("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [C]!"),
SPAN_NOTICE("You start forcing \the [src] [density ? "open" : "closed"] with \the [C]!"),
"You hear metal strain.")
var/old_density = density
if(do_after(user, 30, INTERRUPT_ALL, BUSY_ICON_HOSTILE))
if(blocked || density != old_density) return
user.visible_message(SPAN_DANGER("\The [user] forces \the [blocked ? "welded " : "" ][name] [density ? "open" : "closed"] with \a [C]!"),\
SPAN_NOTICE("You force \the [blocked ? "welded " : ""][name] [density ? "open" : "closed"] with \the [C]!"),\
user.visible_message(SPAN_DANGER("\The [user] forces \the [blocked ? "welded " : "" ][name] [density ? "open" : "closed"] with \a [C]!"),
SPAN_NOTICE("You force \the [blocked ? "welded " : ""][name] [density ? "open" : "closed"] with \the [C]!"),
"You hear metal strain and groan, and a door [density ? "opening" : "closing"].")
spawn(0)
if(density)
Expand All @@ -213,12 +213,12 @@
if(istype(C, /obj/item/weapon/zombie_claws))
if(operating)
return
user.visible_message(SPAN_DANGER("\The zombie starts to force \the [src] [density ? "open" : "closed"] with it's claws!!!"),\
"You start forcing \the [src] [density ? "open" : "closed"] with your claws!",\
user.visible_message(SPAN_DANGER("\The zombie starts to force \the [src] [density ? "open" : "closed"] with it's claws!!!"),
"You start forcing \the [src] [density ? "open" : "closed"] with your claws!",
"You hear metal strain.")
if(do_after(user, 150, INTERRUPT_ALL, BUSY_ICON_HOSTILE))
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]!",\
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)
INVOKE_ASYNC(src, PROC_REF(open), TRUE)
Expand Down
4 changes: 2 additions & 2 deletions code/game/machinery/doors/poddoor/poddoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
return XENO_ATTACK_ACTION

/obj/structure/machinery/door/poddoor/proc/pry_open(mob/living/carbon/xenomorph/X, time = 4 SECONDS)
X.visible_message(SPAN_DANGER("[X] begins prying [src] open."),\
X.visible_message(SPAN_DANGER("[X] begins prying [src] open."),
SPAN_XENONOTICE("You start prying [src] open."), max_distance = 3)

playsound(loc, 'sound/effects/metal_creaking.ogg', 25, TRUE)
Expand All @@ -61,7 +61,7 @@
to_chat(X, "You stop prying [src] open.")
return

X.visible_message(SPAN_DANGER("[X] pries open [src]."), \
X.visible_message(SPAN_DANGER("[X] pries open [src]."),
SPAN_XENONOTICE("You pry open [src]."), max_distance = 3)

open()
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/fusion_engine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
if(overloaded)
xeno.animation_attack_on(src)
playsound(src, 'sound/effects/metalhit.ogg', 25, 1)
xeno.visible_message(SPAN_DANGER("[xeno] [xeno.slashes_verb] [src], stopping its overload process!"), \
xeno.visible_message(SPAN_DANGER("[xeno] [xeno.slashes_verb] [src], stopping its overload process!"),
SPAN_DANGER("You [xeno.slash_verb] [src], stopping its overload process!"), null, 5, CHAT_TYPE_XENO_COMBAT)
set_overloading(FALSE)
return
Expand Down
4 changes: 2 additions & 2 deletions code/game/machinery/iv_drip.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
return

if(attached)
user.visible_message("[user] detaches \the [src] from \the [attached].", \
user.visible_message("[user] detaches \the [src] from \the [attached].",
"You detach \the [src] from \the [attached].")
attached.active_transfusions -= src
attached = null
Expand All @@ -75,7 +75,7 @@
return

if(in_range(src, usr) && iscarbon(over_object) && get_dist(over_object, src) <= 1)
user.visible_message("[user] attaches \the [src] to \the [over_object].", \
user.visible_message("[user] attaches \the [src] to \the [over_object].",
"You attach \the [src] to \the [over_object].")
attached = over_object
attached.active_transfusions += src
Expand Down
Loading
Loading