Skip to content

Commit 0fb4df7

Browse files
authored
Merge pull request #212 from ck2plus/bugfixing
Bugfixing
2 parents 18b3090 + 7a8dafa commit 0fb4df7

77 files changed

Lines changed: 3095 additions & 2188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CK2Plus/common/cb_types/99_CK2Plus_cb_types.txt

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,26 +195,27 @@ holy_war = {
195195
}
196196
}
197197

198-
# Starting scope is attacker
199198
# ROOT is attacker
200199
# FROM is defender
201200
on_success = {
202-
religion_authority = {
203-
modifier = won_holy_war
204-
years = 20
205-
}
206-
hidden_effect = {
207-
if = {
208-
limit = {
209-
has_nickname = no
210-
religion_group = pagan_group
211-
}
212-
random_list = {
213-
10 = { give_nickname = nick_the_dragon }
214-
10 = { give_nickname = nick_the_holy }
215-
10 = { give_nickname = nick_bloodaxe }
216-
10 = { give_nickname = nick_the_great }
217-
40 = { give_nickname = nick_the_sword_of_god }
201+
attacker = {
202+
religion_authority = {
203+
modifier = won_holy_war
204+
years = 20
205+
}
206+
hidden_effect = {
207+
if = {
208+
limit = {
209+
has_nickname = no
210+
religion_group = pagan_group
211+
}
212+
random_list = {
213+
10 = { give_nickname = nick_the_dragon }
214+
10 = { give_nickname = nick_the_holy }
215+
10 = { give_nickname = nick_bloodaxe }
216+
10 = { give_nickname = nick_the_great }
217+
40 = { give_nickname = nick_the_sword_of_god }
218+
}
218219
}
219220
}
220221
}
@@ -2423,13 +2424,15 @@ restore_byzantium = {
24232424
c_constantinopolis = { holder_scope = { same_realm = ROOT } }
24242425
}
24252426
e_byzantium = {
2427+
set_title_flag = non_manual_law_change # No prestige loss
24262428
revoke_law = investiture_law_0
24272429
revoke_law = investiture_law_1
24282430
add_law = crown_authority_1
24292431
add_law = council_privileges_0
24302432
add_law = succ_primogeniture
24312433
add_law = cognatic_succession
24322434
gain_title = ROOT
2435+
clr_title_flag = non_manual_law_change # No prestige loss
24332436
}
24342437
}
24352438
}
@@ -8475,6 +8478,7 @@ cb_faction_overthrow_ruler = {
84758478
limit = { ROOT = { has_character_flag = demands_feudal_elective } }
84768479
random_demesne_title = {
84778480
limit = { has_title_flag = change_feudal_elective }
8481+
set_title_flag = non_manual_law_change # No prestige loss
84788482
if = {
84798483
limit = {
84808484
OR = {
@@ -8497,6 +8501,7 @@ cb_faction_overthrow_ruler = {
84978501
add_law_w_cooldown = succ_feudal_elective
84988502
}
84998503
clr_title_flag = change_feudal_elective
8504+
clr_title_flag = non_manual_law_change # No prestige loss
85008505
}
85018506
recalc_succession = yes
85028507
}

CK2Plus/common/cb_types/adventurer_cbs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ kingdom_adventure = {
433433

434434
any_demesne_title = {
435435
limit = { higher_real_tier_than = COUNT }
436+
set_title_flag = non_manual_law_change # No prestige loss
436437
add_law = succ_primogeniture
438+
clr_title_flag = non_manual_law_change # No prestige loss
437439
}
438440
}
439441

CK2Plus/common/cb_types/china_cbs.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,15 @@ offmap_submission = {
338338
}
339339
}
340340

341+
set_title_flag = non_manual_law_change # No prestige loss
342+
341343
add_law = {
342344
law = succ_primogeniture
343345
cooldown = no
344346
opinion_effect = no
345347
}
348+
349+
clr_title_flag = non_manual_law_change # No prestige loss
346350
}
347351

348352
set_government_type = chinese_imperial_government
@@ -400,11 +404,15 @@ offmap_submission = {
400404
type = invasion
401405
}
402406

407+
set_title_flag = non_manual_law_change # No prestige loss
408+
403409
add_law = {
404410
law = succ_primogeniture
405411
cooldown = no
406412
opinion_effect = no
407413
}
414+
415+
clr_title_flag = non_manual_law_change # No prestige loss
408416
}
409417
}
410418
}

CK2Plus/common/cb_types/christian_cbs.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ shepherds_crusade_invasion = {
652652
}
653653

