Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/part_customization

These are SINGLETONS

Vars

custom_iconCustom icon overrides, otherwise just uses the part icon
incompatible_partsCannot be added alongside these part IDs
part_typeCan be a type or a list of types to randomly pick from

Procs

apply_toActually add the part
can_applyCan we add the part, custom_parts is an associative list of slot IDs to part IDs
get_base64_iconUI helper proc so we don't have to manage static data caches
get_nameDefaults to just the name of the part type, can be overridden
try_applyCheck if we can, then apply the part

Var Details

custom_icon

Custom icon overrides, otherwise just uses the part icon

incompatible_parts

Cannot be added alongside these part IDs

part_type

Can be a type or a list of types to randomly pick from

Proc Details

apply_to

Actually add the part

can_apply

Can we add the part, custom_parts is an associative list of slot IDs to part IDs

get_base64_icon

UI helper proc so we don't have to manage static data caches

get_name

Defaults to just the name of the part type, can be overridden

try_apply

Check if we can, then apply the part