Skip to content

Commit

Permalink
TFE: prevent Chalcedonian being convertible to Nicene after 451.8.25 (#…
Browse files Browse the repository at this point in the history
…1995) #patch

closes #1986
  • Loading branch information
IhateTrains authored Jun 14, 2024
1 parent bd1fac7 commit eb2b7e4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions ImperatorToCK3.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Maurya/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Memphite/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Nabatean/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=nestorian/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=offwhite/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Outputter/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=papar/@EntryIndexedValue">True</s:Boolean>
Expand Down
31 changes: 31 additions & 0 deletions ImperatorToCK3/Outputter/OnActionOutputter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,37 @@ public static void OutputCustomGameStartOnAction(Configuration config) {
if (config.LegionConversion == LegionConversion.MenAtArms) {
writer.WriteLine("\t\tset_global_variable = IRToCK3_create_maa_flag");
}

if (config.FallenEagleEnabled) {
// As of the "Last of the Romans" update, TFE only disables Nicene for start dates >= 476.9.4.
// But for the converter it's important that Nicene is disabled for all start dates >= 451.8.25.
writer.WriteLine("""
# IRToCK3: disable Nicene after the Council of Chalcedon.
if = {
limit = {
game_start_date >= 451.8.25
}
faith:armenian_apostolic = {
remove_doctrine = unavailable_doctrine
}
faith:nestorian = {
remove_doctrine = unavailable_doctrine
}
faith:coptic = {
remove_doctrine = unavailable_doctrine
}
faith:syriac = {
remove_doctrine = unavailable_doctrine
}
faith:chalcedonian = {
remove_doctrine = unavailable_doctrine
}
faith:nicene = {
add_doctrine = unavailable_doctrine
}
}
""");
}

writer.WriteLine("\t}");
writer.WriteLine("}");
Expand Down

0 comments on commit eb2b7e4

Please sign in to comment.