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

@ -2,6 +2,32 @@
# scope:character: The character that paid for the construction, if available
on_building_completed = {
effect = {
# Notify the merchant who sponsored this construction, if any
if = {
limit = { has_variable = merchant_construction_sponsor }
if = {
limit = {
var:merchant_construction_sponsor ?= { is_alive = yes }
}
barony = { save_scope_as = barony }
var:merchant_construction_sponsor = {
send_interface_message = {
type = msg_sponsored_building_done
title = merchant_sponsor_construction_complete_title
desc = merchant_sponsor_construction_complete_desc
right_icon = scope:barony
add_trait_xp = {
trait = lifestyle_merchant
track = artisan
value = merchant_sponsor_construction_xp_value
}
}
}
}
remove_variable = merchant_construction_sponsor
remove_variable = merchant_construction_cost
}
# Bonus only come with buildings acctually constructed by you
scope:character ?= {
if = {
@ -50,7 +76,7 @@ on_building_completed = {
title = building_temples_gives_development_toast
left_icon = root.county
root.county = {
change_development_progress_with_overflow = minor_development_progress_gain
change_prosperity_progress_with_overflow = minor_prosperity_progress_gain
set_variable = {
name = dev_gain_cooldown
value = yes
@ -73,7 +99,7 @@ on_building_completed = {
title = tenet_pentarchy_development_growth_in_holy_sites_toast
left_icon = scope:character
root.county = {
change_development_progress_with_overflow = medium_development_progress_gain
change_prosperity_progress_with_overflow = medium_prosperity_progress_gain
set_variable = {
name = dev_gain_cooldown
value = yes
@ -91,7 +117,7 @@ on_building_completed = {
NOT = { county = { has_variable = dev_gain_cooldown } }
}
county = {
change_development_progress_with_overflow = 25
change_prosperity_progress_with_overflow = 25
set_variable = {
name = dev_gain_cooldown
value = yes
@ -244,14 +270,14 @@ on_building_completed = {
random = {
chance = 10
modifier = {
add = county.development_level
add = county.prosperity_level
}
set_variable = {
name = number_prestigious_new_guests
value = 1
}
if = {
limit = { county.development_level >= max_development_level }
limit = { county.prosperity_level >= max_prosperity_level }
set_variable = {
name = holding_quality
@ -259,28 +285,28 @@ on_building_completed = {
}
}
else_if = {
limit = { county.development_level >= great_development_level }
limit = { county.prosperity_level >= great_prosperity_level }
set_variable = {
name = holding_quality
value = 3
}
}
else_if = {
limit = { county.development_level >= good_development_level }
limit = { county.prosperity_level >= good_prosperity_level }
set_variable = {
name = holding_quality
value = 2
}
}
else_if = {
limit = { county.development_level >= medium_development_level }
limit = { county.prosperity_level >= medium_prosperity_level }
set_variable = {
name = holding_quality
value = 2
}
}
else_if = {
limit = { county.development_level >= bad_development_level }
limit = { county.prosperity_level >= bad_prosperity_level }
set_variable = {
name = holding_quality
value = 1
@ -317,7 +343,7 @@ on_building_completed = {
}
}
}
county = { change_development_progress_with_overflow = 10 }
county = { change_prosperity_progress_with_overflow = 10 }
}
if = {
@ -552,7 +578,7 @@ on_building_completed = {
}
}
}
county = { change_development_progress = minor_development_progress_gain }
county = { change_prosperity_progress = minor_prosperity_progress_gain }
if = {
limit = {
scope:character ?= { has_character_modifier = the_city_builder_modifier }
@ -903,6 +929,21 @@ on_building_cancelled = {
limit = { has_variable = pam_temple_holding_under_construction }
remove_variable = pam_temple_holding_under_construction
}
if = {
limit = { has_variable = merchant_construction_sponsor }
barony = { save_scope_as = barony }
var:merchant_construction_sponsor = {
send_interface_toast = {
type = event_toast_effect_neutral
title = merchant_sponsor_construction_cancel_title
left_icon = scope:character
right_icon = scope:barony
add_short_term_gold = root.var:merchant_construction_cost
}
}
remove_variable = merchant_construction_sponsor
remove_variable = merchant_construction_cost
}
}
}
@ -916,17 +957,17 @@ on_holding_razed = {
left_icon = scope:province.barony
add_gold = {
value = minor_gold_value
add = scope:province.county.development_level
add = scope:province.county.prosperity_level
}
scope:province = {
if = {
limit = {
this = county.title_province
county.development_level >= 1
county.prosperity_level >= 1
}
county = {
change_development_progress_with_overflow = {
value = scope:province.county.development_level
change_prosperity_progress_with_overflow = {
value = scope:province.county.prosperity_level
multiply = 10
multiply = -1
}