Skip to content

Commit 879783e

Browse files
committed
More Faith Fixups
1 parent 0a9ae8b commit 879783e

26 files changed

Lines changed: 519 additions & 73 deletions

‎WtWSMS/common/on_action/BP_on_actions/000_BP_game_start_religion.txt‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ bp_game_start_religion = {
1111
#Religious Stuff
1212
override_vanilla_names
1313
update_rite_doctrines_and_tenets
14+
BP_set_religion_effects_by_date
1415
convert_christian_chars_to_rites
1516
swap_tenets_based_on_dlc
17+
set_doctrines_by_date
1618
#set_ethnic_religion_flags
1719
}
1820
}
@@ -123,14 +125,17 @@ update_rite_doctrines_and_tenets = {
123125
rite:theravada = {
124126
change_rite_doctrine = special_doctrine_is_buddhist_faith
125127
change_rite_doctrine = doctrine_theocracy_lay_clergy
128+
change_rite_doctrine = doctrine_scriptural
126129
}
127130
rite:mahayana = {
128131
change_rite_doctrine = special_doctrine_is_buddhist_faith
129132
change_rite_doctrine = doctrine_theocracy_lay_clergy
133+
change_rite_doctrine = doctrine_scriptural
130134
}
131135
rite:vajrayana = {
132136
change_rite_doctrine = special_doctrine_is_buddhist_faith
133137
change_rite_doctrine = doctrine_theocracy_lay_clergy
138+
change_rite_doctrine = doctrine_scriptural
134139
}
135140
#christianity_religion
136141
rite:apostolic_christianity = { set_rite_enabled = no }
@@ -289,11 +294,56 @@ update_rite_doctrines_and_tenets = {
289294
#zoroastrianism_religion
290295
rite:gayomarthianism = { set_rite_enabled = no }
291296
rite:khurramism = { set_rite_enabled = no }
297+
rite:afridunism = {
298+
change_rite_doctrine = doctrine_mythic_literary
299+
change_rite_doctrine = unreformed_faith_doctrine
300+
}
292301
#zunism_religion
293302
rite:zun_pagan = { set_rite_enabled = no }
294303
}
295304
}
296305

306+
BP_set_religion_effects_by_date = {
307+
effect = {
308+
#Mazdakism as a strain of mainline Zoroastianism before Sukhra's death, so this is more Zaradushtism
309+
#See Crone's "Kavad's Heresy and Mazdak's Revolt" for a thorough treatment
310+
if = {
311+
limit = { current_year < 493 }
312+
rite:mazdakism = {
313+
#Was less ascetic and more "life is to be enjoyed" (although "Hedonistic" might be too far)
314+
change_rite_doctrine = doctrine_theocracy_temporal
315+
change_rite_doctrine = doctrine_gender_male_dominated
316+
change_rite_doctrine = doctrine_monogamy
317+
change_rite_doctrine = doctrine_major_branch_dorustdin
318+
change_rite_doctrine = doctrine_clerical_function_taxation
319+
change_rite_doctrine = doctrine_ritual_vegetarianism_partial
320+
change_rite_doctrine = doctrine_consanguinity_unrestricted #Mazdakism breaks without it
321+
322+
remove_rite_tenet = tenet:tenet_asceticism
323+
remove_rite_tenet = tenet:tenet_communal_possessions
324+
remove_rite_tenet = tenet:tenet_pacifism
325+
326+
add_rite_tenet = tenet:tenet_hedonistic
327+
add_rite_tenet = tenet:tenet_communal_identity
328+
add_rite_tenet = tenet:tenet_ritual_celebrations
329+
330+
set_religious_head_title = title:d_mazdayasna
331+
332+
this.faith = {
333+
set_tenet_status = {
334+
tenet = tenet:tenet_communal_possessions
335+
status = unknown
336+
}
337+
set_tenet_status = {
338+
tenet = tenet:tenet_pacifism
339+
status = unknown
340+
}
341+
}
342+
}
343+
}
344+
}
345+
}
346+
297347
#Flips Nicene Chars to adopt the appropriate rites; should replace with full history rework
298348
convert_christian_chars_to_rites = {
299349
effect = {
@@ -405,3 +455,12 @@ swap_tenets_based_on_dlc = {
405455
}
406456
}
407457
}
458+
459+
set_doctrines_by_date = {
460+
effect = {
461+
if = {
462+
limit = { current_year >= 410 }
463+
faith:nestorian = { add_doctrine = special_doctrine_legalized_faith_persia }
464+
}
465+
}
466+
}

