realm_wonder_or_upgrade_has_flag_inspires_learning_trigger = {
	OR = {
		any_realm_wonder_upgrade = {
    		is_active = yes
			has_wonder_upgrade_flag = inspires_learning
		}
		any_realm_wonder = {
    		is_active = yes
			has_wonder_flag = inspires_learning
		}
	}
}

realm_wonder_or_upgrade_has_flag_burial_ground_trigger = {
	OR = {
		any_realm_wonder_upgrade = {
    		is_active = yes
			has_wonder_upgrade_flag = burial_ground
		}
		any_realm_wonder = {
    		is_active = yes
			has_wonder_flag = burial_ground
		}
	}
}

is_using_ocean_background_trigger = {
	OR = {
		AND = {
			is_coastal = yes
			OR = {
				has_wonder = wonder_statue_ruler
				has_wonder = wonder_statue_horse
				has_wonder = wonder_fortress
				has_wonder = wonder_palace
				has_wonder = wonder_mausoleum
				has_wonder = wonder_pyramid
				has_wonder = wonder_aztec_pyramid
			}
		}
		OR = {
			has_wonder = wonder_harbor
			has_wonder = wonder_lighthouse
			has_wonder = wonder_lighthouse_alexandria
		}
	}
}

important_character_to_root_trigger = {
	OR = {
		is_important_character_to = ROOT
		is_immune_to_pruning = yes
		historical = yes
	}
}

# For checking how many courtiers you have left before they start costing Court Expenses.
court_is_min_crowded_trigger = {
	free_court_slots < -1
}
court_is_mid_crowded_trigger = {
	free_court_slots < -5	
}
court_is_max_crowded_trigger = {
	free_court_slots < -10
}
