
castle = {	
	ca_assembly_chamber = {
		desc = ca_assembly_chamber_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 2 }
		gold_cost = 250
		build_time = 730
		court_size_modifier = 2
		culture_techpoints = 0.10
		ai_creation_factor = 105
		extra_tech_building_start = 0.9
		add_number_to_name = no
	}
	ca_high_court = {
		desc = ca_high_court_desc
		potential = {	
			FROM = {
			OR = {
				religion_group = muslim
				religion = orthodox	
				religion = taoist
				religion = tengri_pagan	
				culture_group = iberian
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_LEGALISM = 4 }
		gold_cost = 200
		build_time = 730
		ai_creation_factor = 100
		extra_tech_building_start = 0.4
		add_number_to_name = no
		culture_techpoints = 0.10
	}
	ca_cultural_exchange = {
		desc = ca_cultural_exchange_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_POPULAR_CUSTOMS = 3 }
		gold_cost = 150
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.6
		add_number_to_name = no
		general_opinion = 10
		culture_techpoints = 0.25
		liege_prestige = 0.5
	}
	ca_central_command = {
		desc = ca_central_command_desc
		potential = {	
			FROM = {
			OR = {	
				culture = ethiopian
				religion = taoist
				religion = tengri_pagan	
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CASTLE_CONSTRUCTION = 6 }
		gold_cost = 309
		build_time = 730
		court_size_modifier = 1
		global_winter_supply = 0.20
		fort_level = 2
		levy_reinforce_rate = 0.50
		garrison_size = 0.15
		ai_creation_factor = 110
		extra_tech_building_start = 0.4
		add_number_to_name = no
	}
	ca_officer_academy = {
		desc = ca_officer_academy_desc
		potential = {	
			FROM = {	
				religion = taoist	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 3 }
		gold_cost = 275
		build_time = 765
		ai_creation_factor = 110
		commander_limit = 5
		garrison_size = 0.1
	}
	ca_communications_center = {
		desc = ca_communications_center_desc
		potential = {	
			FROM = {		
				religion = taoist
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 5 }
		gold_cost = 320
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.8
		add_number_to_name = no
		levy_size = 0.15
		levy_reinforce_rate = 0.15
		retinue_maintenence_cost = -0.25
		garrison_size = 0.05
		global_winter_supply = 0.10
		land_morale = 0.15
	}
	ca_recruitment_office = {
		desc = ca_recruitment_office_desc
		potential = {	
			FROM = {
			OR = {	
				religion = taoist
				religion = tengri_pagan	
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_RECRUITMENT = 4 }
		gold_cost = 200
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.4
		add_number_to_name = no
		light_infantry = 150
		heavy_infantry = 100
		light_cavalry = 50
		knights = 20
		retinue_maintenence_cost = -0.5
		levy_reinforce_rate = 0.25
	}
	ca_special_projects_division = {
		desc = ca_special_projects_division_desc
		potential = {	
			FROM = {
			NOT = { 
				religion = norse_pagan
				religion = finnish_pagan
				religion = nestorian	
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 6 }
		gold_cost = 700
		build_time = 930
		ai_creation_factor = 110
		extra_tech_building_start = 0.6
		add_number_to_name = no
		military_techpoints = 0.5
	}
	ca_economic_bureau = {
		desc = ca_economic_bureau_desc
		potential = {	
			FROM = {	
			OR = {
				culture = persian
				culture = kurdish
				culture = catalan
				religion = jewish
				religion = taoist
				religion = tengri_pagan	
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_TRADE_PRACTICES = 2 }
		gold_cost = 200
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.4
		add_number_to_name = no
		tax_income = 5
		economy_techpoints = 0.05
	}
	ca_central_bank = {
		desc = ca_central_bank_desc
		potential = {	
			FROM = {	
			OR = {
				culture = persian
				culture = kurdish
				culture = catalan
				religion_group = jewish_group
				religion = shiite
				any_neighbor_independent_ruler = {
					religion_group = jewish_group
						}
				religion = taoist
				religion = tengri_pagan	
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_TRADE_PRACTICES = 3 }
		gold_cost = 550
		build_time = 930
		ai_creation_factor = 100
		extra_tech_building_start = 0.4
		add_number_to_name = no
		tax_income = 5
		global_tax_modifier = -0.05
		economy_techpoints = 0.05
	}
	ca_stock_market = {
		desc = ca_stock_market_desc
		potential = {	
			FROM = {	
			OR = {
				culture = persian
				culture = kurdish
				culture = catalan
				religion = jewish
				religion = taoist
				religion = tengri_pagan	
				}		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_TRADE_PRACTICES = 4 }
		gold_cost = 400
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.4
		add_number_to_name = no
		economy_techpoints = 0.1
		global_tax_modifier = 0.25
		tax_income = 7
		tradevalue = 5
	}
	ca_reformed_civil_service = {
		desc = ca_reformed_civil_service_desc	
		potential = {	
			FROM = {
			OR = {
				culture = persian
				culture = kurdish
				religion = taoist
				religion = tengri_pagan	
				}		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 4 }
		gold_cost = 250
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.8
		add_number_to_name = no
		global_tax_modifier = -0.25
		tax_income = 2
		garrison_size = 0.25
		fort_level = 1
	}
	ca_infrastructure_program = {
		desc = ca_infrastructure_program_desc
		potential = {	
			FROM = {	
				religion = taoist	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 6 }
		gold_cost = 500
		build_time = 930
		ai_creation_factor = 110
		extra_tech_building_start = 0.9
		add_number_to_name = no
		disease_defence = 0.05
		court_size_modifier = 2
		global_tax_modifier = -0.15
		garrison_size = 0.25
		fort_level = 1.5
		}
	ca_secret_lair = {
		desc = ca_secret_lair_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 2 }
		gold_cost = 150
		build_time = 325
		ai_creation_factor = 110
		extra_tech_building_start = 0.7
		add_number_to_name = no
		fort_level = 0.5
	}
	ca_underground_location = {
		desc = ca_underground_location_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 5 }
		gold_cost = 150
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 10
		add_number_to_name = no
		fort_level = 1.5
	}
	ca_shadowy_contacts = {
		desc = ca_shadowy_contacts_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 3 }
		gold_cost = 90	
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 10
		add_number_to_name = no
		arrest_chance_modifier = 0.25
	}
	ca_exotic_pets = {
		desc = ca_exotic_pets_desc	
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 730
		ai_creation_factor = 110
		extra_tech_building_start = 0.8
		add_number_to_name = no
		liege_prestige = 0.5
	}
	ca_research_facility = {
		desc = ca_research_facility_desc
		potential = {	
			FROM = {
			OR = {
				religion = tengri_pagan
				religion = taoist
				}			
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 0 }
		gold_cost = 350
		build_time = 730
		economy_techpoints = 0.15
		military_techpoints = 0.1
		global_tax_modifier = -0.05
		ai_creation_factor = 110
		extra_tech_building_start = 0.7
		add_number_to_name = no
	}
	ca_research_library = {
		desc = ca_research_library_desc
		potential = {	
			FROM = {		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CITY_CONSTRUCTION = 2 }
		gold_cost = 375
		build_time = 750
		economy_techpoints = 0.10
		military_techpoints = 0.05
		culture_techpoints = 0.15
		ai_creation_factor = 110
		extra_tech_building_start = 0.4
		add_number_to_name = no
	}
	ca_public_schools = {
		desc = ca_public_schools_desc
		potential = {	
			FROM = {	
				OR = {
				religion = taoist
				culture = basque
				culture = catalan
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CITY_CONSTRUCTION = 5 }
		gold_cost = 600
		build_time = 730
		disease_defence = -0.05
		global_tax_modifier = -0.1
		economy_techpoints = 0.25
		military_techpoints = 0.1
		culture_techpoints = 0.25
		tech_growth_modifier = 1
		ai_creation_factor = 110
		extra_tech_building_start = 0.6
		add_number_to_name = no
	}
	ca_doctoral_program = {
		desc = ca_doctoral_program_desc
		potential = {	
			FROM = {	
			OR = {
				religion = taoist
				culture = basque
				TECH_CITY_CONSTRUCTION = 6
				}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CITY_CONSTRUCTION = 7 }
		gold_cost = 550
		build_time = 730
		disease_defence = 0.15
		global_tax_modifier = -0.05
		economy_techpoints = 0.02
		military_techpoints = 0.01
		culture_techpoints = 0.05
		ai_creation_factor = 110
		extra_tech_building_start = 0.9
		add_number_to_name = no
	}
	ca_medical_wing = {
		desc = ca_medical_wing_desc
		potential = {	
			FROM = {
			OR = {
				religion = taoist
				culture = basque
				TECH_CITY_CONSTRUCTION = 7
				}		
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CITY_CONSTRUCTION = 5 }
		gold_cost = 700
		build_time = 850
		disease_defence = 0.25
		military_techpoints = 0.5
		ai_creation_factor = 110
		extra_tech_building_start = 10
		add_number_to_name = no
	}
	ca_applied_science_division = {
		desc = ca_applied_science_division_desc
		potential = {	
			FROM = {
			OR = {
				religion = taoist
				any_neighbor_independent_ruler = {
					religion = taoist
						}
			}	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_CONSTRUCTION = 5 }
		gold_cost = 2500
		build_time = 930
		disease_defence = 0.25
		ai_creation_factor = 110
		extra_tech_building_start = 10
		add_number_to_name = no
		military_techpoints = 0.1
		economy_techpoints = 0.1	
		culture_techpoints = 0.1		
	}
	ca_chapel = {
		potential = {
			FROM = {
				religion_group = christian
				OR = {
					tier = KING
					tier = EMPEROR
				}
				capital_holding = {
						title = FROMFROM
				}
			}
		}
		trigger = { TECH_CONSTRUCTION = 0 }
		desc = ca_chapel_desc
		gold_cost = 150
		build_time = 300
		liege_piety = 1.25
		church_opinion = 5
		ai_creation_factor = 95
		extra_tech_building_start = 0.6
		add_number_to_name = no
	}
	ca_chapel_2 = {
		potential = {	
			FROM = {
				religion_group = christian
				OR = {
					tier = KING
					tier = EMPEROR
				}
				capital_holding = {
						title = FROMFROM
				}
			}
		}	
		trigger = { TECH_CONSTRUCTION = 2 }
		desc = ca_chapel_2_desc
		gold_cost = 250
		build_time = 500
		liege_piety = 2.75
		church_opinion = 10
		ai_creation_factor = 60
		extra_tech_building_start = 0.9
		add_number_to_name = no
		upgrades_from = ca_chapel
	}
	ca_trade_center = {
		potential = {	
			FROM = {	
				capital_holding = {	
					title = FROMFROM	
				}	
			}	
		}	
		trigger = { TECH_TRADE_PRACTICES = 3 }
		desc = ca_trade_center_desc
		gold_cost = 450
		build_time = 850
		disease_defence = -0.25
		military_techpoints = 0.5
		economy_techpoints = 0.25	
		culture_techpoints = 0.25
		local_tax_modifier = 1.2
		ai_creation_factor = 110
		extra_tech_building_start = 0.7
		add_number_to_name = no
	}
	ca_training_yard = {
		potential = {
			OR = {
				FROM = { 
					OR = {
						tier = KING
						tier = EMPEROR
						ai = no
					}
					capital_holding = {
						title = FROMFROM
					}
				}
				FROMFROM = {
					has_building = ca_training_yard
				}
			}
		}
		trigger = { TECH_CONSTRUCTION = 0 }
		desc = ca_training_yard_desc
		commander_limit = 2
		levy_size = 0.05
		levy_reinforce_rate = 0.05
		light_infantry = 150
		heavy_infantry = 100
		gold_cost = 200
		build_time = 230
		ai_creation_factor = 70
		extra_tech_building_start = 0.4
		add_number_to_name = no
	}
}
