Files
Bubberstation/code/modules/client/preferences/random.dm
SkyratBot 1bc09326d0 [MIRROR] Splits eye color into two vars | Heterochromia Quirk [MDB IGNORE] (#13390)
* Splits eye color into two vars | Heterochromia Quirk

* yesyes

* eeee

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-05-09 01:00:12 +01: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