Skip to content

Commit 0c86a2a

Browse files
authored
Fix a landless vanilla Chinese emperor staying around (#3004) #patch
2 parents e5f26ac + 2fde3da commit 0c86a2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ImperatorToCK3/CK3/Titles/LandedTitles.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,9 +1751,15 @@ public void SetDeJureKingdomsAndAbove(Date ck3BookmarkDate, CultureCollection ck
17511751
SetDeJureEmpiresAndHegemonies(ck3Cultures, ck3Characters, ck3MapData, ck3RegionMapper, ck3LocDB, ck3BookmarkDate);
17521752
}
17531753

1754+
/// <summary>
1755+
/// Returns a set of character IDs of all county holders in the given date.
1756+
/// Noble family county-rank titles are excluded because they aren't "real" counties (with provinces).
1757+
/// </summary>
1758+
/// <param name="date">Date in history for which we're getting the county holders</param>
1759+
/// <returns></returns>
17541760
private HashSet<string> GetCountyHolderIds(Date date) {
17551761
var countyHoldersCache = new HashSet<string>();
1756-
foreach (var county in this.Where(t => t.Rank == TitleRank.county)) {
1762+
foreach (var county in this.Where(t => t.Rank == TitleRank.county && t.NobleFamily != true)) {
17571763
var holderId = county.GetHolderId(date);
17581764
if (holderId != "0") {
17591765
countyHoldersCache.Add(holderId);

0 commit comments

Comments
 (0)