﻿break_international_treaties = {
	is_shown = {
		NOT = { is_country_type = decentralized }
		NOT = { is_country_type = unrecognized }
		NOT = { infamy >= infamy_threshold:pariah }
		NOT = { has_modifier = perpetual_neutrality }
		is_subject = no
		aggressive_diplomatic_plays_permitted = yes
		any_neighbouring_state = { #No point if there is no restriction to aggressive diplomacy
			owner = {
				has_modifier = perpetual_neutrality
			}
		}
	}

	possible = {
		OR = {
			ruler = { has_ideology = ideology:ideology_jingoist_leader }
			ruler = { has_ideology = ideology:ideology_vanguardist }
			ruler = { has_ideology = ideology:ideology_fascist }
			ruler = { has_ideology = ideology:ideology_bonapartist }
			ig:ig_armed_forces = {
				is_in_government = yes
			}
		}
		NOT = {
			ruler = {
				has_ideology = ideology:ideology_pacifist
			}
		}
	}

	when_taken = { #goal is to become international pariah so you can ignore all diplomatic considerations
		if = {
			limit = {
				infamy >= infamy_threshold:notorious
			}
			change_infamy = 55
		}
		else_if = {
			limit = {
				infamy >= infamy_threshold:infamous
			}
			change_infamy = 80
		}
		else = {
			change_infamy = 105
		}
	}

	ai_chance = {
		value = 0
	}
}

renounce_neutrality = {
	is_shown = {
		has_modifier = perpetual_neutrality
	}

	possible = {
		OR = {
			ruler = { has_ideology = ideology:ideology_jingoist_leader }
			ruler = { has_ideology = ideology:ideology_vanguardist }
			ruler = { has_ideology = ideology:ideology_fascist }
			AND = {
				is_at_war = yes
				any_country = {
					country_rank = rank_value:great_power
					has_war_with = ROOT
				}
			}
		}
		ig:ig_armed_forces = {
			is_in_government = yes
		}
	}

	when_taken = { #goal is to become international pariah so you can ignore all diplomatic considerations
		remove_modifier = perpetual_neutrality
	}

	ai_chance = {
		value = 100
	}
}