‎WtWSMS/common/on_action/BP_on_actions/BP_game_starts/BP_global_gamestart.txt‎

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ bp_global_setup = {
1717
BP_update_culture_traditions_by_date
1818
BP_set_culture_variables
1919
BP_setup_realm_and_title_succession_laws_by_date
20-
BP_set_religion_effects_by_date
2120
BP_realm_capitals_by_date
2221
BP_land_titles_by_date
2322
BP_set_dynasty_names_by_date
@@ -170,38 +169,7 @@ BP_setup_realm_and_title_succession_laws_by_date = {
170169
}
171170
}
172171
}
173-
BP_set_religion_effects_by_date = {
174-
effect = {
175-
#Mazdakism as a strain of mainline Zoroastianism before Sukhra's death, so this is more Zaradushtism
176-
#See Crone's "Kavad's Heresy and Mazdak's Revolt" for a thorough treatment
177-
if = {
178-
limit = { current_date <= 493.1.1 }
179-
faith:mazdakism = {
180-
#Was less ascetic and more "life is to be enjoyed" (although "Hedonistic" might be too far)
181-
swap_doctrine_if_it_has_it_effect = {
182-
OLD_DOCTRINE = tenet_asceticism
183-
NEW_DOCTRINE = tenet_hedonistic
184-
}
185-
#Still priestly
186-
swap_doctrine_if_it_has_it_effect = {
187-
OLD_DOCTRINE = doctrine_theocracy_lay_clergy
188-
NEW_DOCTRINE = doctrine_theocracy_temporal
189-
}
190-
#Male Dominated; more about not hoarding the women
191-
swap_doctrine_if_it_has_it_effect = {
192-
OLD_DOCTRINE = doctrine_gender_equal
193-
NEW_DOCTRINE = doctrine_gender_male_dominated
194-
}
195-
#Still considered acceptable
196-
swap_doctrine_if_it_has_it_effect = {
197-
OLD_DOCTRINE = doctrine_heretic_branch_zandik
198-
NEW_DOCTRINE = doctrine_major_branch_dorustdin
199-
}
200-
set_religious_head_title = title:d_mazdayasna
201-
}
202-
}
203-
}
204-
}
172+
205173
BP_realm_capitals_by_date = {
206174
effect = {
207175
#Capital changes for specific time periods

‎WtWSMS/common/religion/doctrine_category_types/00_doctrine_category_types.txt‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
sort_order = 8
44
}
55

6-
special = {
6+
specific_to_religion = {
77
sort_order = 7
8-
gui_tags = { special }
8+
gui_tags = { religion_specific }
99
}
1010

11-
specific_to_religion = {
11+
marriage = {
1212
sort_order = 6
13-
gui_tags = { religion_specific }
1413
}
1514

16-
marriage = {
15+
crimes = {
1716
sort_order = 5
1817
}
1918

20-
crimes = {
19+
clergy = {
2120
sort_order = 4
2221
}
2322

24-
clergy = {
23+
ritual = {
2524
sort_order = 3
25+
gui_tags = { ritual }
2626
}
2727

28-
ritual = {
28+
special = {
2929
sort_order = 2
30-
gui_tags = { ritual }
30+
gui_tags = { special }
3131
}
3232

3333
not_creatable = {

‎WtWSMS/common/religion/doctrine_group_types/00_doctrine_group_types_BP_overwrite.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ doctrine_theism = {
4040

4141
doctrine_zoroastrian_branches = {
4242
category = specific_to_religion
43+
divergence = sequence
4344
is_available_on_create = { religion_tag = zoroastrianism_religion }
4445
}
4546

‎WtWSMS/common/religion/doctrine_group_types/BP_doctrine_group_types.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ jewish_christian_linkage_group = {
2626
doctrine_lock = religion
2727
is_available_on_create = { religion_tag = judaism_religion }
2828
}
29+
#Zoroastrian
30+
legalized_faith_group = {
31+
category = specific_to_religion
32+
doctrine_lock = religion
33+
is_available_on_create = { has_doctrine = special_doctrine_legalized_faith_persia }
34+
}
35+
is_zoroastrian_faith = {
36+
category = special
37+
is_available_on_create = { has_doctrine = special_doctrine_is_zoroastrian_faith }
38+
}
2939
#Dharmic
3040
sramana_special_doctrine_group = {
3141
category = specific_to_religion

‎WtWSMS/common/religion/doctrine_types/20_doctrines_BP_overwrite.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ doctrine_imperial_anointment = {
460460
}
461461
}
462462

463-
464463
##### Changed from Vanilla: Tied into baseline divergence values
465464
doctrine_canonical = {
466465
doctrine_group_type = preservation

‎WtWSMS/common/religion/doctrine_types/20_doctrines_zoroastrian.txt‎

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
##### Changed from Vanilla: Tied into new system for gradiations between Mainline Zoroastrianism and Zandik
1+
##### Changed from Vanilla: Tied into new system for gradations between Mainline Zoroastrianism and Zandik
22
doctrine_major_branch_dorustdin = {
33
doctrine_group_type = doctrine_zoroastrian_branches
44
icon = "doctrine_major_branch_dorustdin"
5+
6+
divergence = 0
7+
58
can_pick = {
69
custom_description = {
710
text = dorustdin_requires_you_follow_the_magi
@@ -25,13 +28,13 @@ doctrine_major_branch_dorustdin = {
2528
NOR = {
2629
# Either you're big on possessions but your HoF hates witchcraft...
2730
AND = {
28-
doctrine:tenet_adorcism = { is_in_list = selected_doctrines }
29-
religious_head.faith = { has_doctrine = doctrine_witchcraft_crime }
31+
tenet:tenet_adorcism = { is_in_list = selected_doctrines }
32+
religious_head.faith.main_rite = { has_doctrine = doctrine_witchcraft_crime }
3033
}
3134
# ... or you hate witchcraft but your HoF likes possessions.
3235
AND = {
3336
doctrine:doctrine_witchcraft_crime = { is_in_list = selected_doctrines }
34-
religious_head.faith = { has_doctrine = tenet_adorcism }
37+
religious_head.faith.main_rite = { rite_has_tenet = tenet_adorcism }
3538
}
3639
}
3740
}
@@ -44,7 +47,7 @@ doctrine_major_branch_dorustdin = {
4447
doctrine:doctrine_polygamy = { is_in_list = selected_doctrines }
4548
}
4649
NOT = {
47-
religious_head.faith = { has_doctrine = doctrine_monogamy }
50+
religious_head.faith.main_rite = { rite_has_doctrine = doctrine_monogamy }
4851
}
4952
}
5053
}
@@ -53,10 +56,8 @@ doctrine_major_branch_dorustdin = {
5356
text = incompatible_tenet_shared_hof_world_vs_unrestricted_incest
5457
# Non-incestual HoFs really take issue with unrestricted incest.
5558
trigger_if = {
56-
limit = {
57-
doctrine:doctrine_consanguinity_unrestricted = { is_in_list = selected_doctrines }
58-
}
59-
religious_head.faith = { has_doctrine = doctrine_consanguinity_unrestricted }
59+
limit = { doctrine:doctrine_consanguinity_unrestricted = { is_in_list = selected_doctrines } }
60+
religious_head.faith.main_rite = { rite_has_doctrine = doctrine_consanguinity_unrestricted }
6061
}
6162
}
6263

@@ -65,40 +66,40 @@ doctrine_major_branch_dorustdin = {
6566
## Exaltation of Pain does not fit with mainstream Zoroastrianism
6667
custom_description = {
6768
text = incompatible_tenet_exaltation_of_pain_trigger
68-
NOT = { doctrine:tenet_exaltation_of_pain = { is_in_list = selected_doctrines } }
69+
NOT = { tenet:tenet_exaltation_of_pain = { is_in_list = selected_doctrines } }
6970
}
7071
## Human Sacrifice does not fit with mainstream Zoroastrianism
7172
custom_description = {
7273
text = incompatible_tenet_human_sacrifice_trigger
73-
NOT = { doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
74+
NOT = { tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
7475
}
7576
## Human Sacrifice does not fit with mainstream Zoroastrianism
7677
custom_description = {
7778
text = incompatible_tenet_gruesome_festivals_trigger
78-
NOT = { doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines } }
79+
NOT = { tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines } }
7980
}
8081
## Cannibalism does not fit with mainstream Zoroastrianism
8182
custom_description = {
8283
text = incompatible_tenet_ritual_cannibalism_trigger
83-
NOT = { doctrine:tenet_ritual_cannibalism = { is_in_list = selected_doctrines } }
84+
NOT = { tenet:tenet_ritual_cannibalism = { is_in_list = selected_doctrines } }
8485
}
8586

8687
##### Dorustdin Specific Blockers
8788
custom_description = { #No Pantheon anymore (Yaztas, but no Pantheon)
8889
text = incompatible_tenet_bhakti_trigger
89-
NOT = { doctrine:tenet_bhakti = { is_in_list = selected_doctrines } }
90+
NOT = { tenet:tenet_bhakti = { is_in_list = selected_doctrines } }
9091
}
9192
custom_description = { #No Sun worship, only Orzmid
9293
text = incompatible_tenet_sun_worship_trigger
93-
NOT = { doctrine:tenet_sun_worship = { is_in_list = selected_doctrines } }
94+
NOT = { tenet:tenet_sun_worship = { is_in_list = selected_doctrines } }
9495
}
9596
custom_description = {
9697
text = incompatible_tenet_false_conversion_sanction_trigger
97-
NOT = { doctrine:tenet_false_conversion_sanction = { is_in_list = selected_doctrines } }
98+
NOT = { tenet:tenet_false_conversion_sanction = { is_in_list = selected_doctrines } }
9899
}
99100
custom_description = {
100101
text = incompatible_tenet_sacred_shadows_trigger
101-
NOT = { doctrine:tenet_sacred_shadows = { is_in_list = selected_doctrines } }
102+
NOT = { tenet:tenet_sacred_shadows = { is_in_list = selected_doctrines } }
102103
}
103104

104105
## Cannot pick a syncretism
@@ -140,6 +141,10 @@ doctrine_major_branch_dorustdin = {
140141
doctrine_major_branch_behdin = { ##### WtWSMS new
141142
doctrine_group_type = doctrine_zoroastrian_branches
142143
icon = "doctrine_major_branch_behdin"
144+
145+
index = 1
146+
divergence = 10
147+
143148
piety_cost = {
144149
value = faith_doctrine_cost_high
145150
if = {
@@ -154,22 +159,22 @@ doctrine_major_branch_behdin = { ##### WtWSMS new
154159
## Exaltation of Pain does not fit with mainstream Zoroastrianism
155160
custom_description = {
156161
text = incompatible_tenet_exaltation_of_pain_trigger
157-
NOT = { doctrine:tenet_exaltation_of_pain = { is_in_list = selected_doctrines } }
162+
NOT = { tenet:tenet_exaltation_of_pain = { is_in_list = selected_doctrines } }
158163
}
159164
## Human Sacrifice does not fit with mainstream Zoroastrianism
160165
custom_description = {
161166
text = incompatible_tenet_human_sacrifice_trigger
162-
NOT = { doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
167+
NOT = { tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
163168
}
164169
## Human Sacrifice does not fit with mainstream Zoroastrianism
165170
custom_description = {
166171
text = incompatible_tenet_gruesome_festivals_trigger
167-
NOT = { doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines } }
172+
NOT = { tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines } }
168173
}
169174
## Cannibalism does not fit with mainstream Zoroastrianism
170175
custom_description = {
171176
text = incompatible_tenet_ritual_cannibalism_trigger
172-
NOT = { doctrine:tenet_ritual_cannibalism = { is_in_list = selected_doctrines } }
177+
NOT = { tenet:tenet_ritual_cannibalism = { is_in_list = selected_doctrines } }
173178
}
174179
}
175180

@@ -188,8 +193,8 @@ doctrine_major_branch_behdin = { ##### WtWSMS new
188193
}
189194
doctrine_heretic_branch_zandik = {
190195
doctrine_group_type = doctrine_zoroastrian_branches
191-
index = 1
192-
divergence = 50
196+
index = 2
197+
divergence = 100
193198

194199
icon = "doctrine_heretic_branch_zandik"
195200

‎WtWSMS/common/religion/doctrine_types/BP_doctrines_eastern.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ special_doctrine_is_nastika_faith = {
8383
}
8484
}
8585
special_doctrine_is_eastern_pagan_faith = {
86-
doctrine_group_type = special_tolerance
86+
doctrine_group_type = eastern_pagan_group
8787
special_parameters = {
8888
hostility_level_override = {
8989
eastern_hostility_doctrine = astray

0 commit comments

Comments
 (0)