mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
Adds more skintones and tweaks existing ones. (#22765)
* skintones babey * adds a note for anyone adding skintones * shortens the skin menu * conflict fix PLEASE. adjusted shading * Update code/modules/client/preference/link_processing.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * lewcc suggestion * SQL update script --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -667,14 +667,7 @@
|
||||
active_character.s_tone = 35 - max(min(round(new_s_tone), 220), 1)
|
||||
else if(S.bodyflags & HAS_ICON_SKIN_TONE)
|
||||
var/const/MAX_LINE_ENTRIES = 4
|
||||
var/prompt = "Choose your character's skin tone: 1-[S.icon_skin_tones.len]\n("
|
||||
for(var/i = 1 to S.icon_skin_tones.len)
|
||||
if(i > MAX_LINE_ENTRIES && !((i - 1) % MAX_LINE_ENTRIES))
|
||||
prompt += "\n"
|
||||
prompt += "[i] = [S.icon_skin_tones[i]]"
|
||||
if(i != S.icon_skin_tones.len)
|
||||
prompt += ", "
|
||||
prompt += ")"
|
||||
var/prompt = "Choose your character's skin tone: 1-[length(S.icon_skin_tones)]\n(Light to Dark)"
|
||||
var/skin_c = input(user, prompt, "Character Preference") as num|null
|
||||
if(isnum(skin_c))
|
||||
active_character.s_tone = max(min(round(skin_c), S.icon_skin_tones.len), 1)
|
||||
|
||||
@@ -15,15 +15,20 @@
|
||||
interests, rampant cyber and bio-augmentation and secretive factions make life on most human \
|
||||
worlds tumultous at best."
|
||||
|
||||
icon_skin_tones = list(
|
||||
icon_skin_tones = list( //Organized to be from Light to Dark.
|
||||
1 = "Default White",
|
||||
2 = "Chestnut",
|
||||
3 = "Coffee",
|
||||
2 = "Pale",
|
||||
3 = "Classic",
|
||||
4 = "Olive",
|
||||
5 = "Pale",
|
||||
5 = "Oliver",
|
||||
6 = "Beige",
|
||||
7 = "Classic",
|
||||
8 = "Oliver"
|
||||
7 = "Latte",
|
||||
8 = "Sienna",
|
||||
9 = "Almond",
|
||||
10 = "Bronzed",
|
||||
11 = "Caramel",
|
||||
12 = "Coffee",
|
||||
13 = "Chestnut"
|
||||
)
|
||||
reagent_tag = PROCESS_ORG
|
||||
|
||||
@@ -32,20 +37,30 @@
|
||||
if(H.dna.species.bodyflags & HAS_ICON_SKIN_TONE)
|
||||
var/new_icobase = 'icons/mob/human_races/r_human.dmi' //Default White, counts as 1.
|
||||
switch(H.s_tone)
|
||||
if(13)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_chestnut.dmi'
|
||||
if(12)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_Coffee.dmi'
|
||||
if(11)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_caramel.dmi'
|
||||
if(10)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_bronzed.dmi'
|
||||
if(9)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_almond.dmi'
|
||||
if(8)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_Oliverandcompany.dmi'
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_sienna.dmi'
|
||||
if(7)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_classic.dmi'
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_latte.dmi'
|
||||
if(6)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_beige.dmi'
|
||||
if(5)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_pale.dmi'
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_Oliverandcompany.dmi'
|
||||
if(4)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_Olive.dmi'
|
||||
if(3)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_Coffee.dmi'
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_classic.dmi'
|
||||
if(2)
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_chestnut.dmi'
|
||||
new_icobase = 'icons/mob/human_races/human_skintones/r_human_pale.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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user