mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Adds informed default values for a bunch of preferences (to produce less outlandish random characters) (#28688)
* Adds informed default values for a bunch of preferences (to produce less outlandish random characters) * Update felinid.dm * Update lizard.dm * Update monkey.dm * [READY] the unfuckening of clothing rendering (#79784) refactors clothing visors to use the same system, including masks being toggled and stuff like riot helmets toggling using the same system and welding helmets and such adds a handler that updates all visuals in slots that an item has obscured, each visual proc calls that so you no longer have weird shit happening like having to hardcode a proc for heads where you need to also update hair, mask, glasses everytime you put on an item one thing here i could also do is make check_obscured_slots return the HIDEX flags instead of item slots, because in 99% of cases its hardcoded to be ran against specific slots (like eye code running it against the glasses slot), but maintainers didnt seem to like that :/ fuck this 2003 bullshit theres like several bugs here i fixed but i forgot them all and they are small --------- 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:
co-authored by
MrMelbert
SpaceLoveSs13
parent
16854f2358
commit
52a70b1df4
@@ -42,16 +42,6 @@
|
||||
* (IE, no wacky hair styles / colors)
|
||||
*/
|
||||
/proc/randomize_human_normie(mob/living/carbon/human/human, randomize_mutations = FALSE)
|
||||
var/static/list/natural_hair_colors = list(
|
||||
"#111111", "#362925", "#3B3831", "#41250C", "#412922",
|
||||
"#544C49", "#583322", "#593029", "#703b30", "#714721",
|
||||
"#744729", "#74482a", "#7b746e", "#855832", "#863019",
|
||||
"#8c4734", "#9F550E", "#A29A96", "#A4381C", "#B17B41",
|
||||
"#C0BAB7", "#EFE5E4", "#F7F3F1", "#FFF2D6", "#a15537",
|
||||
"#a17e61", "#b38b67", "#ba673c", "#c89f73", "#d9b380",
|
||||
"#dbc9b8", "#e1621d", "#e17d17", "#e1af93", "#f1cc8f",
|
||||
"#fbe7a1",
|
||||
)
|
||||
// Sorry enbys but statistically you are not average enough
|
||||
human.gender = human.dna.species.sexes ? pick(MALE, FEMALE) : PLURAL
|
||||
human.physique = human.gender
|
||||
@@ -61,14 +51,14 @@
|
||||
human.eye_color_right = human.eye_color_left
|
||||
human.skin_tone = pick(GLOB.skin_tones)
|
||||
// No underwear generation handled here
|
||||
var/picked_color = pick(natural_hair_colors)
|
||||
var/picked_color = random_hair_color()
|
||||
human.set_haircolor(picked_color, update = FALSE)
|
||||
human.set_facial_haircolor(picked_color, update = FALSE)
|
||||
var/datum/sprite_accessory/hairstyle = SSaccessories.hairstyles_list[random_hairstyle(human.gender)]
|
||||
if(hairstyle?.natural_spawn)
|
||||
if(hairstyle && hairstyle.natural_spawn && !hairstyle.locked)
|
||||
human.set_hairstyle(hairstyle.name, update = FALSE)
|
||||
var/datum/sprite_accessory/facial_hair = SSaccessories.facial_hairstyles_list[random_facial_hairstyle(human.gender)]
|
||||
if(facial_hair?.natural_spawn)
|
||||
if(facial_hair && facial_hair.natural_spawn && !facial_hair.locked)
|
||||
human.set_facial_hairstyle(facial_hair.name, update = FALSE)
|
||||
// Normal DNA init stuff, these can generally be wacky but we care less, they're aliens after all
|
||||
human.dna.initialize_dna(newblood_type = random_blood_type(), create_mutation_blocks = randomize_mutations, randomize_features = TRUE)
|
||||
|
||||
Reference in New Issue
Block a user