| 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 | |
| 354 | private: |
| 355 | |