﻿eotm_open_configuration_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
	}
	desc = eotm_open_configuration_decision_desc
	selection_tooltip = eotm_open_configuration_decision_tooltip
	confirm_text = eotm_open_configuration_decision_confirm
	decision_group_type = major

	ai_check_interval = 0

	is_shown = {
		always = no
	}

	effect = {
		custom_tooltip = eotm_open_configuration_decision_effects
		hidden_effect = {
			if = {
				limit = { has_variable = eotm_lifestyle_auto_spend_test_enabled }
				debug_log = "EOTM_LIFESTYLE_AUTO_SPEND_DIRECT_TOGGLE_OFF"
				remove_variable = eotm_lifestyle_auto_spend_test_enabled
				remove_character_flag = eotm_lifestyle_auto_spend_alerts_hidden
				remove_variable = eotm_test_perk_point_notice_active
				eotm_lifestyle_auto_spend_clear_result_effect = yes
			}
			else = {
				debug_log = "EOTM_LIFESTYLE_AUTO_SPEND_DIRECT_TOGGLE_ON"
				set_variable = { name = eotm_lifestyle_auto_spend_test_enabled value = 1 }
				add_character_flag = eotm_lifestyle_auto_spend_alerts_hidden
				remove_variable = eotm_test_perk_point_notice_active
				eotm_lifestyle_auto_spend_clear_result_effect = yes
				trigger_event = { id = eotm_report_events.0200 }
			}
		}
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
	}
}

eotm_start_lifestyle_point_alert_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
	}
	desc = eotm_start_lifestyle_point_alert_decision_desc
	selection_tooltip = eotm_start_lifestyle_point_alert_decision_tooltip
	confirm_text = eotm_start_lifestyle_point_alert_decision_confirm
	decision_group_type = major

	ai_check_interval = 0

	is_shown = {
		always = no
	}

	is_valid = {
		is_ai = no
		is_ruler = yes
	}

	effect = {
		custom_tooltip = eotm_start_lifestyle_point_alert_decision_effects
		hidden_effect = {
			debug_log = "EOTM_LIFESTYLE_POINT_ALERT_DECISION_USED"
			trigger_event = { id = eotm_report_events.0200 }
		}
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
	}
}

eotm_enable_lifestyle_auto_spend_test_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
	}
	desc = eotm_enable_lifestyle_auto_spend_test_decision_desc
	selection_tooltip = eotm_enable_lifestyle_auto_spend_test_decision_tooltip
	confirm_text = eotm_enable_lifestyle_auto_spend_test_decision_confirm
	decision_group_type = major

	ai_check_interval = 0

	is_shown = {
		is_ai = no
		is_ruler = yes
		NOT = { has_variable = eotm_lifestyle_auto_spend_test_enabled }
	}

	effect = {
		custom_tooltip = eotm_enable_lifestyle_auto_spend_test_decision_effects
		hidden_effect = {
			debug_log = "EOTM_LIFESTYLE_AUTO_SPEND_ENABLE_DECISION_USED"
			set_variable = { name = eotm_lifestyle_auto_spend_test_enabled value = 1 }
			add_character_flag = eotm_lifestyle_auto_spend_alerts_hidden
			remove_variable = eotm_test_perk_point_notice_active
			eotm_lifestyle_auto_spend_clear_result_effect = yes
			trigger_event = { id = eotm_report_events.0200 }
		}
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
	}
}

eotm_disable_lifestyle_auto_spend_test_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
	}
	desc = eotm_disable_lifestyle_auto_spend_test_decision_desc
	selection_tooltip = eotm_disable_lifestyle_auto_spend_test_decision_tooltip
	confirm_text = eotm_disable_lifestyle_auto_spend_test_decision_confirm
	decision_group_type = major

	ai_check_interval = 0

	is_shown = {
		is_ai = no
		is_ruler = yes
		has_variable = eotm_lifestyle_auto_spend_test_enabled
	}

	effect = {
		custom_tooltip = eotm_disable_lifestyle_auto_spend_test_decision_effects
		hidden_effect = {
			debug_log = "EOTM_LIFESTYLE_AUTO_SPEND_DISABLE_DECISION_USED"
			remove_variable = eotm_lifestyle_auto_spend_test_enabled
			remove_character_flag = eotm_lifestyle_auto_spend_alerts_hidden
			eotm_lifestyle_auto_spend_clear_result_effect = yes
		}
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
	}
}
