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

Function autochop_undesignate

plugins/autochop.cpp:704–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704static void autochop_undesignate(color_ostream &out) {
705 DEBUG(control,out).print("entering autochop_undesignate\n");
706 int32_t count = 0;
707 for (auto plant : world->plants.all) {
708 if (is_valid_tree(plant) && Designations::unmarkPlant(plant))
709 ++count;
710 }
711 out.print("undesignated {} tree(s)\n", count);
712}
713
714static void autochop_setTargets(color_ostream &out, int32_t max_logs, int32_t min_logs) {
715 DEBUG(control,out).print("entering autochop_setTargets\n");

Callers

nothing calls this directly

Calls 2

is_valid_treeFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected