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

Method PushButcherableUnit

plugins/autobutcher.cpp:307–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 void PushButcherableUnit(df::unit *unit) {
308 if(Units::isFemale(unit)) {
309 if(Units::isBaby(unit) || Units::isChild(unit))
310 fk_units.emplace(unit);
311 else
312 fa_units.emplace(unit);
313 }
314 else //treat sex n/a like it was male
315 {
316 if(Units::isBaby(unit) || Units::isChild(unit))
317 mk_units.emplace(unit);
318 else
319 ma_units.emplace(unit);
320 }
321 }
322
323 void PushProtectedUnit(df::unit *unit) {
324 if(Units::isFemale(unit)) {

Callers 5

autobutcher_cycleFunction · 0.80
checkRaceStocksTotalFunction · 0.80
checkRaceStocksProtectedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected