pte_prev_is_behind_this_in_tech = {
	custom_trigger_tooltip = {
		tooltip = pte_prev_is_behind_this_in_tech_$type$_$amount$
		PREV = {
			variable_arithmetic_trigger = {
				export_to_variable = {
					which = our_tech_level
					value = trigger_value:$type$_tech
				}
				export_to_variable = {
					which = their_tech_level
					value = trigger_value:$type$_tech
					who = PREV
				}
				change_variable = { which = our_tech_level value = $amount$ }
				check_variable = { which = their_tech_level which = our_tech_level }
			}
		}
	}
}

pte_is_hegemon_of_type = {
	is_hegemon = yes
	is_hegemon_of_type = $type$
}

pte_has_moveable_monument_usable_by = {
	OR = {
		AND = {
			has_great_project = { type = stonehenge }
			$who$ = {
				any_owned_province = {
					pte_can_use_monument_trigger = { stonehenge = yes }
				}
			}
		}
		AND = {
			has_great_project = { type = buddha_statues }
			$who$ = {
				any_owned_province = {
					pte_can_use_monument_trigger = { buddha_statues = yes }
				}
			}
		}
		AND = {
			has_great_project = { type = moai }
			$who$ = {
				any_owned_province = {
					pte_can_use_monument_trigger = { moai = yes }
				}
			}
		}
		AND = {
			has_great_project = { type = inukshuk }
			$who$ = {
				any_owned_province = {
					pte_can_use_monument_trigger = { inukshuk = yes }
				}
			}
		}
		AND = {
			has_great_project = { type = gomateshwara_statue }
			$who$ = {
				any_owned_province = {
					pte_can_use_monument_trigger = { gomateshwara_statue = yes }
				}
			}
		}
	}
}

pte_can_use_monument_trigger = {
	[[stonehenge]
		if = {
			limit = {
				always = $stonehenge$
			}
			if = {
				limit = {
					has_global_flag = extended_timeline_mod
				}
				religion = druidism
				has_owner_religion_or_secularism = yes
			}
			else = {
				OR = {
					province_is_or_accepts_religion_group = {
						religion_group = pagan
					}
					AND = {
						culture = english
						province_is_or_accepts_culture = yes
					}
				}
			}
		}
	]
	[[buddha_statues]
		if = {
			limit = {
				always = $buddha_statues$
			}
			NOT = { has_global_flag = extended_timeline_mod }
			province_is_buddhist_or_accepts_buddhism = yes
		}
	]
	[[moai]
		if = {
			limit = {
				always = $moai$
			}
			NOT = { has_global_flag = extended_timeline_mod }
			culture = polynesian
			province_is_or_accepts_culture = yes
		}
	]
	[[inukshuk]
		if = {
			limit = {
				always = $inukshuk$
			}
			always = yes
		}
	]
	[[gomateshwara_statue]
		if = {
			limit = {
				always = $gomateshwara_statue$
			}
			NOT = { has_global_flag = extended_timeline_mod }
			province_is_or_accepts_religion_group = {
				religion_group = dharmic
			}
		}
	]
}