Skip to content

Commit 5d5c7e7

Browse files
authored
CK3 1.19.0.5 Patch (#3139) #minor
1 parent 1a3999f commit 5d5c7e7

2 files changed

Lines changed: 47 additions & 102 deletions

File tree

ImperatorToCK3/Data_Files/configurables/removable_file_blocks.txt

Lines changed: 47 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,13 +1405,8 @@
14051405
limit = { has_tgp_dlc_trigger = yes }
14061406
### DYNASTIES
14071407
tgp_dynasty_house_name_setup_effect = yes
1408-
### BLOCS — AuH defers to after noble_family_title_realm_setup (see TGP SETUP); else house heads lack NF titles and create_confederation asserts.
1409-
if = {
1410-
limit = {
1411-
NOT = { has_dlc_feature = all_under_heaven }
1412-
}
1413-
tgp_setup_historical_house_bloc_effect = yes
1414-
}
1408+
### BLOCS
1409+
tgp_setup_historical_house_bloc_effect = yes
14151410
}
14161411
}
14171412

@@ -3686,38 +3681,6 @@
36863681
}
36873682
}
36883683

3689-
# Government setup surrounding Japan already handled by converter's government setup effect
3690-
{
3691-
# History defaults e_japan to feudal + single heir so partial DLC / no AuH bookmarks load cleanly.
3692-
# Restore Ritsuryō Kampaku when All Under Heaven is active (must run before noble-family / bureaucracy setup).
3693-
if = {
3694-
limit = { has_dlc_feature = all_under_heaven }
3695-
title:e_japan.holder ?= {
3696-
# can_get_government for japan_administrative checks top_liege for japanese government OR this flag; independent Kampaku is neither until flagged.
3697-
if = {
3698-
limit = {
3699-
NOT = { government_has_flag = government_is_japan_administrative }
3700-
OR = {
3701-
has_government = feudal_government
3702-
has_government = japan_feudal_government
3703-
}
3704-
}
3705-
add_character_flag = tgp_japan_restore_japanese_government_flag
3706-
change_government = japan_administrative_government
3707-
remove_character_flag = tgp_japan_restore_japanese_government_flag
3708-
}
3709-
# Separate if (not else_if): first block can flip government same pass; law must still run for that case and for history Ritsuryō holders missing the law.
3710-
if = {
3711-
limit = {
3712-
government_has_flag = government_is_japan_administrative
3713-
NOT = { has_realm_law = japanese_regency_succession_law }
3714-
}
3715-
add_realm_law_skip_effects = japanese_regency_succession_law
3716-
}
3717-
}
3718-
}
3719-
}
3720-
37213684
{
37223685
### DYNASTY TRACKING SETUP
37233686
japan_dynasty_tracker_setup_effect = yes
@@ -3745,16 +3708,6 @@
37453708
}
37463709
}
37473710

