Skip to content

Commit

Permalink
Fix the converter using wrong ID for Cave Hermit court position
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Oct 15, 2024
1 parent 9877f35 commit b5acc40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ImperatorToCK3/CK3/Titles/LandedTitles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ public void ImportImperatorGovernmentOffices(ICollection<OfficeJob> irOfficeJobs
["court_physician_court_position"] = ["office_physician", "office_republic_physician", "office_apothecary"],
["court_tutor_court_position"] = ["office_royal_tutor"],
["chronicler_court_position"] = ["office_philosopher"], // From I:R wiki: "supervises libraries and the gathering and protection of knowledge"
["court_cave_hermit_position"] = ["office_wise_person"]
["cave_hermit_court_position"] = ["office_wise_person"]
};

string[] ignoredOfficeTypes = ["office_plebeian_aedile"];
Expand Down
4 changes: 2 additions & 2 deletions ImperatorToCK3/CK3/Titles/Title.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,8 @@ private void AppointCourtierPositionsFromImperator(Dictionary<string, string[]>
continue;
}

// For court_cave_hermit_position, lifestyle_mystic trait is required.
if (ck3Position == "court_cave_hermit_position" && !ck3Official.BaseTraits.Contains("lifestyle_mystic")) {
// For cave_hermit_court_position, lifestyle_mystic trait is required.
if (ck3Position == "cave_hermit_court_position" && !ck3Official.BaseTraits.Contains("lifestyle_mystic")) {
continue;
}

Expand Down

0 comments on commit b5acc40

Please sign in to comment.