﻿division_template = {
	name = "Brigada Blindada" #Armoured Brigade
	regiments = {
		L_arm_Bat = { x = 0 y = 0 }
		L_arm_Bat = { x = 0 y = 1 }
		L_arm_Bat = { x = 0 y = 2 }
		Arm_Inf_Bat = { x = 0 y = 3 }
	}
	support = {
		L_Engi_Comp = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Brigada Infanteria" #Infantry Brigade
	regiments = {
		L_Inf_Bat = { x = 0 y = 0 }
		L_Inf_Bat = { x = 0 y = 1 }
		L_Inf_Bat = { x = 0 y = 2 }
		Arty_Bat = { x = 0 y = 3 }
	}
	support = {
		L_Engi_Comp = { x = 0 y = 0 }
		L_Recce_Comp = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Brigada Motorizada" #Motorised Infantry Brigade
	regiments = {
		Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_Inf_Bat = { x = 0 y = 1 }
		Mot_Inf_Bat = { x = 0 y = 2 }
		Arty_Bat = { x = 0 y = 3 }
	}
	support = {
		L_Engi_Comp = { x = 0 y = 0 }
		Mot_Recce_Comp = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Brigada de Fusileros Paracaidistas" #Parachute Infantry Brigade
	regiments = {
		L_Air_Inf_Bat = { x = 0 y = 0 }
		L_Air_Inf_Bat = { x = 0 y = 1 }
		L_Air_Inf_Bat = { x = 0 y = 2 }
		L_Marine_Bat = { x = 0 y = 3 }
	}
	support = {
		L_Engi_Comp = { x = 0 y = 0 }
		L_Recce_Comp = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Brigada de Policía Militar" #Military Police Brigade
	regiments = {
		L_Inf_Bat = { x = 0 y = 0 }
		L_Inf_Bat = { x = 0 y = 1 }
		L_Inf_Bat = { x = 0 y = 2 }
	}
	support = {
		armor_Recce_Comp = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Regimiento Infanteria Independiente" #Independent Infantry Regiment
	regiments = {
		L_Inf_Bat = { x = 0 y = 0 }
		L_Inf_Bat = { x = 0 y = 1 }
		L_Inf_Bat = { x = 0 y = 2 }
		L_Inf_Bat = { x = 0 y = 3 }
		L_Inf_Bat = { x = 0 y = 4 }
	}
}

division_template = {
	name = "Regimiento Motorizada Independiente" #Independent Motorised Regiment
	regiments = {
		Mot_Inf_Bat = { x = 0 y = 0 }
		Mot_Inf_Bat = { x = 0 y = 1 }
		Mot_Inf_Bat = { x = 0 y = 2 }
		Mot_Inf_Bat = { x = 0 y = 3 }
	}
}

division_template = {
	name = "Regimiento Mechanizada Independiente" #Independent Mechanised Regiment
	regiments = {
		Mech_Inf_Bat = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Brigada de Fuerzas Especiales" #Special Forces Brigade
	regiments = {
		Special_Forces = { x = 0 y = 0 }
		Special_Forces = { x = 0 y = 1 }
		Special_Forces = { x = 0 y = 2 }
	}
	priority = 2
}

division_template = {
	name = "Brigada de Infantería de Marina" #Marine Brigade
	regiments = {
		L_Marine_Bat = { x = 0 y = 0 }
		L_Marine_Bat = { x = 0 y = 1 }
		L_Marine_Bat = { x = 0 y = 2 }
	}
}


units = {
	#Tactical Units
	division = {
		name = "1a Brigada Blindada"
		location = 1965		#Around Mexico City
		division_template = "Brigada Blindada"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "1a Brigada Infanteria"
		location = 11675		#Around Mexico City
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "2a Brigada Infanteria"
		location = 11737		#Around Mexico City
		division_template = "Brigada Infanteria"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "3a Brigada Infanteria"
		location = 11780		#Around Mexico City
		division_template = "Brigada Motorizada"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigada de Fusileros Paracaidistas"
		location = 12755		#Around Mexico City
		division_template = "Brigada de Fusileros Paracaidistas"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "1a Brigada de Policía Militar"
		location = 8089		#Around Mexico City
		division_template = "Brigada de Policía Militar"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "2a Brigada de Policía Militar"
		location = 11675		#Around Mexico City
		division_template = "Brigada de Policía Militar"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "3a Brigada de Policía Militar"
		location = 1965		#Around Mexico City
		division_template = "Brigada de Policía Militar"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Cuerpo de Guardias Presidenciales"
		location = 1965		#Around Mexico City
		division_template = "Brigada de Policía Militar"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}

	division = {
		name = "21a Regimiento Infanteria Independiente"
		location = 1900		#Puerto Vallarta
		division_template = "Regimiento Infanteria Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "22a Regimiento Infanteria Independiente"
		location = 4887		#Apatzingan
		division_template = "Regimiento Infanteria Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "23a Regimiento Infanteria Independiente"
		location = 8012		#Nogales
		division_template = "Regimiento Infanteria Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "24a Regimiento Infanteria Independiente"
		location = 12461		#Tijuana
		division_template = "Regimiento Infanteria Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "25a Regimiento Infanteria Independiente"
		location = 10765		#Hermosillo
		division_template = "Regimiento Infanteria Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "41a Regimiento Infanteria Independiente"
		location = 4965		#Chetumal
		division_template = "Regimiento Motorizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "42a Regimiento Infanteria Independiente"
		location = 12753		#Tapachula
		division_template = "Regimiento Motorizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "43a Regimiento Infanteria Independiente"
		location = 11628		#Tenosique
		division_template = "Regimiento Motorizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "44a Regimiento Infanteria Independiente"
		location = 1904		#Guerro Negro
		division_template = "Regimiento Motorizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "45a Regimiento Infanteria Independiente"
		location = 10916		#Hidalgo Del Parral
		division_template = "Regimiento Motorizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "46a Regimiento Infanteria Independiente"
		location = 8236		#Miahuatlan
		division_template = "Regimiento Mechanizada Independiente"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}

	#Special Forces
	division = {
		name = "1a Brigada de Fuerzas Especiales"
		location = 1965		#
		division_template = "Brigada de Fuerzas Especiales"
		start_experience_factor = 0.7
		start_equipment_factor = 0.01
	}
	division = {
		name = "2a Brigada de Fuerzas Especiales"
		location = 1965		#
		division_template = "Brigada de Fuerzas Especiales"
		start_experience_factor = 0.7
		start_equipment_factor = 0.01
	}
	division = {
		name = "3a Brigada de Fuerzas Especiales"
		location = 1965		#
		division_template = "Brigada de Fuerzas Especiales"
		start_experience_factor = 0.7
		start_equipment_factor = 0.01
	}

	#Naval Infantry
	division = {
		name = "1a Brigada de Infantería de Marina"
		location = 12810		#Gulf Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "3a Brigada de Infantería de Marina"
		location = 12715		#Gulf Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "5a Brigada de Infantería de Marina"
		location = 10732		#Gulf Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "2a Brigada de Infantería de Marina"
		location = 1965		#Pacific Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "4a Brigada de Infantería de Marina"
		location = 10730		#Pacific Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "6a Brigada de Infantería de Marina"
		location = 2051		#Pacific Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "8a Brigada de Infantería de Marina"
		location = 10895		#Pacific Coast
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}
	division = {
		name = "7a Brigada de Infantería de Marina"
		location = 1965		#Mexico City
		division_template = "Brigada de Infantería de Marina"
		start_experience_factor = 0.6
		start_equipment_factor = 0.01
	}



}

instant_effect = {

	add_equipment_to_stockpile = {
		type = infantry_weapons		#G3
		amount = 7000
		producer = GER
	}

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

	add_equipment_to_stockpile = {
		type = infantry_weapons4		#FX-05
		amount = 7000
		producer = MEX
	}

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

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

	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_1				#TOW
		amount = 200
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = Anti_Air_1				#Stinger
		amount = 1000
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_0			#ERC 90 F1
		#version_name = "ERC 90 F1 Lynx"
		amount = 127
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_1			#DN-IV Caballo
		amount = 16
		producer = MEX
	}

	add_equipment_to_stockpile = {
		type = Rec_tank_1			#DN-V Toro
		amount = 19
		producer = MEX
	}

	add_equipment_to_stockpile = {
		type = APC_1			#Timoney APC
		amount = 95
		producer = IRE
	}

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

	add_equipment_to_stockpile = {
		type = util_vehicle_3			#VBL
		amount = 32
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = IFV_1			#AMX-VCI
		amount = 390
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = IFV_1			#HWK-11
		amount = 40
		producer = MEX
	}

	add_equipment_to_stockpile = {
		type = APC_1			#Mowag Roland
		amount = 25
		producer = SWI
	}

	add_equipment_to_stockpile = {
		type = APC_3			#Panhard VCR
		amount = 44
		producer = FRA
	}

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

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

	add_equipment_to_stockpile = {
		type = L_Strike_fighter2			#Beechcraft T-6 Texan II
		#version_name = "Beechcraft T-6 Texan II"
		amount = 34
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = L_Strike_fighter1		#Pilatus PC-7
		amount = 35
		producer = SWI
	}

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

	add_equipment_to_stockpile = {
		type = transport_plane3		#C-27 Spartan
		amount = 4
		producer = ITA
	}

	add_equipment_to_stockpile = {
		type = transport_helicopter1		#UH-1
		amount = 7
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = transport_helicopter1		#Bell 206
		#version_name = "Bell 206"
		amount = 35
		producer = USA
	}

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

	add_equipment_to_stockpile = {
		type = transport_helicopter2		#UH-60
		amount = 9
		producer = USA
	}
	add_equipment_to_stockpile = {
		type =  cv_awacs_equipment_1 #E-2 Hawkeye
		amount = 3
		producer = USA
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		USA = {
			create_production_license = {
				target = MEX
				equipment = {
					type = L_Strike_fighter2 #Beechcraft T-6 Texan II
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = L_Strike_fighter2 #Beechcraft T-6 Texan II
					version_name = "Beechcraft T-6 Texan II"
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		USA = {
			create_production_license = {
				target = MEX
				equipment = {
					type = transport_helicopter2		#UH-60
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = transport_helicopter2		#UH-60
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}

	if = {
		limit = { NOT = { has_dlc = "Man the Guns" } }
		if = {
			limit = { has_dlc = "Death or Dishonor" }
			USA = {
				create_production_license = {
					target = MEX
					equipment = {
						type = frigate_1		#Knox-Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = frigate_1		#Knox-Class
						version_name = "Knox-Class"
						creator = "USA"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}
	}
}