##########
# Duchy Capital Buildings
# These are built in the first barony of the first county of any duchy
# Holding the associated duchy is required both to build, and for the buildings to be enabled
##########

cow_military_academy_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		knight_limit = 2
		knight_effectiveness_mult = 0.25
		army_maintenance_mult = -0.025
	}
	
	next_building = cow_military_academy_02
	
	type_icon = "icon_building_military_academy.dds"

	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_military_academy_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		knight_limit = 4
		knight_effectiveness_mult = 0.5
		army_maintenance_mult = -0.035
	}
	
	next_building = cow_military_academy_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_military_academy_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		knight_limit = 6
		knight_effectiveness_mult = 0.75
		army_maintenance_mult = -0.05
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building

	ai_value = {
		base = 10
	}
}

cow_march_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	duchy_capital_county_modifier = {
		supply_limit_mult = 0.25
		levy_reinforcement_rate = 0.25
		garrison_size = 0.25
		hostile_raid_time = 0.2
		defender_advantage = normal_building_advantage_tier_2
		fort_level = normal_building_fort_level_tier_1
	}
	
	next_building = cow_march_02

	type_icon = "icon_building_march.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_march_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	duchy_capital_county_modifier = {
		supply_limit_mult = 0.5
		levy_reinforcement_rate = 0.5
		garrison_size = 0.5
		hostile_raid_time = 0.3
		defender_advantage = normal_building_advantage_tier_3
		fort_level = normal_building_fort_level_tier_2
	}
	
	next_building = cow_march_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_march_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	duchy_capital_county_modifier = {
		supply_limit_mult = 1
		levy_reinforcement_rate = 1
		garrison_size = 1
		hostile_raid_time = 0.4
		defender_advantage = normal_building_advantage_tier_4
		fort_level = normal_building_fort_level_tier_3
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_siege_works_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		siege_weapon_siege_value_mult = 0.2
		siege_weapon_toughness_add = 2
	}
	duchy_capital_county_modifier = {
		fort_level = normal_building_fort_level_tier_1
	}
	
	next_building = cow_siege_works_02

	type_icon = "icon_building_siege_works.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_siege_works_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		siege_weapon_siege_value_mult = 0.3
		siege_weapon_toughness_add = 4
	}
	duchy_capital_county_modifier = {
		fort_level = normal_building_fort_level_tier_2
	}
	
	next_building = cow_siege_works_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_siege_works_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		siege_weapon_siege_value_mult = 0.3
		siege_weapon_toughness_add = 6
	}
	duchy_capital_county_modifier = {
		fort_level = normal_building_fort_level_tier_3
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_royal_armory_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	duchy_capital_county_modifier = {
		levy_size = 0.2
	}
	
	next_building = cow_royal_armory_02

	type_icon = "icon_building_royal_armory.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_royal_armory_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	duchy_capital_county_modifier = {
		levy_size = 0.3
	}
	
	next_building = cow_royal_armory_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_royal_armory_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	duchy_capital_county_modifier = {
		levy_size = 0.4
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_jousting_lists_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		heavy_cavalry_damage_mult = 0.1
		heavy_cavalry_toughness_mult = 0.1
		light_cavalry_damage_mult = 0.1
		light_cavalry_toughness_mult = 0.1
		light_cavalry_screen_mult = 0.1
		light_cavalry_pursuit_mult = 0.1
		men_at_arms_maintenance = -0.06
	}
	
	next_building = cow_jousting_lists_02

	type_icon = "icon_building_jousting_lists.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_jousting_lists_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		heavy_cavalry_damage_mult = 0.2
		heavy_cavalry_toughness_mult = 0.2
		light_cavalry_damage_mult = 0.2
		light_cavalry_toughness_mult = 0.2
		light_cavalry_screen_mult = 0.2
		light_cavalry_pursuit_mult = 0.2
		men_at_arms_maintenance = -0.08
	}
	
	next_building = cow_jousting_lists_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_jousting_lists_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		heavy_cavalry_damage_mult = 0.3
		heavy_cavalry_toughness_mult = 0.3
		light_cavalry_damage_mult = 0.3
		light_cavalry_toughness_mult = 0.3
		light_cavalry_screen_mult = 0.3
		light_cavalry_pursuit_mult = 0.3
		men_at_arms_maintenance = -0.1
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_blacksmiths_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		pikemen_damage_mult = 0.05
		pikemen_toughness_mult = 0.15
		heavy_infantry_damage_mult = 0.05
		heavy_infantry_toughness_mult = 0.15
		men_at_arms_maintenance = -0.06
	}
	
	next_building = cow_blacksmiths_02

	type_icon = "icon_building_blacksmiths.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_blacksmiths_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		pikemen_damage_mult = 0.1
		pikemen_toughness_mult = 0.3
		heavy_infantry_damage_mult = 0.1
		heavy_infantry_toughness_mult = 0.3
		men_at_arms_maintenance = -0.08
	}
	
	next_building = cow_blacksmiths_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_blacksmiths_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		pikemen_damage_mult = 0.15
		pikemen_toughness_mult = 0.45
		heavy_infantry_damage_mult = 0.15
		heavy_infantry_toughness_mult = 0.45
		men_at_arms_maintenance = -0.1
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_archery_ranges_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		archers_damage_mult = 0.15
		archers_toughness_mult = 0.05
		skirmishers_screen_mult = 0.05
		skirmishers_damage_mult = 0.1
		skirmishers_toughness_mult = 0.05
		skirmishers_pursuit_mult = 0.1
		men_at_arms_maintenance = -0.06
	}
	
	next_building = cow_archery_ranges_02

	type_icon = "icon_building_royal_hunting_grounds.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_archery_ranges_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		archers_damage_mult = 0.3
		archers_toughness_mult = 0.1
		skirmishers_screen_mult = 0.1
		skirmishers_damage_mult = 0.2
		skirmishers_toughness_mult = 0.1
		skirmishers_pursuit_mult = 0.2
		men_at_arms_maintenance = -0.08
	}
	
	next_building = cow_archery_ranges_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_archery_ranges_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		archers_damage_mult = 0.45
		archers_toughness_mult = 0.15
		skirmishers_screen_mult = 0.15
		skirmishers_damage_mult = 0.3
		skirmishers_toughness_mult = 0.15
		skirmishers_pursuit_mult = 0.3
		men_at_arms_maintenance = -0.1
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_tax_assessor_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_manorialism
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	duchy_capital_county_modifier = {
		tax_mult = 0.1
	}
	
	next_building = cow_tax_assessor_02

	type_icon = "icon_building_tax_assessor.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_tax_assessor_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_windmills
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	duchy_capital_county_modifier = {
		tax_mult = 0.15
	}
	
	next_building = cow_tax_assessor_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_tax_assessor_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_cranes
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	duchy_capital_county_modifier = {
		tax_mult = 0.20
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_leisure_palace_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_manorialism
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.05
		stress_loss_mult = 0.15
		owned_hostile_scheme_success_chance_add = 5
		owned_personal_scheme_success_chance_add = 5
	}
	
	duchy_capital_county_modifier = {
		monthly_county_control_change_factor = 0.2
		monthly_county_control_change_add = 0.2
	}
	
	next_building = cow_leisure_palace_02

	type_icon = "icon_building_leisure_palace.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_leisure_palace_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_windmills
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.1
		stress_loss_mult = 0.25
		owned_hostile_scheme_success_chance_add = 10
		owned_personal_scheme_success_chance_add = 10
	}
	
	duchy_capital_county_modifier = {
		monthly_county_control_change_factor = 0.4
		monthly_county_control_change_add = 0.3
	}
	
	next_building = cow_leisure_palace_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_leisure_palace_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_cranes
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.15
		stress_loss_mult = 0.35
		owned_hostile_scheme_success_chance_add = 15
		owned_personal_scheme_success_chance_add = 15
	}
	
	duchy_capital_county_modifier = {
		monthly_county_control_change_factor = 0.6
		monthly_county_control_change_add = 0.4
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}

