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

Function isHighPriority

plugins/autobutcher.cpp:207–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205struct_identity autobutcher_options::_identity(sizeof(autobutcher_options), &df::allocator_fn<autobutcher_options>, NULL, "autobutcher_options", NULL, autobutcher_options_fields);
206
207static bool isHighPriority(df::unit *unit) {
208 return Units::isGay(unit) || Units::isGelded(unit);
209}
210
211static void doMarkForSlaughter(df::unit *unit) {
212 DEBUG(cycle).print("marking unit {} for slaughter: {}, {}, high priority: {}, age: {:.2f}\n",

Callers 3

doMarkForSlaughterFunction · 0.85
compareKidsFunction · 0.85
compareAdultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected