Replace all modular HTML spans with defines spans

In total:
- Adds span defines for `reallybig hypnophrase`, `big warning`, `header`
- Fixes a missing apostrophe for hypno stare
- Makes a special exception for cuddling.dm, which uses an irregular span
- Puts the spans file back
This commit is contained in:
Darius
2023-01-16 04:05:27 -05:00
parent 41e15dd097
commit ad0239b5de
108 changed files with 779 additions and 773 deletions
@@ -93,7 +93,7 @@
/obj/item/storage/box/aphrodisiac_pump/examine(mob/user)
. = ..()
. += "<span class='notice'>Click the implant case while with the implant inside to change the desired dosage amounts.</span>"
. += span_notice("Click the implant case while with the implant inside to change the desired dosage amounts.")
/obj/item/storage/box/aphrodisiac_pump/ComponentInitialize()
. = ..()
@@ -99,7 +99,7 @@
var/implant_toggle_text_2 = (!ability_active ? "dis" : "") // Engage or Disengage
// Display a chat message
action_owner.visible_message("<span class='notice'>The equipment worn on [action_owner]'s back-region flickers momentarily, before becoming [implant_toggle_text].</span>", "<span class='notice'>You [implant_toggle_text_2]engage the Storage Concealment Implant, causing your backpack to be [implant_toggle_text].</span>")
action_owner.visible_message(span_notice("The equipment worn on [action_owner]'s back-region flickers momentarily, before becoming [implant_toggle_text]."), span_notice("You [implant_toggle_text_2]engage the Storage Concealment Implant, causing your backpack to be [implant_toggle_text]."))
/*
* Implant items
@@ -28,9 +28,9 @@
if(target.mind.has_antag_datum(/datum/antagonist/rev/head) || target.mind.unconvertable || target.mind.assigned_role == "Security Officer" || target.mind.assigned_role == "Detective" || target.mind.assigned_role == "Warden" || target.mind.assigned_role == "Head of Security" || HAS_TRAIT(target, TRAIT_MINDSHIELD))
if(!silent)
if(target.mind.assigned_role == "Security Officer" || target.mind.assigned_role == "Detective" || target.mind.assigned_role == "Warden" || target.mind.assigned_role == "Head of Security")
target.visible_message("<span class='warning'>[target] seems to resist the implant! You can't enslave a member of security!</span>", "<span class='warning'>You feel something interfering with your mental conditioning, but you resist it!</span>")
target.visible_message(span_warning("[target] seems to resist the implant! You can't enslave a member of security!"), span_warning("You feel something interfering with your mental conditioning, but you resist it!"))
else
target.visible_message("<span class='warning'>[target] seems to resist the implant!</span>", "<span class='warning'>You feel something interfering with your mental conditioning, but you resist it!</span>")
target.visible_message(span_warning("[target] seems to resist the implant!"), span_warning("You feel something interfering with your mental conditioning, but you resist it!"))
var/obj/item/implanter/I = loc
removed(target, 1)
qdel(src)
@@ -47,9 +47,9 @@
target.mind.remove_antag_datum(/datum/antagonist/gang)
if(!silent)
if(target.mind in SSticker.mode.cult)
to_chat(target, "<span class='warning'>You feel something interfering with your mental conditioning, but you resist it!</span>")
to_chat(target, span_warning("You feel something interfering with your mental conditioning, but you resist it!"))
else
to_chat(target, "<span class='notice'>You feel a sense of peace and security. You are now enslaved!</span>")
to_chat(target, span_notice("You feel a sense of peace and security. You are now enslaved!"))
var/slave_objective = "[((target.client?.prefs.cit_toggles & HYPNO)?"Security has enslaved you into being their pet! Obey their commands, but remember: a good pet is not violent.":"You've been neutralized by security! Follow their orders, but remember: neutralization also means nonviolence.")]"
brainwash(target, slave_objective)
target.sec_hud_set_implants()
@@ -63,7 +63,7 @@
target.mind.remove_antag_datum(/datum/antagonist/brainwashed)
L.sec_hud_set_implants()
if(target.stat != DEAD && !silent)
to_chat(target, "<span class='boldnotice'>Your mind suddenly feels free from burden. You are no longer enslaved!</span>")
to_chat(target, span_boldnotice("Your mind suddenly feels free from burden. You are no longer enslaved!"))
return 1
return 0
@@ -7,11 +7,11 @@
/obj/item/implant/slaver/activate()
. = ..()
imp_in.visible_message("<span class='notice'>[imp_in] begins fiddling with a subtle bump on their arm.</span>", "<span class='notice'>You prepare to teleport.</span>")
imp_in.visible_message(span_notice("[imp_in] begins fiddling with a subtle bump on their arm."), span_notice("You prepare to teleport."))
if(do_mob(imp_in, imp_in, 5 SECONDS, ignorehelditem = TRUE))
playsound(get_turf(imp_in.loc), 'sound/magic/blink.ogg', 50, 1)
imp_in.visible_message("<span class='notice'>[imp_in] vanishes from sight!</span>", \
"<span class='notice'>You activate [src], sending you to the slaver mothership!</span>")
imp_in.visible_message(span_notice("[imp_in] vanishes from sight!"), \
span_notice("You activate [src], sending you to the slaver mothership!"))
new /obj/effect/temp_visual/dir_setting/ninja(get_turf(imp_in), imp_in.dir)
var/list/L = list()
@@ -26,7 +26,7 @@
qdel(src)
else
to_chat(imp_in, "<span class='warning'>You need to stand still and uninterrupted for 5 seconds!</span>")
to_chat(imp_in, span_warning("You need to stand still and uninterrupted for 5 seconds!"))
/obj/item/implant/slaver/get_data()
var/dat = {"<b>Implant Specifications:</b><BR>
@@ -3,8 +3,8 @@
if(istype(imp, /obj/item/implant/genital_fluid))
var/obj/item/implant/genital_fluid/I = imp
if(I.obj_flags & EMAGGED)
to_chat(user, "<span class='warning'>[src] has no functional safeties to emag.</span>")
to_chat(user, span_warning("[src] has no functional safeties to emag."))
return
to_chat(user, "<span class='notice'>You short out [src]'s safeties.</span>")
to_chat(user, span_notice("You short out [src]'s safeties."))
name = "implant case - 'Genital Fluid (Hacked)'"
I.emag_act()