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

@ -138,7 +138,7 @@ clear_ground_for_legendary_building = {
text = clear_ground_for_legendary_building_no_barony_tt
any_held_title = {
title_tier = barony
title_province = { has_special_building_slot = no }
title_province = { has_special_district_slot = no }
is_capital_barony = yes
holder = root
is_leased_out = no
@ -162,7 +162,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_shrine_desc
localization = clear_ground_legendary_shrine
icon = "gfx/interface/icons/building_types/icon_building_legendary_shrine.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_shrine.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -176,7 +176,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_statue_desc
localization = clear_ground_legendary_statue
icon = "gfx/interface/icons/building_types/icon_building_legendary_statue.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_statue.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -190,7 +190,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_palace_desc
localization = clear_ground_legendary_palace
icon = "gfx/interface/icons/building_types/icon_building_legendary_palace.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_palace.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -204,7 +204,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_watchtower_desc
localization = clear_ground_legendary_watchtower
icon = "gfx/interface/icons/building_types/icon_building_legendary_watchtower.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_watchtower.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -218,7 +218,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_hunting_lodge_desc
localization = clear_ground_legendary_hunting_lodge
icon = "gfx/interface/icons/building_types/icon_building_legendary_hunting_grounds.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_hunting_grounds.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -297,7 +297,7 @@ pick_legendary_barony_decision = {
title_valid = {
trigger_if = {
limit = { exists = this }
title_province = { has_special_building_slot = no }
title_province = { has_special_district_slot = no }
is_capital_barony = yes
holder = scope:ruler
is_leased_out = no
@ -317,27 +317,27 @@ pick_legendary_barony_decision = {
trigger = root.var:clear_ground
flag:legendary_shrine = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_shrine
add_special_district_slot = legendary_shrine_district
}
}
flag:legendary_palace = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_palace
add_special_district_slot = legendary_palace_district
}
}
flag:legendary_statue = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_statue
add_special_district_slot = legendary_statue_district
}
}
flag:legendary_watchtower = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_watchtower
add_special_district_slot = legendary_watchtower_district
}
}
flag:legendary_hunting_lodge = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_hunting_lodge
add_special_district_slot = legendary_hunting_lodge_district
}
}
}
@ -398,6 +398,7 @@ pick_legendary_barony_decision = {
}
ai_potential = {
has_variable = clear_ground
is_playable_character = yes
}
ai_will_do = {
@ -452,8 +453,8 @@ isolate_capital_decision = {
}
OR = {
any_held_title = {
has_province_with_epidemic = { intensity = any }
title_tier = county
has_province_with_epidemic = { intensity = any }
}
capital_county ?= {
any_neighboring_county = {
@ -566,7 +567,24 @@ isolate_capital_decision = {
}
ai_potential = {
is_landed = yes
highest_held_title_tier >= tier_county
NOT = { has_character_flag = ai_capital_isolation_cooldown }
# Mirrors the is_ai branch of is_shown
OR = {
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = any }
}
capital_county ?= {
OR = {
has_county_modifier = isolate_capital_decision_modifier
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
}
}
ai_will_do = {
@ -745,25 +763,33 @@ isolate_family_decision = {
}
ai_potential = {
NOT = { has_character_flag = ai_unisolate_cooldown }
NOR = {
has_character_flag = ai_unisolate_cooldown
has_government = landless_adventurer_government
}
OR = {
has_character_modifier = isolating_modifier
capital_county ?= {
OR = {
# Own capital
has_province_with_epidemic = { intensity = any }
# Neighboring own capital
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
# Somewhere in domain
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = any }
}
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
AND = {
has_trait = paranoid # without a really valid reason, ai_will_do is only positive enough to fire when paranoid
OR = {
capital_county ?= {
OR = {
# Own capital
has_province_with_epidemic = { intensity = any }
# Neighboring own capital
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
}
}
}
}