Skip to content

Commit 1019498

Browse files
authored
Compatch for WtWSMS 0.1.9 (#3099)
closes #3098
1 parent abf4dd0 commit 1019498

7 files changed

Lines changed: 47 additions & 18 deletions

File tree

ImperatorToCK3/CK3/Titles/LandedTitles.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ Date ck3BookmarkDate
13831383
.Where(x => x.Culture is not null)
13841384
.Select(x => new { x.County, x.Culture!.Heritage })
13851385
.GroupBy(x => x.Heritage)
1386-
.OrderByDescending(g => g.Count())
1386+
.OrderByDescending(g => g.Sum(x => x.County.CountyProvinceIds.Count()))
13871387
.Select(g => g.Key)
13881388
.ToImmutableArray();
13891389
if (dominantHeritages.Length == 0) {

ImperatorToCK3/Data_Files/blankMod/output/common/on_action/IRToCK3_on_actions.txt.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ IRToCK3_game_start_onaction_effects = {
389389
irtock3_setup_roman_prefectures_game_start = { REGION = serica_septentrionalis }
390390
# Serica Deserti
391391
irtock3_setup_roman_prefectures_game_start = { REGION = serica_deserti }
392-
}
393392
{% endunless %}
393+
}
394394

395395
## If anyone holds the Rome hegemony titles at game start, they should have the Augustus trait and naming flag, and their vassals should get flags so their titles are properly named as well
396396
if = {

ImperatorToCK3/Data_Files/configurables/cultural_pillars/IRToCK3_language.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,6 @@ language_ligustic = {
821821
limit = { has_cultural_pillar = language_ligustic }
822822
multiply = same_language_choice_factor
823823
}
824-
else_if = {
825-
limit = { has_cultural_parameter = language_group_italic }
826-
multiply = same_language_group_choice_factor
827-
}
828824
else_if = {
829825
limit = { has_cultural_parameter = language_branch_italic }
830826
multiply = same_language_branch_choice_factor

ImperatorToCK3/Data_Files/configurables/removable_file_blocks_wtwsms.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,34 @@ BP_set_minorities_universal = {
792792
}
793793
add_small_faith_to_county_effect = { FAITH = faith:rabbinism }
794794
}
795+
#Romaniote Jews
796+
every_county = {
797+
limit = {
798+
OR = {
799+
#Greece
800+
this = title:c_byzantion
801+
this = title:c_euboea #Chalkis; oldes presence in Europe (possibly)
802+
this = title:c_attica
803+
this = title:c_thessalonika
804+
#Asia Minor
805+
this = title:c_pacatiana #Jewish presence since Seleucid time, likely contributed to Hypsisterians
806+
this = title:c_aeolis
807+
this = title:c_ionia
808+
this = title:c_cilicia #Tarsus
809+
#Oriens & Egypt (sans Hebrew territories)
810+
this.duchy = title:d_cyprus #Long term Jewish presence in Cyprus, although significantly reduced after the AD 116 revolt and poorly attested AD II-IV century [1]
811+
this = title:c_antiocheia
812+
#Italy and Africa; most Jews here were Greek speaking
813+
this = title:c_roma
814+
this = title:c_reggio_calabria #Mentioned in an edit by Honorius in 398
815+
this = title:c_apulia #Jewish Catacombs in Venusia (Encylopedia Britannica)
816+
this = title:c_benevento #Vth Century (Jewish Virtual Library)
817+
#North Africa
818+
this = title:c_tunis #Carthage
819+
}
820+
}
821+
add_small_culture_to_county_effect = { CULTURE = culture:romaniote }
822+
}
795823
every_county = {
796824
limit = {
797825
OR = {

ImperatorToCK3/Data_Files/configurables/replaceable_file_blocks.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,11 @@
3232
replace = {
3333
before = {
3434
title:b_salamanca.title_province = { add_special_building_slot = generic_university }
35-
}
35+
} # end of before
3636

3737
after = {
38-
title:b_salamanca.title_province = {
39-
if = {
40-
limit = {
41-
has_special_building_slot = no
42-
}
43-
add_special_building_slot = generic_university
44-
}
45-
}
46-
}
38+
title:b_salamanca.title_province = { if = { limit = { has_special_building_slot = no } add_special_building_slot = generic_university }
39+
} # end of after
4740
}
4841

4942
# Base game sets "landlocked nomad cultures" based off their specific culture setup, but that could change based off what happens in Imperator, so it needs to be modified to account for this

ImperatorToCK3/Data_Files/configurables/replaceable_file_blocks_wtwsms.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@
2525
# ASIDE FROM THE CURLY BRACKETS SURROUNDING THE BLOCK, IT MUST MATCH THE ORIGINAL FILE.
2626
# OTHERWISE THE BLOCKS WON'T BE MODIFIED!
2727

28+
"common/defines/00_defines_BP_overwrite.txt" = {
29+
# Add the converter's eremitic_government to the government types.
30+
replace = {
31+
before = {
32+
"rajamandala_government" #REMOVE ME!!!!
33+
} # end of before
34+
after = {
35+
"rajamandala_government", #REMOVE ME!!!!
36+
"eremitic_government"
37+
} # end of after
38+
}
39+
}

ImperatorToCK3/Outputter/CulturesOutputter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ private static void AddHeritageGroupParamsToErrorSuppression(OrderedSet<string>
516516
foreach (var param in heritageGroupParameters) {
517517
newContent.AppendLine(
518518
$$"""
519-
if = { limit = { var:temp = flag:{{param}} set_variable = { name = temp value = flag:{{param}} } }
519+
if = { limit = { var:temp = flag:{{param}} } set_variable = { name = temp value = flag:{{param}} } }
520520
""");
521521
}
522522
}
@@ -525,7 +525,7 @@ private static void AddHeritageFamilyParamsToErrorSuppression(OrderedSet<string>
525525
foreach (var param in heritageFamilyParameters) {
526526
newContent.AppendLine(
527527
$$"""
528-
if = { limit = { var:temp = flag:{{param}} set_variable = { name = temp value = flag:{{param}} } }
528+
if = { limit = { var:temp = flag:{{param}} } set_variable = { name = temp value = flag:{{param}} } }
529529
""");
530530
}
531531
}

0 commit comments

Comments
 (0)