Merge pull request #9595 from deathride58/examinestringfix
Fixes examine strings not properly showing blood-stained status of items
This commit is contained in:
+11
-12
@@ -261,7 +261,17 @@
|
|||||||
. = "[article] [src]"
|
. = "[article] [src]"
|
||||||
override[EXAMINE_POSITION_ARTICLE] = article
|
override[EXAMINE_POSITION_ARTICLE] = article
|
||||||
|
|
||||||
|
var/should_override = FALSE
|
||||||
|
|
||||||
if(SEND_SIGNAL(src, COMSIG_ATOM_GET_EXAMINE_NAME, user, override) & COMPONENT_EXNAME_CHANGED)
|
if(SEND_SIGNAL(src, COMSIG_ATOM_GET_EXAMINE_NAME, user, override) & COMPONENT_EXNAME_CHANGED)
|
||||||
|
should_override = TRUE
|
||||||
|
|
||||||
|
|
||||||
|
if(blood_DNA && !istype(src, /obj/effect/decal))
|
||||||
|
override[EXAMINE_POSITION_BEFORE] = " blood-stained "
|
||||||
|
should_override = TRUE
|
||||||
|
|
||||||
|
if(should_override)
|
||||||
. = override.Join("")
|
. = override.Join("")
|
||||||
|
|
||||||
///Generate the full examine string of this atom (including icon for goonchat)
|
///Generate the full examine string of this atom (including icon for goonchat)
|
||||||
@@ -269,18 +279,7 @@
|
|||||||
. = "[icon2html(src, user)] [thats? "That's ":""][get_examine_name(user)]"
|
. = "[icon2html(src, user)] [thats? "That's ":""][get_examine_name(user)]"
|
||||||
|
|
||||||
/atom/proc/examine(mob/user)
|
/atom/proc/examine(mob/user)
|
||||||
//This reformat names to get a/an properly working on item descriptions when they are bloody
|
to_chat(user, "[get_examine_string(user, TRUE)].")
|
||||||
var/f_name = "\a [src]."
|
|
||||||
if(src.blood_DNA && !istype(src, /obj/effect/decal))
|
|
||||||
if(gender == PLURAL)
|
|
||||||
f_name = "some "
|
|
||||||
else
|
|
||||||
f_name = "a "
|
|
||||||
f_name += "<span class='danger'>blood-stained</span> [name]!"
|
|
||||||
|
|
||||||
to_chat(user, "[icon2html(src, user)] That's [f_name]")
|
|
||||||
|
|
||||||
// to_chat(user, "[get_examine_string(user, TRUE)].")
|
|
||||||
|
|
||||||
if(desc)
|
if(desc)
|
||||||
to_chat(user, desc)
|
to_chat(user, desc)
|
||||||
|
|||||||
Reference in New Issue
Block a user