Files
Yogstation/code/__DEFINES/materials.dm
tattax eb5a59fa6b ports GAGS (#19885)
admins can change colors on a specific item if it uses the GAGS system
you can now use right click -> toggle flashlight to toggle PDA flashlight
changed some sprites to use GAGS
2024-03-16 06:03:03 +00:00

19 lines
970 B
Plaintext

/// Gets the reference for the material type that was given
#define getmaterialref(A) (SSmaterials.materials[A])
/// Whether a material's mechanical effects should apply to the atom. This is necessary for other flags to work.
#define MATERIAL_EFFECTS (1<<0)
/// Applies the material color to the atom's color. Deprecated, use MATERIAL_GREYSCALE instead
#define MATERIAL_COLOR (1<<1)
/// Whether a prefix describing the material should be added to the name
#define MATERIAL_ADD_PREFIX (1<<2)
/// Whether a material should affect the stats of the atom
#define MATERIAL_AFFECT_STATISTICS (1<<3)
/// Applies the material greyscale color to the atom's greyscale color.
#define MATERIAL_GREYSCALE (1<<4)
/// Wrapper for fetching material references. Exists exclusively so that people don't need to wrap everything in a list every time.
#define GET_MATERIAL_REF(arguments...) SSmaterials._GetMaterialRef(list(##arguments))
#define MATERIAL_SOURCE(mat) "[mat.name]_material"