cow_royal_forest_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		NOT = { has_holding_type = cow_metropolis_holding }
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
		NOR = {
			terrain = steppe
			terrain = desert
			terrain = oasis
			terrain = desert_mountains
			terrain = mountains
			terrain = wetlands
		}
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_manorialism
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	# show_disabled = yes
	
	cost_gold = expensive_building_tier_2_cost
	
	duchy_capital_county_modifier = {
		county_opinion_add = 5
		development_growth_factor = 0.1
	}
	province_modifier = {
		monthly_income = good_building_tax_tier_2
	}
	
	next_building = cow_royal_forest_02

	type_icon = "icon_building_royal_forest.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_royal_forest_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_windmills
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost
	
	duchy_capital_county_modifier = {
		county_opinion_add = 10
		development_growth_factor = 0.2
	}
	province_modifier = {
		monthly_income = good_building_tax_tier_3
	}
	
	next_building = cow_royal_forest_03
	
	type = duchy_capital
	
	ai_value = {
		base = 10
	}
}

cow_royal_forest_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_cow_metropolis = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_cranes
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	show_disabled = yes
	
	cost_gold = expensive_building_tier_4_cost
	
	duchy_capital_county_modifier = {
		county_opinion_add = 15
		development_growth_factor = 0.3
	}
	province_modifier = {
		monthly_income = good_building_tax_tier_4
	}
	
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 10
	}
}