Skip to content

Commit

Permalink
Simplify outputted birth entries of loaded CK3 characters (#1935) #patch
Browse files Browse the repository at this point in the history
This will reduce the size of the outputted mod.
  • Loading branch information
IhateTrains authored May 4, 2024
1 parent 2cb450f commit 3921302
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ImperatorToCK3/CK3/Characters/CharactersLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public void LoadCK3Characters(ModFilesystem ck3ModFS, Date bookmarkDate) {
}
field.RemoveHistoryPastDate(bookmarkDate);
}

// Replace birth entries like "birth = "1081.1.1"" with "birth = yes".
var birthField = character.History.Fields["birth"];
birthField.RemoveAllEntries();
birthField.AddEntryToHistory(character.BirthDate, "birth", value: true);

// Replace complex death entries like "death = { death_reason = death_murder_known killer = 9051 }"
// with "death = yes".
Expand Down

0 comments on commit 3921302

Please sign in to comment.