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

Function add_entity_nobles

library/modules/Units.cpp:714–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714static void add_entity_nobles(vector<df::unit *> &units,
715 string noble, size_t limit, df::historical_entity *he)
716{
717 if (!he)
718 return;
719 int32_t noble_position_id = get_noble_position_id(he->positions, noble);
720 if (noble_position_id >= 0)
721 add_assigned_noble_units(units, he->positions, noble_position_id, limit);
722}
723
724
725static void get_units_by_noble_role(vector<df::unit *> &units, string noble, size_t limit = 0) {

Callers 1

get_units_by_noble_roleFunction · 0.85

Calls 2

get_noble_position_idFunction · 0.85
add_assigned_noble_unitsFunction · 0.85

Tested by

no test coverage detected