temple = {
####PAGAN####
#BALTIC
	tp_holy_site_romuva_temple = {
		desc = tp_holy_site_romuva_temple_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 371 # Sambia
				}
				is_holy_site = baltic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_baltic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			371 = {
				is_pagan_baltic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_baltic = yes
				liege = {
					is_pagan_baltic = yes
				}
			}
		}
	}
	tp_holy_site_dieva_sanctuary = {
		desc = tp_holy_site_dieva_sanctuary_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 576 # Bryansk
				}
				is_holy_site = baltic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_baltic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			576 = {
				is_pagan_baltic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_baltic = yes
				liege = {
					is_pagan_baltic = yes
				}
			}
		}
	}
	tp_holy_site_perkunas_forest = {
		desc = tp_holy_site_perkunas_forest_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 374 # Zemigalians
				}
				is_holy_site = baltic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_baltic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			374 = {
				is_pagan_baltic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_baltic = yes
				liege = {
					is_pagan_baltic = yes
				}
			}
		}
	}
	tp_holy_site_laima_grove = {
		desc = tp_holy_site_laima_grove_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 304 # Rugen
				}
				is_holy_site = baltic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_baltic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			304 = {
				is_pagan_baltic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_baltic = yes
				liege = {
					is_pagan_baltic = yes
				}
			}
		}
	}
	tp_holy_site_gabija_temple = {
		desc = tp_holy_site_gabija_temple_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 425 # Podlasie
				}
				is_holy_site = baltic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_baltic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			425 = {
				is_pagan_baltic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_baltic = yes
				liege = {
					is_pagan_baltic = yes
				}
			}
		}
	}
#CELTIC
	tp_holy_site_stonehenge = {
		desc = tp_holy_site_stonehenge_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 23 # Wiltshire
				}
				is_holy_site = celtic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_celtic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			23 = {
				is_pagan_celtic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_celtic = yes
				liege = {
					is_pagan_celtic = yes
				}
			}
		}
	}
	tp_holy_site_lia_fail = {
		desc = tp_holy_site_lia_fail_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 8 # Meath
				}
				is_holy_site = celtic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_celtic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			8 = {
				is_pagan_celtic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_celtic = yes
				liege = {
					is_pagan_celtic = yes
				}
			}
		}
	}
	tp_holy_site_callanish_stones = {
		desc = tp_holy_site_callanish_stones_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 35 # Innse Gall
				}
				is_holy_site = celtic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_celtic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			35 = {
				is_pagan_celtic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_celtic = yes
				liege = {
					is_pagan_celtic = yes
				}
			}
		}
	}
	tp_holy_site_bryn_gwyn_stones = {
		desc = tp_holy_site_bryn_gwyn_stones_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 64 # Gwynedd
				}
				is_holy_site = celtic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						AND = {
							is_real_pagan_celtic = yes
						}
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			64 = {
				is_pagan_celtic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_celtic = yes
				liege = {
					is_pagan_celtic = yes
				}
			}
		}
	}
	tp_holy_site_carnac_stones = {
		desc = tp_holy_site_carnac_stones_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 105 # Vannes
				}
				is_holy_site = celtic_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_celtic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			105 = {
				is_pagan_celtic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_celtic = yes
				liege = {
					is_pagan_celtic = yes
				}
			}
		}
	}
#GERMANIC
	tp_holy_site_irminsul = {
		desc = tp_holy_site_irminsul_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 257 # Braunschweig
				}
				is_holy_site = german_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_germanic = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			257 = {
				is_pagan_germanic = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_germanic = yes
				liege = {
					is_pagan_germanic = yes
				}
			}
		}
	}
#CONTINENTAL GERMANIC
	tp_holy_site_nerthus_glade = {
		desc = tp_holy_site_nerthus_glade_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 266 # Sjaelland
				}
				is_holy_site = german_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_german = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			266 = {
				is_pagan_german = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_german = yes
				liege = {
					is_pagan_german = yes
				}
			}
		}
	}
	tp_holy_site_grove_nehalennia = {
		desc = tp_holy_site_grove_nehalennia_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 79 # Zeeland
				}
				is_holy_site = german_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_german = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			79 = {
				is_pagan_german = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_german = yes
				liege = {
					is_pagan_german = yes
				}
			}
		}
	}
	tp_holy_site_thunaer_oak = {
		desc = tp_holy_site_thunaer_oak_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 314 # Nurnberg
				}
				is_holy_site = german_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_german = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			314 = {
				is_pagan_german = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_german = yes
				liege = {
					is_pagan_german = yes
				}
			}
		}
	}
	tp_holy_site_wayland_smith = {
		desc = tp_holy_site_wayland_smith_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 22 # Oxford
				}
				is_holy_site = german_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_german = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			22 = {
				is_pagan_german = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_german = yes
				liege = {
					is_pagan_german = yes
				}
			}
		}
	}
#NORSE
	tp_holy_site_njorthr_glade = {
		desc = tp_holy_site_njorthr_glade_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 266 # Sjaelland
				}
				is_holy_site = norse_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_norse = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			266 = {
				is_pagan_norse = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_norse = yes
				liege = {
					is_pagan_norse = yes
				}
			}
		}
	}
	tp_holy_site_frey_temple = {
		desc = tp_holy_site_frey_temple_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 290 # Uppland
				}
				is_holy_site = norse_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_norse = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			290 = {
				is_pagan_norse = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_norse = yes
				liege = {
					is_pagan_norse = yes
				}
			}
		}
	}
	tp_holy_site_thor_temple = {
		desc = tp_holy_site_thor_temple_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 277 # Naumadal
				}
				is_holy_site = norse_pagan #only need to check one religion
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_norse = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			277 = {
				is_pagan_norse = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_norse = yes
				liege = {
					is_pagan_norse = yes
				}
			}
		}
	}
	tp_holy_site_waterfall_of_gods = {
		desc = tp_holy_site_waterfall_of_gods_desc
		add_number_to_name = no
		liege_piety = 0.5
		gold_cost = 250
		build_time = 2190
		ai_creation_factor = 100
		potential = {
			FROMFROM = {
				location = {
					province_id = 1534 # Norduland Eystra
				}
				is_holy_site = norse_pagan #only need to check one religion
			}
			OR = {
				ai = no
				year = 1000
			}
		}
		trigger = {
			FROM = {
				custom_tooltip = {
					text = follows_correct_religion
					hidden_tooltip = {
						is_real_pagan_norse = yes
					}
				}
				hidden_tooltip = {
					OR = {
						ai = no
						NOT = { has_character_modifier = ai_austerity }
					}
				}
			}
			1534 = {
				is_pagan_norse = yes
			}
		}
		is_active_trigger = {
			holder_scope = {
				is_pagan_norse = yes
				liege = {
					is_pagan_norse = yes
				}
			}
		}
	}
}