﻿chg_found_hegemony_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
	}
	decision_group_type = major
	desc = chg_found_hegemony_decision_desc
	sort_order = 76
	ai_check_interval_by_tier = {
		barony = 0
		county = 0
		duchy = 0
		kingdom = 0
		empire = 60
		hegemony = 0
	}

	is_shown = {
		highest_held_title_tier = tier_empire
		is_landed = yes
		is_confederation_member = no
		NOT = { has_game_rule = off_custom_kingdoms }
	}

	is_valid = {
		prestige_level >= 5
		# Expand the OR/AND tree, retaining a separate live check for each leaf.
		chg_realm_requirement_trigger = yes
		custom_description = {
			text = chg_primary_empire_tt
			primary_title = { chg_eligible_empire_trigger = yes }
		}
		# Vanilla destroys a ceremonial liege title under a hegemony (TGP).
		custom_description = {
			text = chg_no_ceremonial_liege_tt
			NOT = { tgp_realm_has_ceremonial_liege_trigger = yes }
		}
		trigger_if = {
			limit = { government_has_flag = government_is_nomadic }
			has_realm_law = nomadic_authority_5
		}
		rule_title_creation_imperial_power_projection_title_creation_trigger = yes
	}

	is_valid_showing_failures_only = {
		top_liege = this
		is_available_adult = yes
		is_at_war = no
	}

	# Triple the custom empire cost, retaining vanilla treasury/nomad treatment.
	cost = {
		gold = {
			value = 3600
			if = {
				limit = {
					OR = {
						government_has_flag = government_is_nomadic
						has_treasury = yes
					}
				}
				multiply = 0
			}
		}
		treasury = {
			value = 3600
			if = {
				limit = { has_treasury = no }
				multiply = 0
			}
		}
		prestige = 7500
		piety = {
			value = 1800
			if = {
				limit = { government_has_flag = government_is_nomadic }
				multiply = 0
			}
		}
	}

	effect = {
		chg_create_custom_hegemony_effect = yes
	}
	ai_potential = { always = yes }
	ai_will_do = { base = 100 }
}
