| 298 | } |
| 299 | |
| 300 | static vector<int32_t> get_spouse_ids(color_ostream &out, const vector<df::unit *> units) { |
| 301 | vector<int32_t> spouse_ids; |
| 302 | for (auto unit : units) { |
| 303 | auto hf = df::historical_figure::find(unit->hist_figure_id); |
| 304 | if (!hf) |
| 305 | continue; |
| 306 | auto spouse_hf = df::historical_figure::find(get_spouse_hfid(out, hf)); |
| 307 | if (spouse_hf) |
| 308 | spouse_ids.push_back(spouse_hf->unit_id); |
| 309 | } |
| 310 | return spouse_ids; |
| 311 | } |
| 312 | |
| 313 | static void assign_nobles(color_ostream &out) { |
| 314 | for (auto &[zone_id, group_codes] : noble_zones) { |
no test coverage detected