buikding fix

This commit is contained in:
Greekman 2026-11-22 01:20:02 +00:00
parent 7b79d09c8b
commit 2ea6f90ccc
45 changed files with 53784 additions and 1457 deletions

View file

@ -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 }
}
}
}
}