[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -68,36 +68,36 @@
var/message = phrase_list[key]
if (!safety)
to_chat(usr, "<span class='notice'>You set the restrictor to: FUCK YOUR CUNT YOU SHIT EATING COCKSUCKER MAN EAT A DONG FUCKING ASS RAMMING SHIT FUCK EAT PENISES IN YOUR FUCK FACE AND SHIT OUT ABORTIONS OF FUCK AND DO SHIT IN YOUR ASS YOU COCK FUCK SHIT MONKEY FUCK ASS WANKER FROM THE DEPTHS OF SHIT.</span>")
to_chat(usr, span_notice("You set the restrictor to: FUCK YOUR CUNT YOU SHIT EATING COCKSUCKER MAN EAT A DONG FUCKING ASS RAMMING SHIT FUCK EAT PENISES IN YOUR FUCK FACE AND SHIT OUT ABORTIONS OF FUCK AND DO SHIT IN YOUR ASS YOU COCK FUCK SHIT MONKEY FUCK ASS WANKER FROM THE DEPTHS OF SHIT."))
return
switch(aggressiveness)
if(1)
phrase = (phrase < 6) ? (phrase + 1) : 1
key = phrase_list[phrase]
message = phrase_list[key]
to_chat(usr,"<span class='notice'>You set the restrictor to: [message]</span>")
to_chat(usr,span_notice("You set the restrictor to: [message]"))
if(2)
phrase = (phrase < 11 && phrase >= 7) ? (phrase + 1) : 7
key = phrase_list[phrase]
message = phrase_list[key]
to_chat(usr,"<span class='notice'>You set the restrictor to: [message]</span>")
to_chat(usr,span_notice("You set the restrictor to: [message]"))
if(3)
phrase = (phrase < 18 && phrase >= 12 ) ? (phrase + 1) : 12
key = phrase_list[phrase]
message = phrase_list[key]
to_chat(usr,"<span class='notice'>You set the restrictor to: [message]</span>")
to_chat(usr,span_notice("You set the restrictor to: [message]"))
if(4)
phrase = (phrase < 18 && phrase >= 1 ) ? (phrase + 1) : 1
key = phrase_list[phrase]
message = phrase_list[key]
to_chat(usr,"<span class='notice'>You set the restrictor to: [message]</span>")
to_chat(usr,span_notice("You set the restrictor to: [message]"))
else
to_chat(usr, "<span class='notice'>It's broken.</span>")
to_chat(usr, span_notice("It's broken."))
/obj/item/clothing/mask/gas/sechailer/emag_act(mob/user)
if(safety)
safety = 0
to_chat(user, "<span class='warning'>You silently fry [src]'s vocal circuit with the cryptographic sequencer.</span>")
to_chat(user, span_warning("You silently fry [src]'s vocal circuit with the cryptographic sequencer."))
else
return
@@ -105,30 +105,30 @@
if(I.has_tool_quality(TOOL_SCREWDRIVER))
switch(aggressiveness)
if(1)
to_chat(user, "<span class='notice'>You set the aggressiveness restrictor to the second position.</span>")
to_chat(user, span_notice("You set the aggressiveness restrictor to the second position."))
aggressiveness = 2
phrase = 7
if(2)
to_chat(user, "<span class='notice'>You set the aggressiveness restrictor to the third position.</span>")
to_chat(user, span_notice("You set the aggressiveness restrictor to the third position."))
aggressiveness = 3
phrase = 13
if(3)
to_chat(user, "<span class='notice'>You set the aggressiveness restrictor to the fourth position.</span>")
to_chat(user, span_notice("You set the aggressiveness restrictor to the fourth position."))
aggressiveness = 4
phrase = 1
if(4)
to_chat(user, "<span class='notice'>You set the aggressiveness restrictor to the first position.</span>")
to_chat(user, span_notice("You set the aggressiveness restrictor to the first position."))
aggressiveness = 1
phrase = 1
if(5)
to_chat(user, "<span class='warning'>You adjust the restrictor but nothing happens, probably because its broken.</span>")
to_chat(user, span_warning("You adjust the restrictor but nothing happens, probably because its broken."))
if(I.has_tool_quality(TOOL_WIRECUTTER))
if(aggressiveness != 5)
to_chat(user, "<span class='warning'>You broke it!</span>")
to_chat(user, span_warning("You broke it!"))
aggressiveness = 5
if(I.has_tool_quality(TOOL_CROWBAR))
if(!hailer)
to_chat(user, "<span class='warning'>This mask has an integrated hailer, you can't remove it!</span>")
to_chat(user, span_warning("This mask has an integrated hailer, you can't remove it!"))
else
var/obj/N = new /obj/item/clothing/mask/gas/half(src.loc)
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)

