Skip to content

Commit

Permalink
Make all animation_test_ characters die on 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Jan 18, 2025
1 parent 9dbcc03 commit 02ba5d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ImperatorToCK3/CK3/Characters/CharactersLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ public void LoadCK3Characters(ModFilesystem ck3ModFS, Date bookmarkDate) {
});
parser.IgnoreAndLogUnregisteredItems();
parser.ParseGameFolder("history/characters", ck3ModFS, "txt", recursive: true);

// Make all animation_test_ characters die on 2.1.1.
foreach (var character in loadedCharacters) {
if (!character.Id.StartsWith("animation_test_")) {
continue;
}

var deathField = character.History.Fields["death"];
deathField.RemoveAllEntries();
deathField.AddEntryToHistory(new Date(2, 1, 1), "death", value: true);
}

string[] irrelevantEffects = ["set_relation_rival", "set_relation_potential_rival", "set_relation_nemesis",
"set_relation_lover", "set_relation_soulmate",
Expand Down

0 comments on commit 02ba5d3

Please sign in to comment.