refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+6 -6
View File
@@ -125,7 +125,7 @@
formatted_message = replacetext(formatted_message, "%prey", M)
formatted_message = replacetext(formatted_message, "%countprey", absorbed_count)
if(formatted_message)
to_chat(M, "<span class='vnotice'>[formatted_message]</span>")
to_chat(M, span_vnotice("[formatted_message]"))
else
if (digest_mode == DM_SELECT)
var/datum/digest_mode/selective/DM_S = GLOB.digest_modes[DM_SELECT]
@@ -141,7 +141,7 @@
formatted_message = replacetext(formatted_message, "%countprey", living_count)
formatted_message = replacetext(formatted_message, "%count", contents.len)
if(formatted_message)
to_chat(M, "<span class='vnotice'>[formatted_message]</span>")
to_chat(M, span_vnotice("[formatted_message]"))
if(to_update)
updateVRPanels()
@@ -284,8 +284,8 @@
digest_alert_prey = replacetext(digest_alert_prey, "%count", contents.len)
//Send messages
to_chat(owner, "<span class='vnotice'>[digest_alert_owner]</span>")
to_chat(M, "<span class='vnotice'>[digest_alert_prey]</span>")
to_chat(owner, span_vnotice("[digest_alert_owner]"))
to_chat(M, span_vnotice("[digest_alert_prey]"))
if(M.ckey)
GLOB.prey_digested_roundstat++
@@ -317,8 +317,8 @@
if(L.tiredness <= 105)
L.tiredness = (L.tiredness + 6)
if(L.tiredness <= 90 && L.tiredness >= 75)
to_chat(L, "<span class='warning'>You are about to fall unconscious!</span>")
to_chat(owner, "<span class='warning'>[L] is about to fall unconscious!</span>")
to_chat(L, span_warning("You are about to fall unconscious!"))
to_chat(owner, span_warning("[L] is about to fall unconscious!"))
if(drainmode == DR_FAKE && istype(L,/mob/living/carbon/human)) //Slowly bring prey to the edge of sleep without crossing it
if(L.tiredness <= 93)
L.tiredness = (L.tiredness + 6)