A lot of updating, making republics work
This commit is contained in:
parent
09fb57c091
commit
4d6f569e96
99 changed files with 9792 additions and 9342 deletions
|
|
@ -323,7 +323,7 @@ task_conversion = {
|
|||
}
|
||||
desc = task_conversion_rite_only_effect_desc
|
||||
}
|
||||
# Development loss only applies on a real Faith change (people refuse to convert and migrate)
|
||||
# Prosperity loss only applies on a real Faith change (people refuse to convert and migrate)
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
trigger_if = {
|
||||
|
|
@ -339,7 +339,24 @@ task_conversion = {
|
|||
scope:county.faith != scope:councillor.faith
|
||||
}
|
||||
}
|
||||
desc = task_conversion_development_loss_desc
|
||||
desc = task_conversion_prosperity_loss_desc
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
|
||||
}
|
||||
exists = scope:county.faith
|
||||
scope:county.faith != scope:councillor_liege.faith
|
||||
}
|
||||
trigger_else = {
|
||||
exists = scope:county.faith
|
||||
scope:county.faith != scope:councillor_liege.faith
|
||||
scope:county.faith != scope:councillor.faith
|
||||
}
|
||||
}
|
||||
desc = task_conversion_settlement_size_loss_desc
|
||||
}
|
||||
# Fervor effects only on a real Faith change (rite shifts within the same Faith do not move fervor)
|
||||
triggered_desc = {
|
||||
|
|
@ -381,7 +398,7 @@ task_conversion = {
|
|||
trigger = {
|
||||
learning > mediocre_skill_rating
|
||||
}
|
||||
desc = task_conversion_development_gain
|
||||
desc = task_conversion_prosperity_gain
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
|
|
@ -648,7 +665,6 @@ task_conversion = {
|
|||
}
|
||||
|
||||
multiply = court_chaplain_conversion_factors
|
||||
|
||||
min = {
|
||||
value = 0.1
|
||||
desc = minimum_conversion
|
||||
|
|
@ -678,7 +694,7 @@ task_conversion = {
|
|||
save_temporary_scope_as = employer
|
||||
}
|
||||
any_ruler = {
|
||||
has_government = landless_adventurer_government
|
||||
government_type_filter = government_type:landless_adventurer_government
|
||||
is_within_diplo_range = { CHARACTER = scope:councillor }
|
||||
any_character_task_contract = {
|
||||
task_contract_type = laamp_fight_faith_conversion_contract
|
||||
|
|
@ -758,8 +774,8 @@ task_conversion = {
|
|||
OR = {
|
||||
NOT = { has_variable = associated_county }
|
||||
AND = {
|
||||
has_variable = converted_development
|
||||
var:converted_development <= 0
|
||||
has_variable = converted_prosperity
|
||||
var:converted_prosperity <= 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -773,8 +789,8 @@ task_conversion = {
|
|||
OR = {
|
||||
NOT = { has_variable = associated_culture }
|
||||
AND = {
|
||||
has_variable = converted_development
|
||||
var:converted_development <= 0
|
||||
has_variable = converted_prosperity
|
||||
var:converted_prosperity <= 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -785,21 +801,70 @@ task_conversion = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_variable = converted_development }
|
||||
NOT = { has_variable = converted_prosperity }
|
||||
}
|
||||
set_variable = {
|
||||
name = converted_development
|
||||
value = scope:county.convert_faith_development_value
|
||||
name = converted_prosperity
|
||||
value = scope:county.convert_faith_prosperity_value
|
||||
}
|
||||
}
|
||||
else = {
|
||||
change_variable = {
|
||||
name = converted_development
|
||||
add = scope:county.convert_faith_development_value
|
||||
name = converted_prosperity
|
||||
add = scope:county.convert_faith_prosperity_value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
scope:old_faith = {
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
NOT = { has_variable = associated_county }
|
||||
AND = {
|
||||
has_variable = converted_prosperity
|
||||
var:converted_prosperity <= 0
|
||||
}
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = associated_county
|
||||
value = scope:county
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
NOT = { has_variable = associated_culture }
|
||||
AND = {
|
||||
has_variable = converted_prosperity
|
||||
var:converted_prosperity <= 0
|
||||
}
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = associated_culture
|
||||
value = scope:county.culture
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_variable = converted_prosperity }
|
||||
}
|
||||
set_variable = {
|
||||
name = converted_prosperity
|
||||
value = scope:county.convert_faith_prosperity_value
|
||||
}
|
||||
}
|
||||
else = {
|
||||
change_variable = {
|
||||
name = converted_prosperity
|
||||
add = scope:county.convert_faith_prosperity_value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Same decision matrix as potential_county: Liege drives the rite axis whenever the post-conversion Faith ends up as the Liege's.
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -815,7 +880,11 @@ task_conversion = {
|
|||
|
||||
if = {
|
||||
limit = { scope:councillor_liege.faith != scope:old_faith }
|
||||
change_development_level = convert_faith_development_loss
|
||||
change_prosperity_level = convert_faith_prosperity_loss
|
||||
every_county_province = {
|
||||
limit = { has_holding = yes }
|
||||
change_province_size_progress = convert_faith_settlement_size_loss
|
||||
}
|
||||
scope:councillor_liege.faith = {
|
||||
change_fervor = {
|
||||
value = trivial_fervor_gain
|
||||
|
|
@ -1037,7 +1106,10 @@ task_fabricate_claim = {
|
|||
# Perk Bonuses
|
||||
if = {
|
||||
limit = {
|
||||
scope:councillor_liege = { has_perk = accomplished_forger_perk }
|
||||
scope:councillor_liege = {
|
||||
has_perk = accomplished_forger_perk
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = scope:councillor.court_chaplain_fabricate_claim_perk_bonus_monthly_increase
|
||||
|
|
|
|||
|
|
@ -508,7 +508,7 @@ task_increase_control = {
|
|||
ai_county_target = domain
|
||||
task_progress = task_progress_value
|
||||
task_current_value = scope:councillor_liege.marshal_increase_control_current_progress
|
||||
task_max_value = 100 # Highest possible county control
|
||||
task_max_value = scope:councillor_liege.marshal_increase_control_max_progress
|
||||
highlight_own_realm = yes
|
||||
restart_on_finish = yes # If it "finishes" by removing a corruption modifier, there'll still be control to regain
|
||||
|
||||
|
|
@ -520,6 +520,10 @@ task_increase_control = {
|
|||
}
|
||||
|
||||
effect_desc = {
|
||||
triggered_desc = {
|
||||
trigger = { council_task_not_started_in_county_trigger = yes }
|
||||
desc = task_increase_control_current_status
|
||||
}
|
||||
desc = task_increase_control_effect_desc
|
||||
desc = {
|
||||
desc = council_task_possible_side_effects
|
||||
|
|
@ -671,10 +675,22 @@ task_increase_control = {
|
|||
desc = INCREASE_COUNTY_CONTROL_EXPERIENCE_BONUS_VALUE
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:county
|
||||
scope:county.title_province = {
|
||||
province_has_district = manor_houses_district
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = scope:councillor.manor_houses_marshal_increase_control_bonus
|
||||
desc = MANOR_HOUSES_MARSHAL_CONTROL_BONUS
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { exists = scope:county }
|
||||
multiply = {
|
||||
value = scope:county.monthly_county_control_growth_factor
|
||||
value = scope:county.monthly_county_control_change
|
||||
desc = MARSHAL_COUNTY_SPEED_MODIFIERS
|
||||
}
|
||||
}
|
||||
|
|
@ -728,19 +744,16 @@ task_increase_control = {
|
|||
custom_description = {
|
||||
text = potential_county_control_task_trigger
|
||||
OR = {
|
||||
county_control < county_control_baseline
|
||||
has_county_corruption_trigger = yes
|
||||
county_control < full_county_control
|
||||
}
|
||||
}
|
||||
# If the growth factor is 0, no amount of trying to control helps
|
||||
# (happens when the county is under siege/occupied most likely)
|
||||
monthly_county_control_growth_factor > 0
|
||||
}
|
||||
}
|
||||
|
||||
county_modifier = {
|
||||
name = marshal_increase_control_modifier
|
||||
monthly_county_control_growth_add = 1
|
||||
monthly_control_change_when_below_baseline_add = 0.5
|
||||
scale = marshal_increase_control_total
|
||||
}
|
||||
|
||||
|
|
@ -786,7 +799,7 @@ task_increase_control = {
|
|||
}
|
||||
scope:county = {
|
||||
marshal_remove_random_county_corruption_modifier_effect = yes
|
||||
change_county_control = -25
|
||||
change_county_control = -10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -802,6 +815,24 @@ task_increase_control = {
|
|||
}
|
||||
}
|
||||
|
||||
ai_target_score = {
|
||||
value = 10
|
||||
scope:county = {
|
||||
if = {
|
||||
limit = { county_control < county_control_baseline }
|
||||
add = {
|
||||
value = county_control_baseline
|
||||
subtract = county_control
|
||||
multiply = 10
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = county_corruption_modifier_count
|
||||
multiply = 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
value = 1000 # Highest prio
|
||||
if = { # Keep doing Organize levies if you're at war
|
||||
|
|
|
|||
|
|
@ -254,6 +254,20 @@ task_support_schemes = {
|
|||
}
|
||||
desc = determination_spymaster_task_support_schemes_bonus
|
||||
}
|
||||
# Republic House Ambition - Hostile Scheme Phase Length
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_support_schemes_phase_bonus
|
||||
}
|
||||
desc = task_support_schemes_success_chance_base_desc
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
|
|
@ -286,6 +300,20 @@ task_support_schemes = {
|
|||
}
|
||||
desc = determination_spymaster_task_support_schemes_success_chance_bonus
|
||||
}
|
||||
# Republic House Ambition - Hostile Scheme Success Chance
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_support_schemes_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_support_schemes_success_chance_bonus
|
||||
}
|
||||
desc = {
|
||||
desc = council_task_possible_side_effects
|
||||
triggered_desc = {
|
||||
|
|
@ -517,6 +545,15 @@ task_find_secrets = {
|
|||
desc = court_without_secrets_modifier
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:councillor_liege.capital_province ?= { has_building_or_higher = royal_inner_court_1 }
|
||||
}
|
||||
add = {
|
||||
value = spymaster_find_secrets_household_inner_court_increase
|
||||
desc = HOUSEHOLD_INNER_COURT_FIND_SECRETS_VALUE
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:target_character.cp:councillor_spymaster
|
||||
|
|
@ -624,25 +661,25 @@ task_find_secrets = {
|
|||
limit = {
|
||||
is_ai = yes
|
||||
}
|
||||
scope:target_character = {
|
||||
highest_held_title_tier >= tier_county
|
||||
OR = {
|
||||
is_vassal_of = scope:councillor_liege
|
||||
has_relation_rival = scope:councillor_liege
|
||||
}
|
||||
in_diplomatic_range = scope:councillor_liege
|
||||
}
|
||||
NOR = {
|
||||
has_relation_friend = scope:target_character
|
||||
has_relation_lover = scope:target_character
|
||||
is_allied_to = scope:target_character
|
||||
has_hook = scope:target_character
|
||||
}
|
||||
scope:target_character = {
|
||||
OR = {
|
||||
is_vassal_of = scope:councillor_liege
|
||||
has_relation_rival = scope:councillor_liege
|
||||
}
|
||||
in_diplomatic_range = scope:councillor_liege
|
||||
highest_held_title_tier >= tier_county
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
scope:target_character = {
|
||||
in_diplomatic_range = scope:councillor_liege
|
||||
highest_held_title_tier >= tier_county
|
||||
in_diplomatic_range = scope:councillor_liege
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,14 @@
|
|||
}
|
||||
|
||||
effect_desc = {
|
||||
desc = task_collect_taxes_effect_desc
|
||||
triggered_desc = {
|
||||
desc = task_collect_taxes_effect_desc
|
||||
trigger = { liege = { is_landed = yes } }
|
||||
}
|
||||
triggered_desc = {
|
||||
desc = task_collect_taxes_domicile_effect_desc
|
||||
trigger = { liege = { has_domicile = yes } }
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = { liege = { has_perk = tax_man_perk } }
|
||||
desc = task_collect_taxes_tax_man_bonus_desc
|
||||
|
|
@ -69,6 +76,7 @@
|
|||
council_owner_modifier = {
|
||||
name = task_collect_taxes_modifier
|
||||
domain_tax_mult = 1
|
||||
domicile_monthly_gold_mult = 1
|
||||
scale = steward_collect_taxes_total_scale
|
||||
}
|
||||
|
||||
|
|
@ -141,14 +149,15 @@ task_develop_county = {
|
|||
task_max_value = 100
|
||||
highlight_own_realm = yes
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_develop_county.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
frame = "gfx/interface/buttons/button_round_frame.dds"
|
||||
glow = "gfx/particles/halo.dds"
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
scope:councillor_liege = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
is_landed = yes
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
|
||||
|
|
@ -157,7 +166,18 @@ task_develop_county = {
|
|||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_increase_prosperity_county.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
frame = "gfx/interface/buttons/button_round_frame.dds"
|
||||
glow = "gfx/particles/halo.dds"
|
||||
}
|
||||
|
||||
effect_desc = {
|
||||
triggered_desc = {
|
||||
trigger = { council_task_not_started_in_county_trigger = yes }
|
||||
desc = task_develop_county_current_status
|
||||
}
|
||||
desc = task_develop_county_complete_effect_desc
|
||||
desc = task_develop_county_effect_desc
|
||||
desc = {
|
||||
|
|
@ -182,7 +202,7 @@ task_develop_county = {
|
|||
trigger_if = {
|
||||
limit = { exists = scope:county }
|
||||
scope:county = {
|
||||
county_control < full_county_control
|
||||
county_control < county_control_baseline
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -340,10 +360,22 @@ task_develop_county = {
|
|||
desc = COUNCILLOR_IS_YOUR_NEMESIS
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:county
|
||||
scope:county.title_province = {
|
||||
has_building_or_higher = manor_chamber_blocks_1
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = scope:councillor.manor_chamber_blocks_steward_develop_county_bonus
|
||||
desc = MANOR_CHAMBER_BLOCKS_STEWARD_PROSPERITY_BONUS
|
||||
}
|
||||
}
|
||||
if = { #Tribal penalty
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
should_apply_tribal_development_penalty_trigger = yes
|
||||
should_apply_tribal_prosperity_penalty_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
|
|
@ -351,23 +383,23 @@ task_develop_county = {
|
|||
desc = DEVELOP_COUNTY_TRIBAL_PENALTY_VALUE
|
||||
}
|
||||
}
|
||||
if = { # Development reduces the speed.
|
||||
if = { # Prosperity reduces the speed.
|
||||
limit = {
|
||||
exists = scope:county
|
||||
scope:county = {
|
||||
development_level > 0
|
||||
prosperity_level > 0
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = scope:county.current_development_penalty
|
||||
desc = STEWARD_CURRENT_DEVELOPMENT_PENALTY
|
||||
value = scope:county.current_prosperity_penalty
|
||||
desc = STEWARD_CURRENT_PROSPERITY_PENALTY
|
||||
}
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = { exists = scope:county }
|
||||
multiply = {
|
||||
value = scope:county.development_rate_modifier
|
||||
value = scope:county.prosperity_rate_modifier
|
||||
desc = STEWARD_COUNTY_SPEED_MODIFIERS
|
||||
}
|
||||
}
|
||||
|
|
@ -406,7 +438,7 @@ task_develop_county = {
|
|||
potential_county = {
|
||||
scope:county = {
|
||||
is_landless_type_title = no
|
||||
development_level < max_development_level
|
||||
prosperity_level < max_prosperity_level
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
|
|
@ -429,7 +461,7 @@ task_develop_county = {
|
|||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_improve_development
|
||||
has_character_flag = vassal_directive_improve_prosperity
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
culture = scope:councillor_liege.culture
|
||||
|
|
@ -452,29 +484,37 @@ task_develop_county = {
|
|||
|
||||
county_modifier = {
|
||||
name = steward_develop_county_modifier
|
||||
development_growth = 100
|
||||
prosperity_growth = 100
|
||||
holding_build_speed = -7
|
||||
#holding_build_gold_cost = -1
|
||||
build_speed = -7
|
||||
district_build_speed = -7
|
||||
#build_gold_cost = -1
|
||||
scale = { value = steward_develop_county_total divide = 100 }
|
||||
}
|
||||
|
||||
county_modifier = {
|
||||
name = steward_develop_county_current_development_modifier
|
||||
development_growth = 100
|
||||
scale = { value = scope:councillor.current_development_penalty divide = 100 }
|
||||
name = steward_develop_county_current_prosperity_modifier
|
||||
prosperity_growth = 100
|
||||
scale = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = { scope:county ?= { prosperity_level > 0 } }
|
||||
add = scope:councillor.current_prosperity_penalty
|
||||
divide = 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
county_modifier = {
|
||||
name = steward_develop_county_tribal_penalty_modifier
|
||||
development_growth = 100
|
||||
prosperity_growth = 100
|
||||
scale = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
should_apply_tribal_development_penalty_trigger = yes
|
||||
should_apply_tribal_prosperity_penalty_trigger = yes
|
||||
}
|
||||
}
|
||||
value = scope:councillor.steward_develop_county_tribal_penalty
|
||||
|
|
@ -484,13 +524,13 @@ task_develop_county = {
|
|||
}
|
||||
|
||||
on_start_task_county = {
|
||||
# save current development_level for catalyst purpose
|
||||
# save current prosperity_level for catalyst purpose
|
||||
if = {
|
||||
limit = { exists = scope:county }
|
||||
scope:county = {
|
||||
set_variable = {
|
||||
name = current_development_level
|
||||
value = development_level
|
||||
name = current_prosperity_level
|
||||
value = prosperity_level
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -503,7 +543,7 @@ task_develop_county = {
|
|||
AND = {
|
||||
exists = scope:county
|
||||
scope:county = {
|
||||
development_level = max_development_level
|
||||
prosperity_level = max_prosperity_level
|
||||
}
|
||||
}
|
||||
scope:councillor_liege = {
|
||||
|
|
@ -519,19 +559,19 @@ task_develop_county = {
|
|||
|
||||
on_monthly_county = {
|
||||
scope:councillor_liege = {
|
||||
# Check development level progress
|
||||
# Check prosperity level progress
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:county
|
||||
exists = scope:county.var:current_development_level
|
||||
scope:county = {
|
||||
floored_development_value > floored_current_development_value
|
||||
has_variable = current_prosperity_level
|
||||
prosperity_level > var:current_prosperity_level
|
||||
}
|
||||
}
|
||||
scope:county = {
|
||||
set_variable = {
|
||||
name = current_development_level
|
||||
value = development_level
|
||||
name = current_prosperity_level
|
||||
value = prosperity_level
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -540,23 +580,23 @@ task_develop_county = {
|
|||
limit = {
|
||||
exists = primary_title
|
||||
primary_title.tier >= tier_kingdom
|
||||
NOT = {
|
||||
has_focus = stewardship_domain_focus
|
||||
}
|
||||
any_sub_realm_county = {
|
||||
culture = {
|
||||
cultural_acceptance = { target = scope:councillor_liege.culture value < 52 }
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
has_focus = stewardship_domain_focus
|
||||
}
|
||||
}
|
||||
add_character_flag = {
|
||||
flag = no_ai_increase_development
|
||||
flag = no_ai_increase_prosperity
|
||||
years = 15
|
||||
}
|
||||
}
|
||||
else = {
|
||||
add_character_flag = {
|
||||
flag = no_ai_increase_development
|
||||
flag = no_ai_increase_prosperity
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
|
|
@ -614,8 +654,8 @@ task_develop_county = {
|
|||
}
|
||||
scope:county = {
|
||||
set_variable = {
|
||||
name = current_development_level
|
||||
value = development_level
|
||||
name = current_prosperity_level
|
||||
value = prosperity_level
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -635,13 +675,13 @@ task_develop_county = {
|
|||
if = {
|
||||
# Don't do this too often
|
||||
limit = {
|
||||
scope:councillor_liege = { has_character_flag = no_ai_increase_development }
|
||||
scope:councillor_liege = { has_character_flag = no_ai_increase_prosperity }
|
||||
}
|
||||
multiply = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:councillor_liege.gold >= steward_increase_development_value
|
||||
scope:councillor_liege.gold >= steward_increase_prosperity_value
|
||||
}
|
||||
add = 300
|
||||
}
|
||||
|
|
@ -656,7 +696,7 @@ task_develop_county = {
|
|||
if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_improve_development
|
||||
has_character_flag = vassal_directive_improve_prosperity
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
}
|
||||
|
|
@ -665,6 +705,334 @@ task_develop_county = {
|
|||
}
|
||||
}
|
||||
|
||||
task_republic_trade_logistics = {
|
||||
position = councillor_steward
|
||||
task_type = task_type_general
|
||||
task_progress = task_progress_infinite
|
||||
|
||||
is_shown = {
|
||||
scope:councillor_liege = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_trade_logistics.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
frame = "gfx/interface/buttons/button_round_frame.dds"
|
||||
glow = "gfx/particles/halo.dds"
|
||||
}
|
||||
|
||||
effect_desc = {
|
||||
# Trade Capacity
|
||||
desc = task_republic_trade_logistics_capacity_desc
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_logistics_capacity_bonus
|
||||
}
|
||||
# Trade Goods Expertise
|
||||
desc = task_republic_trade_logistics_expertise_desc
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_logistics_expertise_bonus
|
||||
}
|
||||
# Side effects
|
||||
desc = {
|
||||
desc = council_task_possible_side_effects
|
||||
triggered_desc = {
|
||||
trigger = { stewardship > mediocre_skill_rating }
|
||||
desc = task_republic_trade_logistics_clearer_ledgers
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship > mediocre_skill_rating
|
||||
NOT = { has_character_modifier = republic_reliable_caravans_modifier }
|
||||
}
|
||||
desc = task_republic_trade_logistics_reliable_caravans
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship < high_skill_rating
|
||||
has_variable = republic_trade_logistics_value
|
||||
var:republic_trade_logistics_value > 0
|
||||
}
|
||||
desc = task_republic_trade_logistics_bottlenecked_warehouses
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship < high_skill_rating
|
||||
short_term_gold > 0
|
||||
}
|
||||
desc = task_republic_trade_logistics_spoiled_cargo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
tgp_natural_disaster_councillor_available_for_task_trigger = yes
|
||||
}
|
||||
|
||||
on_start_task = {
|
||||
liege = {
|
||||
set_variable = {
|
||||
name = republic_trade_logistics_value
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
on_cancel_task = {
|
||||
if = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
has_variable = republic_trade_logistics_value
|
||||
}
|
||||
remove_variable = republic_trade_logistics_value
|
||||
}
|
||||
}
|
||||
|
||||
on_monthly = {
|
||||
if = {
|
||||
limit = { liege = { is_ai = no } }
|
||||
if = {
|
||||
limit = {
|
||||
liege = {
|
||||
has_variable = republic_trade_logistics_value
|
||||
}
|
||||
}
|
||||
liege = {
|
||||
if = {
|
||||
limit = {
|
||||
var:republic_trade_logistics_value < root.republic_trade_logistics_max_value
|
||||
}
|
||||
change_variable = {
|
||||
name = republic_trade_logistics_value
|
||||
add = root.republic_trade_logistics_monthly_increase
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
var:republic_trade_logistics_value > root.republic_trade_logistics_max_value
|
||||
}
|
||||
set_variable = {
|
||||
name = republic_trade_logistics_value
|
||||
value = root.republic_trade_logistics_max_value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
liege = {
|
||||
set_variable = {
|
||||
name = republic_trade_logistics_value
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
council_owner_modifier = {
|
||||
name = task_republic_trade_logistics_modifier
|
||||
trade_capacity_mult = 0.01
|
||||
scale = republic_trade_logistics_final_value
|
||||
}
|
||||
|
||||
council_owner_modifier = {
|
||||
name = task_republic_trade_logistics_modifier
|
||||
trade_expertise_growth_mult = 0.01
|
||||
scale = republic_trade_logistics_expertise_final_value
|
||||
}
|
||||
|
||||
monthly_on_action = task_republic_trade_logistics_side_effects
|
||||
|
||||
ai_will_do = {
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
|
||||
task_republic_market_oversight = {
|
||||
position = councillor_steward
|
||||
task_type = task_type_general
|
||||
task_progress = task_progress_infinite
|
||||
|
||||
is_shown = {
|
||||
scope:councillor_liege = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_market_oversight.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
frame = "gfx/interface/buttons/button_round_frame.dds"
|
||||
glow = "gfx/particles/halo.dds"
|
||||
}
|
||||
|
||||
effect_desc = {
|
||||
# Competitiveness
|
||||
desc = task_republic_market_oversight_competitiveness_desc
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_market_oversight_competitiveness_bonus
|
||||
}
|
||||
# Sell price
|
||||
desc = task_republic_market_oversight_sell_price_desc
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
scope:councillor_liege.house ?= {
|
||||
OR = {
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_1
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_2
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_3
|
||||
has_house_aspiration_parameter = ambition_improved_task_logistics_and_market_4
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = ambition_improved_task_market_oversight_sell_price_bonus
|
||||
}
|
||||
# Side effects
|
||||
desc = {
|
||||
desc = council_task_possible_side_effects
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship > mediocre_skill_rating
|
||||
NOT = { has_character_modifier = republic_premium_contracts_modifier }
|
||||
}
|
||||
desc = task_republic_market_oversight_premium_contracts
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = { stewardship > mediocre_skill_rating }
|
||||
desc = task_republic_market_oversight_merchant_cooperation
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship < high_skill_rating
|
||||
has_variable = republic_market_oversight_value
|
||||
var:republic_market_oversight_value > 0
|
||||
}
|
||||
desc = task_republic_market_oversight_market_scandal
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
stewardship < high_skill_rating
|
||||
NOT = { has_character_modifier = republic_inspector_bribery_modifier }
|
||||
}
|
||||
desc = task_republic_market_oversight_inspector_bribery
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
tgp_natural_disaster_councillor_available_for_task_trigger = yes
|
||||
}
|
||||
|
||||
on_start_task = {
|
||||
liege = {
|
||||
set_variable = {
|
||||
name = republic_market_oversight_value
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
on_cancel_task = {
|
||||
if = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
has_variable = republic_market_oversight_value
|
||||
}
|
||||
remove_variable = republic_market_oversight_value
|
||||
}
|
||||
}
|
||||
|
||||
on_monthly = {
|
||||
if = {
|
||||
limit = { liege = { is_ai = no } }
|
||||
if = {
|
||||
limit = {
|
||||
liege = {
|
||||
has_variable = republic_market_oversight_value
|
||||
}
|
||||
}
|
||||
liege = {
|
||||
if = {
|
||||
limit = {
|
||||
var:republic_market_oversight_value < root.republic_market_oversight_max_value
|
||||
}
|
||||
change_variable = {
|
||||
name = republic_market_oversight_value
|
||||
add = root.republic_market_oversight_monthly_increase
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
var:republic_market_oversight_value > root.republic_market_oversight_max_value
|
||||
}
|
||||
set_variable = {
|
||||
name = republic_market_oversight_value
|
||||
value = root.republic_market_oversight_max_value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
liege = {
|
||||
set_variable = {
|
||||
name = republic_market_oversight_value
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
council_owner_modifier = {
|
||||
name = task_republic_market_oversight_modifier
|
||||
trade_competitiveness_mult = 0.01
|
||||
scale = republic_market_oversight_final_value
|
||||
}
|
||||
|
||||
council_owner_modifier = {
|
||||
name = task_republic_market_oversight_modifier
|
||||
trade_category_all_sell_price_mult = 0.01
|
||||
scale = republic_market_oversight_sell_price_final_value
|
||||
}
|
||||
|
||||
monthly_on_action = task_republic_market_oversight_side_effects
|
||||
|
||||
ai_will_do = {
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
|
||||
task_promote_culture = {
|
||||
position = councillor_steward
|
||||
|
||||
|
|
@ -675,6 +1043,17 @@ task_promote_culture = {
|
|||
restart_on_finish = yes
|
||||
highlight_own_realm = yes
|
||||
|
||||
is_shown = {
|
||||
scope:councillor_liege = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
is_landed = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_promote_culture.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
|
|
@ -728,7 +1107,7 @@ task_promote_culture = {
|
|||
}
|
||||
}
|
||||
}
|
||||
desc = task_promote_culture_improve_county_opinion
|
||||
desc = task_promote_culture_improve_popular_opinion
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
|
|
@ -798,16 +1177,27 @@ task_promote_culture = {
|
|||
|
||||
add = steward_promote_culture_contextual_bonuses
|
||||
|
||||
if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values
|
||||
if = { # Prosperity reduces the speed. Should be the last non-multiply modifier applied to avoid negative values
|
||||
limit = {
|
||||
exists = scope:county
|
||||
scope:county = {
|
||||
development_level > 0
|
||||
prosperity_level > 0
|
||||
}
|
||||
}
|
||||
add = {
|
||||
value = scope:county.promote_culture_development_penalty
|
||||
desc = STEWARD_PROMOTE_CULTURE_DEVELOPMENT_PENALTY
|
||||
value = scope:county.promote_culture_prosperity_penalty
|
||||
desc = STEWARD_PROMOTE_CULTURE_PROSPERITY_PENALTY
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { exists = scope:county.title_province }
|
||||
multiply = {
|
||||
value = 1
|
||||
subtract = {
|
||||
value = scope:county.title_province.province_size_level
|
||||
multiply = promote_culture_settlement_size_penalty_step
|
||||
}
|
||||
desc = STEWARD_PROMOTE_CULTURE_SETTLEMENT_SIZE
|
||||
}
|
||||
}
|
||||
####
|
||||
|
|
@ -1523,6 +1913,17 @@ task_accept_culture = {
|
|||
highlight_own_realm = yes
|
||||
task_progress = task_progress_infinite
|
||||
|
||||
is_shown = {
|
||||
scope:councillor_liege = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
is_landed = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_accept_culture.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
|
|
@ -1619,13 +2020,13 @@ task_accept_culture = {
|
|||
limit = { exists = scope:county }
|
||||
scope:county = {
|
||||
NOR = {
|
||||
has_county_modifier = steward_accept_culture_reduced_development_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_increased_development_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_reduced_prosperity_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_increased_prosperity_spread_modifier
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = task_accept_culture_reduced_development_growth
|
||||
desc = task_accept_culture_reduced_prosperity_growth
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
|
|
@ -1634,13 +2035,13 @@ task_accept_culture = {
|
|||
limit = { exists = scope:county }
|
||||
scope:county = {
|
||||
NOR = {
|
||||
has_county_modifier = steward_accept_culture_reduced_development_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_increased_development_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_reduced_prosperity_spread_modifier
|
||||
has_county_modifier = steward_accept_culture_increased_prosperity_spread_modifier
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
desc = task_accept_culture_increased_development_growth
|
||||
desc = task_accept_culture_increased_prosperity_growth
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
|
|
@ -1871,7 +2272,7 @@ task_accept_culture = {
|
|||
if = {
|
||||
# Prefer this over Collecting Taxes if you have some money
|
||||
limit = {
|
||||
scope:councillor_liege.gold >= steward_increase_development_value
|
||||
scope:councillor_liege.gold >= steward_increase_prosperity_value
|
||||
}
|
||||
add = 1
|
||||
}
|
||||
|
|
@ -1992,6 +2393,18 @@ task_convince_dejure = {
|
|||
ai_county_target = neighbor_land
|
||||
task_progress = task_progress_percentage
|
||||
|
||||
is_shown = {
|
||||
has_dlc_feature = royal_court
|
||||
scope:councillor_liege = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
is_landed = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
asset = {
|
||||
icon = "gfx/interface/icons/council_task_types/task_convince_dejure.dds"
|
||||
background = "gfx/interface/buttons/button_round_bg.dds"
|
||||
|
|
@ -2024,10 +2437,6 @@ task_convince_dejure = {
|
|||
}
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
has_dlc_feature = royal_court
|
||||
}
|
||||
|
||||
progress = {
|
||||
value = 0
|
||||
add = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue