﻿division_template = {
	name = "Mechanized Brigade"

	regiments = {
		Mech_Inf_Bat = { x = 0 y = 0 }
		Arm_Inf_Bat = { x = 0 y = 1 }
		armor_Bat = { x = 1 y = 0 }
		L_arm_Bat = { x = 1 y = 1 }
		Mech_Inf_Bat = { x = 2 y = 0 }
		SP_Arty_Bat = { x = 3 y = 0 }
		Mech_Inf_Bat = { x = 3 y = 1 }
	}
}
division_template = {
	name = "Recon Brigade"

	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 1 }
		Mot_Inf_Bat = { x = 2 y = 0 }
		Arty_Bat = { x = 3 y = 0 }
		L_Inf_Bat = { x = 3 y = 1 }
	}
}
division_template = {
	name = "Parachute Brigade"

	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
		L_Air_Inf_Bat = { x = 1 y = 0 }
		Mech_Air_Inf_Bat = { x = 2 y = 0 }
		Mech_Air_Inf_Bat = { x = 3 y = 0 }
	}
	support = {
		Arty_Battery = { x = 0 y = 0 }
		Mot_Recce_Comp = { x = 0 y = 1 }
	}
}
division_template = {
	name = "Mechanized Brigade 2"

	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
		L_Air_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 2 y = 0 }
		Mech_Inf_Bat = { x = 2 y = 1 }
		Arty_Bat = { x = 3 y = 0 }
	}
	support = {
		Mot_Recce_Comp = { x = 0 y = 0 }
	}
}
division_template = {
	name = "Cavalry Regiment"

	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
	}
	support = {
		armor_Comp = { x = 0 y = 0 }
	}
}
division_template = {
	name = "Cavalry Regiment 2"

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

	}
	support = {
		armor_Comp = { x = 0 y = 0 }
		armor_Comp = { x = 0 y = 1 }
	}
}
division_template = {
	name = "Special Operations Group"

	regiments = {
		Special_Forces = { x = 0 y = 0 }
	}
	priority = 2
}
division_template = {
	name = "Marine Infantry Brigade"

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

	}
	support = {
		Mot_Recce_Comp = { x = 0 y = 0 }
		armor_Comp = { x = 0 y = 1 }
		Arty_Battery = { x = 0 y = 2 }
		SP_Arty_Battery = { x = 0 y = 3 }
		SP_AA_Battery = { x = 0 y = 4 }
	}
}

units = {
	#carrier_2 = Juan Carlos I Class
	#LPD_1 = Galicia-class landing platform dock
	#missile_frigate_1 = Santa María class
	#missile_frigate_3 = �?lvaro de Bazán class
	#diesel_attack_submarine_2 = Agosta 70-Class

	#Division "San Marcial"
	division = {
		name = "I Brigade Aragón"
		location = 3816
		division_template = "Mechanized Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "X Brigade Guzmán el Bueno"
		location = 875
		division_template = "Mechanized Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "XI Brigade Extremadura"
		location = 6902
		division_template = "Mechanized Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "XII Brigade Guadarrama"
		location = 9767
		division_template = "Mechanized Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	#Division Castillejos
	division = {
		name = "Spanish Legion Brigade Rey Alfonso XIII"
		location = 12038
		division_template = "Recon Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "VI Parachute Brigade Almogávares"
		location = 3938
		division_template = "Parachute Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "VII Brigade Galicia"
		location = 6734
		division_template = "Mechanized Brigade 2"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	#Balearic General Command

	#Ceuta General Command
	division = {
		name = "3rd Cavalry Regiment Montesa"
		location = 3799
		division_template = "Cavalry Regiment"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	#Melilla General Command
	division = {
		name = "10th Cavalry Regiment Alcántara"
		location = 9877
		division_template = "Cavalry Regiment"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	#Special Operations Command
	division = {
		name = "2nd Special Operations Group Granada"
		location = 1176
		division_template = "Special Operations Group"
		start_experience_factor = 0.9
		start_equipment_factor = 0.01
	}
	division = {
		name = "3rd Special Operations Group Valencia"
		location = 6906
		division_template = "Special Operations Group"
		start_experience_factor = 0.9
		start_equipment_factor = 0.01
	}
	division = {
		name = "4th Special Operations Group Tercio del Ampurdán"
		location = 3938
		division_template = "Special Operations Group"
		start_experience_factor = 0.9
		start_equipment_factor = 0.01
	}
	division = {
		name = "19th Special Operations Group Caballero Legionario Maderal Oleaga"
		location = 3938
		division_template = "Special Operations Group"
		start_experience_factor = 0.9
		start_equipment_factor = 0.01
	}
	division = {
		name = "11th Cavalry Regiment España"
		location = 3816
		division_template = "Cavalry Regiment 2"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "XVI Brigade Canarias"
		location = 13071
		division_template = "Recon Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "XVI Brigade Canarias"
		location = 962
		division_template = "Marine Infantry Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = infantry_weapons3
		amount = 6650
		producer = GER
	}
		add_equipment_to_stockpile = {
		type = command_control_equipment2
		amount = 920
	}
		add_equipment_to_stockpile = {
		type = Anti_tank_1 #C90-CR
		amount = 280
	}
	add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_1 #TOW-2
		amount = 110
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_1
		amount = 310
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "Leopard 2A4"
		amount = 108
		producer = GER
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "Leopard 2A5"
		amount = 223
		producer = GER
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_2 #B1 Centauro
		amount = 84
		producer = ITA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_1 #VEC-M1
		amount = 187
	}
	add_equipment_to_stockpile = {
		type = IFV_5 #ASCOD Pizarro
		amount = 515 #+ 371 for balance
	}
	add_equipment_to_stockpile = {
		type = APC_2
		amount = 453
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = APC_2 #Pegaso BMR
		amount = 347 #+ 35 for balance
	}
	add_equipment_to_stockpile = {
		type = APC_2
		amount = 122 #added for balance
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_4 #RG-31
		amount = 120 #10 for balance
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = SP_arty_2 #M109A5
		amount = 96
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = SP_arty_2 #M109A2
		amount = 6
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = artillery_1 #L118
		amount = 56
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = artillery_0 #OTO-Melara Mod 56
		amount = 179 #+12 from marines
		producer = ITA
	}
	add_equipment_to_stockpile = {
		type = artillery_2 #SBT 155/52 SIAC
		amount = 64
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter3 #Eurocopter Tiger
		amount = 9
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #MIM-23 Hawk
		amount = 42
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = CV_MR_Fighter2 #BAE Sea Harrier
		amount = 12
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_0
		variant_name = "M60A3"
		amount = 16
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = APC_4 #LAV-III
		amount = 33
		producer = CAN
	}
	add_equipment_to_stockpile = {
		type = APC_3 #AAV
		amount = 16
	}
	add_equipment_to_stockpile = {
		type = AS_Fighter3 #EF-2000 Typhoon
		amount = 63
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1 #F-5
		amount = 19
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = CV_MR_Fighter2 # Harrier
		amount = 20
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = CV_MR_Fighter3 #F/A-18 Hornet
		amount = 66
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = naval_plane1 #p-3 Orion
		amount = 5
		producer = USA
	}

	add_equipment_to_stockpile = {
		type = transport_plane1 #C-130H
		amount = 7
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter2 #Boeing CH-47D Chinook
		amount = 17
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Eurocopter AS332 Super Puma
		amount = 34 #+9+4+4+2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter2 #Eurocopter AS532 Cougar
		amount = 20 #+2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter4 #NHIndustries NH-90
		amount = 1
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter1 #CASA C-101
		amount = 66
		producer = SPR
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter3 #Eurocopter Tiger
		amount = 9
		producer = SPR
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter1 #MBB Bo 105
		amount = 17
		producer = GER
	}
	add_equipment_to_stockpile = {
		type = AS_Fighter3 #EF-2000 Typhoon
		amount = 17
		producer = GER
	}

	add_equipment_production = {
		equipment = {
			type = AS_Fighter3 #EF-2000 Typhoon

		}
		requested_factories = 3
		progress = 0.8
		efficiency = 50
	}
	add_equipment_production = {
		equipment = {
			type = attack_helicopter3 #Eurocopter Tiger

		}
		requested_factories = 3
		progress = 0.8
		efficiency = 50
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		FRA = {
			create_production_license = {
				target = SPR
				equipment = {
					type = transport_plane4 #A400M Atlas
				}
				cost_factor = 0
			}
			create_production_license = {
				target = SPR
				equipment = {
					type = transport_helicopter4 #NHIndustries NH-90
				}
				cost_factor = 0
			}

		}
		GER = {
			create_production_license = {
				target = SPR
				equipment = {
					type = mbt_hull_1
					version = 1
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = transport_plane4 #A400M Atlas
					creator = "FRA"
				}
				requested_factories = 1
				progress = 0.1
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = transport_helicopter4 #NHIndustries NH-90
					creator = "FRA"
				}
				requested_factories = 1
				progress = 0.1
				efficiency = 50
			}
			add_equipment_production = {
				equipment = {
					type = mbt_hull_1
					version = 1
					creator = "GER"
				}
				requested_factories = 1
				progress = 0.1
				efficiency = 50
			}
		}
	}
}