| 723 | |
| 724 | |
| 725 | static void get_units_by_noble_role(vector<df::unit *> &units, string noble, size_t limit = 0) { |
| 726 | if (!plotinfo) |
| 727 | return; |
| 728 | add_entity_nobles(units, noble, limit, df::historical_entity::find(plotinfo->civ_id)); |
| 729 | add_entity_nobles(units, noble, limit, df::historical_entity::find(plotinfo->group_id)); |
| 730 | } |
| 731 | |
| 732 | bool Units::getUnitsByNobleRole(vector<df::unit *> &units, string noble) { |
| 733 | units.clear(); |
no test coverage detected