Yogstation 13 - Modules - TypesVar Details - Proc Details

material

Vars

alphaBase alpha of the material, is used for greyscale icons.
cached_texture_filter_icona cached icon for the texture filter
categoriesMaterials "Traits". its a map of key = category | Value = Bool. Used to define what it can be used for.gold
coin_typeThe type of coin this material spawns. This should be replaced as soon as possible by greyscale coins.
colorBase color of the material, is used for greyscale. Item isn't changed in color if this is null. Deprecated, use greyscale_color instead.
greyscale_colorsDetermines the color palette of the material. Formatted the same as atom/var/greyscale_colors
idVar that's mostly used by science machines to identify specific materials, should most likely be phased out at some point
integrity_modifierThis is a modifier for integrity, and resembles the strength of the material
sheet_typeThe type of sheet this material creates. This should be replaced as soon as possible by greyscale sheets.
strength_modifierThis is a modifier for force, and resembles the strength of the material
texture_layer_icon_statewhat texture icon state to overlay

Procs

Initialize
on_accidental_mat_consumptionThis proc is called when the mat is found in an item that's consumed by accident. see /obj/item/proc/on_accidental_consumption. Arguments
on_appliedThis proc is called when the material is added to an object.
on_applied_objThis proc is called when the material is added to an object specifically.
on_removedThis proc is called when the material is removed from an object.
on_removed_objThis proc is called when the material is removed from an object specifically.
return_composition

Var Details

alpha

Base alpha of the material, is used for greyscale icons.

cached_texture_filter_icon

a cached icon for the texture filter

categories

Materials "Traits". its a map of key = category | Value = Bool. Used to define what it can be used for.gold

coin_type

The type of coin this material spawns. This should be replaced as soon as possible by greyscale coins.

color

Base color of the material, is used for greyscale. Item isn't changed in color if this is null. Deprecated, use greyscale_color instead.

greyscale_colors

Determines the color palette of the material. Formatted the same as atom/var/greyscale_colors

id

Var that's mostly used by science machines to identify specific materials, should most likely be phased out at some point

integrity_modifier

This is a modifier for integrity, and resembles the strength of the material

sheet_type

The type of sheet this material creates. This should be replaced as soon as possible by greyscale sheets.

strength_modifier

This is a modifier for force, and resembles the strength of the material

texture_layer_icon_state

what texture icon state to overlay

Proc Details

Initialize

on_accidental_mat_consumption

This proc is called when the mat is found in an item that's consumed by accident. see /obj/item/proc/on_accidental_consumption. Arguments

on_applied

This proc is called when the material is added to an object.

on_applied_obj

This proc is called when the material is added to an object specifically.

on_removed

This proc is called when the material is removed from an object.

on_removed_obj

This proc is called when the material is removed from an object specifically.

return_composition