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

Function getFreeEggLayers

plugins/autonestbox.cpp:295–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295static vector<df::unit *> getFreeEggLayers(color_ostream &out) {
296 vector<df::unit *> ret;
297 for (auto unit : world->units.active) {
298 if (isFreeEgglayer(unit))
299 ret.push_back(unit);
300 }
301 return ret;
302}
303
304// rate limit to one message per season
305// assumes this gets run at least once a season, which is true when enabled

Callers 1

assign_nestboxesFunction · 0.85

Calls 1

isFreeEgglayerFunction · 0.85

Tested by

no test coverage detected