name = "Peninsular War"
casus_belli = cb_imperial

# The Treaty of Fontainebleau, France and Spain decide to divide Portugal 
1807.10.27 = {
	add_attacker = RFR
	add_attacker = SPA
	add_attacker = ETR
	add_attacker = BAV
	add_attacker = BAD
	add_attacker = HES
	add_attacker = ANH
	add_attacker = WUR
	add_attacker = WBG
	add_attacker = SAX
	add_attacker = MKL
	add_attacker = ITA
	add_defender = POR
}

1808.6.12 = {
	battle = {
		name = "El Bruc"
		location = 213
		attacker = {
			commander = "Schwartz"	# Schwartz
			infantry = 3800
			losses = 11	# percent
			country = RFR
		}
		defender = {
			commander = "Franch"	# Franch
			infantry = 2000
			losses = 2	# percent
			country = SPA
		}
		result = loss
	}
}

1808.6.12 = {
	battle = {
		name = "Cabezón"
		location = 216
		attacker = {
			commander = "Jean-Baptiste Bessières"	# Jean-Baptiste Bessières
			infantry = 9000
			losses = 1	# percent
			country = RFR
		}
		defender = {
			commander = "Gregorio de la Cuesta"	# Gregorio de la Cuesta
			infantry = 4700
			cavalry = 300
			artillery = 4
			losses = 10	# percent
			country = SPA
		}
		result = win
	}
}

1808.6.15 = {
	battle = {
		name = "Zaragoza"
		location = 214
		attacker = {
			commander = "Charles de Lefebvre"	# Charles de Lefebvre
			infantry = 8500
			cavalry = 1000
			artillery = 12
			losses = 32	# percent
			country = RFR
		}
		defender = {
			commander = "José de Palafox y Melzi"	# José de Palafox y Melzi
			infantry = 6500
			losses = 5	# percent
			country = SPA
		}
		result = loss
	}
}

1808.7.14 = {
	battle = {
		name = "Medina del Rio Seco"
		location = 216
		attacker = {
			commander = "Jean-Baptiste Bessières"	# Jean-Baptiste Bessières
			infantry = 14000
			artillery = 40
			losses = 4	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Blake"	# Joaquín Blake
			infantry = 22000
			artillery = 20
			losses = 14	# percent
			country = SPA
		}
		result = win
	}
}


1808.7.18 = {
	battle = {
		name = "Bailén"
		location = 227
		attacker = {
			commander = "Pierre Dupont"	# Pierre Dupont
			infantry = 24000
			artillery = 5
			losses = 11	# percent
			country = RFR
		}
		defender = {
			commander = "Francisco Castaños"	# Francisco Castaños
			infantry = 33000
			losses = 3	# percent
			country = SPA
		}
		result = loss
	}
}

# Britain joins the war
1808.8.1 = {
	add_defender = GBR
}

1808.8.17 = {
	battle = {
		name = "Roliça"
		location = 227
		attacker = {
			commander = "Henri Delaborde"	# Henri Delaborde
			infantry = 4000
			artillery = 5
			losses = 18	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 15500
			losses = 3	# percent
			country = GBR
		}
		result = loss
	}
}

1808.8.20 = {
	battle = {
		name = "Vimeiro"
		location = 227
		attacker = {
			commander = "Jean-Andoche Junot"	# Jean-Andoche Junot
			infantry = 14000
			artillery = 23
			losses = 14	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 15000
			cavalry = 5500
			losses = 4	# percent
			country = GBR
		}
		result = loss
	}
}

1808.10.31 = {
	battle = {
		name = "Pancorbo"
		location = 209
		attacker = {
			commander = "François Joseph Lefebvre"	# François Joseph Lefebvre
			infantry = 24000
			losses = 1	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Blake"	# Joaquín Blake
			infantry = 19000
			losses = 2	# percent
			country = SPA
		}
		result = loss
	}
}

1808.11.7 = {
	battle = {
		name = "Burgos"
		location = 215
		attacker = {
			commander = "Jean-Baptiste Bessières"	# Jean-Baptiste Bessières
			infantry = 20000
			cavalry = 4000
			losses = 2	# percent
			country = RFR
		}
		defender = {
			commander = "Conde de Belveder"	# Conde de Belveder
			infantry = 9000
			losses = 22	# percent
			country = SPA
		}
		result = win
	}
}

