Files
Bubberstation/code/modules/client/preferences/random.dm
Zephyr 87d2703af4 Splits eye color into two vars | Heterochromia Quirk (#66164)
* refactor it back to a single organ but with different eye vars

* nOt In A LoOp

* forgot emissive overlay

* remove old obscured var

* quirk

* fine we do it like this, PAIN

* add applying_preference paramter to is_accessible and check for it when applying

* update dummy on quirk change

* client might not exist if we are applying the preference, because unit tests

* unique icon

* lazy webedit review

* revert is_accessible refactor

* mild stupid

* change the way heterochromia is applied

* better handling

* Apply suggestions from code review

* add apply to human behaviour

* hopefully fix that which the merge hooks broke

* Update code/datums/quirks/neutral.dm

* Web commit for shame

* Update code/datums/quirks/neutral.dm

* Update code/datums/quirks/neutral.dm

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>

* Update basic.dm

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
2022-05-06 23:45:16 -04:00

54 lines
1.5 KiB
Plaintext

/datum/preference/choiced/random_body
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
savefile_key = "random_body"
savefile_identifier = PREFERENCE_CHARACTER
can_randomize = FALSE
/datum/preference/choiced/random_body/apply_to_human(mob/living/carbon/human/target, value)
return
/datum/preference/choiced/random_body/init_possible_values()
return list(
RANDOM_ANTAG_ONLY,
RANDOM_DISABLED,
RANDOM_ENABLED,
)
/datum/preference/choiced/random_body/create_default_value()
return RANDOM_DISABLED
/datum/preference/toggle/random_hardcore
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
savefile_key = "random_hardcore"
savefile_identifier = PREFERENCE_CHARACTER
can_randomize = FALSE
default_value = FALSE
/datum/preference/toggle/random_hardcore/apply_to_human(mob/living/carbon/human/target, value)
return
/datum/preference/toggle/random_hardcore/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return preferences.parent && (preferences.parent.get_exp_living(pure_numeric = TRUE) >= PLAYTIME_HARDCORE_RANDOM)
/datum/preference/choiced/random_name
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
savefile_key = "random_name"
savefile_identifier = PREFERENCE_CHARACTER
can_randomize = FALSE
/datum/preference/choiced/random_name/apply_to_human(mob/living/carbon/human/target, value)
return
/datum/preference/choiced/random_name/init_possible_values()
return list(
RANDOM_ANTAG_ONLY,
RANDOM_DISABLED,
RANDOM_ENABLED,
)
/datum/preference/choiced/random_name/create_default_value()
return RANDOM_DISABLED