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

Method setGoalByCount

plugins/workflow.cpp:286–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285 bool goalByCount() { return config.ival(2) & 1; }
286 void setGoalByCount(bool v) {
287 if (v)
288 config.ival(2) |= 1;
289 else
290 config.ival(2) &= ~1;
291 }
292
293 int curItemStock() { return goalByCount() ? item_count : item_amount; }
294

Callers 2

setConstraintFunction · 0.80
workflow_cmdFunction · 0.80

Calls 1

ivalMethod · 0.80

Tested by

no test coverage detected