Skip to content

Commit

Permalink
Support some more CK3 character history keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Oct 20, 2024
1 parent 66c3b8a commit c432f8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ImperatorToCK3/CK3/Characters/Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ public string? DeathReason {
.WithLiteralField("if", "if")
.WithSimpleField("sexuality", "sexuality", null)
.WithLiteralField("domicile", "domicile")
.WithLiteralField("create_maa_regiment", "create_maa_regiment")
.WithSimpleField("add_gold", "add_gold", null)
.WithSimpleField("add_piety_level", "add_piety_level", null)
.WithSimpleField("add_prestige_level", "add_prestige_level", null)
.Build();

public History History { get; } = historyFactory.GetHistory();
Expand Down
1 change: 1 addition & 0 deletions ImperatorToCK3/Imperator/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ private void ReadCoatsOfArmsFromGameLog(string imperatorDocPath) {
MatchCollection matches = FlagDefinitionRegex().Matches(content);

CoaMapper.ParseCoAs(matches.Select(match => match.Value));
Logger.Info("Finished reading CoAs from I:R game.log.");
}

private void ExtractDynamicCoatsOfArms(Configuration config) {
Expand Down

0 comments on commit c432f8b

Please sign in to comment.