﻿division_template = {
	name = "Brigade Infanteri Udara"		#Airborne Infantry Brigade
	regiments = {
		Mot_Air_Inf_Bat = { x = 0 y = 0 }
		Mot_Air_Inf_Bat = { x = 0 y = 1 }
		Mot_Air_Inf_Bat = { x = 0 y = 2 }
		Arty_Bat = { x = 0 y = 3 }
	}

	support = {
		L_Engi_Comp = { x = 0 y = 0 }
	}

	priority = 2
}

division_template = {
	name = "Kodam-I"		#Regional Military Command
	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 }

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

	support = {
		SP_AA_Battery = { x = 0 y = 0 }
		L_Recce_Comp = { x = 0 y = 1 }
	}
}

division_template = {
	name = "Kodam-II"		#Large Regional Military Command
	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 = 1 y = 0 }
		L_Inf_Bat = { x = 1 y = 1 }
		L_Inf_Bat = { x = 1 y = 2 }
		L_Inf_Bat = { x = 1 y = 3 }

		Arty_Bat = { x = 2 y = 0 }
		Arty_Bat = { x = 2 y = 1 }
		L_Inf_Bat = { x = 2 y = 2 }
	}

	support = {
		SP_AA_Battery = { x = 0 y = 0 }
	}
}

division_template = {
	name = "Brigade Infanteri"		#Infantry Brigade
	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 }

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

		L_arm_Bat = { x = 2 y = 0 }
	}
}

division_template = {
	name = "Brigade Yonif Raider"		#Raider Brigade
	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 }
	}

	support = {
		L_Recce_Comp = { x = 0 y = 0 }
		Arty_Battery = { x = 0 y = 1 }
		L_Engi_Comp = { x = 0 y = 2 }
	}

	priority = 2
}

