New Grey Skin Tones (#29252)

* Adds in Sprites

* Adds in supporting customization code
This commit is contained in:
Saint
2025-05-14 16:02:43 +00:00
committed by GitHub
parent a0f083c39a
commit 73747406a4
5 changed files with 24 additions and 2 deletions
@@ -1,7 +1,7 @@
/datum/species/grey
name = "Grey"
name_plural = "Greys"
icobase = 'icons/mob/human_races/r_grey.dmi'
icobase = 'icons/mob/human_races/grey/r_grey.dmi'
language = "Psionic Communication"
blurb = "The Grey, known for their psionic abilities and unique appearance, hail from beyond the Milky Way and have an undisclosed homeworld. \
@@ -12,6 +12,13 @@
eyes = "grey_eyes_s"
butt_sprite = "grey"
icon_skin_tones = list(
1 = "Default Grey",
2 = "Grey Green",
3 = "Grey Blue",
4 = "Grey Red"
)
has_organ = list(
"heart" = /obj/item/organ/internal/heart/grey,
"lungs" = /obj/item/organ/internal/lungs/grey,
@@ -24,7 +31,7 @@
species_traits = list(LIPS, CAN_WINGDINGS, NO_HAIR)
clothing_flags = HAS_UNDERWEAR | HAS_UNDERSHIRT | HAS_SOCKS
bodyflags = HAS_BODY_MARKINGS | HAS_BODYACC_COLOR | SHAVED | BALD
bodyflags = HAS_BODY_MARKINGS | HAS_BODYACC_COLOR | SHAVED | BALD | HAS_ICON_SKIN_TONE
dietflags = DIET_HERB
reagent_tag = PROCESS_ORG
flesh_color = "#a598ad"
@@ -32,6 +39,21 @@
plushie_type = /obj/item/toy/plushie/greyplushie
/datum/species/grey/updatespeciescolor(mob/living/carbon/human/H, owner_sensitive = 1) //Handling species-specific skin-tones for the grey race.
if(H.dna.species.bodyflags & HAS_ICON_SKIN_TONE)
var/new_icobase = 'icons/mob/human_races/grey/r_grey.dmi' //Default grey.
switch(H.s_tone)
if(4) //red Grey.
new_icobase = 'icons/mob/human_races/grey/r_grey_red.dmi'
if(3) //blue grey.
new_icobase = 'icons/mob/human_races/grey/r_grey_blue.dmi'
if(2) //green grey.
new_icobase = 'icons/mob/human_races/grey/r_grey_green.dmi'
else //Default.
new_icobase = 'icons/mob/human_races/grey/r_grey.dmi'
H.change_icobase(new_icobase, owner_sensitive) //Update the icobase of all our organs, but make sure we don't mess with frankenstein limbs in doing so.
/datum/species/grey/handle_dna(mob/living/carbon/human/H, remove)
..()
H.dna.SetSEState(GLOB.remotetalkblock, !remove, TRUE)