1808.11.10 = {
	battle = {
		name = "Espinosa"
		location = 209
		attacker = {
			commander = "Claude Victor"	# Claude Victor
			infantry = 22000
			losses = 6	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Blake"	# Joaquín Blake
			infantry = 23000
			losses = 13	# percent
			country = SPA
		}
		result = win
	}
}

1808.11.23 = {
	battle = {
		name = "Tudela"
		location = 214
		attacker = {
			commander = "Jean Lannes"	# Jean Lannes
			infantry = 31000
			losses = 2	# percent
			country = RFR
		}
		defender = {
			commander = "Francisco Castaños"	# Francisco Castaños
			infantry = 19000
			losses = 21	# percent
			country = SPA
		}
		result = win
	}
}

1808.11.30 = {
	battle = {
		name = "Somosierra"
		location = 217
		attacker = {
			commander = "Napoléon Bonaparte"	# Napoléon Bonaparte
			infantry = 45000
			losses = 2	# percent
			country = RFR
		}
		defender = {
			commander = "Benito de San Juan"	# Benito de San Juan
			infantry = 12000
			artillery = 16
			losses = 16	# percent
			country = SPA
		}
		result = win
	}
}

1808.12.20 = {
	battle = {
		name = "Zaragoza"
		location = 214
		attacker = {
			commander = "Jeannot de Moncey"	# Jeannot de Moncey
			infantry = 40000
			cavalry = 4000
			artillery = 60
			losses = 9	# percent
			country = RFR
		}
		defender = {
			commander = "Benito de San Juan"	# Benito de San Juan
			infantry = 31000
			cavalry = 1400
			artillery = 160
			losses = 90	# percent
			country = SPA
		}
		result = win
	}
}

1809.1.16 = {
	battle = {
		name = "Corunna"
		location = 206
		attacker = {
			commander = "Nicolas Jean de Dieu Soult"	# Nicolas Jean de Dieu Soult
			infantry = 12000
			cavalry = 4000
			artillery = 20
			losses = 9	# percent
			country = RFR
		}
		defender = {
			commander = "John Moore"	# John Moore
			infantry = 16000
			artillery = 10
			losses = 5	# percent
			country = GBR
		}
		result = loss
	}
}

1809.2.25 = {
	battle = {
		name = "Valls"
		location = 212
		attacker = {
			commander = "Laurent Gouvion Saint-Cyr"	# Laurent Gouvion Saint-Cyr
			infantry = 13350
			losses = 7	# percent
			country = RFR
		}
		defender = {
			commander = "Theodor von Redding" 	# Theodor von Redding
			infantry = 10500
			cavalry = 700
			artillery = 8
			losses = 13	# percent
			country = SPA
		}
		result = win
	}
}

1809.3.17 = {
	battle = {
		name = "Villafranca"
		location = 210
		attacker = {
			commander = "Laurent Gouvion Saint-Cyr"	# Laurent Gouvion Saint-Cyr
			infantry = 1000
			losses = 80	# percent
			country = RFR
		}
		defender = {
			commander = "José de Mendizábal"	# José de Mendizábal
			infantry = 1500
			losses = 50	# percent
			country = SPA
		}
		result = loss
	}
}

1809.3.28 = {
	battle = {
		name = "Medellin"
		location = 218
		attacker = {
			commander = "Claude Victor"	# Claude Victor
			infantry = 13000
			cavalry = 4500
			artillery = 50
			losses = 6	# percent
			country = RFR
		}
		defender = {
			commander = "Gregorio de la Cuesta"	# Gregorio de la Cuesta
			infantry = 20000
			cavalry = 3000
			artillery = 30
			losses = 35	# percent
			country = SPA
		}
		result = win
	}
}

1809.5.6 = {
	battle = {
		name = "Girona"
		location = 212
		attacker = {
			commander = "Pierre Augereau"	# Pierre Augereau
			infantry = 35000
			artillery = 40
			losses = 40	# percent
			country = RFR
		}
		defender = {
			commander = "Mariano Alvarez de Castro"	# Mariano Alvarez de Castro
			infantry = 5600
			losses = 80	# percent
			country = SPA
		}
		result = win
	}
}

