﻿valyrian_dragonhold_01 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	can_construct = {
		county.holder = { has_trait = dragonrider }
	}		
	is_enabled = {
		county.holder = { has_trait = dragonrider }
	}		
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		knight_limit = 1
		dragon_damage_mult = 0.2
		dragonknight_damage_mult = 0.2
	
	}
	
	next_building = valyrian_dragonhold_02
	
	type_icon = "dragon_temple.dds"

	type = duchy_capital
	
	ai_value = {
		always = no
		modifier = {
			factor = 2
			scope:holder.capital_province = this
		}
		modifier = { # Fill all building slots before going for duchy buildings
			factor = 0
			free_building_slots > 0
		}
	}
}

valyrian_dragonhold_02 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	is_enabled = {
		county.holder = { has_title = prev.duchy }
	}
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		knight_limit = 2
		knight_effectiveness_mult = 0.1
		dragon_damage_mult = 0.5
		dragonknight_damage_mult = 0.5
	}
	
	next_building = valyrian_dragonhold_03
	type_icon = "dragon_temple.dds"
	
	type = duchy_capital
	
	ai_value = {
		base = 20
		modifier = {
			factor = 2
			scope:holder.capital_province = this
		}
	}
}

valyrian_dragonhold_03 = {
	construction_time = slow_construction_time

	can_construct_potential = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		building_requirement_tribal = no
	}
	
	can_construct_showing_failures_only = {
		
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	is_enabled = {
		county.holder = { has_title = prev.duchy }
	}
	show_disabled = yes
	
	cost_gold = 10000
	
	character_modifier = {
		knight_limit = 6
		knight_effectiveness_mult = 0.15
		army_maintenance_mult = -0.15
		dragon_damage_mult = 1.5
		dragonknight_damage_mult = 1.5
	}
	
	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 20
		garrison_size = 2.5
		monthly_income = normal_building_tax_tier_8
	}
	county_modifier = {
		development_growth = 0.3
		development_growth_factor = 0.2
		tax_mult = 0.3
		
	}
	type = duchy_capital
	
	flag = fully_upgraded_duchy_capital_building

	ai_value = {
		base = 20
		modifier = {
			factor = 2
			scope:holder.capital_province = this
		}
	}
}