﻿division_template = {
	name = "Panzerbrigade"

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

	support = {
		SP_Arty_Battery = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Panzergrenadierbrigade"

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

	}
	support = {
		SP_Arty_Battery = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Gebirgsjägerbrigade"

	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 = 1 y = 0 }
	}
}

division_template = {
	name = "Luftlandebrigade"

	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_Air_Inf_Bat = { x = 1 y = 0 }
	}
}

division_template = {
	name = "Kommandobataillon"

	regiments = {
		Special_Forces = { x = 0 y = 0 }
	}

	priority = 2
}

division_template = {
	name = "Deutsch-Französische Brigade"

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

units = {
	#German Army Structure
	#https://en.wikipedia.org/wiki/Structure_of_the_German_Army

	#1st Panzerdivision
	division = {
		name = "Panzerlehrbrigade 9"
		location = 6535
		division_template = "Panzerbrigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	#1st Panzerdivision
	division = {
		name = "Panzerbrigade 21"
		location = 3355
		division_template = "Panzerbrigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "Panzergrenadierbrigade 41"
		location = 293
		division_template = "Panzergrenadierbrigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	#10th Panzerdivision
	division = {
		name = "Panzerbrigade 12"
		location = 3571
		division_template = "Panzerbrigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "Gebirgsjägerbrigade 23"
		location = 707
		division_template = "Gebirgsjägerbrigade"
		start_experience_factor = 0.8
		start_equipment_factor = 0.01
	}
	division = {
		name = "Panzergrenadierbrigade 37"
		location = 11481 #Frankenburg, Saxony
		division_template = "Panzergrenadierbrigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	#Rapid Forces Division
	division = {
		name = "Luftlandebrigade 1"
		location = 11531
		division_template = "Luftlandebrigade"
		start_experience_factor = 0.8
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kommando Spezialkräfte"
		location = 11486 #Calw, Baden-Württemberg
		division_template = "Kommandobataillon"
		start_experience_factor = 0.9
		start_equipment_factor = 0.01
	}

	#Franco-German Brigade
	division = {
		name = "Deutsch-Französische Brigade"
		location = 6712
		division_template = "Deutsch-Französische Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

	###Ship Index###

	#diesel_attack_submarine_4 = Type 212
	#missile_frigate_3 = Sachsen class
	#missile_frigate_2 = Brandenburg class
	#frigate_2 = Bremen class
	#missile_corvette_3 = Braunschweig class
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = infantry_weapons3 #Heckler & Koch G36
		amount = 5700
	}
	add_equipment_to_stockpile = {
		type = command_control_equipment4 #C4ISTAR
		amount = 900
	}
	add_equipment_to_stockpile = {
		type = Anti_tank_1 #Panzerfaust 3
		amount = 250
	}
		add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_2 #Milan
		amount = 100
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_1 #Stinger
		amount = 250
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = AS_Fighter3 #Eurofighter
		amount = 125
	}
	add_equipment_to_stockpile = {
		type = Strike_fighter2 #Tornado
		amount = 106
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter3 #Eurocopter
		amount = 37
	}
	add_equipment_to_stockpile = {
		type = naval_plane2 #AP-3C Orion
		amount = 8
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = MBT_5 #Leopard 2A6/A7
		amount = 307
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_3
		amount = 166 #Fennek
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_2 #Wiesel AWC
		amount = 103 #+ 97 from ifv
	}
	add_equipment_to_stockpile = {
		type = IFV_5 #Mardar 1 A5
		amount = 200
	}
	add_equipment_to_stockpile = {
		type = IFV_4 #Marder 1 A3
		amount = 190
	}
	add_equipment_to_stockpile = {
		type = IFV_6 #Puma 1
		amount = 15
	}
	add_equipment_to_stockpile = {
		type = APC_3 #Tpz-1 Fuchs
		amount = 8
	}
	add_equipment_to_stockpile = {
		type = APC_2 #Bv-206
		amount = 194
		producer = SWE
	}
	add_equipment_to_stockpile = {
		type = APC_2 #M113
		amount = 259
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = APC_6 # GTK Boxer
		amount = 245
	}
	add_equipment_to_stockpile = {
		type = APC_3 #Tpz-1 Fuchs
		amount = 531
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_4 #Dingo
		amount = 177
	}
	add_equipment_to_stockpile = {
		type = SP_arty_2 #PzH 2000
		amount = 99
	}
	add_equipment_to_stockpile = {
		type = SP_R_arty_0 #M270
		amount = 38
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_plane4 # A400M Atlas
		amount = 7
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane1 #C-160D Transall
		amount = 53
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A310 MRTT
		amount = 1
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A340 MRTT
		amount = 2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A319 MRTT
		amount = 2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter4	 #NH90
		amount = 47
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1	 #UH-1
		amount = 115
		producer = USA
	}

	add_equipment_production = { #Puma
		equipment = {
			type = IFV_6
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 2
	}
	add_equipment_production = { #Boxer
		equipment = {
			type = APC_6
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 2
	}
	add_equipment_production = { #EuroFighter
		equipment = {
			type = AS_Fighter3
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 4
	}
	add_equipment_production = { #EuroCopter
		equipment = {
			type = attack_helicopter3
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 4
	}

	if = {
		limit = { has_dlc = "Man the Guns" }
		add_equipment_production = { #Type 212A
			equipment = {
				type = attack_submarine_hull_3
				creator = "GER"
				version_name = "Type 212 Class"
			}
			requested_factories = 1
			progress = 0.2
			efficiency = 100
			amount = 2
		}
		add_equipment_production = { #Baden-Württemberg class
			equipment = {
				type = frigate_hull_5
				creator = "GER"
				version_name = "Baden-Württemberg Class"
			}
			requested_factories = 1
			progress = 0.2
			efficiency = 100
			amount = 4
		}
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		FRA = {
			create_production_license = {
				target = GER
				equipment = {
					type = transport_helicopter4			#NH90
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = transport_helicopter4
					creator = "FRA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = infantry_weapons3 #Heckler & Koch G36
		amount = 5700
	}
	add_equipment_to_stockpile = {
		type = command_control_equipment4 #C4ISTAR
		amount = 900
	}
	add_equipment_to_stockpile = {
		type = Anti_tank_1 #Panzerfaust 3
		amount = 250
	}
		add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_2 #Milan
		amount = 100
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_1 #Stinger
		amount = 250
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = AS_Fighter3 #Eurofighter
		amount = 125
	}
	add_equipment_to_stockpile = {
		type = Strike_fighter2 #Tornado
		amount = 106
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter3 #Eurocopter
		amount = 37
	}
	add_equipment_to_stockpile = {
		type = naval_plane2 #AP-3C Orion
		amount = 8
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = MBT_5 #Leopard 2A6/A7
		amount = 307
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_3
		amount = 166 #Fennek
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_2 #Wiesel AWC
		amount = 103 #+ 97 from ifv
	}
	add_equipment_to_stockpile = {
		type = IFV_5 #Mardar 1 A5
		amount = 200
	}
	add_equipment_to_stockpile = {
		type = IFV_4 #Marder 1 A3
		amount = 190
	}
	add_equipment_to_stockpile = {
		type = IFV_6 #Puma 1
		amount = 15
	}
	add_equipment_to_stockpile = {
		type = APC_3 #Tpz-1 Fuchs
		amount = 8
	}
	add_equipment_to_stockpile = {
		type = APC_2 #Bv-206
		amount = 194
		producer = SWE
	}
	add_equipment_to_stockpile = {
		type = APC_2 #M113
		amount = 259
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = APC_6 # GTK Boxer
		amount = 245
	}
	add_equipment_to_stockpile = {
		type = APC_3 #Tpz-1 Fuchs
		amount = 531
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_4 #Dingo
		amount = 177
	}
	add_equipment_to_stockpile = {
		type = SP_arty_2 #PzH 2000
		amount = 99
	}
	add_equipment_to_stockpile = {
		type = SP_R_arty_0 #M270
		amount = 38
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_plane4 # A400M Atlas
		amount = 7
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane1 #C-160D Transall
		amount = 53
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A310 MRTT
		amount = 1
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A340 MRTT
		amount = 2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #A319 MRTT
		amount = 2
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter4	 #NH90
		amount = 47
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1	 #UH-1
		amount = 115
		producer = USA
	}

	add_equipment_production = { #Puma
		equipment = {
			type = IFV_6
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 2
	}
	add_equipment_production = { #Boxer
		equipment = {
			type = APC_6
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 2
	}
	add_equipment_production = { #EuroFighter
		equipment = {
			type = AS_Fighter3
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 4
	}
	add_equipment_production = { #EuroCopter
		equipment = {
			type = attack_helicopter3
			creator = "GER"
		}
		requested_factories = 1
		progress = 0.2
		efficiency = 50
		#amount = 4
	}

	if = {
		limit = { has_dlc = "Man the Guns" }
		add_equipment_production = { #Type 212A
			equipment = {
				type = attack_submarine_hull_3
				creator = "GER"
				version_name = "Type 212 Class"
			}
			requested_factories = 1
			progress = 0.2
			efficiency = 100
			amount = 2
		}
		add_equipment_production = { #Baden-Württemberg class
			equipment = {
				type = frigate_hull_5
				creator = "GER"
				version_name = "Baden-Württemberg Class"
			}
			requested_factories = 1
			progress = 0.2
			efficiency = 100
			amount = 4
		}
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		FRA = {
			create_production_license = {
				target = GER
				equipment = {
					type = transport_helicopter4			#NH90
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = transport_helicopter4
					creator = "FRA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
			}
		}
	}
}