3748-
{
3749-
if = {
3750-
limit = {
3751-
has_dlc_feature = all_under_heaven
3752-
exists = title:e_japan.holder
3753-
}
3754-
tgp_setup_historical_house_bloc_effect = yes
3755-
}
3756-
}
3757-
37583711
{
37593712
#Starting Mandala Temple Complexes
37603713
#Dvaravati
@@ -15684,9 +15637,11 @@ cid.1040 = {
1568415637
option = {
1568515638
name = cid.1040.b
1568615639
custom_tooltip = cid_loyalty_counter_positive
15687-
change_variable = {
15688-
name = cid_loyalty_counter
15689-
add = 1
15640+
scope:story = {
15641+
change_variable = {
15642+
name = cid_loyalty_counter
15643+
add = 1
15644+
}
1569015645
}
1569115646
ai_chance = {
1569215647
base = 1000 # Historically determined
@@ -15701,9 +15656,11 @@ cid.1040 = {
1570115656
modifier = cid_own_prayer
1570215657
years = 15
1570315658
}
15704-
change_variable = {
15705-
name = cid_loyalty_counter
15706-
add = -1
15659+
scope:story = {
15660+
change_variable = {
15661+
name = cid_loyalty_counter
15662+
add = -1
15663+
}
1570715664
}
1570815665
ai_chance = {
1570915666
base = 0
@@ -15811,9 +15768,11 @@ cid.2000 = {
1581115768
flavor = cid.2000.a.flavor
1581215769
custom_tooltip = cid_loyalty_counter_negative
1581315770
custom_tooltip = cid.2001.a.tt
15814-
change_variable = {
15815-
name = cid_loyalty_counter
15816-
add = -1
15771+
scope:story = {
15772+
change_variable = {
15773+
name = cid_loyalty_counter
15774+
add = -1
15775+
}
1581715776
}
1581815777
add_gold = medium_gold_value
1581915778

@@ -15847,9 +15806,11 @@ cid.2000 = {
1584715806
name = cid.2000.b
1584815807
flavor = cid.2000.b.flavor
1584915808
custom_tooltip = cid_loyalty_counter_positive
15850-
change_variable = {
15851-
name = cid_loyalty_counter
15852-
add = 1
15809+
scope:story = {
15810+
change_variable = {
15811+
name = cid_loyalty_counter
15812+
add = 1
15813+
}
1585315814
}
1585415815
scope:liege = {
1585515816
add_treasury_or_gold = medium_treasury_or_gold_value
@@ -15959,9 +15920,11 @@ cid.2001 = {
1595915920
flavor = cid.2001.a.flavor
1596015921
custom_tooltip = cid_loyalty_counter_negative
1596115922
custom_tooltip = cid.2001.a.tt
15962-
change_variable = {
15963-
name = cid_loyalty_counter
15964-
add = -1
15923+
scope:story = {
15924+
change_variable = {
15925+
name = cid_loyalty_counter
15926+
add = -1
15927+
}
1596515928
}
1596615929
add_gold = medium_gold_value
1596715930

@@ -15993,9 +15956,11 @@ cid.2001 = {
1599315956
option = {
1599415957
name = cid.2001.b
1599515958
custom_tooltip = cid_loyalty_counter_positive
15996-
change_variable = {
15997-
name = cid_loyalty_counter
15998-
add = 1
15959+
scope:story = {
15960+
change_variable = {
15961+
name = cid_loyalty_counter
15962+
add = 1
15963+
}
1599915964
}
1600015965
scope:liege = {
1600115966
add_treasury_or_gold = medium_treasury_or_gold_value
@@ -16226,9 +16191,11 @@ cid.2010 = {
1622616191
flavor = cid.2010.a.flavor
1622716192
custom_tooltip = cid_loyalty_counter_very_positive
1622816193
scope:child = { create_betrothal = scope:proposed_spouse }
16229-
change_variable = {
16230-
name = cid_loyalty_counter
16231-
add = 2
16194+
scope:story = {
16195+
change_variable = {
16196+
name = cid_loyalty_counter
16197+
add = 2
16198+
}
1623216199
}
1623316200
ai_chance = {
1623416201
base = 1000 # Historically determined
@@ -16243,9 +16210,11 @@ cid.2010 = {
1624316210
modifier = cid_refused_betrothal
1624416211
years = 10
1624516212
}
16246-
change_variable = {
16247-
name = cid_loyalty_counter
16248-
add = -2
16213+
scope:story = {
16214+
change_variable = {
16215+
name = cid_loyalty_counter
16216+
add = -2
16217+
}
1624916218
}
1625016219
ai_chance = {
1625116220
base = 0 # Historically determined
@@ -16283,10 +16252,10 @@ cid.2020 = {
1628316252
#triggered through the story cycle
1628416253
scope:story.var:cid_liege.primary_title = {
1628516254
any_de_jure_county = {
16286-
holder = root.var:cid_liege
16255+
holder = scope:story.var:cid_liege
1628716256
NOR = {
16288-
root.var:cid_liege.capital_county ?= this
16289-
root.var:cid_liege.primary_title ?= this
16257+
scope:story.var:cid_liege.capital_county ?= this
16258+
scope:story.var:cid_liege.primary_title ?= this
1629016259
}
1629116260
}
1629216261
}
@@ -16334,7 +16303,7 @@ cid.2020 = {
1633416303
cid_2020_loyal_effect = yes
1633516304
# Resolve title, liege, government changes
1633616305
ep3_become_landed_save_liege_effect = {
16337-
TITLE_GIVER = root.var:cid_liege
16306+
TITLE_GIVER = scope:liege
1633816307
ALWAYS_INDEPENDENT = no
1633916308
TITLE_LIST = granted_title
1634016309
}
@@ -17191,6 +17160,7 @@ story_el_cid = {
1719117160
}
1719217161
}
1719317162
effect = {
17163+
save_scope_as = story
1719417164
story_owner = {
1719517165
trigger_event = cid.2020
1719617166
}

ImperatorToCK3/Data_Files/configurables/replaceable_file_blocks.txt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6061,31 +6061,6 @@ japan_imperial_expansion_cb_allowed_for_character_trigger = {
60616061
#########################
60626062
## acclamation_succession_law
60636063
#########################
6064-
# can_title_have block
6065-
## The base game makes it so that only e_byzantium is allowed to have this law as a title law. Changed to allow any Rome title, since the government is more focused on them
6066-
replace = {
6067-
before = {
6068-
can_title_have = {
6069-
this = title:e_byzantium
6070-
}
6071-
}
6072-
6073-
after = {
6074-
can_title_have = {
6075-
# IRToCK3: Base game just references e_byzantium, extended to all relevant Rome titles
6076-
OR = {
6077-
this = title:e_byzantium
6078-
this = title:e_western_roman_empire
6079-
this = title:e_roman_empire
6080-
this = title:k_rome
6081-
this = title:h_roman_empire
6082-
this = title:h_western_roman_empire
6083-
this = title:h_eastern_roman_empire
6084-
}
6085-
}
6086-
}
6087-
}
6088-
60896064
# should_start_with block
60906065
replace = {
60916066
before = {

0 commit comments

Comments
 (0)