﻿division_template = {
	name = "Piechota" #territorial brigade

	regiments = {
		L_Inf_Bat = { x = 0 y = 0 }
		L_Inf_Bat = { x = 0 y = 1 }
		L_Inf_Bat = { x = 0 y = 2 }
	}
	support = {
		Arty_Battery = { x = 0 y = 0 }
	}
}
division_template = {
	name = "Brygada P.Gorskiej" #Mountaineer brigade

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

}
division_template = {
	name = "Dywizja Zmechanizowana" #Armored Cavalry Division

	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
		Arm_Inf_Bat = { x = 0 y = 1 }
		armor_Bat = { x = 0 y = 2 }
		Mech_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 1 }
		armor_Bat = { x = 1 y = 2 }
		SP_Arty_Bat = { x = 2 y = 0 }
		Mech_Inf_Bat = { x = 2 y = 1 }
		SP_AA_Bat = { x = 2 y = 2 }
		Mech_Inf_Bat = { x = 2 y = 3 }
	}
}
division_template = {
	name = "Dywizja Kawalerii Pancernej" #Mechanized Division

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

	priority = 2
}
division_template = {
	name = "Strzelcy Podchalanscy" #Mechanized Brigade

	regiments = {
		armor_Bat = { x = 0 y = 0 }
		Arm_Inf_Bat = { x = 0 y = 1 }
		Arm_Inf_Bat = { x = 0 y = 2 }
		Arm_Inf_Bat = { x = 0 y = 3 }
		SP_Arty_Bat = { x = 0 y = 4 }
		SP_AA_Bat = { x = 1 y = 0 }
		L_Inf_Bat = { x = 2 y = 0 }
	}
}
division_template = {
	name = "Kawaleria Powietrzna"

	regiments = {
		L_Air_assault_Bat = { x = 0 y = 0 }
		L_Air_assault_Bat = { x = 0 y = 1 }
	}
}
division_template = {
	name = "Pluk Rozpoznawczy"

	regiments = {
		Mech_Inf_Bat = { x = 0 y = 0 }
		Mech_Inf_Bat = { x = 0 y = 1 }
	}
}
division_template = {
	name = "Komandosi"

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

	priority = 2
}
division_template = {
	name = "Coastal Brigade"

	regiments = {
		Arm_Marine_Bat = { x = 0 y = 0 }
		Arm_Marine_Bat = { x = 0 y = 1 }
		Arm_Marine_Bat = { x = 0 y = 2 }
		SP_Arty_Bat = { x = 0 y = 3 }
		SP_AA_Bat = { x = 0 y = 4 }
		Mech_Inf_Bat = { x = 1 y = 0 }
		Mech_Inf_Bat = { x = 1 y = 1 }
	}
}
division_template = {
	name = "Airborne 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 }
	}
}

