A lot of updating, making republics work

This commit is contained in:
Thakia 2026-11-24 16:18:56 -03:00
parent 09fb57c091
commit 4d6f569e96
99 changed files with 9792 additions and 9342 deletions

View file

@ -739,6 +739,7 @@ on_rite_edited = {
# Root is the converted character
# scope:old_faith is the faith they used to have
# scope:old_rite is the rite they used to have
# scope:actor is the character instigating the conversion
# scope:founder is the character instigating the conversion
on_faith_conversion = {
events = {
@ -901,6 +902,10 @@ on_faith_conversion = {
SPONSOR = root
FAITH = scope:old_faith
}
# #Remove Pope-specific GG modifiers
# gg_clean_up_pope_modifiers_effect = yes
# # Christian Situation participation management
# pam_conversion_christian_church_participation_effect = yes
}
}
@ -1186,7 +1191,10 @@ on_rite_change = {
}
pam_destroy_cardinal_title_effect = { CARDINALATE = clerical_elector_title }
}
# #Remove Pope-specific GG modifiers
# gg_clean_up_pope_modifiers_effect = yes
# # Christian Situation participation management
# pam_conversion_christian_church_participation_effect = yes
}
events = {
faith_conversion.0001 # convert capital
@ -1236,8 +1244,8 @@ on_faith_monthly = {
chance = 4 # Roughly once every 2 years
every_faith_rite = {
limit = {
exists = var:converted_development
var:converted_development >= 1
exists = var:converted_prosperity
var:converted_prosperity >= 1
NOT = {
rite_has_parameter = unreformed
}
@ -1245,7 +1253,7 @@ on_faith_monthly = {
save_scope_as = target_rite
# Save all suitable rulers
random = {
chance = var:converted_development
chance = var:converted_prosperity
save_scope_as = faith_target
every_independent_ruler = {
limit = {
@ -1315,7 +1323,7 @@ on_faith_monthly = {
}
add_to_list = migration_targets
}
# If the rite is still large, they only want to move to same-rite rulers
# If the faith is still large, they only want to move to same-rite rulers
if = {
limit = {
scope:target_rite = {
@ -1347,11 +1355,11 @@ on_faith_monthly = {
highest_held_title_tier >= tier_kingdom
}
modifier = {
add = scope:target_rite.var:converted_development
add = scope:target_rite.var:converted_prosperity
NOT = { government_has_flag = government_is_nomadic }
any_sub_realm_county = {
count >= {
value = scope:target_rite.var:converted_development
value = scope:target_rite.var:converted_prosperity
divide = 2
}
rite = scope:target_rite
@ -1440,11 +1448,12 @@ on_faith_monthly = {
highest_held_title_tier >= tier_kingdom
}
modifier = {
add = scope:target_rite.var:converted_development
add = scope:target_rite.var:converted_prosperity
NOT = { government_has_flag = government_is_nomadic }
any_sub_realm_county = {
count >= {
value = scope:target_rite.var:converted_development
value = scope:target_rite.var:converted_prosperity
divide = 2
}
faith = prev.faith
@ -1485,6 +1494,7 @@ faith_holy_order_land_acquisition_pulse = {
subtract = 5
}
every_ruler = {
faith_filter = root
limit = {
holy_order_1000_request_target_trigger = yes
}
@ -1567,6 +1577,7 @@ faith_heresy_events_pulse = {
pagan_conversion_pulse = {
trigger = { #Is the character ready to convert?
is_ai = yes
government_has_flag = government_is_tribal
OR = {
top_liege = this
AND = { # Steppe people convert a bit more often & freely
@ -1574,7 +1585,6 @@ pagan_conversion_pulse = {
primary_title.tier >= tier_duchy
}
}
government_has_flag = government_is_tribal
OR = {
has_realm_law = tribal_authority_2
has_realm_law = tribal_authority_3
@ -1624,7 +1634,7 @@ pagan_conversion_pulse = {
has_innovation = innovation_casus_belli
has_innovation = innovation_plenary_assemblies
has_innovation = innovation_ledger
has_innovation = innovation_development_01
has_innovation = innovation_prosperity_01
has_innovation = innovation_currency_01
}
}
@ -1750,7 +1760,13 @@ on_personal_tenet_loss = {
is_ai = no
NOT = { has_fulfillment_parameter = default_sf_personal_tenet_change_no_stress }
}
add_stress = major_stress_gain
if = {
limit = { culture = { has_cultural_parameter = civic_religion_reduced_tenet_change_stress } }
add_stress = medium_stress_gain
}
else = {
add_stress = major_stress_gain
}
}
hedonistic_obesity_modifier_sync_effect = yes
if = {
@ -1821,11 +1837,11 @@ update_main_rite_action = {
# Faith Rite Growth System #
############################
# Faith scope. Once a month per faith.
# Slowly spawns new rites until the faith reaches its target rite count: floor(counties / X) - 1
# branched rites besides the mainline, so the first branched rite arrives at 2 * X counties.
# Cooldown and target count live in game/common/script_values/02_religion_values.txt.
# Faith scope, once a month per faith
# Cooldown and target count are in 02_religion_values.txt
# Slowly spawns new rites until the faith reaches its target of floor(counties / X) - 1 branched rites besides the mainline
# So the first branched rite arrives at 2 * X counties
faith_rite_growth_pulse = {
trigger = {
NOR = {
@ -1991,7 +2007,7 @@ on_character_holy_site_created = {
effect = {
# Same holy-site slot rules as game start
scope:title.title_province = {
add_holy_site_fallback_special_building_slot_effect = { FAITH = scope:faith }
add_holy_site_fallback_special_district_slot_effect = { FAITH = scope:faith }
}
hidden_effect = {
if = {