buikding fix
This commit is contained in:
parent
7b79d09c8b
commit
2ea6f90ccc
45 changed files with 53784 additions and 1457 deletions
6220
common/buildings/00_duchy_capital_buildings.txt
Normal file
6220
common/buildings/00_duchy_capital_buildings.txt
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
27955
common/buildings/special_buildings/00_special_buildings.txt
Normal file
27955
common/buildings/special_buildings/00_special_buildings.txt
Normal file
File diff suppressed because it is too large
Load diff
1386
common/buildings/special_buildings/cp6_special_buildings.txt
Normal file
1386
common/buildings/special_buildings/cp6_special_buildings.txt
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
text = { # Zone Rouge
|
||||
trigger = {
|
||||
has_special_building = yes
|
||||
has_special_district = yes
|
||||
has_building_or_higher = zone_rouge_01
|
||||
}
|
||||
localization_key = building_zone_rouge_destination_desc
|
||||
|
|
|
|||
423
common/districts/duchy_capital_districts.txt
Normal file
423
common/districts/duchy_capital_districts.txt
Normal file
|
|
@ -0,0 +1,423 @@
|
|||
|
||||
### Duchy office districts ###
|
||||
|
||||
governance_district = {
|
||||
primary_building = governance_district_01
|
||||
|
||||
#East Asia
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_east_asia_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/tgp_courtyard_asia.dds"
|
||||
}
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/councilchamber.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
scope:holder = { government_has_flag = government_is_celestial }
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
can_construct_potential = {
|
||||
scope:holder = { government_has_flag = government_is_celestial }
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
examination_hall_01
|
||||
celestial_great_barracks_01
|
||||
state_granary_01
|
||||
dragon_kiln_01
|
||||
mining_office_01
|
||||
exchequer_01
|
||||
minting_court_01
|
||||
prerogative_chancery_01
|
||||
reckoning_school_01
|
||||
feodarys_circuit_01
|
||||
}
|
||||
}
|
||||
|
||||
assay_district = {
|
||||
primary_building = assay_district_01
|
||||
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/gdp_smithy_workshop.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
can_construct_potential = {
|
||||
scope:holder = {
|
||||
NOT = { government_has_flag = government_is_celestial }
|
||||
}
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
mining_office_01
|
||||
exchequer_01
|
||||
minting_court_01
|
||||
prerogative_chancery_01
|
||||
reckoning_school_01
|
||||
feodarys_circuit_01
|
||||
}
|
||||
}
|
||||
|
||||
bailiwick_district = {
|
||||
primary_building = bailiwick_01
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/fp1_steward_study.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
survey_office_01
|
||||
verderers_hall_01
|
||||
colonization_office_01
|
||||
ducal_chase_01
|
||||
courts_of_commons_01
|
||||
}
|
||||
}
|
||||
|
||||
### Unique duchy specials ###
|
||||
|
||||
theodosian_walls_01_district = {
|
||||
primary_building = theodosian_walls_01
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep3_constantinople.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
buildings = {
|
||||
staple_court_01
|
||||
court_of_the_towns_01
|
||||
alnagers_office_01
|
||||
admiralty_court_01
|
||||
grain_exchange_01
|
||||
town_liberties_court_01
|
||||
dragon_kiln_01
|
||||
}
|
||||
}
|
||||
|
||||
aurelian_walls_01_district = {
|
||||
primary_building = aurelian_walls_01
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep3_city_gate.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
buildings = {
|
||||
staple_court_01
|
||||
court_of_the_towns_01
|
||||
alnagers_office_01
|
||||
admiralty_court_01
|
||||
grain_exchange_01
|
||||
town_liberties_court_01
|
||||
dragon_kiln_01
|
||||
}
|
||||
}
|
||||
|
||||
staple_district = {
|
||||
primary_building = staple_district_01
|
||||
|
||||
#East Asia
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_east_asia_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/tgp_market_asia.dds"
|
||||
}
|
||||
#India & MENA
|
||||
background = {
|
||||
trigger = {
|
||||
OR = {
|
||||
culture ?= { has_graphical_india_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_mena_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_iranian_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_african_culture_group_trigger = yes }
|
||||
}
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/market_east.dds"
|
||||
}
|
||||
#Mediterranean
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_mediterranean_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/gdp_italian_market.dds"
|
||||
}
|
||||
#Steppe & Norse
|
||||
background = {
|
||||
trigger = {
|
||||
OR = {
|
||||
culture ?= { has_graphical_steppe_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_norse_culture_group_trigger = yes }
|
||||
}
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/market_tribal.dds"
|
||||
}
|
||||
#Western Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/market_west.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
staple_court_01
|
||||
court_of_the_towns_01
|
||||
alnagers_office_01
|
||||
admiralty_court_01
|
||||
grain_exchange_01
|
||||
town_liberties_court_01
|
||||
dragon_kiln_01
|
||||
}
|
||||
}
|
||||
|
||||
endowment_district = {
|
||||
primary_building = endowment_district_01
|
||||
|
||||
#Islamic
|
||||
background = {
|
||||
trigger = {
|
||||
faith ?= { religion = religion:islam_religion }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_mena.dds"
|
||||
}
|
||||
|
||||
#Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_western.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
consistory_01
|
||||
almonry_general_01
|
||||
pilgrimage_office_01
|
||||
burial_site_01
|
||||
charnel_grounds_01
|
||||
great_megalith_01
|
||||
tower_of_silence_01
|
||||
}
|
||||
}
|
||||
|
||||
military_duchy_capital_district = {
|
||||
primary_building = military_duchy_building_01
|
||||
|
||||
#East Asia
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_east_asia_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/tgp_camp_asia.dds"
|
||||
}
|
||||
|
||||
#MENA
|
||||
background = {
|
||||
trigger = {
|
||||
OR = {
|
||||
culture ?= { has_graphical_mena_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_iranian_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_african_culture_group_trigger = yes }
|
||||
}
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep3_camp_arid_terrain.dds"
|
||||
}
|
||||
|
||||
#Steppe
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_steppe_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds"
|
||||
}
|
||||
|
||||
#Western Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/genericcamp.dds"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
buildings = {
|
||||
military_academy_01
|
||||
march_01
|
||||
siege_works_01
|
||||
royal_armory_01
|
||||
jousting_lists_01
|
||||
blacksmiths_01
|
||||
archery_ranges_01
|
||||
}
|
||||
}
|
||||
|
||||
ducal_residence_district = {
|
||||
primary_building = ducal_residence_01
|
||||
|
||||
#East Asia
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_east_asia_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/tgp_relaxing_room_asia.dds"
|
||||
}
|
||||
|
||||
#MENA
|
||||
background = {
|
||||
trigger = {
|
||||
OR = {
|
||||
culture ?= { has_graphical_mena_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_iranian_culture_group_trigger = yes }
|
||||
culture ?= { has_graphical_african_culture_group_trigger = yes }
|
||||
}
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/bp1_relaxing_room_mena.dds"
|
||||
}
|
||||
|
||||
#Iberian
|
||||
background = {
|
||||
trigger = {
|
||||
culture ?= { has_graphical_iberian_culture_group_trigger = yes }
|
||||
}
|
||||
reference = "gfx/interface/illustrations/event_scenes/fp2_relaxing_room.dds"
|
||||
}
|
||||
|
||||
#Western Fallback
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep3_relaxing_room.dds"
|
||||
}
|
||||
|
||||
triggered_name = {
|
||||
trigger = { county.holder ?= { highest_held_title_tier >= tier_kingdom } }
|
||||
reference = "royal_residence_district"
|
||||
}
|
||||
|
||||
type = duchy_capital
|
||||
|
||||
can_be_replaced = yes
|
||||
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
scope:holder = { household_government_trigger = yes }
|
||||
}
|
||||
|
||||
show_disabled = yes
|
||||
|
||||
can_construct_potential = {
|
||||
scope:holder = { household_government_trigger = yes }
|
||||
}
|
||||
|
||||
buildings = {
|
||||
leisure_palace_01
|
||||
royal_garden_01
|
||||
royal_forest_01
|
||||
burial_site_01
|
||||
ducal_chase_01
|
||||
reception_rooms_1
|
||||
}
|
||||
}
|
||||
|
||||
# NEOW original definitions, updated for CK3 1.21
|
||||
|
||||
# Additional NEOW duchy-capital districts, based on the existing vanilla 1.21 office system.
|
||||
water_filter_mills_district = {
|
||||
primary_building = water_filter_mills_01
|
||||
background = { reference = "gfx/interface/illustrations/event_scenes/gdp_smithy_workshop.dds" }
|
||||
type = duchy_capital
|
||||
can_be_replaced = yes
|
||||
is_enabled = { can_have_duchy_capital_building_trigger = yes }
|
||||
show_disabled = yes
|
||||
}
|
||||
|
||||
edenic_garden_district = {
|
||||
primary_building = edenic_garden_01
|
||||
background = { reference = "gfx/interface/illustrations/event_scenes/ep3_holysite_orthodox.dds" }
|
||||
type = duchy_capital
|
||||
can_be_replaced = yes
|
||||
is_enabled = { can_have_duchy_capital_building_trigger = yes }
|
||||
can_construct_potential = {
|
||||
scope:holder = { rite = { rite_has_parameter = can_build_edenic_garden } }
|
||||
}
|
||||
show_disabled = yes
|
||||
}
|
||||
|
||||
|
||||
# Thelemic pyramids: unique duchy-capital building unlocked by the rite.
|
||||
thelemic_pyramids_district = {
|
||||
primary_building = thelemic_pyramids_01
|
||||
background = { reference = "gfx/interface/illustrations/event_scenes/councilchamber.dds" }
|
||||
type = duchy_capital
|
||||
can_be_replaced = yes
|
||||
can_construct_potential = {
|
||||
scope:holder = { rite = { rite_has_parameter = can_build_pyramids } }
|
||||
}
|
||||
is_enabled = {
|
||||
can_have_duchy_capital_building_trigger = yes
|
||||
county.rite = { rite_has_parameter = can_build_pyramids }
|
||||
}
|
||||
show_disabled = yes
|
||||
}
|
||||
1509
common/districts/regular_districts.txt
Normal file
1509
common/districts/regular_districts.txt
Normal file
File diff suppressed because it is too large
Load diff
3205
common/districts/special_districts.txt
Normal file
3205
common/districts/special_districts.txt
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -97,10 +97,11 @@ farmstead_main_02 = {
|
|||
camp_unlocks_second_officer = yes
|
||||
reduce_success_of_raid_estate = yes
|
||||
estate_increase_house_member_investment_cap_1 = yes
|
||||
monthly_barter_goods = 1.2
|
||||
|
||||
}
|
||||
|
||||
character_modifier = {
|
||||
monthly_barter_goods = 1.2
|
||||
domicile_monthly_gold_add = 0.25
|
||||
domicile_external_slots_capacity_add = 1
|
||||
men_at_arms_cap = 1
|
||||
|
|
|
|||
|
|
@ -107,10 +107,11 @@ minority_community_main_02 = {
|
|||
camp_unlocks_second_officer = yes
|
||||
reduce_success_of_raid_estate = yes
|
||||
estate_increase_house_member_investment_cap_1 = yes
|
||||
monthly_barter_goods = 1.2
|
||||
|
||||
}
|
||||
|
||||
character_modifier = {
|
||||
monthly_barter_goods = 1.2
|
||||
domicile_monthly_gold_add = 0.25
|
||||
domicile_external_slots_capacity_add = 1
|
||||
men_at_arms_cap = 1
|
||||
|
|
|
|||
|
|
@ -20,25 +20,25 @@ palace = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
domicile ?= { has_domicile_building_or_higher = estate_main_05 }
|
||||
domicile ?= { has_domicile_building_or_higher = palace_main_05 }
|
||||
}
|
||||
add = 80
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
domicile ?= { has_domicile_building_or_higher = estate_main_04 }
|
||||
domicile ?= { has_domicile_building_or_higher = palace_main_04 }
|
||||
}
|
||||
add = 60
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
domicile ?= { has_domicile_building_or_higher = estate_main_03 }
|
||||
domicile ?= { has_domicile_building_or_higher = palace_main_03 }
|
||||
}
|
||||
add = 40
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
domicile ?= { has_domicile_building_or_higher = estate_main_02 }
|
||||
domicile ?= { has_domicile_building_or_higher = palace_main_02 }
|
||||
}
|
||||
add = 20
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1013,7 +1013,7 @@ on_raid_action_completion = {
|
|||
if = {
|
||||
limit = {
|
||||
scope:county = {
|
||||
any_county_province = { has_special_building = yes }
|
||||
any_county_province = { has_special_district = yes }
|
||||
}
|
||||
NOT = { has_character_flag = raider_legend }
|
||||
has_dlc_feature = legends
|
||||
|
|
|
|||
|
|
@ -1207,6 +1207,20 @@ on_game_start = {
|
|||
else = { title:b_jaisalmer.title_province = { add_special_district_slot = jaisalmer_fort_01_district } } #3387
|
||||
}
|
||||
|
||||
# CP6 additions affecting the old world. Existing NEOW special district
|
||||
# slots always take precedence. Never place a second special district.
|
||||
if = {
|
||||
limit = { has_cp6_dlc_trigger = yes }
|
||||
title:b_avranches ?= {
|
||||
title_province ?= {
|
||||
if = {
|
||||
limit = { has_special_district_slot = no }
|
||||
add_special_district = mont_st_michel_01_district
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### RELIGIOUS THINGS ###
|
||||
# Set up Holy Site Buildings to be buildable in Holy Sites
|
||||
every_religion_global = {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ on_building_completed = {
|
|||
# Preservation tenet
|
||||
if = {
|
||||
limit = {
|
||||
scope:character.rite = { rite_has_parameter = building_temples_gives_development }
|
||||
scope:character.rite = { rite_has_parameter = building_temples_gives_prosperity }
|
||||
OR = {
|
||||
has_holding_type = church_holding
|
||||
has_holding_type = temple_citadel_holding
|
||||
|
|
@ -73,7 +73,7 @@ on_building_completed = {
|
|||
}
|
||||
scope:character = {
|
||||
send_interface_toast = {
|
||||
title = building_temples_gives_development_toast
|
||||
title = building_temples_gives_prosperity_toast
|
||||
left_icon = root.county
|
||||
root.county = {
|
||||
change_prosperity_progress_with_overflow = minor_prosperity_progress_gain
|
||||
|
|
@ -90,13 +90,13 @@ on_building_completed = {
|
|||
# Pentarchy tenet
|
||||
if = {
|
||||
limit = {
|
||||
scope:character = { has_personal_tenet_flag = tenet_pentarchy_development_growth_in_holy_sites }
|
||||
scope:character = { has_personal_tenet_flag = tenet_pentarchy_prosperity_growth_in_holy_sites }
|
||||
barony = { is_holy_site_of = scope:character.faith }
|
||||
NOT = { county = { has_variable = dev_gain_cooldown } }
|
||||
}
|
||||
scope:character = {
|
||||
send_interface_toast = {
|
||||
title = tenet_pentarchy_development_growth_in_holy_sites_toast
|
||||
title = tenet_pentarchy_prosperity_growth_in_holy_sites_toast
|
||||
left_icon = scope:character
|
||||
root.county = {
|
||||
change_prosperity_progress_with_overflow = medium_prosperity_progress_gain
|
||||
|
|
@ -113,7 +113,7 @@ on_building_completed = {
|
|||
# Hard working Tradition
|
||||
if = {
|
||||
limit = {
|
||||
culture = { has_cultural_parameter = development_gain_on_building_complete }
|
||||
culture = { has_cultural_parameter = prosperity_gain_on_building_complete }
|
||||
NOT = { county = { has_variable = dev_gain_cooldown } }
|
||||
}
|
||||
county = {
|
||||
|
|
@ -339,7 +339,7 @@ on_building_completed = {
|
|||
scope:character = {
|
||||
any_character_struggle = {
|
||||
involvement = involved
|
||||
has_struggle_phase_parameter = completing_building_in_castle_gives_development
|
||||
has_struggle_phase_parameter = completing_building_in_castle_gives_prosperity
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -484,7 +484,7 @@ on_building_completed = {
|
|||
# Apply them here directly so they are more promptly added than monthly via the POI update
|
||||
if = {
|
||||
limit = {
|
||||
has_special_building = no
|
||||
has_special_district = no
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
|
|
@ -525,10 +525,20 @@ on_building_completed = {
|
|||
}
|
||||
add_travel_point_of_interest = poi_special_buildings_wonder
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_with_flag = { flag = silk_road_node }
|
||||
NOT = { has_travel_point_of_interest = poi_silk_road_node }
|
||||
}
|
||||
add_travel_point_of_interest = poi_silk_road_node
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_with_flag = { flag = travel_point_of_interest_economic }
|
||||
NOT = { has_travel_point_of_interest = poi_special_buildings_economic }
|
||||
NOR = {
|
||||
has_building_with_flag = { flag = silk_road_node }
|
||||
has_travel_point_of_interest = poi_special_buildings_economic
|
||||
}
|
||||
}
|
||||
add_travel_point_of_interest = poi_special_buildings_economic
|
||||
}
|
||||
|
|
@ -984,6 +994,24 @@ on_holding_razed = {
|
|||
change_county_fertility = medium_county_fertility_level_gain
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { exists = trade_post_district }
|
||||
hidden_effect = {
|
||||
root = { save_scope_as = trade_post_razer }
|
||||
trade_post_owner ?= {
|
||||
if = {
|
||||
limit = { is_ai = no }
|
||||
send_interface_message = {
|
||||
type = msg_trade_monopoly
|
||||
title = trade_post_razed_message_title
|
||||
desc = trade_post_razed_message_desc
|
||||
left_icon = scope:trade_post_razer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
remove_district_type = trade_post_location_district
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_university_building_trigger = yes
|
||||
|
|
@ -1050,7 +1078,7 @@ on_holding_razed = {
|
|||
|
||||
# root: The holder of the province doing the rebuilding
|
||||
# province: The province in which the great building exists
|
||||
on_great_building_rebuilt = {
|
||||
on_great_district_rebuilt = {
|
||||
effect = {
|
||||
add_piety_experience = {
|
||||
add = minor_piety_gain
|
||||
|
|
|
|||
|
|
@ -68,19 +68,22 @@ spread_decrease_mult_medium = -0.5
|
|||
spread_decrease_mult_high = -0.75
|
||||
spread_decrease_mult_unlikely = -0.991
|
||||
|
||||
spread_settlement_size_level_threshold = 4
|
||||
spread_increase_mult_per_settlement_size_level = 0.1
|
||||
|
||||
|
||||
outbreak_chance_minor_default_value = {
|
||||
value = outbreak_chance_base_low
|
||||
|
||||
#Buildings
|
||||
add = {
|
||||
value = num_buildings
|
||||
value = province_size_level
|
||||
multiply = outbreak_increase_add_very_low
|
||||
}
|
||||
|
||||
#Tradeports / Coasts
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_01
|
||||
has_port_district = yes
|
||||
}
|
||||
add = outbreak_increase_add_high
|
||||
}
|
||||
|
|
@ -115,6 +118,12 @@ outbreak_chance_minor_mult_value = {
|
|||
|
||||
# Game rules
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_normal
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_often
|
||||
}
|
||||
|
|
@ -145,32 +154,58 @@ outbreak_chance_minor_mult_value = {
|
|||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
|
||||
#Development
|
||||
#Prosperity
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level <= 20
|
||||
county.prosperity_level <= 20
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.002
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
county.development_level <= 40
|
||||
county.prosperity_level <= 40
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.003
|
||||
}
|
||||
}
|
||||
else = {
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.004
|
||||
}
|
||||
}
|
||||
|
||||
#Era pacing
|
||||
if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_late_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_early_medieval
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_tribal
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_low
|
||||
}
|
||||
|
||||
#Terrain
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -219,7 +254,7 @@ outbreak_chance_minor_mult_value = {
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level < 10
|
||||
county.prosperity_level < 10
|
||||
}
|
||||
multiply = 0.5
|
||||
}
|
||||
|
|
@ -231,15 +266,15 @@ outbreak_chance_minor_mult_value = {
|
|||
outbreak_chance_major_default_value = {
|
||||
value = outbreak_chance_base_very_low
|
||||
|
||||
#Buildings
|
||||
add = {
|
||||
value = num_buildings
|
||||
value = province_size_level
|
||||
multiply = outbreak_increase_add_low
|
||||
}
|
||||
|
||||
#Tradeports / Coasts
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_01
|
||||
has_port_district = yes
|
||||
}
|
||||
add = outbreak_increase_add_high
|
||||
}
|
||||
|
|
@ -274,6 +309,16 @@ outbreak_chance_major_mult_value = {
|
|||
|
||||
# Game rules
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_normal
|
||||
NOR = {
|
||||
has_game_rule = easy_difficulty
|
||||
has_game_rule = very_easy_difficulty
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_often
|
||||
}
|
||||
|
|
@ -310,32 +355,58 @@ outbreak_chance_major_mult_value = {
|
|||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
|
||||
#Development
|
||||
#Prosperity
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level <= 20
|
||||
county.prosperity_level <= 20
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.008
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
county.development_level <= 40
|
||||
county.prosperity_level <= 40
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.010
|
||||
}
|
||||
}
|
||||
else = {
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.012
|
||||
}
|
||||
}
|
||||
|
||||
#Era pacing
|
||||
if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_high_medieval
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_early_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_tribal
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_medium
|
||||
}
|
||||
|
||||
#Terrain
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -384,7 +455,7 @@ outbreak_chance_major_mult_value = {
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level < 10
|
||||
county.prosperity_level < 10
|
||||
}
|
||||
multiply = 0.1
|
||||
}
|
||||
|
|
@ -397,15 +468,15 @@ outbreak_chance_major_mult_value = {
|
|||
outbreak_chance_apocalyptic_default_value = {
|
||||
value = outbreak_chance_base_extra_low
|
||||
|
||||
#Buildings
|
||||
add = {
|
||||
value = num_buildings
|
||||
value = province_size_level
|
||||
multiply = outbreak_increase_add_low
|
||||
}
|
||||
|
||||
#Tradeports / Coasts
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_01
|
||||
has_port_district = yes
|
||||
}
|
||||
add = outbreak_increase_add_high
|
||||
}
|
||||
|
|
@ -440,6 +511,12 @@ outbreak_chance_apocalyptic_mult_value = {
|
|||
|
||||
# Game rules
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_normal
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_often
|
||||
}
|
||||
|
|
@ -470,32 +547,58 @@ outbreak_chance_apocalyptic_mult_value = {
|
|||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
|
||||
#Development
|
||||
#Prosperity
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level <= 20
|
||||
county.prosperity_level <= 20
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.008
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
county.development_level <= 40
|
||||
county.prosperity_level <= 40
|
||||
}
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.010
|
||||
}
|
||||
}
|
||||
else = {
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.012
|
||||
}
|
||||
}
|
||||
|
||||
#Era pacing
|
||||
if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_late_medieval
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_high_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_medium
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_tribal
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_unlikely
|
||||
}
|
||||
|
||||
#Terrain
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -665,6 +768,40 @@ outbreak_chance_dysentery_mult_value = {
|
|||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
|
||||
#Era pacing
|
||||
if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_late_medieval
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_high_medieval
|
||||
}
|
||||
}
|
||||
add = 0
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_early_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_tribal
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_medium
|
||||
}
|
||||
|
||||
#Terrain
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -704,7 +841,7 @@ outbreak_chance_dysentery_mult_value = {
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level < 10
|
||||
county.prosperity_level < 10
|
||||
}
|
||||
multiply = 0.1
|
||||
}
|
||||
|
|
@ -717,13 +854,13 @@ outbreak_chance_dysentery_mult_value = {
|
|||
outbreak_chance_black_plague_default_value = {
|
||||
value = outbreak_chance_base_extra_low
|
||||
|
||||
#Buildings
|
||||
#Districts
|
||||
if = {
|
||||
limit = {
|
||||
num_buildings >= 20
|
||||
num_districts >= 4
|
||||
}
|
||||
add = {
|
||||
value = num_buildings
|
||||
value = num_districts
|
||||
multiply = outbreak_increase_add_medium
|
||||
}
|
||||
}
|
||||
|
|
@ -731,7 +868,7 @@ outbreak_chance_black_plague_default_value = {
|
|||
#Tradeports / Coasts
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_01
|
||||
has_port_district = yes
|
||||
}
|
||||
add = outbreak_increase_add_high
|
||||
}
|
||||
|
|
@ -778,9 +915,9 @@ outbreak_chance_black_plague_default_value = {
|
|||
|
||||
outbreak_chance_black_plague_mult_value = {
|
||||
value = 1
|
||||
#Development
|
||||
#Prosperity
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.08
|
||||
}
|
||||
|
||||
|
|
@ -816,6 +953,47 @@ outbreak_chance_black_plague_mult_value = {
|
|||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
|
||||
#Era pacing
|
||||
if = {
|
||||
limit = {
|
||||
NOR = {
|
||||
has_game_rule = bd_occurrence_random
|
||||
has_game_rule = bd_frequency_unlimited
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_late_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_high_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_medium
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_early_medieval
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_high
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_cultural_era_or_later = culture_era_tribal
|
||||
}
|
||||
}
|
||||
add = outbreak_decrease_mult_unlikely
|
||||
}
|
||||
}
|
||||
|
||||
#Terrain
|
||||
if = {
|
||||
|
|
@ -856,7 +1034,7 @@ outbreak_chance_black_plague_mult_value = {
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level < 10
|
||||
county.prosperity_level < 10
|
||||
}
|
||||
multiply = 0.1
|
||||
}
|
||||
|
|
@ -941,16 +1119,16 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
}
|
||||
|
||||
#Buildings
|
||||
#Districts
|
||||
add = {
|
||||
value = num_buildings
|
||||
value = num_districts
|
||||
multiply = spread_increase_mult_low
|
||||
}
|
||||
|
||||
#Tradeports
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_08
|
||||
has_building_or_higher = pb_port_04
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
add = spread_increase_add_high
|
||||
|
|
@ -963,19 +1141,7 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_07
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_06
|
||||
has_building_or_higher = pb_port_03
|
||||
}
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_medium
|
||||
|
|
@ -986,17 +1152,7 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_05
|
||||
}
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_04
|
||||
has_building_or_higher = pb_port_02
|
||||
}
|
||||
add = spread_increase_add_medium
|
||||
add = spread_increase_add_low
|
||||
|
|
@ -1005,37 +1161,23 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_03
|
||||
province_has_district = port_district
|
||||
}
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_02
|
||||
}
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = common_tradeport_01
|
||||
}
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
|
||||
#Markets
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = market_villages_02
|
||||
has_building_or_higher = pb_market_03
|
||||
}
|
||||
add = spread_increase_add_low
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = market_villages_01
|
||||
province_has_district = market_district
|
||||
}
|
||||
add = spread_increase_add_low
|
||||
}
|
||||
|
|
@ -1043,7 +1185,7 @@ spread_chance_epidemics_default_value = {
|
|||
#Guild Halls
|
||||
if = {
|
||||
limit = {
|
||||
has_building_or_higher = guild_halls_08
|
||||
has_building_or_higher = pb_guild_04
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
add = spread_increase_add_high
|
||||
|
|
@ -1052,7 +1194,7 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = guild_halls_06
|
||||
has_building_or_higher = pb_guild_03
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
add = spread_increase_add_high
|
||||
|
|
@ -1060,14 +1202,14 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = guild_halls_04
|
||||
has_building_or_higher = pb_guild_02
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
add = spread_increase_add_high
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_building_or_higher = guild_halls_02
|
||||
province_has_district = guild_district
|
||||
}
|
||||
add = spread_increase_add_high
|
||||
}
|
||||
|
|
@ -1213,6 +1355,20 @@ spread_chance_epidemics_default_value = {
|
|||
}
|
||||
}
|
||||
|
||||
spread_settlement_size_mult_value = {
|
||||
value = 1
|
||||
if = {
|
||||
limit = {
|
||||
province_size_level > spread_settlement_size_level_threshold
|
||||
}
|
||||
add = {
|
||||
value = province_size_level
|
||||
subtract = spread_settlement_size_level_threshold
|
||||
multiply = spread_increase_mult_per_settlement_size_level
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spread_chance_epidemics_mult_value = {
|
||||
value = 1
|
||||
min = 0.001
|
||||
|
|
@ -1224,8 +1380,8 @@ spread_chance_epidemics_mult_value = {
|
|||
is_riverside_province = yes
|
||||
}
|
||||
NOR = {
|
||||
has_building_or_higher = common_tradeport_04
|
||||
num_buildings > 4
|
||||
has_building_or_higher = pb_port_02
|
||||
num_districts > 2
|
||||
}
|
||||
}
|
||||
add = spread_decrease_mult_medium
|
||||
|
|
@ -1240,8 +1396,8 @@ spread_chance_epidemics_mult_value = {
|
|||
is_coastal = yes
|
||||
is_riverside_province = yes
|
||||
}
|
||||
has_building_or_higher = common_tradeport_06
|
||||
num_buildings > 10
|
||||
has_building_or_higher = pb_port_03
|
||||
num_districts > 4
|
||||
}
|
||||
add = spread_increase_mult_high
|
||||
}
|
||||
|
|
@ -1258,9 +1414,9 @@ spread_chance_epidemics_mult_value = {
|
|||
add = spread_increase_mult_very_high
|
||||
}
|
||||
|
||||
#Development
|
||||
#Prosperity
|
||||
add = {
|
||||
value = county.development_level
|
||||
value = county.prosperity_level
|
||||
multiply = 0.025
|
||||
}
|
||||
|
||||
|
|
@ -1399,6 +1555,8 @@ spread_chance_epidemics_mult_value = {
|
|||
}
|
||||
add = spread_decrease_mult_unlikely
|
||||
}
|
||||
|
||||
multiply = spread_settlement_size_mult_value
|
||||
}
|
||||
|
||||
#### DAILY INFECTION RATE ###
|
||||
|
|
@ -1594,45 +1752,108 @@ character_infection_chance_default_value = {
|
|||
# Slight buff.
|
||||
if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_1 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_1 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_1 }
|
||||
}
|
||||
}
|
||||
add = -10
|
||||
}
|
||||
# Max buff.
|
||||
else_if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_6 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_6 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_6 }
|
||||
}
|
||||
}
|
||||
add = -40
|
||||
}
|
||||
# Very high buff.
|
||||
else_if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_5 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_5 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_5 }
|
||||
}
|
||||
}
|
||||
add = -30
|
||||
}
|
||||
# High buff.
|
||||
else_if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_4 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_4 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_4 }
|
||||
}
|
||||
}
|
||||
add = -25
|
||||
}
|
||||
# Medium buff.
|
||||
else_if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_3 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_3 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_3 }
|
||||
}
|
||||
}
|
||||
add = -20
|
||||
}
|
||||
# Small buff.
|
||||
else_if = {
|
||||
limit = {
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_2 }
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = camp_infection_chance_buff_2 }
|
||||
host.domicile ?= { has_domicile_parameter = camp_infection_chance_buff_2 }
|
||||
}
|
||||
}
|
||||
add = -15
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_5 }
|
||||
host.domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_5 }
|
||||
}
|
||||
}
|
||||
add = -30
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_4 }
|
||||
host.domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_4 }
|
||||
}
|
||||
}
|
||||
add = -25
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_3 }
|
||||
host.domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_3 }
|
||||
}
|
||||
}
|
||||
add = -20
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_2 }
|
||||
host.domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_2 }
|
||||
}
|
||||
}
|
||||
add = -15
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_1 }
|
||||
host.domicile ?= { has_domicile_parameter = merchant_infection_chance_buff_1 }
|
||||
}
|
||||
}
|
||||
add = -10
|
||||
}
|
||||
#Would you follow social distancing?
|
||||
#your numerical social distance value gets transformed here into a bonus/malus
|
||||
add = {
|
||||
|
|
@ -1741,18 +1962,14 @@ recent_epidemics_outbreak_mult_value = {
|
|||
min = 0
|
||||
}
|
||||
|
||||
#How badly effected is a county's development?
|
||||
epidemic_development_loss_value = {
|
||||
#How badly affected is a county's prosperity?
|
||||
epidemic_prosperity_loss_value = {
|
||||
subtract = scope:base_loss
|
||||
|
||||
#This feeds into the change_development_progress in 00_epidemics
|
||||
#Bear in mind that minimal_development_progress_loss is 10
|
||||
#and massive_development_progress_loss is 100
|
||||
#Aim for something between those two extremes generally (in minus)
|
||||
#This feeds into change_prosperity_progress in 00_epidemics
|
||||
#minimal_prosperity_progress_loss is 10 and massive_prosperity_progress_loss is 100, so aim between them (as a negative value)
|
||||
|
||||
#Since we have widespread development loss handled by modifier, we
|
||||
#now use this figure to 'chunk' down places with very high development
|
||||
#so they are disproportionately affected
|
||||
#Modifiers cover widespread loss, so we hit high-prosperity counties harder here
|
||||
|
||||
scope:epidemic = {
|
||||
switch = {
|
||||
|
|
@ -1763,9 +1980,9 @@ epidemic_development_loss_value = {
|
|||
}
|
||||
}
|
||||
|
||||
# Development
|
||||
# Prosperity
|
||||
subtract = {
|
||||
value = development_level
|
||||
value = prosperity_level
|
||||
multiply = 0.3
|
||||
}
|
||||
|
||||
|
|
@ -1826,60 +2043,3 @@ former_infected_county_count = {
|
|||
add = 0.1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
epidemic_prosperity_loss_value = {
|
||||
subtract = scope:base_loss
|
||||
|
||||
#This feeds into change_prosperity_progress in 00_epidemics
|
||||
#minimal_prosperity_progress_loss is 10 and massive_prosperity_progress_loss is 100, so aim between them (as a negative value)
|
||||
|
||||
#Modifiers cover widespread loss, so we hit high-prosperity counties harder here
|
||||
|
||||
scope:epidemic = {
|
||||
switch = {
|
||||
trigger = outbreak_intensity
|
||||
minor = { subtract = 2.5 }
|
||||
major = { subtract = 5 }
|
||||
apocalyptic = { subtract = 7.5 }
|
||||
}
|
||||
}
|
||||
|
||||
# Prosperity
|
||||
subtract = {
|
||||
value = prosperity_level
|
||||
multiply = 0.3
|
||||
}
|
||||
|
||||
multiply = {
|
||||
value = 6
|
||||
divide = num_county_holdings
|
||||
}
|
||||
|
||||
multiply = {
|
||||
value = 100
|
||||
subtract = title_province.epidemic_resistance
|
||||
multiply = 0.005
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
spread_settlement_size_mult_value = {
|
||||
value = 1
|
||||
if = {
|
||||
limit = {
|
||||
province_size_level > spread_settlement_size_level_threshold
|
||||
}
|
||||
add = {
|
||||
value = province_size_level
|
||||
subtract = spread_settlement_size_level_threshold
|
||||
multiply = spread_increase_mult_per_settlement_size_level
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# CK3 1.21: retained vanilla values required by the updated systems.
|
||||
spread_settlement_size_level_threshold = 4
|
||||
spread_increase_mult_per_settlement_size_level = 0.1
|
||||
|
|
|
|||
|
|
@ -210,10 +210,7 @@ restore_patriarch_scripted_effect = {
|
|||
}
|
||||
}
|
||||
|
||||
province:496 = {
|
||||
remove_building = hagia_sophia_02
|
||||
add_special_building = hagia_sophia_01
|
||||
}
|
||||
neow_restore_hagia_sophia_district_effect = yes
|
||||
|
||||
title:k_orthodox = {
|
||||
set_capital_county = title:c_byzantion
|
||||
|
|
@ -358,10 +355,7 @@ form_marblist_decision_effect = {
|
|||
}
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
hidden_effect = {
|
||||
province:496 = {
|
||||
remove_building = hagia_sophia_02
|
||||
add_special_building = hagia_sophia_01
|
||||
}
|
||||
neow_restore_hagia_sophia_district_effect = yes
|
||||
set_primary_title_to = title:e_marblist
|
||||
title:k_thrace = { set_de_jure_liege_title = title:e_marblist }
|
||||
title:k_macedonia = { set_de_jure_liege_title = title:e_marblist }
|
||||
|
|
@ -749,13 +743,7 @@ NEOW_eccelarch_restore_ecumenical_patriarchate_effect = {
|
|||
hidden_effect = {
|
||||
save_scope_as = new_patriarch
|
||||
|
||||
province:496 = {
|
||||
if = {
|
||||
limit = { has_building = hagia_sophia_02 }
|
||||
remove_building = hagia_sophia_02
|
||||
add_special_building = hagia_sophia_01
|
||||
}
|
||||
}
|
||||
neow_restore_hagia_sophia_district_effect = yes
|
||||
|
||||
title:k_orthodox = { set_capital_county = title:c_byzantion }
|
||||
|
||||
|
|
@ -819,26 +807,9 @@ NEOW_form_empire_of_athos_effect = {
|
|||
|
||||
resolve_title_and_vassal_change = scope:athonite_title_change
|
||||
|
||||
# Proclaiming the empire replaces the existing Mount Athos building with
|
||||
# the fourth stage. All tier-three bonuses are preserved at tier four.
|
||||
province:3776 = {
|
||||
if = {
|
||||
limit = { has_building = mount_athos_01 }
|
||||
remove_building = mount_athos_01
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_building = mount_athos_02 }
|
||||
remove_building = mount_athos_02
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_building = mount_athos_03 }
|
||||
remove_building = mount_athos_03
|
||||
}
|
||||
if = {
|
||||
limit = { NOT = { has_building = mount_athos_04 } }
|
||||
add_special_building = mount_athos_04
|
||||
}
|
||||
}
|
||||
# The founding of the Athonite Empire consecrates the fourth stage of the
|
||||
# existing Mount Athos special district, retaining its level-three effects.
|
||||
neow_consecrate_athos_district_effect = yes
|
||||
|
||||
faith:orthodox = { set_religious_head_title = title:h_athos }
|
||||
set_primary_title_to = title:h_athos
|
||||
|
|
@ -1585,3 +1556,135 @@ NEOW_restore_maronite_antioch_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
# 1.21 district-based replacement of the former minaret building.
|
||||
# This does not wipe any ordinary buildings or other holdings in Byzantion.
|
||||
neow_restore_hagia_sophia_district_effect = {
|
||||
province:496 = {
|
||||
if = {
|
||||
limit = { has_special_district = no }
|
||||
add_special_district = hagia_sophia_01_district
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_building = hagia_sophia_02 }
|
||||
special_district = {
|
||||
remove_building = hagia_sophia_02
|
||||
add_building = hagia_sophia_01
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { NOT = { has_building = hagia_sophia_01 } }
|
||||
special_district = { add_building = hagia_sophia_01 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# The Citadel is reserved for the imperial proclamation, not general building.
|
||||
neow_consecrate_athos_district_effect = {
|
||||
province:3776 = {
|
||||
if = {
|
||||
limit = { has_special_district = no }
|
||||
add_special_district = mount_athos_01_district
|
||||
}
|
||||
special_district = {
|
||||
if = { limit = { has_building = mount_athos_01 } remove_building = mount_athos_01 }
|
||||
if = { limit = { has_building = mount_athos_02 } remove_building = mount_athos_02 }
|
||||
if = { limit = { has_building = mount_athos_03 } remove_building = mount_athos_03 }
|
||||
if = {
|
||||
limit = { NOT = { has_building = mount_athos_04 } }
|
||||
add_building = mount_athos_04
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Cadaverist enthronement reuses the Vatican's current Holy Buildings district.
|
||||
# Replaces only its special building; keeps other district investments intact.
|
||||
neow_consecrate_vatican_ossuary_district_effect = {
|
||||
province:2577 = {
|
||||
if = {
|
||||
limit = { has_special_district = no }
|
||||
add_special_district = holy_site_st_peters_basilica_01_district
|
||||
}
|
||||
special_district = {
|
||||
if = {
|
||||
limit = { has_building = holy_site_st_peters_basilica_01 }
|
||||
remove_building = holy_site_st_peters_basilica_01
|
||||
}
|
||||
if = {
|
||||
limit = { NOT = { has_building = neow_vatican_bone_temple_01 } }
|
||||
add_building = neow_vatican_bone_temple_01
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# NEOW original definitions, updated for CK3 1.21
|
||||
|
||||
# CK3 1.21: turn the NEOW monastic brewmaster event's old county building
|
||||
# into a Brewers' Guild in an existing guild district.
|
||||
neow_grant_brewery_to_barony_effect = {
|
||||
scope:target_barony.title_province = {
|
||||
random_built_regular_district = {
|
||||
limit = { district_type = district_type:guild_district }
|
||||
if = {
|
||||
limit = { NOT = { has_building_or_higher = brewers_guild_1 } }
|
||||
add_building = brewers_guild_1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# NEOW 2555 settlement construction rewards, adapted to the current district model.
|
||||
# The root is the settlement builder and scope:city_location is the new holding province.
|
||||
# Building upgrades are granted only in an existing matching district, as in vanilla 1.21.
|
||||
neow_laamp_city_builder_district_reward_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
has_character_flag = laamp_city_builder_$FLAG$
|
||||
has_character_flag = laamp_city_builder_$FLAG$_upgrade
|
||||
}
|
||||
}
|
||||
scope:city_location = {
|
||||
if = {
|
||||
limit = { province_has_district = $DISTRICT$ }
|
||||
random_built_regular_district = {
|
||||
limit = { district_type = district_type:$DISTRICT$ }
|
||||
if = {
|
||||
limit = { root = { has_character_flag = laamp_city_builder_$FLAG$_upgrade } }
|
||||
add_building = $BUILDING$_3
|
||||
}
|
||||
else = { add_building = $BUILDING$_2 }
|
||||
}
|
||||
}
|
||||
else = {
|
||||
# Settlement investments still help local prosperity without the district.
|
||||
county = { change_prosperity_progress_with_overflow = 10 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Main castle/temple-citadel upgrades use the current holding district, not
|
||||
# old county-wide building grants. The settlement choices are preserved.
|
||||
neow_laamp_city_builder_holding_reward_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
has_character_flag = laamp_city_builder_$FLAG$
|
||||
has_character_flag = laamp_city_builder_$FLAG$_upgrade
|
||||
}
|
||||
}
|
||||
scope:city_location = {
|
||||
holding_district = {
|
||||
if = {
|
||||
limit = { root = { has_character_flag = laamp_city_builder_$FLAG$_upgrade } }
|
||||
add_building = $BUILDING$_3
|
||||
}
|
||||
else = { add_building = $BUILDING$_2 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue