﻿###########################
# IRANIAN Events
###########################

add_namespace = persia

# Send Netherlands defensive pact
country_event = {
	id = persia.1
	title = persia.1.t
	desc = persia.1.d
	picture = GFX_report_event_polish_tanks_01
	
	is_triggered_only = yes
	
	option = {
		name = persia.1.a
		release = KUR
		KUR = {
			division_template = {
				name = "People's Militia"
				priority = 1
				division_names_group = KUR_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
				support = {
				}
				is_locked = yes
				force_allow_recruiting = yes
			}
			random_owned_controlled_state = {
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Uprising Militia\" division_template = \"People's Militia\" start_experience_factor = 0.3" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Uprising Militia\" division_template = \"People's Militia\" start_experience_factor = 0.3" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Uprising Militia\" division_template = \"People's Militia\" start_experience_factor = 0.3" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Uprising Militia\" division_template = \"People's Militia\" start_experience_factor = 0.3" 
					owner = PREV
				}
			}
		}
	}

}

country_event = {
	id = persia.2
	title = persia.2.t
	desc = persia.2.d
	picture = GFX_report_event_polish_tanks_01
	
	is_triggered_only = yes
	
	option = {
		name = persia.2.a
		PER = {
			set_autonomy = { target = IRQ autonomy_state = autonomy_dominion }
		}
	}

	option = {
		name = persia.2.b
		IRQ = {
			start_civil_war = {
				ruling_party = fascism
				# Original country's ideology changes to communism
				ideology = ROOT
				# Breakaway gets old ideology of ROOT
				size = 0.5
				states = {
					675 676
				}
				keep_political_leader = yes
				keep_political_party_members = yes
			}
		}
		PER = {
			random_other_country = {
				limit = {
					original_tag = IRQ
					not = { has_government = fascism }
				}
				PER = {
					set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
				}
			}
		}
		random_other_country = {
			limit = {
				original_tag = IRQ
				not = { has_government = fascism }
			}
			declare_war_on = IRQ
		}
	}

}
