Skip to content

TFE: prevent Chalcedonian being convertible to Nicene after 451.8.25 #1995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading