# Great Pillars
tribal = {
	tb_great_pillar_norse = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		levy_reinforce_rate = 0.05
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_norse
		}

		is_active_trigger = {
			# Holder and liege must be of the founding religion, otherwise the building becomes inactive.
			FROM = {
				is_tribal = yes
				religion = norse_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = norse_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_tengri = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		levy_reinforce_rate = 0.05
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_tengri
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = tengri_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = tengri_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_slavic = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		land_morale = 0.1

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_slavic
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = slavic_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = slavic_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_baltic = {
		potential = {
			has_province_flag = flag_great_pillar_baltic
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = baltic_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = baltic_pagan
					}
				}
			}
		}
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		land_morale = 0.1

		ai_creation_factor = 92
		add_number_to_name = no
	}

	tb_great_pillar_finnish = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		land_morale = 0.1

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_finnish
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = finnish_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = finnish_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_west_african = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_west_african
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = west_african_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = west_african_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_aztec = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_aztec
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = aztec_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = aztec_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_bon = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.75

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_bon
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = bon_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = bon_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_zun = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_zun
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = zun_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = zun_pagan
					}
				}
			}
		}
	}

	tb_great_pillar_hellenic = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.1
		culture_techpoints = 0.1
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_hellenic
		}

		is_active_trigger = {
			FROM = {
				is_tribal = yes
				religion = hellenic_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						is_tribal = yes
						religion = hellenic_pagan
					}
				}
			}
		}
	}

}

temple = { # Historical Irminsul's holding is set as a temple.
	tp_great_pillar_norse = {
		gold_cost = 350
		build_time = 3650
		ai_creation_factor = 92

		liege_piety = 0.25
		levy_reinforce_rate = 0.05
		land_morale = 0.05

		add_number_to_name = no

		potential = {
			has_province_flag = flag_great_pillar_norse_irminsul
		}

		is_active_trigger = {
			FROM = {
				religion = norse_pagan

				trigger_if = {
					limit = { independent = no }

					liege = {
						religion = norse_pagan
					}
				}
			}
		}
	}
}
