mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 19:49:39 +01:00
* 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>
21 lines
801 B
Plaintext
21 lines
801 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_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)
|