Skip to content

Commit

Permalink
Fix the Faroe Islands remaining Catholic after the conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Jan 18, 2025
1 parent 13412cb commit 23e8050
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ImperatorToCK3/CK3/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,12 @@ private void GenerateHermitForTitle(Title title, Queue<string> namePool, Date bo

title.SetHolder(hermit, bookmarkDate);
title.SetGovernment("eremitic_government", bookmarkDate);
foreach (var county in title.GetDeJureVassalsAndBelow(rankFilter: "c").Values) {

OrderedSet<Title> countiesToHandle = [..title.GetDeJureVassalsAndBelow(rankFilter: "c").Values];
if (title.Rank == TitleRank.county) {
countiesToHandle.Add(title);
}
foreach (var county in countiesToHandle) {
county.SetHolder(hermit, bookmarkDate);
county.SetDevelopmentLevel(0, bookmarkDate);
foreach (var provinceId in county.CountyProvinceIds) {
Expand Down

0 comments on commit 23e8050

Please sign in to comment.