Skip to content

Commit

Permalink
tin
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaFire15 committed Nov 12, 2023
1 parent dec385d commit b833582
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/scanners.dm
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ GENE SCANNER
else if(S.mutantstomach != initial(S.mutantstomach))
mutant = TRUE

to_chat(user, "<span class='info'>Species: [S.name][mutant ? "-derived mutant" : ""]</span>")
to_chat(user, "<span class='info'>Species: [H.species_examine_font()][S.name][mutant ? "-derived mutant" : ""]</font></span>") //NSV13 - species name is colored depending on special conditions.
to_chat(user, "<span class='info'>Body temperature: [round(M.bodytemperature-T0C,0.1)] &deg;C ([round(M.bodytemperature*1.8-459.67,0.1)] &deg;F)</span>")

// Time of death
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/examine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
display_name += "[compose_rank(src)]"
display_name += name
if(dna?.species && !skipface)
apparent_species = ", \an [dna.species.name]"
apparent_species = ", [species_examine_font()]\an [dna.species.name]</font>" //NSV13 - species name is colored depending on special conditions.
. = list("<span class='info'>*---------*\nThis is <EM>[!obscure_name ? display_name : "Unknown"][apparent_species]</EM>!")

//uniform
Expand Down
26 changes: 26 additions & 0 deletions code/modules/mob/living/carbon/human/human_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,29 @@
destination.undershirt = undershirt
destination.socks = socks
destination.jumpsuit_style = jumpsuit_style

//NSV13 begin - special colors for species names
/**
* # `species_examine_font()`
*
* This gets a humanoid's special examine font, which is used to color their species name during examine / health analyzing.
* The first of these that applies is returned.
* Returns:
* * Metallic font if robotic
* * Cyan if a toxinlover
* * Purple if plasmaperson
* * Rock / Brownish if a golem
* * Green if none of the others apply (aka, generic organic)
*/
/mob/living/carbon/human/proc/species_examine_font()
if((MOB_ROBOTIC in mob_biotypes))
return "<font color='#aaa9ad'>"
if(HAS_TRAIT(src, TRAIT_TOXINLOVER))
return "<font color='#00ffff'>"
if(isplasmaman(src))
return "<font color='#800080'>"
if(isgolem(src))
return "<font color='#8b4513'>"
return "<font color='#18d855'>"

//NSV13 end

0 comments on commit b833582

Please sign in to comment.