diff --git a/common/script_values/00_basic_values.txt b/common/script_values/00_basic_values.txt index 311515139..70933c7e5 100644 --- a/common/script_values/00_basic_values.txt +++ b/common/script_values/00_basic_values.txt @@ -46,7 +46,7 @@ tiny_gold_max_value = { } } } -minor_gold_min_value = 15 +minor_gold_min_value = 10 minor_gold_max_value_static = 150 minor_gold_max_value = { value = minor_gold_max_value_static @@ -79,7 +79,7 @@ minor_gold_max_value = { } } } -medium_gold_min_value = 50 +medium_gold_min_value = 20 medium_gold_max_value_static = 300 medium_gold_max_value = { value = medium_gold_max_value_static @@ -112,7 +112,7 @@ medium_gold_max_value = { } } } -major_gold_min_value = 75 +major_gold_min_value = 30 major_gold_max_value_static = 500 major_gold_max_value = { value = major_gold_max_value_static @@ -145,7 +145,7 @@ major_gold_max_value = { } } } -massive_gold_min_value = 100 +massive_gold_min_value = 40 massive_gold_max_value_static = 750 massive_gold_max_value = { value = massive_gold_max_value_static @@ -178,7 +178,7 @@ massive_gold_max_value = { } } } -monumental_gold_min_value = 200 +monumental_gold_min_value = 80 monumental_gold_max_value_static = 1500 monumental_gold_max_value = { value = monumental_gold_max_value_static @@ -661,6 +661,56 @@ highest_skill_value = { else = { add = learning } } +diplomacy_double_value = { + value = diplomacy + multiply = 2 +} +martial_double_value = { + value = martial + multiply = 2 +} +stewardship_double_value = { + value = stewardship + multiply = 2 +} +intrigue_double_value = { + value = intrigue + multiply = 2 +} +learning_double_value = { + value = learning + multiply = 2 +} +prowess_double_value = { + value = prowess + multiply = 2 +} + +diplomacy_half_value = { + value = diplomacy + divide = 2 +} +martial_half_value = { + value = martial + divide = 2 +} +stewardship_half_value = { + value = stewardship + divide = 2 +} +intrigue_half_value = { + value = intrigue + divide = 2 +} +learning_half_value = { + value = learning + divide = 2 +} +prowess_half_value = { + value = learning + divide = 2 +} + #Piety ratings low_negative_piety_level = -1 low_piety_level = 1 @@ -1490,46 +1540,46 @@ medium_negative_attraction = -20 high_negative_attraction = -30 -#DEVELOPMENT LEVEL VALUES -terrible_development_level = 10 -bad_development_level = 20 -medium_development_level = 40 -good_development_level = 60 -great_development_level = 80 -max_development_level = 100 +#PROSPERITY LEVEL VALUES +terrible_prosperity_level = 10 +bad_prosperity_level = 20 +medium_prosperity_level = 40 +good_prosperity_level = 60 +great_prosperity_level = 80 +max_prosperity_level = 100 -#DEVELOPMENT CHANGE VALUES -minor_development_level_loss = -10 -medium_development_level_loss = -20 -major_development_level_loss = -30 -minor_development_level_gain = 10 -medium_development_level_gain = 20 -major_development_level_gain = 30 +#PROSPERITY CHANGE VALUES +minor_prosperity_level_loss = -10 +medium_prosperity_level_loss = -20 +major_prosperity_level_loss = -30 +minor_prosperity_level_gain = 10 +medium_prosperity_level_gain = 20 +major_prosperity_level_gain = 30 -#DEVELOPMENT PROGRESS VALUES -minimal_development_progress_loss = -10 -minor_development_progress_loss = -20 -medium_development_progress_loss = -40 -major_development_progress_loss = -80 -massive_development_progress_loss = -100 -minimal_development_progress_gain = 10 -minor_development_progress_gain = 20 -medium_development_progress_gain = 40 -major_development_progress_gain = 80 -massive_development_progress_ = 100 +#PROSPERITY PROGRESS VALUES +minimal_prosperity_progress_loss = -10 +minor_prosperity_progress_loss = -20 +medium_prosperity_progress_loss = -40 +major_prosperity_progress_loss = -80 +massive_prosperity_progress_loss = -100 +minimal_prosperity_progress_gain = 10 +minor_prosperity_progress_gain = 20 +medium_prosperity_progress_gain = 40 +major_prosperity_progress_gain = 80 +massive_prosperity_progress_gain = 100 -#DEVELOPMENT GROWTH VALUES -tiny_development_growth_gain = 0.05 -small_development_growth_gain = 0.1 -medium_development_growth_gain = 0.2 -large_development_growth_gain = 0.3 -very_large_development_growth_gain = 0.5 +#PROSPERITY GROWTH VALUES +tiny_prosperity_growth_gain = 0.05 +small_prosperity_growth_gain = 0.1 +medium_prosperity_growth_gain = 0.2 +large_prosperity_growth_gain = 0.3 +very_large_prosperity_growth_gain = 0.5 -tiny_development_growth_loss = -0.1 -small_development_growth_loss = -0.2 -medium_development_growth_loss = -0.3 -large_development_growth_loss = -0.5 -very_large_development_growth_loss = -0.8 +tiny_prosperity_growth_loss = -0.1 +small_prosperity_growth_loss = -0.2 +medium_prosperity_growth_loss = -0.3 +large_prosperity_growth_loss = -0.5 +very_large_prosperity_growth_loss = -0.8 #HEALTH excellent_health = 7 @@ -1690,10 +1740,10 @@ send_gift_opinion = { add = { if = { limit = { - scope:actor.diplomacy > 0 + scope:puppet_or_actor.diplomacy > 0 } add = { - value = scope:actor.diplomacy + value = scope:puppet_or_actor.diplomacy multiply = 3 } } @@ -1708,19 +1758,19 @@ send_gift_opinion = { } if = { limit = { - scope:recipient.liege = scope:actor + scope:recipient.liege = scope:puppet_or_actor } divide = 1.5 } if = { limit = { - scope:recipient = scope:actor.faith.religious_head + scope:recipient = scope:puppet_or_actor.faith.religious_head } divide = 3 } if = { limit = { - scope:actor.culture ?= { + scope:puppet_or_actor.culture ?= { has_innovation = fp3_innovation_fritware } } @@ -1730,7 +1780,7 @@ send_gift_opinion = { } if = { limit = { - scope:actor.culture = { has_cultural_parameter = more_gift_opinion } + scope:puppet_or_actor.culture = { has_cultural_parameter = more_gift_opinion } } multiply = 1.2 } @@ -1751,7 +1801,7 @@ send_gift_opinion = { limit = { scope:actor = { any_sub_realm_barony = { - county.holder = scope:actor + county.holder = scope:puppet_or_actor title_province = { has_building_or_higher = dragon_kiln_01 } @@ -1762,9 +1812,9 @@ send_gift_opinion = { } if = { limit = { - scope:actor = { has_perk = thoughtful_perk } + scope:puppet_or_actor = { has_perk = thoughtful_perk } } - multiply = 2 + multiply = 1.25 } if = { limit = { @@ -1772,7 +1822,7 @@ send_gift_opinion = { has_personal_tenet_flag = tenet_simony_personal_gifts } } - multiply = 2 + multiply = 1.25 } } @@ -1793,6 +1843,16 @@ gift_artifact_opinion = { add = 50 } else = { add = 100 } + # Menagerie Creatures are special + if = { + limit = { + OR = { + artifact_type = creature + has_variable = was_creature_artifact + } + } + add = 25 + } if = { # AI Greed limit = { scope:recipient.ai_greed > 0 } multiply = { # Up to *2 @@ -1848,11 +1908,24 @@ gift_artifact_opinion = { can_benefit_from_artifact = scope:target } } + # Creature artifacts always nice because they become Court Artifacts upon gifting + scope:target = { + NOR = { + artifact_type = creature + has_variable = was_creature_artifact + } + } } divide = 10 # 1/10 for useless artifacts } else_if = { limit = { + scope:target = { + NOR = { + artifact_type = creature + has_variable = was_creature_artifact + } + } scope:recipient = { OR = { NOT = { can_equip_artifact = scope:target } @@ -2094,6 +2167,7 @@ divorce_cost = 100 #PERKS sound_foundations_max = 5 embassies_max = 5 +merchant_embassies_max = 5 friendly_counsel_max = 5 decentralized_rule_max = 5 confidants_max = 5 diff --git a/common/script_values/00_building_values.txt b/common/script_values/00_building_values.txt index f1af0759c..91b63b2aa 100644 --- a/common/script_values/00_building_values.txt +++ b/common/script_values/00_building_values.txt @@ -16,42 +16,42 @@ ####### # Base -@poor_tax_base = 0.25 -@normal_tax_base = 0.35 -@good_tax_base = 0.5 -@excellent_tax_base = 0.7 +@poor_tax_base = 0.1 +@normal_tax_base = 0.2 +@good_tax_base = 0.4 +@excellent_tax_base = 0.6 -@copper_mine_tax_base = 2 -@silver_mine_tax_base = 3 -@special_mine_tax_base = 5 +@copper_mine_tax_base = 1 +@silver_mine_tax_base = 2 +@special_mine_tax_base = 3 # We have four 'tax classes', each one has a better scale than the others. -@poor_tax_scale_addition_per_tier = 0.15 +@poor_tax_scale_addition_per_tier = 0.1 @normal_tax_scale_addition_per_tier = 0.2 @good_tax_scale_addition_per_tier = 0.3 -@excellent_tax_scale_addition_per_tier = 0.45 +@excellent_tax_scale_addition_per_tier = 0.4 -@copper_mine_tax_scale_addition_per_tier = 1.5 -@silver_mine_tax_scale_addition_per_tier = 2 -@special_mine_tax_scale_addition_per_tier = 3 +@copper_mine_tax_scale_addition_per_tier = 0.25 +@silver_mine_tax_scale_addition_per_tier = 0.5 +@special_mine_tax_scale_addition_per_tier = 1 ######## # Levy # ######## # Base -@poor_levy_base = 50 -@small_levy_base = 75 -@normal_levy_base = 100 -@good_levy_base = 125 -@excellent_levy_base = 150 +@poor_levy_base = 40 +@small_levy_base = 55 +@normal_levy_base = 75 +@good_levy_base = 90 +@excellent_levy_base = 105 # Scaling Increase -@poor_levy_scale_addition_per_tier = 25 -@small_levy_scale_addition_per_tier = 50 -@normal_levy_scale_addition_per_tier = 75 -@good_levy_scale_addition_per_tier = 100 -@excellent_levy_scale_addition_per_tier = 125 +@poor_levy_scale_addition_per_tier = 15 +@small_levy_scale_addition_per_tier = 35 +@normal_levy_scale_addition_per_tier = 50 +@good_levy_scale_addition_per_tier = 70 +@excellent_levy_scale_addition_per_tier = 90 ################ # Supply Limit # @@ -76,38 +76,38 @@ ################### # Base -@normal_maa_maintenance_base = -0.008 -@good_maa_maintenance_base = -0.016 +@normal_maa_maintenance_base = -0.01 +@good_maa_maintenance_base = -0.02 # Scaling Increase -@normal_maa_maintenance_addition_per_tier = -0.008 -@good_maa_maintenance_addition_per_tier = -0.016 +@normal_maa_maintenance_addition_per_tier = -0.02 +@good_maa_maintenance_addition_per_tier = -0.04 ########################### -# Development Growth Flat # +# Prosperity Growth Flat # ########################### # Base -@low_development_growth_base = 0.01 -@normal_development_growth_base = 0.02 -@good_development_growth_base = 0.04 +@low_prosperity_growth_base = 0.01 +@normal_prosperity_growth_base = 0.02 +@good_prosperity_growth_base = 0.04 # Scaling Increase -@low_development_growth_addition_per_tier = 0.01 -@normal_development_growth_addition_per_tier = 0.02 -@good_development_growth_addition_per_tier = 0.04 +@low_prosperity_growth_addition_per_tier = 0.01 +@normal_prosperity_growth_addition_per_tier = 0.02 +@good_prosperity_growth_addition_per_tier = 0.04 ######################## -# Development Growth % # +# Prosperity Growth % # ######################## # Base -@normal_development_growth_factor_base = 0.04 -@good_development_growth_factor_base = 0.06 +@normal_prosperity_growth_factor_base = 0.04 +@good_prosperity_growth_factor_base = 0.06 # Scaling Increase -@normal_development_growth_factor_addition_per_tier = 0.04 -@good_development_growth_factor_addition_per_tier = 0.06 +@normal_prosperity_growth_factor_addition_per_tier = 0.04 +@good_prosperity_growth_factor_addition_per_tier = 0.06 ############ # Tax Mult # @@ -123,15 +123,15 @@ @normal_tax_mult_addition_per_tier = 0.04 @good_tax_mult_addition_per_tier = 0.06 -############### -# MaA Bonuses # -############### -# Base Damage Mult -@low_damage_mult_base = 0.10 -@normal_damage_mult_base = 0.15 -@high_damage_mult_base = 0.20 -@very_high_damage_mult_base = 0.30 +################### +# New MAA bonuses # +################### +# Base Damage Mult +@low_damage_mult_base = 0.025 +@normal_damage_mult_base = 0.05 +@high_damage_mult_base = 0.1 +@very_high_damage_mult_base = 0.15 # Scaling Increase Damage Mult @low_damage_mult_addition_per_tier = 0.025 @@ -141,10 +141,10 @@ # Base Toughness Mult -@low_toughness_mult_base = 0.10 -@normal_toughness_mult_base = 0.15 -@high_toughness_mult_base = 0.20 -@very_high_toughness_mult_base = 0.30 +@low_toughness_mult_base = 0.025 +@normal_toughness_mult_base = 0.05 +@high_toughness_mult_base = 0.10 +@very_high_toughness_mult_base = 0.15 # Scaling Increase Toughness Mult @low_toughness_mult_addition_per_tier = 0.025 @@ -152,6 +152,40 @@ @high_toughness_mult_addition_per_tier = 0.10 @very_high_toughness_mult_addition_per_tier = 0.15 +# Support bonuses for the economic office extras, at four damage to three toughness. +@duchy_support_damage_mult_base = 0.02 +@duchy_support_damage_mult_addition_per_tier = 0.02 +@duchy_support_toughness_mult_base = 0.015 +@duchy_support_toughness_mult_addition_per_tier = 0.015 +############### +# MaA Bonuses # +############### + +# Base Damage Mult - old +#@low_damage_mult_base = 0.10 +#@normal_damage_mult_base = 0.15 +#@high_damage_mult_base = 0.20 +#@very_high_damage_mult_base = 0.30 + +# Scaling Increase Damage Mult - old +#@low_damage_mult_addition_per_tier = 0.025 +#@normal_damage_mult_addition_per_tier = 0.05 +#@high_damage_mult_addition_per_tier = 0.10 +#@very_high_damage_mult_addition_per_tier = 0.15 + + +# Base Toughness Mult - old +#@low_toughness_mult_base = 0.0. +#@normal_toughness_mult_base = 0.15 +#@high_toughness_mult_base = 0.20 +#@very_high_toughness_mult_base = 0.30 + +# Scaling Increase Toughness Mult - old +#@low_toughness_mult_addition_per_tier = 0.025 +#@normal_toughness_mult_addition_per_tier = 0.05 +#@high_toughness_mult_addition_per_tier = 0.10 +#@very_high_toughness_mult_addition_per_tier = 0.15 + # Base Screen Mult @low_screen_mult_base = 0.10 @@ -197,10 +231,12 @@ # Base Movement Speed Value @normal_movement_speed_base = 0.01 +@good_movement_speed_base = 0.02 @high_movement_speed_base = 0.02 # Scaling Increase Movement Speed @normal_movement_speed_addition_per_tier = 0.01 +@good_movement_speed_addition_per_tier = 0.015 @high_movement_speed_addition_per_tier = 0.02 ######################## @@ -232,10 +268,12 @@ ############ # Base +@poor_max_garrison_base = 75 @normal_max_garrison_base = 150 @good_max_garrison_base = 250 # Scaling Increase +@poor_max_garrison_scale_addition_per_tier = 75 @normal_max_garrison_scale_addition_per_tier = 150 @good_max_garrison_scale_addition_per_tier = 250 @@ -293,24 +331,23 @@ # Building Cost # ################# -@cheap_cost_base = 100 -@normal_cost_base = 150 -@expensive_cost_base = 200 -@very_expensive_cost_base = 500 -@main_cost_base = 400 -@tribal_cost_base = 75 +@cheap_cost_base = 30 +@normal_cost_base = 60 +@expensive_cost_base = 90 +@main_cost_base = 100 +@main_cost_new_holding = 200 +@tribal_cost_base = 15 @building_cost_scaling_modifier_cheap = 0.1 @building_cost_scaling_modifier_normal = 0.1 @building_cost_scaling_modifier_expensive = 0.1 # We have four 'building cost classes', each one has a better scale than the others. -@cheap_cost_scale_addition_per_tier = 50 -@normal_cost_scale_addition_per_tier = 100 -@expensive_cost_scale_addition_per_tier = 150 -@very_expensive_cost_scale_addition_per_tier = 200 -@main_cost_scale_addition_per_tier = 150 -@tribal_cost_scale_addition_per_tier = 25 +@cheap_cost_scale_addition_per_tier = 15 +@normal_cost_scale_addition_per_tier = 30 +@expensive_cost_scale_addition_per_tier = 45 +@main_cost_scale_addition_per_tier = 50 +@tribal_cost_scale_addition_per_tier = 5 ##################### # Construction Time # @@ -505,6 +542,15 @@ building_disable_inefficient_value_add = 5 @excellent_levy_tier_7 = @[excellent_levy_tier_6 + excellent_levy_scale_addition_per_tier] @excellent_levy_tier_8 = @[excellent_levy_tier_7 + excellent_levy_scale_addition_per_tier] +@poor_max_garrison_tier_1 = @[poor_max_garrison_base] +@poor_max_garrison_tier_2 = @[poor_max_garrison_tier_1 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_3 = @[poor_max_garrison_tier_2 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_4 = @[poor_max_garrison_tier_3 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_5 = @[poor_max_garrison_tier_4 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_6 = @[poor_max_garrison_tier_5 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_7 = @[poor_max_garrison_tier_6 + poor_max_garrison_scale_addition_per_tier] +@poor_max_garrison_tier_8 = @[poor_max_garrison_tier_7 + poor_max_garrison_scale_addition_per_tier] + @normal_max_garrison_tier_1 = @[normal_max_garrison_base] @normal_max_garrison_tier_2 = @[normal_max_garrison_tier_1 + normal_max_garrison_scale_addition_per_tier] @normal_max_garrison_tier_3 = @[normal_max_garrison_tier_2 + normal_max_garrison_scale_addition_per_tier] @@ -621,6 +667,8 @@ building_disable_inefficient_value_add = 5 @normal_cost_tier_6 = @[normal_cost_tier_5 + 6*6*normal_cost_scale_addition_per_tier*building_cost_scaling_modifier_normal + 0] @normal_cost_tier_7 = @[normal_cost_tier_6 + 7*7*normal_cost_scale_addition_per_tier*building_cost_scaling_modifier_normal + 0] @normal_cost_tier_8 = @[normal_cost_tier_7 + 8*8*normal_cost_scale_addition_per_tier*building_cost_scaling_modifier_normal + 0] +@normal_cost_tier_9 = @[normal_cost_tier_8 + 9*9*normal_cost_scale_addition_per_tier*building_cost_scaling_modifier_normal + 0] +@normal_cost_tier_10 = @[normal_cost_tier_9 + 10*10*normal_cost_scale_addition_per_tier*building_cost_scaling_modifier_normal + 0] @expensive_cost_tier_1 = @[expensive_cost_base] #values progress quadratically for tiers from T3 onwards. The addition at the end is to have nice, round numbers displayed @expensive_cost_tier_2 = @[expensive_cost_tier_1 + expensive_cost_scale_addition_per_tier] @@ -640,6 +688,8 @@ building_disable_inefficient_value_add = 5 @very_expensive_cost_tier_6 = @[very_expensive_cost_tier_5 + 6*6*very_expensive_cost_scale_addition_per_tier*building_cost_scaling_modifier_expensive + 0] @very_expensive_cost_tier_7 = @[very_expensive_cost_tier_6 + 7*7*very_expensive_cost_scale_addition_per_tier*building_cost_scaling_modifier_expensive + 0] @very_expensive_cost_tier_8 = @[very_expensive_cost_tier_7 + 8*8*very_expensive_cost_scale_addition_per_tier*building_cost_scaling_modifier_expensive + 0] +@expensive_cost_tier_9 = @[expensive_cost_tier_8 + 9*9*expensive_cost_scale_addition_per_tier*building_cost_scaling_modifier_expensive + 0] +@expensive_cost_tier_10 = @[expensive_cost_tier_9 + 10*10*expensive_cost_scale_addition_per_tier*building_cost_scaling_modifier_expensive + 0] @main_cost_tier_1 = @[main_cost_base] @main_cost_tier_2 = @[main_cost_tier_1 + main_cost_scale_addition_per_tier] @@ -657,58 +707,67 @@ building_disable_inefficient_value_add = 5 @normal_maa_maintenance_tier_8 = @[normal_maa_maintenance_tier_7 + normal_maa_maintenance_addition_per_tier] @good_maa_maintenance_tier_1 = @[good_maa_maintenance_base] -@good_maa_maintenance_tier_2 = @[good_maa_maintenance_tier_1 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_3 = @[good_maa_maintenance_tier_2 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_4 = @[good_maa_maintenance_tier_3 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_5 = @[good_maa_maintenance_tier_4 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_6 = @[good_maa_maintenance_tier_5 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_7 = @[good_maa_maintenance_tier_6 + normal_maa_maintenance_addition_per_tier] -@good_maa_maintenance_tier_8 = @[good_maa_maintenance_tier_7 + normal_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_2 = @[good_maa_maintenance_tier_1 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_3 = @[good_maa_maintenance_tier_2 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_4 = @[good_maa_maintenance_tier_3 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_5 = @[good_maa_maintenance_tier_4 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_6 = @[good_maa_maintenance_tier_5 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_7 = @[good_maa_maintenance_tier_6 + good_maa_maintenance_addition_per_tier] +@good_maa_maintenance_tier_8 = @[good_maa_maintenance_tier_7 + good_maa_maintenance_addition_per_tier] -@low_development_growth_tier_1 = @[low_development_growth_base] -@low_development_growth_tier_2 = @[low_development_growth_tier_1 + low_development_growth_addition_per_tier] -@low_development_growth_tier_3 = @[low_development_growth_tier_2 + low_development_growth_addition_per_tier] -@low_development_growth_tier_4 = @[low_development_growth_tier_3 + low_development_growth_addition_per_tier] -@low_development_growth_tier_5 = @[low_development_growth_tier_4 + low_development_growth_addition_per_tier] -@low_development_growth_tier_6 = @[low_development_growth_tier_5 + low_development_growth_addition_per_tier] -@low_development_growth_tier_7 = @[low_development_growth_tier_6 + low_development_growth_addition_per_tier] -@low_development_growth_tier_8 = @[low_development_growth_tier_7 + low_development_growth_addition_per_tier] +@low_prosperity_growth_tier_1 = @[low_prosperity_growth_base] +@low_prosperity_growth_tier_2 = @[low_prosperity_growth_tier_1 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_3 = @[low_prosperity_growth_tier_2 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_4 = @[low_prosperity_growth_tier_3 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_5 = @[low_prosperity_growth_tier_4 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_6 = @[low_prosperity_growth_tier_5 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_7 = @[low_prosperity_growth_tier_6 + low_prosperity_growth_addition_per_tier] +@low_prosperity_growth_tier_8 = @[low_prosperity_growth_tier_7 + low_prosperity_growth_addition_per_tier] -@normal_development_growth_tier_1 = @[normal_development_growth_base] -@normal_development_growth_tier_2 = @[normal_development_growth_tier_1 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_3 = @[normal_development_growth_tier_2 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_4 = @[normal_development_growth_tier_3 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_5 = @[normal_development_growth_tier_4 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_6 = @[normal_development_growth_tier_5 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_7 = @[normal_development_growth_tier_6 + normal_development_growth_addition_per_tier] -@normal_development_growth_tier_8 = @[normal_development_growth_tier_7 + normal_development_growth_addition_per_tier] +@normal_prosperity_growth_tier_1 = @[normal_prosperity_growth_base] +@normal_prosperity_growth_tier_2 = @[normal_prosperity_growth_tier_1 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_3 = @[normal_prosperity_growth_tier_2 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_4 = @[normal_prosperity_growth_tier_3 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_5 = @[normal_prosperity_growth_tier_4 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_6 = @[normal_prosperity_growth_tier_5 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_7 = @[normal_prosperity_growth_tier_6 + normal_prosperity_growth_addition_per_tier] +@normal_prosperity_growth_tier_8 = @[normal_prosperity_growth_tier_7 + normal_prosperity_growth_addition_per_tier] -@good_development_growth_tier_1 = @[good_development_growth_base] -@good_development_growth_tier_2 = @[good_development_growth_tier_1 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_3 = @[good_development_growth_tier_2 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_4 = @[good_development_growth_tier_3 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_5 = @[good_development_growth_tier_4 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_6 = @[good_development_growth_tier_5 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_7 = @[good_development_growth_tier_6 + normal_development_growth_addition_per_tier] -@good_development_growth_tier_8 = @[good_development_growth_tier_7 + normal_development_growth_addition_per_tier] +@good_prosperity_growth_tier_1 = @[good_prosperity_growth_base] +@good_prosperity_growth_tier_2 = @[good_prosperity_growth_tier_1 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_3 = @[good_prosperity_growth_tier_2 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_4 = @[good_prosperity_growth_tier_3 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_5 = @[good_prosperity_growth_tier_4 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_6 = @[good_prosperity_growth_tier_5 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_7 = @[good_prosperity_growth_tier_6 + normal_prosperity_growth_addition_per_tier] +@good_prosperity_growth_tier_8 = @[good_prosperity_growth_tier_7 + normal_prosperity_growth_addition_per_tier] -@normal_development_growth_factor_tier_1 = @[normal_development_growth_factor_base] -@normal_development_growth_factor_tier_2 = @[normal_development_growth_factor_tier_1 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_3 = @[normal_development_growth_factor_tier_2 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_4 = @[normal_development_growth_factor_tier_3 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_5 = @[normal_development_growth_factor_tier_4 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_6 = @[normal_development_growth_factor_tier_5 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_7 = @[normal_development_growth_factor_tier_6 + normal_development_growth_factor_addition_per_tier] -@normal_development_growth_factor_tier_8 = @[normal_development_growth_factor_tier_7 + normal_development_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_1 = @[normal_prosperity_growth_factor_base] +@normal_prosperity_growth_factor_tier_2 = @[normal_prosperity_growth_factor_tier_1 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_3 = @[normal_prosperity_growth_factor_tier_2 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_4 = @[normal_prosperity_growth_factor_tier_3 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_5 = @[normal_prosperity_growth_factor_tier_4 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_6 = @[normal_prosperity_growth_factor_tier_5 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_7 = @[normal_prosperity_growth_factor_tier_6 + normal_prosperity_growth_factor_addition_per_tier] +@normal_prosperity_growth_factor_tier_8 = @[normal_prosperity_growth_factor_tier_7 + normal_prosperity_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_1 = @[good_development_growth_factor_base] -@good_development_growth_factor_tier_2 = @[good_development_growth_factor_tier_1 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_3 = @[good_development_growth_factor_tier_2 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_4 = @[good_development_growth_factor_tier_3 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_5 = @[good_development_growth_factor_tier_4 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_6 = @[good_development_growth_factor_tier_5 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_7 = @[good_development_growth_factor_tier_6 + normal_development_growth_factor_addition_per_tier] -@good_development_growth_factor_tier_8 = @[good_development_growth_factor_tier_7 + normal_development_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_1 = @[good_prosperity_growth_factor_base] +@good_prosperity_growth_factor_tier_2 = @[good_prosperity_growth_factor_tier_1 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_3 = @[good_prosperity_growth_factor_tier_2 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_4 = @[good_prosperity_growth_factor_tier_3 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_5 = @[good_prosperity_growth_factor_tier_4 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_6 = @[good_prosperity_growth_factor_tier_5 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_7 = @[good_prosperity_growth_factor_tier_6 + normal_prosperity_growth_factor_addition_per_tier] +@good_prosperity_growth_factor_tier_8 = @[good_prosperity_growth_factor_tier_7 + normal_prosperity_growth_factor_addition_per_tier] + +@low_tax_mult_tier_1 = @[low_tax_mult_base] +@low_tax_mult_tier_2 = @[low_tax_mult_tier_1 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_3 = @[low_tax_mult_tier_2 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_4 = @[low_tax_mult_tier_3 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_5 = @[low_tax_mult_tier_4 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_6 = @[low_tax_mult_tier_5 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_7 = @[low_tax_mult_tier_6 + low_tax_mult_addition_per_tier] +@low_tax_mult_tier_8 = @[low_tax_mult_tier_7 + low_tax_mult_addition_per_tier] @normal_tax_mult_tier_1 = @[normal_tax_mult_base] @normal_tax_mult_tier_2 = @[normal_tax_mult_tier_1 + normal_tax_mult_addition_per_tier] @@ -733,6 +792,23 @@ building_disable_inefficient_value_add = 5 @tribal_cost_tier_3 = @[tribal_cost_tier_2 + tribal_cost_scale_addition_per_tier] @tribal_cost_tier_4 = @[tribal_cost_tier_3 + tribal_cost_scale_addition_per_tier] +# Duchy Support Mult +@duchy_support_maa_damage_tier_1 = @[duchy_support_damage_mult_base] +@duchy_support_maa_damage_tier_2 = @[duchy_support_maa_damage_tier_1 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_3 = @[duchy_support_maa_damage_tier_2 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_4 = @[duchy_support_maa_damage_tier_3 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_5 = @[duchy_support_maa_damage_tier_4 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_6 = @[duchy_support_maa_damage_tier_5 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_7 = @[duchy_support_maa_damage_tier_6 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_damage_tier_8 = @[duchy_support_maa_damage_tier_7 + duchy_support_damage_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_1 = @[duchy_support_toughness_mult_base] +@duchy_support_maa_toughness_tier_2 = @[duchy_support_maa_toughness_tier_1 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_3 = @[duchy_support_maa_toughness_tier_2 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_4 = @[duchy_support_maa_toughness_tier_3 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_5 = @[duchy_support_maa_toughness_tier_4 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_6 = @[duchy_support_maa_toughness_tier_5 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_7 = @[duchy_support_maa_toughness_tier_6 + duchy_support_toughness_mult_addition_per_tier] +@duchy_support_maa_toughness_tier_8 = @[duchy_support_maa_toughness_tier_7 + duchy_support_toughness_mult_addition_per_tier] # Low Damage Mult @low_maa_damage_tier_1 = @[low_damage_mult_base] @low_maa_damage_tier_2 = @[low_maa_damage_tier_1 + low_damage_mult_addition_per_tier] @@ -943,6 +1019,16 @@ building_disable_inefficient_value_add = 5 @normal_movement_speed_tier_7 = @[normal_movement_speed_tier_6 + normal_movement_speed_addition_per_tier] @normal_movement_speed_tier_8 = @[normal_movement_speed_tier_7 + normal_movement_speed_addition_per_tier] +# Good Movement Speed +@good_movement_speed_tier_1 = @[good_movement_speed_base] +@good_movement_speed_tier_2 = @[good_movement_speed_tier_1 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_3 = @[good_movement_speed_tier_2 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_4 = @[good_movement_speed_tier_3 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_5 = @[good_movement_speed_tier_4 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_6 = @[good_movement_speed_tier_5 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_7 = @[good_movement_speed_tier_6 + good_movement_speed_addition_per_tier] +@good_movement_speed_tier_8 = @[good_movement_speed_tier_7 + good_movement_speed_addition_per_tier] + # High Movement Speed @high_movement_speed_tier_1 = @[high_movement_speed_base] @high_movement_speed_tier_2 = @[high_movement_speed_tier_1 + high_movement_speed_addition_per_tier] @@ -1077,6 +1163,24 @@ very_high_maa_toughness_tier_6 = @very_high_maa_toughness_tier_6 very_high_maa_toughness_tier_7 = @very_high_maa_toughness_tier_7 very_high_maa_toughness_tier_8 = @very_high_maa_toughness_tier_8 + +#Special Weapon Smith Needs +@toledo_bladesmiths_maa_bonus = 0.025 #Used by unique smith building in Toledo +@damascus_steel_maa_bonus = 0.025 #Used by Damascus steel innovation +@toledo_bladesmiths_maa_damage = @[normal_maa_damage_tier_1 + toledo_bladesmiths_maa_bonus] +@toledo_bladesmiths_maa_toughness = @[normal_maa_toughness_tier_1 + toledo_bladesmiths_maa_bonus] +@damascus_steel_maa_damage = @[normal_maa_damage_tier_1 + damascus_steel_maa_bonus] +@damascus_steel_maa_toughness = @[normal_maa_toughness_tier_1 + damascus_steel_maa_bonus] +#If you have both they can stack +@toledo_bladesmiths_damascus_steel_maa_damage = @[toledo_bladesmiths_maa_damage + damascus_steel_maa_bonus] +@toledo_bladesmiths_damascus_steel_maa_toughness = @[toledo_bladesmiths_maa_toughness + damascus_steel_maa_bonus] +toledo_bladesmiths_maa_damage = @toledo_bladesmiths_maa_damage +toledo_bladesmiths_maa_toughness = @toledo_bladesmiths_maa_toughness +damascus_steel_maa_damage = @damascus_steel_maa_damage +damascus_steel_maa_toughness = @damascus_steel_maa_toughness +toledo_bladesmiths_damascus_steel_maa_damage = @toledo_bladesmiths_damascus_steel_maa_damage +toledo_bladesmiths_damascus_steel_maa_toughness = @toledo_bladesmiths_damascus_steel_maa_toughness + # Low Pursuit Mult low_maa_pursuit_tier_1 = @low_maa_pursuit_tier_1 low_maa_pursuit_tier_2 = @low_maa_pursuit_tier_2 @@ -1197,6 +1301,240 @@ very_high_maa_siege_value_tier_6 = @very_high_maa_siege_value_tier_6 very_high_maa_siege_value_tier_7 = @very_high_maa_siege_value_tier_7 very_high_maa_siege_value_tier_8 = @very_high_maa_siege_value_tier_8 +#################### +# Duchy MaA Values # +#################### + +# Half the province bands, for stationed bonuses that apply across the whole duchy. + +# Duchy Low Damage Mult +duchy_low_maa_damage_tier_1 = @[low_maa_damage_tier_1 / 2] +duchy_low_maa_damage_tier_2 = @[low_maa_damage_tier_2 / 2] +duchy_low_maa_damage_tier_3 = @[low_maa_damage_tier_3 / 2] +duchy_low_maa_damage_tier_4 = @[low_maa_damage_tier_4 / 2] +duchy_low_maa_damage_tier_5 = @[low_maa_damage_tier_5 / 2] +duchy_low_maa_damage_tier_6 = @[low_maa_damage_tier_6 / 2] +duchy_low_maa_damage_tier_7 = @[low_maa_damage_tier_7 / 2] +duchy_low_maa_damage_tier_8 = @[low_maa_damage_tier_8 / 2] + +# Duchy Normal Damage Mult +duchy_normal_maa_damage_tier_1 = @[normal_maa_damage_tier_1 / 2] +duchy_normal_maa_damage_tier_2 = @[normal_maa_damage_tier_2 / 2] +duchy_normal_maa_damage_tier_3 = @[normal_maa_damage_tier_3 / 2] +duchy_normal_maa_damage_tier_4 = @[normal_maa_damage_tier_4 / 2] +duchy_normal_maa_damage_tier_5 = @[normal_maa_damage_tier_5 / 2] +duchy_normal_maa_damage_tier_6 = @[normal_maa_damage_tier_6 / 2] +duchy_normal_maa_damage_tier_7 = @[normal_maa_damage_tier_7 / 2] +duchy_normal_maa_damage_tier_8 = @[normal_maa_damage_tier_8 / 2] + +# Duchy High Damage Mult +duchy_high_maa_damage_tier_1 = @[high_maa_damage_tier_1 / 2] +duchy_high_maa_damage_tier_2 = @[high_maa_damage_tier_2 / 2] +duchy_high_maa_damage_tier_3 = @[high_maa_damage_tier_3 / 2] +duchy_high_maa_damage_tier_4 = @[high_maa_damage_tier_4 / 2] +duchy_high_maa_damage_tier_5 = @[high_maa_damage_tier_5 / 2] +duchy_high_maa_damage_tier_6 = @[high_maa_damage_tier_6 / 2] +duchy_high_maa_damage_tier_7 = @[high_maa_damage_tier_7 / 2] +duchy_high_maa_damage_tier_8 = @[high_maa_damage_tier_8 / 2] + +# Duchy Very High Damage Mult +duchy_very_high_maa_damage_tier_1 = @[very_high_maa_damage_tier_1 / 2] +duchy_very_high_maa_damage_tier_2 = @[very_high_maa_damage_tier_2 / 2] +duchy_very_high_maa_damage_tier_3 = @[very_high_maa_damage_tier_3 / 2] +duchy_very_high_maa_damage_tier_4 = @[very_high_maa_damage_tier_4 / 2] +duchy_very_high_maa_damage_tier_5 = @[very_high_maa_damage_tier_5 / 2] +duchy_very_high_maa_damage_tier_6 = @[very_high_maa_damage_tier_6 / 2] +duchy_very_high_maa_damage_tier_7 = @[very_high_maa_damage_tier_7 / 2] +duchy_very_high_maa_damage_tier_8 = @[very_high_maa_damage_tier_8 / 2] + +# Duchy Low Toughness Mult +duchy_low_maa_toughness_tier_1 = @[low_maa_toughness_tier_1 / 2] +duchy_low_maa_toughness_tier_2 = @[low_maa_toughness_tier_2 / 2] +duchy_low_maa_toughness_tier_3 = @[low_maa_toughness_tier_3 / 2] +duchy_low_maa_toughness_tier_4 = @[low_maa_toughness_tier_4 / 2] +duchy_low_maa_toughness_tier_5 = @[low_maa_toughness_tier_5 / 2] +duchy_low_maa_toughness_tier_6 = @[low_maa_toughness_tier_6 / 2] +duchy_low_maa_toughness_tier_7 = @[low_maa_toughness_tier_7 / 2] +duchy_low_maa_toughness_tier_8 = @[low_maa_toughness_tier_8 / 2] + +# Duchy Normal Toughness Mult +duchy_normal_maa_toughness_tier_1 = @[normal_maa_toughness_tier_1 / 2] +duchy_normal_maa_toughness_tier_2 = @[normal_maa_toughness_tier_2 / 2] +duchy_normal_maa_toughness_tier_3 = @[normal_maa_toughness_tier_3 / 2] +duchy_normal_maa_toughness_tier_4 = @[normal_maa_toughness_tier_4 / 2] +duchy_normal_maa_toughness_tier_5 = @[normal_maa_toughness_tier_5 / 2] +duchy_normal_maa_toughness_tier_6 = @[normal_maa_toughness_tier_6 / 2] +duchy_normal_maa_toughness_tier_7 = @[normal_maa_toughness_tier_7 / 2] +duchy_normal_maa_toughness_tier_8 = @[normal_maa_toughness_tier_8 / 2] + +# Duchy High Toughness Mult +duchy_high_maa_toughness_tier_1 = @[high_maa_toughness_tier_1 / 2] +duchy_high_maa_toughness_tier_2 = @[high_maa_toughness_tier_2 / 2] +duchy_high_maa_toughness_tier_3 = @[high_maa_toughness_tier_3 / 2] +duchy_high_maa_toughness_tier_4 = @[high_maa_toughness_tier_4 / 2] +duchy_high_maa_toughness_tier_5 = @[high_maa_toughness_tier_5 / 2] +duchy_high_maa_toughness_tier_6 = @[high_maa_toughness_tier_6 / 2] +duchy_high_maa_toughness_tier_7 = @[high_maa_toughness_tier_7 / 2] +duchy_high_maa_toughness_tier_8 = @[high_maa_toughness_tier_8 / 2] + +# Duchy Very High Toughness Mult +duchy_very_high_maa_toughness_tier_1 = @[very_high_maa_toughness_tier_1 / 2] +duchy_very_high_maa_toughness_tier_2 = @[very_high_maa_toughness_tier_2 / 2] +duchy_very_high_maa_toughness_tier_3 = @[very_high_maa_toughness_tier_3 / 2] +duchy_very_high_maa_toughness_tier_4 = @[very_high_maa_toughness_tier_4 / 2] +duchy_very_high_maa_toughness_tier_5 = @[very_high_maa_toughness_tier_5 / 2] +duchy_very_high_maa_toughness_tier_6 = @[very_high_maa_toughness_tier_6 / 2] +duchy_very_high_maa_toughness_tier_7 = @[very_high_maa_toughness_tier_7 / 2] +duchy_very_high_maa_toughness_tier_8 = @[very_high_maa_toughness_tier_8 / 2] + +# Duchy Low Screen Mult +duchy_low_maa_screen_tier_1 = @[low_maa_screen_tier_1 / 2] +duchy_low_maa_screen_tier_2 = @[low_maa_screen_tier_2 / 2] +duchy_low_maa_screen_tier_3 = @[low_maa_screen_tier_3 / 2] +duchy_low_maa_screen_tier_4 = @[low_maa_screen_tier_4 / 2] +duchy_low_maa_screen_tier_5 = @[low_maa_screen_tier_5 / 2] +duchy_low_maa_screen_tier_6 = @[low_maa_screen_tier_6 / 2] +duchy_low_maa_screen_tier_7 = @[low_maa_screen_tier_7 / 2] +duchy_low_maa_screen_tier_8 = @[low_maa_screen_tier_8 / 2] + +# Duchy Normal Screen Mult +duchy_normal_maa_screen_tier_1 = @[normal_maa_screen_tier_1 / 2] +duchy_normal_maa_screen_tier_2 = @[normal_maa_screen_tier_2 / 2] +duchy_normal_maa_screen_tier_3 = @[normal_maa_screen_tier_3 / 2] +duchy_normal_maa_screen_tier_4 = @[normal_maa_screen_tier_4 / 2] +duchy_normal_maa_screen_tier_5 = @[normal_maa_screen_tier_5 / 2] +duchy_normal_maa_screen_tier_6 = @[normal_maa_screen_tier_6 / 2] +duchy_normal_maa_screen_tier_7 = @[normal_maa_screen_tier_7 / 2] +duchy_normal_maa_screen_tier_8 = @[normal_maa_screen_tier_8 / 2] + +# Duchy High Screen Mult +duchy_high_maa_screen_tier_1 = @[high_maa_screen_tier_1 / 2] +duchy_high_maa_screen_tier_2 = @[high_maa_screen_tier_2 / 2] +duchy_high_maa_screen_tier_3 = @[high_maa_screen_tier_3 / 2] +duchy_high_maa_screen_tier_4 = @[high_maa_screen_tier_4 / 2] +duchy_high_maa_screen_tier_5 = @[high_maa_screen_tier_5 / 2] +duchy_high_maa_screen_tier_6 = @[high_maa_screen_tier_6 / 2] +duchy_high_maa_screen_tier_7 = @[high_maa_screen_tier_7 / 2] +duchy_high_maa_screen_tier_8 = @[high_maa_screen_tier_8 / 2] + +# Duchy Very High Screen Mult +duchy_very_high_maa_screen_tier_1 = @[very_high_maa_screen_tier_1 / 2] +duchy_very_high_maa_screen_tier_2 = @[very_high_maa_screen_tier_2 / 2] +duchy_very_high_maa_screen_tier_3 = @[very_high_maa_screen_tier_3 / 2] +duchy_very_high_maa_screen_tier_4 = @[very_high_maa_screen_tier_4 / 2] +duchy_very_high_maa_screen_tier_5 = @[very_high_maa_screen_tier_5 / 2] +duchy_very_high_maa_screen_tier_6 = @[very_high_maa_screen_tier_6 / 2] +duchy_very_high_maa_screen_tier_7 = @[very_high_maa_screen_tier_7 / 2] +duchy_very_high_maa_screen_tier_8 = @[very_high_maa_screen_tier_8 / 2] + +# Duchy Low Pursuit Mult +duchy_low_maa_pursuit_tier_1 = @[low_maa_pursuit_tier_1 / 2] +duchy_low_maa_pursuit_tier_2 = @[low_maa_pursuit_tier_2 / 2] +duchy_low_maa_pursuit_tier_3 = @[low_maa_pursuit_tier_3 / 2] +duchy_low_maa_pursuit_tier_4 = @[low_maa_pursuit_tier_4 / 2] +duchy_low_maa_pursuit_tier_5 = @[low_maa_pursuit_tier_5 / 2] +duchy_low_maa_pursuit_tier_6 = @[low_maa_pursuit_tier_6 / 2] +duchy_low_maa_pursuit_tier_7 = @[low_maa_pursuit_tier_7 / 2] +duchy_low_maa_pursuit_tier_8 = @[low_maa_pursuit_tier_8 / 2] + +# Duchy Normal Pursuit Mult +duchy_normal_maa_pursuit_tier_1 = @[normal_maa_pursuit_tier_1 / 2] +duchy_normal_maa_pursuit_tier_2 = @[normal_maa_pursuit_tier_2 / 2] +duchy_normal_maa_pursuit_tier_3 = @[normal_maa_pursuit_tier_3 / 2] +duchy_normal_maa_pursuit_tier_4 = @[normal_maa_pursuit_tier_4 / 2] +duchy_normal_maa_pursuit_tier_5 = @[normal_maa_pursuit_tier_5 / 2] +duchy_normal_maa_pursuit_tier_6 = @[normal_maa_pursuit_tier_6 / 2] +duchy_normal_maa_pursuit_tier_7 = @[normal_maa_pursuit_tier_7 / 2] +duchy_normal_maa_pursuit_tier_8 = @[normal_maa_pursuit_tier_8 / 2] + +# Duchy High Pursuit Mult +duchy_high_maa_pursuit_tier_1 = @[high_maa_pursuit_tier_1 / 2] +duchy_high_maa_pursuit_tier_2 = @[high_maa_pursuit_tier_2 / 2] +duchy_high_maa_pursuit_tier_3 = @[high_maa_pursuit_tier_3 / 2] +duchy_high_maa_pursuit_tier_4 = @[high_maa_pursuit_tier_4 / 2] +duchy_high_maa_pursuit_tier_5 = @[high_maa_pursuit_tier_5 / 2] +duchy_high_maa_pursuit_tier_6 = @[high_maa_pursuit_tier_6 / 2] +duchy_high_maa_pursuit_tier_7 = @[high_maa_pursuit_tier_7 / 2] +duchy_high_maa_pursuit_tier_8 = @[high_maa_pursuit_tier_8 / 2] + +# Duchy Very High Pursuit Mult +duchy_very_high_maa_pursuit_tier_1 = @[very_high_maa_pursuit_tier_1 / 2] +duchy_very_high_maa_pursuit_tier_2 = @[very_high_maa_pursuit_tier_2 / 2] +duchy_very_high_maa_pursuit_tier_3 = @[very_high_maa_pursuit_tier_3 / 2] +duchy_very_high_maa_pursuit_tier_4 = @[very_high_maa_pursuit_tier_4 / 2] +duchy_very_high_maa_pursuit_tier_5 = @[very_high_maa_pursuit_tier_5 / 2] +duchy_very_high_maa_pursuit_tier_6 = @[very_high_maa_pursuit_tier_6 / 2] +duchy_very_high_maa_pursuit_tier_7 = @[very_high_maa_pursuit_tier_7 / 2] +duchy_very_high_maa_pursuit_tier_8 = @[very_high_maa_pursuit_tier_8 / 2] + +# Duchy Low Siege Value Mult +duchy_low_maa_siege_value_tier_1 = @[low_maa_siege_value_tier_1 / 2] +duchy_low_maa_siege_value_tier_2 = @[low_maa_siege_value_tier_2 / 2] +duchy_low_maa_siege_value_tier_3 = @[low_maa_siege_value_tier_3 / 2] +duchy_low_maa_siege_value_tier_4 = @[low_maa_siege_value_tier_4 / 2] +duchy_low_maa_siege_value_tier_5 = @[low_maa_siege_value_tier_5 / 2] +duchy_low_maa_siege_value_tier_6 = @[low_maa_siege_value_tier_6 / 2] +duchy_low_maa_siege_value_tier_7 = @[low_maa_siege_value_tier_7 / 2] +duchy_low_maa_siege_value_tier_8 = @[low_maa_siege_value_tier_8 / 2] + +# Duchy Normal Siege Value Mult +duchy_normal_maa_siege_value_tier_1 = @[normal_maa_siege_value_tier_1 / 2] +duchy_normal_maa_siege_value_tier_2 = @[normal_maa_siege_value_tier_2 / 2] +duchy_normal_maa_siege_value_tier_3 = @[normal_maa_siege_value_tier_3 / 2] +duchy_normal_maa_siege_value_tier_4 = @[normal_maa_siege_value_tier_4 / 2] +duchy_normal_maa_siege_value_tier_5 = @[normal_maa_siege_value_tier_5 / 2] +duchy_normal_maa_siege_value_tier_6 = @[normal_maa_siege_value_tier_6 / 2] +duchy_normal_maa_siege_value_tier_7 = @[normal_maa_siege_value_tier_7 / 2] +duchy_normal_maa_siege_value_tier_8 = @[normal_maa_siege_value_tier_8 / 2] + +# Duchy High Siege Value Mult +duchy_high_maa_siege_value_tier_1 = @[high_maa_siege_value_tier_1 / 2] +duchy_high_maa_siege_value_tier_2 = @[high_maa_siege_value_tier_2 / 2] +duchy_high_maa_siege_value_tier_3 = @[high_maa_siege_value_tier_3 / 2] +duchy_high_maa_siege_value_tier_4 = @[high_maa_siege_value_tier_4 / 2] +duchy_high_maa_siege_value_tier_5 = @[high_maa_siege_value_tier_5 / 2] +duchy_high_maa_siege_value_tier_6 = @[high_maa_siege_value_tier_6 / 2] +duchy_high_maa_siege_value_tier_7 = @[high_maa_siege_value_tier_7 / 2] +duchy_high_maa_siege_value_tier_8 = @[high_maa_siege_value_tier_8 / 2] + +# Duchy Very High Siege Value Mult +duchy_very_high_maa_siege_value_tier_1 = @[very_high_maa_siege_value_tier_1 / 2] +duchy_very_high_maa_siege_value_tier_2 = @[very_high_maa_siege_value_tier_2 / 2] +duchy_very_high_maa_siege_value_tier_3 = @[very_high_maa_siege_value_tier_3 / 2] +duchy_very_high_maa_siege_value_tier_4 = @[very_high_maa_siege_value_tier_4 / 2] +duchy_very_high_maa_siege_value_tier_5 = @[very_high_maa_siege_value_tier_5 / 2] +duchy_very_high_maa_siege_value_tier_6 = @[very_high_maa_siege_value_tier_6 / 2] +duchy_very_high_maa_siege_value_tier_7 = @[very_high_maa_siege_value_tier_7 / 2] +duchy_very_high_maa_siege_value_tier_8 = @[very_high_maa_siege_value_tier_8 / 2] + +# Support bonuses on the economic office extras. + +# Duchy Support Damage Mult +duchy_support_maa_damage_tier_1 = @duchy_support_maa_damage_tier_1 +duchy_support_maa_damage_tier_2 = @duchy_support_maa_damage_tier_2 +duchy_support_maa_damage_tier_3 = @duchy_support_maa_damage_tier_3 +duchy_support_maa_damage_tier_4 = @duchy_support_maa_damage_tier_4 +duchy_support_maa_damage_tier_5 = @duchy_support_maa_damage_tier_5 +duchy_support_maa_damage_tier_6 = @duchy_support_maa_damage_tier_6 +duchy_support_maa_damage_tier_7 = @duchy_support_maa_damage_tier_7 +duchy_support_maa_damage_tier_8 = @duchy_support_maa_damage_tier_8 + +# Duchy Support Toughness Mult +duchy_support_maa_toughness_tier_1 = @duchy_support_maa_toughness_tier_1 +duchy_support_maa_toughness_tier_2 = @duchy_support_maa_toughness_tier_2 +duchy_support_maa_toughness_tier_3 = @duchy_support_maa_toughness_tier_3 +duchy_support_maa_toughness_tier_4 = @duchy_support_maa_toughness_tier_4 +duchy_support_maa_toughness_tier_5 = @duchy_support_maa_toughness_tier_5 +duchy_support_maa_toughness_tier_6 = @duchy_support_maa_toughness_tier_6 +duchy_support_maa_toughness_tier_7 = @duchy_support_maa_toughness_tier_7 +duchy_support_maa_toughness_tier_8 = @duchy_support_maa_toughness_tier_8 + +########################## +# Duchy Office Buildings # +########################## + +minting_court_civic_tax_per_metal_need = 0.05 + ################## # Movement Speed # ################## @@ -1211,6 +1549,16 @@ normal_movement_speed_tier_6 = @normal_movement_speed_tier_6 normal_movement_speed_tier_7 = @normal_movement_speed_tier_7 normal_movement_speed_tier_8 = @normal_movement_speed_tier_8 +# Good Movement Speed +good_movement_speed_tier_1 = @good_movement_speed_tier_1 +good_movement_speed_tier_2 = @good_movement_speed_tier_2 +good_movement_speed_tier_3 = @good_movement_speed_tier_3 +good_movement_speed_tier_4 = @good_movement_speed_tier_4 +good_movement_speed_tier_5 = @good_movement_speed_tier_5 +good_movement_speed_tier_6 = @good_movement_speed_tier_6 +good_movement_speed_tier_7 = @good_movement_speed_tier_7 +good_movement_speed_tier_8 = @good_movement_speed_tier_8 + # High Movement Speed high_movement_speed_tier_1 = @high_movement_speed_tier_1 high_movement_speed_tier_2 = @high_movement_speed_tier_2 @@ -1292,6 +1640,8 @@ normal_building_tier_5_cost = @[normal_cost_tier_5] normal_building_tier_6_cost = @[normal_cost_tier_6] normal_building_tier_7_cost = @[normal_cost_tier_7] normal_building_tier_8_cost = @[normal_cost_tier_8] +normal_building_tier_9_cost = @[normal_cost_tier_9] +normal_building_tier_10_cost = @[normal_cost_tier_10] # Expensive Buildings expensive_building_tier_1_cost = @[expensive_cost_tier_1] @@ -1312,9 +1662,11 @@ very_expensive_building_tier_5_cost = @[very_expensive_cost_tier_5] very_expensive_building_tier_6_cost = @[very_expensive_cost_tier_6] very_expensive_building_tier_7_cost = @[very_expensive_cost_tier_7] very_expensive_building_tier_8_cost = @[very_expensive_cost_tier_8] +expensive_building_tier_9_cost = @[expensive_cost_tier_9] +expensive_building_tier_10_cost = @[expensive_cost_tier_10] # Main Buildings (Castle, Temple, City) -main_building_tier_1_cost = @[main_cost_tier_1] +main_building_tier_1_cost = @[main_cost_new_holding] main_building_tier_2_cost = @[main_cost_tier_2] main_building_tier_3_cost = @[main_cost_tier_3] main_building_tier_4_cost = @[main_cost_tier_4] @@ -1359,6 +1711,16 @@ good_building_tax_tier_6 = @[good_tax_tier_6] good_building_tax_tier_7 = @[good_tax_tier_7] good_building_tax_tier_8 = @[good_tax_tier_8] +# Good Tax, halved +good_building_tax_halved_tier_1 = @[good_tax_tier_1 * 0.5] +good_building_tax_halved_tier_2 = @[good_tax_tier_2 * 0.5] +good_building_tax_halved_tier_3 = @[good_tax_tier_3 * 0.5] +good_building_tax_halved_tier_4 = @[good_tax_tier_4 * 0.5] +good_building_tax_halved_tier_5 = @[good_tax_tier_5 * 0.5] +good_building_tax_halved_tier_6 = @[good_tax_tier_6 * 0.5] +good_building_tax_halved_tier_7 = @[good_tax_tier_7 * 0.5] +good_building_tax_halved_tier_8 = @[good_tax_tier_8 * 0.5] + # Excellent Tax excellent_building_tax_tier_1 = @[excellent_tax_tier_1] excellent_building_tax_tier_2 = @[excellent_tax_tier_2] @@ -1369,6 +1731,86 @@ excellent_building_tax_tier_6 = @[excellent_tax_tier_6] excellent_building_tax_tier_7 = @[excellent_tax_tier_7] excellent_building_tax_tier_8 = @[excellent_tax_tier_8] +# Poor Artisan Tax +poor_artisan_building_tax_tier_1 = @[poor_tax_tier_1 * 0.75] +poor_artisan_building_tax_tier_2 = @[poor_tax_tier_2 * 0.75] +poor_artisan_building_tax_tier_3 = @[poor_tax_tier_3 * 0.75] +poor_artisan_building_tax_tier_4 = @[poor_tax_tier_4 * 0.75] +poor_artisan_building_tax_tier_5 = @[poor_tax_tier_5 * 0.75] +poor_artisan_building_tax_tier_6 = @[poor_tax_tier_6 * 0.75] +poor_artisan_building_tax_tier_7 = @[poor_tax_tier_7 * 0.75] +poor_artisan_building_tax_tier_8 = @[poor_tax_tier_8 * 0.75] + +# Normal Artisan Tax +normal_artisan_building_tax_tier_1 = @[normal_tax_tier_1 * 0.75] +normal_artisan_building_tax_tier_2 = @[normal_tax_tier_2 * 0.75] +normal_artisan_building_tax_tier_3 = @[normal_tax_tier_3 * 0.75] +normal_artisan_building_tax_tier_4 = @[normal_tax_tier_4 * 0.75] +normal_artisan_building_tax_tier_5 = @[normal_tax_tier_5 * 0.75] +normal_artisan_building_tax_tier_6 = @[normal_tax_tier_6 * 0.75] +normal_artisan_building_tax_tier_7 = @[normal_tax_tier_7 * 0.75] +normal_artisan_building_tax_tier_8 = @[normal_tax_tier_8 * 0.75] + +# Good Artisan Tax +good_artisan_building_tax_tier_1 = @[good_tax_tier_1 * 0.75] +good_artisan_building_tax_tier_2 = @[good_tax_tier_2 * 0.75] +good_artisan_building_tax_tier_3 = @[good_tax_tier_3 * 0.75] +good_artisan_building_tax_tier_4 = @[good_tax_tier_4 * 0.75] +good_artisan_building_tax_tier_5 = @[good_tax_tier_5 * 0.75] +good_artisan_building_tax_tier_6 = @[good_tax_tier_6 * 0.75] +good_artisan_building_tax_tier_7 = @[good_tax_tier_7 * 0.75] +good_artisan_building_tax_tier_8 = @[good_tax_tier_8 * 0.75] + +# Excellent Artisan Tax +excellent_artisan_building_tax_tier_1 = @[excellent_tax_tier_1 * 0.75] +excellent_artisan_building_tax_tier_2 = @[excellent_tax_tier_2 * 0.75] +excellent_artisan_building_tax_tier_3 = @[excellent_tax_tier_3 * 0.75] +excellent_artisan_building_tax_tier_4 = @[excellent_tax_tier_4 * 0.75] +excellent_artisan_building_tax_tier_5 = @[excellent_tax_tier_5 * 0.75] +excellent_artisan_building_tax_tier_6 = @[excellent_tax_tier_6 * 0.75] +excellent_artisan_building_tax_tier_7 = @[excellent_tax_tier_7 * 0.75] +excellent_artisan_building_tax_tier_8 = @[excellent_tax_tier_8 * 0.75] + +# Poor Market Tax +poor_market_building_tax_tier_1 = @[poor_tax_tier_1 * 0.5] +poor_market_building_tax_tier_2 = @[poor_tax_tier_2 * 0.5] +poor_market_building_tax_tier_3 = @[poor_tax_tier_3 * 0.5] +poor_market_building_tax_tier_4 = @[poor_tax_tier_4 * 0.5] +poor_market_building_tax_tier_5 = @[poor_tax_tier_5 * 0.5] +poor_market_building_tax_tier_6 = @[poor_tax_tier_6 * 0.5] +poor_market_building_tax_tier_7 = @[poor_tax_tier_7 * 0.5] +poor_market_building_tax_tier_8 = @[poor_tax_tier_8 * 0.5] + +# Normal Market Tax +normal_market_building_tax_tier_1 = @[normal_tax_tier_1 * 0.5] +normal_market_building_tax_tier_2 = @[normal_tax_tier_2 * 0.5] +normal_market_building_tax_tier_3 = @[normal_tax_tier_3 * 0.5] +normal_market_building_tax_tier_4 = @[normal_tax_tier_4 * 0.5] +normal_market_building_tax_tier_5 = @[normal_tax_tier_5 * 0.5] +normal_market_building_tax_tier_6 = @[normal_tax_tier_6 * 0.5] +normal_market_building_tax_tier_7 = @[normal_tax_tier_7 * 0.5] +normal_market_building_tax_tier_8 = @[normal_tax_tier_8 * 0.5] + +# Good Market Tax +good_market_building_tax_tier_1 = @[good_tax_tier_1 * 0.5] +good_market_building_tax_tier_2 = @[good_tax_tier_2 * 0.5] +good_market_building_tax_tier_3 = @[good_tax_tier_3 * 0.5] +good_market_building_tax_tier_4 = @[good_tax_tier_4 * 0.5] +good_market_building_tax_tier_5 = @[good_tax_tier_5 * 0.5] +good_market_building_tax_tier_6 = @[good_tax_tier_6 * 0.5] +good_market_building_tax_tier_7 = @[good_tax_tier_7 * 0.5] +good_market_building_tax_tier_8 = @[good_tax_tier_8 * 0.5] + +# Excellent Market Tax +excellent_market_building_tax_tier_1 = @[excellent_tax_tier_1 * 0.5] +excellent_market_building_tax_tier_2 = @[excellent_tax_tier_2 * 0.5] +excellent_market_building_tax_tier_3 = @[excellent_tax_tier_3 * 0.5] +excellent_market_building_tax_tier_4 = @[excellent_tax_tier_4 * 0.5] +excellent_market_building_tax_tier_5 = @[excellent_tax_tier_5 * 0.5] +excellent_market_building_tax_tier_6 = @[excellent_tax_tier_6 * 0.5] +excellent_market_building_tax_tier_7 = @[excellent_tax_tier_7 * 0.5] +excellent_market_building_tax_tier_8 = @[excellent_tax_tier_8 * 0.5] + # Poor Tax, negative poor_building_tax_negative_tier_1 = @[poor_tax_tier_1 * -0.5] poor_building_tax_negative_tier_2 = @[poor_tax_tier_2 * -0.5] @@ -1409,6 +1851,16 @@ super_poor_building_tax_tier_6 = @[poor_tax_tier_6 / 2] super_poor_building_tax_tier_7 = @[poor_tax_tier_7 / 2] super_poor_building_tax_tier_8 = @[poor_tax_tier_8 / 2] +# Super Poor Tax, halved again for faiths that ask their religious buildings to want less +super_poor_building_tax_halved_tier_1 = @[poor_tax_tier_1 / 4] +super_poor_building_tax_halved_tier_2 = @[poor_tax_tier_2 / 4] +super_poor_building_tax_halved_tier_3 = @[poor_tax_tier_3 / 4] +super_poor_building_tax_halved_tier_4 = @[poor_tax_tier_4 / 4] +super_poor_building_tax_halved_tier_5 = @[poor_tax_tier_5 / 4] +super_poor_building_tax_halved_tier_6 = @[poor_tax_tier_6 / 4] +super_poor_building_tax_halved_tier_7 = @[poor_tax_tier_7 / 4] +super_poor_building_tax_halved_tier_8 = @[poor_tax_tier_8 / 4] + # Special Mine Tax, for unique buildings and such special_mine_building_tax_tier_1 = @[special_mine_tax_tier_1] special_mine_building_tax_tier_2 = @[special_mine_tax_tier_2] @@ -1482,59 +1934,68 @@ good_building_maa_maintenance_tier_6 = @[good_maa_maintenance_tier_6] good_building_maa_maintenance_tier_7 = @[good_maa_maintenance_tier_7] good_building_maa_maintenance_tier_8 = @[good_maa_maintenance_tier_8] -low_building_development_growth_tier_1 = @[low_development_growth_tier_1] -low_building_development_growth_tier_2 = @[low_development_growth_tier_2] -low_building_development_growth_tier_3 = @[low_development_growth_tier_3] -low_building_development_growth_tier_4 = @[low_development_growth_tier_4] -low_building_development_growth_tier_5 = @[low_development_growth_tier_5] -low_building_development_growth_tier_6 = @[low_development_growth_tier_6] -low_building_development_growth_tier_7 = @[low_development_growth_tier_7] -low_building_development_growth_tier_8 = @[low_development_growth_tier_8] +low_building_prosperity_growth_tier_1 = @[low_prosperity_growth_tier_1] +low_building_prosperity_growth_tier_2 = @[low_prosperity_growth_tier_2] +low_building_prosperity_growth_tier_3 = @[low_prosperity_growth_tier_3] +low_building_prosperity_growth_tier_4 = @[low_prosperity_growth_tier_4] +low_building_prosperity_growth_tier_5 = @[low_prosperity_growth_tier_5] +low_building_prosperity_growth_tier_6 = @[low_prosperity_growth_tier_6] +low_building_prosperity_growth_tier_7 = @[low_prosperity_growth_tier_7] +low_building_prosperity_growth_tier_8 = @[low_prosperity_growth_tier_8] -normal_building_development_growth_tier_1 = @[normal_development_growth_tier_1] -normal_building_development_growth_tier_2 = @[normal_development_growth_tier_2] -normal_building_development_growth_tier_3 = @[normal_development_growth_tier_3] -normal_building_development_growth_tier_4 = @[normal_development_growth_tier_4] -normal_building_development_growth_tier_5 = @[normal_development_growth_tier_5] -normal_building_development_growth_tier_6 = @[normal_development_growth_tier_6] -normal_building_development_growth_tier_7 = @[normal_development_growth_tier_7] -normal_building_development_growth_tier_8 = @[normal_development_growth_tier_8] +normal_building_prosperity_growth_tier_1 = @[normal_prosperity_growth_tier_1] +normal_building_prosperity_growth_tier_2 = @[normal_prosperity_growth_tier_2] +normal_building_prosperity_growth_tier_3 = @[normal_prosperity_growth_tier_3] +normal_building_prosperity_growth_tier_4 = @[normal_prosperity_growth_tier_4] +normal_building_prosperity_growth_tier_5 = @[normal_prosperity_growth_tier_5] +normal_building_prosperity_growth_tier_6 = @[normal_prosperity_growth_tier_6] +normal_building_prosperity_growth_tier_7 = @[normal_prosperity_growth_tier_7] +normal_building_prosperity_growth_tier_8 = @[normal_prosperity_growth_tier_8] -good_building_development_growth_tier_1 = @[good_development_growth_tier_1] -good_building_development_growth_tier_2 = @[good_development_growth_tier_2] -good_building_development_growth_tier_3 = @[good_development_growth_tier_3] -good_building_development_growth_tier_4 = @[good_development_growth_tier_4] -good_building_development_growth_tier_5 = @[good_development_growth_tier_5] -good_building_development_growth_tier_6 = @[good_development_growth_tier_6] -good_building_development_growth_tier_7 = @[good_development_growth_tier_7] -good_building_development_growth_tier_8 = @[good_development_growth_tier_8] +good_building_prosperity_growth_tier_1 = @[good_prosperity_growth_tier_1] +good_building_prosperity_growth_tier_2 = @[good_prosperity_growth_tier_2] +good_building_prosperity_growth_tier_3 = @[good_prosperity_growth_tier_3] +good_building_prosperity_growth_tier_4 = @[good_prosperity_growth_tier_4] +good_building_prosperity_growth_tier_5 = @[good_prosperity_growth_tier_5] +good_building_prosperity_growth_tier_6 = @[good_prosperity_growth_tier_6] +good_building_prosperity_growth_tier_7 = @[good_prosperity_growth_tier_7] +good_building_prosperity_growth_tier_8 = @[good_prosperity_growth_tier_8] -normal_building_development_growth_factor_tier_1 = @[normal_development_growth_factor_tier_1] -normal_building_development_growth_factor_tier_2 = @[normal_development_growth_factor_tier_2] -normal_building_development_growth_factor_tier_3 = @[normal_development_growth_factor_tier_3] -normal_building_development_growth_factor_tier_4 = @[normal_development_growth_factor_tier_4] -normal_building_development_growth_factor_tier_5 = @[normal_development_growth_factor_tier_5] -normal_building_development_growth_factor_tier_6 = @[normal_development_growth_factor_tier_6] -normal_building_development_growth_factor_tier_7 = @[normal_development_growth_factor_tier_7] -normal_building_development_growth_factor_tier_8 = @[normal_development_growth_factor_tier_8] +normal_building_prosperity_growth_factor_tier_1 = @[normal_prosperity_growth_factor_tier_1] +normal_building_prosperity_growth_factor_tier_2 = @[normal_prosperity_growth_factor_tier_2] +normal_building_prosperity_growth_factor_tier_3 = @[normal_prosperity_growth_factor_tier_3] +normal_building_prosperity_growth_factor_tier_4 = @[normal_prosperity_growth_factor_tier_4] +normal_building_prosperity_growth_factor_tier_5 = @[normal_prosperity_growth_factor_tier_5] +normal_building_prosperity_growth_factor_tier_6 = @[normal_prosperity_growth_factor_tier_6] +normal_building_prosperity_growth_factor_tier_7 = @[normal_prosperity_growth_factor_tier_7] +normal_building_prosperity_growth_factor_tier_8 = @[normal_prosperity_growth_factor_tier_8] -good_building_development_growth_factor_tier_1 = @[good_development_growth_factor_tier_1] -good_building_development_growth_factor_tier_2 = @[good_development_growth_factor_tier_2] -good_building_development_growth_factor_tier_3 = @[good_development_growth_factor_tier_3] -good_building_development_growth_factor_tier_4 = @[good_development_growth_factor_tier_4] -good_building_development_growth_factor_tier_5 = @[good_development_growth_factor_tier_5] -good_building_development_growth_factor_tier_6 = @[good_development_growth_factor_tier_6] -good_building_development_growth_factor_tier_7 = @[good_development_growth_factor_tier_7] -good_building_development_growth_factor_tier_8 = @[good_development_growth_factor_tier_8] +good_building_prosperity_growth_factor_tier_1 = @[good_prosperity_growth_factor_tier_1] +good_building_prosperity_growth_factor_tier_2 = @[good_prosperity_growth_factor_tier_2] +good_building_prosperity_growth_factor_tier_3 = @[good_prosperity_growth_factor_tier_3] +good_building_prosperity_growth_factor_tier_4 = @[good_prosperity_growth_factor_tier_4] +good_building_prosperity_growth_factor_tier_5 = @[good_prosperity_growth_factor_tier_5] +good_building_prosperity_growth_factor_tier_6 = @[good_prosperity_growth_factor_tier_6] +good_building_prosperity_growth_factor_tier_7 = @[good_prosperity_growth_factor_tier_7] +good_building_prosperity_growth_factor_tier_8 = @[good_prosperity_growth_factor_tier_8] -low_building_tax_mult_tier_1 = @[normal_tax_mult_tier_1] -low_building_tax_mult_tier_2 = @[normal_tax_mult_tier_2] -low_building_tax_mult_tier_3 = @[normal_tax_mult_tier_3] -low_building_tax_mult_tier_4 = @[normal_tax_mult_tier_4] -low_building_tax_mult_tier_5 = @[normal_tax_mult_tier_5] -low_building_tax_mult_tier_6 = @[normal_tax_mult_tier_6] -low_building_tax_mult_tier_7 = @[normal_tax_mult_tier_7] -low_building_tax_mult_tier_8 = @[normal_tax_mult_tier_8] +low_building_tax_mult_tier_1 = @[low_tax_mult_tier_1] +low_building_tax_mult_tier_2 = @[low_tax_mult_tier_2] +low_building_tax_mult_tier_3 = @[low_tax_mult_tier_3] +low_building_tax_mult_tier_4 = @[low_tax_mult_tier_4] +low_building_tax_mult_tier_5 = @[low_tax_mult_tier_5] +low_building_tax_mult_tier_6 = @[low_tax_mult_tier_6] +low_building_tax_mult_tier_7 = @[low_tax_mult_tier_7] +low_building_tax_mult_tier_8 = @[low_tax_mult_tier_8] + +low_building_tax_mult_halved_tier_1 = @[low_tax_mult_tier_1 * 0.5] +low_building_tax_mult_halved_tier_2 = @[low_tax_mult_tier_2 * 0.5] +low_building_tax_mult_halved_tier_3 = @[low_tax_mult_tier_3 * 0.5] +low_building_tax_mult_halved_tier_4 = @[low_tax_mult_tier_4 * 0.5] +low_building_tax_mult_halved_tier_5 = @[low_tax_mult_tier_5 * 0.5] +low_building_tax_mult_halved_tier_6 = @[low_tax_mult_tier_6 * 0.5] +low_building_tax_mult_halved_tier_7 = @[low_tax_mult_tier_7 * 0.5] +low_building_tax_mult_halved_tier_8 = @[low_tax_mult_tier_8 * 0.5] normal_building_tax_mult_tier_1 = @[normal_tax_mult_tier_1] normal_building_tax_mult_tier_2 = @[normal_tax_mult_tier_2] @@ -1554,6 +2015,110 @@ good_building_tax_mult_tier_6 = @[good_tax_mult_tier_6] good_building_tax_mult_tier_7 = @[good_tax_mult_tier_7] good_building_tax_mult_tier_8 = @[good_tax_mult_tier_8] +############################# +# Regular District Overrides # +############################# + +bureaucratic_primary_province_size_baseline_tier_1 = 50 +bureaucratic_primary_province_size_baseline_tier_2 = 70 +bureaucratic_primary_province_size_baseline_tier_3 = 80 +bureaucratic_primary_province_size_baseline_tier_4 = 100 +bureaucratic_primary_vassal_tax_tier_1 = 0.025 +bureaucratic_primary_vassal_tax_tier_2 = 0.05 +bureaucratic_primary_vassal_tax_tier_3 = 0.1 +bureaucratic_primary_vassal_tax_tier_4 = 0.15 +bureaucratic_primary_influence_mult_per_paper_need = 0.01 +bureaucratic_governor_xp_gain_tier_1 = 0.05 +bureaucratic_governor_xp_gain_tier_2 = 0.10 +bureaucratic_governor_xp_gain_tier_3 = 0.15 +bureaucratic_governor_xp_gain_tier_4 = 0.20 +bureaucratic_governor_xp_gain_tier_5 = 0.25 +bureaucratic_tax_mult_tier_1 = 0.025 +bureaucratic_tax_mult_tier_2 = 0.05 +bureaucratic_tax_mult_tier_3 = 0.075 +bureaucratic_tax_mult_tier_4 = 0.10 +bureaucratic_tax_mult_tier_5 = 0.125 +bureaucratic_census_levy_size_tier_1 = 0.025 +bureaucratic_census_levy_size_tier_2 = 0.05 +bureaucratic_census_levy_size_tier_3 = 0.075 +bureaucratic_census_levy_size_tier_4 = 0.10 +bureaucratic_census_levy_size_tier_5 = 0.125 +bureaucratic_college_vassal_tax_tier_1 = 0.025 +bureaucratic_college_vassal_tax_tier_2 = 0.05 +bureaucratic_college_vassal_tax_tier_3 = 0.075 +bureaucratic_college_vassal_tax_tier_4 = 0.10 +bureaucratic_college_vassal_tax_tier_5 = 0.125 +bureaucratic_college_influence_per_luxury_need = 0.01 +bureaucratic_printing_influence_tier_1 = 0.01 +bureaucratic_printing_influence_tier_2 = 0.02 +bureaucratic_printing_influence_tier_3 = 0.03 +bureaucratic_printing_influence_tier_4 = 0.04 +bureaucratic_printing_influence_tier_5 = 0.05 +bureaucratic_printing_fascination_tier_1 = 0.01 +bureaucratic_printing_fascination_tier_2 = 0.02 +bureaucratic_printing_fascination_tier_3 = 0.03 +bureaucratic_printing_fascination_tier_4 = 0.04 +bureaucratic_printing_fascination_tier_5 = 0.05 +bureaucratic_palace_size_per_need = 5 +bureaucratic_tax_collector_aptitude_tier_1 = 4 +bureaucratic_tax_collector_aptitude_tier_2 = 8 +bureaucratic_tax_collector_aptitude_tier_3 = 12 +bureaucratic_tax_collector_aptitude_tier_4 = 16 +bureaucratic_tax_collector_aptitude_tier_5 = 20 +bureaucratic_governor_efficiency_tier_1 = 2 +bureaucratic_governor_efficiency_tier_2 = 4 +bureaucratic_governor_efficiency_tier_3 = 6 +bureaucratic_governor_efficiency_tier_4 = 8 +bureaucratic_governor_efficiency_tier_5 = 10 +capital_magistracy_prestige_per_court_position_tier_1 = 0.01 +capital_magistracy_prestige_per_court_position_tier_2 = 0.02 +capital_magistracy_prestige_per_court_position_tier_3 = 0.03 +capital_magistracy_prestige_per_court_position_tier_4 = 0.04 +capital_magistracy_prestige_per_court_position_tier_5 = 0.05 +capital_magistracy_domicile_influence_tier_1 = 0.02 +capital_magistracy_domicile_influence_tier_2 = 0.04 +capital_magistracy_domicile_influence_tier_3 = 0.06 +capital_magistracy_domicile_influence_tier_4 = 0.08 +capital_magistracy_domicile_influence_tier_5 = 0.1 +capital_magistracy_domicile_influence_per_luxury_need = 0.01 +capital_magistracy_province_size_baseline_tier_1 = 5 +capital_magistracy_province_size_baseline_tier_2 = 10 +capital_magistracy_province_size_baseline_tier_3 = 15 +capital_magistracy_province_size_baseline_tier_4 = 20 +capital_magistracy_province_size_baseline_tier_5 = 25 +capital_magistracy_eparch_aptitude_tier_1 = 2 +capital_magistracy_eparch_aptitude_tier_2 = 4 +capital_magistracy_eparch_aptitude_tier_3 = 8 +capital_magistracy_eparch_aptitude_tier_4 = 12 +capital_magistracy_eparch_aptitude_tier_5 = 16 + +# Household district: court position aptitude from the Palace Library and the Inner Court +household_aptitude_tier_1 = 2 +household_aptitude_tier_2 = 4 +household_aptitude_tier_3 = 6 +household_aptitude_tier_4 = 8 +household_aptitude_tier_5 = 10 + +# Household district: artifact quality from the Court Workshops (the estate workshops give 5 and 10) +court_workshops_artifact_quality_tier_1 = 2 +court_workshops_artifact_quality_tier_2 = 4 +court_workshops_artifact_quality_tier_3 = 6 +court_workshops_artifact_quality_tier_4 = 8 +court_workshops_artifact_quality_tier_5 = 10 + +# Household district: spymaster find secrets progress from the Inner Court, as a percentage of the base total +household_inner_court_find_secrets_tier_1 = 0.05 +household_inner_court_find_secrets_tier_2 = 0.075 +household_inner_court_find_secrets_tier_3 = 0.1 +household_inner_court_find_secrets_tier_4 = 0.125 +household_inner_court_find_secrets_tier_5 = 0.15 + +# Household district: sell price modifiers, double the regular district buildings +household_price_mult = 0.01 + +# Household district: Court Workshops monthly artisan tax per need fill, a quarter above a normal tax building +household_workshop_artisan_tax_per_need = 0.125 + ############### # Levy Values # ############### @@ -1666,6 +2231,16 @@ excellent_building_supply_limit_tier_8 = @[excellent_supply_limit_tier_8] # Garrison Values # ################### +# Poor garrison +poor_building_max_garrison_tier_1 = @[poor_max_garrison_tier_1] +poor_building_max_garrison_tier_2 = @[poor_max_garrison_tier_2] +poor_building_max_garrison_tier_3 = @[poor_max_garrison_tier_3] +poor_building_max_garrison_tier_4 = @[poor_max_garrison_tier_4] +poor_building_max_garrison_tier_5 = @[poor_max_garrison_tier_5] +poor_building_max_garrison_tier_6 = @[poor_max_garrison_tier_6] +poor_building_max_garrison_tier_7 = @[poor_max_garrison_tier_7] +poor_building_max_garrison_tier_8 = @[poor_max_garrison_tier_8] + # Normal garrison normal_building_max_garrison_tier_1 = @[normal_max_garrison_tier_1] normal_building_max_garrison_tier_2 = @[normal_max_garrison_tier_2] @@ -1799,38 +2374,69 @@ slow_construction_time = @[slow_construction_time_base] very_slow_construction_time = @[very_slow_construction_time_base] -# Chance of filling one more building slot. Used when starting from a bookmark +# Regular district slot limit of the province: BARONY/COUNTY_DISTRICT_SLOTS + district_slot_add from the province_size_level_N modifiers. Keep in sync with both. +# The holding's slot array can be larger than this at game start, since earlier history dates can leave extra slots behind. +# root = province +province_regular_district_slot_limit = { + value = province_size_level + add = 1 + divide = 2 + floor = yes + add = 1 +} + +# Chance of adding one more regular district. Used when starting from a bookmark. Done before filling building slots. # root = province # scope:county = county # scope:holder = holder -fill_building_slot_chance = { - value = 240 +fill_district_slot_chance = { + value = 15 if = { limit = { - current_date < 2666.1.1 + current_date < 2555.1.1 } - subtract = 170 + subtract = 10 } if = { limit = { has_building_or_higher = tribe_01 } - subtract = 15 + subtract = 10000 } if = { limit = { - OR = { - geographical_region = world_europe_west_britannia - geographical_region = world_europe_west_francia - geographical_region = world_europe_west_benelux - geographical_region = world_nistrenia_wealthy - } + num_districts >= province_regular_district_slot_limit } - add = 1600 + subtract = 10000 + } + multiply = { + value = county.prosperity_rate_modifier + max = 1.5 + min = 0.85 + } +} + +# Chance of filling one more building slot. Used when starting from a bookmark +# root = province +# scope:county = county +# scope:holder = holder +fill_building_slot_chance = { + value = 60 + if = { + limit = { + current_date < 2555.1.1 + } + subtract = 30 } if = { limit = { - has_special_building = yes + has_building_or_higher = tribe_01 + } + subtract = 10000 + } + if = { + limit = { + has_special_district = yes NOR = { has_building_or_higher = hadrians_wall_01 has_building_or_higher = offas_dyke_01 @@ -1844,38 +2450,53 @@ fill_building_slot_chance = { add = 35 } add = { - value = county.development_level + value = county.prosperity_level multiply = 1.5 max = 35 } multiply = { - value = county.development_rate_modifier + value = county.prosperity_rate_modifier max = 1.5 min = 0.85 } if = { limit = { - num_buildings >= 3 + province_size > 100 } - subtract = { - value = 50 - multiply = num_buildings # Note that the holding itself is a building + add = { #0.5 - 50 + value = province_size + divide = 20 } } if = { limit = { - free_building_slots <= 1 + num_buildings >= 5 } - subtract = 1000 + subtract = { + value = 50 + multiply = num_buildings + } + } + if = { + limit = { + any_built_regular_district = { + count = district_slots + } + any_built_regular_district = { + count > 1 + free_building_slots < 1 + } + } + subtract = 10000 } } # Chance of upgrading one more building. Used when starting from a bookmark. Done after filling out building slots upgrade_building_chance = { - value = 150 + value = 850 if = { # Very few upgraded buildings in 867 limit = { - current_date < 2666.1.1 + current_date < 2555.1.1 } subtract = 145 } @@ -1883,37 +2504,40 @@ upgrade_building_chance = { limit = { has_building_or_higher = tribe_01 } - subtract = 15 + subtract = 10000 } + if = { limit = { - OR = { - geographical_region = world_europe_west_britannia - geographical_region = world_europe_west_francia - geographical_region = world_europe_west_benelux - geographical_region = world_nistrenia_wealthy - } + has_building_with_flag = food_district_building } - add = 2000 + add = 50 } + + #More upgrades for higher prosperity + add = { - value = county.development_level + value = county.prosperity_level multiply = 1.5 max = 35 } multiply = { - value = county.development_rate_modifier + value = county.prosperity_rate_modifier max = 1.5 min = 0.85 } if = { limit = { - combined_building_level >= 3 + current_date < 2555.1.1 + combined_building_level >= 6 } - subtract = { - value = 50 - multiply = combined_building_level + subtract = 10000 + } + if = { + limit = { + combined_building_level >= 8 } + subtract = 10000 } } @@ -1936,3 +2560,340 @@ building_garrison_reinforcement_factor_tier_8 = @[garrison_reinforcement_factor_ standard_rebuild_value = 500 ai_rebuild_value = 100 + +###################################### +# Building Popular Opinion Values # +###################################### + +building_tiny_popular_opinion_value = 2 +building_miniscule_popular_opinion_value = 4 +building_minor_popular_opinion_value = 6 +building_moderate_popular_opinion_value = 8 +building_medium_popular_opinion_value = 10 +building_considerable_popular_opinion_value = 15 +building_major_popular_opinion_value = 20 +building_extreme_popular_opinion_value = 25 +building_massive_popular_opinion_value = 30 + +building_tiny_popular_opinion_gain = building_tiny_popular_opinion_value +building_miniscule_popular_opinion_gain = building_miniscule_popular_opinion_value +building_minor_popular_opinion_gain = building_minor_popular_opinion_value +building_moderate_popular_opinion_gain = building_moderate_popular_opinion_value +building_medium_popular_opinion_gain = building_medium_popular_opinion_value +building_considerable_popular_opinion_gain = building_considerable_popular_opinion_value +building_major_popular_opinion_gain = building_major_popular_opinion_value +building_extreme_popular_opinion_gain = building_extreme_popular_opinion_value +building_massive_popular_opinion_gain = building_massive_popular_opinion_value + +building_tiny_popular_opinion_loss = -2 +building_miniscule_popular_opinion_loss = -4 +building_minor_popular_opinion_loss = -6 +building_moderate_popular_opinion_loss = -8 +building_medium_popular_opinion_loss = -10 +building_considerable_popular_opinion_loss = -15 +building_major_popular_opinion_loss = -20 +building_extreme_popular_opinion_loss = -25 +building_massive_popular_opinion_loss = -30 + +###################################################### +# Building Monthly Control Change Below Baseline # +###################################################### + +building_tiny_monthly_control_below_baseline_value = 0.02 +building_negligible_monthly_control_below_baseline_value = 0.025 +building_miniscule_monthly_control_below_baseline_value = 0.05 +building_slight_monthly_control_below_baseline_value = 0.075 +building_modest_monthly_control_below_baseline_value = 0.08 +building_minor_monthly_control_below_baseline_value = 0.1 +building_moderate_monthly_control_below_baseline_value = 0.125 +building_notable_monthly_control_below_baseline_value = 0.15 +building_considerable_monthly_control_below_baseline_value = 0.2 +building_medium_monthly_control_below_baseline_value = 0.25 +building_significant_monthly_control_below_baseline_value = 0.3 +building_substantial_monthly_control_below_baseline_value = 0.4 +building_major_monthly_control_below_baseline_value = 0.5 +building_monumental_monthly_control_below_baseline_value = 1 + +building_tiny_monthly_control_below_baseline_gain = building_tiny_monthly_control_below_baseline_value +building_negligible_monthly_control_below_baseline_gain = building_negligible_monthly_control_below_baseline_value +building_miniscule_monthly_control_below_baseline_gain = building_miniscule_monthly_control_below_baseline_value +building_slight_monthly_control_below_baseline_gain = building_slight_monthly_control_below_baseline_value +building_modest_monthly_control_below_baseline_gain = building_modest_monthly_control_below_baseline_value +building_minor_monthly_control_below_baseline_gain = building_minor_monthly_control_below_baseline_value +building_moderate_monthly_control_below_baseline_gain = building_moderate_monthly_control_below_baseline_value +building_notable_monthly_control_below_baseline_gain = building_notable_monthly_control_below_baseline_value +building_considerable_monthly_control_below_baseline_gain = building_considerable_monthly_control_below_baseline_value +building_medium_monthly_control_below_baseline_gain = building_medium_monthly_control_below_baseline_value +building_significant_monthly_control_below_baseline_gain = building_significant_monthly_control_below_baseline_value +building_substantial_monthly_control_below_baseline_gain = building_substantial_monthly_control_below_baseline_value +building_major_monthly_control_below_baseline_gain = building_major_monthly_control_below_baseline_value +building_monumental_monthly_control_below_baseline_gain = building_monumental_monthly_control_below_baseline_value + +########################################## +# AI Building Urgency Values # +########################################## + +ai_building_urgency_reference_grant = 5 + +########################################## +# AI Building Priority Tiers # +########################################## + +# Tier 1 is built first, tier 13 last. Inside a tier, lower building levels are built first. +# A tier's last level sits one tier step above the next tier's first level, which matches BUILDING_MIN_SCORE_COMPARED_TO_BEST = 0.8. +# Levels inside a tier are one level step apart. It is above 1.25 so that the 0.8 cutoff drops the next level despite score truncation. +# The _top values are the factor of a tier's first level. Level spans: tiers 4 and 6 have levels 2-10, tier 5 2-5, tiers 7, 9 and 12 2-4, tiers 8, 11 and 13 1-5, the rest 1. +@ai_building_tier_step = 1.25 +@ai_building_level_step = 1.3 +@ai_building_level_step_2 = @[ai_building_level_step * ai_building_level_step] +@ai_building_level_step_3 = @[ai_building_level_step_2 * ai_building_level_step] +@ai_building_level_step_4 = @[ai_building_level_step_3 * ai_building_level_step] +@ai_building_level_step_8 = @[ai_building_level_step_4 * ai_building_level_step_4] +@ai_building_tier_13_top = 1 +@ai_building_tier_12_top = @[ai_building_tier_13_top * ai_building_tier_step * ai_building_level_step_2] +@ai_building_tier_11_top = @[ai_building_tier_12_top * ai_building_tier_step * ai_building_level_step_4] +@ai_building_tier_10_top = @[ai_building_tier_11_top * ai_building_tier_step] +@ai_building_tier_9_top = @[ai_building_tier_10_top * ai_building_tier_step * ai_building_level_step_2] +@ai_building_tier_8_top = @[ai_building_tier_9_top * ai_building_tier_step * ai_building_level_step_4] +@ai_building_tier_7_top = @[ai_building_tier_8_top * ai_building_tier_step * ai_building_level_step_2] +@ai_building_tier_6_top = @[ai_building_tier_7_top * ai_building_tier_step * ai_building_level_step_8] +@ai_building_tier_5_top = @[ai_building_tier_6_top * ai_building_tier_step * ai_building_level_step_3] +@ai_building_tier_4_top = @[ai_building_tier_5_top * ai_building_tier_step * ai_building_level_step_8] +@ai_building_tier_3_top = @[ai_building_tier_4_top * ai_building_tier_step] +@ai_building_tier_2_top = @[ai_building_tier_3_top * ai_building_tier_step] +@ai_building_tier_1_top = @[ai_building_tier_2_top * ai_building_tier_step] +# Virtual tiers below tier 13, one tier step apart, so deferred tier 13 work keeps dropping by whole tiers. +@ai_building_tier_14_top = @[ai_building_tier_13_top / ai_building_level_step_4 / ai_building_tier_step] +@ai_building_tier_15_top = @[ai_building_tier_14_top / ai_building_tier_step] +@ai_building_tier_16_top = @[ai_building_tier_15_top / ai_building_tier_step] +@ai_building_tier_17_top = @[ai_building_tier_16_top / ai_building_tier_step] +@ai_building_tier_18_top = @[ai_building_tier_17_top / ai_building_tier_step] +@ai_building_tier_19_top = @[ai_building_tier_18_top / ai_building_tier_step] +@ai_building_tier_20_top = @[ai_building_tier_19_top / ai_building_tier_step] +@ai_building_tier_21_top = @[ai_building_tier_20_top / ai_building_tier_step] +@ai_building_tier_22_top = @[ai_building_tier_21_top / ai_building_tier_step] +@ai_building_defer_margin = 0.977 + +ai_building_tier_step = @ai_building_tier_step +ai_building_level_step = @ai_building_level_step +ai_building_tier_1_factor = @ai_building_tier_1_top +ai_building_tier_2_factor = @ai_building_tier_2_top +ai_building_tier_3_factor = @ai_building_tier_3_top +ai_building_tier_4_factor = @[ai_building_tier_4_top * ai_building_level_step] +ai_building_tier_5_factor = @[ai_building_tier_5_top * ai_building_level_step] +ai_building_tier_6_factor = @[ai_building_tier_6_top * ai_building_level_step] +ai_building_tier_7_factor = @[ai_building_tier_7_top * ai_building_level_step] +ai_building_tier_8_factor = @ai_building_tier_8_top +ai_building_tier_9_factor = @[ai_building_tier_9_top * ai_building_level_step] +ai_building_tier_10_factor = @ai_building_tier_10_top +ai_building_tier_11_factor = @ai_building_tier_11_top +ai_building_tier_12_factor = @[ai_building_tier_12_top * ai_building_level_step] +ai_building_tier_13_factor = @ai_building_tier_13_top + +@ai_building_level_2_factor = @[1 / ai_building_level_step] +@ai_building_level_3_factor = @[ai_building_level_2_factor / ai_building_level_step] +@ai_building_level_4_factor = @[ai_building_level_3_factor / ai_building_level_step] +@ai_building_level_5_factor = @[ai_building_level_4_factor / ai_building_level_step] +@ai_building_level_6_factor = @[ai_building_level_5_factor / ai_building_level_step] +@ai_building_level_7_factor = @[ai_building_level_6_factor / ai_building_level_step] +@ai_building_level_8_factor = @[ai_building_level_7_factor / ai_building_level_step] +@ai_building_level_9_factor = @[ai_building_level_8_factor / ai_building_level_step] +@ai_building_level_10_factor = @[ai_building_level_9_factor / ai_building_level_step] +ai_building_level_1_factor = 1 +ai_building_level_2_factor = @ai_building_level_2_factor +ai_building_level_3_factor = @ai_building_level_3_factor +ai_building_level_4_factor = @ai_building_level_4_factor +ai_building_level_5_factor = @ai_building_level_5_factor +ai_building_level_6_factor = @ai_building_level_6_factor +ai_building_level_7_factor = @ai_building_level_7_factor +ai_building_level_8_factor = @ai_building_level_8_factor +ai_building_level_9_factor = @ai_building_level_9_factor +ai_building_level_10_factor = @ai_building_level_10_factor + +# Each local defer moves a tier just below the tier three steps down +# When two or all three conditions hold, defer_2 and defer_3 apply as well +ai_building_tier_2_defer_1_factor = @[ai_building_tier_5_top / ai_building_tier_2_top * ai_building_defer_margin] +ai_building_tier_3_defer_1_factor = @[ai_building_tier_6_top / ai_building_tier_3_top * ai_building_defer_margin] +ai_building_tier_3_defer_2_factor = @[ai_building_tier_9_top / ai_building_tier_6_top * ai_building_defer_margin] +ai_building_tier_4_defer_1_factor = @[ai_building_tier_7_top / ai_building_tier_4_top * ai_building_defer_margin] +ai_building_tier_4_defer_2_factor = @[ai_building_tier_10_top / ai_building_tier_7_top * ai_building_defer_margin] +ai_building_tier_4_defer_3_factor = @[ai_building_tier_13_top / ai_building_tier_10_top * ai_building_defer_margin] +ai_building_tier_5_defer_1_factor = @[ai_building_tier_8_top / ai_building_tier_5_top * ai_building_defer_margin] +ai_building_tier_5_defer_2_factor = @[ai_building_tier_11_top / ai_building_tier_8_top * ai_building_defer_margin] +ai_building_tier_5_defer_3_factor = @[ai_building_tier_14_top / ai_building_tier_11_top * ai_building_defer_margin] +ai_building_tier_6_defer_1_factor = @[ai_building_tier_9_top / ai_building_tier_6_top * ai_building_defer_margin] +ai_building_tier_6_defer_2_factor = @[ai_building_tier_12_top / ai_building_tier_9_top * ai_building_defer_margin] +ai_building_tier_6_defer_3_factor = @[ai_building_tier_15_top / ai_building_tier_12_top * ai_building_defer_margin] +ai_building_tier_7_defer_1_factor = @[ai_building_tier_10_top / ai_building_tier_7_top * ai_building_defer_margin] +ai_building_tier_7_defer_2_factor = @[ai_building_tier_13_top / ai_building_tier_10_top * ai_building_defer_margin] +ai_building_tier_7_defer_3_factor = @[ai_building_tier_16_top / ai_building_tier_13_top * ai_building_defer_margin] +ai_building_tier_8_defer_1_factor = @[ai_building_tier_11_top / ai_building_tier_8_top * ai_building_defer_margin] +ai_building_tier_8_defer_2_factor = @[ai_building_tier_14_top / ai_building_tier_11_top * ai_building_defer_margin] +ai_building_tier_8_defer_3_factor = @[ai_building_tier_17_top / ai_building_tier_14_top * ai_building_defer_margin] +ai_building_tier_9_defer_1_factor = @[ai_building_tier_12_top / ai_building_tier_9_top * ai_building_defer_margin] +ai_building_tier_9_defer_2_factor = @[ai_building_tier_15_top / ai_building_tier_12_top * ai_building_defer_margin] +ai_building_tier_9_defer_3_factor = @[ai_building_tier_18_top / ai_building_tier_15_top * ai_building_defer_margin] +ai_building_tier_10_defer_1_factor = @[ai_building_tier_13_top / ai_building_tier_10_top * ai_building_defer_margin] +ai_building_tier_10_defer_2_factor = @[ai_building_tier_16_top / ai_building_tier_13_top * ai_building_defer_margin] +ai_building_tier_10_defer_3_factor = @[ai_building_tier_19_top / ai_building_tier_16_top * ai_building_defer_margin] +ai_building_tier_11_defer_1_factor = @[ai_building_tier_14_top / ai_building_tier_11_top * ai_building_defer_margin] +ai_building_tier_11_defer_2_factor = @[ai_building_tier_17_top / ai_building_tier_14_top * ai_building_defer_margin] +ai_building_tier_11_defer_3_factor = @[ai_building_tier_20_top / ai_building_tier_17_top * ai_building_defer_margin] +ai_building_tier_12_defer_1_factor = @[ai_building_tier_15_top / ai_building_tier_12_top * ai_building_defer_margin] +ai_building_tier_12_defer_2_factor = @[ai_building_tier_18_top / ai_building_tier_15_top * ai_building_defer_margin] +ai_building_tier_12_defer_3_factor = @[ai_building_tier_21_top / ai_building_tier_18_top * ai_building_defer_margin] +ai_building_tier_13_defer_1_factor = @[ai_building_tier_16_top / ai_building_tier_13_top * ai_building_defer_margin] +ai_building_tier_13_defer_2_factor = @[ai_building_tier_19_top / ai_building_tier_16_top * ai_building_defer_margin] +ai_building_tier_13_defer_3_factor = @[ai_building_tier_22_top / ai_building_tier_19_top * ai_building_defer_margin] + +# Scope: province +ai_building_local_defer_count = { + value = 0 + if = { + limit = { resource_district ?= { free_building_slots > 0 } } + add = 1 + } + if = { + limit = { free_building_slots > 0 } + add = 1 + } + if = { + limit = { free_district_slots > 0 } + add = 1 + } +} + +ai_building_local_defer_factor = 0.5 +ai_building_capital_factor = 1.1 +ai_building_absolute_priority = @[ai_building_tier_1_top * 100] + +########################################## +# AI Domicile Building Priority Tiers # +########################################## + +# Domicile ai_values are scored against holding buildings. One domicile unit equals one base unit at the first level of tier 4, so 10 units match a base-10 resource district building upgrade. +ai_building_domicile_factor = @ai_building_tier_4_top +# Merchant company values are calibrated around 280 for a normal internal upgrade, and this maps 280 to 10 domicile units +ai_building_merchant_company_domicile_factor = @[ai_building_tier_4_top * 10 / 280] + +# Scope: domicile, expects scope:owner +ai_building_domicile_owner_factor = { + value = 1 + if = { # Some characters should want to build in their domicile before they construct buildings in holdings + limit = { + scope:owner = { + OR = { + has_trait = arbitrary + has_trait = gluttonous + has_trait = greedy + } + } + } + multiply = 1.5 + } + if = { # Characters loyal to the realm build in their domicile one tier later + limit = { + scope:owner = { + has_trait = loyal + OR = { + has_trait = diligent + has_trait = just + } + } + } + multiply = 0.8 + } +} + +# Estate, east Asian estate, Japanese manor and ecclesiastical domiciles: new buildings, then slot building upgrades, then main building upgrades. +# Bands stay one strict step apart, below the 0.8 cutoff, even at the nudge extremes +# The income factor stays inside that gap, so income is favoured but not exclusive +@ai_building_domicile_new_base = 22 +@ai_building_domicile_upgrade_base = 10 +@ai_building_domicile_main_upgrade_base = 6 +@ai_building_domicile_income_factor = 1.2 + +# Squeezes a building's own ai_value (about 3-15, with level decay and bonuses) into an in-band weight of 0.85-1.15, 1 at a value of 7. +ai_building_domicile_nudge_slope = 0.03 +ai_building_domicile_nudge_offset = 0.79 +ai_building_domicile_nudge_min = 0.85 +ai_building_domicile_nudge_max = 1.15 + +# Scope: domicile, expects scope:owner +ai_building_domicile_new_value = { + value = @ai_building_domicile_new_base + multiply = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +# Scope: domicile, expects scope:owner +ai_building_domicile_new_income_value = { + value = @[ai_building_domicile_new_base * ai_building_domicile_income_factor] + multiply = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +# Scope: domicile, expects scope:owner +ai_building_domicile_upgrade_value = { + value = @ai_building_domicile_upgrade_base + multiply = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +# Scope: domicile, expects scope:owner +ai_building_domicile_upgrade_income_value = { + value = @[ai_building_domicile_upgrade_base * ai_building_domicile_income_factor] + multiply = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +# Scope: domicile, expects scope:owner +ai_building_domicile_main_upgrade_value = { + value = @ai_building_domicile_main_upgrade_base + multiply = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +# Scope: domicile, expects scope:owner +# For buildings the AI should avoid. Their own ai_value (1 or lower) is kept, so they stay below main building upgrades +ai_building_domicile_deprioritised_value = { + value = ai_building_domicile_owner_factor + multiply = ai_building_domicile_factor +} + +########################################## +# AI Building In-Tier Priorities # +########################################## + +# On a base of about 10, strong (+3) wins the pick outright against an equal rival, since 10/13 is below 0.8 +ai_building_priority_strong = 3 +ai_building_priority_medium = 2 +ai_building_priority_soft = 1 +# Below the 0.8 cutoff against an equal rival, but never zero. +ai_building_identity_mismatch_factor = 0.75 +# Keeps a new military district below the 0.8 cutoff against the rural districts while the duchy has no rural economy. +ai_military_unsecured_economy_factor = 0.6 + +# Scope: province, expects scope:holder +ai_maa_regiment_count_value = { + value = 0 + scope:holder = { + every_maa_regiment = { add = 1 } + } +} + +# Scope: province, expects scope:holder +# Domain provinces whose county has a military district. Each can host one stationed regiment +ai_military_station_slots_value = { + value = 0 + scope:holder = { + every_directly_owned_province = { + limit = { + county = { + any_county_province = { province_has_district = military_district } + } + } + add = 1 + } + } +} diff --git a/common/script_values/00_culture_values.txt b/common/script_values/00_culture_values.txt index 12d0b0417..81a844c0e 100644 --- a/common/script_values/00_culture_values.txt +++ b/common/script_values/00_culture_values.txt @@ -94,8 +94,16 @@ revoke_title_culture_acceptance_impact = { min = 1 } multiply = 15 #Same as used in grant above - - min = 0.5 + #GG modifier: Just stop, HRE + if = { + limit = { + scope:actor = { + gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient } + } + } + min = 2 + } + else = { min = 0.5 } max = 15 } } @@ -1003,6 +1011,7 @@ traditionalist_discount = { court_position_aptitude_eunuch_tradition_value = { if = { limit = { + has_trait = eunuch liege.culture ?= { OR = { has_cultural_parameter = eunuch_trait_bonuses @@ -1048,3 +1057,5 @@ court_position_aptitude_boon_voyager_trait = { } } } + +isolationist_marriage_penalty_value = -100 diff --git a/common/script_values/00_men_at_arms_values.txt b/common/script_values/00_men_at_arms_values.txt index 643f493dd..0b9be9702 100644 --- a/common/script_values/00_men_at_arms_values.txt +++ b/common/script_values/00_men_at_arms_values.txt @@ -6,7 +6,7 @@ # Costs # ######### -@high_maint_mult = 3 +@high_maint_mult = 2.5 ### Base Cost Values @skirmisher_recruitment_cost = 45 @@ -21,36 +21,32 @@ @militia_low_maint_cost = 0.15 @militia_high_maint_cost = @[militia_low_maint_cost * high_maint_mult] -@archers_recruitment_cost = 55 -@archers_low_maint_cost = 0.2 +@archers_recruitment_cost = 20 +@archers_low_maint_cost = 0.3 @archers_high_maint_cost = @[archers_low_maint_cost * high_maint_mult] -@pikemen_recruitment_cost = 75 -@pikemen_low_maint_cost = 0.3 +@pikemen_recruitment_cost = 25 +@pikemen_low_maint_cost = 0.45 @pikemen_high_maint_cost = @[pikemen_low_maint_cost * high_maint_mult] -@heavy_infantry_recruitment_cost = 90 -@heavy_infantry_low_maint_cost = 0.4 +@heavy_infantry_recruitment_cost = 30 +@heavy_infantry_low_maint_cost = 0.6 @heavy_infantry_high_maint_cost = @[heavy_infantry_low_maint_cost * high_maint_mult] -@super_heavy_infantry_recruitment_cost = 200 -@super_heavy_infantry_low_maint_cost = 0.8 -@super_heavy_infantry_high_maint_cost = @[super_heavy_infantry_low_maint_cost * high_maint_mult] - -@light_cavalry_recruitment_cost = 85 -@light_cavalry_low_maint_cost = 0.35 +@light_cavalry_recruitment_cost = 30 +@light_cavalry_low_maint_cost = 0.55 @light_cavalry_high_maint_cost = @[light_cavalry_low_maint_cost * high_maint_mult] -@heavy_cavalry_recruitment_cost = 200 -@heavy_cavalry_low_maint_cost = 0.7 +@heavy_cavalry_recruitment_cost = 65 +@heavy_cavalry_low_maint_cost = 1.05 @heavy_cavalry_high_maint_cost = @[heavy_cavalry_low_maint_cost * high_maint_mult] -@siege_weapons_recruitment_cost = 60 -@siege_weapons_low_maint_cost = 0.1 +@siege_weapons_recruitment_cost = 20 +@siege_weapons_low_maint_cost = 0.15 @siege_weapons_high_maint_cost = @[siege_weapons_low_maint_cost * high_maint_mult] -@gunpowder_recruitment_cost = 76 -@gunpowder_low_maint_cost = 0.35 +@gunpowder_recruitment_cost = 25 +@gunpowder_low_maint_cost = 0.55 @gunpowder_high_maint_cost = @[gunpowder_low_maint_cost * high_maint_mult] @@ -166,6 +162,10 @@ picchieri_recruitment_cost = @[pikemen_recruitment_cost * 1.3] picchieri_low_maint_cost = @[pikemen_low_maint_cost * 1.3] picchieri_high_maint_cost = @[pikemen_high_maint_cost * 1.3] +condottieri_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.1] +condottieri_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.1] +condottieri_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.1] + praetorian_recruitment_cost = @[heavy_infantry_recruitment_cost * 2] praetorian_low_maint_cost = @[heavy_infantry_low_maint_cost * 2] praetorian_high_maint_cost = @[heavy_infantry_high_maint_cost * 2] @@ -1077,17 +1077,17 @@ gunpowder_raise_limit_existing_gunpowder_buildings = { every_directly_owned_province = { limit = { - has_building_or_higher = powder_magazine_01 + has_building_or_higher = powder_mills_1 } if = { limit = { - has_building_or_higher = powder_magazine_07 + has_building_or_higher = powder_mills_5 } add = gunpowder_building_limit_bonus_3 } else_if = { limit = { - has_building_or_higher = powder_magazine_04 + has_building_or_higher = powder_mills_3 } add = gunpowder_building_limit_bonus_2 } diff --git a/common/script_values/01_starting_values.txt b/common/script_values/01_starting_values.txt index 140f097e5..d30e6b942 100644 --- a/common/script_values/01_starting_values.txt +++ b/common/script_values/01_starting_values.txt @@ -34,6 +34,7 @@ } } min = 1 + divide = 4 } } @@ -126,6 +127,7 @@ starting_treasury = { multiply = 4.5 } } + divide = 3 } } @@ -1215,6 +1217,8 @@ culture_acceptance_baseline = { if = { limit = { has_same_culture_ethos = scope:culture + # The pluralistic check below reuses this proximity result + save_temporary_scope_as = proximity_checked OR = { cultures_share_relevant_region_trigger = yes #In case cultures are bordering each other in two different regions @@ -1224,6 +1228,7 @@ culture_acceptance_baseline = { } } } + save_temporary_scope_as = proximity_shared } add = { value = 10 @@ -1334,12 +1339,18 @@ culture_acceptance_baseline = { } } } - OR = { - cultures_share_relevant_region_trigger = yes - #In case cultures are bordering each other in two different regions - any_culture_county = { - any_neighboring_county = { - culture = scope:culture + trigger_if = { + limit = { exists = scope:proximity_checked } + exists = scope:proximity_shared + } + trigger_else = { + OR = { + cultures_share_relevant_region_trigger = yes + #In case cultures are bordering each other in two different regions + any_culture_county = { + any_neighboring_county = { + culture = scope:culture + } } } } diff --git a/common/script_values/02_religion_values.txt b/common/script_values/02_religion_values.txt index 5c6939601..512330eeb 100644 --- a/common/script_values/02_religion_values.txt +++ b/common/script_values/02_religion_values.txt @@ -60,16 +60,16 @@ meditation_duration = 185 # In days local_shrine_duration = 14 -faction_county_opinion_astray = { - value = county_opinion +faction_popular_opinion_astray = { + value = popular_opinion multiply = -1.0 } -faction_county_opinion_hostile = { - value = county_opinion +faction_popular_opinion_hostile = { + value = popular_opinion multiply = -2.5 } -faction_county_opinion_evil = { - value = county_opinion +faction_popular_opinion_evil = { + value = popular_opinion multiply = -5.0 } @@ -96,7 +96,7 @@ head_of_faith_selection_weight = { if = { limit = { any_sub_realm_barony = { - is_holy_site_of = root.faith + is_holy_site_of = prev.faith } } add = 40 @@ -126,7 +126,7 @@ head_of_faith_selection_weight = { add = { value = diplomacy multiply = 1 - } + } } ################ # Demand Conversion chance calculation @@ -278,7 +278,7 @@ demand_conversion_likelihood_calculation = { } add = spiritual_fulfillment_harder_conversion_value } - + if = { limit = { has_trait = zealous @@ -310,9 +310,9 @@ demand_conversion_likelihood_calculation = { } add = 50 } - - - + + + if = { limit = { scope:recipient = { @@ -492,7 +492,7 @@ great_holy_war_target_kingdom_weight = { } add = ghw_target_existing_same_faith_ruler } - + ### 2 ### ### Abrahamics & Zoroastrians # Documentation = { @@ -518,7 +518,7 @@ great_holy_war_target_kingdom_weight = { # ghw_region_germanic # fringe # ghw_region_central_european # fringe # ghw_region_baltic # stretch - + # Islam # ghw_region_holy_land # heartlands # ghw_region_arabia # heartlands @@ -1069,7 +1069,7 @@ great_holy_war_target_kingdom_weight = { } add = ghw_target_fringe } - + ### Pagans # Norse heartlands else_if = { @@ -1701,7 +1701,7 @@ great_holy_war_target_kingdom_weight = { } add = ghw_target_fringe } - + ### Eastern # Hindu heartlands else_if = { @@ -3111,8 +3111,8 @@ great_holy_war_target_kingdom_weight = { } } } - - # Weigh down certain areas slightly + + # Weigh down certain areas slightly if = { limit = { OR = { @@ -3302,13 +3302,13 @@ holy_war_defensive_join_value = { desc = "zealous_personality" value = ai_zeal } - + add = { desc = "bold_personality" value = ai_boldness divide = 2 } - + add = { # More fervent faiths are likelier to defend themselves en masse desc = "high_fervor" value = faith.fervor @@ -3320,7 +3320,7 @@ holy_war_defensive_join_value = { divide = 2 # Max 10 if not zealous } } - + if = { limit = { has_relation_rival = scope:attacker @@ -3353,7 +3353,7 @@ holy_war_defensive_join_value = { value = -100 } } - + if = { limit = { OR = { @@ -3366,7 +3366,7 @@ holy_war_defensive_join_value = { value = 200 } } - + # Less Likely if you dislike the target if = { limit = { @@ -3378,7 +3378,7 @@ holy_war_defensive_join_value = { value = -25 } } - + # Much Less Likely if you really dislike the target if = { limit = { @@ -3418,10 +3418,10 @@ rite_creation_cost_mult = { # Modify (multiply) the doctrine cost when converting to a faith. # The returned value is interpreted as a multiplicative modifier (e.g. 0.5 means +50% cost). # scope:character = the converting character -# scope:new_faith = the faith the character is converting to +# scope:new_rite = the rite the character is converting to # There should be no subtract equal or higher than 1 faith_conversion_cost_mult = { - + #Adding 1 to apply properly the following multipliers add = { value = 1 @@ -3449,17 +3449,17 @@ faith_conversion_cost_mult = { multiply = { value = 1 add = { - value = scope:new_faith.faith_conversion_fervor_mult + value = scope:new_rite.faith.faith_conversion_fervor_mult subtract = scope:character.faith.faith_conversion_fervor_mult desc = "faith_conversion_cost_fervor_difference" format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" } - } + } } # Try to always be cheaper than creating a new faith if = { limit = { - scope:new_faith.religion = scope:character.faith.religion + scope:new_rite.faith.religion = scope:character.faith.religion } multiply = { value = 1 @@ -3484,7 +3484,7 @@ faith_conversion_cost_mult = { # Pluralistic faiths have it easier converting to each other if = { limit = { - scope:new_faith.main_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + scope:new_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } scope:character.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } multiply = { @@ -3516,7 +3516,7 @@ faith_conversion_cost_mult = { ############################################################### if = { limit = { - scope:new_faith = { + scope:new_rite.faith = { has_doctrine_parameter = unreformed } } @@ -3538,7 +3538,7 @@ faith_conversion_cost_mult = { value = 5 } } - + } # Minor stacking penalties depending on (non-tribal) government form. @@ -3595,7 +3595,7 @@ faith_conversion_cost_mult = { #More expensive to convert to a dead religion if = { limit = { - scope:new_faith = { + scope:new_rite.faith = { religion = { any_faith = { count = all @@ -3620,7 +3620,7 @@ faith_conversion_cost_mult = { # More expensive if you convert to a faith outside of your religion's family if = { limit = { - scope:new_faith = { has_doctrine = special_doctrine_immaterial_harmony } + scope:new_rite.faith = { has_doctrine = special_doctrine_immaterial_harmony } scope:character.faith = { has_doctrine = special_doctrine_immaterial_harmony } } multiply = { @@ -3634,7 +3634,7 @@ faith_conversion_cost_mult = { } else_if = { limit = { - NOT = { scope:new_faith = { faith_is_in_same_rf = { FAITH = scope:character.faith } } } + NOT = { scope:new_rite.faith = { faith_is_in_same_rf = { FAITH = scope:character.faith } } } } multiply = { value = 1 @@ -3645,11 +3645,11 @@ faith_conversion_cost_mult = { } } } - + # Unreformed Faiths have an easier way converting to Organized faiths if = { limit = { - scope:new_faith = { + scope:new_rite.faith = { NOT = { has_doctrine_parameter = unreformed } } scope:character.faith = { has_doctrine_parameter = unreformed } @@ -3669,7 +3669,7 @@ faith_conversion_cost_mult = { scope:character = { any_courtier = { has_character_flag = suzerains_missionary - faith = scope:new_faith + rite = scope:new_rite } } } @@ -3682,11 +3682,11 @@ 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 = { + scope:new_rite.faith = { religion != scope:character.religion faith_is_in_same_rf = { FAITH = scope:character.faith } } @@ -3712,14 +3712,14 @@ faith_conversion_cost_mult = { any_in_list = { variable = humsacd_hofs faith_hostility_level = { - target = scope:new_faith + target = scope:new_rite.faith value <= faith_astray_level } } } # Exemptions for people who already practice HumSac: they're likely not happy, but it's not the ultimate taboo for them. - scope:new_faith = { - NOT = { has_doctrine_parameter = human_sacrifice_active } + scope:new_rite = { + NOT = { rite_has_parameter = human_sacrifice_active } } } multiply = { @@ -3747,7 +3747,7 @@ faith_conversion_cost_mult = { } if = { # Even cheaper if unreformed limit = { - scope:new_faith = { + scope:new_rite.faith = { NOT = { has_doctrine_parameter = unreformed } } scope:character = { @@ -3757,7 +3757,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_unreformed_holy_war format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3767,7 +3767,7 @@ faith_conversion_cost_mult = { } else = { # But still a sizable discount otherwise. multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_holy_war format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3781,13 +3781,13 @@ faith_conversion_cost_mult = { limit = { scope:character = { any_spouse = { - faith = scope:new_faith + rite = scope:new_rite } } } if = { # Even cheaper if unreformed limit = { - scope:new_faith = { + scope:new_rite.faith = { NOT = { has_doctrine_parameter = unreformed } } scope:character = { @@ -3797,7 +3797,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_unreformed_spouse format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3805,9 +3805,9 @@ faith_conversion_cost_mult = { } } } - else = { # But still a sizable discount otherwise. + else = { # But still a sizable discount otherwise. multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_spouse format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3821,13 +3821,13 @@ faith_conversion_cost_mult = { limit = { scope:character = { any_concubine = { - faith = scope:new_faith + rite = scope:new_rite } } } if = { # Even cheaper if unreformed limit = { - scope:new_faith = { + scope:new_rite.faith = { NOT = { has_doctrine_parameter = unreformed } } scope:character = { @@ -3837,7 +3837,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_unreformed_concubine format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3846,9 +3846,9 @@ faith_conversion_cost_mult = { } } else = { # But still a sizable discount otherwise. - + multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_concubine format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3863,21 +3863,21 @@ faith_conversion_cost_mult = { scope:character = { OR = { any_neighboring_top_liege_realm_owner = { - faith = scope:new_faith + rite = scope:new_rite } any_vassal = { - faith = scope:new_faith + rite = scope:new_rite } any_realm_province = { - faith = scope:new_faith + rite = scope:new_rite } liege ?= { - faith = scope:new_faith + rite = scope:new_rite } - liege ?= { + liege ?= { any_vassal = { - faith = scope:new_faith + rite = scope:new_rite } } } @@ -3885,12 +3885,12 @@ faith_conversion_cost_mult = { } if = { limit = { - scope:new_faith = { + scope:new_rite.faith = { NOT = { faith_is_in_same_rf = { FAITH = scope:character.faith } } } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_present format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3900,10 +3900,10 @@ faith_conversion_cost_mult = { } else_if = { limit = { - scope:new_faith.religion != scope:character.religion + scope:new_rite.faith.religion != scope:character.religion } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_present format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3913,7 +3913,7 @@ faith_conversion_cost_mult = { } else = { multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_present format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3929,12 +3929,12 @@ faith_conversion_cost_mult = { any_character_struggle = { involvement = interloper has_struggle_phase_parameter = cheaper_to_convert_to_struggle_faith - is_faith_involved_in_struggle = scope:new_faith + is_faith_involved_in_struggle = scope:new_rite.faith } } } multiply = { - value = 1 + value = 1 subtract = { desc = struggle_parameter_cheaper_to_convert_to_struggle_faith format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3949,7 +3949,7 @@ faith_conversion_cost_mult = { if = { limit = { - scope:new_faith.religion = religion:confucianism_religion + scope:new_rite.faith.religion = religion:confucianism_religion scope:character = { has_trait = confucian_education has_trait_xp = { @@ -3968,7 +3968,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_confucian_education format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -3986,7 +3986,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_confucian_education format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -4004,7 +4004,7 @@ faith_conversion_cost_mult = { } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_confucian_education format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -4014,7 +4014,7 @@ faith_conversion_cost_mult = { } else = { multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_confucian_education format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -4027,7 +4027,7 @@ faith_conversion_cost_mult = { ######################################## # Conversion Discounts from Traditions # ######################################## - # scope:new_faith.religion = scope:character.faith.religion + # scope:new_rite.faith.religion = scope:character.faith.religion # Pacifism Tenet if = { @@ -4038,15 +4038,13 @@ faith_conversion_cost_mult = { has_cultural_parameter = reduced_cost_for_conversion_to_pacifist_faith } } - scope:new_faith = { - main_rite = { - rite_has_tenet = tenet_pacifism - } + scope:new_rite = { + rite_has_tenet = tenet_pacifism } } } multiply = { - value = 1 + value = 1 subtract = { desc = faith_conversion_cost_tradition format = "BREAKDOWN_FORMAT_PIETY_PERCENTAGE_POSITIVE_IS_BAD" @@ -4063,7 +4061,7 @@ faith_conversion_cost_mult = { scope:character = { exists = var:discounted_faith_to_convert_to_var } - scope:character.var:discounted_faith_to_convert_to_var = scope:new_faith + scope:character.var:discounted_faith_to_convert_to_var = scope:new_rite.faith } multiply = { value = 1 @@ -4079,7 +4077,7 @@ faith_conversion_cost_mult = { scope:character = { has_character_modifier = mpo_islam_conversion_modifier } - scope:new_faith = { religion = religion:islam_religion } + scope:new_rite.faith = { religion = religion:islam_religion } } multiply = { value = 1 @@ -4095,7 +4093,7 @@ faith_conversion_cost_mult = { scope:character = { has_variable = japan_1010_discount } - scope:new_faith = var:japan_1010_discount + scope:new_rite.faith = var:japan_1010_discount } multiply = { value = 1 @@ -4111,7 +4109,7 @@ faith_conversion_cost_mult = { scope:character = { has_character_flag = tgp_japan_1040_discount } - scope:new_faith.religion = religion:shintoism_religion + scope:new_rite.faith.religion = religion:shintoism_religion } multiply = { value = 1 @@ -4127,13 +4125,12 @@ faith_conversion_cost_mult = { subtract = { value = 1 } - } reincarnation_chance = 4 holy_sites_to_create_temporal_head_of_faith = 1 -holy_sites_to_create_spiritual_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 @@ -4232,8 +4229,8 @@ create_hof_gold_cost = { faith_military_strength = { every_ruler = { + faith_filter = this # filters are built before the every_ list, so [this] resolves to the faith limit = { - faith = prev is_at_war = no } add = max_military_strength @@ -4284,7 +4281,7 @@ great_holy_war_target_kingdom_weight_simplified = { # For every county with a GHWable liege... limit = { tier = tier_county - scope:the_faith.main_rite = { + scope:the_faith.main_rite ?= { is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite } } } @@ -4296,11 +4293,11 @@ great_holy_war_target_kingdom_weight_simplified = { OR = { AND = { exists = holder - holder.faith = scope:the_faith + scope:the_faith ?= holder.faith } any_claimant = { exists = this - faith = scope:the_faith + scope:the_faith ?= faith is_available_adult = yes } } @@ -4313,7 +4310,7 @@ great_holy_war_target_kingdom_weight_simplified = { OR = { AND = { # Catholic sphere. - scope:the_faith = { not_non_catholic_standard_christian_faith_trigger = yes } + scope:the_faith ?= { not_non_catholic_standard_christian_faith_trigger = yes } title_capital_county.title_province = { OR = { geographical_region = ghw_region_northern_italy @@ -4325,7 +4322,7 @@ great_holy_war_target_kingdom_weight_simplified = { } AND = { # Orthodox sphere. - scope:the_faith = { not_non_orthodox_standard_christian_faith_trigger = yes } + scope:the_faith ?= {not_non_orthodox_standard_christian_faith_trigger = yes } title_capital_county.title_province = { OR = { geographical_region = ghw_region_thessalonika @@ -4335,12 +4332,12 @@ great_holy_war_target_kingdom_weight_simplified = { } AND = { # Coptic sphere. - scope:the_faith = { not_non_coptic_standard_christian_faith_trigger = yes } + scope:the_faith ?= { not_non_coptic_standard_christian_faith_trigger = yes } title_capital_county.title_province = { geographical_region = ghw_region_ethiopia } } AND = { # Armenian sphere. - scope:the_faith = { not_non_armenian_standard_christian_faith_trigger = yes } + scope:the_faith ?= { not_non_armenian_standard_christian_faith_trigger = yes } title_capital_county.title_province = { geographical_region = ghw_region_caucasus } } } @@ -4353,18 +4350,18 @@ great_holy_war_target_kingdom_weight_simplified = { OR = { AND = { # Shared Orthodox/Armenian sphere. - scope:the_faith = { + scope:the_faith ?= { OR = { # Bit cack-handed to check it like this, but keeps things hygienic. not_non_orthodox_standard_christian_faith_trigger = yes not_non_armenian_standard_christian_faith_trigger = yes } } - title_capital_county.title_province = { geographical_region = ghw_region_anatolia } + title_capital_county.title_province ?= { geographical_region = ghw_region_anatolia } } AND = { # Shared Catholic/Orthodox/Armenian sphere. - scope:the_faith = { + scope:the_faith ?= { OR = { # Bit cack-handed to check it like this, but keeps things hygienic. not_non_catholic_standard_christian_faith_trigger = yes @@ -4372,7 +4369,7 @@ great_holy_war_target_kingdom_weight_simplified = { not_non_armenian_standard_christian_faith_trigger = yes } } - title_capital_county.title_province = { + title_capital_county.title_province ?= { OR = { geographical_region = ghw_region_near_east geographical_region = ghw_region_egypt @@ -4381,14 +4378,14 @@ great_holy_war_target_kingdom_weight_simplified = { } AND = { # Shared Catholic/Orthodox sphere. - scope:the_faith = { + scope:the_faith ?= { OR = { # Bit cack-handed to check it like this, but keeps things hygienic. not_non_catholic_standard_christian_faith_trigger = yes not_non_orthodox_standard_christian_faith_trigger = yes } } - title_capital_county.title_province = { + title_capital_county.title_province ?= { OR = { geographical_region = ghw_region_mediterranean geographical_region = ghw_region_balkans @@ -4397,7 +4394,7 @@ great_holy_war_target_kingdom_weight_simplified = { } AND = { # Shared Catholic/Orthodox/Armenian sphere. - scope:the_faith = { + scope:the_faith ?= { OR = { # Bit cack-handed to check it like this, but keeps things hygienic. not_non_catholic_standard_christian_faith_trigger = yes @@ -4405,11 +4402,11 @@ great_holy_war_target_kingdom_weight_simplified = { not_non_armenian_standard_christian_faith_trigger = yes } } - title_capital_county.title_province = { geographical_region = ghw_region_holy_land } + title_capital_county.title_province ?= { geographical_region = ghw_region_holy_land } } AND = { - scope:the_faith = { not_non_catholic_standard_christian_faith_trigger = yes } - title_capital_county.title_province = { geographical_region = ghw_region_iberia } + scope:the_faith ?= { not_non_catholic_standard_christian_faith_trigger = yes } + title_capital_county.title_province ?= { geographical_region = ghw_region_iberia } } } } @@ -4420,8 +4417,8 @@ great_holy_war_target_kingdom_weight_simplified = { limit = { OR = { AND = { - scope:the_faith = { not_non_catholic_standard_christian_faith_trigger = yes } - title_capital_county.title_province = { + scope:the_faith ?= { not_non_catholic_standard_christian_faith_trigger = yes } + title_capital_county.title_province ?= { OR = { geographical_region = ghw_region_celtic geographical_region = ghw_region_germanic @@ -4431,14 +4428,14 @@ great_holy_war_target_kingdom_weight_simplified = { } AND = { # Shared Catholic/Orthodox sphere. - scope:the_faith = { + scope:the_faith ?= { OR = { # Bit cack-handed to check it like this, but keeps things hygienic. not_non_catholic_standard_christian_faith_trigger = yes not_non_orthodox_standard_christian_faith_trigger = yes } } - title_capital_county.title_province = { geographical_region = ghw_region_central_european } + title_capital_county.title_province ?= { geographical_region = ghw_region_central_european } } } } @@ -4452,7 +4449,7 @@ great_holy_war_target_kingdom_weight_simplified = { OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } not_non_catholic_standard_christian_faith_trigger = yes } - title_capital_county.title_province = { geographical_region = ghw_region_baltic } + title_capital_county.title_province ?= { geographical_region = ghw_region_baltic } } } add = ghw_target_stretch @@ -4480,7 +4477,7 @@ great_holy_war_target_kingdom_weight_simplified = { #Weight down farthest kingdoms if = { limit = { - title_capital_county = { + title_capital_county ?= { squared_distance = { target = title:c_byzantion value >= ghw_target_distance_02_threshold @@ -4492,6 +4489,7 @@ great_holy_war_target_kingdom_weight_simplified = { # Always weight-up kingdoms containing holy sites. if = { limit = { + exists = scope:the_faith any_in_de_jure_hierarchy = { tier = tier_barony continue = { tier > tier_barony } @@ -4503,6 +4501,7 @@ great_holy_war_target_kingdom_weight_simplified = { # Christian preference for Jerusalem if = { limit = { + exists = scope:the_faith # Not a non-Catholic standard Christian faith. scope:the_faith = { not_non_catholic_standard_christian_faith_trigger = yes } # Definitely actually considers Jerusalem holy. @@ -4521,6 +4520,7 @@ great_holy_war_target_kingdom_weight_simplified = { # A defender in the region HumSac'd your HoF if = { limit = { + exists = scope:the_faith any_in_de_jure_hierarchy = { continue = { tier > tier_county } tier = tier_county @@ -4573,11 +4573,11 @@ holy_site_reform_tracker_value = { ############################ @rite_growth_counties_per_rite = 70 -@rite_growth_min_cooldown_years = 3 -@rite_growth_max_cooldown_years = 18 +@rite_growth_min_cooldown_years = 5 +@rite_growth_max_cooldown_years = 25 @rite_growth_fallback_cooldown_years = 5 @rite_growth_grace_period_years = 10 -@rite_growth_heresy_cooldown_years = 3 +@rite_growth_heresy_cooldown_years = 5 @rite_growth_fallback_min_counties = 50 @rite_growth_soft_cap_overshoot = 2 @@ -4609,19 +4609,19 @@ rite_growth_counties_per_rite = { rite_growth_min_cooldown_years = { if = { limit = { has_game_rule = much_less_branched_rite_frequency } - value = 8 + value = 12 } else_if = { limit = { has_game_rule = less_branched_rite_frequency } - value = 5 + value = 8 } else_if = { limit = { has_game_rule = more_branched_rite_frequency } - value = 2 + value = 3 } else_if = { limit = { has_game_rule = much_more_branched_rite_frequency } - value = 1 + value = 2 } else = { value = @rite_growth_min_cooldown_years @@ -4631,19 +4631,19 @@ rite_growth_min_cooldown_years = { rite_growth_max_cooldown_years = { if = { limit = { has_game_rule = much_less_branched_rite_frequency } - value = 45 + value = 50 } else_if = { limit = { has_game_rule = less_branched_rite_frequency } - value = 27 + value = 36 } else_if = { limit = { has_game_rule = more_branched_rite_frequency } - value = 12 + value = 15 } else_if = { limit = { has_game_rule = much_more_branched_rite_frequency } - value = 8 + value = 11 } else = { value = @rite_growth_max_cooldown_years @@ -4775,19 +4775,19 @@ rite_growth_grace_period_days = { rite_growth_heresy_cooldown_days = { if = { limit = { has_game_rule = much_less_branched_rite_frequency } - value = 8 + value = 12 } else_if = { limit = { has_game_rule = less_branched_rite_frequency } - value = 5 + value = 8 } else_if = { limit = { has_game_rule = more_branched_rite_frequency } - value = 2 + value = 3 } else_if = { limit = { has_game_rule = much_more_branched_rite_frequency } - value = 1 + value = 2 } else = { value = @rite_growth_heresy_cooldown_years diff --git a/common/script_values/04_ep2_wedding_values.txt b/common/script_values/04_ep2_wedding_values.txt index 9c1046f30..8318208cc 100644 --- a/common/script_values/04_ep2_wedding_values.txt +++ b/common/script_values/04_ep2_wedding_values.txt @@ -568,6 +568,7 @@ } has_trait = denounced has_trait = disinherited + has_trait = adopted_no_inheritance } } add = -10 @@ -864,24 +865,24 @@ base_wedding_cost = { # Base cost - value = 25 + value = 20 if = { limit = { highest_held_title_tier >= tier_duchy } - add = 25 + add = 20 } if = { limit = { highest_held_title_tier >= tier_kingdom } - add = 75 + add = 60 } if = { limit = { highest_held_title_tier >= tier_empire } - add = 75 + add = 60 } if = { limit = { diff --git a/common/script_values/07_appointment_values.txt b/common/script_values/07_appointment_values.txt index 29fa8b5ca..d8f83baa1 100644 --- a/common/script_values/07_appointment_values.txt +++ b/common/script_values/07_appointment_values.txt @@ -501,17 +501,17 @@ appointment_score_base = { # Traits if = { limit = { - NOT = { - scope:title.holder ?= { - has_realm_law = acclamation_succession_law - } - } OR = { has_trait = inbred has_trait = blind is_incapable = yes has_trait_with_flag = age_related_ailment } + NOT = { + scope:title.holder ?= { + has_realm_law = acclamation_succession_law + } + } } subtract = { value = 50 @@ -547,17 +547,34 @@ appointment_score_base = { } } # RITE BASED + # Only the criminal checks below use scope:target_rite, and they all need one of these traits if = { limit = { - exists = top_liege.primary_title.state_rite + OR = { + has_trait = deviant + has_trait = incestuous + has_trait = sodomite + has_trait = cannibal + has_trait = kinslayer_1 + has_trait = kinslayer_2 + has_trait = kinslayer_3 + has_trait = witch + has_trait = adulterer + has_trait = fornicator + } } - top_liege.primary_title.state_rite = { - save_temporary_scope_as = target_rite + if = { + limit = { + exists = top_liege.primary_title.state_rite + } + top_liege.primary_title.state_rite = { + save_temporary_scope_as = target_rite + } } - } - else = { - top_liege.rite = { - save_temporary_scope_as = target_rite + else = { + top_liege.rite = { + save_temporary_scope_as = target_rite + } } } # CRIMINAL @@ -900,8 +917,8 @@ appointment_score_base = { # ADJUST BASED ON GENDER LAW - MUST GO AT THE END if = { limit = { - scope:title.holder.top_liege ?= { has_realm_law = male_preference_law } is_female = yes + scope:title.holder.top_liege ?= { has_realm_law = male_preference_law } } # use subtract instead, otherwise giving bonus when negative score! subtract = { @@ -911,8 +928,8 @@ appointment_score_base = { } else_if = { limit = { - scope:title.holder.top_liege ?= { has_realm_law = male_only_law } is_female = yes + scope:title.holder.top_liege ?= { has_realm_law = male_only_law } } # use subtract instead, otherwise giving bonus when negative score! subtract = { @@ -922,8 +939,8 @@ appointment_score_base = { } else_if = { limit = { - scope:title.holder.top_liege ?= { has_realm_law = female_preference_law } is_female = no + scope:title.holder.top_liege ?= { has_realm_law = female_preference_law } } subtract = { value = appointment_non_preferred_gender_penalty_value @@ -932,8 +949,8 @@ appointment_score_base = { } else_if = { limit = { - scope:title.holder.top_liege ?= { has_realm_law = female_only_law } is_female = no + scope:title.holder.top_liege ?= { has_realm_law = female_only_law } } subtract = { value = appointment_opposite_gender_penalty_value @@ -1256,7 +1273,7 @@ appointment_score_non_military = { limit = { is_landed = yes } add = { value = { - value = capital_county.county_holder_opinion + value = capital_county.popular_opinion multiply = 0.25 round = yes if = { @@ -1264,7 +1281,7 @@ appointment_score_non_military = { multiply = 2 } } - desc = county_holder_opinion_desc + desc = popular_opinion_desc } } # COUNCIL POSITIONS @@ -1395,7 +1412,13 @@ appointment_score_non_merit = { } # EXISTING GOVERNORSHIPS if = { - limit = { is_governor = yes } + limit = { + is_governor = yes + trigger_if = { + limit = { exists = scope:title } + NOT = { top_liege.primary_title ?= scope:title } + } + } add = { value = -1000 desc = already_a_governor_tt @@ -1505,7 +1528,7 @@ appointment_score_final_factors = { if = { limit = { exists = var:petition_liege_regent_support - top_liege.primary_title.var:administrative_ui_special_title.holder ?= var:petition_liege_regent_support + ceremonial_liege ?= var:petition_liege_regent_support scope:title ?= top_liege.primary_title # Only top liege title } multiply = { @@ -1517,7 +1540,7 @@ appointment_score_final_factors = { else_if = { limit = { exists = house.var:petition_liege_appointment_support - top_liege.primary_title.var:administrative_ui_special_title.holder ?= house.var:petition_liege_appointment_support + ceremonial_liege ?= house.var:petition_liege_appointment_support exists = scope:title scope:title ?= top_liege.primary_title # Only governorships } @@ -1531,28 +1554,28 @@ appointment_score_final_factors = { appointment_score_regent = { # SAME CULTURE AS REGION - #if = { - # limit = { - # tgp_is_in_ceremonial_house_trigger = no - # exists = scope:title - # #NOR = { - # # culture = scope:title.holder.capital_county.culture - # # top_liege.primary_title.var:administrative_ui_special_title.holder.culture = culture - # #} - # } - # add = { - # value = -50 - # desc = not_of_local_culture_succession_desc - # } - #} + if = { + limit = { + tgp_is_in_ceremonial_house_trigger = no + exists = scope:title + NOR = { + culture = scope:title.holder.capital_county.culture + ceremonial_liege.culture = culture + } + } + add = { + value = -50 + desc = not_of_local_culture_succession_desc + } + } # Emperor's opinion if = { limit = { - exists = top_liege.primary_title.var:administrative_ui_special_title.holder - this != top_liege.primary_title.var:administrative_ui_special_title.holder + exists = ceremonial_liege + this != ceremonial_liege } add = { - value = "top_liege.primary_title.var:administrative_ui_special_title.holder.opinion(root)" + value = "ceremonial_liege.opinion(root)" divide = 2 desc = ceremonial_liege_opinion_desc } @@ -1564,14 +1587,14 @@ appointment_score_regent = { tgp_is_in_ceremonial_house_trigger = yes } if = { # Emperor - limit = { this = top_liege.primary_title.var:administrative_ui_special_title.holder } + limit = { this = ceremonial_liege } add = { value = 100 desc = ceremonial_liege_desc } } else_if = { - limit = { this = top_liege.primary_title.var:administrative_ui_special_title.holder.player_heir } + limit = { this = ceremonial_liege.player_heir } add = { value = 50 desc = ceremonial_house_heir_desc @@ -1656,14 +1679,20 @@ appointment_score_regent = { } } } - add = 25 + add = { + value = 25 + desc = japanese_kampaku_domicile_capital_desc + } } # Block non-admin if = { limit = { NOT = { government_has_mechanic = administrative } } - add = -2500 + add = { + value = -2500 + desc = japanese_kampaku_not_administrative_desc + } } } diff --git a/common/script_values/07_ep3_values.txt b/common/script_values/07_ep3_values.txt index 3e1cb0a77..bc55d43d0 100644 --- a/common/script_values/07_ep3_values.txt +++ b/common/script_values/07_ep3_values.txt @@ -67,7 +67,7 @@ influence_modifier_scaling_value = { estate_external_building_normal_base_cost_value = { if = { limit = { - government_has_flag = government_is_celestial + government_has_flag = government_has_east_asian_estate } value = 50 } @@ -78,7 +78,7 @@ estate_external_building_normal_base_cost_value = { estate_external_building_high_base_cost_value = { if = { limit = { - government_has_flag = government_is_celestial + government_has_flag = government_has_east_asian_estate } value = 75 } @@ -89,7 +89,7 @@ estate_external_building_high_base_cost_value = { estate_internal_building_normal_base_cost_value = { if = { limit = { - government_has_flag = government_is_celestial + government_has_flag = government_has_east_asian_estate } value = 25 } @@ -100,7 +100,7 @@ estate_internal_building_normal_base_cost_value = { estate_internal_building_high_base_cost_value = { if = { limit = { - government_has_flag = government_is_celestial + government_has_flag = government_has_east_asian_estate } value = 40 } @@ -109,6 +109,52 @@ estate_internal_building_high_base_cost_value = { } } +# Tier multipliers +estate_building_cost_tier_3_multiplier_value = { + if = { + limit = { + government_has_flag = government_has_east_asian_estate + } + value = 4.5 + } + else = { + value = 3 + } +} +estate_building_cost_tier_4_multiplier_value = { + if = { + limit = { + government_has_flag = government_has_east_asian_estate + } + value = 8 + } + else = { + value = 5 + } +} +estate_building_cost_tier_5_multiplier_value = { + if = { + limit = { + government_has_flag = government_has_east_asian_estate + } + value = 12.5 + } + else = { + value = 7 + } +} +estate_building_cost_tier_6_multiplier_value = { + if = { + limit = { + government_has_flag = government_has_east_asian_estate + } + value = 18 + } + else = { + value = 10 + } +} + # External building costs - normal estate_external_building_normal_cost_tier_1_value = { value = estate_external_building_normal_base_cost_value @@ -124,28 +170,28 @@ estate_external_building_normal_cost_tier_2_value = { estate_external_building_normal_cost_tier_3_value = { value = { value = estate_external_building_normal_base_cost_value - multiply = 3 + multiply = estate_building_cost_tier_3_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_normal_cost_tier_4_value = { value = { value = estate_external_building_normal_base_cost_value - multiply = 4 + multiply = estate_building_cost_tier_4_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_normal_cost_tier_5_value = { value = { value = estate_external_building_normal_base_cost_value - multiply = 5 + multiply = estate_building_cost_tier_5_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_normal_cost_tier_6_value = { value = { value = estate_external_building_normal_base_cost_value - multiply = 6 + multiply = estate_building_cost_tier_6_multiplier_value } multiply = estate_location_cost_modifier_value } @@ -165,28 +211,28 @@ estate_external_building_high_cost_tier_2_value = { estate_external_building_high_cost_tier_3_value = { value = { value = estate_external_building_high_base_cost_value - multiply = 3 + multiply = estate_building_cost_tier_3_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_high_cost_tier_4_value = { value = { value = estate_external_building_high_base_cost_value - multiply = 4 + multiply = estate_building_cost_tier_4_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_high_cost_tier_5_value = { value = { value = estate_external_building_high_base_cost_value - multiply = 5 + multiply = estate_building_cost_tier_5_multiplier_value } multiply = estate_location_cost_modifier_value } estate_external_building_high_cost_tier_6_value = { value = { value = estate_external_building_high_base_cost_value - multiply = 6 + multiply = estate_building_cost_tier_6_multiplier_value } multiply = estate_location_cost_modifier_value } @@ -206,28 +252,28 @@ estate_internal_building_normal_cost_tier_2_value = { estate_internal_building_normal_cost_tier_3_value = { value = { value = estate_internal_building_normal_base_cost_value - multiply = 3 + multiply = estate_building_cost_tier_3_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_normal_cost_tier_4_value = { value = { value = estate_internal_building_normal_base_cost_value - multiply = 4 + multiply = estate_building_cost_tier_4_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_normal_cost_tier_5_value = { value = { value = estate_internal_building_normal_base_cost_value - multiply = 5 + multiply = estate_building_cost_tier_5_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_normal_cost_tier_6_value = { value = { value = estate_internal_building_normal_base_cost_value - multiply = 6 + multiply = estate_building_cost_tier_6_multiplier_value } multiply = estate_location_cost_modifier_value } @@ -247,28 +293,28 @@ estate_internal_building_high_cost_tier_2_value = { estate_internal_building_high_cost_tier_3_value = { value = { value = estate_internal_building_high_base_cost_value - multiply = 3 + multiply = estate_building_cost_tier_3_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_high_cost_tier_4_value = { value = { value = estate_internal_building_high_base_cost_value - multiply = 4 + multiply = estate_building_cost_tier_4_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_high_cost_tier_5_value = { value = { value = estate_internal_building_high_base_cost_value - multiply = 5 + multiply = estate_building_cost_tier_5_multiplier_value } multiply = estate_location_cost_modifier_value } estate_internal_building_high_cost_tier_6_value = { value = { value = estate_internal_building_high_base_cost_value - multiply = 6 + multiply = estate_building_cost_tier_6_multiplier_value } multiply = estate_location_cost_modifier_value } @@ -293,35 +339,6 @@ estate_location_cost_modifier_value = { } } -### Estate building AI values -estate_building_ai_modifier_value = { - if = { - limit = { # Some characters should want to build in their estate before they construct buildings in holdings - scope:owner = { - OR = { - has_trait = arbitrary - has_trait = gluttonous - has_trait = greedy - } - } - } - add = 10 - } - if = { # Character's loyal to the realm should very slightly favor constructing buildings in holdings first - limit = { - scope:owner = { - has_trait = loyal - OR = { - has_trait = diligent - has_trait = just - } - } - } - add = -1 # This will generally (though not guaranteed) make the AI build estate buildings one tier later than normal - } -} -# - granary_modifier_scaling_value = { value = 1 if = { @@ -408,11 +425,11 @@ granary_modifier_scaling_value = { if = { limit = { domicile_location.county = { - county_control < 100 + county_control < county_control_baseline } } add = { - value = 100 + value = domicile_location.county.county_control_baseline subtract = domicile_location.county.county_control multiply = 0.1 round = yes @@ -422,7 +439,7 @@ granary_modifier_scaling_value = { if = { limit = { domicile_location.county = { - development_level >= estate_granary_development_bonus_2_value + prosperity_level >= estate_granary_prosperity_bonus_2_value } } multiply = 3 @@ -430,7 +447,7 @@ granary_modifier_scaling_value = { else_if = { limit = { domicile_location.county = { - development_level >= estate_granary_development_bonus_1_value + prosperity_level >= estate_granary_prosperity_bonus_1_value } } multiply = 2 @@ -447,8 +464,8 @@ granary_modifier_scaling_value = { } desc = MODIFIER_DEFINITION_ESTATE_SCALING_DESC } -estate_granary_development_bonus_1_value = 30 -estate_granary_development_bonus_2_value = 60 +estate_granary_prosperity_bonus_1_value = 30 +estate_granary_prosperity_bonus_2_value = 60 estate_construction_influence_gain_value = { value = 20 @@ -995,7 +1012,7 @@ request_laamp_invasion_sponsorship_gold_cost = { ## Referenced in code ep3_hire_laamp_mercs_cost_value = { value = scope:recipient.current_military_strength - divide = 10 + divide = 20 min = scope:actor.minor_gold_value multiply = { value = { @@ -1012,7 +1029,7 @@ ep3_hire_laamp_mercs_cost_value = { } if = { limit = { - scope:recipient.domicile = { has_domicile_parameter = camp_improved_mercenary_contract_rewards } + scope:recipient.domicile ?= { has_domicile_parameter = camp_improved_mercenary_contract_rewards } } multiply = camp_improved_mercenary_contract_rewards_value } @@ -1026,7 +1043,7 @@ ep3_hire_laamp_mercs_cost_value = { ep3_hire_laamp_mercs_payment_value = { value = scope:war_contribution_value - divide = 10 + divide = 20 min = scope:employer.medium_gold_value if = { limit = { @@ -1198,8 +1215,8 @@ bookkeeper_large_commission_value = { # Distance value used instead of diplo range for LAAMP interactions range ep3_laamp_interaction_max_range = 450000 #from Byzantion to west and east edges of ERE in 1066 -purchase_land_county_cost_value = 400 -purchase_land_duchy_cost_value = 1000 +purchase_land_county_cost_value = 200 +purchase_land_duchy_cost_value = 500 ep3_laamp_invasion_levies_size_value = { value = 0 @@ -1358,1220 +1375,6 @@ ep3_laamp_invasion_base_piety_cost = { } } -# Governor efficiency used in code -# root - charater that is evaluated for the governorship -# End result should be a multiplier, but we add larger values to present it better in the breakdown. E.g. we add 10, but divide it with 100 to make it 0.1. -governor_efficiency = { - value = { - # Everyone will calculate their Efficiency according to the following: - # Skills - add = { - add = { - desc = diplomacy_concept - add = { - value = diplomacy - multiply = 1.7 - } - round = yes - } - add = { - desc = martial_concept - add = { - value = martial - multiply = 1.7 - } - round = yes - } - add = { - desc = stewardship_concept - add = { - value = stewardship - multiply = 1.7 - } - round = yes - } - add = { - desc = intrigue_concept - add = { - value = intrigue - multiply = 1.7 - } - round = yes - } - add = { - desc = learning_concept - add = { - value = learning - multiply = 1.7 - } - round = yes - } - divide = 100 - } - - if = { - limit = { - OR = { - AND = { - realm_size >= 85 - realm_size < 95 - } - liege ?= { - realm_size >= 85 - realm_size < 95 - } - } - } - add = { - add = { - value = -5 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 95 - realm_size < 105 - } - liege ?= { - realm_size >= 95 - realm_size < 105 - } - } - } - add = { - add = { - value = -5 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 105 - realm_size < 115 - } - liege ?= { - realm_size >= 105 - realm_size < 115 - } - } - } - add = { - add = { - value = -10 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 115 - realm_size < 125 - } - liege ?= { - realm_size >= 115 - realm_size < 125 - } - } - } - add = { - add = { - value = -15 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 125 - realm_size < 135 - } - liege ?= { - realm_size >= 125 - realm_size < 135 - } - } - } - add = { - add = { - value = -20 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 135 - realm_size < 145 - } - liege ?= { - realm_size >= 135 - realm_size < 145 - } - } - } - add = { - add = { - value = -25 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 145 - realm_size < 155 - } - liege ?= { - realm_size >= 145 - realm_size < 155 - } - } - } - add = { - add = { - value = -30 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 155 - realm_size < 165 - } - liege ?= { - realm_size >= 155 - realm_size < 165 - } - } - } - add = { - add = { - value = -35 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 165 - realm_size < 175 - } - liege ?= { - realm_size >= 165 - realm_size < 175 - } - } - } - add = { - add = { - value = -40 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 175 - realm_size < 185 - } - liege ?= { - realm_size >= 175 - realm_size < 185 - } - } - } - add = { - add = { - value = -45 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 185 - realm_size < 195 - } - liege ?= { - realm_size >= 185 - realm_size < 195 - } - } - } - add = { - add = { - value = -50 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 205 - realm_size < 215 - } - liege ?= { - realm_size >= 205 - realm_size < 215 - } - } - } - add = { - add = { - value = -55 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 215 - realm_size < 225 - } - liege ?= { - realm_size >= 215 - realm_size < 225 - } - } - } - add = { - add = { - value = -60 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 225 - realm_size < 235 - } - liege ?= { - realm_size >= 225 - realm_size < 235 - } - } - } - add = { - add = { - value = -65 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 235 - realm_size < 245 - } - liege ?= { - realm_size >= 235 - realm_size < 245 - } - } - } - add = { - add = { - value = -70 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 245 - realm_size < 255 - } - liege ?= { - realm_size >= 245 - realm_size < 255 - } - } - } - add = { - add = { - value = -75 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 255 - realm_size < 265 - } - liege ?= { - realm_size >= 255 - realm_size < 265 - } - } - } - add = { - add = { - value = -80 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - OR = { - AND = { - realm_size >= 265 - realm_size < 275 - - } - liege ?= { - realm_size >= 265 - realm_size < 275 - - } - } - } - add = { - add = { - value = -85 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - - OR = { - AND = { - realm_size >= 275 - realm_size < 300 - } - liege ?= { - realm_size >= 275 - realm_size < 300 - } - } - } - add = { - add = { - value = -90 - desc = game_concept_realm_size - } - divide = 100 - } - } - else_if = { - limit = { - OR = { - AND = { - realm_size >= 300 - } - liege ?= { - realm_size >= 300 - } - } - } - add = { - add = { - value = -95 - desc = game_concept_realm_size - } - divide = 100 - } - } - else = { - } - # Rank 4 or 5 education trait - if = { - limit = { - has_trait_with_flag = level_5_education - } - add = { - add = { - value = 4 - desc = has_rank_5_education_desc - } - divide = 100 - } - } - else_if = { - limit = { - has_trait_with_flag = level_4_education - } - add = { - add = { - value = 2 - desc = has_rank_4_education_desc - } - divide = 100 - } - } - - # Governor trait - if = { # You only get a small bonus since the trait also provides skills that will increase Efficiency further - limit = { - has_trait = governor - has_trait_xp = { - trait = governor - value >= 25 - } - } - add = { - add = { - value = 0 - if = { - limit = { - has_trait_xp = { - trait = governor - value >= 100 - } - } - add = 12 - } - else_if = { - limit = { - has_trait_xp = { - trait = governor - value >= 75 - } - } - add = 9 - } - else_if = { - limit = { - has_trait_xp = { - trait = governor - value >= 50 - } - } - add = 6 - } - else_if = { - limit = { - has_trait_xp = { - trait = governor - value >= 25 - } - } - add = 3 - } - desc = governor_trait_short_desc - } - divide = 100 - } - } - - # Estate - if = { - limit = { domicile ?= { has_domicile_parameter = estate_governor_efficiency_bonus } } - add = { - add = { - value = estate_governor_efficiency_bonus_value - multiply = 100 - desc = "[estate_buildings|E]" - } - divide = 100 - } - } - else_if = { - limit = { - house ?= { - house_head ?= { - domicile ?= { has_domicile_parameter = estate_governor_efficiency_bonus_for_house_members } - } - } - } - add = { - add = { - value = estate_governor_efficiency_house_bonus_value - multiply = 100 - desc = "[domicile_buildings|E]" - } - divide = 100 - } - } - - # Aspirations - if = { - limit = { # Service - house ?= { has_house_aspiration_parameter = service_house_governor_efficiency_bonus } - } - add = { - add = { - value = service_house_governor_efficiency_bonus_value - multiply = 100 - desc = service_house_power - } - divide = 100 - } - } - if = { - limit = { # Governance - house ?= { has_house_aspiration_parameter = governance_improved_governor_efficiency_bonus } - } - add = { - add = { - value = governance_improved_governor_efficiency_bonus_value - multiply = 100 - desc = celestial_governor_name_desc - } - divide = 100 - } - } - - # Bonuses from active Governorship Obligation/Administration - if = { - limit = { vassal_contract_has_flag = admin_martial_obligation_bonus } - add = { - add = { - value = martial - multiply = efficiency_skill_increase_value - desc = admin_martial_obligation_bonus_desc - } - divide = 100 - } - } - if = { - limit = { vassal_contract_has_flag = admin_stewardship_obligation_bonus } - add = { - add = { - value = stewardship - multiply = efficiency_skill_increase_value - desc = admin_stewardship_obligation_bonus_desc - } - divide = 100 - } - } - if = { - limit = { vassal_contract_has_flag = admin_prowess_obligation_bonus } - add = { - add = { - value = prowess - multiply = efficiency_skill_increase_value - desc = admin_prowess_obligation_bonus_desc - } - divide = 100 - } - } - if = { - limit = { vassal_contract_has_flag = admin_prestige_obligation_bonus } - add = { - add = { - value = prestige_level - multiply = efficiency_currency_level_increase_value - desc = admin_prestige_obligation_bonus_desc - } - divide = 100 - } - } - if = { - limit = { vassal_contract_has_flag = admin_tradeport_obligation_bonus } - add = { - add = { - every_sub_realm_barony = { - limit = { - title_province = { has_building_or_higher = common_tradeport_01 } - } - add = efficiency_building_increase_value - } - desc = admin_tradeport_obligation_bonus_desc - } - divide = 100 - } - } - # Celestial Obligation/Administration (we split these out to have separate loc) - if = { - limit = { vassal_contract_has_flag = celestial_province_protectorate } - add = { - add = { - value = martial - multiply = efficiency_skill_increase_value - desc = celestial_province_protectorate_name_desc - } - divide = 100 - } - } - if = { - limit = { vassal_contract_has_flag = celestial_province_metropolitan } - add = { - add = { - value = diplomacy - multiply = efficiency_skill_increase_value - desc = celestial_province_metropolitan_name_desc - } - divide = 100 - } - } - - # Dynasty Legacy Perk - if = { - limit = { - dynasty ?= { ep3_administrative_legacy_track_perks >= 1 } - } - add = { - add = { - value = 5 - desc = "[GetDynastyPerk('ep3_administrative_legacy_1').GetName]" - } - divide = 100 - } - } - - if = { - limit = { - dynasty ?= { has_dynasty_perk = tgp_chinese_legacy_3 } - } - add = { - add = { - value = 5 - desc = "[GetDynastyPerk('tgp_chinese_legacy_3').GetName]" - } - divide = 100 - } - } - - # Lifestyle Perks - # Positions of Power Stewardship Perk - if = { - limit = { has_perk = positions_of_power_perk } - add = { - add = { - value = 5 - desc = "[GetPerk('positions_of_power_perk').GetName(GetPlayer)]" - } - divide = 100 - } - } - # Strict Organization Martial Perk - if = { - limit = { has_perk = strict_organization_perk } - add = { - add = { - value = 5 - desc = "[GetPerk('strict_organization_perk').GetName(GetPlayer)]" - } - divide = 100 - } - } - - # Eparch court position - if = { - limit = { - employs_court_position = eparch_court_position - } - add = { - add = { - value = 1 - court_position:eparch_court_position ?= { - add = aptitude:eparch_court_position - } - multiply = 2 - desc = eparch_increase_efficiency_desc - } - divide = 100 - } - } - else_if = { - limit = { - top_liege ?= { - employs_court_position = eparch_court_position - } - NOT = { has_court_position = eparch_court_position } - domicile ?= { - domicile_location = { - this = county.holder.top_liege.capital_province - } - } - } - add = { - add = { - value = 1 - top_liege ?= { - court_position:eparch_court_position ?= { - add = aptitude:eparch_court_position - } - } - desc = eparch_increase_efficiency_vassal_desc - } - divide = 100 - } - } - if = { - limit = { - employs_court_position = grand_mentor_court_position - } - add = { - add = { - value = 1 - court_position:grand_mentor_court_position ?= { - add = aptitude:grand_mentor_court_position - } - multiply = 2 - desc = grand_mentor_powerfuL_family_score_desc - } - divide = 100 - } - } - if = { - limit = { - employs_court_position = grand_guardian_court_position - } - add = { - add = { - value = 1 - court_position:grand_guardian_court_position ?= { - add = aptitude:grand_guardian_court_position - } - multiply = 2 - desc = grand_guardian_powerfuL_family_score_desc - } - divide = 100 - } - } - if = { - limit = { - employs_court_position = grand_preceptor_court_position - } - add = { - add = { - value = 1 - court_position:grand_preceptor_court_position ?= { - add = aptitude:grand_preceptor_court_position - } - multiply = 2 - desc = grand_preceptor_powerfuL_family_score_desc - } - divide = 100 - } - } - - # Events - add = { - add = { - desc = gov_efficiency_events_desc - if = { #ep3_emperor_yearly.2150 - limit = { has_character_flag = ep3_2150_found_truth } - add = 10 - } - if = { #ep3_governor_yearly.3070 - limit = { - has_character_modifier = contented_governing_countrymen_modifier - exists = capital_county - culture = capital_county.culture - } - add = 10 - } - if = { #ep3_emperor_yearly.2160 - limit = { has_character_flag = ep3_2160_success } - add = 5 - } - if = { #ep3_emperor_yearly.2160 - limit = { has_character_flag = ep3_2160_failure } - add = -5 - } - if = { #ep3_governor_yearly.3100 - limit = { has_character_modifier = ep3_ignoring_realm_decline_modifier } - add = -5 - } - if = { #ep3_governor_yearly.3080 - limit = { has_character_flag = ep3_governor_ignored_isolation } - add = -5 - } - if = { #ep3_governor_yearly.3080 - limit = { has_character_modifier = ep3_anxious_for_new_assignment_modifier } - add = -5 - } - if = { #ep3_emperor_yearly.2170 - limit = { has_character_flag = ep3_2170_success } - add = 5 - } - if = { - limit = { has_character_modifier = restored_greek_theme_modifier } - add = 10 - } - if = { #ep3_emperor_yearly.2190 - limit = { has_character_flag = ep3_2190_honest } - add = 10 - } - if = { #ep3_emperor_yearly.2200 - limit = { has_character_flag = ep3_embezzling_governor } - add = -5 - } - if = { - limit = { has_character_modifier = ep3_bolstered_governor_treasury_modifier } - add = 5 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8050_imperial_recruiter_modifier } - add = 5 - } - if = { - limit = { has_character_flag = ep3_8060_efficiency_drop } - add = -5 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8050_imperial_resources_modifier } - add = -5 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8120_relief_rejected_modifier } - add = -5 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8130_raised_taxes_modifier } - add = -5 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8130_raised_almonage_modifier } - add = 5 - } - if = { - limit = { has_character_modifier = noble_administrators_modifier } - add = 5 - } - if = { - limit = { has_character_flag = ep3_governor_yearly_3050_neglect_duties } - add = -5 - } - if = { - limit = { has_character_flag = ep3_governor_yearly_3002_landlord_fight } - add = -5 - } - if = { - limit = { has_character_flag = ep3_governor_yearly_3002_landlord_wins } - add = -10 - } - if = { - limit = { has_character_flag = ep3_governor_yearly_3002_landlord_dominates } - add = -15 - } - if = { - limit = { has_character_modifier = ep3_governor_yearly_8040_domicile_development_modifier } - add = -10 - } - } - divide = 100 - } - - # Interactions - add = { - add = { - desc = gov_efficiency_interactions_desc - if = { - limit = { has_character_modifier = ep3_boost_efficiency_modifier } - add = { - value = { - value = efficiency_interaction_change_value - if = { - limit = { exists = var:ep3_governor_efficiency_stack } - multiply = var:ep3_governor_efficiency_stack - } - } - } - } - if = { - limit = { has_character_modifier = ep3_damage_efficiency_modifier } - add = { - value = { - value = efficiency_interaction_change_value - multiply = -1 # Negativise - if = { - limit = { exists = var:ep3_governor_efficiency_stack } - multiply = var:ep3_governor_efficiency_stack - } - } - } - } - } - divide = 100 - } - - # Schemes - add = { - add = { - desc = "[GetModifier('scheme_slandered_modifier').GetNameWithTooltip]" - if = { - limit = { has_character_modifier = scheme_slandered_modifier } - add = efficiency_slandered_value - } - } - divide = 100 - } - - # Eunuch - if = { - limit = { - exists = liege - liege.culture ?= { - OR = { - has_cultural_parameter = eunuch_trait_bonuses - has_cultural_parameter = court_machinations_eunuch_trait_bonuses - } - } - has_trait = eunuch_1 - } - add = { - add = { - value = 10 - desc = court_position_eunuch_trait - } - divide = 100 - } - } - else_if = { - limit = { - exists = liege - liege.culture ?= { - OR = { - has_cultural_parameter = eunuch_trait_bonuses - has_cultural_parameter = court_machinations_eunuch_trait_bonuses - } - } - has_trait = beardless_eunuch - } - add = { - add = { - value = 10 - desc = court_position_beardless_eunuch_trait - } - divide = 100 - } - } - - # Non-de jure governors get a penalty - if = { - limit = { - top_liege ?= { save_temporary_scope_as = top_liege_temp } - is_governor = yes - any_sub_realm_county = { - NOT = { - trigger_if = { - limit = { scope:top_liege_temp.highest_held_title_tier > tier_empire } - target_is_de_jure_liege_or_above = scope:top_liege_temp.primary_title - } - trigger_else_if = { - limit = { scope:top_liege_temp.highest_held_title_tier = tier_empire } - empire ?= scope:top_liege_temp.primary_title - } - trigger_else = { kingdom ?= scope:top_liege_temp.primary_title } - } - } - } - add = { - add = { - value = de_jure_governor_bonus - desc = de_jure_governor_desc - } - divide = 100 - } - } - - # TGP DYNASTIC CYCLE - if = { - limit = { - top_liege ?= { - has_title = title:h_china - top_participant_group:dynastic_cycle ?= { - has_participant_group_parameter = dynastic_cycle_governor_efficiency_penalty - } - } - } - add = { - add = { - value = { - add = corruption_phase_governor_efficiency_penalty_value - multiply = { - value = top_liege.legitimacy_level - subtract = 5 - } - } - desc = corruption_phase_governor_efficiency_penalty_desc - } - divide = 100 - } - } - if = { # The Forbidden City special building bonus - limit = { - top_liege.capital_province ?= { - has_building_or_higher = forbidden_city_01 - } - } - add = { - add = { - value = forbidden_city_bonus_value - desc = "[GetBuilding('forbidden_city_01').GetName]" - } - divide = 100 - } - } - if = { # The Great Barracks duchy building bonus (great project) - limit = { - OR = { - 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 - } - any_directly_owned_province ?= { - has_building_or_higher = celestial_great_barracks_01 - } - } - add = { - add = { - value = great_barracks_bonus_value - desc = "[GetBuilding('celestial_great_barracks_01').GetName]" - } - divide = 100 - } - } - - # TGP TREASURY BUDGET - if = { - limit = { - top_liege ?= { - OR = { - has_realm_law = budget_allocation_salary_0 - has_realm_law = budget_allocation_salary_5 - AND = { - has_realm_law = budget_allocation_salary_10 - situation:dynastic_cycle ?= { situation_current_phase = situation_dynastic_cycle_phase_stability_advancement } - } - AND = { - has_realm_law = budget_allocation_salary_15 - situation:dynastic_cycle ?= { situation_current_phase = situation_dynastic_cycle_phase_stability_advancement } - } - } - } - } - add = { - add = { - value = -5 - if = { - limit = { - OR = { - has_realm_law = budget_allocation_salary_0 - has_realm_law = budget_allocation_salary_5 - } - situation:dynastic_cycle ?= { situation_current_phase = situation_dynastic_cycle_phase_stability_advancement } - } - add = -5 - } - desc = low_salary_desc - } - divide = 100 - } - } - - # TGP JAPAN DOMICILE - if = { - limit = { - domicile ?= { has_domicile_parameter = japanese_archives_governor_efficiency_boost } - } - add = { - value = 2.5 - domicile ?= { - if = { - limit = { has_domicile_building_or_higher = japanese_archive_02 } - add = 2.5 - } - if = { - limit = { has_domicile_building_or_higher = japanese_archive_03 } - add = 2.5 - } - if = { - limit = { has_domicile_building_or_higher = japanese_archive_04 } - add = 2.5 - } - if = { - limit = { has_domicile_building_or_higher = japanese_archive_05 } - add = 2.5 - } - } - desc = japanese_archives_governor_efficiency_boost_desc - } - } - #HOUSE BLOC - if = { - limit = { - confederation ?= { has_cohesion_level_parameter = any_member_house_governor_efficiency_boost } - } - multiply = { - value = 1.1 - desc = SERVICE_BLOC_COHESION_DESC - } - } - - min = 0.5 # Can't go lower than -50% - max = 1.5 # Can't go higher than +50% - } -} - # Governor efficiency as presented in the interface. governor_efficiency_presented = { value = { @@ -2583,7 +1386,6 @@ governor_efficiency_presented = { efficiency_skill_increase_value = 0.5 efficiency_currency_level_increase_value = 4 -efficiency_building_increase_value = 2 efficiency_slandered_value = -5 admin_contract_cooldown_value = 5 @@ -2695,7 +1497,7 @@ admin_council_cost_perk_value = 0.3 admin_state_faith_cost_perk_value = 0.2 estate_move_cooldown_value = 180 -estate_governor_efficiency_bonus_value = 0.1 +estate_governor_efficiency_bonus_value = 0.05 estate_governor_efficiency_house_bonus_value = 0.05 estate_increased_governance_scheme_success_value = 10 estate_local_theme_cost_reduction_value = -0.25 @@ -2867,7 +1669,7 @@ tiny_gold_laamps_value = { else = { multiply = 0.75 } } minor_gold_laamps_value = { - value = 25 + value = 15 if = { limit = { culture = { has_cultural_era_or_later = culture_era_late_medieval } @@ -2889,7 +1691,7 @@ minor_gold_laamps_value = { else = { multiply = 0.75 } } medium_gold_laamps_value = { - value = 50 + value = 20 if = { limit = { culture = { has_cultural_era_or_later = culture_era_late_medieval } @@ -2911,7 +1713,7 @@ medium_gold_laamps_value = { else = { multiply = 0.75 } } major_gold_laamps_value = { - value = 80 + value = 30 if = { limit = { culture = { has_cultural_era_or_later = culture_era_late_medieval } @@ -2933,7 +1735,7 @@ major_gold_laamps_value = { else = { multiply = 0.75 } } massive_gold_laamps_value = { - value = 120 + value = 40 if = { limit = { culture = { has_cultural_era_or_later = culture_era_late_medieval } @@ -2955,7 +1757,7 @@ massive_gold_laamps_value = { else = { multiply = 0.75 } } monumental_gold_laamps_value = { - value = 180 + value = 60 if = { limit = { culture = { has_cultural_era_or_later = culture_era_late_medieval } @@ -3135,7 +1937,7 @@ task_contract_failure_piety_loss_full_value = { ## Default scaling reward. task_contract_success_gold_gain_full_value = { # Base value + multiplier. - value = 50 + value = 15 multiply = task_contract_tier_gold_multiplier_value # Lifestyle perks. if = { @@ -3171,7 +1973,7 @@ task_contract_success_gold_gain_full_value = { add = 10 } ## Shouldn't happen but just in case someone is really, really, _really_ stingy: never pay less than at least a truly pathetic amount. - min = 25 + min = 5 } ## Critical scaling reward. task_contract_success_gold_gain_critical_value = { @@ -3220,7 +2022,7 @@ task_contract_invalidated_gold_gain_value = { ## Travel scaling reward. task_contract_success_gold_gain_travel_value = { # Base value + multiplier. - value = 75 + value = 20 multiply = task_contract_tier_gold_multiplier_value # Lifestyle perks. if = { @@ -3233,7 +2035,10 @@ task_contract_success_gold_gain_travel_value = { } if = { limit = { - scope:task_contract.task_contract_taker = { has_perk = malice_implicit_perk } + scope:task_contract.task_contract_taker = { + has_perk = malice_implicit_perk + NOT = { government_has_flag = government_is_merchant } + } } multiply = 2 } @@ -3264,7 +2069,7 @@ task_contract_success_gold_gain_travel_value = { add = 10 } ## Shouldn't happen but just in case someone is really, really, _really_ stingy: never pay less than at least a truly pathetic amount. - min = 25 + min = 5 } ## Travel critical scaling reward. task_contract_success_gold_gain_critical_travel_value = { @@ -3303,7 +2108,7 @@ task_contract_success_gold_gain_half_travel_value = { ## Criminal scaling reward. task_contract_success_gold_gain_crime_value = { # Base value + multiplier. - value = 100 + value = 25 multiply = task_contract_tier_gold_multiplier_value # Lifestyle perks. if = { @@ -3316,7 +2121,10 @@ task_contract_success_gold_gain_crime_value = { } if = { limit = { - scope:task_contract.task_contract_taker = { has_perk = malice_implicit_perk } + scope:task_contract.task_contract_taker = { + has_perk = malice_implicit_perk + NOT = { government_has_flag = government_is_merchant } + } } multiply = 2 } @@ -3356,7 +2164,7 @@ task_contract_success_gold_gain_crime_value = { add = 10 } ## Shouldn't happen but just in case someone is really, really, _really_ stingy: never pay less than at least a truly pathetic amount. - min = 60 + min = 15 } ## Criminal critical scaling reward. task_contract_success_gold_gain_critical_crime_value = { @@ -3506,17 +2314,17 @@ camp_improved_mercenary_contract_rewards_loc_value = { camp_refund_mult_value = 0.5 # Camp additional buildings standard costs. -camp_building_upgrade_cost_t1_value = 60 -camp_building_upgrade_cost_t2_value = 120 -camp_building_upgrade_cost_t3_value = 180 -camp_building_upgrade_cost_t4_value = 240 -camp_building_upgrade_cost_t5_value = 300 -camp_building_upgrade_cost_t6_value = 360 +camp_building_upgrade_cost_t1_value = 15 +camp_building_upgrade_cost_t2_value = 30 +camp_building_upgrade_cost_t3_value = 45 +camp_building_upgrade_cost_t4_value = 60 +camp_building_upgrade_cost_t5_value = 75 +camp_building_upgrade_cost_t6_value = 90 # Assorted gold costs for camp buildings. -camp_main_02_domicile_building_gold_cost_value = 200 -camp_main_03_domicile_building_gold_cost_value = 350 -camp_main_04_domicile_building_gold_cost_value = 500 +camp_main_02_domicile_building_gold_cost_value = 50 +camp_main_03_domicile_building_gold_cost_value = 90 +camp_main_04_domicile_building_gold_cost_value = 130 supply_tent_01_domicile_building_gold_cost_value = camp_building_upgrade_cost_t1_value supply_tent_02_domicile_building_gold_cost_value = camp_building_upgrade_cost_t2_value supply_tent_03_domicile_building_gold_cost_value = camp_building_upgrade_cost_t3_value @@ -4010,8 +2818,8 @@ prison_break_value = { # Powerful Family Rating # House power score is used in code to enable bonuses from powerful houses -# current scope - house under evaluation -house_power_score = { +# root = house under evaluation +administrative_house_power_score = { value = { value = 0 @@ -4389,10 +3197,7 @@ court_position_aptitude_traveling_friends_value = { has_character_flag = travelling_friend liege ?= { any_court_position_holder = { - OR = { - has_relation_best_friend = root - has_relation_friend = root - } + has_relation_friend = root has_character_flag = travelling_friend } } @@ -4444,7 +3249,7 @@ number_of_granaries_in_egypt_value = { region = custom_roman_aegyptus limit = { any_county_province = { - has_building_or_higher = cereal_fields_05 + has_building_or_higher = farming_fields_5 } } add = 1 @@ -5114,7 +3919,7 @@ reinforce_soldiers_dread_cost_value = { value = 5 if = { limit = { - scope:actor.domicile = { has_domicile_parameter = camp_improved_entice_local_mercenaries } + scope:actor.domicile ?= { has_domicile_parameter = camp_improved_entice_local_mercenaries } } add = -2.5 } @@ -5166,27 +3971,23 @@ gather_provisions_forage_base_value = { else = { add = 500 } # BUILDINGS if = { - limit = { has_building_or_higher = pastures_01 } + limit = { has_building_or_higher = farming_fields_1 } add = 25 } if = { - limit = { has_building_or_higher = orchards_01 } + limit = { has_building_or_higher = meadowlands_pastures_1 } add = 25 } if = { - limit = { has_building_or_higher = farm_estates_01 } + limit = { has_building_or_higher = grain_resource_building_1 } add = 25 } if = { - limit = { has_building_or_higher = cereal_fields_01 } + limit = { has_building_or_higher = cattle_resource_building_1 } add = 25 } if = { - limit = { has_building_or_higher = plantations_01 } - add = 25 - } - if = { - limit = { has_building_or_higher = hill_farms_01 } + limit = { has_building_or_higher = fruit_resource_building_1 } add = 25 } # WINTER @@ -5266,10 +4067,6 @@ gather_provisions_hunt_base_value = { add = 50 } # BUILDINGS - if = { - limit = { has_building_or_higher = hunting_grounds_01 } - add = 50 - } if = { limit = { has_building_or_higher = royal_forest_01 } add = 100 @@ -5303,7 +4100,35 @@ adventurers_make_local_deals_option_value = { if = { limit = { root.current_travel_plan.current_location.available_loot > 0 } add = root.current_travel_plan.current_location.available_loot - divide = 4 + divide = 10 + } +} + +make_local_deals_haggle_bandit_chance_value = { + value = 15 + if = { + limit = { government_has_flag = government_is_merchant } + add = 15 + } + if = { + limit = { exists = var:local_deals_last_haggle_gold } + add = { + value = var:local_deals_last_haggle_gold + multiply = 2 + } + } + min = 10 + max = 55 +} + +local_deals_bandit_demand_gold_value = { + value = minor_gold_value + if = { + limit = { exists = var:local_deals_last_haggle_gold } + add = { + value = var:local_deals_last_haggle_gold + multiply = 1.25 + } } } @@ -5862,7 +4687,7 @@ estate_increased_personal_scheme_success_3_value = 25 kennels_more_successful_hunts_1_value = 10 kennels_more_successful_hunts_2_value = 15 -cultivated_sophistication_development_gain = minor_development_progress_gain +cultivated_sophistication_prosperity_gain = minor_prosperity_progress_gain ep3_requested_faith_support_0_value = { value = major_influence_gain @@ -5896,8 +4721,6 @@ ep3_requested_faith_support_6_value = { chancellor_integrate_title_admin_top_liege_bonus = 1 chancellor_integrate_title_admin_target_bonus = 0.5 -de_jure_governor_bonus = -20 - greek_anarchy_army_levy_value = { value = 50 if = { @@ -6042,7 +4865,7 @@ greek_anarchy_army_heavy_cav_value = { } } -greek_anarchy_development_value = -50 +greek_anarchy_prosperity_value = -50 faction_power_existing_threshold_value = { value = faction_power @@ -6257,7 +5080,7 @@ ep3_adventurer_ai_contracts_per_employer_min_value = 1 ep3_adventurer_ai_employers_per_kingdom_max_value = 8 ep3_adventurer_ai_employers_per_kingdom_min_value = 4 -procure_estate_interaction_cost_base_gold = 1000 +procure_estate_interaction_cost_base_gold = 250 procure_estate_interaction_cost_base_prestige = 2000 procure_estate_interaction_cost_base_piety = 1000 @@ -6268,7 +5091,7 @@ request_co_emperor_interaction_influence_cost_value = { } see_how_its_done_gold_reward_value = { - value = 20 + value = 2 multiply = been_there_done_that_check_multiplier_value } @@ -6356,11 +5179,6 @@ laamp_marriable_men_realistic_value = { } } -laamp_city_construction_year_value = { - value = scope:year_of_construction - add = 100 -} - force_step_down_interaction_gold_cost_value = { value = 0 scope:recipient = { diff --git a/common/script_values/99_casus_belli_values.txt b/common/script_values/99_casus_belli_values.txt index bfb8e731b..704714e1c 100644 --- a/common/script_values/99_casus_belli_values.txt +++ b/common/script_values/99_casus_belli_values.txt @@ -158,7 +158,7 @@ common_cb_cost_multiplier_core = { scope:attacker = { house ?= { OR = { - has_house_modifier = fp3_house_modifier_frontier_ambitions + has_house_modifier = fp3_house_modifier_frontier_ambitions has_house_modifier = fp3_house_modifier_rebuilding_efforts } } @@ -171,7 +171,7 @@ common_cb_cost_multiplier_core = { scope:defender = { house ?= { OR = { - has_house_modifier = fp3_house_modifier_frontier_ambitions + has_house_modifier = fp3_house_modifier_frontier_ambitions has_house_modifier = fp3_house_modifier_rebuilding_efforts } } @@ -291,6 +291,19 @@ common_cb_cost_multiplier_core = { desc = disarmament_law_increased_cb_cost_desc } } + # Attacking a Republic + if = { + limit = { + scope:defender = { + government_has_flag = government_is_republic + } + } + multiply = { + value = 1 + add = gdp_attacking_republic_cb_cost_value + desc = gdp_attacking_republic_cb_cost_desc + } + } } common_cb_cost_multiplier = { @@ -438,7 +451,34 @@ common_cb_piety_cost_multiplier = { desc = CB_STRUGGLE_PHASE_DISCOUNT } } - + #Guelphs & Ghibellines + if = { + limit = { + OR = { + #Dictatus Papae, Ad Interim and Agitation phases + AND = { + gg_phase_has_cheaper_opposite_party_wars_trigger = yes + gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:attacker SECOND = scope:defender } + } + #Guelph Advantage phase + AND = { + situation:guelph_ghibelline ?= { situation_current_phase = guelph_advantage } + scope:attacker = { is_ghibelline_trigger = yes } + scope:defender = { is_guelph_trigger = yes } + } + #Ghibelline Advantage phase + AND = { + situation:guelph_ghibelline ?= { situation_current_phase = ghibelline_advantage } + scope:attacker = { is_guelph_trigger = yes } + scope:defender = { is_ghibelline_trigger = yes } + } + } + } + multiply = { + value = 0.5 + desc = CB_SITUATION_PHASE_DISCOUNT + } + } # Common multiplier multiply = common_cb_cost_multiplier_core } @@ -471,6 +511,46 @@ holy_war_cb_piety_cost_multiplier = { desc = "CB_ATTACKER_VASSAL_CONTRACT" } } + + if = { + limit = { + scope:attacker = { + any_active_accolade = { + accolade_parameter = acclaimed_knight_piety_from_battle_high + } + } + } + multiply = { + value = accolade_piety_reduction_value_high + desc = "fanatic_attribute" + } + } + else_if = { + limit = { + scope:attacker = { + any_active_accolade = { + accolade_parameter = acclaimed_knight_piety_from_battle + } + } + } + multiply = { + value = accolade_piety_reduction_value + desc = "fanatic_attribute" + } + } + if = { + limit = { + scope:attacker = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_cheaper_religious_wars + } + } + } + multiply = { + value = 0.75 + desc = pam_the_christian_church_cheaper_religious_wars_desc + } + } } # Base Costs @@ -697,6 +777,35 @@ common_cb_prestige_cost_multiplier = { } } + #Guelphs & Ghibellines + if = { + limit = { + OR = { + #Dictatus Papae, Ad Interim and Agitation phases + AND = { + gg_phase_has_cheaper_opposite_party_wars_trigger = yes + gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:attacker SECOND = scope:defender } + } + #Guelph Advantage phase + AND = { + situation:guelph_ghibelline ?= { situation_current_phase = guelph_advantage } + scope:attacker = { is_ghibelline_trigger = yes } + scope:defender = { is_guelph_trigger = yes } + } + #Ghibelline Advantage phase + AND = { + situation:guelph_ghibelline ?= { situation_current_phase = ghibelline_advantage } + scope:attacker = { is_guelph_trigger = yes } + scope:defender = { is_ghibelline_trigger = yes } + } + } + } + multiply = { + value = 0.5 + desc = CB_SITUATION_PHASE_DISCOUNT + } + } + # Common modifier multiply = common_cb_cost_multiplier } @@ -705,7 +814,7 @@ vassalization_cb_prestige_cost_mulitiplier = { value = 1 if = { limit = { - scope:defender.primary_title.tier = tier_kingdom + scope:defender.highest_held_title_tier = tier_kingdom } multiply = { value = 2 @@ -714,7 +823,7 @@ vassalization_cb_prestige_cost_mulitiplier = { } else_if = { limit = { - scope:defender.primary_title.tier = tier_empire + scope:defender.highest_held_title_tier = tier_empire } multiply = { value = 4 @@ -723,6 +832,56 @@ vassalization_cb_prestige_cost_mulitiplier = { } } +claim_cb_cost_multiplier_legitimacy = { + scope:attacker = { + if = { + limit = { has_legitimacy_flag = reduced_claim_cb_cost } + add = { + value = 0.5 + desc = legitimacy_high_modifier_tt + } + } + else_if = { + limit = { has_legitimacy_flag = very_reduced_claim_cb_cost } + add = { + value = 0.25 + desc = legitimacy_high_modifier_tt + } + } + else_if = { + limit = { has_legitimacy_flag = extra_reduced_claim_cb_cost } + add = { + value = 0.15 + desc = legitimacy_high_modifier_tt + } + } + else_if = { + limit = { has_legitimacy_flag = increased_claim_cb_cost } + add = { + value = 1.5 + desc = legitimacy_low_modifier_tt + } + } + else_if = { + limit = { has_legitimacy_flag = very_increased_claim_cb_cost } + add = { + value = 2 + desc = legitimacy_low_modifier_tt + } + } + else_if = { + limit = { has_legitimacy_flag = massively_increased_claim_cb_cost } + add = { + value = 2.5 + desc = legitimacy_low_modifier_tt + } + } + else = { + add = 1 + } + } +} + # Base Costs claim_cb_prestige_cost = { if = { @@ -1033,6 +1192,184 @@ tribal_subjugation_cb_prestige_cost = { multiply = common_cb_prestige_cost_multiplier } +county_cb_influence_base_cost = { + if = { + limit = { + scope:attacker = { government_has_flag = government_has_influence } + } + add = { + value = 25 + desc = CB_BASE_COST + } + add = { + value = 0.5 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 75 + } + } +} + +duchy_cb_influence_base_cost = { + if = { + limit = { + scope:attacker = { government_has_flag = government_has_influence } + } + add = { + value = 50 + desc = CB_BASE_COST + } + add = { + value = 1 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 250 + } + } +} + +county_cb_prestige_base_cost = { + if = { + limit = { + scope:defender.faith != scope:attacker.faith + } + add = { + value = 50 + desc = CB_COST_DIFFERENT_FAITH + } + add = { + value = 5 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 100 + } + } +} + +duchy_cb_prestige_base_cost = { + if = { + limit = { + scope:defender.faith != scope:attacker.faith + } + add = { + value = 150 + desc = CB_COST_DIFFERENT_FAITH + } + add = { + value = 10 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 800 + } + } +} +# admin cbs, cheaper since they pay influence at the same time +county_cb_prestige_base_cost_with_influence = { + add = { + value = 50 + desc = CB_BASE_COST + } + add = { + value = 2.5 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 150 + } +} + +duchy_cb_prestige_base_cost_with_influence = { + add = { + value = 100 + desc = CB_BASE_COST + } + add = { + value = 5 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 500 + } +} + +county_cb_piety_base_cost = { + if = { + limit = { + scope:defender.faith = scope:attacker.faith + } + add = { + value = 25 + desc = CB_SAME_FAITH_COST + } + add = { + value = 5 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 75 + } + } +} + +duchy_cb_piety_base_cost = { + if = { + limit = { + scope:defender.faith = scope:attacker.faith + } + add = { + value = 100 + desc = CB_SAME_FAITH_COST + } + add = { + value = 10 + multiply = scope:attacker.sub_realm_size + desc = CB_REALM_SIZE_COST + max = 800 + } + } +} + +conquest_cb_prestige_cost_multiplier = { + value = 1 + # fp2 iberian struggle ending + if = { + limit = { + scope:attacker.house = { + OR = { + has_house_modifier = fp2_struggle_hostility_house_culture_modifier + has_house_modifier = fp2_struggle_hostility_house_combined_modifier + } + } + any_in_global_list = { + variable = fp2_struggle_ending_culture_list + this = scope:attacker.culture + } + any_in_global_list = { + variable = fp2_struggle_ending_culture_list + this = scope:defender.culture + } + } + divide = { + value = 2 + desc = CB_COST_FP2_STRUGGLE_HOSTILITY_CULTURE_DISCOUNT + } + } + if = { + limit = { + has_global_variable = fp2_struggle_compromise_ending + any_in_global_list = { + variable = fp2_struggle_ending_culture_list + this = scope:attacker.culture + } + any_in_global_list = { + variable = fp2_struggle_ending_culture_list + this = scope:defender.culture + } + } + multiply = { + value = 2 + desc = CB_COST_FP2_STRUGGLE_COMPROMISE_MULTIPLIER + } + } +} + # Ancestor war base cost ancestor_cb_prestige_cost = { add = { @@ -1192,7 +1529,179 @@ ancestor_cb_prestige_cost = { struggle_cb_phase_modifier_cost = { # Phase modifiers. ## Note that these aren't hooked up to the actual _parameters_ for tooltip reasons: we'd have to check what the phase is anyway, so we just check off of the phase to begin with and save ourselves a worthless parameter check. - + add = { + value = 0 + # Cheap. + if = { + limit = { + scope:attacker = { + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + is_struggle_phase = struggle_iberia_phase_hostility + is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } + } + } + } + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = minor_prestige_value + } + } + multiply = { + value = 0.9 + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 0.1 + } + } + max = 2 + } + desc = CB_COST_STRUGGLE_PHASE_HOSTILITY + } + } + # Standard. + if = { + limit = { + scope:attacker = { + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + is_struggle_phase = struggle_iberia_phase_opportunity + is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } + } + } + } + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = medium_prestige_value + } + } + multiply = { + value = 0.9 + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 0.1 + } + } + max = 2 + } + desc = CB_COST_STRUGGLE_PHASE_OPPORTUNITY + } + } + # Expensive. + if = { + limit = { + scope:attacker = { + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + is_struggle_phase = struggle_iberia_phase_compromise + is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } + } + } + } + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = major_prestige_value + } + } + multiply = { + value = 0.9 + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 0.1 + } + } + max = 2 + } + desc = CB_COST_STRUGGLE_PHASE_COMPROMISE + } + } + if = { + limit = { + scope:attacker = { + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + is_struggle_phase = struggle_iberia_phase_conciliation + is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } + } + } + } + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = major_prestige_value + } + } + multiply = { + value = 0.9 + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 0.1 + } + } + max = 2 + } + desc = CB_COST_STRUGGLE_PHASE_CONCILIATION + } + } + if = { # Post Struggle cost + limit = { + scope:attacker = { + exists = scope:attacker.house + scope:attacker.house = { + OR ={ + has_house_modifier = fp2_struggle_hostility_house_combined_modifier + has_house_modifier = fp2_struggle_hostility_house_faith_modifier + has_house_modifier = fp2_struggle_hostility_house_culture_modifier + } + } + } + } + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = major_prestige_value + } + } + multiply = { + value = 0.9 + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 0.1 + } + } + max = 2 + } + desc = CB_BASE_COST + } + } + } } common_claim_reduction_cost_multiplier_core = { diff --git a/common/script_values/99_court_chaplain_values.txt b/common/script_values/99_court_chaplain_values.txt index 518b6ab5e..17865f49c 100644 --- a/common/script_values/99_court_chaplain_values.txt +++ b/common/script_values/99_court_chaplain_values.txt @@ -96,12 +96,30 @@ court_chaplain_religious_relations_celestial_hierarchy_bonus_modifier = { # Total gain calculation court_chaplain_religious_relations_total_piety_gain = { add = court_chaplain_religious_relations_modifier - add = court_chaplain_religious_relations_perk_bonus_modifier - add = court_chaplain_religious_relations_erudition_legacy_5_bonus_modifier - 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 + if = { + limit = { scope:councillor_liege = { has_perk = clerical_justifications_perk } } + add = court_chaplain_religious_relations_perk_bonus_modifier + } + if = { + limit = { councillor_liege_has_erudition_legacy_5_perk = yes } + add = court_chaplain_religious_relations_erudition_legacy_5_bonus_modifier + } + if = { + limit = { councillor_liege_has_family_business_bonus = yes } + add = court_chaplain_religious_relations_family_business_bonus_modifier + } + if = { + limit = { councillor_liege_has_consulted_house_bonus = yes } + add = court_chaplain_religious_relations_consulted_house_bonus_modifier + } + if = { + limit = { scope:councillor_liege.culture = { has_cultural_parameter = religious_relations_is_empowered } } + add = court_chaplain_religious_relations_cultural_tradition_bonus_modifier + } + if = { + limit = { scope:councillor_liege.rite ?= { rite_has_parameter = tenet_celestial_hierarchy_religious_relations_bonus } } + add = court_chaplain_religious_relations_celestial_hierarchy_bonus_modifier + } } # Opinion: @@ -245,13 +263,13 @@ court_chaplain_religious_relations_no_hof_opinion_modifier = { add = 0 if = { limit = { + scope:councillor.rite = { rite_has_doctrine = doctrine_theocracy_lay_clergy } scope:councillor.faith = { OR = { has_doctrine_parameter = no_head_of_faith NOT = { exists = religious_head } } } - 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 @@ -576,50 +594,61 @@ court_chaplain_conversion_contextual_bonuses = { } } # Relation Bonuses/Penalties - if = { # Friend + if = { limit = { + # Best friends and nemeses also count as friends and rivals scope:councillor_liege = { - has_relation_friend = scope:councillor - NOT = { has_relation_best_friend = scope:councillor } + OR = { + has_relation_friend = scope:councillor + has_relation_rival = scope:councillor + } } } - add = { - value = scope:councillor.court_chaplain_conversion_monthly_increase_friend_bonus - desc = COUNCILLOR_IS_YOUR_FRIEND - } - } - if = { # Best Friend - limit = { - scope:councillor_liege = { - has_relation_best_friend = scope:councillor + if = { # Friend + limit = { + scope:councillor_liege = { + has_relation_friend = scope:councillor + NOT = { has_relation_best_friend = scope:councillor } + } + } + add = { + value = scope:councillor.court_chaplain_conversion_monthly_increase_friend_bonus + desc = COUNCILLOR_IS_YOUR_FRIEND } } - add = { - value = scope:councillor.court_chaplain_conversion_monthly_increase_best_friend_bonus - desc = COUNCILLOR_IS_YOUR_BEST_FRIEND - } - } - if = { # Rival - limit = { - scope:councillor_liege = { - has_relation_rival = scope:councillor - NOT = { has_relation_nemesis = scope:councillor } + if = { # Best Friend + limit = { + scope:councillor_liege = { + has_relation_best_friend = scope:councillor + } + } + add = { + value = scope:councillor.court_chaplain_conversion_monthly_increase_best_friend_bonus + desc = COUNCILLOR_IS_YOUR_BEST_FRIEND } } - add = { - value = scope:councillor.court_chaplain_conversion_monthly_increase_rival_bonus - desc = COUNCILLOR_IS_YOUR_RIVAL - } - } - if = { # Nemesis - limit = { - scope:councillor_liege = { - has_relation_nemesis = scope:councillor + if = { # Rival + limit = { + scope:councillor_liege = { + has_relation_rival = scope:councillor + NOT = { has_relation_nemesis = scope:councillor } + } + } + add = { + value = scope:councillor.court_chaplain_conversion_monthly_increase_rival_bonus + desc = COUNCILLOR_IS_YOUR_RIVAL } } - add = { - value = scope:councillor.court_chaplain_conversion_monthly_increase_nemesis_bonus - desc = COUNCILLOR_IS_YOUR_NEMESIS + if = { # Nemesis + limit = { + scope:councillor_liege = { + has_relation_nemesis = scope:councillor + } + } + add = { + value = scope:councillor.court_chaplain_conversion_monthly_increase_nemesis_bonus + desc = COUNCILLOR_IS_YOUR_NEMESIS + } } } #Conversion modifiers from where the Faith is on the Pluralism spectrum. @@ -1003,6 +1032,21 @@ court_chaplain_conversion_contextual_bonuses = { # desc = COURT_CHAPLAIN_CONVERSION_HOLY_SITE_WADI_EL_MILK # } #} + if = { + limit = { + exists = scope:county + scope:county.faith = { + controls_holy_site_with_parameter = wadi_el_milk_conversion_resistance_bonus + } + title:b_wadi_el-milk = { + is_holy_site_of = scope:councillor.faith + } + } + add = { + value = scope:councillor.conversion_holy_site_wadi_el_milk + desc = COURT_CHAPLAIN_CONVERSION_HOLY_SITE_WADI_EL_MILK + } + } if = { limit = { scope:councillor.faith = { @@ -1017,20 +1061,6 @@ court_chaplain_conversion_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_HOLY_SITE_CORDOBA } } - if = { - limit = { - scope:councillor.faith ?= { - controls_holy_site_with_parameter = geneva_conversion_bonus - } - title:b_geneva = { - is_holy_site_of = scope:councillor.faith - } - } - add = { - value = scope:councillor.conversion_holy_site_geneva - desc = COURT_CHAPLAIN_CONVERSION_HOLY_SITE_GENEVA - } - } if = { limit = { exists = scope:county @@ -1245,6 +1275,138 @@ court_chaplain_conversion_contextual_bonuses = { court_chaplain_conversion_factors = { value = 1 + if = { + limit = { exists = scope:county.title_province } + multiply = { + value = 1 + subtract = { + value = scope:county.title_province.province_size_level + multiply = convert_faith_settlement_size_penalty_step + } + desc = COURT_CHAPLAIN_CONVERSION_SETTLEMENT_SIZE + } + } + if = { + limit = { + exists = scope:county.faith + exists = scope:councillor.faith + scope:councillor.faith = { + faith_hostility_level = { + target = scope:county.faith + value >= faith_evil_level + } + } + } + multiply = { + value = convert_faith_hostility_evil_mult + desc = COURT_CHAPLAIN_CONVERSION_HOSTILITY + } + } + else_if = { + limit = { + exists = scope:county.faith + exists = scope:councillor.faith + scope:councillor.faith = { + faith_hostility_level = { + target = scope:county.faith + value >= faith_hostile_level + } + } + } + multiply = { + value = convert_faith_hostility_hostile_mult + desc = COURT_CHAPLAIN_CONVERSION_HOSTILITY + } + } + else_if = { + limit = { + exists = scope:county.faith + exists = scope:councillor.faith + scope:councillor.faith = { + faith_hostility_level = { + target = scope:county.faith + value >= faith_astray_level + } + } + } + multiply = { + value = convert_faith_hostility_astray_mult + desc = COURT_CHAPLAIN_CONVERSION_HOSTILITY + } + } + if = { + limit = { + exists = scope:county + scope:county.culture = { + OR = { + is_divergent_culture = yes + is_hybrid_culture = yes + } + } + scope:councillor_liege.culture = { has_same_culture_heritage = scope:county.culture } + } + multiply = { + value = convert_faith_divergence_shared_root_mult + desc = COURT_CHAPLAIN_CONVERSION_DIVERGENCE + } + } + if = { + limit = { + exists = scope:county + scope:county.culture = scope:councillor_liege.culture + } + multiply = { + value = convert_faith_cultural_same_culture_mult + desc = COURT_CHAPLAIN_CONVERSION_CULTURAL_SIMILARITY + } + } + else_if = { + limit = { + exists = scope:county + scope:councillor_liege.culture = { has_same_culture_heritage = scope:county.culture } + } + multiply = { + value = convert_faith_cultural_same_heritage_mult + desc = COURT_CHAPLAIN_CONVERSION_CULTURAL_SIMILARITY + } + } + else_if = { + limit = { + exists = scope:county + scope:councillor_liege.culture = { + cultural_acceptance = { target = scope:county.culture value < 25 } + } + } + multiply = { + value = convert_faith_cultural_acceptance_alien_mult + desc = COURT_CHAPLAIN_CONVERSION_CULTURAL_SIMILARITY + } + } + else_if = { + limit = { + exists = scope:county + scope:councillor_liege.culture = { + cultural_acceptance = { target = scope:county.culture value < 50 } + } + } + multiply = { + value = convert_faith_cultural_acceptance_low_mult + desc = COURT_CHAPLAIN_CONVERSION_CULTURAL_SIMILARITY + } + } + else_if = { + limit = { + exists = scope:county + scope:councillor_liege.culture = { + cultural_acceptance = { target = scope:county.culture value < 75 } + } + } + multiply = { + value = convert_faith_cultural_acceptance_mid_mult + desc = COURT_CHAPLAIN_CONVERSION_CULTURAL_SIMILARITY + } + } + if = { limit = { scope:councillor.faith = { @@ -1562,38 +1724,22 @@ rite_conversion_fervor_mult = { } } -# Development penalty -convert_faith_development_penalty = { - value = 0 - if = { - limit = { exists = scope:county } - add = scope:councillor.court_chaplain_conversion_base - add = scope:councillor.court_chaplain_conversion_monthly_increase - add = scope:councillor.court_chaplain_conversion_monthly_increase_perk_bonus - add = { - add = { - add = scope:councillor.court_chaplain_progress_percentage - multiply = scope:councillor.faith.fervor - } - subtract = { - add = scope:councillor.court_chaplain_progress_percentage - multiply = scope:county.faith.fervor - } - if = { - limit = { - scope:councillor_liege = { has_perk = religious_icon_perk } - } - min = 0 - } - } - add = scope:councillor.court_chaplain_conversion_contextual_bonuses - multiply = { - subtract = scope:county.development_level - divide = 100 - min = -0.9 - } - } -} +convert_faith_settlement_size_penalty_step = 0.03 + +# Faith hostility of the converting Faith toward the local one. +convert_faith_hostility_astray_mult = 0.9 # astray (heresy of same religion) +convert_faith_hostility_hostile_mult = 0.8 # hostile Faith +convert_faith_hostility_evil_mult = 0.7 # evil Faith + +# Divergent/hybrid local culture that still shares the converting culture's heritage. +convert_faith_divergence_shared_root_mult = 1.15 + +# Cultural similarity between the converting (Liege) culture and the local culture. +convert_faith_cultural_same_culture_mult = 1.15 # identical culture +convert_faith_cultural_same_heritage_mult = 1.05 # same heritage, different culture +convert_faith_cultural_acceptance_mid_mult = 0.9 # cultural acceptance 50..74 +convert_faith_cultural_acceptance_low_mult = 0.85 # cultural acceptance 25..49 +convert_faith_cultural_acceptance_alien_mult = 0.8 # cultural acceptance < 25 # Zealous Proselytizer bonus court_chaplain_conversion_monthly_increase_perk_bonus = { @@ -2084,19 +2230,6 @@ conversion_holy_site_cordoba = { } } -conversion_holy_site_geneva = { - value = 0 - if = { - limit = { - scope:councillor.faith ?= { - controls_holy_site_with_parameter = geneva_conversion_bonus - } - } - add = court_chaplain_conversion_base_total - multiply = -0.30 - } -} - ### Various trait bonuses conversion_savior_liege = { if = { @@ -2203,8 +2336,7 @@ court_chaplain_reliable_house_scale = { value = 0 if = { limit = { - exists = liege.dynasty - liege.dynasty = { has_dynasty_perk = fp2_coterie_legacy_2 } + liege.dynasty ?= { has_dynasty_perk = fp2_coterie_legacy_2 } house = liege.house } add = learning diff --git a/common/script_values/99_spouse_councillor_values.txt b/common/script_values/99_spouse_councillor_values.txt index 075dbf1a6..1e6380d48 100644 --- a/common/script_values/99_spouse_councillor_values.txt +++ b/common/script_values/99_spouse_councillor_values.txt @@ -32,26 +32,24 @@ spouse_default_task_diplomacy_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -60,13 +58,6 @@ spouse_default_task_diplomacy_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 5 if = { limit = { @@ -88,26 +79,24 @@ spouse_default_task_martial_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -116,13 +105,6 @@ spouse_default_task_martial_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 5 if = { limit = { @@ -144,26 +126,24 @@ spouse_default_task_intrigue_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -172,13 +152,6 @@ spouse_default_task_intrigue_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 5 if = { limit = { @@ -200,26 +173,24 @@ spouse_default_task_learning_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -228,13 +199,6 @@ spouse_default_task_learning_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 5 if = { limit = { @@ -256,26 +220,24 @@ spouse_default_task_stewardship_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -284,13 +246,6 @@ spouse_default_task_stewardship_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 5 if = { limit = { @@ -312,26 +267,24 @@ spouse_task_court_politics_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -340,13 +293,6 @@ spouse_task_court_politics_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 2 if = { limit = { @@ -368,26 +314,24 @@ spouse_task_chivalry_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -396,13 +340,6 @@ spouse_task_chivalry_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 2 if = { limit = { @@ -424,26 +361,24 @@ spouse_task_court_intrigue_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -452,13 +387,6 @@ spouse_task_court_intrigue_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 2 if = { limit = { @@ -480,26 +408,24 @@ spouse_task_manage_domain_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -508,13 +434,6 @@ spouse_task_manage_domain_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 2 if = { limit = { @@ -536,26 +455,24 @@ spouse_task_patronage_scale = { if = { limit = { has_perk = loyalty_and_respect_perk - culture = { has_cultural_parameter = better_spouses } - } - 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 + multiply = 1.5 } + else = { + multiply = 1.25 + } + save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again + } + else_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 = { @@ -564,13 +481,6 @@ spouse_task_patronage_scale = { multiply = 1.25 save_temporary_value_as = has_been_modified } - if = { - limit = { - rite = { rite_has_parameter = neow_better_spouses } - } - multiply = 1.25 - save_temporary_value_as = has_been_modified - } divide = 2 if = { limit = {