﻿division_template = {
	name = "Reconstructed Infantry Division" #Reconstructed/New Units
	regiments = {
		Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_Inf_Bat = { x = 0 y = 1 }
		Mot_Inf_Bat = { x = 1 y = 0 }
		Mot_Inf_Bat = { x = 1 y = 1 }
		Arty_Bat = { x = 2 y = 0 }
		Mot_Inf_Bat = { x = 3 y = 0 }
	}
	priority = 1
}

division_template = {
	name = "Armored Division"
	regiments = {
		armor_Bat = { x = 0 y = 0 }
		armor_Bat = { x = 0 y = 1 }
		armor_Bat = { x = 0 y = 2 }
		Arm_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 1 }
		SP_Arty_Bat = { x = 2 y = 0 }
		SP_Arty_Bat = { x = 2 y = 1 }
		L_arm_Bat = { x = 2 y = 2 }
		Mech_Inf_Bat = { x = 2 y = 3 }
	}
	support = {
		SP_AA_Battery = { x = 0 y = 0 }
	}
}
division_template = {
	name = "Infantry Division" #Std Iraqi Division
	regiments = {
		Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_Inf_Bat = { x = 0 y = 1 }
		Mot_Inf_Bat = { x = 1 y = 0 }
		Mot_Inf_Bat = { x = 1 y = 1 }
		Arty_Bat = { x = 2 y = 0 }
		Mech_Inf_Bat = { x = 3 y = 0 }
		Mech_Inf_Bat = { x = 3 y = 1 }
		Mech_Inf_Bat = { x = 3 y = 1 }
	}
	support = {
		SP_AA_Battery = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Special Forces"
	regiments = {
		Special_Forces = { x = 0 y = 0 }
		Special_Forces = { x = 0 y = 1 }
	}
	priority = 2
}

division_template = {
	name = "Popular Mobilization Unit"
	regiments = {
	  Mot_Militia_Bat = { x = 0 y = 0 }
		Mot_Militia_Bat = { x = 0 y = 1 }
		Mot_Militia_Bat = { x = 0 y = 2 }
		Mot_Militia_Bat = { x = 0 y = 3 }
		Mech_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 1 }
		L_Inf_Bat = { x = 2 y = 0 }
	}
	support = {
		armor_Comp = { x = 0 y = 0 }
		Arty_Battery = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Liwa Saraya al-Salam"
	regiments = {
	  Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_Inf_Bat = { x = 0 y = 1 }
		Mot_Inf_Bat = { x = 0 y = 2 }
	}
	support = {
		armor_Comp = { x = 0 y = 0 }
		Arm_Recce_Comp = { x = 0 y = 1 }
		Arty_Battery = { x = 0 y = 2 }
	}
	priority = 2
}

units = {
	### PMU Sistani faction #WIP
	division = {
		name = "Saraya al-Ataba al-Abbasiya"
		location = 1600
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Saraya al-Ataba al-Hussainiya"
		location = 11199
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Saraya al-Ataba al-Alawiya"
		location = 11275
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Liwa ‘Ali al-Akbar"
		location = 11275
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Islamic Supreme Council of Iraq"
		location = 3272
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Saraya el-Jihad"
		location = 3219
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Saraya el-Aqida"
		location = 8123
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "Saraya Ashura"
		location = 11289
		division_template = "Popular Mobilization Unit"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	### PMU Muqtada al-Sadr faction #WIP
	division = {
		name = "1. Liwa Saraya al-Salam"
		location = 2097
		division_template = "Liwa Saraya al-Salam"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "2. Liwa Saraya al-Salam"
		location = 2097
		division_template = "Liwa Saraya al-Salam"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "3. Liwa Saraya al-Salam"
		location = 2097
		division_template = "Liwa Saraya al-Salam"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "4. Liwa Saraya al-Salam"
		location = 11289
		division_template = "Liwa Saraya al-Salam"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	### Iraqi Army
	division = {
		name = "16th Infantry Division"
		location = 11369
		division_template = "Reconstructed Infantry Division"
		start_experience_factor = 0.0
		start_equipment_factor = 0.01
	}
		division = {
		name = "15th Infantry Division"
		location = 3219
		division_template = "Reconstructed Infantry Division"
		start_experience_factor = 0.0
		start_equipment_factor = 0.01
	}
		division = {
		name = "10th Infantry Division"
		location = 11498
		division_template = "Reconstructed Infantry Division"
		start_experience_factor = 0.0
		start_equipment_factor = 0.01
	}
	division = {
		name = "14th Infantry Division"
		location = 11199
		division_template = "Reconstructed Infantry Division"
		start_experience_factor = 0.0
		start_equipment_factor = 0.01
	}
		division = {
		name = "1st Motorized Division"
		location = 1600
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "5th Motorized Division"
		location = 11275
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "6th Motorized Division"
		location = 11369
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "7th Motorized Division"
		location = 8123
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "8th Motorized Division"
		location = 1631
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "17th Motorized Division"
		location = 11198
		division_template = "Infantry Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "9th Armored Division"
		location = 11498
		division_template = "Armored Division"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
	division = {
		name = "1st Special Operations Brigade"
		location = 1600
		division_template = "Special Forces"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "2nd Special Operations Brigade"
		location = 3272
		division_template = "Special Forces"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "3rd Special Operations Brigade"
		location = 2097
		division_template = "Special Forces"
		start_experience_factor = 0.1
		start_equipment_factor = 0.01
	}
}

instant_effect = {
	#All equipment numbers are estimates.
	#Aircraft

	add_equipment_to_stockpile = {
		type = Strike_fighter3	#L-159
		amount = 14
		producer = CZE
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1	#MiG-21
		amount = 12
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = MR_Fighter3
		amount = 10
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = Strike_fighter2	#Su-22
		amount = 5
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Strike_fighter2	#Su-24
		amount = 7
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = L_Strike_fighter1
		amount = 17
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = attack_helicopter1	#Mi-24
		amount = 24
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = attack_helicopter1	#Gazelle
		amount = 10
		producer = FRA
	}

	#Ground Forces
	#Vehicles

	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "M1A1 Abrams"
		amount = 100
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "T-72"
		amount = 120
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = mbt_hull_0
		variant_name = "T-55"
		amount = 100
		producer = SOV
	}

	### Recce ###

	add_equipment_to_stockpile = {
		type = Rec_tank_0	  #Cascavel
		amount = 35
		producer = BRA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0	  #BRDM 2
		amount = 18
		producer = UKR
	}

	### IFV
	add_equipment_to_stockpile = {
		type = IFV_1			#BMP-1
		amount = 80
		producer = SOV
	}

	### APC
	add_equipment_to_stockpile = {
		type = APC_2		#M113A2
		amount = 500
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = APC_2			#MT-LB
		amount = 400
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = APC_3			#Fuchs
		amount = 20
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = APC_4			#BTR-80
		amount = 100
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = APC_5			#BTR-4
		amount = 60
		producer = UKR
	}

	### Utility ###
	add_equipment_to_stockpile = {
		type = util_vehicle_3	#Cobra
		amount = 10
		producer = TUR
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_2	  #Akrep
		amount = 400
		producer = TUR
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_4	#Dzik-3
		amount = 450
		producer = POL
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_2 #Humvee
		amount = 3900
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_3	#Mamba
		amount = 400
		producer = SAF
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_5	#Maxxpro
		amount = 30
		producer = USA
	}

	#Misc. Equipment

	add_equipment_to_stockpile = {
		type = infantry_weapons3 #M16A4
		amount = 4500
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = infantry_weapons #AKM
		amount = 20000
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = infantry_weapons1 #Z70
		amount = 5000
		producer = SER
	}

	add_equipment_to_stockpile = {
		type = command_control_equipment
		amount = 1600
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = command_control_equipment2
		amount = 250
		producer = USA
	}

	#Artillery:

	add_equipment_to_stockpile = {
		type = artillery_0
		amount = 60
		 producer = USA
	}

	add_equipment_to_stockpile = {
		type = artillery_0
		amount = 60
		 producer = SOV
	}

	add_equipment_to_stockpile = {
		type = artillery_0
		amount = 60
		 producer = CHI
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0
		amount = 30
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0
		amount = 18
		producer = CHI
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_0
		amount = 15
		producer = SOV
	}

	### AA

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_2
		amount = 20
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_1
		amount = 10
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_1
		amount = 300
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_2
		amount = 50
		producer = SOV
	}

	##ATGM
	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_2	#Kornet
		amount = 200
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_tank_1			#MILANs
		amount = 450
		producer = FRA
	}

	   if = {
		limit = { has_dlc = "Death or Dishonor" }
		USA = {
			create_production_license = {
				target = IRQ
				equipment = {
					type = APC_3
				}
				cost_factor = 0
			}
		}
		SOV = {
			create_production_license = {
				target = IRQ
				equipment = {
					type = APC_3
				}
				cost_factor = 0
			}
		}
		FRA = {
			create_production_license = {
				target = IRQ
				equipment = {
					type = mbt_hull_1
					version = 0
				}
				cost_factor = 0
			}
		}
		USA = {
			create_production_license = {
				target = IRQ
				equipment = {
					type = mbt_hull_1
					version = 0
				}
				cost_factor = 0
			}
		}
		USA = {
			create_production_license = {
				target = IRQ
				equipment = {
					type = CV_MR_Fighter3
				}
				cost_factor = 0
			}
		}

		else = {
			add_equipment_production = {
				equipment = {
					type = APC_3
					creator = "SOV"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = APC_3
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = mbt_hull_1
					version = 0
					creator = "FRA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = mbt_hull_1
					version = 0
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = CV_MR_Fighter3
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}

}