adds suport for <hr> tags, makes examining use 'em!

This commit is contained in:
deathride58
2022-06-06 16:51:51 -04:00
parent 04a0a3b869
commit b14c534b37
7 changed files with 24 additions and 2 deletions
@@ -152,6 +152,10 @@
. += "[t_He] look[p_s()] very happy."
if(MOOD_LEVEL_HAPPY4 to INFINITY)
. += "[t_He] look[p_s()] ecstatic."
if(LAZYLEN(.) > 1)
.[2] = "<hr>[.[2]]"
SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, user, .)
/mob/living/carbon/examine_more(mob/user)
@@ -442,6 +442,9 @@
else if(isobserver(user) && traitstring)
. += "<span class='info'><b>Traits:</b> [traitstring]</span>"
if(LAZYLEN(.) > 2) //Want this to appear after species text
.[3] = "<hr>[.[3]]"
SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, user, .) //This also handles flavor texts now
/mob/living/proc/status_effect_examines(pronoun_replacement) //You can include this in any mob's examine() to show the examine texts of status effects!
@@ -18,4 +18,7 @@
else if (!shunted && !client)
. += "[src]Core.exe has stopped responding! NTOS is searching for a solution to the problem..."
if(LAZYLEN(.) > 1)
.[2] = "<hr>[.[2]]"
. += ..()
@@ -1,5 +1,4 @@
/mob/living/silicon/examine(mob/user) //Displays a silicon's laws to ghosts
. = ..()
if(laws && isobserver(user))
. += "<b>[src] has the following laws:</b>"
for(var/law in laws.get_law_list(include_zeroth = TRUE))
@@ -49,6 +49,9 @@
if(DEAD)
. += "<span class='deadsay'>It looks like its system is corrupted and requires a reset.</span>"
if(LAZYLEN(.) > 1)
.[2] = "<hr>[.[2]]"
SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, usr, .)
. += ..()