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

Method status

plugins/autofarm.cpp:332–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 void status(color_ostream& out)
333 {
334 out << "Autofarm is " << (enabled ? "Active." : "Stopped.") << '\n';
335
336 for (auto& lc : lastCounts)
337 {
338 auto plant = world->raws.plants.all[lc.first];
339 out << plant->id << " limit " << getThreshold(lc.first) << " current " << lc.second << '\n';
340 }
341
342 for (auto& th : thresholds)
343 {
344 if (lastCounts.count(th.first) > 0)
345 continue;
346 auto plant = world->raws.plants.all[th.first];
347 out << plant->id << " limit " << getThreshold(th.first) << " current 0" << '\n';
348 }
349 out << "Default: " << defaultThreshold << '\n';
350
351 out << std::flush;
352 }
353
354private:
355

Callers 1

autofarmFunction · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected