﻿# Need Types Used In This File
# - trade_good: trade_good_books_paper, trade_good_copper, trade_good_horses, trade_good_iron, trade_good_ivory, trade_good_jewelry, trade_good_leather, trade_good_medicaments, trade_good_stone, trade_good_wood
# - trade_good_category: trade_category_base_metals, trade_category_carpentry_supplies, trade_category_cereals, trade_category_meat, trade_category_precious_metals
#
# Modifier Types Used In This File
# - character_travel_speed_mult
# - knight_effectiveness_mult
# - levy_reinforcement_rate
# - levy_size
# - monthly_artisan_tax
# - monthly_civic_tax
# - monthly_mining_tax
# - monthly_religious_tax
# - monthly_woodland_tax
# - movement_speed
# - movement_speed_land_raiding
# - popular_opinion_add
# - siege_phase_time
# - stationed_archer_cavalry_damage_mult
# - stationed_archer_cavalry_pursuit_mult
# - stationed_archer_cavalry_screen_mult
# - stationed_archer_cavalry_toughness_mult
# - stationed_archers_damage_mult
# - stationed_archers_pursuit_mult
# - stationed_archers_screen_mult
# - stationed_archers_toughness_mult
# - stationed_camel_cavalry_damage_mult
# - stationed_camel_cavalry_pursuit_mult
# - stationed_camel_cavalry_screen_mult
# - stationed_camel_cavalry_toughness_mult
# - stationed_elephant_cavalry_damage_mult
# - stationed_elephant_cavalry_pursuit_mult
# - stationed_elephant_cavalry_screen_mult
# - stationed_elephant_cavalry_toughness_mult
# - stationed_gunpowder_damage_mult
# - stationed_gunpowder_pursuit_mult
# - stationed_gunpowder_screen_mult
# - stationed_gunpowder_siege_value_mult
# - stationed_gunpowder_toughness_mult
# - stationed_heavy_cavalry_damage_mult
# - stationed_heavy_cavalry_pursuit_mult
# - stationed_heavy_cavalry_screen_mult
# - stationed_heavy_cavalry_toughness_mult
# - stationed_heavy_infantry_damage_mult
# - stationed_heavy_infantry_pursuit_mult
# - stationed_heavy_infantry_toughness_mult
# - stationed_light_cavalry_damage_mult
# - stationed_light_cavalry_pursuit_mult
# - stationed_light_cavalry_screen_mult
# - stationed_light_cavalry_toughness_mult
# - stationed_maa_control_value_add
# - stationed_maa_damage_mult
# - stationed_maa_reinforcement_rate
# - stationed_maa_siege_value_add
# - stationed_maa_siege_value_mult
# - stationed_siege_weapon_maintenance_low_modifier
# - stationed_siege_weapon_siege_value_mult
# - stationed_skirmishers_damage_mult
# - stationed_skirmishers_pursuit_mult
# - stationed_skirmishers_screen_mult
# - stationed_skirmishers_toughness_mult
# - supply_limit

# Conscription Hall
# Gives: county: levy_size, levy_reinforcement_rate, supply_limit; market: trade_good_iron_sell_price_mult
# Needs: trade_good_iron -> county: levy_size; province: monthly_civic_tax
mustering_grounds_1 = {
	type_icon = regular_buildings/mustering_grounds.dds
	next_building = mustering_grounds_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	levy = normal_building_levy_tier_1
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_size = 0.05
		levy_reinforcement_rate = 0.05
		supply_limit = normal_building_supply_limit_tier_1
	}
	county_culture_modifier = {
		parameter = strength_in_numbers_levy_buildings_bonuses
		levy_size = 0.025
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				levy_size = 0.05
			}
			province_modifier = {
				monthly_civic_tax = poor_building_tax_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Conscription Hall
# Gives: county: levy_size, levy_reinforcement_rate, supply_limit; market: trade_good_iron_sell_price_mult
# Needs: trade_good_iron x2 -> county: levy_size; province: monthly_civic_tax
mustering_grounds_2 = {
	next_building = mustering_grounds_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	levy = normal_building_levy_tier_2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_size = 0.1
		levy_reinforcement_rate = 0.1
		supply_limit = normal_building_supply_limit_tier_2
	}
	county_culture_modifier = {
		parameter = strength_in_numbers_levy_buildings_bonuses
		levy_size = 0.05
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				levy_size = 0.05
			}
			province_modifier = {
				monthly_civic_tax = poor_building_tax_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Conscription Hall
# Gives: county: levy_size, levy_reinforcement_rate, supply_limit; market: trade_good_iron_sell_price_mult
# Needs: trade_good_iron x3 -> county: levy_size; province: monthly_civic_tax
mustering_grounds_3 = {
	next_building = mustering_grounds_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	levy = normal_building_levy_tier_3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_size = 0.15
		levy_reinforcement_rate = 0.15
		supply_limit = normal_building_supply_limit_tier_3
	}
	county_culture_modifier = {
		parameter = strength_in_numbers_levy_buildings_bonuses
		levy_size = 0.075
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				levy_size = 0.05
			}
			province_modifier = {
				monthly_civic_tax = poor_building_tax_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Conscription Hall
# Gives: county: levy_size, levy_reinforcement_rate, supply_limit; market: trade_good_iron_sell_price_mult
# Needs: trade_good_iron x4 -> county: levy_size; province: monthly_civic_tax
mustering_grounds_4 = {
	next_building = mustering_grounds_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	levy = normal_building_levy_tier_4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_size = 0.2
		levy_reinforcement_rate = 0.2
		supply_limit = normal_building_supply_limit_tier_4
	}
	county_culture_modifier = {
		parameter = strength_in_numbers_levy_buildings_bonuses
		levy_size = 0.1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				levy_size = 0.05
			}
			province_modifier = {
				monthly_civic_tax = poor_building_tax_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Conscription Hall
# Gives: county: levy_size, levy_reinforcement_rate, supply_limit; market: trade_good_iron_sell_price_mult
# Needs: trade_good_iron x5 -> county: levy_size; province: monthly_civic_tax
mustering_grounds_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	levy = normal_building_levy_tier_5
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_size = 0.25
		levy_reinforcement_rate = 0.25
		supply_limit = normal_building_supply_limit_tier_5
	}
	county_culture_modifier = {
		parameter = strength_in_numbers_levy_buildings_bonuses
		levy_size = 0.125
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				levy_size = 0.05
			}
			province_modifier = {
				monthly_civic_tax = poor_building_tax_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Militia Camps
# Gives: county: levy_reinforcement_rate, stationed_skirmishers_pursuit_mult, stationed_skirmishers_damage_mult; market: trade_category_base_metals_sell_price_mult
# Needs: trade_category_base_metals -> county: stationed_skirmishers_toughness_mult
militia_camps_1 = {
	type_icon = old_buildings/military_camps.dds
	next_building = militia_camps_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	levy = poor_building_levy_tier_1
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.05
		stationed_skirmishers_pursuit_mult = normal_maa_pursuit_tier_1
		stationed_skirmishers_damage_mult = normal_maa_damage_tier_1
	}
	county_culture_modifier = {
		parameter = adaptive_skirmishing_militia_camps_bonuses
		stationed_skirmishers_damage_mult = low_maa_damage_tier_1
		stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1
	}
	province_terrain_modifier = {
		parameter = upland_skirmishing_militia_camps_bonuses
		terrain = hills
		defender_holding_advantage = poor_building_advantage_tier_1
		levy_size = 0.025
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_skirmishers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Militia Camps
# Gives: county: levy_reinforcement_rate, stationed_skirmishers_pursuit_mult, stationed_skirmishers_damage_mult; market: trade_category_base_metals_sell_price_mult
# Needs: trade_category_base_metals x2 -> county: stationed_skirmishers_toughness_mult
militia_camps_2 = {
	next_building = militia_camps_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	levy = poor_building_levy_tier_2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.1
		stationed_skirmishers_pursuit_mult = normal_maa_pursuit_tier_2
		stationed_skirmishers_damage_mult = normal_maa_damage_tier_2
	}
	county_culture_modifier = {
		parameter = adaptive_skirmishing_militia_camps_bonuses
		stationed_skirmishers_damage_mult = low_maa_damage_tier_2
		stationed_skirmishers_toughness_mult = low_maa_toughness_tier_2
	}
	province_terrain_modifier = {
		parameter = upland_skirmishing_militia_camps_bonuses
		terrain = hills
		defender_holding_advantage = poor_building_advantage_tier_2
		levy_size = 0.05
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_skirmishers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Militia Camps
# Gives: county: levy_reinforcement_rate, stationed_skirmishers_pursuit_mult, stationed_skirmishers_damage_mult, stationed_skirmishers_screen_mult; market: trade_category_base_metals_sell_price_mult
# Needs: trade_category_base_metals x3 -> county: stationed_skirmishers_toughness_mult
militia_camps_3 = {
	next_building = militia_camps_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	levy = poor_building_levy_tier_3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.15
		stationed_skirmishers_pursuit_mult = normal_maa_pursuit_tier_3
		stationed_skirmishers_damage_mult = normal_maa_damage_tier_3
		stationed_skirmishers_screen_mult = normal_maa_screen_tier_3
	}
	county_culture_modifier = {
		parameter = adaptive_skirmishing_militia_camps_bonuses
		stationed_skirmishers_damage_mult = low_maa_damage_tier_3
		stationed_skirmishers_toughness_mult = low_maa_toughness_tier_3
	}
	province_terrain_modifier = {
		parameter = upland_skirmishing_militia_camps_bonuses
		terrain = hills
		defender_holding_advantage = poor_building_advantage_tier_3
		levy_size = 0.075
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_skirmishers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Militia Camps
# Gives: county: levy_reinforcement_rate, stationed_skirmishers_pursuit_mult, stationed_skirmishers_damage_mult, stationed_skirmishers_screen_mult; market: trade_category_base_metals_sell_price_mult
# Needs: trade_category_base_metals x4 -> county: stationed_skirmishers_toughness_mult
militia_camps_4 = {
	next_building = militia_camps_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	levy = poor_building_levy_tier_4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.2
		stationed_skirmishers_pursuit_mult = normal_maa_pursuit_tier_4
		stationed_skirmishers_damage_mult = normal_maa_damage_tier_4
		stationed_skirmishers_screen_mult = normal_maa_screen_tier_4
	}
	county_culture_modifier = {
		parameter = adaptive_skirmishing_militia_camps_bonuses
		stationed_skirmishers_damage_mult = low_maa_damage_tier_4
		stationed_skirmishers_toughness_mult = low_maa_toughness_tier_4
	}
	province_terrain_modifier = {
		parameter = upland_skirmishing_militia_camps_bonuses
		terrain = hills
		defender_holding_advantage = poor_building_advantage_tier_4
		levy_size = 0.1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_skirmishers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Militia Camps
# Gives: county: levy_reinforcement_rate, stationed_skirmishers_pursuit_mult, stationed_skirmishers_damage_mult, stationed_skirmishers_screen_mult; market: trade_category_base_metals_sell_price_mult
# Needs: trade_category_base_metals x5 -> county: stationed_skirmishers_toughness_mult
militia_camps_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	levy = poor_building_levy_tier_5
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.25
		stationed_skirmishers_pursuit_mult = normal_maa_pursuit_tier_5
		stationed_skirmishers_damage_mult = normal_maa_damage_tier_5
		stationed_skirmishers_screen_mult = normal_maa_screen_tier_5
	}
	county_culture_modifier = {
		parameter = adaptive_skirmishing_militia_camps_bonuses
		stationed_skirmishers_damage_mult = low_maa_damage_tier_5
		stationed_skirmishers_toughness_mult = low_maa_toughness_tier_5
	}
	province_terrain_modifier = {
		parameter = upland_skirmishing_militia_camps_bonuses
		terrain = hills
		defender_holding_advantage = poor_building_advantage_tier_5
		levy_size = 0.125
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_skirmishers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_skirmisher_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Archery Ranges
# Gives: county: stationed_archers_damage_mult, stationed_archers_pursuit_mult; market: trade_category_base_metals_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_category_base_metals -> county: stationed_archers_damage_mult; trade_good_leather -> county: stationed_archers_toughness_mult
archery_ranges_1 = {
	type_icon = regular_buildings/archery_ranges.dds
	next_building = archery_ranges_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	levy = poor_building_levy_tier_1
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_archers_damage_mult = normal_maa_damage_tier_1
		stationed_archers_pursuit_mult = normal_maa_pursuit_tier_1
	}
	county_culture_modifier = {
		parameter = formation_fighting_archery_ranges_bonuses
		stationed_archers_damage_mult = low_maa_damage_tier_1
		stationed_archers_toughness_mult = low_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_archers_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Archery Ranges
# Gives: county: stationed_archers_damage_mult, stationed_archers_pursuit_mult; market: trade_category_base_metals_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_category_base_metals x2 -> county: stationed_archers_damage_mult; trade_good_leather x2 -> county: stationed_archers_toughness_mult
archery_ranges_2 = {
	next_building = archery_ranges_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	levy = poor_building_levy_tier_2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_archers_damage_mult = normal_maa_damage_tier_2
		stationed_archers_pursuit_mult = normal_maa_pursuit_tier_2
	}
	county_culture_modifier = {
		parameter = formation_fighting_archery_ranges_bonuses
		stationed_archers_damage_mult = low_maa_damage_tier_2
		stationed_archers_toughness_mult = low_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_archers_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Archery Ranges
# Gives: county: stationed_archers_damage_mult, stationed_archers_pursuit_mult, stationed_archers_screen_mult; market: trade_category_base_metals_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_category_base_metals x3 -> county: stationed_archers_damage_mult; trade_good_leather x3 -> county: stationed_archers_toughness_mult
archery_ranges_3 = {
	next_building = archery_ranges_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	levy = poor_building_levy_tier_3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		OR = {
			culture = { has_innovation = innovation_advanced_bowmaking }
			culture = { has_cultural_era_or_later = culture_era_late_medieval }
		}
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_archers_damage_mult = normal_maa_damage_tier_3
		stationed_archers_pursuit_mult = normal_maa_pursuit_tier_3
		stationed_archers_screen_mult = normal_maa_screen_tier_3
	}
	county_culture_modifier = {
		parameter = formation_fighting_archery_ranges_bonuses
		stationed_archers_damage_mult = low_maa_damage_tier_3
		stationed_archers_toughness_mult = low_maa_toughness_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_archers_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Archery Ranges
# Gives: county: stationed_archers_damage_mult, stationed_archers_pursuit_mult, stationed_archers_screen_mult; market: trade_category_base_metals_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_category_base_metals x4 -> county: stationed_archers_damage_mult; trade_good_leather x4 -> county: stationed_archers_toughness_mult
archery_ranges_4 = {
	next_building = archery_ranges_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	levy = poor_building_levy_tier_4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		OR = {
			culture = { has_innovation = innovation_advanced_bowmaking }
			culture = { has_cultural_era_or_later = culture_era_late_medieval }
		}
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_archers_damage_mult = normal_maa_damage_tier_4
		stationed_archers_pursuit_mult = normal_maa_pursuit_tier_4
		stationed_archers_screen_mult = normal_maa_screen_tier_4
	}
	county_culture_modifier = {
		parameter = formation_fighting_archery_ranges_bonuses
		stationed_archers_damage_mult = low_maa_damage_tier_4
		stationed_archers_toughness_mult = low_maa_toughness_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_archers_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Archery Ranges
# Gives: county: stationed_archers_damage_mult, stationed_archers_pursuit_mult, stationed_archers_screen_mult; market: trade_category_base_metals_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_category_base_metals x5 -> county: stationed_archers_damage_mult; trade_good_leather x5 -> county: stationed_archers_toughness_mult
archery_ranges_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	levy = poor_building_levy_tier_5
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		OR = {
			culture = { has_innovation = innovation_advanced_bowmaking }
			culture = { has_cultural_era_or_later = culture_era_late_medieval }
		}
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_archers_damage_mult = normal_maa_damage_tier_5
		stationed_archers_pursuit_mult = normal_maa_pursuit_tier_5
		stationed_archers_screen_mult = normal_maa_screen_tier_5
	}
	county_culture_modifier = {
		parameter = formation_fighting_archery_ranges_bonuses
		stationed_archers_damage_mult = low_maa_damage_tier_5
		stationed_archers_toughness_mult = low_maa_toughness_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_archers_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archers_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Light Cavalry Stables
# Gives: character: movement_speed, character_travel_speed_mult; county: stationed_light_cavalry_damage_mult, stationed_light_cavalry_toughness_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses -> county: stationed_light_cavalry_pursuit_mult; trade_good_leather -> county: stationed_light_cavalry_toughness_mult
cavalry_stables_1 = {
	type_icon = "regular_buildings/cavalry_stables.dds"
	next_building = cavalry_stables_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		movement_speed = good_movement_speed_tier_1
		character_travel_speed_mult = good_movement_speed_tier_1
	}
	county_modifier = {
		stationed_light_cavalry_damage_mult = normal_maa_damage_tier_1
		stationed_light_cavalry_toughness_mult = normal_maa_toughness_tier_1
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_light_cavalry_damage_mult = low_maa_damage_tier_1
		stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_light_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Light Cavalry Stables
# Gives: character: movement_speed, character_travel_speed_mult; county: stationed_light_cavalry_damage_mult, stationed_light_cavalry_toughness_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x2 -> county: stationed_light_cavalry_pursuit_mult; trade_good_leather x2 -> county: stationed_light_cavalry_toughness_mult
cavalry_stables_2 = {
	next_building = cavalry_stables_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		movement_speed = good_movement_speed_tier_2
		character_travel_speed_mult = good_movement_speed_tier_2
	}
	county_modifier = {
		stationed_light_cavalry_damage_mult = normal_maa_damage_tier_2
		stationed_light_cavalry_toughness_mult = normal_maa_toughness_tier_2
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_light_cavalry_damage_mult = low_maa_damage_tier_2
		stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_light_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Light Cavalry Stables
# Gives: character: movement_speed, character_travel_speed_mult, knight_effectiveness_mult; county: stationed_light_cavalry_damage_mult, stationed_light_cavalry_toughness_mult, stationed_light_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x3 -> county: stationed_light_cavalry_pursuit_mult; trade_good_leather x3 -> county: stationed_light_cavalry_toughness_mult
cavalry_stables_3 = {
	next_building = cavalry_stables_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		movement_speed = good_movement_speed_tier_3
		character_travel_speed_mult = good_movement_speed_tier_3
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_1
	}
	county_modifier = {
		stationed_light_cavalry_damage_mult = normal_maa_damage_tier_3
		stationed_light_cavalry_toughness_mult = normal_maa_toughness_tier_3
		stationed_light_cavalry_screen_mult = normal_maa_screen_tier_3
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_light_cavalry_damage_mult = low_maa_damage_tier_3
		stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_light_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Light Cavalry Stables
# Gives: character: movement_speed, character_travel_speed_mult, knight_effectiveness_mult; county: stationed_light_cavalry_damage_mult, stationed_light_cavalry_toughness_mult, stationed_light_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x4 -> county: stationed_light_cavalry_pursuit_mult; trade_good_leather x4 -> county: stationed_light_cavalry_toughness_mult
cavalry_stables_4 = {
	next_building = cavalry_stables_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		movement_speed = good_movement_speed_tier_4
		character_travel_speed_mult = good_movement_speed_tier_4
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_2
	}
	county_modifier = {
		stationed_light_cavalry_damage_mult = normal_maa_damage_tier_4
		stationed_light_cavalry_toughness_mult = normal_maa_toughness_tier_4
		stationed_light_cavalry_screen_mult = normal_maa_screen_tier_4
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_light_cavalry_damage_mult = low_maa_damage_tier_4
		stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_light_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Light Cavalry Stables
# Gives: character: movement_speed, character_travel_speed_mult, knight_effectiveness_mult; county: stationed_light_cavalry_damage_mult, stationed_light_cavalry_toughness_mult, stationed_light_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x5 -> county: stationed_light_cavalry_pursuit_mult; trade_good_leather x5 -> county: stationed_light_cavalry_toughness_mult
cavalry_stables_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		movement_speed = good_movement_speed_tier_5
		character_travel_speed_mult = good_movement_speed_tier_5
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_3
	}
	county_modifier = {
		stationed_light_cavalry_damage_mult = normal_maa_damage_tier_5
		stationed_light_cavalry_toughness_mult = normal_maa_toughness_tier_5
		stationed_light_cavalry_screen_mult = normal_maa_screen_tier_5
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_light_cavalry_damage_mult = low_maa_damage_tier_5
		stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_light_cavalry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_light_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Horse Archer Paddocks
# Gives: character: movement_speed, movement_speed_land_raiding; county: stationed_archer_cavalry_damage_mult, stationed_archer_cavalry_toughness_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses -> county: stationed_archer_cavalry_damage_mult; trade_good_leather -> county: stationed_archer_cavalry_pursuit_mult
horse_archer_paddocks_1 = {
	type_icon = old_buildings/stables.dds
	next_building = horse_archer_paddocks_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_potential = {
		trigger_if = {
			limit = { has_building_or_higher = tribe_01 }
			culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
		}
		trigger_else = {
			OR = {
				terrain = steppe
				culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		movement_speed = high_movement_speed_tier_1
		movement_speed_land_raiding = high_movement_speed_tier_1
	}
	county_modifier = {
		stationed_archer_cavalry_damage_mult = normal_maa_damage_tier_1
		stationed_archer_cavalry_toughness_mult = normal_maa_toughness_tier_1
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1
		stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlock_horse_archer_paddocks_building }
		ai_regular_new_building_modifier = yes
	}
}

# Horse Archer Paddocks
# Gives: character: movement_speed, movement_speed_land_raiding; county: stationed_archer_cavalry_damage_mult, stationed_archer_cavalry_toughness_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x2 -> county: stationed_archer_cavalry_damage_mult; trade_good_leather x2 -> county: stationed_archer_cavalry_pursuit_mult
horse_archer_paddocks_2 = {
	next_building = horse_archer_paddocks_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
		trigger_if = {
			limit = { has_building_or_higher = tribe_01 }
			culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
		}
		trigger_else = {
			OR = {
				terrain = steppe
				culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		movement_speed = high_movement_speed_tier_2
		movement_speed_land_raiding = high_movement_speed_tier_2
	}
	county_modifier = {
		stationed_archer_cavalry_damage_mult = normal_maa_damage_tier_2
		stationed_archer_cavalry_toughness_mult = normal_maa_toughness_tier_2
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_archer_cavalry_damage_mult = low_maa_damage_tier_2
		stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlock_horse_archer_paddocks_building }
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Horse Archer Paddocks
# Gives: character: movement_speed, movement_speed_land_raiding; county: stationed_archer_cavalry_damage_mult, stationed_archer_cavalry_toughness_mult, stationed_archer_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x3 -> county: stationed_archer_cavalry_damage_mult; trade_good_leather x3 -> county: stationed_archer_cavalry_pursuit_mult
horse_archer_paddocks_3 = {
	next_building = horse_archer_paddocks_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
		trigger_if = {
			limit = { has_building_or_higher = tribe_01 }
			culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
		}
		trigger_else = {
			OR = {
				terrain = steppe
				culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		movement_speed = high_movement_speed_tier_3
		movement_speed_land_raiding = high_movement_speed_tier_3
	}
	county_modifier = {
		stationed_archer_cavalry_damage_mult = normal_maa_damage_tier_3
		stationed_archer_cavalry_toughness_mult = normal_maa_toughness_tier_3
		stationed_archer_cavalry_screen_mult = normal_maa_screen_tier_3
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_archer_cavalry_damage_mult = low_maa_damage_tier_3
		stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlock_horse_archer_paddocks_building }
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Horse Archer Paddocks
# Gives: character: movement_speed, movement_speed_land_raiding; county: stationed_archer_cavalry_damage_mult, stationed_archer_cavalry_toughness_mult, stationed_archer_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x4 -> county: stationed_archer_cavalry_damage_mult; trade_good_leather x4 -> county: stationed_archer_cavalry_pursuit_mult
horse_archer_paddocks_4 = {
	next_building = horse_archer_paddocks_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		trigger_if = {
			limit = { has_building_or_higher = tribe_01 }
			culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
		}
		trigger_else = {
			OR = {
				terrain = steppe
				culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		movement_speed = high_movement_speed_tier_4
		movement_speed_land_raiding = high_movement_speed_tier_4
	}
	county_modifier = {
		stationed_archer_cavalry_damage_mult = normal_maa_damage_tier_4
		stationed_archer_cavalry_toughness_mult = normal_maa_toughness_tier_4
		stationed_archer_cavalry_screen_mult = normal_maa_screen_tier_4
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_archer_cavalry_damage_mult = low_maa_damage_tier_4
		stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlock_horse_archer_paddocks_building }
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Horse Archer Paddocks
# Gives: character: movement_speed, movement_speed_land_raiding; county: stationed_archer_cavalry_damage_mult, stationed_archer_cavalry_toughness_mult, stationed_archer_cavalry_screen_mult; market: trade_good_horses_sell_price_mult, trade_good_leather_sell_price_mult
# Needs: trade_good_horses x5 -> county: stationed_archer_cavalry_damage_mult; trade_good_leather x5 -> county: stationed_archer_cavalry_pursuit_mult
horse_archer_paddocks_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		trigger_if = {
			limit = { has_building_or_higher = tribe_01 }
			culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
		}
		trigger_else = {
			OR = {
				terrain = steppe
				culture = { has_cultural_parameter = unlock_horse_archer_paddocks_building }
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		movement_speed = high_movement_speed_tier_5
		movement_speed_land_raiding = high_movement_speed_tier_5
	}
	county_modifier = {
		stationed_archer_cavalry_damage_mult = normal_maa_damage_tier_5
		stationed_archer_cavalry_toughness_mult = normal_maa_toughness_tier_5
		stationed_archer_cavalry_screen_mult = normal_maa_screen_tier_5
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_archer_cavalry_damage_mult = low_maa_damage_tier_5
		stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_archer_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_archer_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlock_horse_archer_paddocks_building }
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Armorer
# Gives: county: stationed_heavy_infantry_damage_mult, stationed_heavy_infantry_toughness_mult; market: trade_good_iron_sell_price_mult, trade_category_base_metals_sell_price_mult
# Needs: trade_good_iron -> county: stationed_heavy_infantry_damage_mult; trade_category_base_metals -> county: stationed_heavy_infantry_toughness_mult
armorer_1 = {
	type_icon = regular_buildings/armor_smith.dds
	next_building = armorer_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_infantry_damage_mult = normal_maa_damage_tier_1
		stationed_heavy_infantry_toughness_mult = normal_maa_toughness_tier_1
	}
	county_culture_modifier = {
		parameter = metal_craftsmanship_armorer_bonuses
		stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1
		stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_infantry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Armorer
# Gives: county: stationed_heavy_infantry_damage_mult, stationed_heavy_infantry_toughness_mult; market: trade_good_iron_sell_price_mult, trade_category_base_metals_sell_price_mult
# Needs: trade_good_iron x2 -> county: stationed_heavy_infantry_damage_mult; trade_category_base_metals x2 -> county: stationed_heavy_infantry_toughness_mult
armorer_2 = {
	next_building = armorer_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_infantry_damage_mult = normal_maa_damage_tier_2
		stationed_heavy_infantry_toughness_mult = normal_maa_toughness_tier_2
	}
	county_culture_modifier = {
		parameter = metal_craftsmanship_armorer_bonuses
		stationed_heavy_infantry_damage_mult = low_maa_damage_tier_2
		stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_infantry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Armorer
# Gives: county: stationed_heavy_infantry_damage_mult, stationed_heavy_infantry_toughness_mult, stationed_heavy_infantry_pursuit_mult; market: trade_good_iron_sell_price_mult, trade_category_base_metals_sell_price_mult
# Needs: trade_good_iron x3 -> county: stationed_heavy_infantry_damage_mult; trade_category_base_metals x3 -> county: stationed_heavy_infantry_toughness_mult
armorer_3 = {
	next_building = armorer_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_infantry_damage_mult = normal_maa_damage_tier_3
		stationed_heavy_infantry_toughness_mult = normal_maa_toughness_tier_3
		stationed_heavy_infantry_pursuit_mult = normal_maa_pursuit_tier_3
	}
	county_culture_modifier = {
		parameter = metal_craftsmanship_armorer_bonuses
		stationed_heavy_infantry_damage_mult = low_maa_damage_tier_3
		stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_infantry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Armorer
# Gives: county: stationed_heavy_infantry_damage_mult, stationed_heavy_infantry_toughness_mult, stationed_heavy_infantry_pursuit_mult; market: trade_good_iron_sell_price_mult, trade_category_base_metals_sell_price_mult
# Needs: trade_good_iron x4 -> county: stationed_heavy_infantry_damage_mult; trade_category_base_metals x4 -> county: stationed_heavy_infantry_toughness_mult
armorer_4 = {
	next_building = armorer_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_infantry_damage_mult = normal_maa_damage_tier_4
		stationed_heavy_infantry_toughness_mult = normal_maa_toughness_tier_4
		stationed_heavy_infantry_pursuit_mult = normal_maa_pursuit_tier_4
	}
	county_culture_modifier = {
		parameter = metal_craftsmanship_armorer_bonuses
		stationed_heavy_infantry_damage_mult = low_maa_damage_tier_4
		stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_infantry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Armorer
# Gives: county: stationed_heavy_infantry_damage_mult, stationed_heavy_infantry_toughness_mult, stationed_heavy_infantry_pursuit_mult; market: trade_good_iron_sell_price_mult, trade_category_base_metals_sell_price_mult
# Needs: trade_good_iron x5 -> county: stationed_heavy_infantry_damage_mult; trade_category_base_metals x5 -> county: stationed_heavy_infantry_toughness_mult
armorer_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_infantry_damage_mult = normal_maa_damage_tier_5
		stationed_heavy_infantry_toughness_mult = normal_maa_toughness_tier_5
		stationed_heavy_infantry_pursuit_mult = normal_maa_pursuit_tier_5
	}
	county_culture_modifier = {
		parameter = metal_craftsmanship_armorer_bonuses
		stationed_heavy_infantry_damage_mult = low_maa_damage_tier_5
		stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_category_base_metals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_heavy_infantry_toughness_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_infantry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Heavy Cavalry Compound
# Gives: county: stationed_heavy_cavalry_damage_mult, stationed_heavy_cavalry_toughness_mult; market: trade_good_iron_sell_price_mult, trade_good_horses_sell_price_mult
# Needs: trade_good_iron -> county: stationed_heavy_cavalry_toughness_mult; trade_good_horses -> county: stationed_heavy_cavalry_pursuit_mult
heavy_cavalry_compound_1 = {
	type_icon = regular_buildings/heavy_cavalry_compound.dds
	next_building = heavy_cavalry_compound_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_cavalry_damage_mult = normal_maa_damage_tier_1
		stationed_heavy_cavalry_toughness_mult = normal_maa_toughness_tier_1
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1
		stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Heavy Cavalry Compound
# Gives: county: stationed_heavy_cavalry_damage_mult, stationed_heavy_cavalry_toughness_mult; market: trade_good_iron_sell_price_mult, trade_good_horses_sell_price_mult
# Needs: trade_good_iron x2 -> county: stationed_heavy_cavalry_toughness_mult; trade_good_horses x2 -> county: stationed_heavy_cavalry_pursuit_mult
heavy_cavalry_compound_2 = {
	next_building = heavy_cavalry_compound_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_cavalry_damage_mult = normal_maa_damage_tier_2
		stationed_heavy_cavalry_toughness_mult = normal_maa_toughness_tier_2
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_2
		stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Heavy Cavalry Compound
# Gives: county: stationed_heavy_cavalry_damage_mult, stationed_heavy_cavalry_toughness_mult, stationed_heavy_cavalry_screen_mult; market: trade_good_iron_sell_price_mult, trade_good_horses_sell_price_mult
# Needs: trade_good_iron x3 -> county: stationed_heavy_cavalry_toughness_mult; trade_good_horses x3 -> county: stationed_heavy_cavalry_pursuit_mult
heavy_cavalry_compound_3 = {
	next_building = heavy_cavalry_compound_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_cavalry_damage_mult = normal_maa_damage_tier_3
		stationed_heavy_cavalry_toughness_mult = normal_maa_toughness_tier_3
		stationed_heavy_cavalry_screen_mult = normal_maa_screen_tier_3
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_3
		stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Heavy Cavalry Compound
# Gives: county: stationed_heavy_cavalry_damage_mult, stationed_heavy_cavalry_toughness_mult, stationed_heavy_cavalry_screen_mult; market: trade_good_iron_sell_price_mult, trade_good_horses_sell_price_mult
# Needs: trade_good_iron x4 -> county: stationed_heavy_cavalry_toughness_mult; trade_good_horses x4 -> county: stationed_heavy_cavalry_pursuit_mult
heavy_cavalry_compound_4 = {
	next_building = heavy_cavalry_compound_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_cavalry_damage_mult = normal_maa_damage_tier_4
		stationed_heavy_cavalry_toughness_mult = normal_maa_toughness_tier_4
		stationed_heavy_cavalry_screen_mult = normal_maa_screen_tier_4
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_4
		stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Heavy Cavalry Compound
# Gives: county: stationed_heavy_cavalry_damage_mult, stationed_heavy_cavalry_toughness_mult, stationed_heavy_cavalry_screen_mult; market: trade_good_iron_sell_price_mult, trade_good_horses_sell_price_mult
# Needs: trade_good_iron x5 -> county: stationed_heavy_cavalry_toughness_mult; trade_good_horses x5 -> county: stationed_heavy_cavalry_pursuit_mult
heavy_cavalry_compound_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_heavy_cavalry_damage_mult = normal_maa_damage_tier_5
		stationed_heavy_cavalry_toughness_mult = normal_maa_toughness_tier_5
		stationed_heavy_cavalry_screen_mult = normal_maa_screen_tier_5
	}
	county_culture_modifier = {
		parameter = horse_breeder_cavalry_buildings_bonuses
		stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_5
		stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_iron_sell_price_mult = price_basic_building_1
		trade_good_horses_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_horses
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_heavy_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_heavy_cavalry_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Military Infirmaries
# Gives: county: levy_reinforcement_rate; county: stationed_maa_reinforcement_rate; market: trade_good_medicaments_sell_price_mult
# Needs: trade_good_medicaments -> county: stationed_maa_reinforcement_rate; trade_good_jewelry with reverence_for_veterans_military_infirmaries_bonuses -> county: popular_opinion_add
military_infirmaries_1 = {
	type_icon = regular_buildings/hospice.dds
	next_building = military_infirmaries_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.05
		stationed_maa_reinforcement_rate = 0.05
	}
	county_culture_modifier = {
		parameter = reverence_for_veterans_military_infirmaries_bonuses
		popular_opinion_add = building_tiny_popular_opinion_gain
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_maa_reinforcement_rate = 0.05
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = luxury_resource_need
		culture_parameter = reverence_for_veterans_military_infirmaries_bonuses

		modifiers = {
			county_modifier = {
				popular_opinion_add = building_tiny_popular_opinion_gain
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Military Infirmaries
# Gives: county: levy_reinforcement_rate; county: stationed_maa_reinforcement_rate; market: trade_good_medicaments_sell_price_mult
# Needs: trade_good_medicaments x2 -> county: stationed_maa_reinforcement_rate; trade_good_jewelry with reverence_for_veterans_military_infirmaries_bonuses -> county: popular_opinion_add
military_infirmaries_2 = {
	next_building = military_infirmaries_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.1
		stationed_maa_reinforcement_rate = 0.1
	}
	county_culture_modifier = {
		parameter = reverence_for_veterans_military_infirmaries_bonuses
		popular_opinion_add = building_tiny_popular_opinion_gain
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_maa_reinforcement_rate = 0.05
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = luxury_resource_need
		culture_parameter = reverence_for_veterans_military_infirmaries_bonuses

		modifiers = {
			county_modifier = {
				popular_opinion_add = building_tiny_popular_opinion_gain
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Military Infirmaries
# Gives: county: levy_reinforcement_rate; county: stationed_maa_reinforcement_rate; market: trade_good_medicaments_sell_price_mult
# Needs: trade_good_medicaments x3 -> county: stationed_maa_reinforcement_rate; trade_good_jewelry with reverence_for_veterans_military_infirmaries_bonuses -> county: popular_opinion_add
military_infirmaries_3 = {
	next_building = military_infirmaries_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.15
		stationed_maa_reinforcement_rate = 0.15
	}
	county_culture_modifier = {
		parameter = reverence_for_veterans_military_infirmaries_bonuses
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_maa_reinforcement_rate = 0.05
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = luxury_resource_need
		culture_parameter = reverence_for_veterans_military_infirmaries_bonuses

		modifiers = {
			county_modifier = {
				popular_opinion_add = building_miniscule_popular_opinion_gain
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Military Infirmaries
# Gives: county: levy_reinforcement_rate; county: stationed_maa_reinforcement_rate; market: trade_good_medicaments_sell_price_mult
# Needs: trade_good_medicaments x4 -> county: stationed_maa_reinforcement_rate; trade_good_jewelry with reverence_for_veterans_military_infirmaries_bonuses -> county: popular_opinion_add
military_infirmaries_4 = {
	next_building = military_infirmaries_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.2
		stationed_maa_reinforcement_rate = 0.2
	}
	county_culture_modifier = {
		parameter = reverence_for_veterans_military_infirmaries_bonuses
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_maa_reinforcement_rate = 0.05
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = luxury_resource_need
		culture_parameter = reverence_for_veterans_military_infirmaries_bonuses

		modifiers = {
			county_modifier = {
				popular_opinion_add = building_miniscule_popular_opinion_gain
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Military Infirmaries
# Gives: county: levy_reinforcement_rate; county: stationed_maa_reinforcement_rate; market: trade_good_medicaments_sell_price_mult
# Needs: trade_good_medicaments x5 -> county: stationed_maa_reinforcement_rate; trade_good_jewelry with reverence_for_veterans_military_infirmaries_bonuses -> county: popular_opinion_add
military_infirmaries_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		levy_reinforcement_rate = 0.25
		stationed_maa_reinforcement_rate = 0.25
	}
	county_culture_modifier = {
		parameter = reverence_for_veterans_military_infirmaries_bonuses
		popular_opinion_add = building_minor_popular_opinion_gain
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_maa_reinforcement_rate = 0.05
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = luxury_resource_need
		culture_parameter = reverence_for_veterans_military_infirmaries_bonuses

		modifiers = {
			county_modifier = {
				popular_opinion_add = building_minor_popular_opinion_gain
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Regimental Fort
# Gives: county: stationed_maa_control_value_add; market: trade_category_precious_metals_sell_price_mult, trade_good_stone_sell_price_mult
# Needs: trade_category_precious_metals -> province: monthly_civic_tax; trade_good_stone -> county: stationed_maa_control_value_add
regimental_fort_1 = {
	type_icon = "district_buildings/barracks_district.dds"
	next_building = regimental_fort_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_control_value_add = 1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = price_basic_building_1
		trade_good_stone_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = precious_metals_resource_need

		modifiers = {
			province_modifier = {
				monthly_civic_tax = normal_building_tax_tier_1
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Regimental Fort
# Gives: county: stationed_maa_control_value_add; market: trade_category_precious_metals_sell_price_mult, trade_good_stone_sell_price_mult
# Needs: trade_category_precious_metals x2 -> province: monthly_civic_tax; trade_good_stone x2 -> county: stationed_maa_control_value_add
regimental_fort_2 = {
	next_building = regimental_fort_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_control_value_add = 2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = price_basic_building_1
		trade_good_stone_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = precious_metals_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				monthly_civic_tax = normal_building_tax_tier_1
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Regimental Fort
# Gives: county: stationed_maa_control_value_add; market: trade_category_precious_metals_sell_price_mult, trade_good_stone_sell_price_mult
# Needs: trade_category_precious_metals x3 -> province: monthly_civic_tax; trade_good_stone x3 -> county: stationed_maa_control_value_add
regimental_fort_3 = {
	next_building = regimental_fort_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_control_value_add = 3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = price_basic_building_1
		trade_good_stone_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = precious_metals_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			province_modifier = {
				monthly_civic_tax = normal_building_tax_tier_1
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Regimental Fort
# Gives: county: stationed_maa_control_value_add; market: trade_category_precious_metals_sell_price_mult, trade_good_stone_sell_price_mult
# Needs: trade_category_precious_metals x4 -> province: monthly_civic_tax; trade_good_stone x4 -> county: stationed_maa_control_value_add
regimental_fort_4 = {
	next_building = regimental_fort_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_control_value_add = 4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = price_basic_building_1
		trade_good_stone_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = precious_metals_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			province_modifier = {
				monthly_civic_tax = normal_building_tax_tier_1
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Regimental Fort
# Gives: county: stationed_maa_control_value_add; market: trade_category_precious_metals_sell_price_mult, trade_good_stone_sell_price_mult
# Needs: trade_category_precious_metals x5 -> province: monthly_civic_tax; trade_good_stone x5 -> county: stationed_maa_control_value_add
regimental_fort_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_control_value_add = 5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = price_basic_building_1
		trade_good_stone_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = precious_metals_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_civic_tax = normal_building_tax_tier_1
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Gunsmiths
# Gives: county: stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; market: trade_good_copper_sell_price_mult
# Needs: trade_good_copper -> county: stationed_gunpowder_pursuit_mult
gunsmiths_1 = {
	type_icon = old_buildings/powder_magazine.dds
	next_building = gunsmiths_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_damage_mult = normal_maa_damage_tier_1
		stationed_gunpowder_toughness_mult = normal_maa_toughness_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_copper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_copper
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_gunpowder_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Gunsmiths
# Gives: county: stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; market: trade_good_copper_sell_price_mult
# Needs: trade_good_copper x2 -> county: stationed_gunpowder_pursuit_mult
gunsmiths_2 = {
	next_building = gunsmiths_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_damage_mult = normal_maa_damage_tier_2
		stationed_gunpowder_toughness_mult = normal_maa_toughness_tier_2
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_copper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_copper
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_gunpowder_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Gunsmiths
# Gives: county: stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult, stationed_gunpowder_screen_mult; market: trade_good_copper_sell_price_mult
# Needs: trade_good_copper x3 -> county: stationed_gunpowder_pursuit_mult
gunsmiths_3 = {
	next_building = gunsmiths_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_damage_mult = normal_maa_damage_tier_3
		stationed_gunpowder_toughness_mult = normal_maa_toughness_tier_3
		stationed_gunpowder_screen_mult = normal_maa_screen_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_copper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_copper
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_gunpowder_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Gunsmiths
# Gives: county: stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult, stationed_gunpowder_screen_mult; market: trade_good_copper_sell_price_mult
# Needs: trade_good_copper x4 -> county: stationed_gunpowder_pursuit_mult
gunsmiths_4 = {
	next_building = gunsmiths_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_damage_mult = normal_maa_damage_tier_4
		stationed_gunpowder_toughness_mult = normal_maa_toughness_tier_4
		stationed_gunpowder_screen_mult = normal_maa_screen_tier_4
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_copper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_copper
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_gunpowder_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Gunsmiths
# Gives: county: stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult, stationed_gunpowder_screen_mult; market: trade_good_copper_sell_price_mult
# Needs: trade_good_copper x5 -> county: stationed_gunpowder_pursuit_mult
gunsmiths_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_damage_mult = normal_maa_damage_tier_5
		stationed_gunpowder_toughness_mult = normal_maa_toughness_tier_5
		stationed_gunpowder_screen_mult = normal_maa_screen_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_good_copper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_copper
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_gunpowder_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Elephantry Barracks
# Gives: county: stationed_elephant_cavalry_damage_mult, stationed_elephant_cavalry_toughness_mult
# Needs: trade_good_ivory -> county: stationed_elephant_cavalry_toughness_mult; trade_good_leather -> county: stationed_elephant_cavalry_pursuit_mult
elephantry_barracks_1 = {
	type_icon = "old_buildings/elephant_pens.dds"
	next_building = elephantry_barracks_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_elephantry }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_elephant_cavalry_damage_mult = normal_maa_damage_tier_1
		stationed_elephant_cavalry_toughness_mult = normal_maa_toughness_tier_1
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = lords_of_the_elephant_elephantry_bonuses
		popular_opinion_add = regular_building_popular_opinion_tier_1
		monthly_religious_tax = normal_building_tax_tier_1
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = precious_stones_resource_need

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Elephantry Barracks
elephantry_barracks_2 = {
	next_building = elephantry_barracks_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_elephantry }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_elephant_cavalry_damage_mult = normal_maa_damage_tier_2
		stationed_elephant_cavalry_toughness_mult = normal_maa_toughness_tier_2
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = lords_of_the_elephant_elephantry_bonuses
		popular_opinion_add = regular_building_popular_opinion_tier_2
		monthly_religious_tax = normal_building_tax_tier_2
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = precious_stones_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Elephantry Barracks
elephantry_barracks_3 = {
	next_building = elephantry_barracks_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_elephantry }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_elephant_cavalry_damage_mult = normal_maa_damage_tier_3
		stationed_elephant_cavalry_toughness_mult = normal_maa_toughness_tier_3
		stationed_elephant_cavalry_screen_mult = normal_maa_screen_tier_3
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = lords_of_the_elephant_elephantry_bonuses
		popular_opinion_add = regular_building_popular_opinion_tier_3
		monthly_religious_tax = normal_building_tax_tier_3
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = precious_stones_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Elephantry Barracks
elephantry_barracks_4 = {
	next_building = elephantry_barracks_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_elephantry }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_elephant_cavalry_damage_mult = normal_maa_damage_tier_4
		stationed_elephant_cavalry_toughness_mult = normal_maa_toughness_tier_4
		stationed_elephant_cavalry_screen_mult = normal_maa_screen_tier_4
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = lords_of_the_elephant_elephantry_bonuses
		popular_opinion_add = regular_building_popular_opinion_tier_4
		monthly_religious_tax = normal_building_tax_tier_4
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = precious_stones_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Elephantry Barracks
elephantry_barracks_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_elephantry }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_elephant_cavalry_damage_mult = normal_maa_damage_tier_5
		stationed_elephant_cavalry_toughness_mult = normal_maa_toughness_tier_5
		stationed_elephant_cavalry_screen_mult = normal_maa_screen_tier_5
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = lords_of_the_elephant_elephantry_bonuses
		popular_opinion_add = regular_building_popular_opinion_tier_5
		monthly_religious_tax = normal_building_tax_tier_5
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = precious_stones_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_toughness_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_fabrics
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_elephant_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Camelry Compound
# Gives: county: stationed_camel_cavalry_damage_mult, stationed_camel_cavalry_toughness_mult
# Needs: trade_good_leather -> county: stationed_camel_cavalry_pursuit_mult
camelry_compound_1 = {
	type_icon = "old_buildings/camel_farms.dds"
	next_building = camelry_compound_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_war_camels }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	county_modifier = {
		stationed_camel_cavalry_damage_mult = normal_maa_damage_tier_1
		stationed_camel_cavalry_toughness_mult = normal_maa_toughness_tier_1
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = desert_travelers_camelry_compound_bonuses
		monthly_woodland_tax = poor_building_tax_tier_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Camelry Compound
camelry_compound_2 = {
	next_building = camelry_compound_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_war_camels }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	county_modifier = {
		stationed_camel_cavalry_damage_mult = normal_maa_damage_tier_2
		stationed_camel_cavalry_toughness_mult = normal_maa_toughness_tier_2
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = desert_travelers_camelry_compound_bonuses
		monthly_woodland_tax = poor_building_tax_tier_2
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Camelry Compound
camelry_compound_3 = {
	next_building = camelry_compound_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_war_camels }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_1
	}
	county_modifier = {
		stationed_camel_cavalry_damage_mult = normal_maa_damage_tier_3
		stationed_camel_cavalry_toughness_mult = normal_maa_toughness_tier_3
		stationed_camel_cavalry_screen_mult = normal_maa_screen_tier_3
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = desert_travelers_camelry_compound_bonuses
		monthly_woodland_tax = poor_building_tax_tier_3
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Camelry Compound
camelry_compound_4 = {
	next_building = camelry_compound_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_war_camels }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_2
	}
	county_modifier = {
		stationed_camel_cavalry_damage_mult = normal_maa_damage_tier_4
		stationed_camel_cavalry_toughness_mult = normal_maa_toughness_tier_4
		stationed_camel_cavalry_screen_mult = normal_maa_screen_tier_4
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = desert_travelers_camelry_compound_bonuses
		monthly_woodland_tax = poor_building_tax_tier_4
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Camelry Compound
camelry_compound_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_innovation = innovation_war_camels }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	effect_desc = fancy_mounts_option_from_level_3_effect_desc
	character_modifier = {
		knight_effectiveness_mult = high_knight_effectiveness_mult_tier_3
	}
	county_modifier = {
		stationed_camel_cavalry_damage_mult = normal_maa_damage_tier_5
		stationed_camel_cavalry_toughness_mult = normal_maa_toughness_tier_5
		stationed_camel_cavalry_screen_mult = normal_maa_screen_tier_5
	}
	province_modifier = {
	}
	province_culture_modifier = {
		parameter = desert_travelers_camelry_compound_bonuses
		monthly_woodland_tax = poor_building_tax_tier_5
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_hemp
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		rite_parameter = leather_forbidden

		modifiers = {
			county_modifier = {
				stationed_camel_cavalry_pursuit_mult = 0.02
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Jungle Fort
# Gives: county: stationed_skirmishers_toughness_mult, stationed_archers_toughness_mult, stationed_elephant_cavalry_toughness_mult; province: monthly_woodland_tax
# Needs: trade_category_base_metals -> county: stationed_maa_damage_mult; trade_good_stone -> county: stationed_maa_control_value_add
jungle_fort_1 = {
	type_icon = "old_buildings/idjang_forts.dds"
	next_building = jungle_fort_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_cultural_parameter = jungle_warriors_jungle_fort }
		terrain = jungle
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_skirmishers_toughness_mult = 0.02
		stationed_archers_toughness_mult = 0.02
		stationed_elephant_cavalry_toughness_mult = 0.02
	}
	province_modifier = {
		monthly_woodland_tax = poor_building_tax_tier_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		modifiers = {
			county_modifier = {
				stationed_maa_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = jungle_warriors_jungle_fort }
		ai_regular_new_building_modifier = yes
	}
}

# Jungle Fort
jungle_fort_2 = {
	next_building = jungle_fort_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_cultural_parameter = jungle_warriors_jungle_fort }
		terrain = jungle
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_skirmishers_toughness_mult = 0.04
		stationed_archers_toughness_mult = 0.04
		stationed_elephant_cavalry_toughness_mult = 0.04
	}
	province_modifier = {
		monthly_woodland_tax = poor_building_tax_tier_2
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_maa_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = jungle_warriors_jungle_fort }
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Jungle Fort
jungle_fort_3 = {
	next_building = jungle_fort_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_cultural_parameter = jungle_warriors_jungle_fort }
		terrain = jungle
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_skirmishers_toughness_mult = 0.06
		stationed_archers_toughness_mult = 0.06
		stationed_elephant_cavalry_toughness_mult = 0.06
	}
	province_modifier = {
		monthly_woodland_tax = poor_building_tax_tier_3
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_maa_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = jungle_warriors_jungle_fort }
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Jungle Fort
jungle_fort_4 = {
	next_building = jungle_fort_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_cultural_parameter = jungle_warriors_jungle_fort }
		terrain = jungle
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_skirmishers_toughness_mult = 0.08
		stationed_archers_toughness_mult = 0.08
		stationed_elephant_cavalry_toughness_mult = 0.08
	}
	province_modifier = {
		monthly_woodland_tax = poor_building_tax_tier_4
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_maa_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = jungle_warriors_jungle_fort }
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Jungle Fort
jungle_fort_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
		culture = { has_cultural_parameter = jungle_warriors_jungle_fort }
		terrain = jungle
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
		is_county_capital = yes
	}
	county_modifier = {
		stationed_skirmishers_toughness_mult = 0.1
		stationed_archers_toughness_mult = 0.1
		stationed_elephant_cavalry_toughness_mult = 0.1
	}
	province_modifier = {
		monthly_woodland_tax = poor_building_tax_tier_5
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_maa_damage_mult = 0.02
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_stone
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_maa_control_value_add = 1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = jungle_warriors_jungle_fort }
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Workers' Camps
# Gives: county: stationed_maa_siege_value_add, stationed_maa_siege_value_mult; province: monthly_mining_tax; market: trade_category_cereals_sell_price_mult
# Needs: trade_category_cereals -> county: stationed_maa_siege_value_mult
workers_camps_1 = {
	type_icon = regular_buildings/workers_camps.dds
	next_building = workers_camps_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_catapult }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_siege_value_add = 0.05
		stationed_maa_siege_value_mult = 0.025
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_1
	}
	market_modifier = {
		trade_category_cereals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_cereals
		amount = basic_resource_need

		not_rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_meat
		amount = basic_resource_need

		rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Workers' Camps
# Gives: county: stationed_maa_siege_value_add, stationed_maa_siege_value_mult; province: monthly_mining_tax; market: trade_category_cereals_sell_price_mult
# Needs: trade_category_cereals x2 -> county: stationed_maa_siege_value_mult
workers_camps_2 = {
	next_building = workers_camps_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_catapult }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_siege_value_add = 0.15
		stationed_maa_siege_value_mult = 0.05
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_2
	}
	market_modifier = {
		trade_category_cereals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_cereals
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		not_rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_meat
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Workers' Camps
# Gives: county: stationed_maa_siege_value_add, stationed_maa_siege_value_mult; province: monthly_mining_tax; market: trade_category_cereals_sell_price_mult
# Needs: trade_category_cereals x3 -> county: stationed_maa_siege_value_mult
workers_camps_3 = {
	next_building = workers_camps_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_catapult }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_siege_value_add = 0.25
		stationed_maa_siege_value_mult = 0.075
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_3
	}
	market_modifier = {
		trade_category_cereals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_cereals
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		not_rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_meat
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Workers' Camps
# Gives: county: stationed_maa_siege_value_add, stationed_maa_siege_value_mult; province: monthly_mining_tax; market: trade_category_cereals_sell_price_mult
# Needs: trade_category_cereals x4 -> county: stationed_maa_siege_value_mult
workers_camps_4 = {
	next_building = workers_camps_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_catapult }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_siege_value_add = 0.35
		stationed_maa_siege_value_mult = 0.1
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_4
	}
	market_modifier = {
		trade_category_cereals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_cereals
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		not_rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_meat
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Workers' Camps
# Gives: county: stationed_maa_siege_value_add, stationed_maa_siege_value_mult; province: monthly_mining_tax; market: trade_category_cereals_sell_price_mult
# Needs: trade_category_cereals x5 -> county: stationed_maa_siege_value_mult
workers_camps_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_catapult }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_maa_siege_value_add = 0.4
		stationed_maa_siege_value_mult = 0.125
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_5
	}
	market_modifier = {
		trade_category_cereals_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_cereals
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		not_rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}
	trade_good_need = {
		trade_good_category = trade_category_meat
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		rite_parameter = cereals_forbidden
		modifiers = {
			county_modifier = {
				stationed_maa_siege_value_mult = 0.025
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Siegecraft Academies
# Gives: county: stationed_siege_weapon_maintenance_low_modifier, stationed_siege_weapon_siege_value_mult; market: trade_category_carpentry_supplies_sell_price_mult
# Needs: trade_category_carpentry_supplies -> county: stationed_siege_weapon_maintenance_low_modifier
siegecraft_academies_1 = {
	type_icon = regular_buildings/siegecraft_academies.dds
	next_building = siegecraft_academies_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_mangonel }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_siege_weapon_maintenance_low_modifier = -0.025
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_siege_weapon_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Siegecraft Academies
# Gives: county: stationed_siege_weapon_maintenance_low_modifier, stationed_siege_weapon_siege_value_mult; market: trade_category_carpentry_supplies_sell_price_mult
# Needs: trade_category_carpentry_supplies x2 -> county: stationed_siege_weapon_maintenance_low_modifier
siegecraft_academies_2 = {
	next_building = siegecraft_academies_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_mangonel }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_siege_weapon_maintenance_low_modifier = -0.05
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_3
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_siege_weapon_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Siegecraft Academies
# Gives: county: stationed_siege_weapon_maintenance_low_modifier, stationed_siege_weapon_siege_value_mult; market: trade_category_carpentry_supplies_sell_price_mult
# Needs: trade_category_carpentry_supplies x3 -> county: stationed_siege_weapon_maintenance_low_modifier
siegecraft_academies_3 = {
	next_building = siegecraft_academies_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_mangonel }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_siege_weapon_maintenance_low_modifier = -0.075
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_5
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_siege_weapon_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Siegecraft Academies
# Gives: county: stationed_siege_weapon_maintenance_low_modifier, stationed_siege_weapon_siege_value_mult; market: trade_category_carpentry_supplies_sell_price_mult
# Needs: trade_category_carpentry_supplies x4 -> county: stationed_siege_weapon_maintenance_low_modifier
siegecraft_academies_4 = {
	next_building = siegecraft_academies_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_mangonel }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_siege_weapon_maintenance_low_modifier = -0.1
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_7
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_siege_weapon_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Siegecraft Academies
# Gives: county: stationed_siege_weapon_maintenance_low_modifier, stationed_siege_weapon_siege_value_mult; market: trade_category_carpentry_supplies_sell_price_mult
# Needs: trade_category_carpentry_supplies x5 -> county: stationed_siege_weapon_maintenance_low_modifier
siegecraft_academies_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_mangonel }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_siege_weapon_maintenance_low_modifier = -0.125
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_8
	}
	province_modifier = {
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_siege_weapon_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Powder Mills
# Gives: county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; province: monthly_artisan_tax; market: trade_good_wood_sell_price_mult
# Needs: trade_good_wood -> county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult
powder_mills_1 = {
	type_icon = old_buildings/powder_magazine.dds
	next_building = powder_mills_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_siege_value_mult = normal_maa_siege_value_tier_1
		stationed_gunpowder_damage_mult = 0.025
		stationed_gunpowder_toughness_mult = 0.025
	}
	province_modifier = {
		monthly_artisan_tax = poor_building_tax_tier_1
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		modifiers = {
			county_modifier = {
				stationed_gunpowder_siege_value_mult = low_maa_siege_value_tier_1
				stationed_gunpowder_damage_mult = low_maa_damage_tier_1
				stationed_gunpowder_toughness_mult = low_maa_toughness_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Powder Mills
# Gives: county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; province: monthly_artisan_tax; market: trade_good_wood_sell_price_mult
# Needs: trade_good_wood x2 -> county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult
powder_mills_2 = {
	next_building = powder_mills_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_siege_value_mult = normal_maa_siege_value_tier_1
		stationed_gunpowder_damage_mult = 0.15
		stationed_gunpowder_toughness_mult = 0.15
	}
	province_modifier = {
		monthly_artisan_tax = poor_building_tax_tier_2
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			county_modifier = {
				stationed_gunpowder_siege_value_mult = low_maa_siege_value_tier_1
				stationed_gunpowder_damage_mult = low_maa_damage_tier_1
				stationed_gunpowder_toughness_mult = low_maa_toughness_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Powder Mills
# Gives: county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; province: monthly_artisan_tax; market: trade_good_wood_sell_price_mult
# Needs: trade_good_wood x3 -> county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult
powder_mills_3 = {
	next_building = powder_mills_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 3
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_siege_value_mult = normal_maa_siege_value_tier_1
		stationed_gunpowder_damage_mult = 0.275
		stationed_gunpowder_toughness_mult = 0.275
	}
	province_modifier = {
		monthly_artisan_tax = poor_building_tax_tier_3
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			county_modifier = {
				stationed_gunpowder_siege_value_mult = low_maa_siege_value_tier_1
				stationed_gunpowder_damage_mult = low_maa_damage_tier_1
				stationed_gunpowder_toughness_mult = low_maa_toughness_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Powder Mills
# Gives: county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; province: monthly_artisan_tax; market: trade_good_wood_sell_price_mult
# Needs: trade_good_wood x4 -> county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult
powder_mills_4 = {
	next_building = powder_mills_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_siege_value_mult = normal_maa_siege_value_tier_2
		stationed_gunpowder_damage_mult = 0.4
		stationed_gunpowder_toughness_mult = 0.4
	}
	province_modifier = {
		monthly_artisan_tax = poor_building_tax_tier_4
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			county_modifier = {
				stationed_gunpowder_siege_value_mult = low_maa_siege_value_tier_1
				stationed_gunpowder_damage_mult = low_maa_damage_tier_1
				stationed_gunpowder_toughness_mult = low_maa_toughness_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Powder Mills
# Gives: county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult; province: monthly_artisan_tax; market: trade_good_wood_sell_price_mult
# Needs: trade_good_wood x5 -> county: stationed_gunpowder_siege_value_mult, stationed_gunpowder_damage_mult, stationed_gunpowder_toughness_mult
powder_mills_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		building_gunpowder_trigger = yes
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
	}
	county_modifier = {
		stationed_gunpowder_siege_value_mult = normal_maa_siege_value_tier_3
		stationed_gunpowder_damage_mult = 0.425
		stationed_gunpowder_toughness_mult = 0.425
	}
	province_modifier = {
		monthly_artisan_tax = poor_building_tax_tier_5
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				stationed_gunpowder_siege_value_mult = low_maa_siege_value_tier_1
				stationed_gunpowder_damage_mult = low_maa_damage_tier_1
				stationed_gunpowder_toughness_mult = low_maa_toughness_tier_1
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# Surveyor's Hall
# Gives: character: siege_phase_time; province: monthly_mining_tax; market: trade_good_books_paper_sell_price_mult
# Needs: trade_good_books_paper -> character: siege_phase_time
surveyors_hall_1 = {
	type_icon = regular_buildings/surveyors_hall.dds
	next_building = surveyors_hall_2
	cost_gold = regular_building_cost_tier_1
	construction_time = construction_time_6_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_trebuchet }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		siege_phase_time = -0.025
	}
	county_modifier = {
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_1
	}
	market_modifier = {
		trade_good_books_paper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_books_paper
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				siege_phase_time = -0.01
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_new_building_modifier = yes
	}
}

# Surveyor's Hall
# Gives: character: siege_phase_time; province: monthly_mining_tax; market: trade_good_books_paper_sell_price_mult
# Needs: trade_good_books_paper x2 -> character: siege_phase_time
surveyors_hall_2 = {
	next_building = surveyors_hall_3
	cost_gold = regular_building_cost_tier_2
	construction_time = construction_time_9_months
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_trebuchet }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		siege_phase_time = -0.05
	}
	county_modifier = {
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_2
	}
	market_modifier = {
		trade_good_books_paper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_books_paper
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			character_modifier = {
				siege_phase_time = -0.01
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 2 }
	}
}

# Surveyor's Hall
# Gives: character: siege_phase_time; province: monthly_mining_tax; market: trade_good_books_paper_sell_price_mult
# Needs: trade_good_books_paper x3 -> character: siege_phase_time
surveyors_hall_3 = {
	next_building = surveyors_hall_4
	cost_gold = regular_building_cost_tier_3
	construction_time = construction_time_1_year
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_trebuchet }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		siege_phase_time = -0.075
	}
	county_modifier = {
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_3
	}
	market_modifier = {
		trade_good_books_paper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_books_paper
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			character_modifier = {
				siege_phase_time = -0.01
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 3 }
	}
}

# Surveyor's Hall
# Gives: character: siege_phase_time; province: monthly_mining_tax; market: trade_good_books_paper_sell_price_mult
# Needs: trade_good_books_paper x4 -> character: siege_phase_time
surveyors_hall_4 = {
	next_building = surveyors_hall_5
	cost_gold = regular_building_cost_tier_4
	construction_time = construction_time_3_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_trebuchet }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		siege_phase_time = -0.1
	}
	county_modifier = {
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_4
	}
	market_modifier = {
		trade_good_books_paper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_books_paper
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			character_modifier = {
				siege_phase_time = -0.01
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 4 }
	}
}

# Surveyor's Hall
# Gives: character: siege_phase_time; province: monthly_mining_tax; market: trade_good_books_paper_sell_price_mult
# Needs: trade_good_books_paper x5 -> character: siege_phase_time
surveyors_hall_5 = {
	cost_gold = regular_building_cost_tier_5
	construction_time = construction_time_5_years
	district_level_requirement = 4
	can_construct = {
	}
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_trebuchet }
	}
	is_enabled = {
		is_county_capital = yes
	}
	character_modifier = {
		siege_phase_time = -0.125
	}
	county_modifier = {
	}
	province_modifier = {
		monthly_mining_tax = poor_building_tax_tier_5
	}
	market_modifier = {
		trade_good_books_paper_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_books_paper
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				siege_phase_time = -0.01
			}
		}
	}

	ai_value = {
		base = 10
		ai_military_context_modifier = yes
		directive_to_build_military_modifier = yes
		ai_general_building_modifier = yes
		ai_capital_preference_modifier = yes
		ai_regular_building_upgrade_modifier = { LEVEL = 5 }
	}
}

# NEOW original definitions, updated for CK3 1.21

# NEOW air docks and chemical workshops, aligned to the 1.21 military district.

chemistry_workshop_01 = {
	construction_time = standard_construction_time
	effect_desc = chemistry_workshop_1_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_1_cost
	
	province_modifier = {
		stationed_chemical_weapons_damage_mult = high_maa_damage_tier_1
		stationed_chemical_weapons_toughness_mult = high_maa_toughness_tier_1
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = chemistry_workshop_02
	
	ai_value = {
		base = 10
		ai_tier_1_building_modifier = yes
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
		modifier = {
			factor = 0
			has_holding_type = city_holding
		}
		modifier = {
			factor = 0
			has_holding_type = church_holding
		}
	}
}


chemistry_workshop_02 = {
	construction_time = standard_construction_time
	effect_desc = chemistry_workshop_2_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_2_cost
	
	province_modifier = {
		stationed_chemical_weapons_damage_mult = high_maa_damage_tier_2
		stationed_chemical_weapons_toughness_mult = high_maa_toughness_tier_2
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = chemistry_workshop_03
	
	ai_value = {
		base = 9
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
		modifier = { # Fill all building slots before going for upgrades
			factor = 0
			free_building_slots > 0
		}
	}
}


chemistry_workshop_03 = {
	construction_time = standard_construction_time
	effect_desc = chemistry_workshop_3_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_3_cost
	
	province_modifier = {
		stationed_chemical_weapons_damage_mult = high_maa_damage_tier_3
		stationed_chemical_weapons_toughness_mult = high_maa_toughness_tier_3
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = chemistry_workshop_04
	
	ai_value = {
		base = 8
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}


chemistry_workshop_04 = {
	construction_time = standard_construction_time
	effect_desc = chemistry_workshop_4_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_4_cost
	
	province_modifier = {
		stationed_chemical_weapons_damage_mult = high_maa_damage_tier_4
		stationed_chemical_weapons_toughness_mult = high_maa_toughness_tier_4
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	
	ai_value = {
		base = 7
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}

##########
# Air Dock - unlocks airships
##########


air_dock_01 = {
	construction_time = standard_construction_time
	effect_desc = air_dock_1_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_1_cost
	
	province_modifier = {
		stationed_airship_damage_mult = high_maa_damage_tier_1
		stationed_airship_toughness_mult = high_maa_toughness_tier_1
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = air_dock_02
	
	ai_value = {
		base = 10
		ai_tier_1_building_modifier = yes
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
		modifier = {
			factor = 0
			has_holding_type = city_holding
		}
		modifier = {
			factor = 0
			has_holding_type = church_holding
		}
	}
}


air_dock_02 = {
	construction_time = standard_construction_time
	effect_desc = air_dock_2_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_2_cost
	
	province_modifier = {
		stationed_airship_damage_mult = high_maa_damage_tier_2
		stationed_airship_toughness_mult = high_maa_toughness_tier_2
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = air_dock_03
	
	ai_value = {
		base = 9
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
		modifier = { # Fill all building slots before going for upgrades
			factor = 0
			free_building_slots > 0
		}
	}
}


air_dock_03 = {
	construction_time = standard_construction_time
	effect_desc = air_dock_3_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_3_cost
	
	province_modifier = {
		stationed_airship_damage_mult = high_maa_damage_tier_3
		stationed_airship_toughness_mult = high_maa_toughness_tier_3
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	next_building = air_dock_04
	
	ai_value = {
		base = 8
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}


air_dock_04 = {
	construction_time = standard_construction_time
	effect_desc = air_dock_4_effect_desc

	can_construct_potential = { is_county_capital = yes }

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = very_expensive_building_tier_4_cost
	
	province_modifier = {
		stationed_airship_damage_mult = high_maa_damage_tier_4
		stationed_airship_toughness_mult = high_maa_toughness_tier_4
	}
	character_modifier = {
	}

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}
	type_icon = regular_buildings/siegecraft_academies.dds
	
	
	ai_value = {
		base = 7
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}

##########
# Communal Settlements - peasant and levy bonuses
##########


