﻿# Presentation only: read the result after the existing policy effect.
# this = human ruler; existing saved scopes provide the two spouses and ruler.
# These helpers do not create pacts or change pending/completed choice history.
nmt_notify_auto_alliance_effect = {
	if = {
		limit = { is_allied_to = $RULER$ }
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = nmt_info_alliance_title
			custom_tooltip = nmt_info_alliance_details
			left_icon = $RULER$
		}
	}
	else = {
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = nmt_info_alliance_unconfirmed_title
			custom_tooltip = nmt_info_alliance_unconfirmed_details
			left_icon = $RULER$
		}
	}
}

nmt_notify_auto_truce_effect = {
	if = {
		limit = {
			has_truce = $RULER$
			$RULER$ = { has_truce = scope:nmt_player }
		}
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = nmt_info_truce_title
			custom_tooltip = nmt_info_truce_details
			left_icon = $RULER$
		}
	}
	else = {
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = nmt_info_truce_unconfirmed_title
			custom_tooltip = nmt_info_truce_unconfirmed_details
			left_icon = $RULER$
		}
	}
}

# Succession: the predecessor's choice for this in-law was renewed. $CHOICE$ = alliance / truce / neither
nmt_notify_renewed_effect = {
	send_interface_toast = {
		type = event_toast_effect_neutral
		title = nmt_info_renewed_$CHOICE$_title
		custom_tooltip = nmt_info_renewed_$CHOICE$_details
		left_icon = $RULER$
	}
}

nmt_notify_auto_neither_effect = {
	send_interface_toast = {
		type = event_toast_effect_neutral
		title = nmt_info_neither_title
		custom_tooltip = nmt_info_neither_details
		left_icon = $RULER$
	}
}
