-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Species names are colored when examining / health analyzing (#2582)
- Loading branch information
1 parent
0a5089b
commit 240eb3d
Showing
7 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
nsv13/code/modules/mob/living/carbon/human/nsv_human_helpers.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* # `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 | ||
* * Yellow-ish if an Ethereal | ||
* * 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 "sc_robotic" | ||
if(HAS_TRAIT(src, TRAIT_TOXINLOVER)) | ||
return "sc_toxlover" | ||
if(isethereal(src)) | ||
return "sc_ethereal" | ||
if(isplasmaman(src)) | ||
return "sc_plasmaman" | ||
if(isgolem(src)) | ||
return "sc_golem" | ||
return "sc_normal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters