family_palace = {

	cfh_personal_buildings_fp_capital_office_0 = { # small councillor office
		desc = cfh_personal_buildings_fp_capital_office_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_2
		}
	}

	cfh_personal_buildings_fp_capital_office_1 = { # councillor office
		desc = cfh_personal_buildings_fp_capital_office_1_desc
		upgrades_from = cfh_personal_buildings_fp_capital_office_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_3
		}
	}

	cfh_personal_buildings_fp_capital_office_2 = { # large councillor office
		desc = cfh_personal_buildings_fp_capital_office_2_desc
		upgrades_from = cfh_personal_buildings_fp_capital_office_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_martial_2 = { # martial
		desc = cfh_personal_buildings_fp_capital_martial_2_desc
		upgrades_from = fp_cellar_3
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		martial = 1
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_learning_2 = { # learning
		desc = cfh_personal_buildings_fp_capital_learning_2_desc
		upgrades_from = fp_shrine_3
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		learning = 1
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_stewardship_2 = { # stewardship
		desc = cfh_personal_buildings_fp_capital_stewardship_2_desc
		upgrades_from = fp_warehouse_3
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		stewardship = 1
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_diplomacy_2 = { # diplomacy
		desc = cfh_personal_buildings_fp_capital_diplomacy_2_desc
		upgrades_from = fp_garden_3
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		diplomacy = 1
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_intrigue_2 = { # catacombs
		desc = cfh_personal_buildings_fp_capital_intrigue_2_desc
		upgrades_from = fp_vault_3
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 250
		build_time = 730
		add_number_to_name = no
		ai_creation_factor = 95
		extra_tech_building_start = 100
		
		intrigue = 1
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
		
		prerequisites = {
			fp_mansion_4
		}
	}

	cfh_personal_buildings_fp_capital_guest_0 = { # guest room
		desc = cfh_personal_buildings_fp_capital_guest_0_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 50
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 85
		extra_tech_building_start = 100

		sex_appeal_opinion = 5
		
		prerequisites = {
			
		}
		
		potential = {
			NOT = { 
				has_game_rule = {
					name = cfh_rule_personal_buildings
					value = off
				}
			}
		}
	}

	cfh_personal_buildings_fp_capital_guest_1 = { # guest suite
		desc = cfh_personal_buildings_fp_capital_guest_1_desc
		upgrades_from = cfh_personal_buildings_fp_capital_guest_0
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 50
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 80
		extra_tech_building_start = 100

		sex_appeal_opinion = 10
		
		prerequisites = {
			
		}
		
		potential = {
			FROMFROM = {
				has_building = cfh_personal_buildings_fp_capital_guest_0
			}
		}
	}

	cfh_personal_buildings_fp_capital_guest_2 = { # guest wing
		desc = cfh_personal_buildings_fp_capital_guest_2_desc
		upgrades_from = cfh_personal_buildings_fp_capital_guest_1
		trigger = { TECH_CASTLE_CONSTRUCTION = 0 }
		gold_cost = 50
		build_time = 100
		add_number_to_name = no
		ai_creation_factor = 75
		extra_tech_building_start = 100

		sex_appeal_opinion = 15
		
		prerequisites = {
			
		}
		
		potential = {
			FROMFROM = {
				has_building = cfh_personal_buildings_fp_capital_guest_0
			}
		}
	}

}
