Skip to content

Commit

Permalink
Merge branch 'develop' into adv-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 2, 2024
2 parents 07a7252 + d91eb1f commit 086b14e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/preserve-rooms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static void assign_nobles(color_ostream &out) {
}
// assign to a relevant noble that does not already have a registered zone of this type assigned
for (auto unit : units) {
if (!Units::isCitizen(unit, true) && !Units::isResident(unit, true))
if (!Units::isCitizen(unit, true))
continue;
bool found = false;
for (auto owned_zone : unit->owned_buildings) {
Expand Down Expand Up @@ -388,6 +388,10 @@ static void handle_missing_assignments(color_ostream &out,
{
for (auto & it = *pit; it != it_end && (next_zone_id == -1 || it->first <= next_zone_id); ++it) {
int32_t zone_id = it->first;
if (noble_zones.contains(zone_id)) {
// let noble assignment logic handle the noble zones
continue;
}
int32_t hfid = it->second.first;
int32_t spouse_hfid = it->second.second;
auto hf = df::historical_figure::find(hfid);
Expand Down

0 comments on commit 086b14e

Please sign in to comment.