fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -334,6 +334,7 @@
@cheap_cost_base = 30
@normal_cost_base = 60
@expensive_cost_base = 90
@very_expensive_cost_base = @[expensive_cost_base * 2]
@main_cost_base = 100
@main_cost_new_holding = 200
@tribal_cost_base = 15
@ -346,6 +347,7 @@
@cheap_cost_scale_addition_per_tier = 15
@normal_cost_scale_addition_per_tier = 30
@expensive_cost_scale_addition_per_tier = 45
@very_expensive_cost_scale_addition_per_tier = @[expensive_cost_scale_addition_per_tier * 2]
@main_cost_scale_addition_per_tier = 50
@tribal_cost_scale_addition_per_tier = 5

View file

@ -1,4 +1,7 @@
traveler_rank_up_1_threshold = 10
terrain_sell_price_mult = 0.001
terrain_buy_price_mult = -0.001
traveler_rank_up_1_threshold = 10
traveler_rank_up_2_threshold = 20
traveler_rank_up_3_threshold = 30
traveler_rank_up_4_threshold = 40

View file

@ -1058,4 +1058,168 @@ ai_overlord_defensive_power_impact = {
add = -0.2
}
else = {}
}
}
reparations_max_debt_years_value = 1
aggressive_cb_ai_score_mult = {
value = 1
if = {
limit = {
# other govs are ignored intentionally: you might be able to hold tribal as merits but that is not a good idea
scope:attacker = {
NOR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
government_has_flag = government_is_landless_adventurer # you change to those govs when you get land anyway
}
}
any_in_list = {
list = target_titles
feudal_clan_tribal_conquest_constraints = yes
}
}
multiply = 0
}
multiply = zealous_war_on_head_of_faith_ai_score_value
multiply = struggle_wars_prioritise_struggle_targets_value
multiply = byzantium_conquests_ai_score_value
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
}
common_cb_ai_score_mult = {
value = 1
multiply = frankokratia_leader_protection_value
multiply = mongol_invader_regular_cb_ai_score_value
}
common_cb_ai_score_mult_additive = {
add = house_relation_ai_score_value
}
# NEOW 2555: no historical Mongol invasion story cycle. Neutralise legacy CB exception.
mongol_invader_regular_cb_ai_score_value = 1
religious_cb_ai_score_mult = {
value = 1
# Increase odds if the character is a vassal with Ghazi Contract
if = {
limit = {
scope:attacker = {
top_liege != this
vassal_contract_has_flag = vassal_contract_cheaper_religious_war
}
}
add = 1
}
# Holy Wars are limited to connected neighbours to limit big empire expansions over weak realms.
if = {
limit = { religious_war_vassals_constraints = yes }
multiply = 0
}
}
reparations_gold_debt_divisor_value = {
value = 1
if = {
limit = {
gold < 0
yearly_character_income > 0
}
add = {
value = gold
multiply = -1
divide = yearly_character_income
}
}
}
reparations_max_gold_payment_value = {
value = yearly_character_income
multiply = reparations_max_debt_years_value
if = {
limit = { gold > 0 }
add = gold
}
else = {
divide = reparations_gold_debt_divisor_value
}
min = 1
}
reparations_max_payment_value = {
value = yearly_character_income
multiply = reparations_max_debt_years_value
if = {
limit = {
has_treasury = yes
government_allows = replace_gold_cost_by_treasury
}
if = {
limit = { treasury > 0 }
add = treasury
}
else = {
divide = reparations_treasury_debt_divisor_value
}
}
else_if = {
limit = { gold > 0 }
add = gold
}
else = {
divide = reparations_gold_debt_divisor_value
}
min = 1
}
reparations_treasury_debt_divisor_value = {
value = 1
if = {
limit = {
treasury < 0
yearly_character_income > 0
}
add = {
value = treasury
multiply = -1
divide = yearly_character_income
}
}
}
vassalization_cb_ai_score_mult = {
if = {
limit = {
OR = {
AND = {
scope:attacker = {
NOT = { government_has_flag = government_is_tribal }
}
scope:defender = {
government_has_flag = government_is_tribal
}
}
scope:attacker = {
government_has_flag = government_is_mandala
vassal_limit_available < 1
}
}
}
value = 0
}
else = {
value = 1
}
}

View file

@ -1826,3 +1826,55 @@ former_infected_county_count = {
add = 0.1
}
}
epidemic_prosperity_loss_value = {
subtract = scope:base_loss
#This feeds into change_prosperity_progress in 00_epidemics
#minimal_prosperity_progress_loss is 10 and massive_prosperity_progress_loss is 100, so aim between them (as a negative value)
#Modifiers cover widespread loss, so we hit high-prosperity counties harder here
scope:epidemic = {
switch = {
trigger = outbreak_intensity
minor = { subtract = 2.5 }
major = { subtract = 5 }
apocalyptic = { subtract = 7.5 }
}
}
# Prosperity
subtract = {
value = prosperity_level
multiply = 0.3
}
multiply = {
value = 6
divide = num_county_holdings
}
multiply = {
value = 100
subtract = title_province.epidemic_resistance
multiply = 0.005
add = 1
}
}
spread_settlement_size_mult_value = {
value = 1
if = {
limit = {
province_size_level > spread_settlement_size_level_threshold
}
add = {
value = province_size_level
subtract = spread_settlement_size_level_threshold
multiply = spread_increase_mult_per_settlement_size_level
}
}
}

View file

@ -2,4 +2,8 @@
value = highest_held_title_tier
subtract = 2
min = tier_barony
}
}
# CK3 1.21: the old AI estate modifier value is no longer defined by vanilla.
# Retain its neutral weighting in NEOW palace/minority buildings.
estate_building_ai_modifier_value = 0