more error cleaning

This commit is contained in:
Thakia 2026-10-09 16:36:59 -03:00
parent d9c60a5b08
commit 707660e545
65 changed files with 24545 additions and 2406 deletions

View file

@ -734,17 +734,17 @@ temple_01 = {
trigger_if = {
limit = {
NOT = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = tribals_can_into_temples
}
}
}
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
}
trigger_else = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = tribals_can_into_temples
}
}
@ -754,7 +754,7 @@ temple_01 = {
trigger_if = {
limit = {
NOT = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = tribals_can_into_temples
}
}
@ -763,7 +763,7 @@ temple_01 = {
building_requirement_tribal_holding_in_county = yes
}
trigger_else = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = tribals_can_into_temples
}
}
@ -848,7 +848,7 @@ temple_01 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = renown_from_temple_construction
}
exists = county.holder.dynasty
@ -857,7 +857,7 @@ temple_01 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = extra_piety_from_temple_construction
}
}
@ -868,11 +868,11 @@ temple_01 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = more_fervor_on_church_construction
}
}
county.holder.faith = {
county.holder.faith ?= {
change_fervor = {
value = notable_fervor_gain
desc = fervor_gain_built_temple_holding
@ -880,7 +880,7 @@ temple_01 = {
}
}
else = {
county.holder.faith = {
county.holder.faith ?= {
change_fervor = {
value = trivial_fervor_gain
desc = fervor_gain_built_temple_holding
@ -889,7 +889,7 @@ temple_01 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = prestige_from_temple_construction
}
}
@ -897,7 +897,7 @@ temple_01 = {
}
if = {
limit = {
county.holder.faith = {
county.holder.faith ?= {
has_doctrine_parameter = neow_piety_from_temple_construction
}
}
@ -1777,23 +1777,21 @@ temple_02 = {
}
can_construct = {
trigger_if = {
limit = {
NOT = {
scope:holder.culture = {
has_cultural_parameter = temple_next_level
}
limit = { exists = scope:holder.culture }
trigger_if = {
limit = {
NOT = { scope:holder.culture ?= { has_cultural_parameter = temple_next_level } }
}
scope:holder.culture ?= { has_innovation = innovation_manorialism }
}
trigger_else = {
scope:holder.culture ?= {
has_cultural_parameter = temple_next_level
has_innovation = innovation_city_planning
}
}
scope:holder.culture = {
has_innovation = innovation_manorialism
}
}
trigger_else = {
scope:holder.culture = {
has_cultural_parameter = temple_next_level
has_innovation = innovation_city_planning
}
}
trigger_else = { always = no }
}
can_construct_showing_failures_only = { NOT = { scope:holder = { has_character_modifier = tgp_rebuilder_modifier } } }
cost_gold = main_building_tier_2_cost
@ -1843,7 +1841,7 @@ temple_02 = {
on_complete = {
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = renown_from_temple_construction
}
exists = county.holder.dynasty
@ -1852,11 +1850,11 @@ temple_02 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = more_fervor_on_church_construction
}
}
county.holder.faith = {
county.holder.faith ?= {
change_fervor = {
value = small_fervor_gain
desc = fervor_gain_upgraded_temple_holding_culture_parameter
@ -2636,17 +2634,17 @@ temple_03 = {
trigger_if = {
limit = {
NOT = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = temple_next_level
}
}
}
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_windmills
}
}
trigger_else = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = temple_next_level
has_innovation = innovation_manorialism
}
@ -2699,7 +2697,7 @@ temple_03 = {
on_complete = {
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = renown_from_temple_construction
}
exists = county.holder.dynasty
@ -2708,11 +2706,11 @@ temple_03 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = more_fervor_on_church_construction
}
}
county.holder.faith = {
county.holder.faith ?= {
change_fervor = {
value = small_fervor_gain
desc = fervor_gain_upgraded_temple_holding_culture_parameter
@ -3489,17 +3487,17 @@ temple_04 = {
trigger_if = {
limit = {
NOT = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = temple_next_level
}
}
}
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_cranes
}
}
trigger_else = {
scope:holder.culture = {
scope:holder.culture ?= {
has_cultural_parameter = temple_next_level
has_innovation = innovation_windmills
}
@ -3551,7 +3549,7 @@ temple_04 = {
on_complete = {
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = renown_from_temple_construction
}
exists = county.holder.dynasty
@ -3560,11 +3558,11 @@ temple_04 = {
}
if = {
limit = {
county.holder.culture = {
county.holder.culture ?= {
has_cultural_parameter = more_fervor_on_church_construction
}
}
county.holder.faith = {
county.holder.faith ?= {
change_fervor = {
value = small_fervor_gain
desc = fervor_gain_upgraded_temple_holding_culture_parameter
@ -3742,7 +3740,7 @@ scriptorium_02 = {
can_construct_showing_failures_only = {
building_requirement_tribal = no
culture = {
culture ?= {
has_innovation = innovation_city_planning
}
}
@ -3797,7 +3795,7 @@ scriptorium_03 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
culture = {
culture ?= {
has_innovation = innovation_manorialism
}
has_dlc_feature = legends
@ -3857,7 +3855,7 @@ scriptorium_04 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
culture = {
culture ?= {
has_innovation = innovation_manorialism
}
has_dlc_feature = legends
@ -3917,7 +3915,7 @@ scriptorium_05 = {
has_building_or_higher = temple_03
has_building_or_higher = temple_citadel_03
}
culture = {
culture ?= {
has_innovation = innovation_windmills
}
has_dlc_feature = legends
@ -3977,7 +3975,7 @@ scriptorium_06 = {
has_building_or_higher = temple_03
has_building_or_higher = temple_citadel_03
}
culture = {
culture ?= {
has_innovation = innovation_windmills
}
has_dlc_feature = legends
@ -4036,7 +4034,7 @@ scriptorium_07 = {
has_building_or_higher = temple_04
has_building_or_higher = temple_citadel_04
}
culture = {
culture ?= {
has_innovation = innovation_cranes
}
has_dlc_feature = legends
@ -4096,7 +4094,7 @@ scriptorium_08 = {
has_building_or_higher = temple_04
has_building_or_higher = temple_citadel_04
}
culture = {
culture ?= {
has_innovation = innovation_cranes
}
has_dlc_feature = legends
@ -4155,8 +4153,12 @@ monastic_schools_01 = {
can_construct_potential = {
trigger_if = {
limit = {
scope:holder.rite = {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
exists = scope:holder.rite
trigger_if = {
limit = { exists = scope:holder.rite }
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
}
OR = {
@ -4233,7 +4235,7 @@ monastic_schools_02 = {
can_construct_potential = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4246,7 +4248,7 @@ monastic_schools_02 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
trigger_if = {
limit = { NOT = { has_cultural_parameter = next_level_monasteries } }
has_innovation = innovation_city_planning
@ -4309,7 +4311,7 @@ monastic_schools_03 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4321,18 +4323,18 @@ monastic_schools_03 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_manorialism
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 02 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_city_planning
has_cultural_parameter = next_level_monasteries
}
@ -4395,7 +4397,7 @@ monastic_schools_04 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4407,18 +4409,18 @@ monastic_schools_04 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_manorialism
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 02 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_city_planning
has_cultural_parameter = next_level_monasteries
}
@ -4481,7 +4483,7 @@ monastic_schools_05 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4493,18 +4495,18 @@ monastic_schools_05 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_windmills
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 03 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_city_planning
has_cultural_parameter = next_level_monasteries
}
@ -4567,7 +4569,7 @@ monastic_schools_06 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4579,18 +4581,18 @@ monastic_schools_06 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_windmills
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 03 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_city_planning
has_cultural_parameter = next_level_monasteries
}
@ -4653,7 +4655,7 @@ monastic_schools_07 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4665,18 +4667,18 @@ monastic_schools_07 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_cranes
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 04 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_windmills
has_cultural_parameter = next_level_monasteries
}
@ -4739,7 +4741,7 @@ monastic_schools_08 = {
can_construct = {
trigger_if = {
limit = {
scope:holder.rite = {
scope:holder.rite ?= {
NOT = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type }
}
}
@ -4751,18 +4753,18 @@ monastic_schools_08 = {
trigger_if = {
limit = {
NOT = {
culture = {
culture ?= {
has_cultural_parameter = next_level_monasteries
}
}
}
culture = {
culture ?= {
has_innovation = innovation_cranes
}
building_requirement_castle_city_church_temple_citadel_tribe = { LEVEL = 04 }
}
trigger_else = {
culture = {
culture ?= {
has_innovation = innovation_windmills
has_cultural_parameter = next_level_monasteries
}
@ -4828,9 +4830,11 @@ megalith_01 = {
has_building_or_higher = temple_01
has_building_or_higher = temple_citadel_01
}
scope:holder.rite = {
rite_has_parameter = can_build_megaliths
trigger_if = {
limit = { exists = scope:holder.rite }
scope:holder.rite ?= { rite_has_parameter = can_build_megaliths }
}
trigger_else = { always = no }
}
can_construct_showing_failures_only = {
@ -4840,7 +4844,11 @@ megalith_01 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
trigger_if = {
limit = { exists = county.rite }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
trigger_else = { always = no }
}
}
@ -4901,7 +4909,7 @@ megalith_02 = {
has_building_or_higher = temple_01
has_building_or_higher = temple_citadel_01
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
@ -4913,7 +4921,7 @@ megalith_02 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -4953,13 +4961,13 @@ megalith_03 = {
has_building_or_higher = temple_01
has_building_or_higher = temple_citadel_01
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -4968,7 +4976,7 @@ megalith_03 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5008,13 +5016,13 @@ megalith_04 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5023,7 +5031,7 @@ megalith_04 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5064,13 +5072,13 @@ megalith_05 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5079,7 +5087,7 @@ megalith_05 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5121,13 +5129,13 @@ megalith_06 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5136,7 +5144,7 @@ megalith_06 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5178,13 +5186,13 @@ megalith_07 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5193,7 +5201,7 @@ megalith_07 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5235,13 +5243,13 @@ megalith_08 = {
has_building_or_higher = temple_02
has_building_or_higher = temple_citadel_02
}
scope:holder.rite = {
scope:holder.rite ?= {
rite_has_parameter = can_build_megaliths
}
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5250,7 +5258,7 @@ megalith_08 = {
is_enabled = {
custom_tooltip = {
text = province_is_of_a_megalith_faith_tt
county.rite = { rite_has_parameter = can_build_megaliths }
county.rite ?= { rite_has_parameter = can_build_megaliths }
}
}
@ -5341,7 +5349,7 @@ breweries_02 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5391,7 +5399,7 @@ breweries_03 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_city_planning
}
building_requirement_tribal = no
@ -5432,7 +5440,7 @@ breweries_04 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_manorialism
}
building_requirement_tribal = no
@ -5473,7 +5481,7 @@ breweries_05 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_windmills
}
building_requirement_tribal = no
@ -5514,7 +5522,7 @@ breweries_06 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_windmills
}
building_requirement_tribal = no
@ -5555,7 +5563,7 @@ breweries_07 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_cranes
}
building_requirement_tribal = no
@ -5596,7 +5604,7 @@ breweries_08 = {
}
can_construct_showing_failures_only = {
scope:holder.culture = {
scope:holder.culture ?= {
has_innovation = innovation_cranes
}
building_requirement_tribal = no