city = {

	cfh_districts_ct_building_military_0 = {
		desc = cfh_districts_ct_building_military_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 10
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100
		
		potential = {
			has_province_flag = cfh_districts_military_0_flag
			FROMFROM = { is_capital = yes }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_military_0
		convert_to_temple = cfh_districts_tp_building_military_0
		convert_to_tribal = cfh_districts_tb_building_military_0

	}

	cfh_districts_ct_building_military_1 = {
		desc = cfh_districts_ct_building_military_1_desc
		upgrades_from = cfh_districts_ct_building_military_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 10
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100
		
		potential = {
			has_province_flag = cfh_districts_military_1_flag
			FROMFROM = { is_capital = yes }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_military_1
		convert_to_temple = cfh_districts_tp_building_military_1
		convert_to_tribal = cfh_districts_tb_building_military_1
	}

	cfh_districts_ct_building_military_2 = {
		desc = cfh_districts_ct_building_military_2_desc
		upgrades_from = cfh_districts_ct_building_military_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 10
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100
		
		potential = {
			has_province_flag = cfh_districts_military_2_flag
			FROMFROM = { is_capital = yes }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_military_2
		convert_to_temple = cfh_districts_tp_building_military_2
		convert_to_tribal = cfh_districts_tb_building_military_2
	}

	cfh_districts_ct_building_barracks_0 = {
		desc = cfh_districts_ct_building_barracks_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		heavy_infantry = 40
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_archery_range_0
							has_building = cfh_districts_ct_building_parade_ground_0
							has_building = cfh_districts_ct_building_recreation_field_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_archery_range_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_barracks_0
		convert_to_temple = cfh_districts_tp_building_barracks_0
		convert_to_tribal = cfh_districts_tb_building_barracks_0

	}

	cfh_districts_ct_building_barracks_1 = {
		desc = cfh_districts_ct_building_barracks_1_desc
		upgrades_from = cfh_districts_ct_building_barracks_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		heavy_infantry = 100
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_barracks_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_barracks_1
		convert_to_temple = cfh_districts_tp_building_barracks_1
		convert_to_tribal = cfh_districts_tb_building_barracks_1
	}

	cfh_districts_ct_building_barracks_2 = {
		desc = cfh_districts_ct_building_barracks_2_desc
		upgrades_from = cfh_districts_ct_building_barracks_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		heavy_infantry = 180
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_barracks_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_barracks_2
		convert_to_temple = cfh_districts_tp_building_barracks_2
		convert_to_tribal = cfh_districts_tb_building_barracks_2
	}

	cfh_districts_ct_building_archery_range_0 = {
		desc = cfh_districts_ct_building_archery_range_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		archers = 100
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_barracks_0
							has_building = cfh_districts_ct_building_parade_ground_0
							has_building = cfh_districts_ct_building_recreation_field_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_barracks_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_archery_range_0
		convert_to_temple = cfh_districts_tp_building_archery_range_0
		convert_to_tribal = cfh_districts_tb_building_archery_range_0

	}

	cfh_districts_ct_building_archery_range_1 = {
		desc = cfh_districts_ct_building_archery_range_1_desc
		upgrades_from = cfh_districts_ct_building_archery_range_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		archers = 200
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_archery_range_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
			
		}

		convert_to_castle = cfh_districts_ca_building_archery_range_1
		convert_to_temple = cfh_districts_tp_building_archery_range_1
		convert_to_tribal = cfh_districts_tb_building_archery_range_1
	}

	cfh_districts_ct_building_archery_range_2 = {
		desc = cfh_districts_ct_building_archery_range_2_desc
		upgrades_from = cfh_districts_ct_building_archery_range_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		archers = 400
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_archery_range_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_archery_range_2
		convert_to_temple = cfh_districts_tp_building_archery_range_2
		convert_to_tribal = cfh_districts_tb_building_archery_range_2
	}

	cfh_districts_ct_building_recreation_field_0 = {
		desc = cfh_districts_ct_building_recreation_field_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		levy_reinforce_rate = 0.32
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_parade_ground_0
							has_building = cfh_districts_ct_building_archery_range_0
							has_building = cfh_districts_ct_building_barracks_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_parade_ground_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_recreation_field_0
		convert_to_temple = cfh_districts_tp_building_recreation_field_0
		convert_to_tribal = cfh_districts_tb_building_recreation_field_0

	}

	cfh_districts_ct_building_recreation_field_1 = {
		desc = cfh_districts_ct_building_recreation_field_1_desc
		upgrades_from = cfh_districts_ct_building_recreation_field_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		levy_reinforce_rate = 0.8
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_recreation_field_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_recreation_field_1
		convert_to_temple = cfh_districts_tp_building_recreation_field_1
		convert_to_tribal = cfh_districts_tb_building_recreation_field_1
	}

	cfh_districts_ct_building_recreation_field_2 = {
		desc = cfh_districts_ct_building_recreation_field_2_desc
		upgrades_from = cfh_districts_ct_building_recreation_field_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		levy_reinforce_rate = 1.44
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_recreation_field_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_recreation_field_2
		convert_to_temple = cfh_districts_tp_building_recreation_field_2
		convert_to_tribal = cfh_districts_tb_building_recreation_field_2
	}

	cfh_districts_ct_building_parade_ground_0 = {
		desc = cfh_districts_ct_building_parade_ground_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		land_morale = 0.32
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_recreation_field_0
							has_building = cfh_districts_ct_building_archery_range_0
							has_building = cfh_districts_ct_building_barracks_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_recreation_field_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_parade_ground_0
		convert_to_temple = cfh_districts_tp_building_parade_ground_0
		convert_to_tribal = cfh_districts_tb_building_parade_ground_0

	}

	cfh_districts_ct_building_parade_ground_1 = {
		desc = cfh_districts_ct_building_parade_ground_1_desc
		upgrades_from = cfh_districts_ct_building_parade_ground_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		land_morale = 0.8
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_parade_ground_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
			
		}

		convert_to_castle = cfh_districts_ca_building_parade_ground_1
		convert_to_temple = cfh_districts_tp_building_parade_ground_1
		convert_to_tribal = cfh_districts_tb_building_parade_ground_1
	}

	cfh_districts_ct_building_parade_ground_2 = {
		desc = cfh_districts_ct_building_parade_ground_2_desc
		upgrades_from = cfh_districts_ct_building_parade_ground_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		land_morale = 1.44
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_parade_ground_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_parade_ground_2
		convert_to_temple = cfh_districts_tp_building_parade_ground_2
		convert_to_tribal = cfh_districts_tb_building_parade_ground_2
	}

	cfh_districts_ct_building_stables_0 = {
		desc = cfh_districts_ct_building_stables_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		knights = 8
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_siege_camp_0
							has_building = cfh_districts_ct_building_guard_camp_0
							has_building = cfh_districts_ct_building_fortress_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_siege_camp_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_stables_0
		convert_to_temple = cfh_districts_tp_building_stables_0
		convert_to_tribal = cfh_districts_tb_building_stables_0

	}

	cfh_districts_ct_building_stables_1 = {
		desc = cfh_districts_ct_building_stables_1_desc
		upgrades_from = cfh_districts_ct_building_stables_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		knights = 20
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_stables_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_stables_1
		convert_to_temple = cfh_districts_tp_building_stables_1
		convert_to_tribal = cfh_districts_tb_building_stables_1
	}

	cfh_districts_ct_building_stables_2 = {
		desc = cfh_districts_ct_building_stables_2_desc
		upgrades_from = cfh_districts_ct_building_stables_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		knights = 36
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_stables_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_stables_2
		convert_to_temple = cfh_districts_tp_building_stables_2
		convert_to_tribal = cfh_districts_tb_building_stables_2
	}

	cfh_districts_ct_building_siege_camp_0 = {
		desc = cfh_districts_ct_building_siege_camp_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		garrison_size = 0.16
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_stables_0
							has_building = cfh_districts_ct_building_guard_camp_0
							has_building = cfh_districts_ct_building_fortress_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_stables_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_siege_camp_0
		convert_to_temple = cfh_districts_tp_building_siege_camp_0
		convert_to_tribal = cfh_districts_tb_building_siege_camp_0

	}

	cfh_districts_ct_building_siege_camp_1 = {
		desc = cfh_districts_ct_building_siege_camp_1_desc
		upgrades_from = cfh_districts_ct_building_siege_camp_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		garrison_size = 0.4
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_siege_camp_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
			
		}

		convert_to_castle = cfh_districts_ca_building_siege_camp_1
		convert_to_temple = cfh_districts_tp_building_siege_camp_1
		convert_to_tribal = cfh_districts_tb_building_siege_camp_1
	}

	cfh_districts_ct_building_siege_camp_2 = {
		desc = cfh_districts_ct_building_siege_camp_2_desc
		upgrades_from = cfh_districts_ct_building_siege_camp_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		garrison_size = 0.72
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_siege_camp_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_siege_camp_2
		convert_to_temple = cfh_districts_tp_building_siege_camp_2
		convert_to_tribal = cfh_districts_tb_building_siege_camp_2
	}

	cfh_districts_ct_building_guard_camp_0 = {
		desc = cfh_districts_ct_building_guard_camp_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_tax_modifier = 0.16
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_fortress_0
							has_building = cfh_districts_ct_building_siege_camp_0
							has_building = cfh_districts_ct_building_stables_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_fortress_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_guard_camp_0
		convert_to_temple = cfh_districts_tp_building_guard_camp_0
		convert_to_tribal = cfh_districts_tb_building_guard_camp_0

	}

	cfh_districts_ct_building_guard_camp_1 = {
		desc = cfh_districts_ct_building_guard_camp_1_desc
		upgrades_from = cfh_districts_ct_building_guard_camp_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_tax_modifier = 0.4
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_guard_camp_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_guard_camp_1
		convert_to_temple = cfh_districts_tp_building_guard_camp_1
		convert_to_tribal = cfh_districts_tb_building_guard_camp_1
	}

	cfh_districts_ct_building_guard_camp_2 = {
		desc = cfh_districts_ct_building_guard_camp_2_desc
		upgrades_from = cfh_districts_ct_building_guard_camp_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_tax_modifier = 0.72
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_guard_camp_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_guard_camp_2
		convert_to_temple = cfh_districts_tp_building_guard_camp_2
		convert_to_tribal = cfh_districts_tb_building_guard_camp_2
	}

	cfh_districts_ct_building_fortress_0 = {
		desc = cfh_districts_ct_building_fortress_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 200
		build_time = 365
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_levy_size = 0.16
		
		prerequisites = {
			cfh_districts_ct_building_military_0
		}
		
		potential = {
			FROMFROM = { 
				OR = {
					AND = {
						has_building = cfh_districts_ct_building_military_0 
						NOT = { 
							has_building = cfh_districts_ct_building_guard_camp_0
							has_building = cfh_districts_ct_building_siege_camp_0
							has_building = cfh_districts_ct_building_stables_0
						}
					}
					AND = {
						has_building = cfh_districts_ct_building_military_1
						NOT = { has_building = cfh_districts_ct_building_guard_camp_0 }
					}
				}
			}
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_fortress_0
		convert_to_temple = cfh_districts_tp_building_fortress_0
		convert_to_tribal = cfh_districts_tb_building_fortress_0

	}

	cfh_districts_ct_building_fortress_1 = {
		desc = cfh_districts_ct_building_fortress_1_desc
		upgrades_from = cfh_districts_ct_building_fortress_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 400
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_levy_size = 0.4
		
		prerequisites = {
			cfh_districts_ct_building_military_1
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_fortress_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
			
		}

		convert_to_castle = cfh_districts_ca_building_fortress_1
		convert_to_temple = cfh_districts_tp_building_fortress_1
		convert_to_tribal = cfh_districts_tb_building_fortress_1
	}

	cfh_districts_ct_building_fortress_2 = {
		desc = cfh_districts_ct_building_fortress_2_desc
		upgrades_from = cfh_districts_ct_building_fortress_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 600
		build_time = 1095
		add_number_to_name = no
		ai_creation_factor = 130
		extra_tech_building_start = 100

		castle_levy_size = 0.72
		
		prerequisites = {
			cfh_districts_ct_building_military_2
		}
		
		potential = {
			FROMFROM = { has_building = cfh_districts_ct_building_fortress_0 }
		}

		is_active_trigger = {
			FROMFROM = { is_capital = yes }
		}

		convert_to_castle = cfh_districts_ca_building_fortress_2
		convert_to_temple = cfh_districts_tp_building_fortress_2
		convert_to_tribal = cfh_districts_tb_building_fortress_2
	}

}