Diff to HTML by rtfpessoa

Files changed (2) hide show
  1. common/estate_crown_land/00_bonuses.txt +31 -8
  2. common/estate_crown_land/00_interactions.txt +246 -127
common/estate_crown_land/00_bonuses.txt CHANGED
@@ -67,41 +67,64 @@ bonus = {
67
67
  range_to = 60.0
68
68
  modifier = {
69
69
  max_absolutism = 5
70
- global_tax_modifier = 0.05
70
+ reform_progress_growth = 0.2
71
71
  }
72
72
  }
73
73
 
74
74
  bonus = {
75
75
  key = crown_land_level_7
76
76
  range_from = 60.0
77
- range_to = 75.0
77
+ range_to = 70.0
78
78
  modifier = {
79
79
  max_absolutism = 10
80
- yearly_absolutism = 1
81
- global_tax_modifier = 0.1
80
+ reform_progress_growth = 0.4
82
81
  }
83
82
  }
84
83
 
85
84
  bonus = {
86
85
  key = crown_land_level_8
87
- range_from = 75.0
88
- range_to = 100.0
86
+ range_from = 70.0
87
+ range_to = 80.0
89
88
  modifier = {
90
89
  max_absolutism = 15
91
90
  yearly_absolutism = 1
92
- global_tax_modifier = 0.15
91
+ reform_progress_growth = 0.6
93
92
  global_autonomy = -0.01
94
93
  }
95
94
  }
96
95
 
96
+ bonus = {
97
+ key = crown_land_level_8_1
98
+ range_from = 80.0
99
+ range_to = 90.0
100
+ modifier = {
101
+ max_absolutism = 15
102
+ yearly_absolutism = 1
103
+ reform_progress_growth = 0.7
104
+ global_autonomy = -0.02
105
+ }
106
+ }
107
+
97
108
  bonus = {
98
109
  key = crown_land_level_9
110
+ range_from = 90.0
111
+ range_to = 100.0
112
+ modifier = {
113
+ max_absolutism = 15
114
+ yearly_absolutism = 1
115
+ reform_progress_growth = 0.8
116
+ global_autonomy = -0.025
117
+ }
118
+ }
119
+
120
+ bonus = {
121
+ key = crown_land_level_10
99
122
  range_from = 100.0
100
123
  range_to = 9001.0
101
124
  modifier = {
102
125
  max_absolutism = 15
103
126
  yearly_absolutism = 1
104
- global_tax_modifier = 0.2
127
+ reform_progress_growth = 1
105
128
  global_autonomy = -0.05
106
129
  }
107
130
  }
common/estate_crown_land/00_interactions.txt CHANGED
@@ -4,35 +4,61 @@ interaction = {
4
4
  cooldown_months = 60
5
5
 
6
6
  trigger = {
7
- crown_land_share = 0.1
7
+ crown_land_share = 10
8
8
  NOT = { num_of_rebel_armies = 1 }
9
9
  NOT = { num_of_rebel_controlled_provinces = 1 }
10
10
  hidden_trigger = { has_any_estates = yes }
11
11
  }
12
12
  effect = {
13
- if = {
14
- limit = { current_age = age_of_discovery }
15
- add_years_of_estate_land_income = 2.5
16
- }
17
- else_if = {
18
- limit = { current_age = age_of_reformation }
19
- add_years_of_estate_land_income = 2.0
20
- }
21
- else_if = {
22
- limit = { current_age = age_of_absolutism }
23
- add_years_of_estate_land_income = 1.5
24
- }
25
- else_if = {
26
- limit = { current_age = age_of_revolutions }
27
- add_years_of_estate_land_income = 1.0
28
- }
29
- custom_tooltip = ESTATES_SALE_OF_TITLES_DESC
30
- give_estate_land_share_gigantic = { estate = all }
31
- add_estate_loyalty = {
32
- estate = all
33
- loyalty = 10
34
- short = yes
35
- }
13
+ if = {
14
+ limit = {
15
+ NOT = { has_government_attribute = no_crownland_money_loss_to_age }
16
+ NOT = { has_country_flag = enable_full_ducat_gain_from_selling_crownland_flag }
17
+ }
18
+ if = {
19
+ limit = { current_age = age_of_discovery }
20
+ add_years_of_estate_land_income = 2.5
21
+ }
22
+ else_if = {
23
+ limit = { current_age = age_of_reformation }
24
+ add_years_of_estate_land_income = 2.0
25
+ }
26
+ else_if = {
27
+ limit = { current_age = age_of_absolutism }
28
+ add_years_of_estate_land_income = 1.5
29
+ }
30
+ else_if = {
31
+ limit = { current_age = age_of_revolutions }
32
+ add_years_of_estate_land_income = 1.0
33
+ }
34
+ }
35
+ else = {
36
+ add_years_of_estate_land_income = 2.5
37
+ }
38
+ if = {
39
+ limit = {
40
+ NOT = { has_government_attribute = can_sell_crownland_to_single_estates }
41
+ NOT = { has_country_flag = can_sell_crownland_to_estates_targeted_flag }
42
+ }
43
+ custom_tooltip = ESTATES_SALE_OF_TITLES_DESC
44
+ give_estate_land_share_gigantic = { estate = all }
45
+ add_estate_loyalty = {
46
+ estate = all
47
+ loyalty = 10
48
+ short = yes
49
+ }
50
+ if = {
51
+ limit = {
52
+ has_government_attribute = selling_titles_increases_pa
53
+ }
54
+ add_patriarch_authority = 0.05
55
+ }
56
+ }
57
+ else = {
58
+ country_event = {
59
+ id = estate_privileges_and_agendas_events.6
60
+ }
61
+ }
36
62
  if = {
37
63
  limit = {
38
64
  has_country_flag = recent_land_distribution
@@ -40,6 +66,7 @@ interaction = {
40
66
  clr_country_flag = recent_land_distribution
41
67
  }
42
68
  set_country_flag = recent_land_distribution
69
+ on_sale_of_titles_effect = yes
43
70
  }
44
71
  ai_will_do = {
45
72
  factor = 25
@@ -157,7 +184,16 @@ interaction = {
157
184
  effect = {
158
185
  custom_tooltip = ESTATES_SUMMON_THE_DIET_DESC
159
186
  hidden_effect = {
160
- country_event = { id = estate_privileges_and_agendas_events.3 }
187
+ country_event = { id = estate_privileges_and_agendas_events.3 }
188
+ if = {
189
+ limit = {
190
+ ai = yes
191
+ }
192
+ random_list = {
193
+ 1 = {}
194
+ 9 = { set_country_flag = auto_complete_estate_agenda_all }
195
+ }
196
+ }
161
197
  }
162
198
  custom_tooltip = SEPERATOR_TOOLTIP
163
199
 
@@ -169,21 +205,58 @@ interaction = {
169
205
  }
170
206
  set_country_flag = recent_estate_agenda
171
207
 
172
- add_estate_influence_modifier = {
173
- estate = all
174
- desc = EST_VAL_DIET_SUMMONED
175
- duration = 7300
176
- influence = 5
177
- short = yes
178
- }
208
+ if = {
209
+ limit = { NOT = { has_government_attribute = diet_increases_not_influence } }
210
+ add_estate_influence_modifier = {
211
+ estate = all
212
+ desc = EST_VAL_DIET_SUMMONED
213
+ duration = 7300
214
+ influence = 5
215
+ short = yes
216
+ }
217
+ }
179
218
  add_estate_loyalty = {
180
219
  estate = all
181
220
  loyalty = 5
182
221
  short = yes
183
222
  }
223
+ if = {
224
+ limit = {
225
+ has_government_attribute = republican_tradition_from_diets
226
+ }
227
+ add_scaled_republican_tradition = 2
228
+ }
229
+ on_summon_the_diet_effect = yes
184
230
  }
185
231
  ai_will_do = {
186
- factor = 0 # AI won't do agendas
232
+ # Only use if it will bring loyalty above 50 for all estates
233
+ # AI will most likely fail to complete the task
234
+ factor = 10
235
+ modifier = {
236
+ factor = 10
237
+ can_use_crown_land_interaction = seize_land
238
+
239
+ estate_loyalty = {
240
+ estate = all
241
+ loyalty = 45.5
242
+ }
243
+ NOT = {
244
+ estate_loyalty = {
245
+ estate = all
246
+ loyalty = 50
247
+ }
248
+ }
249
+ }
250
+ modifier = {
251
+ factor = 0
252
+ NOT = {
253
+ estate_influence = {
254
+ estate = all
255
+ less_than = yes
256
+ influence = 90
257
+ }
258
+ }
259
+ }
187
260
  }
188
261
  }
189
262
 
@@ -248,11 +321,12 @@ interaction = {
248
321
  NOT = { has_estate_privilege = estate_church_statutory_rights }
249
322
  }
250
323
  is_at_war = no
324
+ if = {
325
+ limit = { has_government_attribute = can_not_seize_land }
326
+ NOT = { has_government_attribute_short_desc = can_not_seize_land }
327
+ }
251
328
  }
252
329
  effect = {
253
- custom_tooltip = ESTATES_SEIZE_LAND_DESC
254
- take_estate_land_share_massive = { estate = all }
255
- custom_tooltip = SEPERATOR_TOOLTIP
256
330
 
257
331
  if = {
258
332
  limit = {
@@ -261,41 +335,143 @@ interaction = {
261
335
  clr_country_flag = recent_land_seizure
262
336
  }
263
337
  set_country_flag = recent_land_seizure
264
-
265
- add_estate_loyalty = {
266
- estate = all
267
- loyalty = -20
268
- short = yes
269
- }
270
- custom_tooltip = seize_land_rebels_tt
271
338
  if = {
272
339
  limit = {
273
- NOT = {
274
- estate_loyalty = {
275
- estate = all
276
- loyalty = 50
277
- }
340
+ NOT = { has_government_attribute = can_seize_crownland_of_single_estates }
341
+ NOT = { has_country_flag = can_seize_crownland_to_estates_targeted_flag }
342
+ }
343
+ custom_tooltip = ESTATES_SEIZE_LAND_DESC
344
+ take_estate_land_share_massive = { estate = all }
345
+ custom_tooltip = SEPERATOR_TOOLTIP
346
+ if = {
347
+ limit = {
348
+ has_government_attribute = seizing_land_loyalty
278
349
  }
279
- estate_loyalty = {
350
+ add_estate_loyalty = {
280
351
  estate = all
281
- loyalty = 30
352
+ loyalty = -15
353
+ short = yes
282
354
  }
283
355
  }
284
- }
285
- else_if = {
286
- limit = {
287
- NOT = {
356
+ else = {
357
+ add_estate_loyalty = {
358
+ estate = all
359
+ loyalty = -20
360
+ short = yes
361
+ }
362
+ }
363
+ custom_tooltip = ESTATES_SEIZE_LAND_EXCEPTION_DESC
364
+ re_add_loyalty_from_seized_land = yes
365
+ if = {
366
+ limit = { NOT = { has_government_attribute = seizing_land_no_rebels } }
367
+ custom_tooltip = seize_land_rebels_tt
368
+ }
369
+ if = {
370
+ limit = {
371
+ NOT = {
372
+ estate_loyalty = {
373
+ estate = all
374
+ loyalty = 50
375
+ }
376
+ }
288
377
  estate_loyalty = {
289
378
  estate = all
290
379
  loyalty = 30
291
380
  }
292
381
  }
293
382
  }
294
- spawn_rebels_seize_land_switch = yes
383
+ else_if = {
384
+ limit = {
385
+ NOT = {
386
+ estate_loyalty = {
387
+ estate = all
388
+ loyalty = 30
389
+ }
390
+ }
391
+ estate_influence = {
392
+ estate = all
393
+ influence = 1
394
+ }
395
+ }
396
+ spawn_rebels_seize_land_switch = yes
397
+ }
398
+ }
399
+ else = {
400
+ country_event = {
401
+ id = estate_privileges_and_agendas_events.7
402
+ }
403
+ }
404
+ if = {
405
+ limit = {
406
+ has_government_attribute = seizing_land_takes_karma
407
+ }
408
+ add_karma = -10
295
409
  }
410
+ if = {
411
+ limit = { has_government_attribute = theocratic_monarchy_mechanic }
412
+ change_statists_vs_orangists = 0.05
413
+ }
414
+ on_seize_land_effect = yes
296
415
  }
297
416
  ai_will_do = {
298
- factor = 25
417
+ factor = 50
418
+ modifier = {
419
+ factor = 0
420
+ # This check is needed to prevent collision with day-1 event theocracy.1
421
+ uses_devotion = yes
422
+ has_heir = no
423
+ }
424
+ modifier = {
425
+ factor = 0
426
+ # This is a hack for countries with enclaves that can be hard to get to, to kill the rebels
427
+ OR = {
428
+ tag = TEU
429
+ tag = KOL
430
+ # Add more as necessary
431
+ }
432
+ NOT = {
433
+ estate_loyalty = {
434
+ estate = all
435
+ loyalty = 50
436
+ }
437
+ }
438
+ }
439
+ modifier = {
440
+ factor = 0.2
441
+ NOT = {
442
+ estate_loyalty = {
443
+ estate = all
444
+ loyalty = 50
445
+ }
446
+ }
447
+ NOT = {
448
+ army_size = 6
449
+ }
450
+ }
451
+ modifier = {
452
+ factor = 0.2
453
+
454
+ # This custom event target is set by code. If ai_will_do is higher when this is set (and >50) than when it isn't,
455
+ # the AI will raise maintenance and wait until the event target doesn't increase the ai_will_do score
456
+ NOT = { has_saved_event_target = ai_suppose_full_maintenance }
457
+
458
+ NOT = {
459
+ estate_loyalty = {
460
+ estate = all
461
+ loyalty = 50
462
+ }
463
+ }
464
+
465
+ OR = {
466
+ NOT = { land_maintenance = 0.9 }
467
+ num_mothballed_forts = 1
468
+ NOT = { all_regiments_morale_percent = 90 }
469
+ any_owned_province = {
470
+ fort_level = 1
471
+ NOT = { garrison = 400 }
472
+ }
473
+ }
474
+ }
299
475
  modifier = {
300
476
  factor = 0
301
477
  crown_land_share = 30
@@ -317,18 +493,24 @@ interaction = {
317
493
  }
318
494
  }
319
495
  modifier = {
320
- factor = 0
496
+ factor = 0.5
321
497
  crown_land_share = 30
498
+ NOT = {
499
+ estate_loyalty = {
500
+ estate = all
501
+ loyalty = 50
502
+ }
503
+ }
322
504
  if = {
323
505
  limit = { num_of_cities = 50 }
324
- NOT = { army_size_percentage = 0.5 }
506
+ NOT = { army_size_percentage = 0.2 }
325
507
  }
326
508
  else_if = {
327
509
  limit = { num_of_cities = 25 }
328
- NOT = { army_size_percentage = 0.75 }
510
+ NOT = { army_size_percentage = 0.3 }
329
511
  }
330
512
  else = {
331
- NOT = { army_size_percentage = 0.9 }
513
+ NOT = { army_size_percentage = 0.5 }
332
514
  }
333
515
  if = {
334
516
  limit = { is_emperor = yes }
@@ -435,75 +617,12 @@ interaction = {
435
617
  average_unrest = 3
436
618
  }
437
619
  modifier = {
438
- factor = 0.5
439
- has_country_flag = recent_land_seizure
440
- NOT = {
441
- had_country_flag = {
442
- flag = recent_land_seizure
443
- days = 5475
444
- }
445
- }
446
- }
447
- modifier = {
448
- factor = 0.75
449
- has_country_flag = recent_land_seizure
450
- NOT = {
451
- had_country_flag = {
452
- flag = recent_land_seizure
453
- days = 10950
454
- }
455
- }
456
- }
457
- modifier = {
458
- factor = 0.5
459
- has_country_flag = recent_land_distribution
460
- NOT = {
461
- had_country_flag = {
462
- flag = recent_land_distribution
463
- days = 5475
464
- }
465
- }
466
- }
467
- modifier = {
468
- factor = 0.5
469
- NOT = {
470
- estate_loyalty = {
471
- estate = all
472
- loyalty = 50
473
- }
474
- }
475
- }
476
- modifier = {
477
- factor = 0.5
478
- NOT = {
479
- estate_loyalty = {
480
- estate = all
481
- loyalty = 40
482
- }
483
- }
484
- }
485
- modifier = {
486
- factor = 0.5
487
- NOT = {
488
- estate_loyalty = {
489
- estate = all
490
- loyalty = 35 # Estate is almost disloyal
491
- }
492
- }
493
- }
494
- modifier = {
495
- factor = 0
496
- NOT = {
497
- estate_loyalty = {
498
- estate = all
499
- loyalty = 30 # Estate is basically disloyal
500
- }
620
+ factor = 1.2
621
+ estate_loyalty = {
622
+ estate = all
623
+ loyalty = 50
501
624
  }
502
625
  }
503
- modifier = {
504
- factor = 0.75
505
- NOT = { num_of_owned_areas = 2 }
506
- }
507
626
  modifier = {
508
627
  factor = 10
509
628
  OR = {