﻿GG_changelog_alert_interaction = {
	interface_priority = 120
	common_interaction = yes
	icon = mmm_gg_icon

	category = interaction_debug_main

	desc = GG_changelog_alert_interaction_desc

	send_name = GG_changelog_alert_interaction_send

	is_shown = {
		scope:actor = scope:recipient
		NOT = { has_global_variable = GG_v1_1_7 }
	}

	is_valid_showing_failures_only = {
		
	}

	can_send = {

	}
	
	is_highlighted = {

	}

	auto_accept = {
	}

	on_send = {
		set_global_variable = GG_v1_1_2
		set_global_variable = GG_v1_1_3
		set_global_variable = GG_v1_1_4
		set_global_variable = GG_v1_1_6
		set_global_variable = GG_v1_1_7
	}

	on_auto_accept = {
		
	}

	on_accept = {
		if = {
			limit = { NOT = { has_global_variable = GG_is_loaded }}
			set_global_variable = GG_is_loaded
		}
		scope:actor = { add_to_list = debug }
		every_in_list = {
			list = debug
			custom = GG_changelog_alert_introduction
		}
		if = {
			limit = { NOT = { has_global_variable = GG_v1_1_7 }}
			every_in_list = {
				list = debug
				custom = GG_v1_1_7_changelog
				custom_tooltip = GG_v1_1_7_changelog_patch
				custom_tooltip = GG_v1_1_7_changelog_1
				custom_tooltip = GG_v1_1_7_changelog_2
			}
		}
		if = {
			limit = { NOT = { has_global_variable = GG_v1_1_6 }}
			every_in_list = {
				list = debug
				custom = GG_v1_1_6_changelog
				custom_tooltip = GG_v1_1_6_changelog_patch
				custom_tooltip = GG_v1_1_6_changelog_1
			}
		}
		if = {
			limit = { NOT = { has_global_variable = GG_v1_1_4 }}
			every_in_list = {
				list = debug
				custom = GG_v1_1_4_changelog
				custom_tooltip = GG_v1_1_4_changelog_patch
				custom_tooltip = GG_v1_1_4_changelog_1
			}
		}
		if = {
			limit = { NOT = { has_global_variable = GG_v1_1_3 }}
		}
		if = {
			limit = { NOT = { has_global_variable = GG_v1_1_2 }}
		}
	}
		
	on_decline = {
		
	}
}
