"
+ id_examine += "[id_icon]"
+ id_examine += "
"
+ id_examine += jointext(list(
+ "• Name: [id_name || "Unknown"]",
+ "• Job: [id_job || "Unassigned"]",
+ "• Age: [id_age || "Unknown"]",
+ "• Gender: [id_gender || "Unknown"]",
+ "• Blood Type: [id_blood_type || "?"]",
+ "• Species: [id_species || "Unknown"]",
+ ), "
")
+ id_examine += "
" // container
+ id_examine += "
" // text
+
+ to_chat(viewer, examine_block(span_info(id_examine)))
+
///////HUDs///////
if(href_list["hud"])
if(!ishuman(usr) && !isobserver(usr))
@@ -97,7 +150,7 @@
if(!HAS_TRAIT(human_or_ghost_user, TRAIT_SECURITY_HUD) && !HAS_TRAIT(human_or_ghost_user, TRAIT_MEDICAL_HUD))
return
if((text2num(href_list["examine_time"]) + 1 MINUTES) < world.time)
- to_chat(human_or_ghost_user, "[span_notice("It's too late to use this now!")]")
+ to_chat(human_or_ghost_user, span_notice("It's too late to use this now!"))
return
var/datum/record/crew/target_record = find_record(perpname)
if(href_list["photo_front"] || href_list["photo_side"])
diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm
index c561ca28999f1..84b2aa8534d7b 100644
--- a/code/modules/mob/living/carbon/human/human_helpers.dm
+++ b/code/modules/mob/living/carbon/human/human_helpers.dm
@@ -4,28 +4,6 @@
return FALSE
return TRUE
-///returns a list of "damtype" => damage description based off of which bodypart description is most common
-///used in human examines
-/mob/living/carbon/human/proc/get_majority_bodypart_damage_desc()
- var/list/seen_damage = list() // This looks like: ({Damage type} = list({Damage description for that damage type} = {number of times it has appeared}, ...), ...)
- var/list/most_seen_damage = list() // This looks like: ({Damage type} = {Frequency of the most common description}, ...)
- var/list/final_descriptions = list() // This looks like: ({Damage type} = {Most common damage description for that type}, ...)
- for(var/obj/item/bodypart/part as anything in bodyparts)
- for(var/damage_type in part.damage_examines)
- var/damage_desc = part.damage_examines[damage_type]
- if(!seen_damage[damage_type])
- seen_damage[damage_type] = list()
-
- if(!seen_damage[damage_type][damage_desc])
- seen_damage[damage_type][damage_desc] = 1
- else
- seen_damage[damage_type][damage_desc] += 1
-
- if(seen_damage[damage_type][damage_desc] > most_seen_damage[damage_type])
- most_seen_damage[damage_type] = seen_damage[damage_type][damage_desc]
- final_descriptions[damage_type] = damage_desc
- return final_descriptions
-
//gets assignment from ID or ID inside PDA or PDA itself
//Useful when player do something with computers
/mob/living/carbon/human/proc/get_assignment(if_no_id = "No id", if_no_job = "No job", hand_first = TRUE)
@@ -76,10 +54,10 @@
fake_name = "[fake_name]/[id_name]"
else
fake_name = id_name
- if (HAS_TRAIT(src, TRAIT_UNKNOWN) || (!face_name && !id_name))
+ if (HAS_TRAIT(src, TRAIT_UNKNOWN) || HAS_TRAIT(src, TRAIT_INVISIBLE_MAN) || (!face_name && !id_name))
fake_name = "Unknown"
return "[real_name][fake_name ? " (as [fake_name])" : ""]"
- if(HAS_TRAIT(src, TRAIT_UNKNOWN))
+ if(HAS_TRAIT(src, TRAIT_UNKNOWN) || HAS_TRAIT(src, TRAIT_INVISIBLE_MAN))
return "Unknown"
if(face_name)
if(add_id_name && id_name && (id_name != face_name))
@@ -89,8 +67,12 @@
return id_name
return "Unknown"
-//Returns "Unknown" if facially disfigured and real_name if not. Useful for setting name when Fluacided or when updating a human's name variable
-/mob/living/carbon/human/proc/get_face_name(if_no_face = "Unknown")
+/// Returns "Unknown" if facially disfigured and real_name if not.
+/// Useful for setting name when Fluacided or when updating a human's name variable
+/mob/living/carbon/proc/get_face_name(if_no_face = "Unknown")
+ return real_name
+
+/mob/living/carbon/human/get_face_name(if_no_face = "Unknown")
if(HAS_TRAIT(src, TRAIT_UNKNOWN))
return if_no_face //We're Unknown, no face information for you
for(var/obj/item/worn_item in get_equipped_items())
@@ -104,7 +86,10 @@
//gets name from ID or PDA itself, ID inside PDA doesn't matter
//Useful when player is being seen by other mobs
-/mob/living/carbon/human/proc/get_id_name(if_no_id = "Unknown")
+/mob/living/carbon/proc/get_id_name(if_no_id = "Unknown")
+ return
+
+/mob/living/carbon/human/get_id_name(if_no_id = "Unknown")
var/obj/item/storage/wallet/wallet = wear_id
var/obj/item/modular_computer/pda = wear_id
var/obj/item/card/id/id = wear_id
@@ -247,18 +232,6 @@
WRITE_FILE(F["scar[char_index]-[scar_index]"], sanitize_text(valid_scars))
WRITE_FILE(F["current_scar_index"], sanitize_integer(scar_index))
-///Returns death message for mob examine text
-/mob/living/carbon/human/proc/generate_death_examine_text()
- var/mob/dead/observer/ghost = get_ghost(TRUE, TRUE)
- var/t_He = p_They()
- var/t_his = p_their()
- var/t_is = p_are()
- //This checks to see if the body is revivable
- if(get_organ_by_type(/obj/item/organ/internal/brain) && (client || HAS_TRAIT(src, TRAIT_MIND_TEMPORARILY_GONE) || (ghost?.can_reenter_corpse && ghost?.client)))
- return span_deadsay("[t_He] [t_is] limp and unresponsive; there are no signs of life...")
- else
- return span_deadsay("[t_He] [t_is] limp and unresponsive; there are no signs of life and [t_his] soul has departed...")
-
///copies over clothing preferences like underwear to another human
/mob/living/carbon/human/proc/copy_clothing_prefs(mob/living/carbon/human/destination)
destination.underwear = underwear
diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm
index e838f202af47c..13dc53ff2a840 100644
--- a/code/modules/mob/living/silicon/ai/examine.dm
+++ b/code/modules/mob/living/silicon/ai/examine.dm
@@ -1,5 +1,5 @@
/mob/living/silicon/ai/examine(mob/user)
- . = list("