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

Function autobutcher_setDefaultTargetAll

plugins/autobutcher.cpp:869–878  ·  view source on GitHub ↗

set default target values for ALL races (update watchlist and set new default)

Source from the content-addressed store, hash-verified

867
868// set default target values for ALL races (update watchlist and set new default)
869static void autobutcher_setDefaultTargetAll(color_ostream &out, unsigned fk, unsigned mk, unsigned fa, unsigned ma) {
870 for (auto w : watched_races) {
871 w.second->fk = fk;
872 w.second->mk = mk;
873 w.second->fa = fa;
874 w.second->ma = ma;
875 w.second->UpdateConfig(out);
876 }
877 autobutcher_setDefaultTargetNew(out, fk, mk, fa, ma);
878}
879
880static void autobutcher_butcherRace(color_ostream &out, int id) {
881 for (auto unit : world->units.active) {

Callers

nothing calls this directly

Calls 2

UpdateConfigMethod · 0.80

Tested by

no test coverage detected