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

Function isSupportedJob

plugins/workflow.cpp:377–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static bool isSupportedJob(df::job *job)
378{
379 return job->specific_refs.empty() &&
380 Job::getHolder(job) &&
381 (!job->job_items.elements.empty() ||
382 job->job_type == job_type::CollectClay ||
383 job->job_type == job_type::CollectSand ||
384 job->job_type == job_type::MilkCreature ||
385 job->job_type == job_type::ShearCreature);
386}
387
388static bool isOptionEnabled(unsigned flag)
389{

Callers 2

check_lost_jobsFunction · 0.85
listConstraintsFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected