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

Function itemInRealJob

plugins/workflow.cpp:1025–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025static bool itemInRealJob(df::item *item)
1026{
1027 if (!item->flags.bits.in_job)
1028 return false;
1029
1030 auto ref = Items::getSpecificRef(item, specific_ref_type::JOB);
1031 if (!ref || !ref->data.job)
1032 return true;
1033
1034 return ENUM_ATTR(job_type, type, ref->data.job->job_type)
1035 != job_type_class::Hauling;
1036}
1037
1038static void map_job_items(color_ostream &out)
1039{

Callers 1

map_job_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected