Goonstation 13 - Modules - TypesDefine Details

code/datums/manufacturing_requirements.dm

/var/requirement_cacheManufacturing Requirements are datums which check if a material satisfies some given requirements, to determine if a manufacturer can produce a blueprint. Manufacturing datums define them by their string ID, which gets converted to the single instance of it in the cache on New(). Not shown in this file are the exact material ID requirement datums, which are generated for the cache on init using the material cache.
/datum/manufacturing_requirement/match_materialAll instances of match_material are generated at runtime for the cache
MATCH_ANYPass as long as at least one flag is set.
MATCH_ALLPass if every material flag being checked is set.
MATCH_EXACTPass if every material flag being checked is set, and every material flag not checked is not set.
/_is_abstract/datum/manufacturing_requirement/mixedManufacturing requirements which check several conditions at once.

Define Details

MATCH_ALL

Pass if every material flag being checked is set.

MATCH_ANY

Pass as long as at least one flag is set.

MATCH_EXACT

Pass if every material flag being checked is set, and every material flag not checked is not set.