##### Division Templates #####
division_template = {
	name = "División de Infantería" 		# Regular infantry divisions, all at reserve levels in 1939
	division_names_group = SPA_INF_01
	# Note: Spanish divisions were 2x brigades of 2x2 rgts each, + support
	regiments = {
		infantry = { x = 0 y = 0 }
		infantry = { x = 0 y = 1 }
		infantry = { x = 0 y = 2 }
		infantry = { x = 0 y = 3 }
		infantry = { x = 1 y = 0 }
		infantry = { x = 1 y = 1 }
		infantry = { x = 1 y = 2 }
		infantry = { x = 1 y = 3 }
	}
	support = {
		artillery = { x = 0 y = 0 }  # Spanish Arty Rgt/Bge had 2 Bn 105mm arty
		engineer = { x = 0 y = 1 }   
	}
}
division_template = {
	name = "División de Caballería"  		# Cavalry Division semi-motorized by 1939
	division_names_group = SPR_CAV_01

	regiments = {
		cavalry = { x = 0 y = 0 }
		cavalry = { x = 0 y = 1 }
		cavalry = { x = 0 y = 2 }
		cavalry = { x = 0 y = 3 }
		motorized = { x = 1 y = 0 }
		motorized = { x = 1 y = 1 }
		motorized = { x = 1 y = 2 }
		motorized = { x = 1 y = 3 }
	}
	support = {
		recon = { x = 0 y = 0 }
		engineer = { x = 0 y = 1 }   
	}
}
division_template = {
	name = "Fuerza Colonial" 		# Collection of Spanish Legion, native militias, and cavalry 
	division_names_group = SPR_GAR_01
									# Averages out to regular experience and equipment (Legion = elite, militias = low-quality)
	regiments = {
		infantry = { x = 0 y = 0 }	
		infantry = { x = 0 y = 1 }	
		infantry = { x = 0 y = 2 }	
		infantry = { x = 1 y = 0 }	
		infantry = { x = 1 y = 1 }	
		infantry = { x = 1 y = 2 }	
		cavalry = { x = 2 y = 0 }
		cavalry = { x = 2 y = 1 }
	}
	priority = 0
}

###### OOB ######
units = {
	#####LAND UNITS #####
	### Ejército de Tierra de España ###
	division = {			
		name = "División de Caballería"		
		location = 3938  # Madrid
		division_template = "División de Caballería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}		
	
	# I Cuerpo # 
	division = { # "11a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 11
		}
		location = 3938  # Madrid
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "12a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 12
		}
		location = 3938  # Madrid
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "13a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 13
		}
		location = 3938  # Madrid
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			

	# II Cuerpo # 
	division = { # "21a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 21
		}
		location = 7183  # Sevilla
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "22a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 22
		}
		location = 7183  # Sevilla
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "23a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 23
		}
		location = 7183  # Sevilla
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}		
	
	# III Cuerpo # 
	division = { # "31a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 31
		}
		location = 6906  # Valencia
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "32a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 32
		}
		location = 6906  # Valencia
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}	

	# IV Cuerpo # 
	division = { # "41a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 41
		}
		location = 3816  # Zaragosa
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}
	division = { # "42a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 42
		}
		location = 3816  # Zaragosa
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}
	division = { # "43a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 43
		}
		location = 3816  # Zaragosa
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}

	# V Cuerpo # 
	division = { # "51a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 51
		}
		location = 9764  # Barcelona
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "52a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 52
		}
		location = 9764  # Barcelona
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			

	# VI Cuerpo # 
	division = { # "61a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 61
		}
		location = 740  #Bilbao
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "62a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 62
		}
		location = 740  #Bilbao
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			

	# VII Cuerpo # 
	division = { # "71a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 71
		}
		location = 885  # Burgos
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "72a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 72
		}
		location = 11825  # Valladolid
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}	

	# VIII Cuerpo # 
	division = { # "81a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 81
		}
		location = 758  # La Coruña
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			
	division = { # "82a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 82
		}
		location = 758  # La Coruña
		division_template = "División de Infantería"
		start_experience_factor = 0.2
		start_equipment_factor = 0.5

	}			

	### Island Garrisons ###
	division = { # "Comandancia de Baleares"		
		division_name = {
				is_name_ordered = yes
				name_order = 1
		}
		location = 9793  #Mallorca
		division_template = "Fuerza Colonial"		
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			
	division = { # "Comandancia de Canarias"		
		division_name = {
				is_name_ordered = yes
				name_order = 2
		}
		location = 13071  # Canary Islands
		division_template = "Fuerza Colonial"		
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			


	### Ejército de África ###
	# IX Cuerpo # 
	division = { # "91a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 91
		}
		location = 12100  #Melilla
		division_template = "División de Infantería"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			
	division = { # "92a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 92
		}
		location = 12100  #Melilla
		division_template = "División de Infantería"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}				
	division = { # "Circunscripción Morocco"		
		division_name = {
				is_name_ordered = yes
				name_order = 3
		}
		location = 12100  #Melilla
		division_template = "Fuerza Colonial"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			

	# X Cuerpo # 
	division = { # "101a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 101
		}
		location = 9945  #Ceuta
		division_template = "División de Infantería"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			
	division = { # "102a División de Infantería"		
		division_name = {
				is_name_ordered = yes
				name_order = 102
		}
		location = 9945  #Ceuta
		division_template = "División de Infantería"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			
	division = { # "Circunscripción Maestrazgo"		
		division_name = {
				is_name_ordered = yes
				name_order = 4
		}
		location = 9945  #Ceuta
		division_template = "Fuerza Colonial"
		start_experience_factor = 0.1
		start_equipment_factor = 0.3

	}			
}


### Starting Production ###
instant_effect = {
	add_equipment_production = {
		equipment = {
			type = infantry_equipment_1
			creator = "SPR"
		}
		requested_factories = 1
		progress = 0.60
		efficiency = 100
	}
	add_equipment_production = {
		equipment = {
			type = support_equipment_1
			creator = "SPR"
		}
		requested_factories = 1
		progress = 0.80
		efficiency = 100
	}
	add_equipment_production = {
		equipment = {
			type = artillery_equipment_1
			creator = "SPR"
		}
		requested_factories = 1
		progress = 0.80
		efficiency = 100
	}
	add_equipment_production = {
		equipment = {
			type = motorized_equipment_1
			creator = "SPR" 
		}
		requested_factories = 1
		progress = 0.4
		efficiency = 100
	}
}