From 37045a17ee461312f0781fc493c8aa88bc3430ff Mon Sep 17 00:00:00 2001 From: Thakia Date: Sun, 4 Oct 2026 14:38:16 -0300 Subject: [PATCH] script_values updated files --- common/script_values/00_culture_values.txt | 50 +- .../script_values/00_men_at_arms_values.txt | 12 +- common/script_values/01_starting_values.txt | 18 +- common/script_values/02_religion_values.txt | 1362 ++++++++--------- .../script_values/04_ep2_wedding_values.txt | 43 +- .../script_values/06_ce1_legends_values.txt | 6 + common/script_values/07_ep3_values.txt | 551 ++----- .../script_values/99_casus_belli_values.txt | 108 +- .../99_court_chaplain_values.txt | 919 +++++++++-- .../99_spouse_councillor_values.txt | 250 ++- .../tgp_tribute_mission_values.txt | 37 +- common/script_values/tgp_values.txt | 13 +- 12 files changed, 1897 insertions(+), 1472 deletions(-) diff --git a/common/script_values/00_culture_values.txt b/common/script_values/00_culture_values.txt index b93231b61..aee22d6b2 100644 --- a/common/script_values/00_culture_values.txt +++ b/common/script_values/00_culture_values.txt @@ -289,7 +289,33 @@ culture_hybrid_cooldown = { limit = { has_game_rule = no_hybrid_and_divergence_cooldowns } - multiply = 0 + add = -10000 # See above comment in culture_divergence_cooldown. + } +} + +expand_new_culture_chance = { + if = { + limit = { + any_parent_culture = { + count = 1 + } + } + value = 100 + } + else = { + if = { + limit = { + any_parent_culture = { + save_temporary_scope_as = first_parent + } + exists = scope:first_parent + } + every_parent_culture = { + limit = { this != scope:first_parent } + value = "cultural_acceptance(scope:first_parent)" + } + } + min = 30 } } @@ -522,6 +548,7 @@ language_soft_cap = { add = { add = learning divide = language_learning_divide_value + floor = yes } } if = { @@ -573,6 +600,23 @@ language_soft_cap = { } add = 1 } + # Clergy get a free slot for their rite's liturgical tongue so it does not crowd out others + if = { + limit = { + is_clergy = yes + OR = { + AND = { + knows_language = language_latin + portrait_religious_western_christian_trigger = yes + } + AND = { + knows_language = language_greek + portrait_religious_orthodox_trigger = yes + } + } + } + add = 1 + } } language_soft_cap_modifier_value = { @@ -846,10 +890,6 @@ court_language_ai_score = { capital_province = { geographical_region = world_india_deccan } NOT = { scope:target.capital_province = { geographical_region = world_india_deccan } } } - AND = { - capital_province = { geographical_region = world_burma } - NOT = { scope:target.capital_province = { geographical_region = world_burma } } - } AND = { capital_province = { geographical_region = world_himalaya } NOT = { scope:target.capital_province = { geographical_region = world_himalaya } } diff --git a/common/script_values/00_men_at_arms_values.txt b/common/script_values/00_men_at_arms_values.txt index 424e0e3f7..6627ec023 100644 --- a/common/script_values/00_men_at_arms_values.txt +++ b/common/script_values/00_men_at_arms_values.txt @@ -1051,7 +1051,7 @@ gunpowder_raise_limit_existing_gunpowder_units = { gunpowder_raise_limit_existing_gunpowder_buildings = { value = 0 - every_realm_province = { + every_directly_owned_province = { limit = { has_building_or_higher = powder_magazine_01 } @@ -1095,3 +1095,13 @@ gunpowder_raise_limit_existing_gunpowder_buildings = { gunpowder_building_limit_bonus_1 = 1 gunpowder_building_limit_bonus_2 = 2 gunpowder_building_limit_bonus_3 = 3 + +akritai_holy_order_priority_value = { + value = 0 + if = { + limit = { + has_variable = ho_akritai + } + add = 1000 + } +} diff --git a/common/script_values/01_starting_values.txt b/common/script_values/01_starting_values.txt index 2310b24f5..a9bfd5e5b 100644 --- a/common/script_values/01_starting_values.txt +++ b/common/script_values/01_starting_values.txt @@ -571,7 +571,7 @@ culture_acceptance_baseline = { has_same_culture_language = scope:culture } add = { - value = 15 # please update CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT if this number changes + value = 10 # please update CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT if this number changes desc = ACCEPTANCE_BASELINE_LANGUAGE } } @@ -1142,17 +1142,17 @@ culture_acceptance_baseline = { } if = { # Pluralistic close faiths limit = { - scope:our_faith ?= { - has_doctrine = doctrine_pluralism_pluralistic + scope:our_faith.main_rite ?= { + rite_has_doctrine = doctrine_pluralism_pluralistic } - scope:their_faith ?= { - has_doctrine = doctrine_pluralism_pluralistic + scope:their_faith.main_rite ?= { + rite_has_doctrine = doctrine_pluralism_pluralistic } any_culture_county = { percent >= 0.5 title_province = { - faith = { - has_doctrine = doctrine_pluralism_pluralistic + rite = { + rite_has_doctrine = doctrine_pluralism_pluralistic } } } @@ -1160,8 +1160,8 @@ culture_acceptance_baseline = { any_culture_county = { percent >= 0.5 title_province = { - faith = { - has_doctrine = doctrine_pluralism_pluralistic + rite = { + rite_has_doctrine = doctrine_pluralism_pluralistic } } } diff --git a/common/script_values/02_religion_values.txt b/common/script_values/02_religion_values.txt index 0c3721ba9..ef883f386 100644 --- a/common/script_values/02_religion_values.txt +++ b/common/script_values/02_religion_values.txt @@ -45,7 +45,6 @@ faith_tenet_cost_high = 1500 faith_tenet_cost_massive = 2000 faith_unchanged_doctrine_cost_mult = 0.5 -faith_unchanged_tolerance_doctrine_cost_mult = 0.5 faith_changed_doctrine_cost_mult_two_step = 1.50 faith_changed_doctrine_cost_mult_three_step = 2.25 faith_changed_doctrine_cost_mult_four_step = 3.50 @@ -57,22 +56,6 @@ hostility_multiplier_righteous = 1 hostility_multiplier_fundamentalist = 2 hostility_multiplier_reduction_adaptive = -0.25 -heretical_defector_fervor_gain = 15 # How much fervor Old Faith gains when a ruler splits off to a New Heresy - -regional_heresy_factor = { - if = { - limit = { has_game_rule = default_regional_heresy } - value = 5 - } - else_if = { - limit = { has_game_rule = strict_regional_heresy } - value = 200 - } - else = { - value = 1 - } -} - meditation_duration = 185 # In days local_shrine_duration = 14 @@ -96,14 +79,14 @@ head_of_faith_selection_weight = { # Strong weight for preferred gender if = { limit = { - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } is_male = yes } add = 50 } else_if = { limit = { - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } is_female = yes } add = 50 @@ -161,26 +144,61 @@ demand_conversion_fervor_difference = { subtract = faith.fervor } +# Within the same faith we favour the mainline at high fervor and the others at low +# Stays at 0 across faiths +demand_conversion_rite_fervor_difference = { + value = 0 + if = { + limit = { + scope:actor.faith = faith + scope:actor.rite != rite + } + if = { + limit = { + scope:actor = { rite = faith.main_rite } + } + add = { + value = scope:actor.faith.fervor + subtract = 50 + divide = 2 + } + } + else = { + subtract = { + value = scope:actor.faith.fervor + subtract = 50 + divide = 2 + } + } + } +} + demand_conversion_tenet_impact = { value = 0 if = { limit = { - faith = { - has_doctrine_parameter = sanctioned_false_conversion - NOT = { has_doctrine_parameter = unattractive_for_character_conversions } + rite = { + rite_has_parameter = sanctioned_false_conversion + NOT = { rite_has_parameter = unattractive_for_character_conversions } } } add = -20 } if = { limit = { - faith = { has_doctrine_parameter = tenet_adaptive_conversion_resistance } + rite = { rite_has_parameter = tenet_adaptive_conversion_resistance } } add = -20 } if = { limit = { - faith = { has_doctrine_parameter = unattractive_for_character_conversions } + rite = { rite_has_parameter = tenet_literalism_conversion_resistance } + } + add = -20 + } + if = { + limit = { + rite = { rite_has_parameter = unattractive_for_character_conversions } } add = 20 } @@ -193,6 +211,9 @@ demand_conversion_likelihood_calculation = { #Calculate each faith's fervor add = demand_conversion_fervor_difference + #Within-faith rite spread (mainline benefits at high fervor, non-mainline at low fervor; zero across faith boundaries) + add = demand_conversion_rite_fervor_difference + #Calculate various Doctrines and Tenets add = demand_conversion_tenet_impact @@ -245,6 +266,18 @@ demand_conversion_likelihood_calculation = { } add = 15 } + if = { + limit = { + scope:actor = { has_fulfillment_parameter = sp_easier_conversion } + } + add = spiritual_fulfillment_easier_conversion_value + } + if = { + limit = { + scope:actor = { has_fulfillment_parameter = sp_harder_conversion } + } + add = spiritual_fulfillment_harder_conversion_value + } if = { limit = { @@ -373,6 +406,14 @@ claim_piety_value = { } multiply = 8 } + if = { + limit = { + scope:target = { + tier = tier_hegemony + } + } + multiply = 16 + } add = { value = scope:actor.sub_realm_size multiply = 10 @@ -427,8 +468,8 @@ great_holy_war_target_kingdom_weight = { # For every county with a GHWable liege... limit = { tier = tier_county - scope:the_faith = { - is_hostile_enough_for_holy_war_trigger = { FAITH = prev.holder.top_liege.faith } + scope:the_faith.main_rite = { + is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite } } } # ... Add 1 to the weighting. @@ -1725,8 +1766,9 @@ great_holy_war_target_kingdom_weight = { scope:the_faith = { religion = religion:buddhism_religion NOR = { - this = faith:mahayana - this = faith:vajrayana + this = faith:mahayana_faith + this = faith:vajrayana_faith + this = faith:maitreya_faith } } title_capital_county.title_province = { geographical_region = ghw_region_lanka_&_bengal } @@ -1739,8 +1781,9 @@ great_holy_war_target_kingdom_weight = { scope:the_faith = { religion = religion:buddhism_religion NOR = { - this = faith:mahayana - this = faith:vajrayana + this = faith:mahayana_faith + this = faith:vajrayana_faith + this = faith:maitreya_faith } } title_capital_county.title_province = { geographical_region = ghw_region_middle_india } @@ -1753,8 +1796,9 @@ great_holy_war_target_kingdom_weight = { scope:the_faith = { religion = religion:buddhism_religion NOR = { - this = faith:mahayana - this = faith:vajrayana + this = faith:mahayana_faith + this = faith:vajrayana_faith + this = faith:maitreya_faith } } title_capital_county.title_province = { geographical_region = ghw_region_western_india } @@ -1766,7 +1810,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith = { religion = religion:buddhism_religion - NOT = { this = faith:theravada } + NOT = { this = faith:theravada_faith } } title_capital_county.title_province = { OR = { @@ -1782,7 +1826,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith = { religion = religion:buddhism_religion - NOT = { this = faith:theravada } + NOT = { this = faith:theravada_faith } } title_capital_county.title_province = { OR = { @@ -1798,7 +1842,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith = { religion = religion:buddhism_religion - NOT = { this = faith:theravada } + NOT = { this = faith:theravada_faith } } title_capital_county.title_province = { OR = { @@ -2853,21 +2897,11 @@ great_holy_war_target_kingdom_weight = { } # Bon/Qiangicism/Donyipoloism/Mundhumism # else_if = { -# limit = { -# scope:the_faith.religion = { -# OR = { -# this = religion:bon_religion -# this = religion:tani_religion -# this = religion:mundhum_religion -# this = religion:qiangic_religion -# } -# } -# } # if = { # limit = { # title_capital_county = { # squared_distance = { -# target = title:c_khotan +# target = title:c_roma # value >= ghw_target_distance_03_threshold # } # } @@ -3208,8 +3242,8 @@ great_holy_war_target_kingdom_weight = { target = scope:the_faith } } - scope:the_faith = { - is_hostile_enough_for_holy_war_trigger = { FAITH = top_liege.faith } + scope:the_faith.main_rite = { + is_hostile_enough_for_holy_war_trigger = { RITE = prev.top_liege.rite } } } } @@ -3289,6 +3323,29 @@ holy_war_defensive_join_value = { value = 200 } } + + if = { + limit = { + scope:defender = { + government_has_flag = government_uses_church_authority + } + scope:attacker = { + NOT = { government_has_flag = government_uses_church_authority } + } + } + add = { + desc = "same_faith_theocracy" + value = 200 + } + } + + if = { + limit = { same_faith_clergy_war_trigger = yes } + add = { + desc = "same_faith_clergy_dispute" + value = -100 + } + } if = { limit = { @@ -3332,18 +3389,20 @@ holy_war_defensive_join_value = { faith_conversion_fervor_mult = { value = define:NFaith|MAX_FERVOR subtract = fervor - multiply = define:NFaith|FAITH_CREATION_FERVOR_DISCOUNT_PER_MISSING_FERVOR - max = define:NFaith|FAITH_CREATION_FERVOR_DISCOUNT_MAX + multiply = define:NRite|RITE_CREATION_FERVOR_DISCOUNT_PER_MISSING_FERVOR + max = define:NRite|RITE_CREATION_FERVOR_DISCOUNT_MAX divide = define:NFaith|MAX_FERVOR } # Modify (multiply) the doctrine cost when creating a faith. # The returned value is interpreted as a multiplicative modifier (e.g. 0.5 means +50% cost). # scope:character = the creation character +# scope:old_rite = the rite the character had before creating # scope:old_faith = the faith the character is converting from -faith_creation_cost_mult = { +rite_creation_cost_mult = { subtract = { value = scope:old_faith.faith_conversion_fervor_mult + multiply = 0.5 desc = "faith_creation_cost_fervor_impact" format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" } @@ -3418,8 +3477,8 @@ faith_conversion_cost_mult = { # Pluralistic faiths have it easier converting to each other if = { limit = { - scope:new_faith = { has_doctrine = doctrine_pluralism_pluralistic } - scope:character.faith = { has_doctrine = doctrine_pluralism_pluralistic } + scope:new_faith.main_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + scope:character.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } multiply = { value = 1 @@ -3433,7 +3492,7 @@ faith_conversion_cost_mult = { # Pluralistic faiths have it easier converting else_if = { limit = { - scope:character.faith = { has_doctrine = doctrine_pluralism_pluralistic } + scope:character.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } multiply = { value = 1 @@ -3568,44 +3627,7 @@ faith_conversion_cost_mult = { } else_if = { limit = { - OR = { - AND = { - scope:new_faith.religion = { is_in_family = rf_abrahamic } - NOT = { - scope:character.faith.religion = { is_in_family = rf_abrahamic } - } - } - AND = { - scope:new_faith.religion = { is_in_family = rf_eastern } - NOT = { - scope:character.faith.religion = { is_in_family = rf_eastern } - } - } - AND = { - scope:new_faith.religion = { is_in_family = rf_pagan } - NOT = { - scope:character.faith.religion = { is_in_family = rf_pagan } - } - } - AND = { - scope:new_faith.religion = { is_in_family = rf_sinitic } - NOT = { - scope:character.faith.religion = { is_in_family = rf_sinitic } - } - } - AND = { - scope:new_faith.religion = { is_in_family = rf_antediluvianist } - NOT = { - scope:character.faith.religion = { is_in_family = rf_antediluvianist } - } - } - AND = { - scope:new_faith.religion = { is_in_family = rf_esoteric } - NOT = { - scope:character.faith.religion = { is_in_family = rf_esoteric } - } - } - } + NOT = { scope:new_faith = { faith_is_in_same_rf = { FAITH = scope:character.faith } } } } multiply = { value = 1 @@ -3657,95 +3679,9 @@ faith_conversion_cost_mult = { # More expensive to convert to something inside your religion family that's not the same religion if = { limit = { - scope:new_faith.religion = { is_in_family = rf_abrahamic } - scope:character.faith.religion = { - is_in_family = rf_abrahamic - this != scope:new_faith.religion - } - } - multiply = { - value = 1 - add = { - desc = faith_conversion_cost_inside_religion_family - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 1 - } - } - } - else_if = { - limit = { - scope:new_faith.religion = { is_in_family = rf_eastern } - scope:character.faith.religion = { - is_in_family = rf_eastern - this != scope:new_faith.religion - } - } - multiply = { - value = 1 - add = { - desc = faith_conversion_cost_inside_religion_family - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 1 - } - } - } - if = { - limit = { - scope:new_faith.religion = { is_in_family = rf_pagan } - scope:character.faith.religion = { - is_in_family = rf_pagan - this != scope:new_faith.religion - } - } - multiply = { - value = 1 - add = { - desc = faith_conversion_cost_inside_religion_family - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 1 - } - } - } - if = { - limit = { - scope:new_faith.religion = { is_in_family = rf_sinitic } - scope:character.faith.religion = { - is_in_family = rf_sinitic - this != scope:new_faith.religion - } - } - multiply = { - value = 1 - add = { - desc = faith_conversion_cost_inside_religion_family - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 1 - } - } - } - if = { - limit = { - scope:new_faith.religion = { is_in_family = rf_antediluvianist } - scope:character.faith.religion = { - is_in_family = rf_antediluvianist - this != scope:new_faith.religion - } - } - multiply = { - value = 1 - add = { - desc = faith_conversion_cost_inside_religion_family - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 1 - } - } - } - if = { - limit = { - scope:new_faith.religion = { is_in_family = rf_esoteric } - scope:character.faith.religion = { - is_in_family = rf_esoteric - this != scope:new_faith.religion + scope:new_faith = { + religion != scope:character.religion + faith_is_in_same_rf = { FAITH = scope:character.faith } } } multiply = { @@ -3917,15 +3853,7 @@ faith_conversion_cost_mult = { # Cheaper if the religion is present near/in your borders if = { limit = { - scope:new_faith = { - religion = { is_in_family = rf_abrahamic } - } scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_abrahamic } - } - } OR = { any_neighboring_top_liege_realm_owner = { faith = scope:new_faith @@ -3948,548 +3876,65 @@ faith_conversion_cost_mult = { } } } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 + if = { + limit = { + scope:new_faith = { + NOT = { faith_is_in_same_rf = { FAITH = scope:character.faith } } + } + } + multiply = { + value = 1 + subtract = { + desc = faith_conversion_cost_present + format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" + value = 0.9 + } + } + } + else_if = { + limit = { + scope:new_faith.religion != scope:character.religion + } + multiply = { + value = 1 + subtract = { + desc = faith_conversion_cost_present + format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" + value = 0.8 + } + } + } + else = { + multiply = { + value = 1 + subtract = { + desc = faith_conversion_cost_present + format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" + value = 0.5 + } } } } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_eastern } - } - scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_eastern } - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_pagan } - } - scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_pagan } - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 - } - } - } - # Cheaper if the religion is present near/in your borders + # Cheaper if you're an interloper in a struggle converting to an involved faith. if = { limit = { - scope:new_faith = { - religion = { is_in_family = rf_sinitic } - } scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_sinitic } - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } + any_character_struggle = { + involvement = interloper + has_struggle_phase_parameter = cheaper_to_convert_to_struggle_faith + is_faith_involved_in_struggle = scope:new_faith } } } multiply = { value = 1 subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_antediluvianist } - } - scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_antediluvianist } - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_esoteric } - } - scope:character = { - faith = { - religion = { - NOT = { is_in_family = rf_esoteric } - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.9 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_abrahamic } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_abrahamic - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_eastern } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_eastern - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_pagan } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_pagan - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_sinitic } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_sinitic - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_antediluvianist } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_antediluvianist - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - # Cheaper if the religion is present near/in your borders - else_if = { - limit = { - scope:new_faith = { - religion = { is_in_family = rf_esoteric } - } - scope:character = { - faith = { - religion = { - is_in_family = rf_esoteric - this != scope:new_faith.religion - } - } - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present - format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" - value = 0.8 - } - } - } - else_if = { - limit = { - scope:character = { - OR = { - any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith - } - any_vassal = { - faith = scope:new_faith - } - any_realm_province = { - faith = scope:new_faith - } - liege ?= { - faith = scope:new_faith - } - - liege ?= { - any_vassal = { - faith = scope:new_faith - } - } - } - } - } - multiply = { - value = 1 - subtract = { - desc = faith_conversion_cost_present + desc = struggle_parameter_cheaper_to_convert_to_struggle_faith format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" value = 0.5 } } } - # Cheaper if you're an interloper in a struggle converting to an involved faith. -# if = { -# limit = { -# scope:character = { -# any_character_struggle = { -# involvement = interloper -# has_struggle_phase_parameter = cheaper_to_convert_to_struggle_faith -# is_faith_involved_in_struggle = scope:new_faith -# } -# } -# } -# multiply = { -# value = 1 -# subtract = { -# desc = struggle_parameter_cheaper_to_convert_to_struggle_faith -# format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" -# value = 0.5 -# } -# } -# } ################################################ # Conversion Discount from Confucian Education @@ -4587,7 +4032,9 @@ faith_conversion_cost_mult = { } } scope:new_faith = { - has_doctrine = tenet_pacifism + main_rite = { + rite_has_tenet = tenet_pacifism + } } } } @@ -4681,6 +4128,101 @@ reincarnation_chance = 4 holy_sites_to_create_temporal_head_of_faith = 1 holy_sites_to_create_spiritual_head_of_faith = 1 +create_hof_non_mainline_rite_cost_mult = 2 +create_hof_no_eminent_holy_site_cost_mult = 1.5 +create_hof_ai_cost_mult = 0 + +# ROOT = the character establishing the Head of Faith +create_hof_piety_cost = { + value = 0 + if = { + limit = { + faith = { has_doctrine_parameter = temporal_head_of_faith } + } + if = { + limit = { + rite = { + OR = { + rite_has_doctrine = muhammad_succession_sunni_doctrine + rite_has_doctrine = muhammad_succession_shia_doctrine + } + } + } + # Very expensive for a non-sayyid to become Caliph, free otherwise + if = { + limit = { NOT = { has_trait = sayyid } } + add = massive_piety_value + } + } + else = { + add = major_piety_value + } + } + else_if = { + limit = { + faith = { has_doctrine_parameter = spiritual_head_of_faith } + } + add = 200 + # The mainline rite gets an edge, but wealthy non-mainline rites are not locked out + if = { + limit = { + NOT = { rite = faith.main_rite } + } + multiply = create_hof_non_mainline_rite_cost_mult + } + if = { + limit = { + faith = { + NOT = { + any_eminent_holy_site = { + holy_site_county = { + is_holy_site_controlled_by = root + holder.faith = root.faith + } + } + } + } + } + multiply = create_hof_no_eminent_holy_site_cost_mult + } + } + if = { + limit = { is_ai = yes } + multiply = create_hof_ai_cost_mult + } +} + +# ROOT = the character establishing the Head of Faith +create_hof_gold_cost = { + value = 0 + if = { + limit = { + faith = { has_doctrine_parameter = spiritual_head_of_faith } + } + add = medium_gold_max_value + multiply = 0.5 + if = { + limit = { + faith = { + NOT = { + any_eminent_holy_site = { + holy_site_county = { + is_holy_site_controlled_by = root + holder.faith = root.faith + } + } + } + } + } + multiply = create_hof_no_eminent_holy_site_cost_mult + } + } + if = { + limit = { is_ai = yes } + multiply = create_hof_ai_cost_mult + } +} + faith_military_strength = { every_ruler = { limit = { @@ -4697,21 +4239,31 @@ ask_to_take_vows_piety_cost = { value = { add = medium_piety_value if = { - limit = { exists = scope:actor } + limit = { exists = scope:puppet_or_actor } if = { limit = { OR = { - is_child_of = scope:actor - "scope:actor.primary_title.place_in_line_of_succession(scope:recipient)" <= 3 + is_child_of = scope:puppet_or_actor + "scope:puppet_or_actor.primary_title.place_in_line_of_succession(scope:recipient)" <= 3 } } add = major_piety_value } } else_if = { - limit = { is_close_family_of = scope:actor } + limit = { + exists = scope:puppet_or_actor + is_close_family_of = scope:puppet_or_actor + } add = medium_piety_value } + if = { + limit = { + exists = scope:puppet_or_actor + scope:puppet_or_actor = { has_character_modifier = pam_oblate_patron_modifier } + } + multiply = 0.5 + } } } @@ -4725,8 +4277,8 @@ great_holy_war_target_kingdom_weight_simplified = { # For every county with a GHWable liege... limit = { tier = tier_county - scope:the_faith = { - is_hostile_enough_for_holy_war_trigger = { FAITH = prev.holder.top_liege.faith } + scope:the_faith.main_rite = { + is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite } } } add = 0.5 @@ -4973,8 +4525,8 @@ great_holy_war_target_kingdom_weight_simplified = { target = scope:the_faith } } - scope:the_faith = { - is_hostile_enough_for_holy_war_trigger = { FAITH = top_liege.faith } + scope:the_faith.main_rite = { + is_hostile_enough_for_holy_war_trigger = { RITE = prev.top_liege.rite } } } } @@ -4986,7 +4538,7 @@ great_holy_war_target_kingdom_weight_simplified = { holy_site_reform_tracker_value = { value = 0 faith = { - every_holy_site = { + every_holy_site_barony = { limit = { county = { save_temporary_scope_as = current_holy_site @@ -5008,3 +4560,365 @@ holy_site_reform_tracker_value = { } } } + +############################ +# Faith Rite Growth System # +############################ + +@rite_growth_counties_per_rite = 70 +@rite_growth_min_cooldown_years = 3 +@rite_growth_max_cooldown_years = 18 +@rite_growth_fallback_cooldown_years = 5 +@rite_growth_grace_period_years = 10 +@rite_growth_heresy_cooldown_years = 3 +@rite_growth_fallback_min_counties = 50 +@rite_growth_soft_cap_overshoot = 2 + +# @constants above are the Default branched_rite frequency/amount settings +# Frequency scales spawn and heresy cooldowns +# Amount scales target count and the minimum size +rite_growth_counties_per_rite = { + if = { + limit = { has_game_rule = much_fewer_branched_rite_amount } + value = 140 + } + else_if = { + limit = { has_game_rule = fewer_branched_rite_amount } + value = 100 + } + else_if = { + limit = { has_game_rule = more_branched_rite_amount } + value = 50 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_amount } + value = 35 + } + else = { + value = @rite_growth_counties_per_rite + } +} + +rite_growth_min_cooldown_years = { + if = { + limit = { has_game_rule = much_less_branched_rite_frequency } + value = 8 + } + else_if = { + limit = { has_game_rule = less_branched_rite_frequency } + value = 5 + } + else_if = { + limit = { has_game_rule = more_branched_rite_frequency } + value = 2 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_frequency } + value = 1 + } + else = { + value = @rite_growth_min_cooldown_years + } +} + +rite_growth_max_cooldown_years = { + if = { + limit = { has_game_rule = much_less_branched_rite_frequency } + value = 45 + } + else_if = { + limit = { has_game_rule = less_branched_rite_frequency } + value = 27 + } + else_if = { + limit = { has_game_rule = more_branched_rite_frequency } + value = 12 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_frequency } + value = 8 + } + else = { + value = @rite_growth_max_cooldown_years + } +} + +# In faith scope, how many counties the fallback pulse needs +rite_growth_fallback_min_counties = { + if = { + limit = { has_game_rule = much_fewer_branched_rite_amount } + value = 150 + } + else_if = { + limit = { has_game_rule = fewer_branched_rite_amount } + value = 100 + } + else_if = { + limit = { has_game_rule = more_branched_rite_amount } + value = 40 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_amount } + value = 30 + } + else = { + value = @rite_growth_fallback_min_counties + } +} + +# An archbishop needs a see at least this big to found a rite, since a tiny one cannot spread it +rite_growth_min_clerical_region_size = 5 + +# Faith scope. How many distinct rites the faith should support. +rite_growth_target_rite_count = { + value = -1 # The mainline rite doesn't count + add = { + value = num_county_followers + divide = rite_growth_counties_per_rite + } + floor = yes + min = 0 +} + +# Faith scope. Number of rites currently present on the map (>=1 county). +rite_growth_active_rite_count = { + value = -1 # The mainline rite doesn't count + every_faith_rite = { + limit = { rite_counties >= 1 } + add = 1 + } + min = 0 +} + +# Faith scope. How many more rites the faith still needs to reach target. +rite_growth_rites_needed = { + value = rite_growth_target_rite_count + subtract = rite_growth_active_rite_count + min = 0 +} + +# Faith scope. A sort of 'soft cap' for rites. +rite_growth_rites_soft_max_cap = { + value = rite_growth_rites_needed + if = { + limit = { has_game_rule = much_fewer_branched_rite_amount } + add = 0 + } + else_if = { + limit = { has_game_rule = fewer_branched_rite_amount } + add = 1 + } + else_if = { + limit = { has_game_rule = more_branched_rite_amount } + add = 3 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_amount } + add = 4 + } + else = { + add = @rite_growth_soft_cap_overshoot + } +} + +# After a spawn in faith scope, cooldown is shorter when more rites are needed +# Never below a few years and never above the default +rite_growth_cooldown_days = { + value = rite_growth_max_cooldown_years + divide = { + value = rite_growth_rites_needed + min = 1 + } + min = rite_growth_min_cooldown_years + max = rite_growth_max_cooldown_years + multiply = 365 +} + +# Shorter cooldown for faith_rite_additional_growth_chance_pulse so at-target faiths can still trickle +rite_growth_fallback_cooldown_days = { + if = { + limit = { has_game_rule = much_less_branched_rite_frequency } + value = 12 + } + else_if = { + limit = { has_game_rule = less_branched_rite_frequency } + value = 8 + } + else_if = { + limit = { has_game_rule = more_branched_rite_frequency } + value = 3 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_frequency } + value = 2 + } + else = { + value = @rite_growth_fallback_cooldown_years + } + multiply = 365 +} + +# Grace days a new rite is shielded from chaplain conversion, missionaries, and sway +rite_growth_grace_period_days = { + value = @rite_growth_grace_period_years + multiply = 365 +} + +# After a heresy splits off we wait, otherwise the pulse just fills the gap again within a year +rite_growth_heresy_cooldown_days = { + if = { + limit = { has_game_rule = much_less_branched_rite_frequency } + value = 8 + } + else_if = { + limit = { has_game_rule = less_branched_rite_frequency } + value = 5 + } + else_if = { + limit = { has_game_rule = more_branched_rite_frequency } + value = 2 + } + else_if = { + limit = { has_game_rule = much_more_branched_rite_frequency } + value = 1 + } + else = { + value = @rite_growth_heresy_cooldown_years + } + multiply = 365 +} + +# Rite scope: post-spawn doctrinal push, stepped by current divergence +rite_growth_spawn_doctrine_divergence = { + value = 5 + if = { + limit = { faith = { has_doctrine_parameter = no_head_of_faith } } + add = 15 + } + if = { + limit = { faith.main_rite = { rite_has_parameter = pluralism_pluralistic_resistant_to_heresy } } + add = 10 + } + if = { + limit = { + OR = { + faith = { has_doctrine_parameter = no_head_of_faith } + faith.main_rite = { rite_has_parameter = pluralism_pluralistic_resistant_to_heresy } + } + } + add = 5 + } + if = { + limit = { "divergence(faith.main_rite)" >= 10 } + add = 5 + } + if = { + limit = { "divergence(faith.main_rite)" >= 20 } + add = 5 + } + if = { + limit = { "divergence(faith.main_rite)" >= 30 } + add = 5 + } + # Held back so a new rite cannot be founded already past the heresy threshold + max = { + value = faith.heresy_threshold + subtract = "divergence(faith.main_rite)" + subtract = 5 + } + min = 0 +} + +# Founding sweep budget rolls for rite_growth.0010 (kings consume 3 points, dukes 2, counts 1). +rite_growth_spread_budget_roll_1 = 20 +rite_growth_spread_budget_roll_2 = 25 +rite_growth_spread_budget_roll_3 = 30 +rite_growth_spread_budget_roll_4 = 35 +rite_growth_spread_budget_roll_5 = 40 + +# Fervor for a faith created by a rite diverging too far (kindled from 0 on creation, matches BASE_FERVOR) +diverged_faith_starting_fervor_value = 50 + +# Examples (heresy_threshold): 50 -> 50; 80 -> 80. +faith_heresy_threshold = { + value = faith.heresy_threshold +} + +# Examples (heresy_threshold): 50 -> 5; 80 -> 8. +faith_heresy_threshold_divided_by_10 = { + value = faith.heresy_threshold + divide = 10 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 10; 80 -> 16. +faith_heresy_threshold_divided_by_5 = { + value = faith.heresy_threshold + divide = 5 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 15; 80 -> 24. +faith_heresy_threshold_times_3_over_10 = { + value = faith.heresy_threshold + multiply = 3 + divide = 10 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 20; 80 -> 32. +faith_heresy_threshold_times_2_over_5 = { + value = faith.heresy_threshold + multiply = 2 + divide = 5 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 25; 80 -> 40. +faith_heresy_threshold_divided_by_2 = { + value = faith.heresy_threshold + divide = 2 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 30; 80 -> 48. +faith_heresy_threshold_times_3_over_5 = { + value = faith.heresy_threshold + multiply = 3 + divide = 5 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 35; 80 -> 56. +faith_heresy_threshold_times_7_over_10 = { + value = faith.heresy_threshold + multiply = 7 + divide = 10 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 40; 80 -> 64. +faith_heresy_threshold_times_4_over_5 = { + value = faith.heresy_threshold + multiply = 4 + divide = 5 + floor = yes +} + +# Examples (heresy_threshold): 50 -> 65; 80 -> 104. +faith_heresy_threshold_times_13_over_10 = { + value = faith.heresy_threshold + multiply = 13 + divide = 10 + floor = yes +} + +rite_holy_sites = { + save_temporary_scope_as = temp_rite + faith = { + every_holy_site = { + limit = { holy_site_county.holder.rite = scope:temp_rite } + add = 1 + } + } +} diff --git a/common/script_values/04_ep2_wedding_values.txt b/common/script_values/04_ep2_wedding_values.txt index 1a2a048f8..9c1046f30 100644 --- a/common/script_values/04_ep2_wedding_values.txt +++ b/common/script_values/04_ep2_wedding_values.txt @@ -52,6 +52,12 @@ } add = 20 } + if = { + limit = { + has_personal_tenet_flag = tenet_love_thy_neighbour_vassalage_acceptance + } + add = 15 + } #Cultural Acceptance if = { @@ -75,7 +81,7 @@ scope:impress_check = { NOR = { #Of two different faiths AND the potential vassal's faith is not pluralistic. faith = root.faith - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } } } @@ -110,10 +116,10 @@ limit = { scope:impress_check = { faith != root.faith - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } NOT = { - root.faith = { has_doctrine = doctrine_pluralism_pluralistic } + root.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } } add = { @@ -147,8 +153,8 @@ limit = { scope:impress_check = { faith != root.faith - root.faith = { has_doctrine = doctrine_pluralism_pluralistic } - faith = { has_doctrine = doctrine_pluralism_pluralistic } + root.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } } add = { @@ -209,12 +215,23 @@ } if = { limit = { - scope:impress_check.highest_held_title_tier = tier_empire + scope:impress_check.highest_held_title_tier >= tier_empire } multiply = 1.5 } } } + #A Spiritual Head of Faith of King rank or above will not put their see under a liege + if = { + limit = { + scope:impress_check = { + highest_held_title_tier >= tier_kingdom + faith = { has_doctrine_parameter = spiritual_head_of_faith } + faith.religious_head ?= this + } + } + add = -500 + } #We just fought against each other. if = { limit = { @@ -546,7 +563,7 @@ has_trait = bastard } scope:impress_check = { - faith = { NOT = { has_doctrine = doctrine_bastardry_none } } + rite = { NOT = { rite_has_doctrine = doctrine_bastardry_none } } } } has_trait = denounced @@ -782,6 +799,18 @@ } #HISTORICALLY ADMIN PEOPLES WANT TO BE ADMIN + if = { + limit = { + government_has_mechanic = administrative + scope:impress_check = { + culture = { + culture_is_historically_admin_trigger = yes + } + } + } + + add = 30 + } # AI-only weights, keep the pope from vassalizing too fast if = { diff --git a/common/script_values/06_ce1_legends_values.txt b/common/script_values/06_ce1_legends_values.txt index 2d4fc0953..4e840397e 100644 --- a/common/script_values/06_ce1_legends_values.txt +++ b/common/script_values/06_ce1_legends_values.txt @@ -1368,6 +1368,12 @@ base_legend_promote_ai = { } if = { #no free meals + limit = { + primary_title.tier = tier_hegemony + } + add = -32 + } + else_if = { limit = { primary_title.tier = tier_empire } diff --git a/common/script_values/07_ep3_values.txt b/common/script_values/07_ep3_values.txt index cfdfdb525..75ba45b6e 100644 --- a/common/script_values/07_ep3_values.txt +++ b/common/script_values/07_ep3_values.txt @@ -413,7 +413,7 @@ granary_modifier_scaling_value = { } add = { value = 100 - subtract = domicile.domicile_location.county.county_control + subtract = domicile_location.county.county_control multiply = 0.1 round = yes min = 1 @@ -516,12 +516,6 @@ influence_inherit_large_bonus_value = 0.3 influence_inherit_medium_bonus_value = 0.2 influence_inherit_small_bonus_value = 0.1 -appointment_score_script_value = { - value = "appointment_candidate_score(root.primary_title)" - min = 1 - desc = APPOINTMENT_SCORE_SCRIPT_VALUE_DESC -} - # The cost for taking command of other theme troops - ROOT is the title the requested troops belong to admin_title_troop_command_cost_value = { save_temporary_scope_as = recipient_title @@ -743,43 +737,6 @@ diarch_more_efficient_administrative_emperor_promotion_candidate_major_value = 1 diarch_more_efficient_administrative_emperor_promotion_candidate_medium_value = 0.75 diarch_more_efficient_administrative_emperor_promotion_candidate_mild_value = 0.5 -# For use when promoting a candidate via interaction. -appointment_score_interaction_multiplier_modifiers_value = { - value = 1 - # Co-emperors are more efficient to promote. - if = { - limit = { - exists = scope:target - exists = scope:secondary_recipient - appointment_interactions_recipient_is_suitable_co_emperor_trigger = yes - } - if = { - limit = { - scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_massive } - } - add = diarch_more_efficient_administrative_emperor_promotion_candidate_massive_value - } - else_if = { - limit = { - scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_major } - } - add = diarch_more_efficient_administrative_emperor_promotion_candidate_major_value - } - else_if = { - limit = { - scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_medium } - } - add = diarch_more_efficient_administrative_emperor_promotion_candidate_medium_value - } - else_if = { - limit = { - scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_mild } - } - add = diarch_more_efficient_administrative_emperor_promotion_candidate_mild_value - } - } -} - # Eparch values eparch_aptitude_modifier_scaling_value = { value = 1 @@ -793,14 +750,36 @@ university_cost_reduction_value = 0.25 eparch_scheme_secrecy_bonus_value = { if = { limit = { - scope:owner ?= { has_court_position = eparch_court_position } - scope:target = { - domicile ?= { domicile_location = owner.top_liege.capital_province } + is_scheme_target_type = character + } + if = { + limit = { + scope:owner ?= { has_court_position = eparch_court_position } + scope:target = { + domicile ?= { domicile_location = owner.top_liege.capital_province } + } + } + add = { + value = 15 + desc = eparch_scheme_bonus_desc } } - add = { - value = 15 - desc = eparch_scheme_bonus_desc + } + else_if = { + limit = { + is_scheme_target_type = title + } + if = { + limit = { + scope:owner ?= { has_court_position = eparch_court_position } + scope:target.holder = { + domicile ?= { domicile_location = owner.top_liege.capital_province } + } + } + add = { + value = 15 + desc = eparch_scheme_bonus_desc + } } } } @@ -813,7 +792,7 @@ ep3_triumph_gold_cost = { value = 100 if = { limit = { - NOT = { government_allows = administrative } + NOT = { government_has_flag = government_has_influence } } add = 100 if = { @@ -831,7 +810,7 @@ ep3_triumph_influence_cost = { value = 0 if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } add = 50 if = { @@ -940,10 +919,14 @@ ep3_laamp_chance_score_value = { # Culture/Faith if = { limit = { - faith = { has_doctrine_parameter = unlock_voluntary_laampdom_faith } + rite = { rite_has_parameter = unlock_voluntary_laampdom_faith } } add = 5 } + if = { + limit = { has_personal_tenet_flag = unlock_voluntary_laampdom_faith } + add = 5 + } if = { limit = { culture = { has_cultural_parameter = unlock_voluntary_laampdom } @@ -1111,7 +1094,7 @@ chariot_ordering_value = { } charioteer_chance_to_win = { - value = 1 + value = 1 add = prowess add = aptitude:charioteer_court_position round = yes @@ -2052,7 +2035,7 @@ governor_efficiency = { if = { # The Great Barracks duchy building bonus (great project) limit = { OR = { - vassal_contract_has_flag = celestial_military_appointment # Only for celestial military governors + vassal_contract_has_flag = province_military # Only for military governors government_has_flag = government_is_administrative # All regular admin types are eligible is_independent_ruler = yes # The top liege can always use it } @@ -2068,7 +2051,7 @@ governor_efficiency = { divide = 100 } } - + # TGP TREASURY BUDGET if = { limit = { @@ -2203,121 +2186,6 @@ governance_modifier_scaling_tier_value = { estate_governance_contract_bonus_value = 0.5 -appointment_cost_multiplier_value = { - value = 1 - if = { - limit = { - top_liege = { has_realm_law = male_preference_law } - is_female = yes - } - add = 1 - } - else_if = { - limit = { - top_liege = { has_realm_law = male_only_law } - is_female = yes - } - multiply = 3 - } - else_if = { - limit = { - top_liege = { has_realm_law = female_preference_law } - is_female = no - } - multiply = 1 - } - else_if = { - limit = { - top_liege = { has_realm_law = female_only_law } - is_female = no - } - multiply = 3 - } -} - -appointment_minor_influence_cost = { - value = 50 -} - -appointment_medium_influence_cost = { - value = 100 -} - -appointment_major_influence_cost = { - value = 250 -} - -appointment_score_minor_value = { - value = appointment_minor_influence_cost - multiply = 0.2 -} - -appointment_score_medium_value = { - value = appointment_medium_influence_cost - multiply = 0.2 -} - -appointment_score_major_value = { - value = appointment_major_influence_cost - multiply = 0.2 -} - -appointment_score_minor_loss_value = { - value = appointment_score_minor_value - multiply = -1 -} - -appointment_score_medium_loss_value = { - value = appointment_score_medium_value - multiply = -1 -} - -appointment_score_major_loss_value = { - value = appointment_score_major_value - multiply = -1 -} - -appointment_score_max_tt_value = { - value = 0 - if = { - limit = { - exists = scope:target - exists = scope:secondary_recipient - NOT = { scope:secondary_recipient = scope:target.current_heir } - } - add = { - value = "scope:target.current_heir.appointment_candidate_score(scope:target)" - multiply = 1.1 - } - subtract = "scope:secondary_recipient.appointment_candidate_score(scope:target)" - min = 4 # We do this to prevent cases when the default score of the candidate is already much higher than that the heir - } - multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value -} - -appointment_score_medium_tt_value = { - value = appointment_score_medium_value - multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value -} - -appointment_score_major_tt_value = { - value = appointment_score_major_value - multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value -} - -appointment_score_medium_loss_tt_value = { - value = appointment_score_medium_loss_value - multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value -} - -appointment_score_major_loss_tt_value = { - value = appointment_score_major_loss_value - multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value -} - -appointment_non_preferred_gender_penalty_value = 0.8 -appointment_opposite_gender_penalty_value = 1 - admin_council_cost_value = { add = { add = { @@ -2692,26 +2560,32 @@ task_contract_opinion_crime_backed_down_value = -10 task_contract_extra_reward_multiplier_value = 1.5 # Update all relevant parameter tootlips if this is changed! e.g. improved_learning_contract_rewards # How do we multiply the cash rewards in a task contract depending on the employer's tier? +task_contract_employer_tier_gold_multiplier_value = { + value = 1 + # Kings'n'emperors. + if = { + limit = { highest_held_title_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER } + add = 3 + } + # Dukes. + else_if = { + limit = { highest_held_title_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER } + add = 2 + } + # Courtiers first, as we give them a bit less. + else_if = { + limit = { highest_held_title_tier <= 0 } + subtract = 0.5 + } +} task_contract_tier_gold_multiplier_value = { - value = 1 # Barons and counts are neutral, so no multiplier needed here. + # Barons and counts are neutral, so no multiplier needed here. if = { limit = { exists = scope:task_contract.task_contract_employer } - # Kings'n'emperors. - if = { - limit = { scope:task_contract.task_contract_employer.highest_held_title_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER } - add = 3 - } - # Dukes. - else_if = { - limit = { scope:task_contract.task_contract_employer.highest_held_title_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER } - add = 2 - } - # Courtiers first, as we give them a bit less. - else_if = { - limit = { scope:task_contract.task_contract_employer.highest_held_title_tier <= 0 } - add = 0.5 - ceiling = yes - } + value = scope:task_contract.task_contract_employer.task_contract_employer_tier_gold_multiplier_value + } + else = { + value = 1 } } # How do we multiply the non-cash rewards in a task contract depending on the employer's tier? @@ -3162,6 +3036,7 @@ laamp_base_2011_actual_surveyable_holdings_per_tier_value = { value = sub_realm_size every_sub_realm_barony = { limit = { + exists = holder holder.highest_held_title_tier = tier_barony title_province != root.domicile.domicile_location } @@ -3696,7 +3571,7 @@ prison_break_value = { # Powerful Family Rating # House power score is used in code to enable bonuses from powerful houses -# root - house under evaluation +# current scope - house under evaluation house_power_score = { value = { value = 0 @@ -3712,19 +3587,15 @@ house_power_score = { house_head = { government_is_japanese_trigger = yes } } add = { - every_house_member = { - limit = { top_liege = scope:target_house.house_head.top_liege } - add = 1.5 - } + add = list_size:house_member + multiply = 1.5 desc = members_in_realm_desc } } else = { add = { - every_house_member = { - limit = { top_liege = scope:target_house.house_head.top_liege } - add = 3 - } + add = list_size:house_member + multiply = 3 desc = members_in_realm_desc } } @@ -3820,11 +3691,11 @@ house_power_score = { } } - # Malus for not practicing the state faith + # Malus for not practicing the state rite if = { limit = { house_head.top_liege ?= { government_allows = state_faith } - NOT = { house_head.top_liege.primary_title.state_faith ?= scope:target_house.house_head.faith } + NOT = { house_head.top_liege.primary_title.state_rite ?= scope:target_house.house_head.rite } } add = { value = -25 @@ -3905,7 +3776,7 @@ house_power_score = { house_head = { exists = top_liege.capital_province domicile ?= { - is_domicile_type = estate + domicile_is_estate_trigger = yes domicile_location = prev.top_liege.capital_province } } @@ -3972,7 +3843,10 @@ house_power_score = { add = { value = 0 house_head.confederation = { - every_confederation_member_house = { add = 10 } + add = { + value = list_size:confederation_member_house + multiply = 10 + } } desc = led_bloc_size_desc } @@ -3985,7 +3859,7 @@ house_power_score = { limit = { # Using the triggers of is_governor directly to save performance is_landed = yes - government_allows = administrative + government_has_mechanic = administrative top_liege != this highest_held_title_tier >= main_administrative_tier house.house_head.top_liege ?= top_liege @@ -4007,20 +3881,14 @@ house_power_score = { # Bonus for being the imperial house (we deliberately but this at the end, behind the governorship multiplier, as an added bonus on top of everything else) if = { limit = { - any_house_member = { - top_liege = this - #primary_title.tier >= tier_empire (this is commented out because the house in power should always get this big boost) - house.house_head.top_liege ?= top_liege - } + this = house_head.top_liege.house } add = { value = 100 if = { limit = { - any_house_member = { - top_liege = this + house_head.top_liege = { primary_title.tier < tier_empire - house.house_head.top_liege ?= top_liege } } subtract = 50 #For Kings and below the bonus is not quite as high - they are not a far ahead of everyone else as an emperor @@ -4044,6 +3912,7 @@ house_power_score = { add = 1 } } + min = -0.8 } desc = challenge_status_powerful_family_rating_modifier } @@ -4060,241 +3929,6 @@ house_power_score = { round = yes } -# Maximum investment a character can make to support a candidate for a title appointment -# root - investor -appointment_investment_cap = { - value = { - add = { - value = 50 # Base - desc = BASE_VALUE - } - ##### FAMILY RATING - if = { - limit = { house.house_head ?= this } - add = { - value = house.house_power_score - desc = appointment_investment_cap_family_rating - } - } - ##### AGE - if = { # ADULT - scaling bonus - limit = { is_adult = yes } - add = { - value = { - add = age - subtract = 16 - divide = 2 - ceiling = yes - } - desc = appointment_investment_cap_age - } - } - else = { # CHILD - scaling malus - add = { - value = { - add = age - subtract = 16 - divide = 2 - floor = yes - } - desc = appointment_investment_cap_age - } - } - ##### INFLUENCE LEVEL - if = { # NEGATIVE - limit = { influence_level < 1 } - add = { - value = -20 - desc = appointment_investment_cap_influence_level - } - } - else_if = { # POSITIVE - limit = { influence_level > 1 } - add = { - value = { - add = influence_level - multiply = 10 - } - desc = appointment_investment_cap_influence_level - } - } - ##### ESTATE BUILDINGS - if = { - limit = { exists = house.house_head.domicile } - house.house_head.domicile = { - add = { - value = 0 - if = { - limit = { has_domicile_building = estate_main_02 } - add = 10 - } - else_if = { - limit = { has_domicile_building = estate_main_03 } - add = 20 - } - else_if = { - limit = { has_domicile_building = estate_main_04 } - add = 30 - } - else_if = { - limit = { has_domicile_building = estate_main_05 } - add = 40 - } - if = { - limit = { has_domicile_building = reception_hall_02 } - add = 10 - } - else_if = { - limit = { has_domicile_building = reception_hall_03 } - add = 20 - } - else_if = { - limit = { has_domicile_building = reception_hall_04 } - add = 30 - } - else_if = { - limit = { has_domicile_building = reception_hall_05 } - add = 40 - } - if = { - limit = { has_domicile_building = east_asian_estate_main_02 } - add = 10 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_main_03 } - add = 20 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_main_04 } - add = 30 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_main_05 } - add = 40 - } - if = { - limit = { has_domicile_building = east_asian_estate_reception_hall_02 } - add = 10 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_reception_hall_03 } - add = 20 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_reception_hall_04 } - add = 30 - } - else_if = { - limit = { has_domicile_building = east_asian_estate_reception_hall_05 } - add = 40 - } - if = { - limit = { has_domicile_building = japanese_manor_office_01 } - add = 5 - } - else_if = { - limit = { has_domicile_building = japanese_manor_office_02 } - add = 10 - } - else_if = { - limit = { has_domicile_building = japanese_manor_office_03 } - add = 15 - } - else_if = { - limit = { has_domicile_building = japanese_manor_office_04 } - add = 20 - } - else_if = { - limit = { has_domicile_building = japanese_manor_office_05 } - add = 25 - } - else_if = { - limit = { has_domicile_building = japanese_manor_office_06 } - add = 30 - } - desc = appointment_investment_cap_estate_buildings - } - } - } - ##### FAMILY ATTRIBUTES - house ?= { - add = { - value = 0 - if = { - limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_3 } - add = increased_investment_cap_bonus_3_value - } - else_if = { - limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_2 } - add = increased_investment_cap_bonus_2_value - } - else_if = { - limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_1 } - add = increased_investment_cap_bonus_1_value - } - desc = political_meddlers_attribute_name_desc - } - } - ##### EXPANDED POWER BASE - save_temporary_value_as = temp_total - if = { - limit = { has_character_modifier = ep3_expanded_power_base_minor_modifier } - add = { - value = scope:temp_total - multiply = 0.10 - round = yes - min = 25 - desc = ep3_expanded_power_base_minor_modifier - } - } - if = { - limit = { has_character_modifier = ep3_expanded_power_base_medium_modifier } - add = { - value = scope:temp_total - multiply = 0.20 - round = yes - min = 50 - desc = ep3_expanded_power_base_medium_modifier - } - } - if = { - limit = { has_character_modifier = ep3_expanded_power_base_major_modifier } - add = { - value = scope:temp_total - multiply = 0.30 - round = yes - min = 75 - desc = ep3_expanded_power_base_major_modifier - } - } - ##### MERIT - if = { - limit = { merit_level >= 1 } - add = { - value = { - add = merit_level - multiply = 5 - } - desc = "[merit_level|E]" - } - } - ##### CELESTIAL MINISTER - if = { - limit = { - is_councillor = yes - liege ?= { - tgp_has_access_to_ministry_trigger = yes - } - } - add = { - value = 10 - desc = is_a_minister_desc - } - } - min = 0 - } -} - dominant_family_threshold_value = 0.25 ep3_governor_yearly_8150_total_count_value = { @@ -4636,7 +4270,7 @@ number_vassals_converting_to_new_state_faith = { target = root value >= 30 } - faith != root.faith + rite != root.rite NOT = { has_vassal_stance = zealot } is_ai = yes } @@ -4957,7 +4591,11 @@ replenishable_troops_max_gold_tt_value = { } replenishable_troops_provision_cost_value = { - value = scope:actor.replenishable_troops_value + value = 0 + # some of them have per-type requirement + scope:actor = { + every_maa_regiment = { add = replenishable_troops_value } + } max = scope:actor.domicile.max_provisions multiply = -1 } @@ -5459,7 +5097,7 @@ ep3_governor_yearly_3070_governorship_value = { ep3_found_despotate_control_total_value = { value = 0 primary_title.kingdom = { - every_de_jure_county = { add = 1 } + add = list_size:de_jure_county } } @@ -5497,7 +5135,7 @@ number_of_counties_with_heresy_1 = { top_liege = { every_realm_county = { limit = { - faith = scope:heresy_1 + rite = scope:heresy_1 } add = 1 } @@ -5509,7 +5147,7 @@ number_of_counties_with_heresy_2 = { top_liege = { every_realm_county = { limit = { - faith = scope:heresy_2 + rite = scope:heresy_2 } add = 1 } @@ -5521,7 +5159,7 @@ number_of_counties_with_heresy_3 = { top_liege = { every_realm_county = { limit = { - faith = scope:heresy_3 + rite = scope:heresy_3 } add = 1 } @@ -5532,7 +5170,7 @@ number_of_counties_with_heresy_acceptance = { value = 0 every_realm_county = { limit = { - faith = scope:heresy + rite = scope:heresy } add = 10 } @@ -5542,7 +5180,7 @@ number_of_vassals_with_heresy_acceptance = { value = 0 every_vassal = { limit = { - faith = scope:heresy + rite = scope:heresy } add = 5 } @@ -5787,14 +5425,9 @@ kennels_more_successful_hunts_2_value = 15 cultivated_sophistication_development_gain = minor_development_progress_gain -slander_appointment_score_value = -25 -slander_acclamation_score_value = -50 - -promote_appointment_score_value = 30 -promote_acclamation_score_value = 50 - ep3_requested_faith_support_0_value = { value = major_influence_gain + multiply = 1.5 } ep3_requested_faith_support_1_value = { value = ep3_requested_faith_support_0_value diff --git a/common/script_values/99_casus_belli_values.txt b/common/script_values/99_casus_belli_values.txt index e6f3991de..86e054da0 100644 --- a/common/script_values/99_casus_belli_values.txt +++ b/common/script_values/99_casus_belli_values.txt @@ -449,7 +449,7 @@ holy_war_cb_piety_cost_multiplier = { if = { limit = { scope:attacker = { - faith = { has_doctrine_parameter = cheaper_holy_wars_active } + rite = { rite_has_parameter = cheaper_holy_wars_active } } } multiply = { @@ -701,6 +701,28 @@ common_cb_prestige_cost_multiplier = { multiply = common_cb_cost_multiplier } +vassalization_cb_prestige_cost_mulitiplier = { + value = 1 + if = { + limit = { + scope:defender.primary_title.tier = tier_kingdom + } + multiply = { + value = 2 + desc = CB_VASSALIZING_KING + } + } + else_if = { + limit = { + scope:defender.primary_title.tier = tier_empire + } + multiply = { + value = 4 + desc = CB_VASSALIZING_EMPEROR + } + } +} + # Base Costs claim_cb_prestige_cost = { if = { @@ -756,6 +778,18 @@ claim_cb_prestige_cost = { } } } + every_in_list = { + list = target_titles + limit = { tier = tier_hegemony } + add = { + value = 1600 + if = { + # 25% cheaper to take Pressed claims. + limit = { scope:attacker = { has_strong_claim_on = prev } } + add = -400 + } + } + } # Player adventurers pay much more. if = { @@ -807,14 +841,14 @@ claim_cb_prestige_cost = { sex_opposite_of = scope:defender } OR = { - scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } - scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } multiply = { if = { limit = { - scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated } } if = { limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies. @@ -836,7 +870,7 @@ claim_cb_prestige_cost = { } else_if = { limit = { - scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } if = { limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies. @@ -906,6 +940,11 @@ claim_cb_prestige_cost = { limit = { tier = tier_empire } add = 3000 } + every_in_list = { + list = target_titles + limit = { tier = tier_hegemony } + add = 5000 + } desc = "CB_CLAIM_COST_TARGET_TITLES" } if = { @@ -955,25 +994,39 @@ tribal_subjugation_cb_prestige_cost = { if = { limit = { exists = scope:attacker.primary_title - scope:attacker.primary_title = { - tier = tier_kingdom + } + if = { + limit = { + scope:attacker.primary_title = { + tier = tier_kingdom + } + } + multiply = { + value = 1.5 + desc = CB_COST_RULES_KINGDOM } } - multiply = { - value = 1.5 - desc = CB_COST_RULES_KINGDOM - } - } - else_if = { - limit = { - exists = scope:attacker.primary_title - scope:attacker.primary_title = { - tier = tier_empire + else_if = { + limit = { + scope:attacker.primary_title = { + tier = tier_empire + } + } + multiply = { + value = 2.5 + desc = CB_COST_RULES_EMPIRE } } - multiply = { - value = 2.5 - desc = CB_COST_RULES_EMPIRE + else_if = { + limit = { + scope:attacker.primary_title = { + tier = tier_hegemony + } + } + multiply = { + value = 3.5 + desc = CB_COST_RULES_HEGEMONY + } } } @@ -1011,6 +1064,13 @@ ancestor_cb_prestige_cost = { value = 800 } } + every_in_list = { + list = target_titles + limit = { tier = tier_hegemony } + add = { + value = 1600 + } + } desc = "CB_CLAIM_COST_TARGET_TITLES" } if = { # 50% cheaper for adults to take titles from child rulers. @@ -1050,14 +1110,14 @@ ancestor_cb_prestige_cost = { sex_opposite_of = scope:defender } OR = { - scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } - scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } multiply = { if = { limit = { - scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated } } if = { limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies. @@ -1079,7 +1139,7 @@ ancestor_cb_prestige_cost = { } else_if = { limit = { - scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } if = { limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies. diff --git a/common/script_values/99_court_chaplain_values.txt b/common/script_values/99_court_chaplain_values.txt index 8565e4d51..ac476722c 100644 --- a/common/script_values/99_court_chaplain_values.txt +++ b/common/script_values/99_court_chaplain_values.txt @@ -83,6 +83,16 @@ court_chaplain_religious_relations_cultural_tradition_bonus_modifier = { } } +court_chaplain_religious_relations_celestial_hierarchy_bonus_modifier = { + if = { + limit = { + scope:councillor_liege.rite ?= { rite_has_parameter = tenet_celestial_hierarchy_religious_relations_bonus } + } + add = court_chaplain_religious_relations_modifier + multiply = celestial_hierarchy_religious_relations_percentage_value + } +} + # Total gain calculation court_chaplain_religious_relations_total_piety_gain = { add = court_chaplain_religious_relations_modifier @@ -91,6 +101,7 @@ court_chaplain_religious_relations_total_piety_gain = { add = court_chaplain_religious_relations_family_business_bonus_modifier add = court_chaplain_religious_relations_consulted_house_bonus_modifier add = court_chaplain_religious_relations_cultural_tradition_bonus_modifier + add = court_chaplain_religious_relations_celestial_hierarchy_bonus_modifier } # Opinion: @@ -144,6 +155,11 @@ court_chaplain_religious_relations_opinion_max_consulted_house_modifier = { } } +court_chaplain_religious_relations_opinion_max_celestial_hierarchy_modifier = { + add = court_chaplain_religious_relations_opinion_base + multiply = celestial_hierarchy_religious_relations_percentage_value +} + # Calculate the full max value of the opinion gain court_chaplain_religious_relations_opinion_max = { add = court_chaplain_religious_relations_opinion_base @@ -173,6 +189,13 @@ court_chaplain_religious_relations_opinion_max = { } add = court_chaplain_religious_relations_opinion_max_consulted_house_modifier } + # PAM Celestial Hierarchy + if = { + limit = { + scope:councillor_liege.rite ?= { rite_has_parameter = tenet_celestial_hierarchy_religious_relations_bonus } + } + add = court_chaplain_religious_relations_opinion_max_celestial_hierarchy_modifier + } } court_chaplain_religious_relations_no_hof_opinion_max = { @@ -227,8 +250,8 @@ court_chaplain_religious_relations_no_hof_opinion_modifier = { has_doctrine_parameter = no_head_of_faith NOT = { exists = religious_head } } - has_doctrine = doctrine_theocracy_lay_clergy } + scope:councillor.rite = { rite_has_doctrine = doctrine_theocracy_lay_clergy } } add = court_chaplain_religious_relations_opinion_modifier divide = court_chaplain_religious_relations_no_hof_balance @@ -328,6 +351,14 @@ court_chaplain_fabricate_claim_inspection_reward_bonus = { multiply = 0.25 } +# tenet_transubstantiation + +court_chaplain_fabricate_claim_transubstantiation_bonus = { + value = 0 + add = court_chaplain_fabricate_claim_base_total + multiply = 0.20 +} + # Relation impact court_chaplain_fabricate_claim_monthly_increase_friend_bonus = { value = court_chaplain_fabricate_claim_base_total @@ -426,6 +457,67 @@ court_chaplain_heretic_bonus = { value = 1.3 } +#Domicile Bonus +estate_increase_fabricate_speed = { #Chancery bonus + if = { + limit = { + OR = { + #Does the archbishopric they reside in have a Chancery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_fabricate_speed_3 + } + rite = root.rite + } + #Does their liege have a Chancery? + liege.domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_3 } + domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_3 } + } + } + value = court_chaplain_fabricate_claim_base_total + multiply = ecclesiastical_domicile_increase_fabricate_speed_value_3 + desc = estate_increase_fabricate_speed_desc + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a Chancery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_fabricate_speed_2 + } + rite = root.rite + } + #Does their liege have a Chancery? + liege.domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_2 } + domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_2 } + } + } + value = court_chaplain_fabricate_claim_base_total + multiply = ecclesiastical_domicile_increase_fabricate_speed_value_2 + desc = estate_increase_fabricate_speed_desc + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a Chancery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_fabricate_speed_1 + } + rite = root.rite + } + #Does their liege have a Chancery? + liege.domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_1 } + domicile ?= { has_domicile_parameter = estate_increase_fabricate_speed_1 } + } + } + value = court_chaplain_fabricate_claim_base_total + multiply = ecclesiastical_domicile_increase_fabricate_speed_value_1 + desc = estate_increase_fabricate_speed_desc + } +} + ####################### # Conversion ####################### @@ -533,8 +625,8 @@ court_chaplain_conversion_contextual_bonuses = { #Conversion modifiers from where the Faith is on the Pluralism spectrum. if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = pluralism_fundamentalist_proselytization_bonus + scope:councillor.rite = { + rite_has_parameter = pluralism_fundamentalist_proselytization_bonus } } add = { @@ -544,8 +636,8 @@ court_chaplain_conversion_contextual_bonuses = { } if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = pluralism_pluralistic_proselytization_penalty + scope:councillor.rite = { + rite_has_parameter = pluralism_pluralistic_proselytization_penalty } } add = { @@ -555,47 +647,69 @@ court_chaplain_conversion_contextual_bonuses = { } #Conversion penalties for County Faith Tenets + # Shared parameter; breakdown credits the tenet that grants it if = { limit = { exists = scope:county - scope:county.faith = { - has_doctrine = tenet_false_conversion_sanction + scope:county.rite = { + rite_has_parameter = sanctioned_false_conversion_county_resistance } } - add = { - value = scope:councillor.conversion_false_conversion_sanction_resistance - desc = COURT_CHAPLAIN_CONVERSION_FALSE_CONVERSION_MODIFIER + if = { + limit = { + scope:county.rite = { rite_has_tenet = tenet_false_conversion_sanction } + } + add = { + value = scope:councillor.conversion_false_conversion_sanction_resistance + desc = COURT_CHAPLAIN_CONVERSION_FALSE_CONVERSION_MODIFIER + } + } + else_if = { + limit = { + scope:county.rite = { rite_has_tenet = tenet_pastoral_isolation } + } + add = { + value = scope:councillor.conversion_pastoral_isolation_resistance + desc = COURT_CHAPLAIN_CONVERSION_PASTORAL_ISOLATION_MODIFIER + } + } + else = { + add = { + value = scope:councillor.conversion_pure_land_resistance + desc = COURT_CHAPLAIN_CONVERSION_PURE_LAND_MODIFIER + } + } + } + # Two tenets grant this, so we check once and a faith with both still resists only once + if = { + limit = { + exists = scope:county + scope:county.rite = { + rite_has_parameter = reincarnation_resistance_to_conversion + } + } + if = { + limit = { + scope:county.rite = { rite_has_tenet = tenet_reincarnation } + } + add = { + value = scope:councillor.conversion_reincarnation_resistance + desc = COURT_CHAPLAIN_CONVERSION_REINCARNATION_MODIFIER + } + } + else = { + # Dharmic Pacifism is the only other tenet granting the parameter; add a branch if that changes. + add = { + value = scope:councillor.conversion_dharmic_pacifism_resistance + desc = COURT_CHAPLAIN_CONVERSION_DHARMIC_PACIFISM_MODIFIER + } } } if = { limit = { exists = scope:county - scope:county.faith = { - has_doctrine = tenet_reincarnation - } - } - add = { - value = scope:councillor.conversion_reincarnation_resistance - desc = COURT_CHAPLAIN_CONVERSION_REINCARNATION_MODIFIER - } - } - if = { - limit = { - exists = scope:county - scope:county.faith = { - has_doctrine = tenet_dharmic_pacifism - } - } - add = { - value = scope:councillor.conversion_dharmic_pacifism_resistance - desc = COURT_CHAPLAIN_CONVERSION_DHARMIC_PACIFISM_MODIFIER - } - } - if = { - limit = { - exists = scope:county - scope:county.faith = { - has_doctrine_parameter = tenet_adaptive_conversion_resistance + scope:county.rite = { + rite_has_parameter = tenet_adaptive_conversion_resistance } } add = { @@ -605,19 +719,7 @@ court_chaplain_conversion_contextual_bonuses = { } if = { limit = { - exists = scope:county - scope:county.faith = { - has_doctrine = tenet_pastoral_isolation - } - } - add = { - value = scope:councillor.conversion_pastoral_isolation_resistance - desc = COURT_CHAPLAIN_CONVERSION_PASTORAL_ISOLATION_MODIFIER - } - } - if = { - limit = { - scope:councillor.liege.faith = { has_doctrine = tenet_communal_identity } + scope:councillor.liege.rite = { rite_has_parameter = other_culture_conversion_penalty_active } exists = scope:county scope:county.culture != scope:councillor.liege.culture } @@ -632,8 +734,8 @@ court_chaplain_conversion_contextual_bonuses = { ### Mendicant Preachers if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = mendicant_preachers_conversion_active + scope:councillor.rite = { + rite_has_parameter = mendicant_preachers_conversion_active } } add = { @@ -641,12 +743,24 @@ court_chaplain_conversion_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_MENDICANT_PREACHERS_MODIFIER } } + ### Alexandrian Catechism + if = { + limit = { + scope:councillor_liege ?= { + has_personal_tenet_flag = tenet_alexandrian_catechism_catechesis_conversion + } + } + add = { + value = scope:councillor.conversion_alexandrian_catechism_bonus + desc = COURT_CHAPLAIN_CONVERSION_ALEXANDRIAN_CATECHISM_MODIFIER + } + } ### Communal Identity if = { limit = { exists = scope:county - scope:councillor.faith = { - has_doctrine_parameter = same_culture_conversion_bonus_active + scope:councillor.rite = { + rite_has_parameter = same_culture_conversion_bonus_active } scope:county.culture = scope:councillor.liege.culture } @@ -677,7 +791,7 @@ court_chaplain_conversion_contextual_bonuses = { if = { limit = { exists = scope:county - scope:councillor.faith = { has_doctrine_parameter = easier_to_convert_faith_in_mountains } + scope:councillor.rite = { rite_has_parameter = easier_to_convert_faith_in_mountains } scope:county = { # We check any province and not just title province, to be generous. county_has_province_with_terrain = { @@ -697,7 +811,7 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = scope:county scope:county = { - faith = { has_doctrine_parameter = harder_to_convert_faith_away_in_mountains } + rite = { rite_has_parameter = harder_to_convert_faith_away_in_mountains } # We check any province and not just title province, to be generous. county_has_province_with_terrain = { terrain = mountains @@ -714,42 +828,9 @@ court_chaplain_conversion_contextual_bonuses = { #### Syncretic tenets aim to allow a faith and a separate religion/family to coexist without one eating the other. Accordingly, we make it harder for you to syncretise with a faith *then* wipe it out. if = { limit = { - exists = scope:county - scope:councillor.faith = { has_doctrine_parameter = unreformed_syncretic_actor_opinion_active } - scope:county.faith = { has_doctrine_parameter = unreformed} - } - add = { - value = scope:councillor.conversion_syncretic_with_religion_malus - desc = COURT_CHAPLAIN_CONVERSION_SYNCRETIC_WITH_RELIGION_MODIFIER - } - } - if = { - limit = { - exists = scope:county - scope:councillor.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - scope:county.faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } } - } - add = { - value = scope:councillor.conversion_syncretic_with_religion_malus - desc = COURT_CHAPLAIN_CONVERSION_SYNCRETIC_WITH_RELIGION_MODIFIER - } - } - if = { - limit = { - exists = scope:county - scope:councillor.faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = islam_religion } - } - add = { - value = scope:councillor.conversion_syncretic_with_religion_malus - desc = COURT_CHAPLAIN_CONVERSION_SYNCRETIC_WITH_RELIGION_MODIFIER - } - } - if = { - limit = { - exists = scope:county - scope:councillor.faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = judaism_religion } + exists = scope:county.faith + scope:county.faith != scope:councillor.faith + scope:councillor.faith = { faith_is_syncretic_with = { FAITH = scope:county.faith } } } add = { value = scope:councillor.conversion_syncretic_with_religion_malus @@ -805,7 +886,7 @@ court_chaplain_conversion_contextual_bonuses = { has_character_modifier = defiant_high_king_conversion_boost_modifier has_character_modifier = defiant_high_queen_conversion_boost_modifier } - religion = religion:folkgerman_religion + religion = religion:germanic_religion } scope:county.faith = { NOT = { has_doctrine_parameter = unreformed } @@ -845,12 +926,26 @@ court_chaplain_conversion_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_LOCAL_COUNTY_MODIFIERS } } + if = { + limit = { + scope:county ?= { has_county_modifier = pam_cardinal_order_convert_faith_modifier } + } + add = { + value = cardinal_order_convert_faith + desc = pam_cardinal_order_convert_faith_modifier + } + } + #Baptistery domicile buildings, evaluated from the councillor doing the task + add = { + value = scope:councillor.estate_increase_conversion_speed + desc = estate_increase_conversion_speed_desc + } #Conversion bonuses from certain Holy Sites. if = { limit = { scope:councillor.faith = { - controls_holy_site = jerusalem + controls_holy_site_with_parameter = jerusalem_conversion_bonus } title:b_jerusalem = { is_holy_site_of = scope:councillor.faith @@ -864,7 +959,7 @@ court_chaplain_conversion_contextual_bonuses = { if = { limit = { scope:councillor.faith = { - controls_holy_site = kerala + controls_holy_site_with_parameter = kerala_conversion_bonus } title:b_mahoyadapuram = { is_holy_site_of = scope:councillor.faith @@ -879,7 +974,7 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = scope:county scope:councillor.faith = { - controls_holy_site = iona + controls_holy_site_with_parameter = iona_conversion_bonus } title:b_islay = { is_holy_site_of = scope:councillor.faith @@ -897,7 +992,7 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = scope:county scope:county.faith = { - controls_holy_site = wadi_el_milk + controls_holy_site_with_parameter = wadi_el_milk_conversion_resistance_bonus } title:b_wadi_el-milk = { is_holy_site_of = scope:councillor.faith @@ -911,7 +1006,7 @@ court_chaplain_conversion_contextual_bonuses = { if = { limit = { scope:councillor.faith = { - controls_holy_site = cordoba + controls_holy_site_with_parameter = cordoba_conversion_bonus } title:b_cordoba = { is_holy_site_of = scope:councillor.faith @@ -925,7 +1020,7 @@ court_chaplain_conversion_contextual_bonuses = { if = { limit = { scope:councillor.faith = { - controls_holy_site = geneva + controls_holy_site_with_parameter = geneva_conversion_bonus } title:b_geneva = { is_holy_site_of = scope:councillor.faith @@ -940,7 +1035,7 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = scope:county scope:county.faith = { - controls_holy_site = visoki + controls_holy_site_with_parameter = visoki_conversion_resistance_bonus } title:b_visoki = { is_holy_site_of = scope:councillor.faith @@ -1013,8 +1108,8 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = global_var:fp3_struggle_ending global_var:fp3_struggle_ending = flag:fp3_struggle_shia_caliphate_ending - scope:councillor.faith = { - has_doctrine = muhammad_succession_shia_doctrine + scope:councillor.rite = { + rite_has_doctrine = muhammad_succession_shia_doctrine } } add = { @@ -1026,8 +1121,8 @@ court_chaplain_conversion_contextual_bonuses = { limit = { exists = global_var:fp3_struggle_ending global_var:fp3_struggle_ending = flag:fp3_struggle_strengthen_caliphate_ending - scope:councillor.faith = { - has_doctrine = muhammad_succession_sunni_doctrine + scope:councillor.rite = { + rite_has_doctrine = muhammad_succession_sunni_doctrine } } add = { @@ -1059,6 +1154,32 @@ court_chaplain_conversion_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_LIEGE_IS_DIVINE_BLOOD } } + if = { + limit = { + scope:councillor.liege = { + has_personal_tenet_flag = tenet_literalism_scholar_conversion + has_trait = lifestyle_scholar + } + } + add = { + value = scope:councillor.conversion_literalism_scholar_liege + desc = COURT_CHAPLAIN_CONVERSION_LIEGE_IS_LITERALIST_SCHOLAR + } + } + if = { + limit = { + scope:councillor.liege = { + has_personal_tenet_flag = tenet_monophysitism_conversion_conviction + } + exists = scope:county.faith + NOT = { scope:county.faith = scope:councillor.liege.faith } + scope:county.faith.religion = scope:councillor.liege.faith.religion + } + add = { + value = scope:councillor.conversion_monophysite_conviction_liege + desc = COURT_CHAPLAIN_CONVERSION_LIEGE_IS_MONOPHYSITE_CONVICTION + } + } if = { limit = { exists = scope:county @@ -1107,10 +1228,340 @@ court_chaplain_conversion_contextual_bonuses = { desc = RELIGIOUS_TOLERANCE_DESC } } + + # Faster conversion for certain special doctrines + if = { + limit = { + scope:councillor_liege.faith = { has_doctrine_parameter = adoptionists_attractively_intuitive_theology } + exists = scope:county + scope:county.faith.religion = religion:christianity_religion + } + add = { + value = fp2_lyonese_monk_conversion_bonus_actual_value + desc = fp2_lyonese_monk_faith_conversion_task_desc + } + } +} + +court_chaplain_conversion_factors = { + value = 1 + if = { + limit = { + scope:councillor.faith = { + has_doctrine_parameter = unreformed + } + } + multiply = { + value = conversion_unreformed_faith_penalty + desc = COURT_CHAPLAIN_CONVERSION_UNREFORMED_FAITH_PENALTY + } + } + + # Off-rite Chaplain: applies on every path (faith and rite) when the Chaplain's rite differs from the Liege's. + if = { + limit = { + scope:councillor.rite != scope:councillor_liege.rite + } + multiply = { + value = chaplain_off_rite_conversion_penalty + desc = COURT_CHAPLAIN_CONVERSION_OFF_RITE_CHAPLAIN_PENALTY + } + } + + # Additive fervor is 0 on same faith + if = { + limit = { + exists = scope:county + exists = scope:councillor.faith + exists = scope:councillor_liege.faith + exists = scope:county.faith + OR = { + scope:county.faith = scope:councillor_liege.faith + scope:county.faith = scope:councillor.faith + } + } + multiply = { + value = rite_conversion_fervor_mult + desc = COURT_CHAPLAIN_CONVERSION_RITE_FERVOR_IMPACT + } + } + + # Faster conversion for FP2 Hostility ending, if county is in Iberia and faith was involved + if = { + limit = { + exists = scope:councillor.liege.house + scope:councillor.liege.house = { + OR = { + has_house_modifier = fp2_struggle_hostility_house_faith_modifier + has_house_modifier = fp2_struggle_hostility_house_combined_modifier + } + } + any_in_global_list = { + variable = fp2_struggle_ending_faith_list + this = scope:county.faith + } + scope:county.title_province = { geographical_region = world_europe_west_iberia } + } + multiply = { + value = fp2_struggle_hostility_conversion_value + desc = fp2_struggle_hostility_faith_conversion_task_desc + } + } + # Faster conversion of infidels for FP2 Council Toledo Conversion + if = { + limit = { + scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } + scope:county.religion != scope:councillor.liege.religion + } + multiply = { + value = council_toledo_conversion_modifier_value + desc = council_toledo_conversion_task_desc + } + } + # Faster conversion of heretics for FP2 Council Toledo Heresies + if = { + limit = { + scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } + scope:county.rite != rite:mozarabic_church + scope:county.faith = { + religion = scope:councillor.liege.religion + NOT = { exists = religious_head } + } + } + multiply = { + value = council_toledo_conversion_modifier_value + desc = council_toledo_heresies_task_desc + } + } + + # Faster conversion of Persian counties with the FP3 Promote Persian Scripture decision + if = { + limit = { + scope:councillor.liege = { + has_character_modifier = fp3_promoted_persian_scripture_modifier + is_ai = no #this is so that we don't get AI converting and homogenizing Persia too quickly + } + scope:county.culture = { has_cultural_pillar = heritage_iranian } + } + multiply = { + value = promote_persian_scripture_conversion_modifier_value + desc = fp3_promote_persian_scripture_task_desc + } + } + + # FP3 faster conversion struggle ending rewards + if = { + limit = { + exists = global_var:fp3_struggle_ending_assertion_school + switch = { + trigger = global_var:fp3_struggle_ending_assertion_school + flag:sunni = { + scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine } + } + flag:shia = { + scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_shia_doctrine } + } + flag:muhakkima = { + scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine } + } + flag:zandaqa = { + scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine } + } + } + } + multiply = { + value = fp3_struggle_ending_conversion_modifier_value + desc = fp3_struggle_ending_conversion_modifier_desc + } + } + # Court events + if = { #court.6010 + limit = { + scope:councillor.liege = { + var:6010_harsh_conversion ?= scope:county.faith + } + } + multiply = { + value = 1.2 + desc = court_6010_harsh_conversions + } + } + if = { #court.6010 + limit = { + scope:councillor.liege = { + var:6010_tolerant_conversion ?= scope:county.faith + } + } + multiply = { + value = 0.8 + desc = court_6010_tolerant_conversions + } + } + #If someone has done some buddhist teaching in this province + if = { + limit = { + scope:county ?= { + has_county_modifier = buddhist_teachings_conversion_modifier + } + scope:councillor.liege.religion = religion:buddhism_religion + } + multiply = { + value = 2 + desc = buddhist_teachings_conversion_modifier + } + } + # State Rite Boost + if = { + limit = { + scope:councillor.top_liege.primary_title.state_rite ?= { + this != scope:county.rite + this = scope:councillor.top_liege.rite + } + } + multiply = { + value = ep3_state_faith_conversion_mult_value + desc = ep3_convert_county_to_state_faith + } + } + + # The Christian Church situation bonus + if = { + limit = { + scope:councillor_liege = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_county_conversion_bonus + } + } + } + multiply = { + value = pam_the_christian_church_county_conversion_bonus_value + desc = pam_the_christian_church_county_conversion_bonus_desc + } + } + + # The Christian Church situation malus + if = { + limit = { + scope:councillor_liege = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_county_conversion_malus + } + } + } + multiply = { + value = pam_the_christian_church_county_conversion_malus_value + desc = pam_the_christian_church_county_conversion_bonus_desc # Intentional, it just states the phase name + } + } + + # Conversion speed game rules + if = { + limit = { + has_game_rule = slower_faith_conversion_speed + } + multiply = { + value = slower_game_rule_value + desc = GAME_RULE_SLOWER_REASON + } + } + else_if = { + limit = { + has_game_rule = significantly_slower_faith_conversion_speed + } + multiply = { + value = significantly_slower_game_rule_value + desc = GAME_RULE_SIGNIFICANTLY_SLOWER_REASON + } + } + else_if = { + limit = { + has_game_rule = faster_faith_conversion_speed + } + multiply = { + value = faster_game_rule_value + desc = GAME_RULE_FASTER_REASON + } + } + else_if = { + limit = { + has_game_rule = significantly_faster_faith_conversion_speed + } + multiply = { + value = significantly_faster_game_rule_value + desc = GAME_RULE_SIGNIFICANTLY_FASTER_REASON + } + } } convert_faith_fervor_modifier_scale = 0.5 # Fervor causes the conversion speed to scale from 150% to 50% of base. +chaplain_off_rite_conversion_penalty = 0.5 # task_conversion slowdown when the Chaplain's rite differs from the Liege's; applies on every path. + +# We only use this when the faiths already match +# Young rites without clerical regions never convert slower than normal +rite_conversion_fervor_mult = { + value = 1 + if = { + limit = { + OR = { + scope:councillor_liege = { + highest_held_title_tier >= tier_hegemony + government_has_flag = government_has_merit + } + scope:county.faith = scope:councillor_liege.faith + } + } + if = { + limit = { + scope:councillor_liege = { rite = faith.main_rite } + } + add = { + value = scope:councillor_liege.faith.fervor + subtract = 50 + divide = 100 + } + } + else = { + subtract = { + value = scope:councillor_liege.faith.fervor + subtract = 50 + divide = 100 + } + if = { + limit = { + scope:councillor_liege.rite ?= { has_variable = pam_rite_grace_period } + } + min = 1 + } + } + } + else = { + if = { + limit = { + scope:councillor = { rite = faith.main_rite } + } + add = { + value = scope:councillor.faith.fervor + subtract = 50 + divide = 100 + } + } + else = { + subtract = { + value = scope:councillor.faith.fervor + subtract = 50 + divide = 100 + } + if = { + limit = { + scope:councillor.rite ?= { has_variable = pam_rite_grace_period } + } + min = 1 + } + } + } +} + # Development penalty convert_faith_development_penalty = { value = 0 @@ -1233,8 +1684,8 @@ court_chaplain_progress_percentage = { conversion_fundamentalist_faith_bonus = { if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = pluralism_fundamentalist_proselytization_bonus + scope:councillor.rite = { + rite_has_parameter = pluralism_fundamentalist_proselytization_bonus } } value = court_chaplain_conversion_base_total @@ -1246,8 +1697,8 @@ conversion_pluralistic_faith_penalty = { value = 0 if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = pluralism_pluralistic_proselytization_penalty + scope:councillor.rite = { + rite_has_parameter = pluralism_pluralistic_proselytization_penalty } } subtract = court_chaplain_conversion_base_total @@ -1262,8 +1713,8 @@ conversion_false_conversion_sanction_resistance = { if = { limit = { exists = scope:county - scope:county.faith = { - has_doctrine = tenet_false_conversion_sanction + scope:county.rite = { + rite_has_parameter = sanctioned_false_conversion_county_resistance } } subtract = court_chaplain_conversion_base_total @@ -1276,8 +1727,8 @@ conversion_reincarnation_resistance = { if = { limit = { exists = scope:county - scope:county.faith = { - has_doctrine = tenet_reincarnation + scope:county.rite = { + rite_has_parameter = reincarnation_resistance_to_conversion } } subtract = court_chaplain_conversion_base_total @@ -1285,18 +1736,9 @@ conversion_reincarnation_resistance = { } } +# Same shared parameter as above, kept separate so the conversion breakdown can credit Dharmic Pacifism. conversion_dharmic_pacifism_resistance = { - value = 0 - if = { - limit = { - exists = scope:county - scope:county.faith = { - has_doctrine = tenet_dharmic_pacifism - } - } - subtract = court_chaplain_conversion_base_total - multiply = 0.2 - } + value = conversion_reincarnation_resistance } conversion_adaptive_resistance = { @@ -1304,8 +1746,8 @@ conversion_adaptive_resistance = { if = { limit = { exists = scope:county - scope:county.faith = { - has_doctrine_parameter = tenet_adaptive_conversion_resistance + scope:county.rite = { + rite_has_parameter = tenet_adaptive_conversion_resistance } } subtract = court_chaplain_conversion_base_total @@ -1341,25 +1783,20 @@ conversion_culture_more_easily_converted = { } } +# Twin of conversion_false_conversion_sanction_resistance for breakdown credit conversion_pastoral_isolation_resistance = { - value = 0 - if = { - limit = { - exists = scope:county - scope:county.faith = { - has_doctrine = tenet_pastoral_isolation - } - } - subtract = court_chaplain_conversion_base_total - multiply = 0.3 - } + value = conversion_false_conversion_sanction_resistance +} + +conversion_pure_land_resistance = { + value = conversion_false_conversion_sanction_resistance } conversion_communal_identity_resistance = { value = 0 if = { limit = { - scope:councillor.faith = { has_doctrine = tenet_communal_identity } + scope:councillor.rite = { rite_has_parameter = other_culture_conversion_penalty_active } scope:county.culture != scope:councillor.liege.culture } subtract = court_chaplain_conversion_base_total @@ -1371,8 +1808,8 @@ conversion_mendicant_preachers_bonus = { value = 0 if = { limit = { - scope:councillor.faith = { - has_doctrine_parameter = mendicant_preachers_conversion_active + scope:councillor.rite = { + rite_has_parameter = mendicant_preachers_conversion_active } } add = court_chaplain_conversion_base_total @@ -1380,13 +1817,26 @@ conversion_mendicant_preachers_bonus = { } } +conversion_alexandrian_catechism_bonus = { + value = 0 + if = { + limit = { + scope:councillor_liege ?= { + has_personal_tenet_flag = tenet_alexandrian_catechism_catechesis_conversion + } + } + add = court_chaplain_conversion_base_total + multiply = 0.25 + } +} + conversion_communal_identity_bonus = { value = 0 if = { limit = { exists = scope:county - scope:councillor.faith = { - has_doctrine_parameter = same_culture_conversion_bonus_active + scope:councillor.rite = { + rite_has_parameter = same_culture_conversion_bonus_active } scope:county.culture = scope:councillor.liege.culture } @@ -1561,7 +2011,7 @@ conversion_holy_site_jerusalem = { if = { limit = { scope:councillor.faith = { - controls_holy_site = jerusalem + controls_holy_site_with_parameter = jerusalem_conversion_bonus } } add = court_chaplain_conversion_base_total @@ -1574,7 +2024,7 @@ conversion_holy_site_kerala = { if = { limit = { scope:councillor.faith = { - controls_holy_site = kerala + controls_holy_site_with_parameter = kerala_conversion_bonus } } add = court_chaplain_conversion_base_total @@ -1587,7 +2037,7 @@ conversion_holy_site_iona = { if = { limit = { scope:councillor.faith = { - controls_holy_site = iona + controls_holy_site_with_parameter = iona_conversion_bonus } } add = court_chaplain_conversion_base_total @@ -1600,7 +2050,7 @@ conversion_holy_site_visoki = { if = { limit = { scope:councillor.faith = { - controls_holy_site = visoki + controls_holy_site_with_parameter = visoki_conversion_resistance_bonus } } add = court_chaplain_conversion_base_total @@ -1613,7 +2063,7 @@ conversion_holy_site_wadi_el_milk = { if = { limit = { scope:councillor.faith = { - controls_holy_site = wadi_el_milk + controls_holy_site_with_parameter = wadi_el_milk_conversion_resistance_bonus } } add = court_chaplain_conversion_base_total @@ -1626,7 +2076,7 @@ conversion_holy_site_cordoba = { if = { limit = { scope:councillor.faith = { - controls_holy_site = cordoba + controls_holy_site_with_parameter = cordoba_conversion_bonus } } add = court_chaplain_conversion_base_total @@ -1639,11 +2089,11 @@ conversion_holy_site_geneva = { if = { limit = { scope:councillor.faith = { - controls_holy_site = geneva + controls_holy_site_with_parameter = geneva_conversion_bonus } } add = court_chaplain_conversion_base_total - multiply = 0.20 + multiply = -0.30 } } @@ -1672,6 +2122,34 @@ conversion_divine_blood_liege = { } } +conversion_monophysite_conviction_liege = { + if = { + limit = { + scope:councillor.liege = { + has_personal_tenet_flag = tenet_monophysitism_conversion_conviction + } + exists = scope:county.faith + NOT = { scope:county.faith = scope:councillor.liege.faith } + scope:county.faith.religion = scope:councillor.liege.faith.religion + } + value = court_chaplain_conversion_base_total + multiply = 0.25 + } +} + +conversion_literalism_scholar_liege = { + if = { + limit = { + scope:councillor.liege = { + has_personal_tenet_flag = tenet_literalism_scholar_conversion + has_trait = lifestyle_scholar + } + } + value = court_chaplain_conversion_base_total + multiply = 0.25 + } +} + conversion_learning_theology = { if = { limit = { @@ -1690,7 +2168,7 @@ court_chaplain_learn_on_the_job_scale = { value = 0 if = { limit = { - liege = { has_perk = learn_on_the_job_perk } + liege ?= { has_perk = learn_on_the_job_perk } } add = learning multiply = { @@ -1707,7 +2185,7 @@ kurultai_court_chaplain_learn_on_the_job_scale = { value = 0 if = { limit = { - liege = { has_perk = learn_on_the_job_perk } + liege ?= { has_perk = learn_on_the_job_perk } highest_skill = learning } add = learning @@ -1746,8 +2224,8 @@ court_chaplain_sunni_promotion = { limit = { exists = global_var:fp3_struggle_ending global_var:fp3_struggle_ending = flag:fp3_struggle_strengthen_caliphate_ending - faith = { - has_doctrine = muhammad_succession_sunni_doctrine + rite = { + rite_has_doctrine = muhammad_succession_sunni_doctrine } } value = court_chaplain_conversion_base_total @@ -1762,8 +2240,8 @@ court_chaplain_shia_promotion = { limit = { exists = global_var:fp3_struggle_ending global_var:fp3_struggle_ending = flag:fp3_struggle_shia_caliphate_ending - faith = { - has_doctrine = muhammad_succession_shia_doctrine + rite = { + rite_has_doctrine = muhammad_succession_shia_doctrine } } value = court_chaplain_conversion_base_total @@ -1772,3 +2250,136 @@ court_chaplain_shia_promotion = { min = 1 } } + +#Cardinal Order bonus +cardinal_order_convert_faith = { + if = { + limit = { + scope:county ?= { + has_county_modifier = pam_cardinal_order_convert_faith_modifier + } + } + value = court_chaplain_conversion_base_total + multiply = 0.25 + } +} + + +#Read as scope:councillor.estate_increase_conversion_speed, so relatives resolve from the councillor +estate_increase_conversion_speed = { + value = 0 + if = { + limit = { + OR = { + #Does the archbishopric they reside in have a baptistery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_conversion_speed_3 + } + rite = scope:councillor.rite + } + #Does their liege have a baptistery? + liege.domicile ?= { has_domicile_parameter = estate_increase_conversion_speed_3 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_increase_conversion_speed_value_3 + } + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a baptistery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_conversion_speed_2 + } + rite = scope:councillor.rite + } + #Does their liege have a baptistery? + liege.domicile ?= { has_domicile_parameter = estate_increase_conversion_speed_2 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_increase_conversion_speed_value_2 + } + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a baptistery? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_increase_conversion_speed_1 + } + rite = scope:councillor.rite + } + #Does their liege have a baptistery? + liege.domicile ?= { has_domicile_parameter = estate_increase_conversion_speed_1 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_increase_conversion_speed_value_1 + } + } + if = { + limit = { + OR = { + #Does the archbishopric they reside in have a belltower? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_belltower_conversion_speed_3 + } + rite = scope:councillor.rite + } + #Does their liege have a belltower? + liege.domicile ?= { has_domicile_parameter = estate_belltower_conversion_speed_3 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_belltower_conversion_speed_value_3 + } + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a belltower? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_belltower_conversion_speed_2 + } + rite = scope:councillor.rite + } + #Does their liege have a belltower? + liege.domicile ?= { has_domicile_parameter = estate_belltower_conversion_speed_2 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_belltower_conversion_speed_value_2 + } + } + else_if = { + limit = { + OR = { + #Does the archbishopric they reside in have a belltower? + liege.capital_county.clerical_region_title.holder ?= { + domicile ?= { + has_domicile_parameter = estate_belltower_conversion_speed_1 + } + rite = scope:councillor.rite + } + #Does their liege have a belltower? + liege.domicile ?= { has_domicile_parameter = estate_belltower_conversion_speed_1 } + } + } + add = { + value = court_chaplain_conversion_base_total + multiply = ecclesiastical_domicile_belltower_conversion_speed_value_1 + } + } +} diff --git a/common/script_values/99_spouse_councillor_values.txt b/common/script_values/99_spouse_councillor_values.txt index 14feb13cd..ceae318fa 100644 --- a/common/script_values/99_spouse_councillor_values.txt +++ b/common/script_values/99_spouse_councillor_values.txt @@ -32,17 +32,27 @@ spouse_default_task_diplomacy_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -50,6 +60,7 @@ spouse_default_task_diplomacy_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 5 if = { @@ -72,17 +83,27 @@ spouse_default_task_martial_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -90,6 +111,7 @@ spouse_default_task_martial_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 5 if = { @@ -112,17 +134,27 @@ spouse_default_task_intrigue_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -130,6 +162,7 @@ spouse_default_task_intrigue_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 5 if = { @@ -152,17 +185,27 @@ spouse_default_task_learning_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -170,6 +213,7 @@ spouse_default_task_learning_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 5 if = { @@ -192,17 +236,27 @@ spouse_default_task_stewardship_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -210,6 +264,7 @@ spouse_default_task_stewardship_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 5 if = { @@ -232,17 +287,27 @@ spouse_task_court_politics_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -250,6 +315,7 @@ spouse_task_court_politics_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 2 if = { @@ -272,17 +338,27 @@ spouse_task_chivalry_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -290,6 +366,7 @@ spouse_task_chivalry_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 2 if = { @@ -312,17 +389,27 @@ spouse_task_court_intrigue_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -330,6 +417,7 @@ spouse_task_court_intrigue_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 2 if = { @@ -352,17 +440,27 @@ spouse_task_manage_domain_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -370,6 +468,7 @@ spouse_task_manage_domain_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 2 if = { @@ -392,17 +491,27 @@ spouse_task_patronage_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - } - multiply = 1.25 - save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again - } - if = { - limit = { culture = { has_cultural_parameter = better_spouses } } - multiply = 1.25 + multiply = 1.5 save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again } + else = { + if = { + limit = { + has_perk = loyalty_and_respect_perk + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + if = { + limit = { + culture = { has_cultural_parameter = better_spouses } + } + multiply = 1.25 + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + } if = { limit = { faith = { @@ -410,6 +519,7 @@ spouse_task_patronage_scale = { } } multiply = 1.25 + save_temporary_value_as = has_been_modified } divide = 2 if = { diff --git a/common/script_values/tgp_tribute_mission_values.txt b/common/script_values/tgp_tribute_mission_values.txt index 2f95df0ad..762ef0512 100644 --- a/common/script_values/tgp_tribute_mission_values.txt +++ b/common/script_values/tgp_tribute_mission_values.txt @@ -273,7 +273,7 @@ small_gold_tribute_value = { scope:actor = { save_temporary_scope_as = tribute_target } } else = { - suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694 + suzerain ?= { save_temporary_scope_as = tribute_target } } } else = { @@ -282,7 +282,7 @@ small_gold_tribute_value = { value = 0 if = { limit = { - scope:tribute_target = { has_treasury = yes } + scope:tribute_target ?= { has_treasury = yes } } add = minor_treasury_value } @@ -291,7 +291,7 @@ small_gold_tribute_value = { } if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev } } } @@ -299,14 +299,14 @@ small_gold_tribute_value = { } else_if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_bad_relationship_with_character_trigger = { CHARACTER = prev } } } multiply = 1.25 } max = { - scope:tribute_target.culture = { + scope:tribute_target.culture ?= { if = { limit = { has_cultural_era_or_later = culture_era_late_medieval @@ -338,7 +338,7 @@ small_gold_tribute_value = { } floor = yes if = { - limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } } + limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } } if = { limit = { primary_title.tier >= tier_empire } min = 100 @@ -429,7 +429,7 @@ adequate_gold_tribute_value = { } } else = { - suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694 + suzerain ?= { save_temporary_scope_as = tribute_target } } } else = { @@ -438,7 +438,7 @@ adequate_gold_tribute_value = { value = 0 if = { limit = { - scope:tribute_target = { has_treasury = yes } + scope:tribute_target ?= { has_treasury = yes } } add = major_treasury_value } @@ -447,7 +447,7 @@ adequate_gold_tribute_value = { } if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev } } } @@ -455,14 +455,14 @@ adequate_gold_tribute_value = { } else_if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_bad_relationship_with_character_trigger = { CHARACTER = prev } } } multiply = 1.25 } max = { - scope:tribute_target = { + scope:tribute_target ?= { culture ?= { if = { limit = { @@ -496,7 +496,7 @@ adequate_gold_tribute_value = { } floor = yes if = { - limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } } + limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } } if = { limit = { primary_title.tier >= tier_empire } min = 150 @@ -511,6 +511,7 @@ adequate_gold_tribute_value = { } excessive_gold_tribute_value = { + save_temporary_scope_as = tribute_target if = { limit = { is_tributary = no } if = { @@ -587,7 +588,7 @@ excessive_gold_tribute_value = { } } else = { - suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694 + suzerain ?= { save_temporary_scope_as = tribute_target } } } else = { @@ -596,7 +597,7 @@ excessive_gold_tribute_value = { value = 0 if = { limit = { - scope:tribute_target = { has_treasury = yes } + scope:tribute_target ?= { has_treasury = yes } } add = massive_treasury_value } @@ -605,7 +606,7 @@ excessive_gold_tribute_value = { } if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev } } } @@ -613,14 +614,14 @@ excessive_gold_tribute_value = { } else_if = { limit = { - scope:tribute_target = { + scope:tribute_target ?= { has_any_bad_relationship_with_character_trigger = { CHARACTER = prev } } } multiply = 1.25 } max = { - scope:tribute_target.culture = { + scope:tribute_target.culture ?= { if = { limit = { has_cultural_era_or_later = culture_era_late_medieval @@ -652,7 +653,7 @@ excessive_gold_tribute_value = { } floor = yes if = { - limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } } + limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } } if = { limit = { primary_title.tier >= tier_empire } min = 250 diff --git a/common/script_values/tgp_values.txt b/common/script_values/tgp_values.txt index 7d16f0d73..34f53eb89 100644 --- a/common/script_values/tgp_values.txt +++ b/common/script_values/tgp_values.txt @@ -744,6 +744,18 @@ cranial_trophies_stolen_prestige_value = { multiply = 0.25 } +cranial_trophies_stolen_prestige_spiritual_fulfillment_value = { + value = 0 + if = { + limit = { + scope:dead_character.prestige > 0 + } + add = scope:dead_character.prestige + } + multiply = 0.01 + max = minor_spiritual_fulfillment_value +} + tgp_ai_concubine_soft_cap = { value = max_number_of_concubines multiply = 0.5 @@ -815,7 +827,6 @@ innovation_cupellation_mine_tax_bonus_value = 0.15 innovation_champa_rice_tax_mult_value_1 = 0.02 innovation_champa_rice_levy_size_value_1 = 0.02 -innovation_champa_rice_development_growth_factor_value_1 = 0.05 innovation_champa_rice_tax_mult_value_2 = 0.03 innovation_champa_rice_levy_size_value_2 = 0.03 innovation_champa_rice_development_growth_factor_value_2 = 0.05