View File

@@ -375,7 +375,7 @@
icon_state = options[choice]
user.update_inv_wear_mask()
user.update_action_buttons()
to_chat(user, "<span class='notice'>Your paper mask now is now [choice].</span>")
to_chat(user, span_notice("Your paper mask now is now [choice]."))
return 1
/obj/item/clothing/mask/emotions
@@ -411,7 +411,7 @@
icon_state = options[choice]
user.update_inv_wear_mask()
user.update_action_buttons()
to_chat(user, "<span class='notice'>Your [src] now displays a [choice] emotion.</span>")
to_chat(user, span_notice("Your [src] now displays a [choice] emotion."))
return 1
/obj/item/clothing/mask/mouthwheat

View File

@@ -27,7 +27,7 @@
if(robohead.monitor_styles)
monitor_states = params2list(robohead.monitor_styles)
icon_state = monitor_states[monitor_state_index]
to_chat(H, "<span class='notice'>\The [src] connects to your display output.</span>")
to_chat(H, span_notice("\The [src] connects to your display output."))
/obj/item/clothing/mask/monitor/dropped()
canremove = TRUE
@@ -41,7 +41,7 @@
var/datum/robolimb/robohead = all_robolimbs[E.model]
if(istype(E) && (E.robotic >= ORGAN_ROBOT) && robohead.monitor_styles)
return 1
to_chat(user, "<span class='warning'>You must have a compatible robotic head to install this upgrade.</span>")
to_chat(user, span_warning("You must have a compatible robotic head to install this upgrade."))
return 0
/obj/item/clothing/mask/monitor/verb/set_monitor_state()
@@ -54,7 +54,7 @@
if(!istype(H) || H != usr)
return
if(H.wear_mask != src)
to_chat(usr, "<span class='warning'>You have not installed \the [src] yet.</span>")
to_chat(usr, span_warning("You have not installed \the [src] yet."))
return
var/choice = tgui_input_list(usr, "Select a screen icon:", "Head Monitor Choice", monitor_states)
if(choice)

View File

@@ -38,7 +38,7 @@
var/obj/item/organ/external/E = user.organs_by_name[BP_HEAD]
if(istype(E) && (E.robotic >= ORGAN_ROBOT))
return 1
to_chat(user, "<span class='warning'>You must have a compatible robotic head to install this upgrade.</span>")
to_chat(user, span_warning("You must have a compatible robotic head to install this upgrade."))
return 0
/obj/item/clothing/mask/synthfacemask/update_icon()

View File

@@ -15,7 +15,7 @@
set src in usr
changer.active = !changer.active
to_chat(usr, "<span class='notice'>You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src].</span>")
to_chat(usr, span_notice("You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src]."))
/obj/item/clothing/mask/gas/voice/verb/Set_Voice(name as text)
set category = "Object"
@@ -24,14 +24,14 @@
var/voice = sanitize(name, MAX_NAME_LEN)
if(!voice || !length(voice)) return
changer.voice = voice
to_chat(usr, "<span class='notice'>You are now mimicking <B>[changer.voice]</B>.</span>")
to_chat(usr, span_notice("You are now mimicking <B>[changer.voice]</B>."))
/obj/item/clothing/mask/gas/voice/verb/Reset_Voice()
set category = "Object"
set src in usr
changer.voice = null
to_chat(usr, "<span class='notice'>You have reset your voice changer's mimicry feature.</span>")
to_chat(usr, span_notice("You have reset your voice changer's mimicry feature."))
/obj/item/clothing/mask/gas/voice/New()
..()