﻿division_template = {
	name = "Brigada de Caballeria"

	regiments = {
		armor_Bat = { x = 0 y = 0 }
		armor_Bat = { x = 0 y = 1 }
		armor_Bat = { x = 0 y = 2 }
		Mech_Inf_Bat = { x = 0 y = 3 }
	}

	support = {
		armor_Recce_Comp = { x = 0 y = 0 }
		SP_Arty_Battery = { x = 0 y = 1 }
		L_Engi_Comp = { x = 0 y = 2 }
	}
}

division_template = {
	name = "Brigada Infanteria"

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

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

division_template = {
	name = "Brigada de la Infantería de la Selva"

	regiments = {
		L_Inf_Bat = { x = 0 y = 0 }
		L_Inf_Bat = { x = 0 y = 1 }
		L_Inf_Bat = { x = 0 y = 2 }
	}

	support = {
		L_Recce_Comp = { x = 0 y = 0 }
		L_Engi_Comp = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Brigada de las Fuerzas Especiales"

	regiments = {
		Special_Forces = { x = 0 y = 0 }
		Special_Forces = { x = 0 y = 1 }
	}
	priority = 2
}

division_template = {
	name = "Brigada de Infanteria Marina"

	regiments = {
		Mot_Marine_Bat = { x = 0 y = 0 }
		Mot_Marine_Bat = { x = 0 y = 1 }
		Mot_Marine_Bat = { x = 0 y = 2 }
		Mot_Marine_Bat = { x = 0 y = 3 }
		Mot_Marine_Bat = { x = 0 y = 4 }
	}
}

units = {
	#1st Division
	division = {
		name = "Brigada de Caballería Blindada N. 11 'Galápagos'"
		location = 10166
		division_template = "Brigada de Caballeria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de Infanteria No 13 'Pichincha'"
		location = 12798
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de las Fuerzas Especiales No 9 'Patria'"
		location = 12798
		division_template = "Brigada de las Fuerzas Especiales"
		start_experience_factor = 0.7
		start_equipment_factor = 0.01
	}

	#2nd Division
	division = {
		name = "Brigada de Infanteria No 5 'Guayas'"
		location = 8252 		#Guayaquil
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}

	#3rd Division
	division = {
		name = "Brigada de Infanteria No 1 'El Oro'"
		location = 11020 		#Cuenca
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de Infanteria N. 3 'Portete'"
		location = 11020
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de Infanteria No 7 'Loja'"
		location = 5120
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}

	#4th Division
	division = {
		name = "Brigada de la Infantería de la Selva No 17 'Pastaza'"
		location = 10179
		division_template = "Brigada de la Infantería de la Selva"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de la Infantería de la Selva No 19 'Napo'"
		location = 10206
		division_template = "Brigada de la Infantería de la Selva"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}

	division = {
		name = "Cuerpo de Infanteria de Marina"
		location = 8252 			#Guayaquil
		division_template = "Brigada de Infanteria Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = command_control_equipment
		amount = 1000
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons			#FN FAL
		amount = 3100
		producer = BEL
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons			#HK 33
		amount = 3100
		producer = GER
	}
	add_equipment_to_stockpile = {
		type = Anti_tank_1			#MILAN
		amount = 250
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_1			#MAPATS
		amount = 110
		producer = ISR
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_2		#Humvee
		amount = 700
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = mbt_hull_0
		variant_name = "T-55"
		amount = 3
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_0
		variant_name = "AMX-30"
		amount = 108
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0 #Panhard AML
		amount = 27
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0 #EE-9 Cascavel
		amount = 30
		producer = BRA
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_2 #EE-3 Jararaca
		amount = 10
		producer = BRA
	}
	add_equipment_to_stockpile = {
		type = APC_2 #M113 APC
		amount = 20
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = APC_1 #AMX-VCI
		amount = 80
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = APC_2 #EE-11 Urutu
		amount = 30
		producer = BRA
	}
	add_equipment_to_stockpile = {
		type = APC_2 #EE-11 Urutu
		amount = 30
		producer = BRA
	}
	add_equipment_to_stockpile = {
		type = artillery_0			#M101
		#version_name = "M101"
		amount = 80
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = artillery_0 #OTO Melara Mod 56
		amount = 24
		producer = ITA
	}
	add_equipment_to_stockpile = {
		type = artillery_0			#M198
		amount = 12
		producer = USA
		#version_name = "M198 howitzer"
	}
	add_equipment_to_stockpile = {
		type = artillery_0 #M114
		amount = 12
		producer = USA
		#version_name = "M114"
	}
	add_equipment_to_stockpile = {
		type = SP_arty_0			#Mk F3
		amount = 10
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0			#Shilka
		#version_name = "ZSU-23-4 Shilka"
		amount = 162
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_0			#Blowpipe
		amount = 75
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_1			#Igla
		amount = 90
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = transport_plane2 #CASA CN-235
		amount = 1
		producer = IND
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Aérospatiale SA-316 Alouette III
		amount = 3
		producer = FRA
		#version_name = "Aérospatiale SA-316 Alouette III"
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Aérospatiale SA-330 Puma
		amount = 36
		producer = FRA
		#version_name = "Aérospatiale SA-316 Alouette III"
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter2 #Eurocopter AS532 Cougar
		amount = 4
		producer = FRA
		#version_name = "Aérospatiale SA-316 Alouette III"
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Bell 214
		amount = 1
		producer = USA
		#version_name = "Bell 214"
	}
	add_equipment_to_stockpile = {
		type = Strike_fighter1 #SEPECAT Jaguar
		amount = 8
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1 #IAI Kfir
		amount = 10
		producer = ISR
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter1 #A-37 Dragonfly
		amount = 20
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1 #Dassault Mirage F1
		amount = 13
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Strike_fighter1 #Mitsubishi F-1 Rei-Sen
		amount = 1
		producer = JAP
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter1 #BAC Strikemaster
		amount = 4
		producer = ENG
		#version_name = "BAC Strikemaster"
	}
	add_equipment_to_stockpile = {
		type = transport_plane1 #C-130 Hercules
		amount = 3
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1			#AS332
		#version_name = "Eurocopter AS332 Super Puma"
		amount = 8
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Aérospatiale SA-316 Alouette III
		#version_name = "Aérospatiale SA-316 Alouette III"
		amount = 5
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Eurocopter AS332 Super Puma
		#version_name = "Eurocopter AS332 Super Puma"
		amount = 3
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Bell 206
		#version_name = "Bell 206"
		amount = 6
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Bell UH-1 Iroquois
		amount = 26
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter2 #T-38C Talon
		amount = 2
		producer = USA
	}


	if = {
		limit = { has_dlc = "Death or Dishonor" }
		ISR = {
			create_production_license = {
				target = ECU
				equipment = {
					type = MR_Fighter1 #IAI Kfir
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = MR_Fighter1 #IAI Kfir
					creator = "ISR"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		SOV = {
			create_production_license = {
				target = ECU
				equipment = {
					type = transport_helicopter1 #Mi-17
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = transport_helicopter1 #Mi-17
					creator = "SOV"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}
}