﻿#All Azerbaijani units follow the same template, but let's make it three to use all equipment
division_template = {
	name = "Motoatici Briqadasi (ÖÖA)"		#Motor Rifle Brigade with SPART (after Soviet Motor Rifle Regiment model)

	regiments = {
		Mech_Inf_Bat = { x = 0 y = 0 }
		Mech_Inf_Bat = { x = 0 y = 1 }
		Arm_Inf_Bat = { x = 0 y = 2 }
	}

	support = {
		armor_Comp = { x = 0 y = 0 }
		SP_Arty_Battery = { x = 0 y = 1 }
		Mot_Recce_Comp = { x = 0 y = 2 }
	}
}

division_template = {
	name = "Motoatici Briqadasi (A)"		#Motor Rifle Brigade with ART (after Soviet Motor Rifle Regiment model)

	regiments = {
		Mech_Inf_Bat = { x = 0 y = 0 }
		Arm_Inf_Bat = { x = 0 y = 1 }
		Arm_Inf_Bat = { x = 0 y = 2 }
	}

	support = {
		armor_Comp = { x = 0 y = 0 }
		Arty_Battery = { x = 0 y = 1 }
		Mot_Recce_Comp = { x = 0 y = 2 }
	}
}

units = {
	#1st Corps
	division = {
		name = "1-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "3-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "9-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "10-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "15-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "17-ci Motoatıcı Briqadası"
		location = 11645		#Evlax
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}

	#2nd Corps
	division = {
		name = "2-ci Motoatıcı Briqadası"
		location = 11704		#Pirekeshkul
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "4-ci Motoatıcı Briqadası"
		location = 11704		#Pirekeshkul
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "6-ci Motoatıcı Briqadası"
		location = 11704		#Pirekeshkul
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "8-ci Motoatıcı Briqadası"
		location = 11704		#Pirekeshkul
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "18-ci Motoatıcı Briqadası"
		location = 11704		#Pirekeshkul
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}

	#3rd Corps
	division = {
		name = "7-ci Motoatıcı Briqadası"
		location = 1539		#Shamkir
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "11-ci Motoatıcı Briqadası"
		location = 1539		#Shamkir
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "12-ci Motoatıcı Briqadası"
		location = 1539		#Shamkir
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "16-ci Motoatıcı Briqadası"
		location = 1539		#Shamkir
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "19-ci Motoatıcı Briqadası"
		location = 1539		#Shamkir
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}

	#4th Corps
	division = {
		name = "41-ci Motoatıcı Briqadası"
		location = 7661		#Baku
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "42-ci Motoatıcı Briqadası"
		location = 7661		#Baku
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "43-ci Motoatıcı Briqadası"
		location = 7661		#Baku
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}

	#5th Corps
	division = {
		name = "51-ci Motoatıcı Briqadası"
		location = 13919		#Mingechevir
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "52-ci Motoatıcı Briqadası"
		location = 13919		#Mingechevir
		division_template = "Motoatici Briqadasi (ÖÖA)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
	division = {
		name = "53-ci Motoatıcı Briqadası"
		location = 13919		#Mingechevir
		division_template = "Motoatici Briqadasi (A)"
		start_experience_factor = 0.2
		start_equipment_factor = 0.01
	}
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = Strike_fighter1	#L-29
		amount = 6
		producer = CZE
	}
		add_equipment_to_stockpile = {
		type = Strike_fighter2	#L-39
		amount = 23
		producer = CZE
	}
	add_equipment_to_stockpile = {
		type = MBT_4			#T-90
		amount = 100
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = MBT_2			#T-72 SIM2 (might need variant)
		amount = 420
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = IFV_4			#BMP-3
		amount = 104
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = IFV_3 			#BMP-2
		amount = 141
		producer = SOV
	}

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

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

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

	add_equipment_to_stockpile = {
		type = APC_3			#BTR-70
		amount = 53
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = APC_1			#BTR-60
		amount = 53
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = APC_4			#BTR-3
		amount = 3
		producer = UKR
	}

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

	add_equipment_to_stockpile = {
		type = Rec_tank_0		#BRDM-2
		#version_name = "BRDM-2"
		amount = 88
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_4		#Guyrza patrol vehicle
		amount = 15
		producer = AZE
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_1		#Wolf SSA
		amount = 43
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_2		#Tarpan Honker
		amount = 3
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_4		#Renault Sherpa (Nexter Aravis in files, but pointless to make a variant)
		amount = 10
		producer = FRA
	}

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

	add_equipment_to_stockpile = {
		type = util_vehicle_2		#Land Rover Defender
		amount = 110
		producer = ENG
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_2		#AIL Storm
		amount = 80
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_4		#Sand Cat
		amount = 5
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_3		#Otokar Cobra
		amount = 350
		producer = TUR
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_5		#Marauder (license produced)
		amount = 145
		producer = SAF
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_1		#TOS-1
		#version_name = "TOS-1"
		amount = 18
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_1		#BM-30 Smerch
		#version_name = "BM-30 Smerch"
		amount = 36
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_2		#T-300
		amount = 20
		producer = TUR
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_1		#T-122 Sakariya
		amount = 44
		producer = TUR
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_1		#LAR-160 Lynx
		amount = 30
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = SP_R_arty_0		#BM-21 Grad
		amount = 53
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_1			#ATMOS 2000
		amount = 5
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = SP_arty_1			#2S19 Msta
		amount = 18
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0			#2S7 Pion
		#version_name = "2S7 Pion"
		amount = 12
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0			#2S3 Akatsiya
		amount = 6
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0			#2S1 Gvozdika
		#version_name = "2S1 Gvozdika"
		amount = 46
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0			#2S1 Gvozdika
		#version_name = "2S1 Gvozdika"
		amount = 46
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_2			#2S31 Vena
		#version_name = "2S31 Vena"
		amount = 18
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_arty_0			#2S9 Nona
		#version_name = "2S9 Nona"
		amount = 27
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = artillery_0		#D-30 and other guns
		amount = 293
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0			#SA-8 Osa
		amount = 80
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_1			#SA-13 Strela 10
		#version_name = "SA-13 Strela-10"
		amount = 54
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_1				#Iglas
		amount = 650
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_tank_1			#Fagot
		amount = 200
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_tank_2			#Spike
		amount = 200
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = Anti_tank_1			#MILAN
		amount = 200
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_1			#Konkurs
		amount = 200
		producer = SOV
	}

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

	add_equipment_to_stockpile = {
		type = infantry_weapons1			#AK-74
		amount = 11000
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons2			#AK-74M licensed
		amount = 1000
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons4			#IMI Tavor TAR-21
		amount = 500
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = command_control_equipment1
		amount = 1500
		producer = AZE
	}

	#Aircraft
	add_equipment_to_stockpile = {
		type = MR_Fighter1	#MiG-21
		amount = 5
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = MR_Fighter2	#MiG-29
		amount = 13
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = cas2		#SU-25
		amount = 11
		producer = SOV
	}

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

	add_equipment_to_stockpile = {
		type = transport_helicopter1	#Mi-17
		amount = 50
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Air_UAV1		#Hermes 450
		amount = 10
		producer = ISR
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		SAF = {
			create_production_license = {
				target = AZE
				equipment = {
					type = util_vehicle_5			#Marauder
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = util_vehicle_5
					version_name = "Marauder"
					creator = "SAF"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}
}