sprite_accessory ![code/datums/sprite_accessories.dm 19](git.png)
Vars | |
center | Should we center the sprite? |
---|---|
color_src | Currently only used by mutantparts so don't worry about hair and stuff. This is the source that this accessory will get its color from. Default is MUTCOLOR, but can also be HAIR, FACEHAIR, EYECOLOR and 0 if none. |
dimension_x | The width of the sprite in pixels. Used to center it if necessary. |
dimension_y | The height of the sprite in pixels. Used to center it if necessary. |
em_block | Should this sprite block emissives? |
gender | Determines if the accessory will be skipped or included in random hair generations. |
gender_specific | Something that can be worn by either gender, but looks different on each. |
icon | The icon file the accessory is located in. |
icon_state | The icon_state of the accessory. |
locked | Is this part locked from roundstart selection? Used for parts that apply effects. |
name | The preview name of the accessory. |
natural_spawn | Determines if this is considered "sane" for the purpose of /proc/randomize_human_normie Basically this is to blacklist the extremely wacky stuff from being picked in random human generation. |
use_static | Determines if the accessory will be skipped by color preferences. |
Var Details
center ![code/datums/sprite_accessories.dm 40](git.png)
Should we center the sprite?
color_src ![code/datums/sprite_accessories.dm 36](git.png)
Currently only used by mutantparts so don't worry about hair and stuff. This is the source that this accessory will get its color from. Default is MUTCOLOR, but can also be HAIR, FACEHAIR, EYECOLOR and 0 if none.
dimension_x ![code/datums/sprite_accessories.dm 42](git.png)
The width of the sprite in pixels. Used to center it if necessary.
dimension_y ![code/datums/sprite_accessories.dm 44](git.png)
The height of the sprite in pixels. Used to center it if necessary.
em_block ![code/datums/sprite_accessories.dm 46](git.png)
Should this sprite block emissives?
gender ![code/datums/sprite_accessories.dm 27](git.png)
Determines if the accessory will be skipped or included in random hair generations.
gender_specific ![code/datums/sprite_accessories.dm 29](git.png)
Something that can be worn by either gender, but looks different on each.
icon ![code/datums/sprite_accessories.dm 21](git.png)
The icon file the accessory is located in.
icon_state ![code/datums/sprite_accessories.dm 23](git.png)
The icon_state of the accessory.
locked ![code/datums/sprite_accessories.dm 38](git.png)
Is this part locked from roundstart selection? Used for parts that apply effects.
name ![code/datums/sprite_accessories.dm 25](git.png)
The preview name of the accessory.
natural_spawn ![code/datums/sprite_accessories.dm 49](git.png)
Determines if this is considered "sane" for the purpose of /proc/randomize_human_normie Basically this is to blacklist the extremely wacky stuff from being picked in random human generation.
use_static ![code/datums/sprite_accessories.dm 31](git.png)
Determines if the accessory will be skipped by color preferences.