material
![code/datums/materials/_material.dm 8](git.png)
Vars | |
alpha | Base alpha of the material, is used for greyscale icons and transparency. |
---|---|
armor_modifiers | Armor modifiers, multiplies an items normal armor vars by these amounts. |
beauty_modifier | How beautiful is this material per unit |
cached_texture_filter | a cached filter for the texture icon |
categories | Materials "Traits". its a map of key = category | Value = Bool. Used to define what it can be used for |
color | Base color of the material, is used for greyscale. Item isn't changed in color if this is null. |
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 |
item_sound_override | Can be used to override the sound items make, lets add some SLOSHing. |
ore_type | WS - The type of ore this material is derrived from. Used by deepcore |
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 |
turf_sound_override | Can be used to override the stepsound a turf makes. MORE SLOOOSH |
value_per_unit | This is the amount of value per 1 unit of the material |
Procs | |
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 |
Var Details
alpha
![code/datums/materials/_material.dm 16](git.png)
Base alpha of the material, is used for greyscale icons and transparency.
armor_modifiers
![code/datums/materials/_material.dm 30](git.png)
Armor modifiers, multiplies an items normal armor vars by these amounts.
beauty_modifier
![code/datums/materials/_material.dm 32](git.png)
How beautiful is this material per unit
cached_texture_filter
![code/datums/materials/_material.dm 42](git.png)
a cached filter for the texture icon
categories
![code/datums/materials/_material.dm 18](git.png)
Materials "Traits". its a map of key = category | Value = Bool. Used to define what it can be used for
color
![code/datums/materials/_material.dm 14](git.png)
Base color of the material, is used for greyscale. Item isn't changed in color if this is null.
id
![code/datums/materials/_material.dm 12](git.png)
Var that's mostly used by science machines to identify specific materials, should most likely be phased out at some point
integrity_modifier
![code/datums/materials/_material.dm 26](git.png)
This is a modifier for integrity, and resembles the strength of the material
item_sound_override
![code/datums/materials/_material.dm 34](git.png)
Can be used to override the sound items make, lets add some SLOSHing.
ore_type
![code/datums/materials/_material.dm 22](git.png)
WS - The type of ore this material is derrived from. Used by deepcore
sheet_type
![code/datums/materials/_material.dm 20](git.png)
The type of sheet this material creates. This should be replaced as soon as possible by greyscale sheets
strength_modifier
![code/datums/materials/_material.dm 24](git.png)
This is a modifier for force, and resembles the strength of the material
texture_layer_icon_state
![code/datums/materials/_material.dm 38](git.png)
what texture icon state to overlay
turf_sound_override
![code/datums/materials/_material.dm 36](git.png)
Can be used to override the stepsound a turf makes. MORE SLOOOSH
value_per_unit
![code/datums/materials/_material.dm 28](git.png)
This is the amount of value per 1 unit of the material
Proc Details
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
-
Returns the composition of this material.
-
Mostly used for alloys when breaking down materials.
-
Arguments:
-
- amount: The amount of the material to break down.
-
- breakdown_flags: Some flags dictating how exactly this material is being broken down.