MCPcopy Create free account
hub / github.com/DFHack/dfhack / isCraftItem

Function isCraftItem

plugins/workflow.cpp:803–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801 ******************************/
802
803static bool isCraftItem(df::item_type type)
804{
805 using namespace df::enums::job_type;
806
807 auto lst = ENUM_ATTR(job_type, possible_item, MakeCrafts);
808 for (size_t i = 0; i < lst.size; i++)
809 if (lst.items[i] == type)
810 return true;
811
812 return false;
813}
814
815static void link_job_constraint(ProtectedJob *pj, df::item_type itype, int16_t isubtype,
816 df::dfhack_material_category mat_mask,

Callers 2

link_job_constraintFunction · 0.85
map_job_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected