Skip to content

Commit 6601e39

Browse files
committed
More Decision Revamp
1 parent 31af7f5 commit 6601e39

6 files changed

Lines changed: 157 additions & 132 deletions
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
##### Changed from Vanilla: Extended to Jains in custom localization
2+
initiate_consolamentum_decision = {
3+
picture = {
4+
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
5+
}
6+
decision_group_type = religious
7+
title = {
8+
first_valid = {
9+
triggered_desc = {
10+
trigger = {
11+
religion = religion:christianity_religion
12+
}
13+
desc = initiate_consolamentum_decision
14+
}
15+
triggered_desc = {
16+
trigger = {
17+
religion = religion:jainism_religion
18+
}
19+
desc = initiate_consolamentum_decision_sallekhana
20+
}
21+
desc = initiate_consolamentum_decision_alternate
22+
}
23+
}
24+
desc = {
25+
first_valid = {
26+
triggered_desc = {
27+
trigger = {
28+
religion = religion:christianity_religion
29+
}
30+
desc = initiate_consolamentum_decision_desc
31+
}
32+
triggered_desc = {
33+
trigger = {
34+
religion = religion:jainism_religion
35+
}
36+
desc = initiate_consolamentum_decision_desc_sallekhana
37+
}
38+
desc = initiate_consolamentum_decision_desc_alternate
39+
}
40+
}
41+
42+
selection_tooltip = initiate_consolamentum_decision_tooltip
43+
44+
is_shown = {
45+
OR = {
46+
rite = {
47+
rite_has_parameter = consolamentum_active
48+
}
49+
has_personal_tenet_flag = consolamentum_active
50+
}
51+
}
52+
53+
is_valid = {
54+
OR = {
55+
age >= ritual_suicide_age
56+
custom_description = {
57+
text = decision_consolamentum_health
58+
health <= 1
59+
}
60+
has_trait = incapable
61+
}
62+
}
63+
64+
effect = {
65+
hidden_effect = {
66+
add_piety_level = 1
67+
}
68+
if = {
69+
limit = {
70+
rite ?= { rite_has_parameter = tenet_sacrificial_ceremonies_blessed_passing }
71+
exists = primary_heir
72+
}
73+
primary_heir = {
74+
add_piety = medium_piety_gain
75+
}
76+
}
77+
if = {
78+
limit = {
79+
has_personal_tenet_flag = tenet_sacrificial_ceremonies_blessed_passing_personal
80+
exists = primary_heir
81+
}
82+
primary_heir = {
83+
add_piety = monumental_piety_gain
84+
add_character_modifier = {
85+
modifier = pam_blessed_passing_modifier
86+
years = 10
87+
}
88+
}
89+
}
90+
death = { death_reason = death_ritual_suicide }
91+
show_as_tooltip = {
92+
add_piety_level = 1
93+
}
94+
}
95+
96+
ai_check_interval_by_tier = {
97+
barony = 0
98+
county = 60
99+
duchy = 60
100+
kingdom = 60
101+
empire = 60
102+
hegemony = 60
103+
}
104+
105+
ai_potential = {
106+
primary_heir ?= {
107+
dynasty = root.dynasty
108+
}
109+
is_at_war = no
110+
}
111+
112+
ai_will_do = {
113+
base = 0
114+
115+
# 100% chance at 50 zeal
116+
ai_value_modifier = {
117+
ai_zeal = 2
118+
}
119+
120+
modifier = {
121+
add = 40
122+
is_close_family_of = primary_heir
123+
}
124+
}
125+
}

‎WtWSMS/common/decisions/BP_religious_decisions_major.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ legalize_caucasian_christianity = {
2626
has_religion = religion:zoroastrianism_religion
2727
NOT = { has_global_variable = persia_legalizes_caucasian_christianity }
2828
NAND = {
29-
faith:armenian_apostolic = { has_doctrine = special_doctrine_legalized_faith_persia }
30-
faith:georgian_orthodox = { has_doctrine = special_doctrine_legalized_faith_persia }
31-
faith:albanian_apostolic = { has_doctrine = special_doctrine_legalized_faith_persia }
29+
rite:armenian_apostolic = { has_doctrine = special_doctrine_legalized_faith_persia }
30+
rite:georgian_rite = { has_doctrine = special_doctrine_legalized_faith_persia }
31+
rite:albanian_apostolic = { has_doctrine = special_doctrine_legalized_faith_persia }
3232
}
3333
}
3434

