castle = {

	ca_carthport_0 = { #Ruined Port of Carthage
		potential = {
			FROMFROM = { title = b_cartaghe }
		}
		desc = ca_carthport_desc
		port = yes
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05
		
		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0
	}

	ca_carthport_1 = { #Restored Port of Carthage
		potential = {
			FROMFROM = { title = b_cartaghe }
		}
		desc = ca_carthport_desc
		port = yes
		trigger = { TECH_NAVAL = 2 }
		prerequisites = { ca_carthport_0 }
		upgrades_from = ca_carthport_0
		build_cost = 100
		build_time = 1460

		culture_techpoints = 0.05
		galleys = 50
		liege_prestige = 0.5
		monthly_character_prestige = 0.5

		ai_creation_factor = 0
		
		extra_tech_building_start = 8.0
	}

	ca_athens_acropolis = { # acropolis
		potential = {
			FROMFROM = { title = b_athens }
		}
		desc = ca_athens_acropolis_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.1
		liege_piety = 0.5
		monthly_character_piety = 0.5

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_abukir_pharos = { # great lighthouse of alexandria
		potential = {
			FROMFROM = { title = b_abukir }
			always = no
		}
		desc = ca_abukir_pharos_desc
		build_cost = 0
		build_time = 0

		fort_level = 1.0
		liege_prestige = 0.5
		monthly_character_prestige = 0.5

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_hal_maus = { # Mausoleum of Halicarnassus
		potential = {
			FROMFROM = { title = b_halikarnassos }
			always = no
		}
		desc = ca_hal_maus_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05
		liege_prestige = 0.25
		monthly_character_prestige = 0.25

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}


	ca_offa_dyke = {
		potential = {
			OR = {
				FROMFROM = { title = b_hereford }
				FROMFROM = { title = b_ludlow }
				FROMFROM = { title = b_chester }
				FROMFROM = { title = b_gloucester }
				FROMFROM = { title = b_malpas }
				FROMFROM = { title = b_halton }
				FROMFROM = { title = b_northwich }
				FROMFROM = { title = b_beeston }
				FROMFROM = { title = b_macclesfield }
				FROMFROM = { title = b_sandbach }
				FROMFROM = { title = b_nantwich }
				FROMFROM = { title = b_cirencester }
				FROMFROM = { title = b_bristol }
				FROMFROM = { title = b_winchcombe }
				FROMFROM = { title = b_sudeley }
				FROMFROM = { title = b_tewkesbury }
				FROMFROM = { title = b_cheltenham }
				FROMFROM = { title = b_hailes }
				FROMFROM = { title = b_st_ethelberts }
				FROMFROM = { title = b_leominster }
				FROMFROM = { title = b_archenfield }			
				FROMFROM = { title = b_ewyas_harold }
				FROMFROM = { title = b_clifford }
				FROMFROM = { title = b_ledbury }
				FROMFROM = { title = b_brobury }
				FROMFROM = { title = b_shrewsbury }
				FROMFROM = { title = b_wenlock }
				FROMFROM = { title = b_clun }
				FROMFROM = { title = b_bridgenorth }
				FROMFROM = { title = b_whitchurch }
				FROMFROM = { title = b_ostwestry }
				FROMFROM = { title = b_chirk }
			}
		}
		desc = offa_dyke_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		build_cost = 60
		build_time = 365

		fort_level = 1.0
		
		ai_creation_factor = 86

		extra_tech_building_start = 10.0
	}

	ca_con_palace = { # Sacred Palace
		potential = {
			FROMFROM = { title = b_constantinople }
		}
		desc = ca_con_palace_desc
		build_cost = 0
		build_time = 0

		economy_techpoints = 0.1
		liege_prestige = 0.5
		monthly_character_prestige = 0.5

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_hadrianwall_0 = { # Ruined Hadrian's Wall
		potential = { 
			OR = {
				FROMFROM = { title = b_bamburgh }
				FROMFROM = { title = b_norham }
				FROMFROM = { title = b_morpeth }
				FROMFROM = { title = b_hexham }
				FROMFROM = { title = b_newcastle }
				FROMFROM = { title = b_alnwick }
				FROMFROM = { title = b_lindisfarne }
				FROMFROM = { title = b_mitford }
				FROMFROM = { title = b_burgh }
				FROMFROM = { title = b_carlisle }
				FROMFROM = { title = b_gilsland }
				FROMFROM = { title = b_penrith }
				FROMFROM = { title = b_egremont }
				FROMFROM = { title = b_cockermouth }
				FROMFROM = { title = b_papcastlet }
				FROMFROM = { title = b_dacre }
			}
		}
		desc = hadrianwall_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05

		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0	
	}

	ca_hadrianwall_1 = { # Restored Hadrian's Wall
		potential = { 
			OR = {
				FROMFROM = { title = b_bamburgh }
				FROMFROM = { title = b_norham }
				FROMFROM = { title = b_morpeth }
				FROMFROM = { title = b_hexham }
				FROMFROM = { title = b_newcastle }
				FROMFROM = { title = b_alnwick }
				FROMFROM = { title = b_lindisfarne }
				FROMFROM = { title = b_mitford }
				FROMFROM = { title = b_burgh }
				FROMFROM = { title = b_carlisle }
				FROMFROM = { title = b_gilsland }
				FROMFROM = { title = b_penrith }
				FROMFROM = { title = b_egremont }
				FROMFROM = { title = b_cockermouth }
				FROMFROM = { title = b_papcastlet }
				FROMFROM = { title = b_dacre }
			}
		}
		desc = hadrianwall_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		prerequisites = { ca_hadrianwall_0 }
		upgrades_from = ca_hadrianwall_0
		build_cost = 100
		build_time = 730

		culture_techpoints = 0.05
		fort_level = 2.0
		garrison_size = 0.1		

		ai_creation_factor = 0

		extra_tech_building_start = 10.0	
	}

	ca_danevirke = {
		potential = {
			OR = {
				FROMFROM = { title = b_slesvig }
				FROMFROM = { title = b_sonderborg }
				FROMFROM = { title = b_hedeby }
				FROMFROM = { title = b_ribe }
				FROMFROM = { title = b_flensborg }
				FROMFROM = { title = b_tonder }
				FROMFROM = { title = b_aabenraa }
				FROMFROM = { title = b_haderslev }
				FROMFROM = { title = b_kolding }
			}
		}
		desc = danevirke_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		build_cost = 60
		build_time = 365

		fort_level = 1.0
		
		ai_creation_factor = 86

		extra_tech_building_start = 10.0
	}

	ca_stonehenge = {
		potential = {
			FROMFROM = { title = b_wilton }
			always = no
		}
		desc = ca_stonehenge_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.1
		liege_piety = 0.25
		monthly_character_piety = 0.25
		
		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_buddhas = {
		potential = {
			FROMFROM = { title = b_bamiyan }
		}
		desc = ca_buddhas_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.1
		liege_piety = 0.5
		monthly_character_piety = 0.5	
		
		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	
	ca_sam_mosque = { # Great Mosque of Samarra
		potential = {
			FROMFROM = { title = b_samarra }
		}
		desc = ca_sam_mosque_desc
		build_cost = 200
		build_time = 1460

		culture_techpoints = 0.1
		liege_piety = 0.5
		monthly_character_piety = 0.5

		ai_creation_factor = 86

		extra_tech_building_start = 2.0
	}


	ca_zeus_0 = { # Ruined Temple of Zeus
		potential = { 
			OR = {
				FROMFROM = { title = b_patras }
			}
		}
		desc = ca_zeus_desc
		build_cost = 0
		build_time = 0 

		culture_techpoints = 0.05
		liege_piety = 0.25
		monthly_character_piety = 0.25
		
		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0	
	}

	ca_zeus_1 = { # Restored Temple of Zeus
		potential = { 
			AND = {
				FROM = { religion = hellenic_pagan }
				FROMFROM = { title = b_patras }
			}
		}
		desc = ca_zeus_desc
		trigger = { TECH_CONSTRUCTION = 0 }
		prerequisites = { ca_zeus_0 }
		upgrades_from = ca_zeus_0
		build_cost = 200
		build_time = 1460

		culture_techpoints = 0.05
		liege_piety = 0.25
		monthly_character_piety = 0.25
		
		ai_creation_factor = 86

		extra_tech_building_start = 10.0
	}

	ca_newgrange = { # Newgrange
		potential = {
			FROMFROM = { title = b_ath_cliath }
		}
		desc = newgrange_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05
		liege_piety = 0.25
		monthly_character_piety = 0.25

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_con_library = { # Imperial Library of Constantinople
		potential = {
			FROMFROM = { title = b_constantinople }
		}
		desc = ca_con_library_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.1
		economy_techpoints = 0.1
		military_techpoints = 0.1

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_palacepalermo = {
		potential = {
				FROMFROM = { title = b_monreale }
		}
		desc = ca_palacepalermo_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 2 }
		build_cost = 200
		build_time = 1460

		economy_techpoints = 0.1
		liege_prestige = 0.5
		monthly_character_prestige = 0.5
		
		ai_creation_factor = 86

		extra_tech_building_start = 8.0
	}

	ca_goldengate = {
		potential = {
				FROMFROM = { title = b_kiev }
		}
		desc = ca_goldengate_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 2 }
		build_cost = 100
		build_time = 730

		fort_level = 2.0
		garrison_size = 0.1
		liege_prestige = 0.5
		monthly_character_prestige = 0.5
		
		ai_creation_factor = 86

		extra_tech_building_start = 8.0
	}
	
	ca_gibrock = {
		potential = {
				FROMFROM = { title = b_gibraltar }
		}
		desc = ca_gibrock_desc
		build_cost = 100
		build_time = 730

		fort_level = 2.0
		garrison_size = 0.1
		liege_prestige = 0.5
		monthly_character_prestige = 0.5
		
		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_con_apostles = {
		potential = {
			FROMFROM = { title = b_constantinople }
		}
		desc = ca_con_apostles_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.1
		liege_piety = 0.5
		monthly_character_piety = 0.5

		ai_creation_factor = 100

		extra_tech_building_start = 0.0
	}

	ca_alhambra1 = { #Alhambra
		potential = {
			FROMFROM = { title = b_granada }

		}
		desc = ca_alhamba1_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 1 }

		build_cost = 100
		build_time = 365

		garrison_size = 0.1
		fort_level = 1
		
		ai_creation_factor = 86

		extra_tech_building_start = 9.0
	}

	ca_alhambra2 = { # Alhambra
		potential = {
			FROMFROM = { title = b_granada }
		}
		desc = ca_alhambra2_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 3 }

		prerequisites = { ca_alhambra1 }
		upgrades_from = ca_alhambra1

		build_cost = 200
		build_time = 1460

		levy_size = 0.2
		garrison_size = 0.1
		fort_level = 1
		
		ai_creation_factor = 86

		extra_tech_building_start = 7.0
	}

	ca_alhambra3 = { #Outer Ward
		potential = {
			FROMFROM = { title = b_granada }
		}
		desc = ca_alhambra3_desc
		trigger = { TECH_CASTLE_CONSTRUCTION = 4 }

		prerequisites = { ca_alhambra2 }
		upgrades_from = ca_alhambra2

		build_cost = 200
		build_time = 1460

		economy_techpoints = 0.1
		liege_prestige = 0.5
		monthly_character_prestige = 0.5
		
		ai_creation_factor = 86

		extra_tech_building_start = 6.0
	}

	ca_lesserlimes_0 = { 
		potential = { 
			OR = {
				FROMFROM = { title = b_vlaardingen }
				FROMFROM = { title = b_leiden }
				FROMFROM = { title = b_amsterdam }
				FROMFROM = { title = b_sgravenshage }
				FROMFROM = { title = b_dordrecht }
				FROMFROM = { title = b_gouda }
				FROMFROM = { title = b_haarlem }
				FROMFROM = { title = b_muiden }
				FROMFROM = { title = b_utrecht }
				FROMFROM = { title = b_woerden }
				FROMFROM = { title = b_dorestad }
				FROMFROM = { title = b_gorinchem }
				FROMFROM = { title = b_zeist }
				FROMFROM = { title = b_buren }
				FROMFROM = { title = b_ijsselstein }
				FROMFROM = { title = b_oudewater }
				FROMFROM = { title = b_nijmegen }
				FROMFROM = { title = b_deventer }
				FROMFROM = { title = b_zutphen }
				FROMFROM = { title = b_arnhem }
				FROMFROM = { title = b_zwolle }
				FROMFROM = { title = b_kampen }
				FROMFROM = { title = b_bergh }
				FROMFROM = { title = b_bronckhorst }
				FROMFROM = { title = b_kleve }
				FROMFROM = { title = b_goch }
				FROMFROM = { title = b_rees }
				FROMFROM = { title = b_anholt }
				FROMFROM = { title = b_Xanten }
				FROMFROM = { title = b_wesel }
				FROMFROM = { title = b_isselburg }
				FROMFROM = { title = b_emmerich }
			}
		}
		desc = limes_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05

		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0	
	}

	ca_lesserlimes_1 = { # Restored Hadrian's Wall
		potential = { 
			OR = {
				FROMFROM = { title = b_vlaardingen }
				FROMFROM = { title = b_leiden }
				FROMFROM = { title = b_amsterdam }
				FROMFROM = { title = b_sgravenshage }
				FROMFROM = { title = b_dordrecht }
				FROMFROM = { title = b_gouda }
				FROMFROM = { title = b_haarlem }
				FROMFROM = { title = b_muiden }
				FROMFROM = { title = b_utrecht }
				FROMFROM = { title = b_woerden }
				FROMFROM = { title = b_dorestad }
				FROMFROM = { title = b_gorinchem }
				FROMFROM = { title = b_zeist }
				FROMFROM = { title = b_buren }
				FROMFROM = { title = b_ijsselstein }
				FROMFROM = { title = b_oudewater }
				FROMFROM = { title = b_nijmegen }
				FROMFROM = { title = b_deventer }
				FROMFROM = { title = b_zutphen }
				FROMFROM = { title = b_arnhem }
				FROMFROM = { title = b_zwolle }
				FROMFROM = { title = b_kampen }
				FROMFROM = { title = b_bergh }
				FROMFROM = { title = b_bronckhorst }
				FROMFROM = { title = b_kleve }
				FROMFROM = { title = b_goch }
				FROMFROM = { title = b_rees }
				FROMFROM = { title = b_anholt }
				FROMFROM = { title = b_Xanten }
				FROMFROM = { title = b_wesel }
				FROMFROM = { title = b_isselburg }
				FROMFROM = { title = b_emmerich }
			}
		}
		desc = limes_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		prerequisites = { ca_lesserlimes_0 }
		upgrades_from = ca_lesserlimes_0
		build_cost = 100
		build_time = 730

		culture_techpoints = 0.05
		fort_level = 2.0
		garrison_size = 0.1		

		ai_creation_factor = 0

		extra_tech_building_start = 10.0	
	}

	ca_greaterlimes_0 = { 
		potential = { 
			OR = {
				FROMFROM = { title = b_koln }
				FROMFROM = { title = b_dietz }
				FROMFROM = { title = b_berg }
				FROMFROM = { title = b_brauweiler }
				FROMFROM = { title = b_bonn }
				FROMFROM = { title = b_saffenburg }
				FROMFROM = { title = b_mark }
				FROMFROM = { title = b_hochstaden }
				FROMFROM = { title = b_nassau }
				FROMFROM = { title = b_wetzlar }
				FROMFROM = { title = b_fulda }
				FROMFROM = { title = b_marburg }
				FROMFROM = { title = b_katzenelnbogen }
				FROMFROM = { title = b_hersfeld }
				FROMFROM = { title = b_falkenstein }
				FROMFROM = { title = b_isenburg }
			}
		}
		desc = limes_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05

		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0	
	}

	ca_greaterlimes_1 = { # Restored Hadrian's Wall
		potential = { 
			OR = {
				FROMFROM = { title = b_koln }
				FROMFROM = { title = b_dietz }
				FROMFROM = { title = b_berg }
				FROMFROM = { title = b_brauweiler }
				FROMFROM = { title = b_bonn }
				FROMFROM = { title = b_saffenburg }
				FROMFROM = { title = b_mark }
				FROMFROM = { title = b_hochstaden }
				FROMFROM = { title = b_nassau }
				FROMFROM = { title = b_wetzlar }
				FROMFROM = { title = b_fulda }
				FROMFROM = { title = b_marburg }
				FROMFROM = { title = b_katzenelnbogen }
				FROMFROM = { title = b_hersfeld }
				FROMFROM = { title = b_falkenstein }
				FROMFROM = { title = b_isenburg }
			}
		}
		desc = limes_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		prerequisites = { ca_greaterlimes_0 }
		upgrades_from = ca_greaterlimes_0
		build_cost = 100
		build_time = 730

		culture_techpoints = 0.05
		fort_level = 2.0
		garrison_size = 0.1		

		ai_creation_factor = 0

		extra_tech_building_start = 10.0	
	}

	ca_raetianlimes_0 = { 
		potential = { 
			OR = {
				FROMFROM = { title = b_schweinfurt }
				FROMFROM = { title = b_wurzburg }
				FROMFROM = { title = b_aschaffenburg }
				FROMFROM = { title = b_marienberg }
				FROMFROM = { title = b_hammelburg }
				FROMFROM = { title = b_schwarzenberg }
				FROMFROM = { title = b_theiheim }
				FROMFROM = { title = b_mainderheim }
				FROMFROM = { title = b_ansbach }
				FROMFROM = { title = b_babenberg }
				FROMFROM = { title = b_bamberg }
				FROMFROM = { title = b_cadolzburg }
				FROMFROM = { title = b_colmberg }
				FROMFROM = { title = b_roth }
				FROMFROM = { title = b_uffenheim }
				FROMFROM = { title = b_crailsheim }
				FROMFROM = { title = b_nurnberg }
				FROMFROM = { title = b_furth }
				FROMFROM = { title = b_ellwangen }
				FROMFROM = { title = b_kulmbach }
				FROMFROM = { title = b_hohenburg }
				FROMFROM = { title = b_nordlingen }
				FROMFROM = { title = b_eichstatt }
				FROMFROM = { title = b_erlangen }
				FROMFROM = { title = b_wittelsbach }
				FROMFROM = { title = b_regensburg }
				FROMFROM = { title = b_landshut }
				FROMFROM = { title = b_ingolstadt }
				FROMFROM = { title = b_rohrbach }
				FROMFROM = { title = b_cham }
				FROMFROM = { title = b_kirchroth }
			}
		}
		desc = limes_desc
		build_cost = 0
		build_time = 0

		culture_techpoints = 0.05

		ai_creation_factor = 100
		
		extra_tech_building_start = 0.0	
	}

	ca_raetianlimes_1 = { # Restored Hadrian's Wall
		potential = { 
			OR = {
				FROMFROM = { title = b_schweinfurt }
				FROMFROM = { title = b_wurzburg }
				FROMFROM = { title = b_aschaffenburg }
				FROMFROM = { title = b_marienberg }
				FROMFROM = { title = b_hammelburg }
				FROMFROM = { title = b_schwarzenberg }
				FROMFROM = { title = b_theiheim }
				FROMFROM = { title = b_mainderheim }
				FROMFROM = { title = b_ansbach }
				FROMFROM = { title = b_babenberg }
				FROMFROM = { title = b_bamberg }
				FROMFROM = { title = b_cadolzburg }
				FROMFROM = { title = b_colmberg }
				FROMFROM = { title = b_roth }
				FROMFROM = { title = b_uffenheim }
				FROMFROM = { title = b_crailsheim }
				FROMFROM = { title = b_nurnberg }
				FROMFROM = { title = b_furth }
				FROMFROM = { title = b_ellwangen }
				FROMFROM = { title = b_kulmbach }
				FROMFROM = { title = b_hohenburg }
				FROMFROM = { title = b_nordlingen }
				FROMFROM = { title = b_eichstatt }
				FROMFROM = { title = b_erlangen }
				FROMFROM = { title = b_wittelsbach }
				FROMFROM = { title = b_regensburg }
				FROMFROM = { title = b_landshut }
				FROMFROM = { title = b_ingolstadt }
				FROMFROM = { title = b_rohrbach }
				FROMFROM = { title = b_cham }
				FROMFROM = { title = b_kirchroth }
			}
		}
		desc = limes_desc
		trigger = { TECH_FORTIFICATIONS_CONSTRUCTION = 0 }
		prerequisites = { ca_raetianlimes_0 }
		upgrades_from = ca_raetianlimes_0
		build_cost = 100
		build_time = 730

		culture_techpoints = 0.05
		fort_level = 2.0
		garrison_size = 0.1		

		ai_creation_factor = 0

		extra_tech_building_start = 10.0	
	}

}