﻿division_template = {
	name = "Brigada de Caballeria"

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

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

division_template = {
	name = "Brigada Infanteria"

	regiments = {
		Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_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 Caballeria No 1 'Galápagos'"
		location = 12798 		#Quito
		division_template = "Brigada de Caballeria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de Infanteria No 13 'Pichincha'"
		location = 5051
		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 No 3"
		location = 10160
		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 = 10888 			#El Coca
		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 = 8075 			#El Coca
		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 21 'Cóndor'"
		location = 10179 			#El Coca
		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 = 15000
		producer = BEL
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons			#HK 33
		amount = 10000
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons1			#SG 540
		amount = 500
		producer = SWI
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons1			#Steyr AUG
		amount = 500
		producer = AUS
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons1			#IMI Galil
		amount = 500
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons2			#M16A2
		amount = 500
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons4			#M4
		amount = 500
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = MBT_2			#Leopard 1
		amount = 30
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = MBT_2			#Leopard 1A5
		#version_name = "Leopard 1A5"
		amount = 30
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = MBT_1			#T-55
		amount = 64
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_0			#AMX-13
		#version_name = "AMX-13"
		amount = 108
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_0			#Panhard AML
		#version_name = "Panhard AML"
		amount = 62
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_0			#ERC 90 F4 Sagaie
		#version_name = "ERC 90 F4 Sagaie"
		amount = 10
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_0			#EE-9 Cascavel
		amount = 32
		producer = BRA
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_0			#Trucks
		amount = 1000
		producer = ECU
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_2 	#EE-3 Jararaca
		amount = 10
		producer = BRA
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_4			#Agrale Marrua
		amount = 30
		producer = BRA
	}

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

	add_equipment_to_stockpile = {
		type = util_vehicle_2			#Tiuna
		amount = 2
		producer = VEN
	}

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

	add_equipment_to_stockpile = {
		type = APC_2			#EE-11 Urutu
		amount = 32
		producer = BRA
	}

	add_equipment_to_stockpile = {
		type = APC_1			#AMX-VCI
		#version_name = "AMX-VCI"
		amount = 80
		producer = FRA
	}

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

	add_equipment_to_stockpile = {
		type = APC_2			#M113
		amount = 20
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = APC_1			#UR-416
		#version_name = "Henschel UR-416"
		amount = 10
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = APC_1			#BLR-600
		amount = 15
		producer = SPR
	}

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

	add_equipment_to_stockpile = {
		type = SP_arty_0			#Mk F3
		amount = 12
		producer = FRA
	}

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

	add_equipment_to_stockpile = {
		type = SP_R_arty_1			#RM-70
		amount = 8
		producer = CZE
	}

	add_equipment_to_stockpile = {
		type = artillery_0			#M198
		#version_name = "M198 howitzer"
		amount = 12
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = artillery_0			#M101
		#version_name = "M101"
		amount = 54
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = artillery_0			#OTO Melara Mod 56
		amount = 24
		producer = ITA
	}

	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_1			#MAPATS
		amount = 50
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_2			#Spike
		amount = 122
		producer = ISR
	}

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

	add_equipment_to_stockpile = {
		type = Anti_tank_1			#HJ-8
		amount = 75
		producer = CHI
	}

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

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

	add_equipment_to_stockpile = {
		type = Anti_Air_0			#Blowpipe
		amount = 220
		producer = ENG
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_0			#HN-5
		amount = 50
		producer = CHI
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_0			#Strela
		amount = 50
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_1			#Igla
		amount = 50
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_1			#Mistral
		amount = 50
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0			#Shilka
		#version_name = "ZSU-23-4 Shilka"
		amount = 34
		producer = SOV
	}

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

	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0			#Chaparral
		#version_name = "MIM-72 Chaparral"
		amount = 18
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = transport_helicopter1			#Mi-17
		#version_name = "Mil Mi-17"
		amount = 8
		producer = SOV
	}

	add_equipment_to_stockpile = {
		type = transport_helicopter1			#AS332
		#version_name = "Eurocopter AS332 Super Puma"
		amount = 6
		producer = FRA
	}

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

	add_equipment_to_stockpile = {
		type = MR_Fighter1			#Atlas Cheetah
		amount = 10
		producer = SAF
	}

	add_equipment_to_stockpile = {
		type = MR_Fighter1			#Kfir
		amount = 8
		producer = ISR
	}

	add_equipment_to_stockpile = {
		type = transport_plane1			#C-130
		amount = 4
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = L_Strike_fighter3			#Super Tucano
		amount = 17
		producer = BRA
	}

	if = {
		limit = { NOT = { has_dlc = "Man the Guns" } }
		if = {
			limit = { has_dlc = "Death or Dishonor" }
			GER = {
				create_production_license = {
					target = ECU
					equipment = {
						type = diesel_attack_submarine_2			#Type 209-Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = diesel_attack_submarine_2
						version_name = "Type 209-Class"
						creator = "GER"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}

		if = {
			limit = { has_dlc = "Death or Dishonor" }
			ENG = {
				create_production_license = {
					target = ECU
					equipment = {
						type = frigate_1			#Condell-Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = frigate_1
						version_name = "Condell-Class"
						creator = "ENG"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}

		if = {
			limit = { has_dlc = "Death or Dishonor" }
			ITA = {
				create_production_license = {
					target = ECU
					equipment = {
						type = corvette_2			#Tipo 550-Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = corvette_2
						creator = "ITA"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}
	}
}