mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 03:30:01 +01:00
## About The Pull Request Goes through a bunch of character preferences and adds informed default values which produce less wacky results. Basically part 2 of #84443 . Preference randomization now results in a character similar to that pictured in the original pr. Of course, you can still make your character look as wacky as ever.  ## Why It's Good For The Game Basically, fully random characters look horrendous, and unless you're playing a non-human, you stick out like a sore thumb if you hardcore random or just decide to random appearance. Ultimately, full-random people will stick out less, which I think is good. ## Changelog 🆑 Melbert qol: Random player characters now look less like rainbow vomit and more like some of the most average people you know. /🆑
19 lines
705 B
Plaintext
19 lines
705 B
Plaintext
/// Gender preference
|
|
/datum/preference/choiced/gender
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
savefile_key = "gender"
|
|
priority = PREFERENCE_PRIORITY_GENDER
|
|
|
|
/datum/preference/choiced/gender/init_possible_values()
|
|
return list(MALE, FEMALE, PLURAL, NEUTER)
|
|
|
|
/datum/preference/choiced/gender/apply_to_human(mob/living/carbon/human/target, value)
|
|
if(!target.dna.species.sexes)
|
|
value = PLURAL //disregard gender preferences on this species
|
|
target.gender = value
|
|
|
|
/datum/preference/choiced/gender/create_informed_default_value(datum/preferences/preferences)
|
|
// The only reason I'm limiting this to male or female
|
|
// is that hairstyle randomization handles enbies poorly
|
|
return pick(MALE, FEMALE)
|