more error cleaning
This commit is contained in:
parent
d9c60a5b08
commit
707660e545
65 changed files with 24545 additions and 2406 deletions
|
|
@ -237,8 +237,12 @@ building_orchards_requirement_terrain = {
|
|||
terrain = floodplains
|
||||
terrain = oasis
|
||||
has_building_or_higher = qanats_05
|
||||
culture = {
|
||||
has_cultural_parameter = vegetarian_fruit_orchard_allowed
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = vegetarian_fruit_orchard_allowed }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -251,7 +255,13 @@ building_farm_estates_requirement_terrain = {
|
|||
terrain = hills
|
||||
terrain = jungle
|
||||
}
|
||||
county.culture = { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
AND = {
|
||||
exists = county.culture
|
||||
trigger_if = {
|
||||
limit = { exists = county.culture }
|
||||
county.culture ?= { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -325,14 +335,26 @@ building_paddy_fields_requirement_terrain = {
|
|||
}
|
||||
AND = {
|
||||
terrain = wetlands
|
||||
county.culture = { has_cultural_parameter = champa_rice_wet_land_paddies }
|
||||
AND = {
|
||||
exists = county.culture
|
||||
trigger_if = {
|
||||
limit = { exists = county.culture }
|
||||
county.culture ?= { has_cultural_parameter = champa_rice_wet_land_paddies }
|
||||
}
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
OR = {
|
||||
terrain = hills
|
||||
terrain = jungle
|
||||
}
|
||||
county.culture = { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
AND = {
|
||||
exists = county.culture
|
||||
trigger_if = {
|
||||
limit = { exists = county.culture }
|
||||
county.culture ?= { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -447,7 +469,13 @@ building_elephant_pens_requirement_terrain = {
|
|||
terrain = jungle
|
||||
OR = {
|
||||
geographical_region = world_innovation_elephants
|
||||
culture = { has_cultural_parameter = elephant_pens_building_bonuses }
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = elephant_pens_building_bonuses }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -455,7 +483,13 @@ building_horse_pastures_requirement_terrain = {
|
|||
OR = {
|
||||
terrain = steppe
|
||||
geographical_region = world_steppe_east
|
||||
culture = { has_cultural_parameter = unlock_horse_pastures_building }
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = unlock_horse_pastures_building }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -471,7 +505,13 @@ building_quarries_requirement_terrain = {
|
|||
OR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
culture = { has_cultural_parameter = can_build_quarries_everywhere }
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = can_build_quarries_everywhere }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -486,7 +526,13 @@ building_warrior_lodges_requirement_terrain = {
|
|||
}
|
||||
NOT = { geographical_region = world_horse_buildings_in_hills_and_mountains }
|
||||
}
|
||||
culture = { has_cultural_parameter = warrior_lodges_lift_restrictions }
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = warrior_lodges_lift_restrictions }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -523,7 +569,7 @@ building_wind_furnace_requirement_terrain = {
|
|||
|
||||
}
|
||||
|
||||
scope:holder.culture = { has_innovation = innovation_wootz_steel }
|
||||
scope:holder.culture ?= { has_innovation = innovation_wootz_steel }
|
||||
}
|
||||
|
||||
building_hill_forts_requirement_terrain = {
|
||||
|
|
@ -587,7 +633,13 @@ building_caravanserai_requirement_terrain = {
|
|||
|
||||
building_qanats_requirement_terrain = {
|
||||
county ?= {
|
||||
culture = { has_cultural_parameter = unlocks_qanat_building }
|
||||
AND = {
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = unlocks_qanat_building }
|
||||
}
|
||||
}
|
||||
county_has_province_with_terrain = {
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
|
|
@ -757,22 +809,22 @@ add_random_building_trigger = {
|
|||
generic_economic_building_innovation_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_crop_rotation }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_crop_rotation }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_manorialism }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_manorialism }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_guilds }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_guilds }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_cranes }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_cranes }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -780,22 +832,22 @@ generic_economic_building_innovation_trigger = {
|
|||
generic_fortification_building_innovations_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_motte }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_motte }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_battlements }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_battlements }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_hoardings }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_hoardings }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_machicolations }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_machicolations }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -803,22 +855,22 @@ generic_fortification_building_innovations_trigger = {
|
|||
generic_recruitment_building_innovations_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_barracks }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_barracks }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_burhs }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_burhs }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_castle_baileys }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_castle_baileys }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_royal_armory }
|
||||
scope:build_owner.culture ?= { has_innovation = innovation_royal_armory }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -946,7 +998,7 @@ religious_special_building_exclusion_trigger = { # checks if any special buildin
|
|||
|
||||
building_monastic_schools_holding_level_requirement_trigger = {
|
||||
trigger_if = {
|
||||
limit = { scope:holder.rite = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type } }
|
||||
limit = { scope:holder.rite ?= { rite_has_parameter = monastic_schools_allowed_in_every_holding_type } }
|
||||
OR = {
|
||||
has_building_or_higher = castle_$LEVEL$
|
||||
has_building_or_higher = city_$LEVEL$
|
||||
|
|
@ -975,7 +1027,11 @@ building_waterworks_requirement_terrain = {
|
|||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
}
|
||||
scope:holder.culture = { has_cultural_parameter = unlocks_waterworks_buildings }
|
||||
exists = scope:holder.culture
|
||||
trigger_if = {
|
||||
limit = { exists = scope:holder.culture }
|
||||
scope:holder.culture ?= { has_cultural_parameter = unlocks_waterworks_buildings }
|
||||
}
|
||||
}
|
||||
|
||||
building_spice_plantation_requirement_terrain = {
|
||||
|
|
@ -1014,12 +1070,22 @@ building_breweries_requirement = {
|
|||
}
|
||||
OR = {
|
||||
religion = religion:catholic_religion
|
||||
faith = { has_doctrine_parameter = allows_brewery }
|
||||
AND = {
|
||||
exists = faith
|
||||
trigger_if = {
|
||||
limit = { exists = faith }
|
||||
faith ?= { has_doctrine_parameter = allows_brewery }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
building_requirement_castle_city_church = { LEVEL = $NUMBER$ }
|
||||
culture = { has_cultural_parameter = allows_brewery }
|
||||
building_requirement_castle_city_church = { LEVEL = $NUMBER$ }
|
||||
exists = culture
|
||||
trigger_if = {
|
||||
limit = { exists = culture }
|
||||
culture ?= { has_cultural_parameter = allows_brewery }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1061,7 +1127,11 @@ building_doggerland_ivory_deposits_requirement_terrain = {
|
|||
|
||||
building_vineyards_requirement = {
|
||||
AND = {
|
||||
root.culture = { has_cultural_parameter = allows_vineyards }
|
||||
exists = root.culture
|
||||
trigger_if = {
|
||||
limit = { exists = root.culture }
|
||||
root.culture ?= { has_cultural_parameter = allows_vineyards }
|
||||
}
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = plains
|
||||
|
|
@ -1072,16 +1142,28 @@ building_vineyards_requirement = {
|
|||
|
||||
building_communal_settlement_requirement = {
|
||||
OR = {
|
||||
scope:holder.faith = {
|
||||
has_doctrine_parameter = allows_communal_settlement
|
||||
AND = {
|
||||
exists = scope:holder.faith
|
||||
trigger_if = {
|
||||
limit = { exists = scope:holder.faith }
|
||||
scope:holder.faith ?= { has_doctrine_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
|
||||
root.faith = {
|
||||
has_doctrine_parameter = allows_communal_settlement
|
||||
AND = {
|
||||
exists = root.faith
|
||||
trigger_if = {
|
||||
limit = { exists = root.faith }
|
||||
root.faith ?= { has_doctrine_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
|
||||
root.culture = {
|
||||
has_cultural_parameter = allows_communal_settlement
|
||||
AND = {
|
||||
exists = root.culture
|
||||
trigger_if = {
|
||||
limit = { exists = root.culture }
|
||||
root.culture ?= { has_cultural_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue