/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/crafting.dm

CRAFTING_MACHINERY_CONSUMEIf the machine is used/deleted in the crafting process
CRAFTING_STRUCTURE_CONSUMEIf the structure is used/deleted in the crafting process
CRAFTING_MACHINERY_USEIf the machine is only "used" i.e. it checks to see if it's nearby and allows crafting, but doesn't delete it
CRAFTING_STRUCTURE_USEIf the structure is only "used" i.e. it checks to see if it's nearby and allows crafting, but doesn't delete it
STACK_CHECK_CARDINALSChecks if there is an object of the result type in any of the cardinal directions
STACK_CHECK_ADJACENTChecks if there is an object of the result type within one tile
CRAFT_MUST_BE_LEARNEDIf this craft must be learned before it becomes available
CRAFT_ONE_PER_TURFShould only one object exist on the same turf?
CRAFT_IS_FULLTILESetting this to true will effectively set check_direction to true.
CRAFT_CHECK_DIRECTIONIf this craft should run the direction check, for use when building things like directional windows where you can have more than one per turf
CRAFT_ON_SOLID_GROUNDIf the craft requires a floor below
CRAFT_CHECK_DENSITYIf the craft checks that there are objects with density in the same turf when being built
CRAFT_TRANSFERS_REAGENT_COMPONENTSAny reagent inputs to the craft will be transferred to the finishing product instead of being deleted Note this only handles reagents that are SPECIFICALLY ASKED FOR in the component list, not all reagents in all components
CRAFT_CLEARS_REAGENTSCrafting clears all reagents present in the finished product
CRAFT_SKIP_MATERIALS_PARITYFor the crafting unit test, we don't check if the custom materials of an item are the same when crafted and spawned should its recipe have this flag.
CRAFT_IGNORE_DO_AFTERExclusive to the personal_crafting component, skips the time spent crafting the recipe.
CRAFT_NO_MATERIALSThis craft won't change the materials of the resulting item to match that of the combined components
BLACKLIST_RESULT_IF_NOT_IN_REQSBy default, blacklist the result if it's not in reqs
ALWAYS_BLACKLIST_RESULTAlways blacklist - override default behavior
NEVER_BLACKLIST_RESULTNever blacklist - override default behavior

Define Details

ALWAYS_BLACKLIST_RESULT

Always blacklist - override default behavior

BLACKLIST_RESULT_IF_NOT_IN_REQS

By default, blacklist the result if it's not in reqs

CRAFTING_MACHINERY_CONSUME

If the machine is used/deleted in the crafting process

CRAFTING_MACHINERY_USE

If the machine is only "used" i.e. it checks to see if it's nearby and allows crafting, but doesn't delete it

CRAFTING_STRUCTURE_CONSUME

If the structure is used/deleted in the crafting process

CRAFTING_STRUCTURE_USE

If the structure is only "used" i.e. it checks to see if it's nearby and allows crafting, but doesn't delete it

CRAFT_CHECK_DENSITY

If the craft checks that there are objects with density in the same turf when being built

CRAFT_CHECK_DIRECTION

If this craft should run the direction check, for use when building things like directional windows where you can have more than one per turf

CRAFT_CLEARS_REAGENTS

Crafting clears all reagents present in the finished product

CRAFT_IGNORE_DO_AFTER

Exclusive to the personal_crafting component, skips the time spent crafting the recipe.

CRAFT_IS_FULLTILE

Setting this to true will effectively set check_direction to true.

CRAFT_MUST_BE_LEARNED

If this craft must be learned before it becomes available

CRAFT_NO_MATERIALS

This craft won't change the materials of the resulting item to match that of the combined components

CRAFT_ONE_PER_TURF

Should only one object exist on the same turf?

CRAFT_ON_SOLID_GROUND

If the craft requires a floor below

CRAFT_SKIP_MATERIALS_PARITY

For the crafting unit test, we don't check if the custom materials of an item are the same when crafted and spawned should its recipe have this flag.

CRAFT_TRANSFERS_REAGENT_COMPONENTS

Any reagent inputs to the craft will be transferred to the finishing product instead of being deleted Note this only handles reagents that are SPECIFICALLY ASKED FOR in the component list, not all reagents in all components

NEVER_BLACKLIST_RESULT

Never blacklist - override default behavior

STACK_CHECK_ADJACENT

Checks if there is an object of the result type within one tile

STACK_CHECK_CARDINALS

Checks if there is an object of the result type in any of the cardinal directions