Files
Bubberstation/code/modules/client/preferences/age.dm
MrMelbert 5b3c32e5cf Adds informed default values for a bunch of preferences (to produce less outlandish random characters) (#84726)
## 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. 


![image](https://github.com/tgstation/tgstation/assets/51863163/0adef385-8a3d-46ed-b657-8c6712ec5ccf)

## 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.
/🆑
2024-07-07 15:04:00 -04:00

14 lines
428 B
Plaintext

/datum/preference/numeric/age
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
savefile_key = "age"
savefile_identifier = PREFERENCE_CHARACTER
minimum = AGE_MIN
maximum = AGE_MAX
/datum/preference/numeric/age/apply_to_human(mob/living/carbon/human/target, value)
target.age = value
/datum/preference/numeric/age/create_informed_default_value(datum/preferences/preferences)
return rand(max(minimum, 21), min(maximum, 50))