### This is technically OOB from 1999 not 2000. in 1999 reform ne number of military disctricts decreased from 4 to 2. ~~ Salamin
units = {
###POW###
	division = {
		name = "2 Pomorska Dywizja Zmechanizowana"
		location = 11260		#Szczecinek
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "12 Szczecinska Dywizja Zmechanizowana"
		location = 6282		#Szczecin
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "16 Pomorska Dywizja Zmechanizowana"
		location = 3380		#Elbl�g
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "8 Baltycka Dywizja Obrony Wybrzeza"
		location = 11372		#S�upsk/Koszalin
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "1 Gdanska Brygada Obrony Terytorialnej" #brygaga - 50%-33% str.
		location = 362		#Danzig
		division_template = "Piechota"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
###SOW###
	division = {
		name = "4 Lubuska Dywizja Zmechanizowana"
		location = 243		#Mi�dzyrzecz
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "5 Kresowa Dywizja Zmechanizowana"
		location = 3572		#Gubin
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "10 Sudecka Dywizja Zmechanizowana"
		location = 9511		#Opole
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "11 Dywizja Kawalerii Pancernej"
		location = 3438		#Zagan
		division_template = "Dywizja Kawalerii Pancernej"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
###WOW###
	division = {
		name = "1 Warszawska Dywizja Zmechanizowana"
		location = 524		#Legionowo
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "15 Warminsko-Mazurska Dywizja Zmechanizowana"
		location = 6375		#Olsztyn
		division_template = "Dywizja Zmechanizowana"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "25 Dywizja Kawalerii Powietrznej"
		location = 9508		#Lodz
		division_template = "Kawaleria Powietrzna"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
###KOW###
	division = {
		name = "21 Brygada Strzelcow Podhalanskich"
		location = 6499		#Rzeszow
		division_template = "Strzelcy Podchalanscy"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "6 Brygada Desantowo-Szturmowa"
		location = 9427		#Krakow
		division_template = "Airborne Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
###
	division = {
		name = "22 Karpacka Brygada Piechoty Gorskiej"
		location = 6512		#Nysa
		division_template = "Brygada P.Gorskiej"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "1 Pulk Specjalny Komandosow"
		location = 3544		#Warsaw
		division_template = "Komandosi"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "2 Hrubieszowski Pulk Rozpoznawczy"
		location = 6580		#Hrubiesz�w
		division_template = "Pluk Rozpoznawczy"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}
	division = {
		name = "Fromoza Gdansk"
		location = 362		#Danzig
		division_template = "Coastal Brigade"
		start_experience_factor = 0.75
		start_equipment_factor = 0.01
	}

### NAVY OOB ###
}

instant_effect = {
	add_equipment_to_stockpile = {
		type = infantry_weapons3 #Kbz Wz
		amount = 20000
	}
		add_equipment_to_stockpile = {
		type = Heavy_Anti_tank_0 #SPG-9
		amount = 315
	}
	add_equipment_to_stockpile = {
		type = Anti_tank_1 #RPG-76 Komar
		amount = 500
	}
	add_equipment_to_stockpile = {
		type = command_control_equipment2 #C4ISTAR
		amount = 2070
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_2 #Grom
		amount = 570
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_0
		variant_name = "T-55AM Merida"
		amount = 812
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "T-72M1"
		amount = 706
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = mbt_hull_1
		variant_name = "PT-91"
		amount = 186
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_1 #BDRM-2
		amount = 510 # and with +300 for balance it should be 810~~based on military balance 2000 ~~ Salamin   #735 #+300 for balance
	}
	add_equipment_to_stockpile = {
		type = IFV_1 #BMP1
		amount = 1405
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = APC_2 #OT-64
		amount = 726
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = artillery_0 #M-30
		amount = 277
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = artillery_0 #D-44
		amount = 711
		producer = POL
		variant_name = "D-44"
	}
	add_equipment_to_stockpile = {
		type = artillery_1 #ML-20 # oh boi its ww2 artillery, but modernised to 1985 standard? at least from my knowledge ~~Salamin
		amount = 135
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = SP_arty_0 #2S1 Gvozdika
		amount = 541
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = SP_arty_0 #2S7
		amount = 8
		variant_name = "2S7 Pion"
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = SP_arty_1 #M-77 Dana
		amount = 111
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = SP_R_arty_0 #BM-21
		amount = 228
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = SP_R_arty_1 #RM-70
		amount = 30
		producer = POL
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #ZSU-23-4 Shilka
		amount = 395
		producer = POL
		variant_name = "ZSU-23-2"
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #ZSU-23-4
		amount = 70
		producer = SOV
		variant_name = "ZSU-23-4 Shilka"
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #S-60 
		amount = 406
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #SA-6 gainful
		amount = 115
		producer = SOV
		variant_name = "SA-6 Gainful"
	}
	
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_0 #SA-8 osa
		amount = 64
		producer = SOV
		variant_name = "SA-8"
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_1 #SA-9 gaskin
		amount = 168
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_1 #SA-13 
		amount = 4
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = attack_helicopter1 #MI-24
		amount = 46
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1 #Mil Mi-8
		amount = 45
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter1 #PZL TS-11 Iskra
		amount = 12
	}
	add_equipment_to_stockpile = {
		type = transport_plane1 #Antonov An-26
		amount = 36
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter2 #MiG-29 Fulcrum
		amount = 45
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = Strike_fighter1 #Su-22 Fitter
		amount = 98
		producer = SOV
		#version_name = "Su-22 Fitter"
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1 #MiG-21 Fishbed
		amount = 81
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = transport_plane3 #C-295
		amount = 8
		producer = SOV
	}
	if = {
		limit = { has_dlc = "Death or Dishonor" }
		SOV = {
			create_production_license = {
				target = POL
				equipment = {
					type = MR_Fighter2 #MiG-29 Fulcrum
				}
				cost_factor = 0
			}
			create_production_license = {
				target = POL
				equipment = {
					type = Strike_fighter1 #Su-22 Fitter
				}
				cost_factor = 0
			}
			create_production_license = {
				target = POL
				equipment = {
					type = attack_helicopter1 #MI-24
				}
				cost_factor = 0
			}
		}
		if = {
			limit = { NOT = { has_dlc = "Man the Guns" } }
			NOR = {
				create_production_license = {
					target = POL
					equipment = {
						type = diesel_attack_submarine_1 #Type 207 Kobben-Class
					}
					cost_factor = 0
				}
			}
		}
		USA = {
			create_production_license = {
				target = POL
				equipment = {
					type = MR_Fighter2 #F-16A Fighting Falcon
				}
				cost_factor = 0
			}
			create_production_license = {
				target = POL
				equipment = {
					type = transport_plane3 #C-130J Super Hercules
				}
				cost_factor = 0
			}

		}
		# FIN = {
			# create_production_license = {
				# target = POL
				# equipment = {
					# type = APC_5 #Patria AMV
					# creator = "FIN"
				# }
				# cost_factor = 0
			# }
		# }
		else = {
			add_equipment_production = { #MiG-29 Fulcrum
				equipment = {
					type = MR_Fighter2 #MiG-29 Fulcrum
					creator = "SOV"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
				amount = 2
			}
			add_equipment_production = { #Su-22 Fitter
				equipment = {
					type = Strike_fighter1 #Su-22 Fitter
					creator = "SOV"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
				amount = 2
			}
			add_equipment_production = { #MI-24
				equipment = {
					type = attack_helicopter1 #MI-24
					creator = "SOV"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
				amount = 2
			}
			if = {
				limit = { NOT = { has_dlc = "Man the Guns" } }
				add_equipment_production = { #Type 207 Kobben-Class
					equipment = {
						type = diesel_attack_submarine_1 #Type 207 Kobben-Class
						creator = "NOR"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 100
					amount = 2
				}
			}
			add_equipment_production = { #F-16A Fighting Falcon
				equipment = {
					type = MR_Fighter2 #F-16A Fighting Falcon
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
				amount = 2
			}
			add_equipment_production = { #C-130J Super Hercules
				equipment = {
					type = transport_plane3 #C-130J Super Hercules
					creator = "USA"
				}
				requested_factories = 1
				progress = 0.2
				efficiency = 50
				amount = 2
			}
			# add_equipment_production = { #C-130J Super Hercules
				# equipment = {
					# type = APC_5 #Patria AMV
					# creator = "FIN"
				# }
				# requested_factories = 1
				# progress = 0.2
				# efficiency = 50
				# amount = 2
			# }
		}
	}
}