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

@ -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
}
}