mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 14:17:12 +01:00
1d8693c26f
Character preferences now disregards the gender value if the species you're playing as is sexless fixes #61491 (Ethereals being "He" instead of "They")
14 lines
461 B
Plaintext
14 lines
461 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)
|
|
|
|
/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
|