IRQ_iraq_war = {
	IRQ_war_phase_one = { # First 90 days
		fire_only_once = yes
		activation = {
			IRQ = {
				has_war_with = USA
			}
		}
		available = {
			OR = {
				488 = {
					is_controlled_by = IRQ
				}
				USA = {
					controls_province = 11266
				}
				MNF = {
					controls_province = 11266
				}
			}
		}
		days_mission_timeout = 180
		is_good = no
		cancel_trigger = {
			IRQ = {
				is_subject = yes
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_war_phase_one"
			if = {
				limit = {
					488 = {
						is_controlled_by = IRQ
					}
				}
				488 = {
					transfer_state_to = IRQ
					add_core_of = IRQ
				}
				USA = {
					country_event = {
						id = iraq_war.8
						days = 1
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						USA = {
							controls_province = 11266
						}
						MNF = {
							controls_province = 11266
						}
					}
				}
				IRQ = {
					country_event = iraqi_MNF.2
				}
			}
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_war_phase_one"
			USA = {
				country_event = {
					id = iraq_war.5
					days = 1
				}
			}
		}
	}
	# Phase 2
	IRQ_war_phase_two = { # Last 60 days
		fire_only_once = yes
		activation = {
			USA = {
				has_country_flag = USA_IRQ_war_extended
			}
		}
		available = {
			OR = {
				488 = {
					is_controlled_by = IRQ
				}
				USA = {
					controls_province = 11266
				}
				MNF = {
					controls_province = 11266
				}
			}
		}
		days_mission_timeout = 90
		is_good = no
		cancel_trigger = {
			IRQ = {
				is_subject = yes
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_war_phase_two"
			if = {
				limit = {
					488 = {
						is_controlled_by = IRQ
					}
				}
				488 = {
					transfer_state_to = IRQ
					add_core_of = IRQ
				}
				USA = {
					country_event = {
						id = iraq_war.8
						days = 1
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						USA = {
							controls_province = 11266
						}
						MNF = {
							controls_province = 11266
						}
					}
				}
				IRQ = {
					country_event = iraqi_MNF.2
				}
			}
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_war_phase_two"
			USA = {
				country_event = {
					id = iraq_war.8
					days = 1
				}
			}
		}
	}
}

IRQ_preparation_for_the_war = {
	IRQ_restore_the_iron_ring = {
		visible = {
			171 = {
				is_owned_and_controlled_by = IRQ
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		days_remove = 15
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_restore_the_iron_ring"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_restore_the_iron_ring"
			clr_country_flag = IRQ_doing_decision
			set_temp_variable = { treasury_change = -8.50 }
			modify_treasury_effect = yes
			newline = yes
			custom_effect_tooltip = IRQ_build_iron_ring
			hidden_effect = {
				1124 = {
					add_building_construction = {
						type = bunker
						level = 2
						province = 14951
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						province = 14401
						instant_build = yes
					}
				}
				1123 = {
					add_building_construction = {
						type = bunker
						level = 2
						province = 14518
						instant_build = yes
					}
				}
				1122 = {
					add_building_construction = {
						type = bunker
						level = 2
						province = 11222
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						province = 11204
						instant_build = yes
					}
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
	IRQ_golden_guard_divisions = {
		days_remove = 15
		fire_only_once = yes
		available = {
			has_idea = defence_05
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_golden_guard_divisions"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_golden_guard_divisions"
			clr_country_flag = IRQ_doing_decision
			set_temp_variable = { treasury_change = -7.50 }
			modify_treasury_effect = yes
			newline = yes
			add_equipment_to_stockpile = {
				type = cnc_equipment_1
				amount = -700
			}
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = -5000
			}
			newline = yes
			custom_effect_tooltip = IRQ_create_golden_guard
			hidden_effect = {
				division_template = {
					name = "Golden Guard Division"
					regiments = {
						Special_Forces = { x = 0 y = 0 }
						Special_Forces = { x = 0 y = 1 }
						Special_Forces = { x = 0 y = 2 }
						Special_Forces = { x = 0 y = 3 }
						Special_Forces = { x = 1 y = 0 }
						Special_Forces = { x = 1 y = 1 }
						Special_Forces = { x = 1 y = 2 }
						Special_Forces = { x = 1 y = 3 }
					}
					priority = 2
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st. Golden Guard\" division_template = \"Golden Guard Division\" start_experience_factor = 1.0"
						owner = ROOT
						count = 1
					}
					create_unit = {
						division = "name = \"2nd. Golden Guard\" division_template = \"Golden Guard Division\" start_experience_factor = 1.0"
						owner = ROOT
						count = 1
					}
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
	IRQ_conscription_in_schools = {

		days_remove = 15
		fire_only_once = yes
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_conscription_in_schools"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_conscription_in_schools"
			clr_country_flag = IRQ_doing_decision
			add_ideas = IRQ_conscriptions_in_schools
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
	IRQ_faddayean_saddam = {
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		days_remove = 15
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_faddayean_saddam"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_faddayean_saddam"
			clr_country_flag = IRQ_doing_decision
			add_ideas = IRQ_fadayyene_saddam
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
	# move shit underground
	IRQ_weapons_concealment = {
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		days_remove = 15
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_weapons_concealment"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_weapons_concealment"
			clr_country_flag = IRQ_doing_decision
			set_temp_variable = { treasury_change = -16.50 }
			modify_treasury_effect = yes
			newline = yes
			167 = {
				add_building_construction = {
					type = rocket_site
					level = 1
					instant_build = yes
				}
			}
			newline = yes
			168 = {
				add_building_construction = {
					type = rocket_site
					level = 1
					instant_build = yes
				}
			}
			newline = yes
			if = {
				limit = { nuclear_grant_allowed = yes }
				add_equipment_to_stockpile = {
					type = nuclear_missile_equipment_3
					amount = 75
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
	IRQ_contract_the_MEK = {
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_only_one_at_a_time_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		days_remove = 15
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_contract_the_MEK"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_contract_the_MEK"
			clr_country_flag = IRQ_doing_decision
			set_temp_variable = { treasury_change = -8.25 }
			modify_treasury_effect = yes
			newline = yes
			custom_effect_tooltip = IRQ_contract_mek
			hidden_effect = {
				division_template = {
					name = "MEK Tip-e Piade Nezam"
					priority = 0
					template_counter = 0
					is_locked = yes
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 0 y = 2 }
						Militia_Bat = { x = 0 y = 3 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st. MEK Tip-e Piade Nezam\" division_template = \"MEK Tip-e Piade Nezam\""
						count = 1
						owner = IRQ
					}
					create_unit = {
						division = "name = \"2nd. MEK Tip-e Piade Nezam\" division_template = \"MEK Tip-e Piade Nezam\""
						count = 1
						owner = IRQ
					}
					create_unit = {
						division = "name = \"3rd. MEK Tip-e Piade Nezam\" division_template = \"MEK Tip-e Piade Nezam\""
						count = 1
						owner = IRQ
					}
					create_unit = {
						division = "name = \"4th. MEK Tip-e Piade Nezam\" division_template = \"MEK Tip-e Piade Nezam\""
						count = 1
						owner = IRQ
					}
					create_unit = {
						division = "name = \"5th. MEK Tip-e Piade Nezam\" division_template = \"MEK Tip-e Piade Nezam\""
						count = 1
						owner = IRQ
					}
				}
			}
			newline = yes
			set_temp_variable = { percent_change = -5 }
			set_temp_variable = { tag_index = PER }
			set_temp_variable = { influence_target = IRQ }
			change_influence_percentage = yes
			newline = yes
			PER = {
				add_opinion_modifier = { target = IRQ modifier = recent_actions_negative }
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 10
				has_global_flag = IRQ_BAATHIST_STATE_FOCUS_PATH
			}
		}
	}
}
IRQ_economic_union_menu = {
	IRQ_invite_to_economic_union_targeted_decision = {
		visible = { has_country_flag = economic_union_formed_iraq }
		days_re_enable = 180
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_to_economic_union_targeted_decision"
			every_country = {
				limit = {
					has_idea = faction_resistance_axis_member
				}
				country_event = iraqi_events.11
			}
		}
		ai_will_do = {
			base = 2
		}
	}
	IRQ_expel_economic_union_members_decision = {
		visible = { has_country_flag = economic_union_formed_iraq }
		cost = 50
		days_re_enable = 180
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_members_in_union_TT
				check_variable = {
					number_of_iraq_economic_union_members > 1
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_expel_economic_union_members_decision"
			every_country = {
				limit = {
					has_country_flag = joined_iraqi_economic_union
					NOT = { original_tag = IRQ }
				}
				country_event = iraqi_events.14
			}
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 3
				has_stability < 0.40
			}
		}
	}
}

# The Iraqi Constitution
IRQ_the_constitution = {
	IRQ_constitution_draft_government_type = { # Islamic Republic, or Secular?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_government_type"
			country_event = iraq_war.10
		}
	}

	IRQ_constitution_draft_languages = { # One Langauge, or Several?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution has_country_flag = IRQ_article_2 }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_languages"
			country_event = iraq_war.111
		}
	}

	IRQ_constitution_draft_nationalism = { # Prohibit Nationalism, or Permit it with Restrictions?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution has_country_flag = IRQ_article_3 }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_nationalism"
			country_event = iraq_war.12
		}
	}

	IRQ_constitution_draft_democratic_form = { # Presidential Republic, or Parliamentary Democracy?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution has_country_flag = IRQ_article_4 }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_democratic_form"
			country_event = iraq_war.14
		}
	}

	IRQ_constitution_draft_militias = { # Permit Militias, or Prohibit them?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution has_country_flag = IRQ_article_5 }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_militias"
			country_event = iraq_war.15
		}
	}

	IRQ_constitution_draft_identity = { # One Identity, or a Melting Pot?
		fire_only_once = yes
		activation = { has_completed_focus = IRQ_the_constitution has_country_flag = IRQ_article_6 }
		available = {
			always = no
		}
		days_mission_timeout = 40
		is_good = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_constitution_draft_identity"
			country_event = iraq_war.16
		}
	}
}

IRQ_civil_war_mechanic = {
	IRQ_start_negotiations_shias = {
		days_remove = 15
		fire_only_once = yes
		visible = {
			NOT = {
				OR = {
					has_country_flag = IRQ_shias_allied
					has_country_flag = IRQ_war_with_shias
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_start_negotiations_shias"
			country_event = iraq_civil_war.6
		}
		ai_will_do = {
			base = 100
		}
	}
	IRQ_request_coalition_forces = {
		days_remove = 75
		days_re_enable = 180
		custom_cost_trigger = {
			has_air_experience > 19
		}
		custom_cost_text = air_xp_20
		available = {
			has_air_experience > 19.99
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_coalition_forces"
			add_timed_idea = {
				idea = IRQ_air_support_granted
				days = 60
			}
			hidden_effect = {
				air_experience = -20
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_coalition_forces"
			custom_effect_tooltip = IRQ_request_airstrike
		}
		ai_will_do = {
			base = 25
		}
	}
	IRQ_request_awakening_council_militias = {
		days_remove = 60
		fire_only_once = yes
		custom_cost_trigger = {
			has_army_experience > 34
		}
		custom_cost_text = army_xp_35
		available = {
			has_army_experience > 34.99
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_awakening_council_militias"
			hidden_effect = {
				army_experience = -35
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_awakening_council_militias"
			custom_effect_tooltip = IRQ_al_sahwa
			add_to_variable = { var = IRQ_government_troops value = 50000 }
			clamp_variable = { var = IRQ_government_troops min = 0 max = 1000000 }
			add_to_variable = { var = IRQ_government_readiness value = -8 }
			clamp_variable = { var = IRQ_government_readiness min = 40 max = 100 }
		}
		ai_will_do = {
			base = 25
		}
	}
	IRQ_recruitment_campaign = {
		days_remove = 50
		days_re_enable = 50
		custom_cost_trigger = {
			has_equipment = {
				infantry_weapons_type > 499
			}
		}
		custom_cost_text = IRQ_assualt

		available = {
			has_equipment = {
				infantry_weapons_type > 499
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_recruitment_campaign"
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = -500
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_recruitment_campaign"
			custom_effect_tooltip = IRQ_increase_readiness_by_2
			add_to_variable = { var = IRQ_government_readiness value = 2 }
			clamp_variable = { var = IRQ_government_readiness min = 40 max = 100 }
		}
		ai_will_do = {
			base = 25
		}
	}
	IRQ_militarize_police_force = {
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_militarize_police_force"
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 14500
			}
			add_equipment_to_stockpile = {
				type = cnc_equipment_1
				amount = 7400
			}
			newline = yes
			set_temp_variable = { treasury_change = -15.50 }
			modify_treasury_effect = yes
			newline = yes
			add_stability = -0.05
			newline = yes
			if = {
				limit = {
					NOT = {
						has_idea = police_05
					}
				}
				increase_policing_budget = yes
				block_police_decrease = yes
			}
		}
		ai_will_do = {
			base = 25
		}
	}
}

# Ba'athist specific political decisions
IRQ_political_decisions = {
	IRQ_leave_socialist_union = {
		days_remove = 25
		fire_only_once = yes
		visible = {
			has_country_flag = IRQ_leave_socialist_union
			has_autonomy_state = autonomy_socialist_union
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_leave_socialist_union"
			PER = {
				set_autonomy = {
					target = IRQ
					autonomous_state = autonomy_free
					end_wars = no
				}
				country_event = iranian_focus.95
			}
		}
		ai_will_do = {
			base = 0
			modifier = {
				NOT = {
					neutrality_neutral_communism_are_in_power = yes
				}
				add = 10
			}
		}
	}
	IRQ_mek_revolt_trig = {
		days_remove = 25
		fixed_random_seed = yes
		fire_only_once = yes
		war_with_on_remove = PER
		highlight_states = {
			highlight_state_targets = {
				state = 408
				state = 1139
				state = 1138
			}
		}
		available = {
			NOT = {
				PER = {
					emerging_anarchist_communism_are_in_power = yes
				}
			}
		}
		visible = {
			has_completed_focus = IRQ_antagonize_iran
			nationalist_fascist_are_in_power = yes
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_mek_revolt_trig"
			custom_effect_tooltip = IRQ_mek_revolts_TT
			hidden_effect = {
				create_dynamic_country = {
					original_tag = PER
					set_country_flag = PER_mojahded_is_here
					copy_tag = PER
					set_cosmetic_tag = PER_mek_flag
					set_country_flag = is_IRAQ
					mark_formed_country_formable = yes
					set_popularities = {
						communism = 100
					}
					set_politics = {
						ruling_party = communism
						last_election = "1997.6.8"
						election_frequency = 48
						elections_allowed = no
					}
					start_politics_input = yes
					set_variable = { party_pop_array^5 = 1 } #anarchist_communism
					### Ruling Party
					set_variable = { ruling_party = 5 }
					startup_politics = yes
					# Leader
					create_country_leader = {
						name = "Massoud Rajavi"
						picture = "massoudi.dds"
						ideology = anarchist_communism
						traits = {
							emerging_anarchist_communism
						}
					}
					load_focus_tree = { tree = iran_focus keep_completed = yes }
				}
				408 = { transfer_state_to = MOJ }
				1138 = { transfer_state_to = MOJ }
				1139 = { transfer_state_to = MOJ }
				MOJ = {
					division_template = {
						name = "NLA Tip-e Piade Nezam"
						priority = 0
						template_counter = 0
						regiments = {
							Militia_Bat = { x = 0 y = 0 }
							Militia_Bat = { x = 0 y = 1 }
							Militia_Bat = { x = 0 y = 2 }
							Militia_Bat = { x = 0 y = 3 }
						}
						support = {
							L_Recce_Comp = { x = 0 y = 0 }
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"NLA Tip-e Piade Nezam\" division_template = \"NLA Tip-e Piade Nezam\""
							count = 25
							owner = MOJ
						}
					}
					declare_war_on = {
						target = PER
						type = puppet_wargoal_focus
					}
				}
				PER = { set_country_flag = IRQ_mek_revolted_already }
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_the_blood_quran = {
		days_remove = 25
		fixed_random_seed = yes
		visible = {
			nationalist_fascist_are_in_power = yes
		}
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_the_blood_quran"
			random_list = {
				50 = {
					set_temp_variable = { party_popularity_increase = 0.10 }
					set_temp_variable = { temp_outlook_increase = 0.10 }
					change_relative_party_popularity = yes
				}
				50 = {
					set_temp_variable = { party_popularity_increase = -0.075 }
					set_temp_variable = { temp_outlook_increase = -0.055 }
					change_relative_party_popularity = yes
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_smuggle_goods_from_jordan = {
		fixed_random_seed = no
		days_remove = 25
		fire_only_once = yes
		available = {
			country_exists = JOR
		}
		visible = {
			nationalist_fascist_are_in_power = yes
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_smuggle_goods_from_jordan"
			random_list = {
				20 = {
					increase_corruption = yes
				}
				80 = {
					set_temp_variable = { treasury_change = 77.85 }
					modify_treasury_effect = yes
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_al_salam_palace = {
		days_remove = 25
		fire_only_once = yes
		visible = {
			nationalist_fascist_are_in_power = yes
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_al_salam_palace"
			557 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			newline = yes
			set_temp_variable = { treasury_change = -3.50 }
			modify_treasury_effect = yes
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_arrest_muqtada = {
		days_remove = 25
		fire_only_once = yes
		visible = {
			nationalist_fascist_are_in_power = yes
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_arrest_muqtada"
			set_temp_variable = { party_index = 20 }
			set_temp_variable = { party_popularity_increase = -0.075 }
			change_relative_party_popularity = yes
			newline = yes
			custom_effect_tooltip = IRQ_saddam_rage_lower_by_3_TT
			hidden_effect = {
				add_to_variable = { var = IRQ_saddam_pissboy value = -0.03 }
				clamp_variable = { var = IRQ_saddam_pissboy min = 0 max = 0.50 }
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_recall_nsa_bahrain = {
		visible = {
			BHR = {
				is_subject_of = IRQ
			}
			624 = {
				is_owned_and_controlled_by = USA
			}
			nationalist_fascist_are_in_power = yes
		}
		days_remove = 25
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_recall_nsa_bahrain"
			624 = {
				transfer_state_to = BHR
			}
			newline = yes
			USA = {
				country_event = iraqi_events.37
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Communist
	IRQ_commie_paper = {
		visible = {
			has_completed_focus = IRQ_our_voice
			neutrality_neutral_communism_are_in_power = yes
		}
		days_remove = 25
		cost = 40
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_commie_paper"
			set_country_flag = IRQ_news_paper2
			set_temp_variable = { party_index = 19 }
			set_temp_variable = { party_popularity_increase = 0.045 }
			set_temp_variable = { temp_outlook_increase = 0.05 }
			change_relative_party_popularity = yes
		}
		ai_will_do = {
			base = 10
		}
	}
	# Occupation Zones
	IRQ_request_british_withdrawal = {
		days_remove = 380
		fire_only_once = yes
		visible = {
			country_exists = BOZ
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_british_withdrawal"
			ENG = {
				country_event = {
					id = iraqi_MNF.4
					days = 3
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_request_polish_withdrawal = {
		days_remove = 380
		fire_only_once = yes
		visible = {
			country_exists = POZ
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_polish_withdrawal"
			POL = {
				country_event = {
					id = iraqi_MNF.4
					days = 3
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

# Regional Ba'athism Decisions
IRQ_regional_baathism_decisions = {
	IRQ_appoint_control_syria = {
		visible = {
			country_exists = SBP
		}
		available = {
			country_exists = SBP
			SBP = {
				has_war = no
			}
		}
		days_remove = 90
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_appoint_control_syria"
			custom_effect_tooltip = IRQ_puppet_syria_TT
			hidden_effect = {
				if = {
					limit = {
						has_global_flag = GAME_RULE_allow_colored_puppets
					}
					set_autonomy = {
						target = SBP
						autonomy_state = autonomy_autonomous_state_colored
						end_wars = yes
						end_civil_wars = yes
					}
				}
				else = {
					set_autonomy = {
						target = SBP
						autonomy_state = autonomy_autonomous_state
						end_wars = yes
						end_civil_wars = yes
					}
				}
				SBP = {
					create_country_leader = {
						name = "Izzat Ibrahim Al-Douri"
						picture = "Izzat_Ibrahim_al_Douri.dds"
						ideology = Nat_Populism
						traits = {
							nationalist_Nat_Populism
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Jordan
	IRQ_appoint_control_jordan = {
		visible = {
			country_exists = JBP
		}
		available = {
			country_exists = JBP
			JBP = {
				has_war = no
			}
		}
		days_remove = 90
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_appoint_control_jordan"
			custom_effect_tooltip = IRQ_puppet_jordan_TT
			hidden_effect = {
				if = {
					limit = {
						has_global_flag = GAME_RULE_allow_colored_puppets
					}
					set_autonomy = {
						target = JBP
						autonomy_state = autonomy_autonomous_state_colored
						end_wars = yes
						end_civil_wars = yes
					}
				}
				else = {
					set_autonomy = {
						target = JBP
						autonomy_state = autonomy_autonomous_state
						end_wars = yes
						end_civil_wars = yes
					}
				}
				JBP = {
					create_country_leader = {
						name = "Akram Al-Homsi"
						picture = "akram_al_hmsi.dds"
						ideology = Nat_Fascism
						traits = {
							nationalist_Nat_Fascism
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Assert Control over Egypt
	IRQ_appoint_control_egypt = {
		visible = {
			country_exists = EBP
		}
		available = {
			country_exists = EBP
			EBP = {
				has_war = no
			}
		}
		days_remove = 90
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_appoint_control_egypt"
			custom_effect_tooltip = IRQ_puppet_egypt_TT
			hidden_effect = {
				if = {
					limit = {
						has_global_flag = GAME_RULE_allow_colored_puppets
					}
					set_autonomy = {
						target = EBP
						autonomy_state = autonomy_autonomous_state_colored
						end_wars = yes
						end_civil_wars = yes
					}
				}
				else = {
					set_autonomy = {
						target = EBP
						autonomy_state = autonomy_autonomous_state
						end_wars = yes
						end_civil_wars = yes
					}
				}
				EBP = {
					create_country_leader = {
						name = "Tariq Aziz"
						picture = "tariq_aziz.dds"
						ideology = Nat_Fascism
						traits = {
							nationalist_Nat_Fascism
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_black_gold_decisions = {
	# Open
	IRQ_open_aramco_scheme = {
		visible = {
			has_country_flag = IRQ_aramco_time
			NOT = {
				has_country_flag = IRQ_aramco_open
			}
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}

		#days_remove = 12
		icon = gre_paying_ifc_debt
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_open_aramco_scheme"
			set_country_flag = IRQ_aramco_open
		}
		ai_will_do = {
			base = 10
		}
	}
	# Close
	IRQ_close_aramco_scheme = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}

		#days_remove = 12
		icon = gre_paying_ifc_debt
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_close_aramco_scheme"
			clr_country_flag = IRQ_aramco_open
		}
		ai_will_do = {
			base = 10
		}
	}
	# Find dirt on Saudi King

	IRQ_find_dirt_on_saudi_king = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			NOT = {
				has_country_flag = IRQ_found_dirt
			}
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}

		days_remove = 24
		icon = zsr_parlament
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_find_dirt_on_saudi_king"
			random_list = {
				50 = {
					country_event = iraqi_events.28
				}
				50 = {
					country_event = iraqi_events.29
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Establish the Hussein Fund
	IRQ_establish_the_hussein_fund = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_found_dirt
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		available = {
			SAU = {
				influence_higher_10 = yes
			}
		}
		icon = decision_relation
		days_remove = 40
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_establish_the_hussein_fund"
			add_to_variable = { var = IRQ_aramco_control value = 10 }
			custom_effect_tooltip = IRQ_aramco_control_10_TT
			newline = yes
			set_temp_variable = { percent_change = 1 }
			set_temp_variable = { influence_target = SAU }
			change_influence_percentage = yes
			newline = yes
			set_temp_variable = { treasury_change = -16 }
			modify_treasury_effect = yes
			newline = yes
			SAU = {
				174 = {
					add_building_construction = {
						type = offices
						level = 1
						instant_build = yes
					}
				}
			}
			set_country_flag = IRQ_hussein_fund
		}
		ai_will_do = {
			base = 10
		}
	}
	# Buy Shares of Aramco
	IRQ_buy_shares_of_aramco = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_found_dirt
			has_country_flag = IRQ_hussein_fund
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		available = {
			SAU = {
				influence_higher_15 = yes
			}
		}
		icon = decision_refinery_dec
		days_remove = 31
		fire_only_once = yes
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_buy_shares_of_aramco"
			add_to_variable = { var = IRQ_aramco_control value = 10 }
			custom_effect_tooltip = IRQ_aramco_control_10_TT
			newline = yes
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { influence_target = SAU }
			change_influence_percentage = yes
			newline = yes
			set_temp_variable = { treasury_change = -57.42 }
			modify_treasury_effect = yes
			set_country_flag = IRQ_bought_shares
		}
		ai_will_do = {
			base = 10
		}
	}
	# Assassinate Aramco CEO Abdullah S. Jum'ah
	IRQ_assassinate_abdullah_s_jumah = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_found_dirt
			has_country_flag = IRQ_hussein_fund
			has_country_flag = IRQ_bought_shares
			has_country_flag = IRQ_iraqis_working_in_aramco
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		fire_only_once = yes
		available = {
			SAU = {
				influence_higher_25 = yes
			}
		}
		days_remove = 50
		icon = oil
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_assassinate_abdullah_s_jumah"
			add_to_variable = { var = IRQ_aramco_control value = 10 }
			custom_effect_tooltip = IRQ_aramco_control_10_TT
			newline = yes
			set_country_flag = IRQ_assassinated_ceo_aramco
			SAU = {
				add_stability = -0.05
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_prop_up_iraqi_ceo = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_found_dirt
			has_country_flag = IRQ_hussein_fund
			has_country_flag = IRQ_bought_shares
			has_country_flag = IRQ_iraqis_working_in_aramco
			has_country_flag = IRQ_assassinated_ceo_aramco
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		fire_only_once = yes
		available = {
			SAU = {
				influence_higher_40 = yes
			}
		}
		days_remove = 12
		icon = oil
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_prop_up_iraqi_ceo"
			add_to_variable = { var = IRQ_aramco_control value = 10 }
			custom_effect_tooltip = IRQ_aramco_control_10_TT
			newline = yes
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { influence_target = SAU }
			change_influence_percentage = yes
			set_country_flag = IRQ_seize_aramco
		}
		ai_will_do = {
			base = 10
		}
	}
	# Seize Aramco
	IRQ_seize_aramco = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_found_dirt
			has_country_flag = IRQ_hussein_fund
			has_country_flag = IRQ_bought_shares
			has_country_flag = IRQ_iraqis_working_in_aramco
			has_country_flag = IRQ_assassinated_ceo_aramco
			has_country_flag = IRQ_seize_aramco
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		available = {
			custom_trigger_tooltip = {
				check_variable = {
					IRQ_aramco_control > 49.99
				}
				tooltip = IRQ_we_need_more_than_50_TT
			}
			SAU = {
				influence_higher_50 = yes
			}
		}
		days_remove = 70
		icon = oil
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_seize_aramco"
			if = {
				limit = {
					check_variable = {
						IRQ_aramco_control > 49.99
					}
					check_variable = {
						IRQ_aramco_control < 74.99
					}
				}
				custom_effect_tooltip = IRQ_aramco_med_chance_TT
				hidden_effect = {
					random_list = {
						40 = {
							country_event = iraqi_events.35
						}
						60 = {
							country_event = iraqi_events.36
						}
					}
				}
			}
			# 75 - 90
			if = {
				limit = {
					check_variable = {
						IRQ_aramco_control > 74.99
					}
					check_variable = {
						IRQ_aramco_control < 99.99
					}
				}
				custom_effect_tooltip = IRQ_aramco_high_chance_TT
				hidden_effect = {
					random_list = {
						75 = {
							country_event = iraqi_events.35
						}
						35 = {
							country_event = iraqi_events.36
						}
					}
				}
			}
			# 100
			if = {
				limit = {
					check_variable = {
						IRQ_aramco_control > 99.99
					}
				}
				custom_effect_tooltip = IRQ_aramco_guarantee_chance_TT
				hidden_effect = {
					country_event = iraqi_events.35
				}
			}
			# Global event (Collapse of Aramco, now Arabco)
		}
		ai_will_do = {
			base = 10
		}
	}
	# Send Iraqi's to Saudi Arabia (As Potential Workers)
	IRQ_send_over_iraqis_to_saudi_arabia = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		fire_only_once = yes

		days_remove = 14
		icon = GFX_decision_generic_political_rally
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_send_over_iraqis_to_saudi_arabia"
			set_country_flag = IRQ_iraqis_in_saudi
			557 = {
				add_manpower = -15000
			}
			newline = yes
			174 = {
				add_manpower = 15000
			}
			newline = yes
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { influence_target = SAU }
			change_influence_percentage = yes
		}
		ai_will_do = {
			base = 10
		}
	}
	# Encourage Iraqis to work in Aramco
	IRQ_encourage_iraqis_to_work_for_aramco = {
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_iraqis_in_saudi
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		fire_only_once = yes
		days_remove = 14
		icon = GFX_decision_generic_construction
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_encourage_iraqis_to_work_for_aramco"
			set_country_flag = IRQ_iraqis_working_in_aramco
			add_tech_bonus = {
				name = IRQ_encourage_iraqis_to_work_for_aramco
				bonus = 0.50
				uses = 2
				category = CAT_excavation
			} hidden_effect = { rq_eb_3ef892a093 = yes }
		}
		ai_will_do = {
			base = 10
		}
	}
	# Generic Decisions (Recurring)
	IRQ_buy_more_shares = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_aramco_time
			has_country_flag = IRQ_aramco_open
			has_country_flag = IRQ_bought_shares
			NOT = {
				has_country_flag = IRQ_aramco_seized
			}
		}
		#fire_only_once = yes

		days_remove = 18
		icon = oil
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_buy_more_shares"
			set_temp_variable = { treasury_change = -12.50 }
			modify_treasury_effect = yes
			newline = yes
			custom_effect_tooltip = IRQ_stonks_TT
			hidden_effect = {
				random_list = {
					25 = {
						country_event = iraqi_events.30
					}
					25 = {
						country_event = iraqi_events.32
					}
					25 = {
						country_event = iraqi_events.33
					}
					25 = {
						country_event = iraqi_events.34
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

# Balance of Power
IRQ_clergy_balance_of_power_category = {
	IRQ_promote_female_participation = {
		cost = 50

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_promotion_of_iraqi_identity
						has_decision = IRQ_restoration_of_ancient_sights
						has_decision = IRQ_promotion_of_saddam
						has_decision = IRQ_power_of_mosques
						has_decision = IRQ_fedayeen_patrols
						has_decision = IRQ_crack_down_on_haram
						has_decision = IRQ_upholding_sharia
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_promote_female_participation"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = -0.03
			}
		}
		modifier = {
			productivity_growth_modifier = 0.35
			research_speed_factor = 0.10
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_promotion_of_iraqi_identity = {
		cost = 75

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_crack_down_on_haram
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_promotion_of_iraqi_identity"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = -0.05
			}
		}
		modifier = {
			nationalist_drift = 0.02
			stability_weekly = 0.0020
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_restoration_of_ancient_sights = {
		cost = 100

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_crack_down_on_haram
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_restoration_of_ancient_sights"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = -0.08
			}
		}
		modifier = {
			production_speed_infrastructure_factor = 0.15
			party_popularity_stability_factor = 0.10
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_promotion_of_saddam = {
		cost = 125

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_crack_down_on_haram
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_promotion_of_saddam"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = -0.10
			}
		}
		modifier = {
			foreign_influence_defense_modifier = 0.10
			propaganda_campaign_cost_modifier = -0.15
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_power_of_mosques = {
		cost = 50

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_crack_down_on_haram
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_power_of_mosques"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = 0.03
			}
		}
		modifier = {
			mobilization_speed = 0.10
			tax_gain_multiplier_modifier = 0.05
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_fedayeen_patrols = {
		cost = 75

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_crack_down_on_haram
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_fedayeen_patrols"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = 0.05
			}
		}
		modifier = {
			police_cost_multiplier_modifier = -0.10
			resistance_growth = -0.20
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_crack_down_on_haram = {
		cost = 100

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_upholding_sharia
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_crack_down_on_haram"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = 0.08
			}
		}
		modifier = {
			political_power_gain = 0.50
			bureaucracy_cost_multiplier_modifier = -0.10
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_upholding_sharia = {
		cost = 125

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				custom_trigger_tooltip = {
					tooltip = only_one_decision_is_available_TT
					NOT = {
						OR = {
							has_decision = IRQ_promote_female_participation
							has_decision = IRQ_promotion_of_iraqi_identity
							has_decision = IRQ_restoration_of_ancient_sights
							has_decision = IRQ_promotion_of_saddam
							has_decision = IRQ_power_of_mosques
							has_decision = IRQ_fedayeen_patrols
							has_decision = IRQ_crack_down_on_haram
						}
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_upholding_sharia"
			add_power_balance_value = {
				id = IRQ_clergy_balance_of_power_category
				value = 0.10
			}
		}
		modifier = {
			drift_defence_factor = 0.15
			corruption_cost_factor = -0.25
		}
		ai_will_do = {
			base = 10
		}
	}
}

# De-Ba'athification BoP
IRQ_debaath_balance_of_power_category = {

	IRQ_anti_baath_sentiment_schools = {
		cost = 50

		days_remove = 60
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_anti_baath_ad_campaigns
						has_decision = IRQ_persecute_potential_baathists
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_anti_baath_sentiment_schools"
			add_power_balance_value = {
				id = IRQ_debaath_balance_of_power_category
				value = -0.03
			}
		}
		modifier = {
			education_cost_multiplier_modifier = -0.15
			research_speed_factor = -0.05
		}
		ai_will_do = {
			base = 50
		}
	}

	IRQ_anti_baath_ad_campaigns = {
		cost = 75

		days_remove = 70
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_anti_baath_sentiment_schools
						has_decision = IRQ_persecute_potential_baathists
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_anti_baath_ad_campaigns"
			add_power_balance_value = {
				id = IRQ_debaath_balance_of_power_category
				value = -0.05
			}
		}
		modifier = {
			political_power_gain = 0.75
			tax_gain_multiplier_modifier = -0.08
		}
		ai_will_do = {
			base = 50
		}
	}

	IRQ_persecute_potential_baathists = {
		cost = 100

		days_remove = 80
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_anti_baath_sentiment_schools
						has_decision = IRQ_anti_baath_ad_campaigns
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_persecute_potential_baathists"
			add_power_balance_value = {
				id = IRQ_debaath_balance_of_power_category
				value = -0.08
			}
		}
		modifier = {
			police_cost_multiplier_modifier = 0.05
			stability_weekly = 0.002
		}
		ai_will_do = {
			base = 50
		}
	}
}

IRQ_sunni_in_politics = {
	IRQ_satisfy_sunnis = {
		cost = 50

		days_remove = 90
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_satisfy_sunnis"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_satisfy_sunnis"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_3_TT
			clr_country_flag = IRQ_doing_decision
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		modifier = {
			political_power_factor = -0.15
			tax_gain_multiplier_modifier = -0.15
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_redirect_sunni_resources = {
		cost = 50

		days_remove = 90
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					has_country_flag = IRQ_doing_decision
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_redirect_sunni_resources"
			set_country_flag = IRQ_doing_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_redirect_sunni_resources"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_5_TT
			clr_country_flag = IRQ_doing_decision
			add_to_variable = { var = IRQ_sunni_satisfaction value = -5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		modifier = {
			political_power_factor = 0.10
			tax_gain_multiplier_modifier = 0.10
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_make_a_promise = {
		cost = 100
		days_re_enable = 200
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_make_a_promise"
			country_event = iraq_md.12
		}
		ai_will_do = {
			base = 10
		}
	}


	IRQ_lower_iranian_influence_1 = {
		activation = {
			always = no
		}
		available = {
			PER = {
				influence_less_10 = yes
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_lower_iranian_influence_1"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_lower_iranian_influence_1"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_anbar_infrastructure = {
		activation = {
			always = no
		}
		available = {
			168 = {
				infrastructure > 1
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_anbar_infrastructure"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_anbar_infrastructure"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_salahuddin_infrastructure = {
		activation = {
			always = no
		}
		available = {
			167 = {
				infrastructure > 1
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_salahuddin_infrastructure"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_salahuddin_infrastructure"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_nineveh_infrastructure = {
		activation = {
			always = no
		}
		available = {
			166 = {
				infrastructure > 1
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_nineveh_infrastructure"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_nineveh_infrastructure"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_anbar_airbase = {
		activation = {
			always = no
		}
		available = {
			168 = {
				air_base > 4
				radar_station > 2
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_anbar_airbase"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_anbar_airbase"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_salahuddin_airbase = {
		activation = {
			always = no
		}
		available = {
			167 = {
				air_base > 4
				radar_station > 2
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_salahuddin_airbase"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_salahuddin_airbase"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_nineveh_airbase = {
		activation = {
			always = no
		}
		available = {
			166 = {
				air_base > 4
				radar_station > 2
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_nineveh_airbase"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_nineveh_airbase"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_economic_prosperity = {
		activation = {
			always = no
		}
		available = {
			OR = {
				has_idea = fast_growth
				has_idea = economic_boom
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_economic_prosperity"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_economic_prosperity"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_smaller_government = {
		activation = {
			always = no
		}
		available = {
			has_idea = bureau_01
			has_idea = intervention_local_security
			has_idea = partial_draft_army
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_smaller_government"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_smaller_government"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_sunni_internet = {
		activation = {
			always = no
		}
		available = {
			166 = {
				internet_station > 0
			}
			167 = {
				internet_station > 0
			}
			168 = {
				internet_station > 0
			}
		}
		days_mission_timeout = 130
		is_good = no
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_sunni_internet"
			custom_effect_tooltip = IRQ_increase_sunni_satisfaction_5_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = 5 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_sunni_internet"
			custom_effect_tooltip = IRQ_decrease_sunni_satisfaction_10_TT
			add_to_variable = { var = IRQ_sunni_satisfaction value = -10 }
			clamp_variable = { var = IRQ_sunni_satisfaction min = 0 max = 50 }
		}
	}

	IRQ_resolve_the_crisis = {
		available = {
			custom_trigger_tooltip = {
				tooltip = IRQ_meets_requirements_TT
				check_variable = {
					IRQ_sunni_radicalization < 25
				}
				check_variable = {
					IRQ_sunni_political_influence < 35
				}
				check_variable = {
					IRQ_sunni_satisfaction > 39.99
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_resolve_the_crisis"
			clr_country_flag = IRQ_sunni_mechanic
			if = { limit = { has_dynamic_modifier = { modifier = IRQ_sunni_dynamic_idea } } remove_dynamic_modifier = { modifier = IRQ_sunni_dynamic_idea } }
			country_event = iraq_civil_war.203
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_fao_decisions = {
	IRQ_ask_for_iranian_arms = {
		cost = 150
		days_remove = 60
		days_re_enable = 120
		visible = {
			NOT = {
				has_war_with = PER
			}
			country_exists = PER
			PER = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					has_decision = IRQ_ask_for_iranian_funds
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ask_for_iranian_arms"
			PER = {
				country_event = iraq_md.21
			}
			custom_effect_tooltip = TT_IF_THEY_ACCEPT
			effect_tooltip = {
				add_equipment_to_stockpile = {
					type = infantry_weapons_type
					amount = 500
					producer = PER
				}
				add_equipment_to_stockpile = {
					type = cnc_equipment_2 #C3
					amount = 200
					producer = PER
				}
				add_equipment_to_stockpile = {
					type = Heavy_Anti_tank_2 #Toophan 5/Towsan-1
					amount = 30
					producer = PER
				}
				add_equipment_to_stockpile = {
					type = Anti_Air_1 #Stinger
					amount = 30
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = artillery_1 #D-30
					amount = 10
					producer = SOV
				}
				add_equipment_to_stockpile = {
					type = util_vehicle_1 #Khawar
					amount = 10
					producer = PER
				}
			}
			newline = yes
			custom_effect_tooltip = IRQ_they_receive_2_influence_TT
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_strong_TT
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_TT
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_ask_for_iranian_funds = {
		cost = 150
		days_remove = 60
		days_re_enable = 120
		visible = {
			NOT = {
				has_war_with = PER
			}
			country_exists = PER
			PER = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					has_decision = IRQ_ask_for_iranian_arms
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ask_for_iranian_funds"
			PER = {
				country_event = iraq_md.22
			}
			custom_effect_tooltip = TT_IF_THEY_ACCEPT
			effect_tooltip = {
				set_temp_variable = { treasury_change = 75.00 }
				modify_treasury_effect = yes
				if = {
					limit = {
						has_idea = iranian_quds_force
					}
					newline = yes
					set_temp_variable = { temp_opinion = 5 }
					change_iranian_quds_force_opinion = yes
				}
			}
			newline = yes
			custom_effect_tooltip = IRQ_they_receive_5_influence_TT
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_strong_TT
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_TT
		}
		ai_will_do = {
			base = 10
		}
	}

	# Invitations
	IRQ_open_invites = {
		visible = {
			NOT = {
				has_country_flag = IRQ_open_invite_menu
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_open_invites"
			set_country_flag = IRQ_open_invite_menu
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_close_invites = {
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_close_invites"
			clr_country_flag = IRQ_open_invite_menu
		}
		ai_will_do = {
			base = 10
		}
	}

	# Invite Jordan (If Shi'ite)
	IRQ_invite_jordan = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = JOR
			}
			country_exists = JOR
			JOR = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_jordan"
			JOR = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Hezbollah
	IRQ_invite_hezbollah = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = HEZ
			}
			country_exists = HEZ
		}
		visible = {
			HEZ = {
				NOT = {
					has_idea = faction_resistance_axis_member
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_hezbollah"
			HEZ = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Kuwait (If Shi'ite)
	IRQ_invite_kuwait = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = KUW
			}
			country_exists = KUW
			KUW = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_kuwait"
			KUW = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Egypt (If Shi'ite)
	IRQ_invite_egypt = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = EGY
			}
			country_exists = EGY
			EGY = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_egypt"
			EGY = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Egypt (If Shi'ite)
	IRQ_invite_azerbaijan = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = AZE
			}
			country_exists = AZE
			AZE = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_azerbaijan"
			AZE = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Egypt (If Shi'ite)
	IRQ_invite_turkey = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = TUR
			}
			country_exists = TUR
			TUR = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_turkey"
			TUR = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Arabia (If Shi'ite)
	IRQ_invite_arabia = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = SAU
			}
			country_exists = SAU
			SAU = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_arabia"
			SAU = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Bahrain (If Shi'ite)
	IRQ_invite_bahrain = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = BHR
			}
			country_exists = BHR
			BHR = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_bahrain"
			BHR = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Invite Bahrain (If Shi'ite)
	IRQ_invite_yemen = {
		cost = 50
		days_remove = 90
		fire_only_once = yes
		available = {
			NOT = {
				has_war_with = YEM
			}
			country_exists = YEM
			YEM = {
				has_idea = shia
			}
		}
		visible = {
			has_country_flag = IRQ_open_invite_menu
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_invite_yemen"
			YEM = {
				country_event = iraq_md.20
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_pmf_decisions = {
	IRQ_begin_mobilization = {
		visible = {
			NOT = {
				has_country_flag = IRQ_begin_mobilization
			}
		}
		custom_cost_trigger = {
			has_army_experience > 34
		}
		custom_cost_text = army_xp_35
		days_re_enable = 90
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_begin_mobilization"
			set_country_flag = IRQ_begin_mobilization
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_stop_mobilization = {
		visible = {
			has_country_flag = IRQ_begin_mobilization
		}
		days_re_enable = 90
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_stop_mobilization"
			clr_country_flag = IRQ_begin_mobilization
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_deploy_the_pmf = {
		visible = {
			check_variable = {
				pmf_recovery_status > 29.99
			}
			NOT = {
				has_country_flag = IRQ_deployed_the_pmf
			}
		}
		days_re_enable = 50
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_deploy_the_pmf"
			set_country_flag = IRQ_deployed_the_pmf
			clr_country_flag = IRQ_begin_mobilization
			custom_effect_tooltip = IRQ_deploy_the_pmf_TT
			if = {
				limit = {
					check_variable = {
						pmf_recovery_status > 29.99
					}
					check_variable = {
						pmf_recovery_status < 39.99
					}
				}
				IRQ_deploy_30_40_pmf = yes
			}

			if = {
				limit = {
					check_variable = {
						pmf_recovery_status > 39.99
					}
					check_variable = {
						pmf_recovery_status < 59.99
					}
				}
				IRQ_deploy_40_60_pmf = yes
			}

			if = {
				limit = {
					check_variable = {
						pmf_recovery_status > 59.99
					}
					check_variable = {
						pmf_recovery_status < 89.99
					}
				}
				IRQ_deploy_60_80_pmf = yes
			}

			if = {
				limit = {
					check_variable = {
						pmf_recovery_status > 89.99
					}
				}
				IRQ_deploy_all_pmf = yes
			}
			newline = yes
			add_ideas = IRQ_pmf_deployed
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_demobilize_the_pmf = {
		visible = {
			has_country_flag = IRQ_deployed_the_pmf
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_demobilize_the_pmf"
			clr_country_flag = IRQ_deployed_the_pmf
			delete_unit_template_and_units = {
				division_template = "Quwwat al-Hashd ash-Sha'bi (PMF)"
				disband = no
			}
			newline = yes
			remove_ideas = IRQ_pmf_deployed
			set_variable = { pmf_recovery_status = 0 }
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_spring_of_islam = {
	IRQ_arm_rebels_in_jordan = {
		fixed_random_seed = no
		visible = {
			country_exists = JOR
			JOR = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
			NOT = {
				has_country_flag = IRQ_successfully_sent_weapons_JOR
			}
		}
		days_remove = 50
		days_re_enable = 90
		custom_cost_trigger = {
			has_equipment = {
				infantry_weapons_type > 999
			}
		}
		custom_cost_text = IRQ_assualt2
		available = {
			has_equipment = {
				infantry_weapons_type > 999
			}
			JOR = {
				influence_higher_10 = yes
			}
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_arm_rebels_in_kuwait
						has_decision = IRQ_arm_rebels_in_turkey
						has_decision = IRQ_arm_rebels_in_afghanistan
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_arm_rebels_in_jordan"
			set_country_flag = IRQ_was_sending_to_JOR
			if = {
				limit = {
					JOR = {
						influence_higher_10 = yes
					}
					NOT = {
						JOR = {
							influence_higher_20 = yes
						}
					}
				}
				random_list = {
					50 = {
						set_country_flag = IRQ_successfully_sent_weapons_JOR
						add_equipment_to_stockpile = {
							type = infantry_weapons_type
							amount = -1000
						}
					}
					50 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					JOR = {
						influence_higher_20 = yes
					}
					NOT = {
						JOR = {
							influence_higher_30 = yes
						}
					}
				}
				random_list = {
					60 = {
						set_country_flag = IRQ_successfully_sent_weapons_JOR
						add_equipment_to_stockpile = {
							type = infantry_weapons_type
							amount = -1000
						}
					}
					40 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					JOR = {
						influence_higher_30 = yes
					}
					NOT = {
						JOR = {
							influence_higher_40 = yes
						}
					}
				}
				random_list = {
					70 = {
						set_country_flag = IRQ_successfully_sent_weapons_JOR
						add_equipment_to_stockpile = {
							type = infantry_weapons_type
							amount = -1000
						}
					}
					30 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					JOR = {
						influence_higher_40 = yes
					}
					NOT = {
						JOR = {
							influence_higher_50 = yes
						}
					}
				}
				random_list = {
					80 = {
						set_country_flag = IRQ_successfully_sent_weapons_JOR
						add_equipment_to_stockpile = {
							type = infantry_weapons_type
							amount = -1000
						}
					}
					20 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					JOR = {
						influence_higher_50 = yes
					}
				}
				random_list = {
					90 = {
						set_country_flag = IRQ_successfully_sent_weapons_JOR
						add_equipment_to_stockpile = {
							type = infantry_weapons_type
							amount = -1000
						}
					}
					10 = {
						country_event = iraq_md.34
					}
				}
			}
			newline = yes
			custom_effect_tooltip = IRQ_more_influence_more_success_TT
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_islamic_spring_in_jordan = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_successfully_sent_weapons_JOR
			country_exists = JOR
			JOR = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
		}
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_islamic_spring_in_jordan"
			random_list = {
				50 = {
					custom_effect_tooltip = IRQ_coup_TT
					hidden_effect = {
						JOR = {
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							diplomatic_relation = {
								country = JOR
								relation = military_access
								active = no
							}
							USA = {
								diplomatic_relation = {
									country = JOR
									relation = military_access
									active = no
								}
							}

							swap_ideas = {
								remove_idea = saudi_royal_family
								add_idea = iranian_quds_force
							}

							swap_ideas = {
								remove_idea = sunni
								add_idea = shia
							}

							set_temp_variable = { percent_change = 10.00 }
							change_influence_percentage = yes
						}
					}
				}
				50 = {
					custom_effect_tooltip = IRQ_civil_war_TT
					hidden_effect = {
						JOR = {
							start_civil_war = {
								ideology = communism
								size = 0.4
								states = {
									211
								}
								keep_political_leader = yes
								keep_political_party_members = yes
							}
						}
						every_country_with_original_tag = {
							original_tag_to_check = JOR
							limit = {
								has_government = communism
							}
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							swap_ideas = {
								remove_idea = saudi_royal_family
								add_idea = iranian_quds_force
							}

							swap_ideas = {
								remove_idea = sunni
								add_idea = shia
							}

							set_temp_variable = { percent_change = 5.00 }
							set_temp_variable = { influence_target = JOR }
							change_influence_percentage = yes
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Kuwait
	IRQ_arm_rebels_in_kuwait = {
		fixed_random_seed = no
		visible = {
			country_exists = KUW
			KUW = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
			NOT = {
				has_country_flag = IRQ_successfully_sent_weapons_KUW
			}
		}
		custom_cost_trigger = {
			has_equipment = {
				infantry_weapons_type > 999
			}
		}
		custom_cost_text = IRQ_assualt2
		days_remove = 50
		days_re_enable = 90
		available = {
			has_equipment = {
				infantry_weapons_type > 999
			}
			KUW = {
				influence_higher_10 = yes
			}
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_arm_rebels_in_jordan
						has_decision = IRQ_arm_rebels_in_turkey
						has_decision = IRQ_arm_rebels_in_afghanistan
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_arm_rebels_in_kuwait"
			set_country_flag = IRQ_was_sending_to_KUW
			if = {
				limit = {
					KUW = {
						influence_higher_10 = yes
					}
					NOT = {
						KUW = {
							influence_higher_20 = yes
						}
					}
				}
				random_list = {
					50 = {
						set_country_flag = IRQ_successfully_sent_weapons_KUW
					}
					50 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					KUW = {
						influence_higher_20 = yes
					}
					NOT = {
						KUW = {
							influence_higher_30 = yes
						}
					}
				}
				random_list = {
					60 = {
						set_country_flag = IRQ_successfully_sent_weapons_KUW
					}
					40 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					KUW = {
						influence_higher_30 = yes
					}
					NOT = {
						KUW = {
							influence_higher_40 = yes
						}
					}
				}
				random_list = {
					70 = {
						set_country_flag = IRQ_successfully_sent_weapons_KUW
					}
					30 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					KUW = {
						influence_higher_40 = yes
					}
					NOT = {
						KUW = {
							influence_higher_50 = yes
						}
					}
				}
				random_list = {
					80 = {
						set_country_flag = IRQ_successfully_sent_weapons_KUW
					}
					20 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					KUW = {
						influence_higher_50 = yes
					}
				}
				random_list = {
					90 = {
						set_country_flag = IRQ_successfully_sent_weapons_KUW
					}
					10 = {
						country_event = iraq_md.34
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_islamic_spring_in_kuwait = {
		visible = {
			has_country_flag = IRQ_successfully_sent_weapons_KUW
			country_exists = KUW
			KUW = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
		}
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_islamic_spring_in_kuwait"
			custom_effect_tooltip = IRQ_coup_TT
			hidden_effect = {
				KUW = {
					set_political_party = {
						ideology = communism
						popularity = 100
					}
					set_temp_variable = { party_index = 9 }
					set_temp_variable = { party_popularity_increase = 1.00 }
					change_relative_party_popularity = yes

					set_temp_variable = { rul_party_temp = 9 }
					set_temp_variable = { disable_elections = 1 }
					change_ruling_party_effect = yes

					diplomatic_relation = {
						country = KUW
						relation = military_access
						active = no
					}
					USA = {
						diplomatic_relation = {
							country = KUW
							relation = military_access
							active = no
						}
					}

					swap_ideas = {
						remove_idea = saudi_royal_family
						add_idea = iranian_quds_force
					}

					swap_ideas = {
						remove_idea = sunni
						add_idea = shia
					}

					set_temp_variable = { percent_change = 10.00 }
					change_influence_percentage = yes

					if = {
						limit = {
							has_global_flag = GAME_RULE_allow_colored_puppets
						}
						set_autonomy = {
							target = KUW
							autonomy_state = autonomy_autonomous_state_colored
							end_wars = yes
							end_civil_wars = yes
						}
					}
					else = {
						set_autonomy = {
							target = KUW
							autonomy_state = autonomy_autonomous_state
							end_wars = yes
							end_civil_wars = yes
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Turkey
	IRQ_arm_rebels_in_turkey = {
		fixed_random_seed = no
		visible = {
			country_exists = TUR
			TUR = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
			NOT = {
				has_country_flag = IRQ_successfully_sent_weapons_TUR
			}
		}
		custom_cost_trigger = {
			has_equipment = {
				infantry_weapons_type > 999
			}
		}
		custom_cost_text = IRQ_assualt2
		days_remove = 50
		days_re_enable = 90
		available = {
			has_equipment = {
				infantry_weapons_type > 999
			}
			TUR = {
				influence_higher_10 = yes
			}
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_arm_rebels_in_jordan
						has_decision = IRQ_arm_rebels_in_kuwait
						has_decision = IRQ_arm_rebels_in_afghanistan
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_arm_rebels_in_turkey"
			set_country_flag = IRQ_was_sending_to_TUR
			if = {
				limit = {
					TUR = {
						influence_higher_10 = yes
					}
					NOT = {
						TUR = {
							influence_higher_20 = yes
						}
					}
				}
				random_list = {
					50 = {
						set_country_flag = IRQ_successfully_sent_weapons_TUR
					}
					50 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					TUR = {
						influence_higher_20 = yes
					}
					NOT = {
						TUR = {
							influence_higher_30 = yes
						}
					}
				}
				random_list = {
					60 = {
						set_country_flag = IRQ_successfully_sent_weapons_TUR
					}
					40 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					TUR = {
						influence_higher_30 = yes
					}
					NOT = {
						TUR = {
							influence_higher_40 = yes
						}
					}
				}
				random_list = {
					70 = {
						set_country_flag = IRQ_successfully_sent_weapons_TUR
					}
					30 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					TUR = {
						influence_higher_40 = yes
					}
					NOT = {
						TUR = {
							influence_higher_50 = yes
						}
					}
				}
				random_list = {
					80 = {
						set_country_flag = IRQ_successfully_sent_weapons_TUR
					}
					20 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					TUR = {
						influence_higher_50 = yes
					}
				}
				random_list = {
					90 = {
						set_country_flag = IRQ_successfully_sent_weapons_TUR
					}
					10 = {
						country_event = iraq_md.34
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_islamic_spring_in_turkey = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_successfully_sent_weapons_TUR
			country_exists = TUR
			TUR = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					 }
				 }
			}
		}
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_islamic_spring_in_turkey"
			custom_effect_tooltip = IRQ_coup_TT
			random_list = {
				50 = {
					custom_effect_tooltip = IRQ_coup_TT
					hidden_effect = {
						TUR = {
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							diplomatic_relation = {
								country = TUR
								relation = military_access
								active = no
							}
							USA = {
								diplomatic_relation = {
									country = TUR
									relation = military_access
									active = no
								}
							}

							swap_ideas = {
								remove_idea = the_military
								add_idea = iranian_quds_force
							}

							if = {
								limit = {
									has_idea = pluralist
								}
								swap_ideas = {
									remove_idea = pluralist
									add_idea = shia
								}
							}

							set_temp_variable = { percent_change = 10.00 }
							change_influence_percentage = yes
						}
					}
				}
				50 = {
					custom_effect_tooltip = IRQ_civil_war_TT
					hidden_effect = {
						TUR = {
							start_civil_war = {
								ideology = communism
								size = 0.4
								states = {
									158 992 161
								}
								keep_political_leader = yes
								keep_political_party_members = yes
							}
						}
						every_country_with_original_tag = {
							original_tag_to_check = TUR
							limit = {
								has_government = communism
							}
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							swap_ideas = {
								remove_idea = industrial_conglomerates
								add_idea = iranian_quds_force
							}


							if = {
								limit = {
									has_idea = pluralist
								}
								swap_ideas = {
									remove_idea = pluralist
									add_idea = shia
								}
							}

							if = {
								limit = {
									has_idea = sunni
								}
								swap_ideas = {
									remove_idea = sunni
									add_idea = shia
								}
							}

							set_temp_variable = { percent_change = 5.00 }
							set_temp_variable = { influence_target = TUR }
							change_influence_percentage = yes
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	# Afghanistan
	IRQ_arm_rebels_in_afghanistan = {
		fixed_random_seed = no
		visible = {
			country_exists = AFG
			AFG = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
					}
				}
			}
			NOT = {
				has_country_flag = IRQ_successfully_sent_weapons_AFG
			}
		}
		custom_cost_trigger = {
			has_equipment = {
				infantry_weapons_type > 999
			}
		}
		custom_cost_text = IRQ_assualt2
		days_remove = 50
		days_re_enable = 90
		available = {
			 has_equipment = {
				 infantry_weapons_type > 999
			}
			AFG = {
				influence_higher_10 = yes
			}
			custom_trigger_tooltip = {
				tooltip = only_one_decision_is_available_TT
				NOT = {
					OR = {
						has_decision = IRQ_arm_rebels_in_jordan
						has_decision = IRQ_arm_rebels_in_kuwait
						has_decision = IRQ_arm_rebels_in_turkey
					}
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_arm_rebels_in_afghanistan"
			set_country_flag = IRQ_was_sending_to_AFG
			if = {
				limit = {
					AFG = {
						influence_higher_10 = yes
					}
					NOT = {
						AFG = {
							influence_higher_20 = yes
						}
					}
				}
				random_list = {
					50 = {
						set_country_flag = IRQ_successfully_sent_weapons_AFG
					}
					50 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					AFG = {
						influence_higher_20 = yes
					}
					NOT = {
						AFG = {
							influence_higher_30 = yes
						}
					}
				}
				random_list = {
					60 = {
						set_country_flag = IRQ_successfully_sent_weapons_AFG
					}
					40 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					AFG = {
						influence_higher_30 = yes
					}
					NOT = {
						AFG = {
							influence_higher_40 = yes
						}
					}
				}
				random_list = {
					70 = {
						set_country_flag = IRQ_successfully_sent_weapons_AFG
					}
					30 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					AFG = {
						influence_higher_40 = yes
					}
					NOT = {
						AFG = {
							influence_higher_50 = yes
						}
					}
				}
				random_list = {
					80 = {
						set_country_flag = IRQ_successfully_sent_weapons_AFG
					}
					20 = {
						country_event = iraq_md.34
					}
				}
			}
			if = {
				limit = {
					AFG = {
						influence_higher_50 = yes
					}
				}
				random_list = {
					90 = {
						set_country_flag = IRQ_successfully_sent_weapons_AFG
					}
					10 = {
						country_event = iraq_md.34
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_islamic_spring_in_afghanistan = {
		fixed_random_seed = no
		visible = {
			has_country_flag = IRQ_successfully_sent_weapons_AFG
			country_exists = AFG
			AFG = {
				NOT = {
					OR = {
						emerging_hardline_shiite_are_in_power = yes
						emerging_moderate_shiite_are_in_power = yes
						is_subject_of = IRQ
						has_war_with = TAL
					}
				}
			}
		}
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_islamic_spring_in_afghanistan"
			custom_effect_tooltip = IRQ_coup_TT
			random_list = {
				50 = {
					custom_effect_tooltip = IRQ_coup_TT
					hidden_effect = {
						AFG = {
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							diplomatic_relation = {
								country = AFG
								relation = military_access
								active = no
							}
							USA = {
								diplomatic_relation = {
									country = AFG
									relation = military_access
									active = no
								}
							}

							swap_ideas = {
								remove_idea = the_military
								add_idea = iranian_quds_force
							}

							if = {
								limit = {
									has_idea = pluralist
								}
								swap_ideas = {
									remove_idea = pluralist
									add_idea = shia
								}
							}

							set_temp_variable = { percent_change = 10.00 }
							change_influence_percentage = yes
						}
					}
				}
				50 = {
					custom_effect_tooltip = IRQ_civil_war_TT
					hidden_effect = {
						AFG = {
							start_civil_war = {
								ideology = communism
								size = 0.4
								states = {
									412
								}
								keep_political_leader = yes
								keep_political_party_members = yes
							}
						}
						every_country_with_original_tag = {
							original_tag_to_check = AFG
							limit = {
								has_government = communism
							}
							set_political_party = {
								ideology = communism
								popularity = 100
							}
							set_temp_variable = { party_index = 9 }
							set_temp_variable = { party_popularity_increase = 1.00 }
							change_relative_party_popularity = yes

							set_temp_variable = { rul_party_temp = 9 }
							set_temp_variable = { disable_elections = 1 }
							change_ruling_party_effect = yes

							swap_ideas = {
								remove_idea = industrial_conglomerates
								add_idea = iranian_quds_force
							}


							if = {
								limit = {
									has_idea = pluralist
								}
								swap_ideas = {
									remove_idea = pluralist
									add_idea = shia
								}
							}

							if = {
								limit = {
									has_idea = sunni
								}
								swap_ideas = {
									remove_idea = sunni
									add_idea = shia
								}
							}

							set_temp_variable = { percent_change = 5.00 }
							set_temp_variable = { influence_target = AFG }
							change_influence_percentage = yes
						}
					}
				}
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_saddams_pissfits = {
	IRQ_demand_kuwait_naval_base = {
		cost = 50
		days_remove = 90
		days_re_enable = 90
		visible = {
			country_exists = KUW
			NOT = {
				owns_state = 488
			}
		}
		available = {
			NOT = {
				has_country_flag = IRQ_demanded_kuwait_naval_base
			}
			KUW = { influence_higher_30 = yes }
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_demand_kuwait_naval_base"
			set_country_flag = IRQ_demanded_kuwait_naval_base
			KUW = {
				country_event = iraq_saddam.1
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	IRQ_propose_kurdistan_defensive_pact = {
		cost = 50
		days_remove = 90
		days_re_enable = 90
		visible = {
			country_exists = KUR
		}
		available = {
			NOT = {
				has_country_flag = IRQ_proposed_kurdistan_pact
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_propose_kurdistan_defensive_pact"
			set_country_flag = IRQ_proposed_kurdistan_pact
			KUR = {
				country_event = iraq_saddam.5
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

IRQ_kurdish_friends = {
	IRQ_negotiations_with_kurdish_government = {
		visible = {
			OR = {
				country_exists = KUR
				country_exists = PUK
			}
			OR = {
				NOT = {
					has_war_with = KUR
				}
				NOT = {
					has_war_with = PUK
				}
			}
			OR = {
				KUR = {
					NOT = {
						is_subject_of = IRQ
					}
				}
				PUK = {
					NOT = {
						is_subject_of = IRQ
					}
				}
			}
		}
		available = {
			if = {
				limit = {
					country_exists = KUR
				}
				KUR = {
					neutrality_neutral_communism_in_power_or_coalition = yes
				}
			}
			else = {
				PUK = {
					neutrality_neutral_communism_in_power_or_coalition = yes
				}
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 630
				state = 164
				state = 633
			}
		}
		cost = 60
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_negotiations_with_kurdish_government"
			if = {
				limit = {
					country_exists = KUR
				}
				KUR = {
					country_event = {
						id = iraq_md.59
						days = 1
					}
				}
			}
			else = {
				PUK = {
					country_event = {
						id = iraq_md.59
						days = 1
					}
				}
			}
			newline = yes
			custom_effect_tooltip = TT_IF_THEY_ACCEPT
			effect_tooltip = {
				if = {
					limit = {
						has_global_flag = GAME_RULE_allow_colored_puppets
					}
					set_autonomy = {
						target = KUR
						autonomy_state = autonomy_autonomous_state_colored
						end_wars = yes
						end_civil_wars = yes
					}
				}
				else = {
					set_autonomy = {
						target = KUR
						autonomy_state = autonomy_autonomous_state
						end_wars = yes
						end_civil_wars = yes
					}
				}
				newline = yes
				if = {
					limit = {
						641 = {
							is_owned_and_controlled_by = IRQ
						}
					}
					641 = { transfer_state_to = KUR }
					newline = yes
				}
				if = {
					limit = {
						166 = {
							is_owned_and_controlled_by = IRQ
						}
					}
					166 = { transfer_state_to = KUR }
					newline = yes
				}
				if = {
					limit = {
						165 = {
							is_owned_and_controlled_by = IRQ
						}
					}
					165 = { transfer_state_to = KUR }
					newline = yes
				}
				if = {
					limit = {
						170 = {
							is_owned_and_controlled_by = IRQ
						}
					}
					170 = { transfer_state_to = KUR }
					newline = yes
				}
				custom_effect_tooltip = IRQ_cant_annex_KUR_TT
				newline = yes
				custom_effect_tooltip = IRQ_willingness_to_accept_low_TT
				newline = yes
				custom_effect_tooltip = IRQ_willingness_to_accept2_TT
			}
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_bolster_communist_party_of_kurdistan_iraq = {
		visible = {
			OR = {
				country_exists = KUR
				country_exists = PUK
			}
			NOT = {
				has_war_with = KUR
			}
			NOT = {
				has_war_with = PUK
			}
			KUR = {
				NOT = {
					is_subject_of = IRQ
				}
			}
			PUK = {
				NOT = {
					is_subject_of = IRQ
				}
			}
		}
		available = {
			OR = {
				KUR = {
					influence_higher_15 = yes
				}
				PUK = {
					influence_higher_15 = yes
				}
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 630
				state = 164
				state = 633
			}
		}
		cost = 75
		days_remove = 35
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_bolster_communist_party_of_kurdistan_iraq"
			set_temp_variable = { percent_change = -1.5 }
			set_temp_variable = { influence_target = KUR }
			change_influence_percentage = yes
			set_temp_variable = { percent_change = -1.5 }
			set_temp_variable = { influence_target = PUK }
			change_influence_percentage = yes
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_bolster_communist_party_of_kurdistan_iraq" #GFX_KUR_Neutral_Communism_small
			if = {
				limit = {
					NOT = {
						has_country_flag = IRQ_news_paper2
					}
				}
				custom_effect_tooltip = IRQ_we_havent_founded_the_paper_TT
				newline = yes
				KUR = {
					set_temp_variable = { party_index = 19 }
					set_temp_variable = { party_popularity_increase = 0.055 }
					set_temp_variable = { temp_outlook_increase = 0.045 }
					change_relative_party_popularity = yes
				}
				PUK = {
					set_temp_variable = { party_index = 19 }
					set_temp_variable = { party_popularity_increase = 0.055 }
					set_temp_variable = { temp_outlook_increase = 0.045 }
					change_relative_party_popularity = yes
				}
			}
			if = {
				limit = {
					has_country_flag = IRQ_news_paper2
				}
				KUR = {
					set_temp_variable = { party_index = 19 }
					set_temp_variable = { party_popularity_increase = 0.085 }
					set_temp_variable = { temp_outlook_increase = 0.075 }
					change_relative_party_popularity = yes
				}
				PUK = {
					set_temp_variable = { party_index = 19 }
					set_temp_variable = { party_popularity_increase = 0.085 }
					set_temp_variable = { temp_outlook_increase = 0.075 }
					change_relative_party_popularity = yes
				}
			}
		}
		modifier = {
			political_power_gain = -0.50
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_request_an_election = {
		visible = {
			OR = {
				country_exists = KUR
				country_exists = PUK
			}
			NOT = {
				has_war_with = KUR
			}
			KUR = {
				NOT = {
					is_subject_of = IRQ
				}
			}
		}
		available = {
			if = {
				limit = {
					country_exists = KUR
				}
				KUR = {
					influence_higher_40 = yes
					neutrality > 0.70
				}
			}
			else = {
				PUK = {
					influence_higher_40 = yes
					neutrality > 0.70
				}
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 630
				state = 164
				state = 633
			}
		}
		cost = 75
		days_remove = 35
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_request_an_election" #GFX_KUR_Neutral_Communism_small
			if = {
				limit = {
					country_exists = KUR
				}
				KUR = {
					country_event = {
						id = iraq_md.66
						days = 3
					}
				}
			}
			else = {
				PUK = {
					country_event = {
						id = iraq_md.66
						days = 3
					}
				}
			}
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_medium_TT
			newline = yes
			custom_effect_tooltip = IRQ_willingness_to_accept_TT
		}
		ai_will_do = {
			base = 10
		}
	}

	# Begin Weapons Shipments to Rojava
	IRQ_rojava_shipments = {
		visible = {
			country_exists = SYR
			NOT = {
				has_war_with = SYR
			}
			SYR = {
				NOT = {
					is_subject_of = IRQ
				}
			}
			193 = {
				is_owned_and_controlled_by = SYR
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 193
			}
		}
		cost = 60
		fire_only_once = yes
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_rojava_shipments"
			custom_effect_tooltip = IRQ_rojavan_arming_TT
			newline = yes
			custom_effect_tooltip = IRQ_activate_mission_rojava_TT
			set_country_flag = IRQ_shipping_to_rojava
		}
		ai_will_do = {
			base = 10
		}
	}

	IRQ_shipping_to_rojava = {
		activation = {
			IRQ = {
				has_country_flag = IRQ_shipping_to_rojava
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 193
			}
		}
		available = {
			always = no
		}
		days_mission_timeout = 31
		is_good = yes
		cancel_trigger = {
			NOT = {
				has_country_flag = IRQ_shipping_to_rojava
			}
		}
		fixed_random_seed = yes
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout IRQ_shipping_to_rojava"
			custom_effect_tooltip = IRQ_current_progress_TT
			newline = yes
			set_variable = { IRQ_shipments_to_rojava = 0 }
			clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
			if = {
				limit = {
					check_variable = {
						IRQ_shipments_to_rojava > 5
					}
				}
				country_event = iraq_md.65
				clr_country_flag = IRQ_shipping_to_rojava
			}
			# Influence will scale the chance of shipments getting caught
			if = {
				limit = {
					SYR = {
						influence_less_10 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
				}
				random_list = {
					30 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					70 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			if = {
				limit = {
					SYR = {
						influence_higher_10 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
					NOT = {
						SYR = {
							influence_higher_20 = yes
						}
					}
				}
				random_list = {
					50 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					50 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			if = {
				limit = {
					SYR = {
						influence_higher_20 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
					NOT = {
						SYR = {
							influence_higher_30 = yes
						}
					}
				}
				random_list = {
					60 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					40 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			if = {
				limit = {
					SYR = {
						influence_higher_30 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
					NOT = {
						SYR = {
							influence_higher_40 = yes
						}
					}
				}
				random_list = {
					70 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					30 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			if = {
				limit = {
					SYR = {
						influence_higher_40 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
					NOT = {
						SYR = {
							influence_higher_50 = yes
						}
					}
				}
				random_list = {
					80 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					20 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			if = {
				limit = {
					SYR = {
						influence_higher_50 = yes
					}
					NOT = {
						check_variable = {
							IRQ_shipments_to_rojava > 5
						}
					}
				}
				random_list = {
					90 = {
						custom_effect_tooltip = IRQ_progress_in_shipment_TT
						add_to_variable = { IRQ_shipments_to_rojava = 1 }
						clamp_variable = { var = IRQ_shipments_to_rojava min = 0 max = 12 }
					}
					10 = {
						country_event = iraq_md.62
						clr_country_flag = IRQ_shipping_to_rojava
					}
				}
			}
			newline = yes
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = -500
			}
		}
	}
}

IRQ_ai_path_category = {
	IRQ_ai_rally_the_clerics = {

		icon = generic_decision

		cost = 25

		days_re_enable = 30

		visible = { has_global_flag = IRQ_SHIA_THEOCRACY_FOCUS_PATH }

		available = {
			IRQ_ai_path_ramp_window = yes
			check_variable = { party_pop_array^9 < 0.55 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_rally_the_clerics"
			set_temp_variable = { party_index = 9 }
			set_temp_variable = { party_popularity_increase = 0.04 }
			set_temp_variable = { temp_outlook_increase = 0.04 }
			change_relative_party_popularity = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_clerics_take_the_country = {

		icon = generic_decision

		cost = 150

		days_re_enable = 180

		visible = { has_global_flag = IRQ_SHIA_THEOCRACY_FOCUS_PATH }

		available = {
			IRQ_ai_path_takeover_window = yes
			emerging_hardline_shiite_are_in_power = no
			check_variable = { party_pop_array^9 > 0.5 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_clerics_take_the_country"
			set_temp_variable = { rul_party_temp = 9 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_rally_the_sadrists = {

		icon = generic_decision

		cost = 25

		days_re_enable = 30

		visible = { has_global_flag = IRQ_SADRIST_FOCUS_PATH }

		available = {
			IRQ_ai_path_ramp_window = yes
			check_variable = { party_pop_array^20 < 0.55 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_rally_the_sadrists"
			set_temp_variable = { party_index = 20 }
			set_temp_variable = { party_popularity_increase = 0.04 }
			set_temp_variable = { temp_outlook_increase = 0.04 }
			change_relative_party_popularity = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_sadrists_take_the_country = {

		icon = generic_decision

		cost = 150

		days_re_enable = 180

		visible = { has_global_flag = IRQ_SADRIST_FOCUS_PATH }

		available = {
			IRQ_ai_path_takeover_window = yes
			nationalist_right_wing_populists_are_in_power = no
			check_variable = { party_pop_array^20 > 0.5 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_sadrists_take_the_country"
			set_temp_variable = { rul_party_temp = 20 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_rally_the_secular_opposition = {

		icon = generic_decision

		cost = 25

		days_re_enable = 30

		visible = { has_global_flag = IRQ_SECULAR_REPUBLIC_FOCUS_PATH }

		available = {
			IRQ_ai_path_ramp_window = yes
			check_variable = { party_pop_array^3 < 0.55 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_rally_the_secular_opposition"
			set_temp_variable = { party_index = 3 }
			set_temp_variable = { party_popularity_increase = 0.04 }
			set_temp_variable = { temp_outlook_increase = 0.04 }
			change_relative_party_popularity = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_secular_opposition_takes_the_country = {

		icon = generic_decision

		cost = 150

		days_re_enable = 180

		visible = { has_global_flag = IRQ_SECULAR_REPUBLIC_FOCUS_PATH }

		available = {
			IRQ_ai_path_takeover_window = yes
			western_social_democrats_are_in_power = no
			check_variable = { party_pop_array^3 > 0.5 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_secular_opposition_takes_the_country"
			set_temp_variable = { rul_party_temp = 3 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_rally_the_communists = {

		icon = generic_decision

		cost = 25

		days_re_enable = 30

		visible = { has_global_flag = IRQ_COMMUNIST_FOCUS_PATH }

		available = {
			IRQ_ai_path_ramp_window = yes
			check_variable = { party_pop_array^19 < 0.55 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_rally_the_communists"
			set_temp_variable = { party_index = 19 }
			set_temp_variable = { party_popularity_increase = 0.04 }
			set_temp_variable = { temp_outlook_increase = 0.04 }
			change_relative_party_popularity = yes
		}

		ai_will_do = { base = 100 }
	}

	IRQ_ai_communists_take_the_country = {

		icon = generic_decision

		cost = 150

		days_re_enable = 180

		visible = { has_global_flag = IRQ_COMMUNIST_FOCUS_PATH }

		available = {
			IRQ_ai_path_takeover_window = yes
			neutrality_neutral_communism_are_in_power = no
			check_variable = { party_pop_array^19 > 0.5 }
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision IRQ_ai_communists_take_the_country"
			set_temp_variable = { rul_party_temp = 19 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
		}

		ai_will_do = { base = 100 }
	}
}
