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

Method computeRequest

plugins/workflow.cpp:302–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 }
301
302 void computeRequest()
303 {
304 int size = curItemStock();
305 request_resume = (size <= goalCount()-goalGap());
306 request_suspend = (size >= goalCount());
307 }
308
309 static const size_t int28_size = PersistentDataItem::int28_size;
310 static const size_t hist_entry_size = PersistentDataItem::int28_size * 4;

Callers 1

map_job_itemsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected