Goonstation 13 - Modules - TypesVar Details

material

Base material datum definition

Vars

alphaThe "transparency" of the material. Kept as alpha for logical reasons. Displayed as percentage ingame.
applyColorShould this even color the objects made from it? Mostly used for base station materials like steel
canMixCan this be mixed with other materials?
colorThe color of the material
descDescription of the material, used for scanning
edibleThe functional value of edibility. Edible or not? This is what you check from the outside to see if material is edible. See /datum/material/var/edible_exact.
edible_exactThe actual value of edibility. Changes internally and sets /datum/material/var/edible.
generationCompound generation
mat_idused to retrieve instances of these base materials from the cache.
material_flagsVarious flags. See [material_properties.dm]
mixOnlyCan this only be used after being combined with another material?
nameName of the material, used for combination and scanning
ownerThe atom that this material is applied to
parent_materialsHolds the parent materials.
prefixeswords that go before the name, used in combination
propertiesList of all the various /datum/material_property that apply.
qualityThe 'quality' of the material
suffixeswords that go after the name, used in combination
textureif not null, texture will be set when mat is applied.
texture_blendHow to blend the /datum/material/var/texture.
triggersChemCalled when exposed to chemicals.
triggersDropCalled when owning object is dropped.
triggersExpCalled when exposed to explosions.
triggersFailCalled when the material fails due to instability.
triggersOnAddCalled when the material is added to an object
triggersOnAttackCalled when the owning object is used to attack something or someone.
triggersOnAttackedCalled when a mob wearing the owning object is attacked.
triggersOnBlobHitCalled when blob hits something with this material assigned.
triggersOnBulletCalled when a mob wearing the owning object is shot.
triggersOnEatCalled when someone eats a thing with this material assigned.
triggersOnEnteredCalled when something enters a turf with the material assigned. Also called on all objects on the turf with a material.
triggersOnHitCalled when an obj hits something with this material assigned.
triggersOnLifeCalled when the life proc of a mob that has the owning item equipped runs.
triggersPickupCalled when owning object is picked up.
triggersTempCalled when exposed to temperatures.
valueIn percent of a base value. How much this sells for.

Var Details

alpha

The "transparency" of the material. Kept as alpha for logical reasons. Displayed as percentage ingame.

applyColor

Should this even color the objects made from it? Mostly used for base station materials like steel

canMix

Can this be mixed with other materials?

color

The color of the material

desc

Description of the material, used for scanning

edible

The functional value of edibility. Edible or not? This is what you check from the outside to see if material is edible. See /datum/material/var/edible_exact.

edible_exact

The actual value of edibility. Changes internally and sets /datum/material/var/edible.

generation

Compound generation

mat_id

used to retrieve instances of these base materials from the cache.

material_flags

Various flags. See [material_properties.dm]

mixOnly

Can this only be used after being combined with another material?

name

Name of the material, used for combination and scanning

owner

The atom that this material is applied to

parent_materials

Holds the parent materials.

prefixes

words that go before the name, used in combination

properties

List of all the various /datum/material_property that apply.

quality

The 'quality' of the material

suffixes

words that go after the name, used in combination

texture

if not null, texture will be set when mat is applied.

texture_blend

How to blend the /datum/material/var/texture.

triggersChem

Called when exposed to chemicals.

triggersDrop

Called when owning object is dropped.

triggersExp

Called when exposed to explosions.

triggersFail

Called when the material fails due to instability.

triggersOnAdd

Called when the material is added to an object

triggersOnAttack

Called when the owning object is used to attack something or someone.

triggersOnAttacked

Called when a mob wearing the owning object is attacked.

triggersOnBlobHit

Called when blob hits something with this material assigned.

triggersOnBullet

Called when a mob wearing the owning object is shot.

triggersOnEat

Called when someone eats a thing with this material assigned.

triggersOnEntered

Called when something enters a turf with the material assigned. Also called on all objects on the turf with a material.

triggersOnHit

Called when an obj hits something with this material assigned.

triggersOnLife

Called when the life proc of a mob that has the owning item equipped runs.

triggersPickup

Called when owning object is picked up.

triggersTemp

Called when exposed to temperatures.

value

In percent of a base value. How much this sells for.