1809.5.23 = {
	battle = {
		name = "Alcaniz"
		location = 212
		attacker = {
			commander = "Louis Gabriel Suchet"	# Louis Gabriel Suchet
			infantry = 10000
			cavalry = 800
			losses = 32	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Blake"	# Joaquín Blake
			infantry = 8500
			cavalry = 500
			losses = 3	# percent
			country = SPA
		}
		result = loss
	}
}

1809.6.15 = {
	battle = {
		name = "María"
		location = 214
		attacker = {
			commander = "Louis Gabriel Suchet"	# Louis Gabriel Suchet
			infantry = 12000
			losses = 7	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Blake" 	# Joaquín Blake
			infantry = 14000
			cavalry = 500
			losses = 14	# percent
			country = SPA
		}
		result = win
	}
}

1809.7.27 = {
	battle = {
		name = "Talavera"
		location = 217
		attacker = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 46000
			losses = 12	# percent
			country = GBR
		}
		defender = {
			commander = "Joseph Bonaparte"	# Joseph Bonaparte
			infantry = 55500
			losses = 16	# percent
			country = RFR
		}
		result = loss
	}
}

1809.8.11 = {
	battle = {
		name = "Almonacid"
		location = 219
		attacker = {
			commander = "Horace François de Sébastiani"	# Horace François de Sébastiani
			infantry = 26000
			cavalry = 4000
			artillery = 40
			losses = 8	# percent
			country = RFR
		}
		defender = {
			commander = "Joaquín Venegas"	# Joaquín Venegas
			infantry = 23000
			cavalry = 3000
			artillery = 30
			losses = 15	# percent
			country = SPA
		}
		result = win
	}
}

1809.10.18 = {
	battle = {
		name = "Tamamés"
		location = 216
		attacker = {
			commander = "Michel Ney"	# Michel Ney
			infantry = 10000
			cavalry = 1200
			artillery = 14
			losses = 12	# percent
			country = RFR
		}
		defender = {
			commander = "Duque del Parque" 	# Duque del Parque
			infantry = 10000
			cavalry = 1000
			losses = 6	# percent
			country = SPA
		}
		result = loss
	}
}

1809.11.19 = {
	battle = {
		name = "Ocana"
		location = 217
		attacker = {
			commander = "Nicolas Soult"	# Nicolas Soult
			infantry = 35000
			losses = 6	# percent
			country = RFR
		}
		defender = {
			commander = "Juan de Arizagua"	# Juan de Arizagua
			infantry = 51000
			losses = 14	# percent
			country = SPA
		}
		result = win
	}
}

1810.7.24 = {
	battle = {
		name = "Côa"
		location = 232
		attacker = {
			commander = "Michel Ney"	# Michel Ney
			infantry = 20000
			losses = 7	# percent
			country = RFR
		}
		defender = {
			commander = "Robert Craufurd"	# Robert Craufurd
			infantry = 4200
			cavalry = 800
			artillery = 6
			losses = 17	# percent
			country = GBR
		}
		result = win
	}
}

1810.9.25 = {
	battle = {
		name = "Buçaco"
		location = 228
		attacker = {
			commander = "André Masséna"	# André Masséna
			infantry = 65000
			losses = 7	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 50000
			losses = 2	# percent
			country = GBR
		}
		result = loss
	}
}

1810.10.14 = {
	battle = {
		name = "Linhas de Torres"
		location = 227
		attacker = {
			commander = "André Masséna"	# André Masséna
			infantry = 61000
			losses = 30	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 68665
			artillery = 534
			losses = 2	# percent
			country = GBR
		}
		result = loss
	}
}

1810.10.15 = {
	battle = {
		name = "Fuengirola"
		location = 223
		attacker = {
			commander = "Franciszek Mlokosiewicz"	# Franciszek Mlokosiewicz
			infantry = 400
			losses = 10	# percent
			country = RFR
		}
		defender = {
			commander = "Andrew Blayney"	# Andrew Blayney
			infantry = 4500
			losses = 10	# percent
			country = SPA
		}
		result = win
	}
}


