Files

21 lines
763 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)
/* SKYRAT EDIT REMOVAL START - Did you just assume my gender???
if(!target.dna.species.sexes)
value = PLURAL //disregard gender preferences on this species
*/ // SKYRAT EDIT REMOVAL END
target.gender = value
/datum/preference/choiced/gender/create_default_value()
// The only reason I'm limiting this to male or female
// is that hairstyle randomization handles enbies poorly
return pick(MALE, FEMALE)