﻿found_great_guards_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/ep3_decision_varangian_guard.dds"
	}
	ai_check_interval = 60

	sort_order = 100

	desc = found_great_guards_decision_desc
	selection_tooltip = found_great_guards_decision_tooltip
	decision_group_type = roman

	is_shown = {
		culture = {
			OR = {
				has_cultural_pillar = language_japanese
				has_cultural_pillar = language_imperial_court
			}
		}
		primary_title.tier >= tier_empire
		NOT = {
			# You have not already founded it for your current title
			primary_title = { has_variable = founded_oban_guard }
		}
	}
	
	is_valid = {
		OR = {
			prestige_level >= 3
			any_realm_county = { culture = culture:imperial_family }
			any_realm_county = { culture = culture:aristocrats }
		}
	}

	is_valid_showing_failures_only = {
		is_at_war = no
		NOT = { exists = involved_activity }
		is_imprisoned = no
	}

	cost = {
		prestige = 1000
		gold = major_gold_max_value
	}

	effect = {
		primary_title = { set_variable = founded_great_guards }
		send_interface_toast = {
			title = unlocked_great_guards_desc_tt
			type = event_toast_effect_neutral
			left_icon = root
			custom_tooltip = unlocked_great_guards_desc
		}
		create_character_memory = {
			type = found_varangian_memory
		}
	}

	ai_potential = {
		has_title = title:e_nmih_japan
	}

	ai_will_do = {
		base = 100
	}
}