1811.5.3 = {
	battle = {
		name = "Fuentes de Onoro"
		location = 216
		attacker = {
			commander = "André Masséna"	# André Masséna
			infantry = 42000
			cavalry = 4500
			artillery = 40
			losses = 10	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 34000
			cavalry = 2000
			artillery = 50
			losses = 4	# percent
			country = GBR
		}
		result = loss
	}
}

1811.5.16 = {
	battle = {
		name = "Albuera"
		location = 218
		attacker = {
			commander = "Nicolas Jean de Dieu Soult"	# Nicolas Jean de Dieu Soult
			infantry = 25000
			artillery = 40
			losses = 28	# percent
			country = RFR
		}
		defender = {
			commander = "William Beresford"	# William Beresford
			infantry = 35000
			artillery = 50
			losses = 17	# percent
			country = GBR
		}
		result = win
	}
}

1812.3.16 = {
	battle = {
		name = "Badajoz"
		location = 218
		attacker = {
			commander = "Philippon" 	# Philippon
			infantry = 25000
			losses = 20	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 52000
			losses = 30	# percent
			country = GBR
		}
		result = loss
	}
}

1812.7.22 = {
	battle = {
		name = "Salamanca"
		location = 216
		attacker = {
			commander = "Auguste Marmont"	# Auguste Marmont
			infantry = 50000
			losses = 12	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 52000
			losses = 26	# percent
			country = GBR
		}
		result = loss
	}
}

1813.6.21 = {
	battle = {
		name = "Vitoria"
		location = 211
		attacker = {
			commander = "Jean-Baptiste Jourdan"	# Jean-Baptiste Jourdan
			infantry = 58000
			losses = 10	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 80000
			losses = 6	# percent
			country = GBR
		}
		result = loss
	}
}

1813.7.25 = {
	battle = {
		name = "Pyrenees"
		location = 211
		attacker = {
			commander = "Nicolas Jean de Dieu Soult"	# Nicolas Jean de Dieu Soult
			infantry = 80000
			losses = 5	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	# Arthur Wellesley
			infantry = 60000
			losses = 8	# percent
			country = GBR
		}
		result = loss
	}
}

1813.8.31 = {
	battle = {
		name = "San Marcial"
		location = 209
		attacker = {
			commander = "Nicolas Jean Dieu Soult"	# Nicolas Jean Dieu Soult
			infantry = 35000
			losses = 11	# percent
			country = RFR
		}
		defender = {
			commander = "Manuel Freire" # Manuel Freire
			infantry = 16000
			losses = 16	# percent
			country = SPA
		}
		result = loss
	}
}

1813.11.10 = {
	battle = {
		name = "Nivelle"
		location = 210
		attacker = {
			commander = "Nicolas Jean Dieu Soult"	# Nicolas Jean Dieu Soult
			infantry = 60000
			losses = 7	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	#  Arthur Wellesley
			infantry = 80000
			losses = 3	# percent
			country = GBR
		}
		result = loss
	}
}

# Treaty of Valençay
1813.12.11 = {
	rem_attacker = SPA
}

1813.12.12 = {
	battle = {
		name = "Nive"
		location = 210
		attacker = {
			commander = "Nicolas Jean Dieu Soult" 	# Nicolas Jean Dieu Soult
			infantry = 62000
			losses = 3	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	#  Arthur Wellesley
			infantry = 64000
			losses = 3	# percent
			country = GBR
		}
		result = loss
	}
}

1814.4.10 = {
	battle = {
		name = "Toulouse"
		location = 196
		attacker = {
			commander = "Nicolas Jean Dieu Soult"	# Nicolas Jean Dieu Soult
			infantry = 42500
			losses = 8	# percent
			country = RFR
		}
		defender = {
			commander = "Arthur Wellesley"	#  Arthur Wellesley
			infantry = 50000
			losses = 9	# percent
			country = GBR
		}
		result = win
	}
}

# Treaty of Fontainebleau
1814.4.11 = {
	rem_defender = GBR
	rem_defender = POR
	rem_attacker = RFR
	rem_attacker = ETR
	rem_attacker = BAV
	rem_attacker = BAD
	rem_attacker = HES
	rem_attacker = ANH
	rem_attacker = WUR
	rem_attacker = WBG
	rem_attacker = SAX
	rem_attacker = MKL
	rem_attacker = ITA
}