division_template = {
	name = "Brigade Yonif Mekanis"		#Mechanised Infantry Brigade
	regiments = {
		Arm_Inf_Bat = { x = 0 y = 0 }
		Arm_Inf_Bat = { x = 0 y = 1 }
		L_arm_Bat = { x = 0 y = 2 }
		L_arm_Bat = { x = 0 y = 3 }
	}

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

division_template = {
	name = "Kelompok Kopassus"		#Kopassus Group
	regiments = {
		Special_Forces = { x = 0 y = 0 }
		Special_Forces = { x = 0 y = 1 }
		Special_Forces = { x = 0 y = 2 }
	}
	priority = 2
}

division_template = {
	name = "Marinir"		#
	regiments = {
		Mech_Marine_Bat = { x = 0 y = 0 }
		L_arm_Bat = { x = 0 y = 1 }

		Mot_Marine_Bat = { x = 1 y = 0 }
		Mot_Marine_Bat = { x = 1 y = 1 }
		Mot_Marine_Bat = { x = 1 y = 2 }
		Mot_Marine_Bat = { x = 1 y = 3 }

		Arty_Bat = { x = 2 y = 0 }
	}

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

	priority = 2
}

units = {
	#Kostrad (Army Strategic Command)
	##1st Division
	division = {
		name = "Brigade Infanteri Udara 17"
		location = 4434		#Kujang
		division_template = "Brigade Infanteri Udara"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigade Infanteri 13"
		location = 12249	#Galuh
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##2nd Division
	division = {
		name = "Brigade Infanteri Udara 18"
		location = 10479	#Malang
		division_template = "Brigade Infanteri Udara"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigade Infanteri 9"
		location = 4608	#Malang
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigade Infanteri 6"
		location = 12293	#Malang
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	#Kopassus (Special Forces Command)
	division = {
		name = "Grup 1 Para Komando"
		location = 7381	#
		division_template = "Kelompok Kopassus"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Grup 2 Para Komando"
		location = 4406	#Parung
		division_template = "Kelompok Kopassus"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}
	division = {
		name = "Grup 3 Sandhi Yudha"
		location = 7381	#Cijantung
		division_template = "Kelompok Kopassus"
		start_experience_factor = 0.5
		start_equipment_factor = 0.01
	}

	##Kodam I / Bukit Barisan

	division = {
		name = "Brigade Infanteri 7"
		location = 1648	#Medan
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kodam Bukit Barisan"
		location = 1648	#Medan
		division_template = "Kodam-II"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam II/Sriwijaya

	division = {
		name = "Kodam Sriwijaya"
		location = 12268	#Palembang
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam Jaya #ok
	division = {
		name = "Brigif Mekanis 1"
		location = 12249	#Jakarta
		division_template = "Brigade Yonif Mekanis"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam III/Siliwangi

	division = {
		name = "Brigade Infanteri 15"
		location = 4406		#West Java
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kodam Siliwangi"
		location = 1398		#West Java
		division_template = "Kodam-II"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam IV/Diponegoro

	division = {
		name = "Brigade Infanteri 4"
		location = 7223		#Central Java
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kodam Diponegoro"
		location = 10135		#Central Java
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam V/Brawijaya
	division = {
		name = "Kodam Brawijaya"
		location = 1209		#Eastern Java
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigade Mekanis 16"
		location = 4608		#Eastern Java
		division_template = "Brigade Yonif Mekanis"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam VI/Mulawarman
	division = {
		name = "Brigade Yonif Raider 24"
		location = 10237	#Eastern Borneo
		division_template = "Brigade Yonif Raider"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kodam Mulawarman"
		location = 10237	#Eastern Borneo
		division_template = "Kodam-II"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam IX/Udayana
	division = {
		name = "Brigade Yonif Raider 21"
		location = 4273	#Bali
		division_template = "Brigade Yonif Raider"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}
	division = {
		name = "Kodam Udayana"
		location = 7293	#Bali
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam XII/Tanjungpura

	division = {
		name = "Brigade Infanteri 19"
		location = 10237		#East Kalimantan
		division_template = "Brigade Infanteri"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam XIII/Merdeka
	division = {
		name = "Kodam Merdeka"
		location = 10153	#Manado
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam XIV/Hasanuddin
	division = {
		name = "Kodam Hasanuddin"
		location = 10263	#Manado
		division_template = "Kodam-I"
		start_experience_factor = 0.3
		start_equipment_factor = 0.01
	}

	##Kodam XVI/Pattimura
	division = {
		name = "Brigade Yonif Raider 160"
		location = 1574	#Maluku
		division_template = "Brigade Yonif Raider"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}

	##Kodam XVII/Cendrawasih
	division = {
		name = "Brigade Yonif Raider 75"
		location = 12371	#Papua
		division_template = "Brigade Yonif Raider"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}

	##Kodam XVIII/Kasuari
	division = {
		name = "Brigade Yonif Raider 180"
		location = 4593	#Papua
		division_template = "Brigade Yonif Raider"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}

	#Marine Corps
	division = {
		name = "Brigade Infanteri 1/Marinir"
		location = 4608	#Sidoarjo
		division_template = "Marinir"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}
	division = {
		name = "Brigade Infanteri 2/Marinir"
		location = 7381	#Cilandak
		division_template = "Marinir"
		start_experience_factor = 0.4
		start_equipment_factor = 0.01
	}


}


instant_effect = {
	add_equipment_to_stockpile = {
		type = Strike_fighter1	#L-29
		amount = 18
		producer = CZE
	}
	add_equipment_to_stockpile = {
		type = infantry_weapons		#G3
		amount = 2500
		producer = GER
	}

	add_equipment_to_stockpile = {
		type = infantry_weapons1		#M16
		amount = 2500
		producer = USA
	}

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

	add_equipment_to_stockpile = {
		type = infantry_weapons1		#Pindad SS1
		amount = 20500
		producer = IND
	}

	add_equipment_to_stockpile = {
		type = command_control_equipment1
		amount = 4000
		producer = IND
	}


	## Vehicles
	# 749 rec tanks
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#AMX-13
		#version_name = "AMX-13"
		amount = 275
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_1		#AMX-10
		amount = 34
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#Ferret
		amount = 55
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#Alvis Saladin
		#version_name = "Alvis Saladin"
		amount = 69
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#Cadillac Cage Commando
		amount = 82
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#PT-76
		amount = 130
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_0		#BRDM
		amount = 14
		producer = UKR
	}
	add_equipment_to_stockpile = {
		type = Rec_tank_1		#FV101
		amount = 90
		producer = ENG
	}

	#251 IFV
	add_equipment_to_stockpile = {
		type = IFV_2		#BMP-2
		amount = 11
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = IFV_2		#Alvis Stormer
		amount = 40
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = IFV_1		#AMX-VCI
		amount = 200
		producer = FRA
	}

	#120 APC
	add_equipment_to_stockpile = {
		type = APC_1		#BTR-50
		amount = 74
		producer = SOV
	}
	add_equipment_to_stockpile = {
		type = APC_2		#VAB
		amount = 46
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = util_vehicle_0		#M151
		amount = 5000
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_2		#Pindad APR-1
		amount = 40
		producer = IND
	}
	add_equipment_to_stockpile = {
		type = util_vehicle_2		#Land Rover Defender
		amount = 100
		producer = ENG
	}


	add_equipment_to_stockpile = {
		type = artillery_2		#LG1
		amount = 20
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = artillery_0		#M101
		#version_name = "M101"
		amount = 308
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = artillery_1		#FH-2000
		amount = 5
		producer = SIN
	}
	add_equipment_to_stockpile = {
		type = Anti_Air_1		#RBS 70
		amount = 1500
		producer = SWE
	}
	add_equipment_to_stockpile = {
		type = SP_Anti_Air_1		#Rapier
		amount = 51
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = Anti_tank_0		#LRAC
		amount = 700
		producer = FRA
	}

	add_equipment_to_stockpile = {
		type = transport_helicopter1		#AS-330
		amount = 18
		producer = FRA
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1		#bo 105
		amount = 26
		producer = GER
	}
	add_equipment_to_stockpile = {
		type = transport_helicopter1		#Bell 205
		amount = 80
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter2		#A4
		amount = 24
		producer = SIN
	}
	add_equipment_to_stockpile = {
		type = L_Strike_fighter2		#Hawk
		amount = 24
		producer = ENG
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter1		#F-5
		amount = 6
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = MR_Fighter2		#F-16
		amount = 17
		producer = USA
	}
	add_equipment_to_stockpile = {
		type = transport_plane2		#CN-235 & Similar
		amount = 101
	}

	if = {
		limit = { has_dlc = "Death or Dishonor" }
		USA = {
			create_production_license = {
				target = IND
				equipment = {
					type = MR_Fighter2			#F-16
				}
				cost_factor = 0
			}
		}
		else = {
			add_equipment_production = {
				equipment = {
					type = MR_Fighter2
					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" }
			GER = {
				create_production_license = {
					target = IND
					equipment = {
						type = diesel_attack_submarine_2			#Type 209
					}
					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" }
			HOL = {
				create_production_license = {
					target = IND
					equipment = {
						type = corvette_2			#Fatahillah Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = corvette_2
						creator = "HOL"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}

		if = {
			limit = { has_dlc = "Death or Dishonor" }
			GER = {
				create_production_license = {
					target = IND
					equipment = {
						type = corvette_2			#Parchim Class
					}
					cost_factor = 0
				}
			}
			else = {
				add_equipment_production = {
					equipment = {
						type = corvette_2
						creator = "GER"
					}
					requested_factories = 1
					progress = 0.2
					efficiency = 50
				}
			}
		}

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