Daedalus Dock - Modules - TypesDefine Details

code/modules/client/preferences/_preference.dm

PREFERENCE_PRIORITY_DEFAULTThe default priority level
PREFERENCE_PRIORITY_QUIRKSThe priority level for quirk-based prefs
PREFERENCE_PRIORITY_SPECIESThe priority at which species runs, needed for external organs to apply properly.
PREFERENCE_PRIORITY_GENDERThe priority at which gender is determined, needed for proper randomization.
PREFERENCE_PRIORITY_BODY_TYPEThe priority at which body type is decided, applied after gender so we can support the "use gender" option.
PREFERENCE_PRIORITY_AUGMENTSAugments come after species and bodytype.
PREFERENCE_PRIORITY_BRANDED_PROSTHETICSApplies branding to prosthetics
PREFERENCE_PRIORITY_HUMAN_HAIRThe priority hair is applied. We apply human hair first, and moth hair after, only if they are a moth. Sorry.
PREFERENCE_PRIORITY_NONHUMAN_HAIRThe priority non-human hair is applied (used to apply moth hair after normal hair)
PREFERENCE_PRIORITY_NAMESThe priority at which names are decided, needed for proper randomization.
PREFERENCE_PRIORITY_NAME_MODIFICATIONSPreferences that aren't names, but change the name changes set by PREFERENCE_PRIORITY_NAMES.
MAX_PREFERENCE_PRIORITYThe maximum preference priority, keep this updated, but don't use it for priority.
CHOICED_PREFERENCE_DISPLAY_NAMESFor choiced preferences, this key will be used to set display names in constant data.
/proc/get_preferences_in_priority_order Returns a flat list of preferences in order of their priority
/datum/preferenceRepresents an individual preference.
/datum/preference/choicedA preference that is a choice of one option among a fixed set. Used for preferences such as clothing.
/datum/preference/colorA preference that represents an RGB color of something. Will give the value as 6 hex digits, without a hash.
/datum/preference/numericA numeric preference with a minimum and maximum value
/datum/preference/toggleA prefernece whose value is always TRUE or FALSE
/datum/preference/blobHolds any kind of abstract list data you'd like it to. MUST impliment is_valid!

Define Details

CHOICED_PREFERENCE_DISPLAY_NAMES

For choiced preferences, this key will be used to set display names in constant data.

MAX_PREFERENCE_PRIORITY

The maximum preference priority, keep this updated, but don't use it for priority.

PREFERENCE_PRIORITY_AUGMENTS

Augments come after species and bodytype.

PREFERENCE_PRIORITY_BODY_TYPE

The priority at which body type is decided, applied after gender so we can support the "use gender" option.

PREFERENCE_PRIORITY_BRANDED_PROSTHETICS

Applies branding to prosthetics

PREFERENCE_PRIORITY_DEFAULT

The default priority level

PREFERENCE_PRIORITY_GENDER

The priority at which gender is determined, needed for proper randomization.

PREFERENCE_PRIORITY_HUMAN_HAIR

The priority hair is applied. We apply human hair first, and moth hair after, only if they are a moth. Sorry.

PREFERENCE_PRIORITY_NAMES

The priority at which names are decided, needed for proper randomization.

PREFERENCE_PRIORITY_NAME_MODIFICATIONS

Preferences that aren't names, but change the name changes set by PREFERENCE_PRIORITY_NAMES.

PREFERENCE_PRIORITY_NONHUMAN_HAIR

The priority non-human hair is applied (used to apply moth hair after normal hair)

PREFERENCE_PRIORITY_QUIRKS

The priority level for quirk-based prefs

PREFERENCE_PRIORITY_SPECIES

The priority at which species runs, needed for external organs to apply properly.