From 4d0792e020c99aea343f2efc1a2a62929881af62 Mon Sep 17 00:00:00 2001 From: HugoLuman Date: Wed, 13 Apr 2016 15:23:55 -0700 Subject: [PATCH] Gives Drask skin tone and makes it choosable in the character menu Signed-off-by: HugoLuman --- code/modules/client/preferences.dm | 6 +++--- code/modules/mob/living/carbon/human/species/drask.dm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index c375f01025e..10404195f15 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -249,7 +249,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts dat += "N2 Tank: [speciesprefs ? "Large N2 Tank" : "Specialized N2 Tank"]
" dat += "Secondary Language:
[language]
" dat += "Blood Type: [b_type]
" - if(species == "Human") + if(species in list("Human", "Drask")) dat += "Skin Tone: [-s_tone + 35]/220
" // dat += "Skin pattern: Adjust
" @@ -1035,7 +1035,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts g_eyes = rand(0,255) b_eyes = rand(0,255) if("s_tone") - if(species == "Human") + if(species in list("Human", "Drask")) s_tone = random_skin_tone() if("s_color") if(species in list("Unathi", "Tajaran", "Skrell", "Slime People", "Wyrn", "Vulpkanin", "Machine")) @@ -1376,7 +1376,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts b_eyes = hex2num(copytext(new_eyes, 6, 8)) if("s_tone") - if(species != "Human") + if(species != "Human" && species != "Drask") return var/new_s_tone = input(user, "Choose your character's skin-tone:\n(Light 1 - 220 Dark)", "Character Preference") as num|null if(new_s_tone) diff --git a/code/modules/mob/living/carbon/human/species/drask.dm b/code/modules/mob/living/carbon/human/species/drask.dm index 074b953ef9e..8ea0ffcf17b 100644 --- a/code/modules/mob/living/carbon/human/species/drask.dm +++ b/code/modules/mob/living/carbon/human/species/drask.dm @@ -28,7 +28,7 @@ flags = HAS_LIPS clothing_flags = HAS_UNDERWEAR | HAS_UNDERSHIRT - bodyflags = FEET_CLAWS + bodyflags = FEET_CLAWS | HAS_SKIN_TONE dietflags = DIET_OMNI cold_level_1 = -1 //Default 260 - Lower is better