| 801 | ******************************/ |
| 802 | |
| 803 | static 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 | |
| 815 | static void link_job_constraint(ProtectedJob *pj, df::item_type itype, int16_t isubtype, |
| 816 | df::dfhack_material_category mat_mask, |
no outgoing calls
no test coverage detected