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

Method goalGap

plugins/workflow.cpp:279–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 void setGoalCount(int v) { config.ival(0) = v; }
278
279 int goalGap() {
280 int cval = (config.ival(1) <= 0) ? std::min(5,goalCount()/2) : config.ival(1);
281 return std::max(1, std::min(goalCount()-1, cval));
282 }
283 void setGoalGap(int v) { config.ival(1) = v; }
284
285 bool goalByCount() { return config.ival(2) & 1; }

Callers 4

push_constraintFunction · 0.80
print_constraintFunction · 0.80
workflow_cmdFunction · 0.80

Calls 1

ivalMethod · 0.80

Tested by

no test coverage detected