654654
primary_title = {
655+
set_title_flag = non_manual_law_change # No prestige loss
656+
655657
add_law = {
656658
law = succ_primogeniture
657659
cooldown = no
@@ -692,6 +694,8 @@ shepherds_crusade_invasion = {
692694
opinion_effect = no
693695
}
694696
}
697+
698+
clr_title_flag = non_manual_law_change # No prestige loss
695699
}
696700

697701
character_event = { id = HFP.41090 days = 1 } # Refill the levy, and remove the negative modifiers
@@ -1352,8 +1356,11 @@ childrens_crusade = {
13521356

13531357
grant_title = attacker
13541358
hidden_effect = { make_primary_title = yes }
1359+
1360+
set_title_flag = non_manual_law_change # No prestige loss
13551361
add_law = succ_primogeniture
13561362
add_law = cognatic_succession
1363+
clr_title_flag = non_manual_law_change # No prestige loss
13571364
}
13581365

13591366
else_if = {

CK2Plus/common/cb_types/claim_cbs.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,8 @@ claim_on_liege = {
937937
any_demesne_title = {
938938
limit = { is_crown_law_title = yes }
939939

940+
set_title_flag = non_manual_law_change # No prestige loss
941+
940942
trigger_switch = {
941943
on_trigger = has_law
942944

@@ -945,6 +947,8 @@ claim_on_liege = {
945947
crown_authority_3 = { add_law = crown_authority_2 }
946948
crown_authority_4 = { add_law = crown_authority_3 }
947949
}
950+
951+
clr_title_flag = non_manual_law_change # No prestige loss
948952
}
949953
}
950954
}
@@ -1201,6 +1205,8 @@ claim_on_liege_plot = {
12011205
any_demesne_title = {
12021206
limit = { is_crown_law_title = yes }
12031207

1208+
set_title_flag = non_manual_law_change # No prestige loss
1209+
12041210
trigger_switch = {
12051211
on_trigger = has_law
12061212

@@ -1209,6 +1215,8 @@ claim_on_liege_plot = {
12091215
crown_authority_3 = { add_law = crown_authority_2 }
12101216
crown_authority_4 = { add_law = crown_authority_3 }
12111217
}
1218+
1219+
clr_title_flag = non_manual_law_change # No prestige loss
12121220
}
12131221

12141222
# CK2Plus
@@ -2722,6 +2730,8 @@ other_claim_on_liege = {
27222730
any_demesne_title = {
27232731
limit = { is_crown_law_title = yes }
27242732

2733+
set_title_flag = non_manual_law_change # No prestige loss
2734+
27252735
trigger_switch = {
27262736
on_trigger = has_law
27272737

@@ -2730,6 +2740,8 @@ other_claim_on_liege = {
27302740
crown_authority_3 = { add_law = crown_authority_2 }
27312741
crown_authority_4 = { add_law = crown_authority_3 }
27322742
}
2743+
2744+
clr_title_flag = non_manual_law_change # No prestige loss
27332745
}
27342746
}
27352747
}

CK2Plus/common/cb_types/faction_cbs.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ change_seniority_succession_law = {
9494
any_demesne_title = { # All titles
9595
limit = { is_crown_law_title = yes }
9696

97+
set_title_flag = non_manual_law_change # No prestige loss
98+
9799
trigger_switch = {
98100
on_trigger = has_law
99101

@@ -102,6 +104,8 @@ change_seniority_succession_law = {
102104
crown_authority_3 = { add_law = crown_authority_2 }
103105
crown_authority_4 = { add_law = crown_authority_3 }
104106
}
107+
108+
clr_title_flag = non_manual_law_change # No prestige loss
105109
}
106110
}
107111
}
@@ -301,6 +305,8 @@ change_primogeniture_succession_law = {
301305
any_demesne_title = { # All titles
302306
limit = { is_crown_law_title = yes }
303307

308+
set_title_flag = non_manual_law_change # No prestige loss
309+
304310
trigger_switch = {
305311
on_trigger = has_law
306312

@@ -309,6 +315,8 @@ change_primogeniture_succession_law = {
309315
crown_authority_3 = { add_law = crown_authority_2 }
310316
crown_authority_4 = { add_law = crown_authority_3 }
311317
}
318+
319+
clr_title_flag = non_manual_law_change # No prestige loss
312320
}
313321
}
314322
}
@@ -506,6 +514,8 @@ change_feudal_elective_succession_law = {
506514
any_demesne_title = { # All titles
507515
limit = { is_crown_law_title = yes }
508516

517+
set_title_flag = non_manual_law_change # No prestige loss
518+
509519
trigger_switch = {
510520
on_trigger = has_law
511521

@@ -514,12 +524,16 @@ change_feudal_elective_succession_law = {
514524
crown_authority_3 = { add_law = crown_authority_2 }
515525
crown_authority_4 = { add_law = crown_authority_3 }
516526
}
527+
528+
clr_title_flag = non_manual_law_change # No prestige loss
517529
}
518530
}
519531
}
520532
}
521533

522534
on_success_title = {
535+
set_title_flag = non_manual_law_change # No prestige loss
536+
523537
if = {
524538
limit = {
525539
OR = {
@@ -532,6 +546,8 @@ change_feudal_elective_succession_law = {
532546
else = {
533547
add_law_w_cooldown = succ_feudal_elective
534548
}
549+
550+
clr_title_flag = non_manual_law_change # No prestige loss
535551
}
536552

537553
on_fail = {
@@ -728,6 +744,8 @@ change_gavelkind_succession_law = {
728744
any_demesne_title = {
729745
limit = { is_crown_law_title = yes }
730746

747+
set_title_flag = non_manual_law_change # No prestige loss
748+
731749
trigger_switch = {
732750
on_trigger = has_law
733751

@@ -736,6 +754,8 @@ change_gavelkind_succession_law = {
736754
crown_authority_3 = { add_law = crown_authority_2 }
737755
crown_authority_4 = { add_law = crown_authority_3 }
738756
}
757+
758+
clr_title_flag = non_manual_law_change # No prestige loss
739759
}
740760
}
741761
}
@@ -949,6 +969,8 @@ lower_crown_authority_law = {
949969
}
950970

951971
on_success_title = {
972+
set_title_flag = non_manual_law_change # No prestige loss
973+
952974
trigger_switch = { # lower crown authority
953975
on_trigger = has_law
954976

@@ -957,6 +979,8 @@ lower_crown_authority_law = {
957979
crown_authority_3 = { add_law_w_cooldown = crown_authority_2 }
958980
crown_authority_4 = { add_law_w_cooldown = crown_authority_3 }
959981
}
982+
983+
clr_title_flag = non_manual_law_change # No prestige loss
960984
}
961985

962986
on_fail = {
@@ -1162,6 +1186,8 @@ lower_tribal_organization_law = {
11621186
}
11631187

11641188
on_success_title = {
1189+
set_title_flag = non_manual_law_change # No prestige loss
1190+
11651191
trigger_switch = { # lower tribal organization
11661192
on_trigger = has_law
11671193

@@ -1170,6 +1196,8 @@ lower_tribal_organization_law = {
11701196
tribal_organization_3 = { add_law_w_cooldown = tribal_organization_2 }
11711197
tribal_organization_4 = { add_law_w_cooldown = tribal_organization_3 }
11721198
}
1199+
1200+
clr_title_flag = non_manual_law_change # No prestige loss
11731201
}
11741202

11751203
on_fail = {
@@ -2058,10 +2086,14 @@ cb_install_antiking = {
20582086
}
20592087

20602088
primary_title = {
2089+
set_title_flag = non_manual_law_change # No prestige loss
2090+
20612091
if = {
20622092
limit = { has_law = investiture_law_1 }
20632093
add_law_w_cooldown = investiture_law_0
20642094
}
2095+
2096+
clr_title_flag = non_manual_law_change # No prestige loss
20652097
}
20662098
}
20672099

@@ -2200,6 +2232,8 @@ powerful_vassal_takeover_war = {
22002232
}
22012233

22022234
on_success_title = {
2235+
set_title_flag = non_manual_law_change # No prestige loss
2236+
22032237
if = {
22042238
limit = { has_law = law_voting_power_0 }
22052239
add_law_w_cooldown = law_voting_power_1
@@ -2243,6 +2277,8 @@ powerful_vassal_takeover_war = {
22432277
}
22442278
}
22452279

2280+
clr_title_flag = non_manual_law_change # No prestige loss
2281+
22462282
holder_scope = {
22472283
show_scope_change = no
22482284

CK2Plus/common/cb_types/muslim_cbs.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,10 @@ decadence_invasion = {
11441144

11451145
any_demesne_title = {
11461146
limit = { is_crown_law_title = yes }
1147+
1148+
set_title_flag = non_manual_law_change # No prestige loss
11471149
add_law = crown_authority_0
1150+
clr_title_flag = non_manual_law_change # No prestige loss
11481151
}
11491152
}
11501153

0 commit comments

Comments
 (0)