fixes big evebts abd on actions plus mroe
This commit is contained in:
parent
c9d520e5a1
commit
bce2aa31a1
207 changed files with 100377 additions and 9296 deletions
|
|
@ -228,16 +228,16 @@ on_county_occupied = {
|
|||
change_county_control = county_control_loss_value
|
||||
random_list = {
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -10
|
||||
change_prosperity_progress_with_overflow = -10
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -15
|
||||
change_prosperity_progress_with_overflow = -15
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -20
|
||||
change_prosperity_progress_with_overflow = -20
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -25
|
||||
change_prosperity_progress_with_overflow = -25
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -396,6 +396,7 @@ on_siege_completion = {
|
|||
siege.0032 # Chance to steal an artifact from holy site
|
||||
faction_demand.1010 #Reinforce populist rebels
|
||||
faction_demand.1110 #Reinforce peasant rebels
|
||||
gdp_burgher.0030
|
||||
siege.1001 #Someone I care about was immured here...
|
||||
intrigue_scheming.1804 # I had genuine/fake info about the defenses. Follows up intrigue_scheming.1801 so this won't actually trigger after every siege
|
||||
}
|
||||
|
|
@ -421,7 +422,7 @@ on_siege_completion = {
|
|||
title = successful_sieges_give_piety_toast
|
||||
left_icon = root
|
||||
add_piety = minor_piety_gain
|
||||
scope:barony.county = { change_development_progress_with_overflow = -2 }
|
||||
scope:barony.county = { change_prosperity_progress_with_overflow = -2 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -435,7 +436,7 @@ on_siege_completion = {
|
|||
title = tenet_aniconism_siege_destruction_toast
|
||||
left_icon = root
|
||||
add_piety = minor_piety_gain
|
||||
scope:barony.county = { change_development_progress_with_overflow = -3 }
|
||||
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -453,7 +454,7 @@ on_siege_completion = {
|
|||
title = extinction_of_dharma_siege_toast
|
||||
left_icon = root
|
||||
add_piety = minor_piety_gain
|
||||
scope:barony.county = { change_development_progress_with_overflow = -3 }
|
||||
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -477,7 +478,7 @@ on_siege_completion = {
|
|||
if = {
|
||||
limit = {
|
||||
has_legend_chapter_trigger = { CHAPTER = extra_deed }
|
||||
scope:barony.county.development_level >= good_development_level
|
||||
scope:barony.county.prosperity_level >= good_prosperity_level
|
||||
NOT = {
|
||||
promoted_legend ?= {
|
||||
has_legend_chapter = {
|
||||
|
|
@ -687,9 +688,21 @@ on_siege_looting = {
|
|||
domicile ?= { change_provisions = adventurer_siege_provisions_amount }
|
||||
}
|
||||
}
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_sieged_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
county = {
|
||||
if = {
|
||||
limit = {
|
||||
holder = {
|
||||
NOT = { has_perk = a_mans_home_perk }
|
||||
}
|
||||
}
|
||||
change_county_control = -5
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -710,6 +723,26 @@ on_siege_looting = {
|
|||
tgp_treasury_raided_effect = yes
|
||||
}
|
||||
}
|
||||
scope:barony.trade_market = {
|
||||
every_character_in_market = {
|
||||
limit = { government_allows = profit_trade_routes }
|
||||
send_interface_message = {
|
||||
type = msg_raid_lost
|
||||
title = msg_army_siege_affects_trade_title
|
||||
left_icon = root
|
||||
right_icon = scope:barony
|
||||
desc = msg_army_siege_affects_trade_desc
|
||||
show_as_tooltip = {
|
||||
scope:barony.trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_sieged_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -762,6 +795,134 @@ on_army_enter_province = {
|
|||
}
|
||||
}
|
||||
}
|
||||
# Army movement damages Trade
|
||||
if = {
|
||||
limit = {
|
||||
# Prevent same army owner affecting many markets in quick succession
|
||||
NOT = { exists = var:army_movement_trade_market_cooldown }
|
||||
scope:army ?= {
|
||||
# Prevent same army affecting many markets in quick succession
|
||||
NOT = { exists = var:army_movement_trade_market_cooldown }
|
||||
# Ensure tiny armies are not messing up trade
|
||||
army_size > 250
|
||||
location = {
|
||||
barony ?= {
|
||||
# Prevent same market being affected too often
|
||||
NOT = { exists = trade_market.var:army_movement_trade_market_cooldown }
|
||||
# Ignore occupied land
|
||||
barony_controller != scope:army_owner
|
||||
}
|
||||
# Prevent damaging own or allied markets directly (overlapping is fine)
|
||||
county.holder ?= {
|
||||
save_temporary_scope_as = county_holder
|
||||
OR = {
|
||||
root = { is_causing_raid_hostility_towards = scope:county_holder }
|
||||
is_at_war_with = root
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
random = {
|
||||
chance = 1
|
||||
modifier = {
|
||||
add = {
|
||||
value = scope:army.army_size
|
||||
multiply = 0.005
|
||||
max = 10
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
factor = 0.5
|
||||
scope:army.location.barony.trade_market = { has_trade_market_modifier = gdp_market_army_movement_capacity_modifier }
|
||||
}
|
||||
scope:army = {
|
||||
location = {
|
||||
save_scope_as = army_province
|
||||
barony.trade_market = {
|
||||
save_scope_as = trade_market
|
||||
random_list = {
|
||||
1 = {
|
||||
trigger = {
|
||||
any_trade_good_with_surplus = {}
|
||||
}
|
||||
random_trade_good_with_surplus = { save_scope_as = trade_good }
|
||||
}
|
||||
1 = {}
|
||||
}
|
||||
if = { # Increase price of a locally traded good
|
||||
limit = { exists = scope:trade_good }
|
||||
add_trade_good_price_modifier = {
|
||||
type = buy_add
|
||||
trade_good_type = scope:trade_good
|
||||
value = 0.01
|
||||
years = 5
|
||||
}
|
||||
every_character_in_market = {
|
||||
limit = { government_allows = profit_trade_routes }
|
||||
send_interface_message = {
|
||||
type = msg_army_affects_trade
|
||||
title = msg_army_movement_affects_trade_title
|
||||
left_icon = root
|
||||
right_icon = scope:army.location.barony
|
||||
desc = msg_army_movement_affects_trade_desc
|
||||
show_as_tooltip = {
|
||||
scope:trade_market = {
|
||||
add_trade_good_price_modifier = {
|
||||
type = buy_add
|
||||
trade_good_type = scope:trade_good
|
||||
value = 0.01
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else = { # Disrupt local prices across the market
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_army_movement_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
every_character_in_market = {
|
||||
limit = { government_allows = profit_trade_routes }
|
||||
send_interface_message = {
|
||||
type = msg_army_affects_trade
|
||||
title = msg_army_movement_affects_trade_title
|
||||
left_icon = root
|
||||
right_icon = scope:army.location.barony
|
||||
desc = msg_army_movement_affects_trade_desc
|
||||
show_as_tooltip = {
|
||||
scope:trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_army_movement_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Prevent same trade market being affected too often
|
||||
set_variable = {
|
||||
name = army_movement_trade_market_cooldown
|
||||
months = 6
|
||||
}
|
||||
}
|
||||
# Prevent same army affecting trade markets too often
|
||||
set_variable = {
|
||||
name = army_movement_trade_market_cooldown
|
||||
months = 6
|
||||
}
|
||||
}
|
||||
}
|
||||
# Prevent same army owner affecting trade markets too often
|
||||
set_variable = {
|
||||
name = army_movement_trade_market_cooldown
|
||||
months = 6
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -839,6 +1000,15 @@ on_raid_action_completion = {
|
|||
type = msg_raid_completed
|
||||
left_icon = scope:county.holder
|
||||
right_icon = scope:barony
|
||||
desc = msg_raid_completed_desc
|
||||
show_as_tooltip = {
|
||||
scope:barony.trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_raided_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -880,10 +1050,18 @@ on_raid_action_completion = {
|
|||
}
|
||||
}
|
||||
}
|
||||
scope:barony.title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
scope:barony = {
|
||||
title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_raided_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
county = {
|
||||
if = {
|
||||
|
|
@ -895,16 +1073,16 @@ on_raid_action_completion = {
|
|||
change_county_control = raid_county_control_loss_value
|
||||
random_list = {
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -2
|
||||
change_prosperity_progress_with_overflow = -2
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -3
|
||||
change_prosperity_progress_with_overflow = -3
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -4
|
||||
change_prosperity_progress_with_overflow = -4
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -5
|
||||
change_prosperity_progress_with_overflow = -5
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -922,6 +1100,15 @@ on_raid_action_completion = {
|
|||
type = msg_raid_lost
|
||||
left_icon = scope:raider
|
||||
right_icon = scope:barony
|
||||
desc = msg_raid_lost_desc
|
||||
show_as_tooltip = {
|
||||
scope:barony.trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_raided_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue