# Temple
temple = {
	# Siedlingsstufen
	ca_geb_temp_1_1 = {
		desc = ca_geb_temp_1_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1
			    TECH_RELIGIOUS_CUSTOMS = 1 
				ckplus_austerity = yes }
		add_number_to_name = no
		gold_cost = 300
		build_time = 360
		tax_income = 1.5
		culture_techpoints = 0.10
		tech_growth_modifier = 0.02
		ai_creation_factor = 100
		
		extra_tech_building_start = -1
	}
	ca_geb_temp_1_2 = {
		desc = ca_geb_temp_1_2_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3 
				ckplus_austerity = yes }
		upgrades_from = ca_geb_temp_1_1
		add_number_to_name = no
		gold_cost = 350
		build_time = 500
		tax_income = 3.0
		culture_techpoints = 0.15
		tech_growth_modifier = 0.02
		ai_creation_factor = 100
		
		extra_tech_building_start = 1.0
	}
	ca_geb_temp_1_3 = {
		desc = ca_geb_temp_1_3_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5
			    TECH_RELIGIOUS_CUSTOMS = 5 
				ckplus_austerity = yes }
		upgrades_from = ca_geb_temp_1_2
		add_number_to_name = no
		gold_cost = 400
		build_time = 650
		tax_income = 4.0
		culture_techpoints = 0.1
		tech_growth_modifier = 0.02
		ai_creation_factor = 100
		
		extra_tech_building_start = 1.0
	}
	ca_geb_temp_1_4 = {
		desc = ca_geb_temp_1_4_desc
			potential = {
			FROMFROM = { title = b_roma }
		}
		upgrades_from = ca_geb_temp_1_3
		add_number_to_name = no
		gold_cost = 400
		build_time = 650
		fort_level = 2.0
		tax_income = 3.0
		culture_techpoints = 1.0
		tech_growth_modifier = 0.02
		ai_creation_factor = 100
		
		extra_tech_building_start = 1.0
	}

		geb_history_2 = {    # Apostolischer Palst
		potential = {
			FROMFROM = { title = b_roma }
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
					TECH_CONSTRUCTION = 5 }
		desc = geb_history_2_desc
		gold_cost = 1000
		build_time = 2800
		add_number_to_name = no
		tax_income = 3.5
		liege_prestige = 1.0
		liege_piety = 0.5
		ai_creation_factor = 110

		extra_tech_building_start = 0.0
		culture_techpoints = 0.25
	}
		geb_history_4 = {  # Al Aqsa Moschee
		potential = {
			FROMFROM = { title = b_jerusalem }
		}
		desc = geb_history_4_desc
		gold_cost = 1000
		build_time = 2000 
		add_number_to_name = no
		tax_income = 2.5
		liege_piety = 1.5
		ai_creation_factor = 110

		extra_tech_building_start = 0.0
		culture_techpoints = 0.25
	}
	
		geb_history_5 = {  # Dritter Tempel
		potential = {
			FROMFROM = { title = b_jerusalem 
					}
			AND = { FROM = { trait = jude } }
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 4
					TECH_CONSTRUCTION = 4 }
		desc = geb_history_5_desc
		gold_cost = 1200
		build_time = 3200 
		add_number_to_name = no
		tax_income = 5.0
		liege_prestige = 3.0
		liege_piety = 2.5
		garrison_size = 0.50
		
		ai_creation_factor = 110

		extra_tech_building_start = 0.0
		culture_techpoints = 1.0
	}
		tp_geb_street_1 = {
		desc = tp_geb_street_1_desc
		trigger = { TECH_CITY_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
				TECH_TRADE_PRACTICES = 0
			    TECH_POPULAR_CUSTOMS = 0 
				ckplus_austerity = yes }
		add_number_to_name = no
		prerequisites = { ca_geb_temp_1_1 }
		gold_cost = 50
		build_time = 200
		tax_income = 1.0
		local_tax_modifier = 0.01
		tech_growth_modifier = 0.005
		culture_techpoints = 0.005
		economy_techpoints = 0.005

		ai_creation_factor = 120
		
		extra_tech_building_start = -1
	}


	tp_geb_street_2 = {
		desc = tp_geb_street_2_desc
		trigger = { TECH_CITY_CONSTRUCTION = 2
			    TECH_CONSTRUCTION = 2
				TECH_TRADE_PRACTICES = 2
			    TECH_POPULAR_CUSTOMS = 2 
				ckplus_austerity = yes }
		upgrades_from = tp_geb_street_1
		add_number_to_name = no
		prerequisites = { ca_geb_temp_1_2 }
		gold_cost = 150
		build_time = 450
		tax_income = 1.0
		local_tax_modifier = 0.01
		tech_growth_modifier = 0.005
		culture_techpoints = 0.005
		economy_techpoints = 0.005

		ai_creation_factor = 120
		
		extra_tech_building_start = 0
	}

	tp_geb_street_3 = {
		desc = tp_geb_street_3_desc
		trigger = { TECH_CITY_CONSTRUCTION = 4
			    TECH_CONSTRUCTION = 4
				TECH_TRADE_PRACTICES = 4
			    TECH_POPULAR_CUSTOMS = 4 
				ckplus_austerity = yes }
		upgrades_from = tp_geb_street_2
		add_number_to_name = no
		prerequisites = { ca_geb_temp_1_3 }
		gold_cost = 200
		build_time = 600
		tax_income = 1.0
		local_tax_modifier = 0.01
		tech_growth_modifier = 0.005
		culture_techpoints = 0.005
		economy_techpoints = 0.005

		ai_creation_factor = 120
		
		extra_tech_building_start = 0
	}

	tp_geb_street_4 = {
		desc = tp_geb_street_4_desc
		trigger = { TECH_CITY_CONSTRUCTION = 6
			    TECH_CONSTRUCTION = 6
				TECH_TRADE_PRACTICES = 6
			    TECH_POPULAR_CUSTOMS = 6 
				ckplus_austerity = yes }
		upgrades_from = tp_geb_street_3
		add_number_to_name = no
		prerequisites = { ca_geb_temp_1_3 }
		gold_cost = 300
		build_time = 800
		tax_income = 1.0
		local_tax_modifier = 0.01
		tech_growth_modifier = 0.005
		culture_techpoints = 0.005
		economy_techpoints = 0.005

		ai_creation_factor = 120
		
		extra_tech_building_start = 0
	}

	tp_geb_street_5 = {
		desc = tp_geb_street_5_desc
		trigger = { TECH_CITY_CONSTRUCTION = 7
			    TECH_CONSTRUCTION = 7
				TECH_TRADE_PRACTICES = 7
			    TECH_POPULAR_CUSTOMS = 7 
				ckplus_austerity = yes }
		upgrades_from = tp_geb_street_4
		add_number_to_name = no
		gold_cost = 400
		build_time = 1000
		tax_income = 1.0
		local_tax_modifier = 0.01
		tech_growth_modifier = 0.005
		culture_techpoints = 0.005
		economy_techpoints = 0.005

		ai_creation_factor = 120
		
		extra_tech_building_start = 0
	}


	tp_wall_q_1 = {	
		desc = tp_wall_q_1_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0
			    TECH_SIEGE_EQUIPMENT = 0 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		gold_cost = 50
		build_time = 182
		fort_level = 0.5
		ai_creation_factor = 82
		military_techpoints = 0.005
		
		extra_tech_building_start = 0.4
	}
	tp_wall_q_2 = {
		desc = tp_wall_q_2_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1
			    TECH_RELIGIOUS_CUSTOMS = 1
			    TECH_SIEGE_EQUIPMENT = 1 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_2 }
		upgrades_from = tp_wall_q_1
		gold_cost = 50
		build_time = 182
		fort_level = 0.5
		ai_creation_factor = 81
		military_techpoints = 0.005

		extra_tech_building_start = 0.8
	}	
	tp_wall_q_3 = {
		desc = ca_wall_q_3_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3
			    TECH_SIEGE_EQUIPMENT = 3 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_q_2
		gold_cost = 50
		build_time = 182
		fort_level = 0.5
		ai_creation_factor = 80
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_wall_q_4 = {
		desc = ca_wall_q_4_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5
			    TECH_RELIGIOUS_CUSTOMS = 5
			    TECH_SIEGE_EQUIPMENT = 5 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_q_3
		gold_cost = 100
		build_time = 365
		fort_level = 1
		ai_creation_factor = 79
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_wall_q_5 = {
		desc = ca_wall_q_5_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 7
			    TECH_CONSTRUCTION = 7
			    TECH_RELIGIOUS_CUSTOMS = 7
			    TECH_SIEGE_EQUIPMENT = 7 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_q_4
		gold_cost = 100
		build_time = 365
		fort_level = 1
		ai_creation_factor = 78
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}

	tp_wall_1 = {
		desc = ca_wall_1_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0 
				ckplus_austerity = yes }
		prerequisites = { ca_geb_temp_1_1 }
		gold_cost = 50
		build_time = 365
		fort_level = 0.5
		levy_size = 0.025
		tax_income = 0.2
		ai_creation_factor = 95
		military_techpoints = 0.005
		culture_techpoints = 0.001

		extra_tech_building_start = 0.5
	}
	tp_wall_2 = {
		desc = ca_wall_2_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 2
			    TECH_CONSTRUCTION = 2
			    TECH_RELIGIOUS_CUSTOMS = 2 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_1
		gold_cost = 50
		build_time = 547
		fort_level = 0.5
		levy_size = 0.025
		tax_income = 0.2
		ai_creation_factor = 94
		military_techpoints = 0.005
		culture_techpoints = 0.001

		extra_tech_building_start = 1.0
	}
	tp_wall_3 = {
		desc = tp_wall_3_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 4
			    TECH_CONSTRUCTION = 4
			    TECH_RELIGIOUS_CUSTOMS = 4 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_2
		prerequisites = { ca_geb_temp_1_2 }
		gold_cost = 100
		build_time = 730
		fort_level = 1.0
		levy_size = 0.05
		tax_income = 0.2
		ai_creation_factor = 93
		military_techpoints = 0.005
		culture_techpoints = 0.001

		extra_tech_building_start = 1.5
	}
	tp_wall_4 = {
		desc = tp_wall_4_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 6
			    TECH_CONSTRUCTION = 6
			    TECH_RELIGIOUS_CUSTOMS = 6 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_3
		gold_cost = 100
		build_time = 1095
		fort_level = 1.0
		levy_size = 0.05
		tax_income = 0.2
		ai_creation_factor = 92
		military_techpoints = 0.005
		culture_techpoints = 0.001

		extra_tech_building_start = 0.2
	}
	tp_wall_5 = {
		desc = tp_wall_5_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 8
			    TECH_CONSTRUCTION = 8
			    TECH_RELIGIOUS_CUSTOMS = 8 
				ckplus_austerity = yes }
		upgrades_from = tp_wall_4
		prerequisites = { ca_geb_temp_1_3 }
		gold_cost = 150
		build_time = 1460
		fort_level = 1.5
		levy_size = 0.075
		tax_income = 0.5
		ai_creation_factor = 91
		military_techpoints = 0.005
		culture_techpoints = 0.001

		extra_tech_building_start = 0.2
	}

	tp_monastery_1 = {
		desc = tp_monastery_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0 
				ckplus_austerity = yes }
		gold_cost = 150
		build_time = 547
		levy_size = 0.05
		garrison_size = 0.05
		ai_creation_factor = 96
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_monastery_2 = {
		desc = tp_monastery_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		upgrades_from = tp_monastery_1
		gold_cost = 200
		build_time = 730
		levy_size = 0.075
		garrison_size = 0.1
		ai_creation_factor = 95
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005
		
		extra_tech_building_start = 0.2
	} 
	tp_monastery_3 = {
		desc = tp_monastery_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 2
			    TECH_CONSTRUCTION = 2
			    TECH_RELIGIOUS_CUSTOMS = 2 
				ckplus_austerity = yes }
		upgrades_from = tp_monastery_2
		gold_cost = 300
		build_time = 1095
		levy_size = 0.1
		garrison_size = 0.15
		ai_creation_factor = 94
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	} 
	tp_monastery_4 = {
		desc = tp_monastery_2_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 4
			    TECH_CONSTRUCTION = 4
			    TECH_RELIGIOUS_CUSTOMS = 4 
				ckplus_austerity = yes }
		upgrades_from = tp_monastery_3
		gold_cost = 400
		build_time = 1460
		levy_size = 0.125
		garrison_size = 0.2
		ai_creation_factor = 93
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	} 
	tp_monastery_5 = {
		desc = tp_monastery_2_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 6
			    TECH_CONSTRUCTION = 6
			    TECH_RELIGIOUS_CUSTOMS = 6 
				ckplus_austerity = yes }
		upgrades_from = tp_monastery_4
		gold_cost = 500
		build_time = 2190
		levy_size = 0.15
		garrison_size = 0.25
		ai_creation_factor = 92
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_monastery_6 = {
		desc = tp_monastery_2_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 8
			    TECH_CONSTRUCTION = 8
			    TECH_RELIGIOUS_CUSTOMS = 8 
				ckplus_austerity = yes }
		upgrades_from = tp_monastery_5
		gold_cost = 500
		build_time = 2190
		levy_size = 0.15
		garrison_size = 0.25
		ai_creation_factor = 91
		add_number_to_name = no
		liege_piety = 0.05
		military_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	
	tp_barracks_1 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0
			    TECH_LIGHT_INFANTRY = 0 
				ckplus_austerity = yes }
		gold_cost = 100
		build_time = 365
		light_infantry = 60
		archers = 30
		ai_creation_factor = 94
		military_techpoints = 0.0025

		extra_tech_building_start = 0.5
	}
	tp_barracks_2 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0
			    TECH_LIGHT_INFANTRY = 0 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		upgrades_from = tp_barracks_1
		gold_cost = 120
		build_time = 547
		light_infantry = 65
		archers = 45
		ai_creation_factor = 93
		military_techpoints = 0.0025

		extra_tech_building_start = 1.0
	}
	tp_barracks_3 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1
			    TECH_RELIGIOUS_CUSTOMS = 1
			    TECH_LIGHT_INFANTRY = 1 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_2 }
		upgrades_from = tp_barracks_2
		gold_cost = 200
		build_time = 730
		light_infantry = 70
		archers = 60
		ai_creation_factor = 92
		military_techpoints = 0.0025

		extra_tech_building_start = 0.5
	}
	tp_barracks_4 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3
			    TECH_LIGHT_INFANTRY = 3 
				ckplus_austerity = yes }
		upgrades_from = tp_barracks_3
		gold_cost = 300
		build_time = 1095
		light_infantry = 75
		archers = 75
		ai_creation_factor = 91
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_barracks_5 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5
			    TECH_RELIGIOUS_CUSTOMS = 5
			    TECH_LIGHT_INFANTRY = 5 
				ckplus_austerity = yes }
		upgrades_from = tp_barracks_4
		gold_cost = 400
		build_time = 2190
		light_infantry = 85
		archers = 85
		ai_creation_factor = 90
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_barracks_6 = {
		desc = tp_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 7
			    TECH_CONSTRUCTION = 7
			    TECH_RELIGIOUS_CUSTOMS = 7
			    TECH_LIGHT_INFANTRY = 7 
				ckplus_austerity = yes }
		upgrades_from = tp_barracks_5
		gold_cost = 500
		build_time = 2190
		light_infantry = 95
		archers = 95
		ai_creation_factor = 89
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	
	tp_elite_barracks_1 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0
			    TECH_HEAVY_INFANTRY = 0 
				ckplus_austerity = yes }
		gold_cost = 100
		build_time = 365
		heavy_infantry = 45
		ai_creation_factor = 95
		military_techpoints = 0.005

		extra_tech_building_start = 0.5
	}
	tp_elite_barracks_2 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0
			    TECH_HEAVY_INFANTRY = 0 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		upgrades_from = tp_elite_barracks_1
		gold_cost = 120
		build_time = 730
		heavy_infantry = 55
		ai_creation_factor = 94
		military_techpoints = 0.005

		extra_tech_building_start = 1.0
	}
	tp_elite_barracks_3 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 2
			    TECH_CONSTRUCTION = 2
			    TECH_RELIGIOUS_CUSTOMS = 2
			    TECH_HEAVY_INFANTRY = 2 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_2 }
		upgrades_from = tp_elite_barracks_2
		gold_cost = 200
		build_time = 730
		heavy_infantry = 65
		ai_creation_factor = 93
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_elite_barracks_4 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 4
			    TECH_CONSTRUCTION = 4
			    TECH_RELIGIOUS_CUSTOMS = 4
			    TECH_HEAVY_INFANTRY = 4 
				ckplus_austerity = yes }
		upgrades_from = tp_elite_barracks_3
		gold_cost = 300
		build_time = 1095
		heavy_infantry = 75
		ai_creation_factor = 92
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_elite_barracks_5 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 6
			    TECH_CONSTRUCTION = 6
			    TECH_RELIGIOUS_CUSTOMS = 6
			    TECH_HEAVY_INFANTRY = 6 
				ckplus_austerity = yes }
		upgrades_from = tp_elite_barracks_4
		gold_cost = 400
		build_time = 2190
		heavy_infantry = 85
		ai_creation_factor = 91
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_elite_barracks_6 = {
		desc = tp_elite_barracks_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 8
			    TECH_CONSTRUCTION = 8
			    TECH_RELIGIOUS_CUSTOMS = 8
			    TECH_HEAVY_INFANTRY = 8 
				ckplus_austerity = yes }
		upgrades_from = tp_elite_barracks_5
		gold_cost = 500
		build_time = 2190
		heavy_infantry = 95
		ai_creation_factor = 90
		military_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	
	tp_town_1 = {
		desc = tp_town_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0 
				ckplus_austerity = yes }
		gold_cost = 100
		build_time = 365
		tax_income = 2
		ai_creation_factor = 98
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.3
	}
	tp_town_2 = {
		desc = tp_town_2_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0
			    TECH_RELIGIOUS_CUSTOMS = 0 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		upgrades_from = tp_town_1
		gold_cost = 120
		build_time = 547
		tax_income = 2
		ai_creation_factor = 96
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.6
	}
	tp_town_3 = {
		desc = tp_town_3_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1
			    TECH_RELIGIOUS_CUSTOMS = 1 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_2 }
		upgrades_from = tp_town_2
		gold_cost = 200
		build_time = 730
		tax_income = 2
		ai_creation_factor = 95
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_town_4 = {
		desc = tp_town_4_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3 
				ckplus_austerity = yes }
		upgrades_from = tp_town_3
		gold_cost = 300
		build_time = 1095
		tax_income = 2
		ai_creation_factor = 94
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_town_5 = {
		desc = tp_town_4_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5
			    TECH_RELIGIOUS_CUSTOMS = 5 
				ckplus_austerity = yes }
		upgrades_from = tp_town_4
		gold_cost = 400
		build_time = 2190
		tax_income = 2
		ai_creation_factor = 93
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	tp_town_6 = {
		desc = tp_town_5_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 7
			    TECH_CONSTRUCTION = 7
			    TECH_RELIGIOUS_CUSTOMS = 7 
				ckplus_austerity = yes }
		upgrades_from = tp_town_5
		gold_cost = 500
		build_time = 2190
		tax_income = 2
		ai_creation_factor = 92
		economy_techpoints = 0.005
		culture_techpoints = 0.005

		extra_tech_building_start = 0.2
	}
	
	tp_shipyard_1 = {
		desc = shipyard_desc
		port = yes
		trigger = { TECH_NAVAL = 1
			    TECH_CONSTRUCTION = 1
			    TECH_RELIGIOUS_CUSTOMS = 1 
				ckplus_austerity = yes }
		gold_cost = 100
		build_time = 365
		galleys = 6
		ai_creation_factor = 100
		economy_techpoints = 0.0025
		military_techpoints = 0.0025
		
		extra_tech_building_start = 0.4
	}
	
	tp_shipyard_2 = {
		desc = shipyard_desc
		port = yes
		trigger = { TECH_NAVAL = 2
			    TECH_CONSTRUCTION = 2
			    TECH_RELIGIOUS_CUSTOMS = 2 
				ckplus_austerity = yes }
		upgrades_from = tp_shipyard_1
		gold_cost = 100
		build_time = 730
		galleys = 7
		ai_creation_factor = 99
		economy_techpoints = 0.0025
		military_techpoints = 0.0025
		
		extra_tech_building_start = 0.4
	}
	
	tp_shipyard_3 = {
		desc = shipyard_desc
		port = yes
		trigger = { TECH_NAVAL = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3 
				ckplus_austerity = yes }
		upgrades_from = tp_shipyard_2
		gold_cost = 100
		build_time = 1095
		galleys = 8
		ai_creation_factor = 98
		economy_techpoints = 0.005
		military_techpoints = 0.005
		
		extra_tech_building_start = 0.4
	}
	
	tp_shipyard_4 = {
		desc = shipyard_desc
		port = yes
		trigger = { TECH_NAVAL = 4
			    TECH_CONSTRUCTION = 4
			    TECH_RELIGIOUS_CUSTOMS = 4 
				ckplus_austerity = yes }
		upgrades_from = tp_shipyard_3
		gold_cost = 100
		build_time = 1460
		galleys = 9
		ai_creation_factor = 97
		economy_techpoints = 0.005
		military_techpoints = 0.005
		
		extra_tech_building_start = 0.4
	}

	tp_school_1 = {
		desc = tp_school_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3
			    TECH_RELIGIOUS_CUSTOMS = 3 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_1 }
		gold_cost = 120
		build_time = 547
		
		tech_growth_modifier = 0.1
		culture_techpoints = 0.25
		
		ai_creation_factor = 93
		add_number_to_name = no
		liege_piety = 0.05

		extra_tech_building_start = 0.2
	}
	tp_school_2 = {
		desc = tp_school_1_desc
		trigger = { TECH_TEMPLE_CONSTRUCTION = 6
			    TECH_CONSTRUCTION = 6
			    TECH_RELIGIOUS_CUSTOMS = 6 
				ckplus_austerity = yes }
		prerequisites = { tp_wall_2 }
		upgrades_from = tp_school_1
		gold_cost = 120
		build_time = 547
		
		tech_growth_modifier = 0.2
		culture_techpoints = 0.75
		
		ai_creation_factor = 92
		add_number_to_name = no
		liege_piety = 0.05
		
		extra_tech_building_start = 0.2
	}
	# Hellenic Dedicated temples
	tp_shrine_zeus = {
		desc = tp_shrine_zeus_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_zeus }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		liege_prestige = 0.15
	}
	tp_shrine_poseidon = {
		desc = tp_shrine_poseidon_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_poseidon }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		local_build_time_modifier = -0.1
		local_build_cost_modifier = -0.1
	}
	tp_shrine_hades = {
		desc = tp_shrine_hades_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_hades }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		tax_income = 3
	}
	tp_shrine_hermes = {
		desc = tp_shrine_hermes_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_hermes }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		tradevalue = 15
	}
	tp_shrine_demeter = {
		desc = tp_shrine_demeter_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_demeter }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		economy_techpoints = 0.05
	}
	tp_shrine_athena = {
		desc = tp_shrine_athena_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_athena }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		military_techpoints = 0.05
	}
	tp_shrine_apollo = {
		desc = tp_shrine_apollo_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_apollo }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		culture_techpoints = 0.05
	}
	tp_shrine_arthemis = {
		desc = tp_shrine_arthemis_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_arthemis }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		liege_piety = 0.1
	}
	tp_shrine_ares = {
		desc = tp_shrine_ares_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_ares }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		levy_reinforce_rate = 0.05
	}
	tp_shrine_aphrodite = {
		desc = tp_shrine_aphrodite_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_aphrodite }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		local_revolt_risk = -0.1
	}
	tp_shrine_ephaestus = {
		desc = tp_shrine_ephaestus_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_ephaestus }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		fort_level = 0.4	
		tech_growth_modifier = 0.15
	}
	tp_shrine_hestia = {
		desc = tp_shrine_hestia_desc
		potential = { 
			FROMFROM = { has_title_flag = flag_dedicated_to_hestia }
			FROM = {  
				OR = {  
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			} 
		}
		gold_cost = 500
		build_time = 50
		
		ai_creation_factor = 92
		add_number_to_name = no
		land_morale = 0.05
	}
	tp_saint_shrine = {
		desc = tp_saint_shrine
		potential = {
			OR = {
				FROMFROM = {
					location = {
						OR = {
							has_province_modifier = tomb_of_a_saint
							has_province_modifier = pillaged_tomb_of_a_saint
						}
					}
				}
				has_building = tp_saint_shrine
			}
		}
		is_active_trigger = {
			custom_tooltip = {
				text = tp_saint_shrine_TT

				FROMFROM = {
					location = {
						has_province_modifier = tomb_of_a_saint
					}
				}
			}
			custom_tooltip = {
				text = tp_saint_shrine_TT_2

				FROMFROM = {
					show_scope_change = no
					owner = {
						religion_group = christian
					}
				}
			}
		}
		gold_cost = 150
		build_time = 210

		ai_creation_factor = 92
		add_number_to_name = no
		liege_piety = 0.3
		local_revolt_risk = -0.05
		tax_income = 2
	}

	#Monumental Bloodline buildings.
	tp_monumental_shrines_1 = { #Monumental Shrines
		desc = tp_monumental_shrines_1_desc
		potential = { 
			OR = {
				FROMFROM = { has_building = tp_monumental_shrines_1 } #Show the building only if it has been already built or if the owner has the proper bloodline to build it.
				FROM = {
					any_owned_bloodline = {
						has_bloodline_flag = bloodline_monumental
					}
				}
				FROM = {
					any_liege = {
						any_owned_bloodline = {
							has_bloodline_flag = bloodline_monumental 
						}	
					}
				}
			}
		}
		trigger = { 
			TECH_TEMPLE_CONSTRUCTION = 1
			custom_tooltip = {
				text = tooltip_has_monumental_bloodline
				hidden_tooltip = {
					OR = {
						FROM = {
							any_owned_bloodline = {
								has_bloodline_flag = bloodline_monumental 
							}
						}
						FROM = {
							any_liege = {
								any_owned_bloodline = {
									has_bloodline_flag = bloodline_monumental 
								}	
							}
						}
					}
				}
			}
		}
		is_active_trigger = {
			FROMFROM = {
				owner = {
					NOR = {
						is_tribal = yes
						is_nomadic = yes
					}
				}
			}
		}

		gold_cost = 125
		build_time = 365
		liege_piety = 0.05
		tax_income = 1
		
		add_number_to_name = yes

		ai_creation_factor = 88

		extra_tech_building_start = 1.2
	}
	tp_monumental_shrines_2 = { 
		desc = tp_monumental_shrines_2_desc
		trigger = { 
			TECH_TEMPLE_CONSTRUCTION = 3
			custom_tooltip = {
				text = tooltip_has_monumental_bloodline
				hidden_tooltip = {
					OR = {
						FROM = {
							any_owned_bloodline = {
								has_bloodline_flag = bloodline_monumental 
							}
						}
						FROM = {
							any_liege = {
								any_owned_bloodline = {
									has_bloodline_flag = bloodline_monumental 
								}	
							}
						}
					}
				}
			}
		}
		is_active_trigger = {
			FROMFROM = {
				owner = {
					NOR = {
						is_tribal = yes
						is_nomadic = yes
					}
				}
			}
		}
		upgrades_from = tp_monumental_shrines_1
		gold_cost = 250
		build_time = 560
		liege_piety = 0.1
		tax_income = 1
		
		add_number_to_name = yes
		
		ai_creation_factor = 88

		extra_tech_building_start = 1.2
	}
	tp_monumental_shrines_3 = { 
		desc = tp_monumental_shrines_3_desc
		trigger = { 
			TECH_TEMPLE_CONSTRUCTION = 5
			custom_tooltip = {
				text = tooltip_has_monumental_bloodline
				hidden_tooltip = {
					OR = {
						FROM = {
							any_owned_bloodline = {
								has_bloodline_flag = bloodline_monumental 
							}
						}
						FROM = {
							any_liege = {
								any_owned_bloodline = {
									has_bloodline_flag = bloodline_monumental 
								}	
							}
						}
					}
				}
			}
		}
		is_active_trigger = {
			FROMFROM = {
				owner = {
					NOR = {
						is_tribal = yes
						is_nomadic = yes
					}
				}
			}
		}
		upgrades_from = tp_monumental_shrines_2
		gold_cost = 250
		build_time = 560
		liege_piety = 0.15
		tax_income = 1
		
		add_number_to_name = yes
		
		ai_creation_factor = 88

		extra_tech_building_start = 1.2
	}
	tp_monumental_shrines_4 = { 
		desc = tp_monumental_shrines_4_desc
		trigger = { 
			TECH_TEMPLE_CONSTRUCTION = 7
			custom_tooltip = {
				text = tooltip_has_monumental_bloodline
				hidden_tooltip = {
					OR = {
						FROM = {
							any_owned_bloodline = {
								has_bloodline_flag = bloodline_monumental 
							}
						}
						FROM = {
							any_liege = {
								any_owned_bloodline = {
									has_bloodline_flag = bloodline_monumental 
								}	
							}
						}
					}
				}
			}
		}
		is_active_trigger = {
			FROMFROM = {
				owner = {
					NOR = {
						is_tribal = yes
						is_nomadic = yes
					}
				}
			}
		}
		upgrades_from = tp_monumental_shrines_3
		gold_cost = 250
		build_time = 560
		liege_piety = 0.25
		tax_income = 1
		
		add_number_to_name = yes
		
		ai_creation_factor = 88

		extra_tech_building_start = 1.2
	}
	
	ca_geb_terr_7_1 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0 
				ckplus_austerity = yes }
		desc = ca_geb_terr_7_6_desc
		gold_cost = 75
		build_time = 150

		tax_income = 0.5
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_7_2 = {
	potential = {

		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1 
				ckplus_austerity = yes }
		desc = ca_geb_terr_7_6_desc
		upgrades_from = ca_geb_terr_7_1
		gold_cost = 75
		build_time = 150

		tax_income = 0.5
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_7_3 = {
	potential = {

		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3 
				ckplus_austerity = yes }
		desc = ca_geb_terr_7_6_desc
		upgrades_from = ca_geb_terr_7_2
		gold_cost = 75
		build_time = 150
		tax_income = 0.5
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_7_4 = {
	potential = {
	
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5 
				ckplus_austerity = yes }
		desc = ca_geb_terr_7_6_desc
		upgrades_from = ca_geb_terr_7_3
		gold_cost = 75
		build_time = 150

		tax_income = 0.5
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_7_5 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5
			    TECH_RELIGIOUS_CUSTOMS = 4 
				ckplus_austerity = yes }
		add_number_to_name = no
		prerequisites = { ca_geb_terr_7_3 }
		desc = ca_geb_terr_7_7_desc
		gold_cost = 400
		build_time = 480
		liege_prestige = 1.0
		liege_piety = 1.5
		culture_techpoints = 0.5
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_8_1 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 0
			    TECH_CONSTRUCTION = 0 
				ckplus_austerity = yes }
		desc = ca_geb_terr_8_6_desc
		gold_cost = 150
		build_time = 300

		tax_income = 2
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_8_2 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 1
			    TECH_CONSTRUCTION = 1 
				ckplus_austerity = yes }
		desc = ca_geb_terr_8_6_desc
		upgrades_from = ca_geb_terr_8_1
		gold_cost = 170
		build_time = 300

		tax_income = 2
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_8_3 = {
	potential = {
		
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3 
				ckplus_austerity = yes }
		desc = ca_geb_terr_8_6_desc
		upgrades_from = ca_geb_terr_8_2
		gold_cost = 200
		build_time = 360
		tax_income = 2
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_8_4 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 5
			    TECH_CONSTRUCTION = 5 
				ckplus_austerity = yes }
		desc = ca_geb_terr_8_6_desc
		upgrades_from = ca_geb_terr_8_3
		gold_cost = 225
		build_time = 400

		tax_income = 2
		economy_techpoints = 0.005
		culture_techpoints = 0.005
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}

	ca_geb_terr_8_5 = {
	potential = {
			
		}
		trigger = { TECH_TEMPLE_CONSTRUCTION = 3
			    TECH_CONSTRUCTION = 3 
				ckplus_austerity = yes }
		add_number_to_name = no
		prerequisites = { ca_geb_terr_8_2 }
		desc = ca_geb_terr_8_7_desc
		gold_cost = 300
		build_time = 450
		liege_prestige = 1
		liege_piety = 0.5
		economy_techpoints = 0.01
		culture_techpoints = 0.5
		tax_income = 3
		ai_creation_factor = 110

		extra_tech_building_start = 99.5

	}
}