| 712 | } |
| 713 | |
| 714 | static 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 | |
| 725 | static void get_units_by_noble_role(vector<df::unit *> &units, string noble, size_t limit = 0) { |
no test coverage detected