‎WtWSMS/common/decisions/BP_roman_decisions.txt‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ ask_for_hre = {
2727
NOT = { exists = title:e_wre.holder }
2828
NOT = { exists = title:e_hre.holder }
2929
#Have to be in communion with the Pope to do this
30-
faith = {
31-
OR = {
32-
this = faith:nicene
33-
this.religious_head = faith:nicene.religious_head
34-
}
35-
}
30+
faith = faith:christian_faith
3631
age >= 16
3732
primary_title.tier = tier_empire
3833
#Only Non-Romans would dare broach this subject this way
@@ -101,7 +96,7 @@ ask_for_hre = {
10196
}
10297
custom_tooltip = {
10398
text = you_ask_the_pope_for_the_empire
104-
faith:nicene.religious_head = { trigger_event = { id = BP_roman_decisions.0001 days = { 5 17 } } }
99+
faith:christian_faith.religious_head = { trigger_event = { id = BP_roman_decisions.0001 days = { 5 17 } } }
105100
}
106101
}
107102

‎WtWSMS/common/decisions/BP_senate_decisions.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ demand_land_for_family_west = {
5555
limit = { this = { has_holding_type = church_holding } }
5656
AND = {
5757
this = { has_holding_type = church_holding }
58-
this.barony.holder.faith = { has_doctrine = doctrine_theocracy_lay_clergy }
59-
root.faith = { has_doctrine = doctrine_theocracy_lay_clergy }
58+
this.barony.holder.rite = { has_doctrine = doctrine_theocracy_lay_clergy }
59+
root.rite = { has_doctrine = doctrine_theocracy_lay_clergy }
6060
}
6161
}
6262
has_holding_type = castle_holding
@@ -169,8 +169,8 @@ demand_land_for_family_east = {
169169
limit = { this = { has_holding_type = church_holding } }
170170
AND = {
171171
this = { has_holding_type = church_holding }
172-
this.barony.holder.faith = { has_doctrine = doctrine_theocracy_lay_clergy }
173-
root.faith = { has_doctrine = doctrine_theocracy_lay_clergy }
172+
this.barony.holder.rite = { has_doctrine = doctrine_theocracy_lay_clergy }
173+
root.rite = { has_doctrine = doctrine_theocracy_lay_clergy }
174174
}
175175
}
176176
has_holding_type = castle_holding

‎WtWSMS/common/decisions/dharma_minor_decisions.txt‎

Lines changed: 1 addition & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ buddhist_retreat_decision = {# Go on a Buddhist Retreat
139139

140140
is_valid_showing_failures_only = {
141141
is_available_adult = yes
142+
is_at_war = no
142143
}
143144

144145
effect = {
@@ -158,100 +159,4 @@ buddhist_retreat_decision = {# Go on a Buddhist Retreat
158159
ai_will_do = {
159160
base = 100
160161
}
161-
}
162-
#######################################
163-
# Jain Decisions
164-
#######################################
165-
initiate_consolamentum_decision = {# Commite Selkhana decision
166-
picture = {
167-
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
168-
}
169-
170-
title = {
171-
first_valid = {
172-
triggered_desc = {
173-
trigger = {
174-
religion = religion:christianity_religion
175-
}
176-
desc = initiate_consolamentum_decision
177-
}
178-
triggered_desc = {
179-
trigger = {
180-
religion = religion:jainism_religion
181-
}
182-
desc = initiate_consolamentum_decision_sallekhana
183-
}
184-
desc = initiate_consolamentum_decision_alternate
185-
}
186-
}
187-
desc = {
188-
first_valid = {
189-
triggered_desc = {
190-
trigger = {
191-
religion = religion:christianity_religion
192-
}
193-
desc = initiate_consolamentum_decision_desc
194-
}
195-
triggered_desc = {
196-
trigger = {
197-
religion = religion:jainism_religion
198-
}
199-
desc = initiate_consolamentum_decision_desc_sallekhana
200-
}
201-
desc = initiate_consolamentum_decision_desc_alternate
202-
}
203-
}
204-
205-
selection_tooltip = initiate_consolamentum_decision_tooltip
206-
207-
is_shown = {
208-
faith = {
209-
has_doctrine_parameter = consolamentum_active
210-
}
211-
}
212-
213-
is_valid = {
214-
OR = {
215-
age >= 60
216-
custom_description = {
217-
text = decision_consolamentum_health
218-
health <= 1
219-
}
220-
has_trait = incapable
221-
}
222-
}
223-
224-
effect = {
225-
hidden_effect = {
226-
add_piety_level = 1
227-
}
228-
death = { death_reason = death_suicide }
229-
show_as_tooltip = {
230-
add_piety_level = 1
231-
}
232-
}
233-
234-
ai_check_interval = 60
235-
236-
ai_potential = {
237-
exists = primary_heir
238-
primary_heir = {
239-
dynasty = root.dynasty
240-
}
241-
is_at_war = no
242-
}
243-
244-
ai_will_do = {
245-
base = 0
246-
247-
# 100% chance at 50 zeal
248-
ai_value_modifier = {
249-
ai_zeal = 2
250-
}
251-
252-
modifier = {
253-
add = 40
254-
is_close_family_of = primary_heir
255-
}
256-
}
257162
}

0 commit comments

Comments
 (0)