[MIRROR] Adds more "curated" version of human randomization (for humonkeys, corpse spawners, and fresh characters) (#28582)

* Adds more "curated" version of human randomization (for humonkeys, corpse spawners, and fresh characters)

* fix conflict

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-07-05 10:35:38 +05:30
committed by GitHub
co-authored by MrMelbert SpaceLoveSs13
parent f430f478a5
commit b883c38a8d
9 changed files with 71 additions and 24 deletions
+5 -16
View File
@@ -60,26 +60,15 @@
spawned_human.undershirt = "Nude"
spawned_human.socks = "Nude"
spawned_human.bra = "Nude" //SKYRAT EDIT ADDITION
randomize_human_normie(spawned_human)
if(hairstyle)
spawned_human.hairstyle = hairstyle
else
spawned_human.hairstyle = random_hairstyle(spawned_human.gender)
spawned_human.set_hairstyle(hairstyle, update = FALSE)
if(facial_hairstyle)
spawned_human.facial_hairstyle = facial_hairstyle
else
spawned_human.facial_hairstyle = random_facial_hairstyle(spawned_human.gender)
spawned_human.set_facial_hairstyle(facial_hairstyle, update = FALSE)
if(haircolor)
spawned_human.hair_color = haircolor
else
spawned_human.hair_color = "#[random_color()]"
spawned_human.set_haircolor(haircolor, update = FALSE)
if(facial_haircolor)
spawned_human.facial_hair_color = facial_haircolor
else
spawned_human.facial_hair_color = "#[random_color()]"
if(skin_tone)
spawned_human.skin_tone = skin_tone
else
spawned_human.skin_tone = pick(GLOB.skin_tones)
spawned_human.set_facial_haircolor(facial_haircolor, update = FALSE)
spawned_human.update_body(is_creating = TRUE)
/obj/effect/mob_spawn/proc/name_mob(mob/living/spawned_mob, forced_name)