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
@@ -49,7 +49,7 @@
if(!M.undergoing_cardiac_arrest() && M.can_heartattack() && prob(1))
M.set_heartattack(TRUE)
if(M.stat == CONSCIOUS)
M.visible_message("<span class='userdanger'>[M] clutches at [M.p_their()] chest as if [M.p_their()] heart stopped!</span>") // too much lean :(
M.visible_message(span_userdanger("[M] clutches at [M.p_their()] chest as if [M.p_their()] heart stopped!")) // too much lean :(
..()
/datum/reagent/consumable/ethanol/cum_in_a_hot_tub
@@ -355,4 +355,4 @@
T.Remove()
nT.Insert(M)
T.moveToNullspace()//To valhalla
to_chat(M, "<span class='big warning'>Your tongue feels... weally fwuffy!!</span>")
to_chat(M, span_big_warning("Your tongue feels... weally fwuffy!!"))
@@ -2,7 +2,7 @@
/datum/reagent/drug/aphrodisiacplus/overdose_process(mob/living/M)
if(M && M.client?.prefs.arousable && !(M.client?.prefs.cit_toggles & NO_APHRO))
if(!HAS_TRAIT(M, TRAIT_IN_HEAT))
to_chat(M, "<span class='userlove'>Your need for sex is overpowering!</span>")
to_chat(M, span_userlove("Your need for sex is overpowering!"))
M.log_message("Made In Heat by hexacrocin.", LOG_EMOTE)
ADD_TRAIT(M, TRAIT_IN_HEAT, APHRO_TRAIT)
. = ..()
@@ -47,20 +47,20 @@
return
var/mob/living/carbon/human/H = M
if (prob(10))
to_chat(H, "<span class='notice'>You feel like you can cope!</span>")
to_chat(H, span_notice("You feel like you can cope!"))
H.adjust_disgust(-10)
SEND_SIGNAL(H, COMSIG_ADD_MOOD_EVENT, "copium", /datum/mood_event/cope, name)
. = 1
/datum/reagent/drug/copium/overdose_start(mob/living/M)
to_chat(M, "<span class='userdanger'>What the fuck.</span>")
to_chat(M, span_userdanger("What the fuck."))
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "[type]_overdose", /datum/mood_event/overdose, name)
/datum/reagent/drug/copium/overdose_process(mob/living/M)
var/mob/living/carbon/human/H = M
if (prob(5))
H.adjust_disgust(20)
to_chat(H, "<span class='warning'>I can't stand it anymore!</span>")
to_chat(H, span_warning("I can't stand it anymore!"))
..()
/datum/reagent/drug/copium/reaction_obj(obj/O, volume)
@@ -68,7 +68,7 @@
B.color = SKINTONE2HEX(H.skin_tone)
B.size = 1
B.size_cached = B.size
to_chat(M, "<span class='warning'>You feel your midsection get warmer... bubbling softly as it seems to start distending</b></span>")
to_chat(M, span_warning("You feel your midsection get warmer... bubbling softly as it seems to start distending</b>"))
M.reagents.remove_reagent(type, 5)
//If they have, increase size.
if(B.size_cached < BELLY_SIZE_MAX) //just in case
@@ -57,7 +57,7 @@
return
// Character has a seisure
M.visible_message("<span class='danger'>[M] starts having a seizure!</span>", "<span class='userdanger'>You have a seizure!</span>")
M.visible_message(span_danger("[M] starts having a seizure!"), span_userdanger("You have a seizure!"))
M.Unconscious(120)
to_chat(M, "<span class='cultlarge'>[pick("The moon is close. It will be a long hunt tonight.", "Ludwig, why have you forsaken me?", \
"The night is near its end...", "Fear the blood...")]</span>")
@@ -18,7 +18,7 @@
// Check for plush toy
if(!istype(target, /obj/item/toy/plush))
// Alert user and return
to_chat(user, "<span class='warning'>You don't want to waste the solution on a non-plushie.</span>")
to_chat(user, span_warning("You don't want to waste the solution on a non-plushie."))
return
// Return normally