[unit]
	id=Spearman
	name= _ "Spearman"
	race=human
	image="units/human-loyalists/spearman.png"
	ellipse="misc/ellipse"
	profile="portraits/Jason_Lutes/human-spearman.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=36
	movement_type=smallfoot
	movement=5
	experience=42
	level=1
	alignment=lawful
	advanceto=Swordsman,Pikeman,Javelineer
	cost=14
	usage=fighter
	unit_description= _ "Swords are, for many, an expensive luxury, and one which peasants can ill afford. Spears are much easier to make and will do well even without a head, though most can afford one. Clad in leather armor, and often armed with a shield and a few javelins, spearmen are the staple of most armies, often thrown into the front lines with only basic training.

Special Notes:"+{SPECIAL_NOTES_FIRSTSTRIKE}
	die_sound={SOUND_LIST:HUMAN_DIE}
	[death]
		[frame]
			begin=0
			end=125
			image="units/human-loyalists/spearman-death1.png"
		[/frame]
		[frame]
			begin=125
			end=250
			image="units/human-loyalists/spearman-death2.png"
		[/frame]
		[frame]
			begin=250
			end=375
			image="units/human-loyalists/spearman-death3.png"
		[/frame]
		[frame]
			begin=375
			end=500
			image="units/human-loyalists/spearman-death4.png"
		[/frame]
	[/death]
	[defend]
		[frame]
			begin=-100
			end=-90
			image="units/human-loyalists/spearman-defend-2.png"
		[/frame]
		[frame]
			begin=-90
			end=90
			image="units/human-loyalists/spearman-defend.png"
		[/frame]
		[frame]
			begin=90
			end=100
			image="units/human-loyalists/spearman-defend-2.png"
		[/frame]
	[/defend]
	[attack]
		name=spear
		type=pierce
		range=melee
		damage=7
		number=3
		icon=attacks/spear.png
		[specials]
			{WEAPON_SPECIAL_FIRSTSTRIKE}
		[/specials]
		[animation]
			direction=se,sw
			hits=no
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=se,sw
			hits=yes
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=ne,nw
			hits=no
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack-ne.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=ne,nw
			hits=yes
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack-ne.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=no
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack-n.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=yes
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/spearman-attack-n.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=no
			[frame]
				begin=-200
				end=-150
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=-50
				image="units/human-loyalists/spearman-attack-s-1.png"
			[/frame]
			[frame]
				begin=-50
				end=100
				image="units/human-loyalists/spearman-attack-s-2.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=50
				image="units/human-loyalists/spearman-attack-s-1.png"
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=yes
			[frame]
				begin=-200
				end=-150
				image="units/human-loyalists/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=-50
				image="units/human-loyalists/spearman-attack-s-1.png"
			[/frame]
			[frame]
				begin=-50
				end=100
				image="units/human-loyalists/spearman-attack-s-2.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=50
				image="units/human-loyalists/spearman-attack-s-1.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=spear
		icon=attacks/javelin-human.png
		type=pierce
		range=ranged
		damage=6
		number=1
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-250
				end=-150
				image="units/human-loyalists/spearman-attack-ranged2.png"
			[/frame]
			[frame]
				begin=-150
				end=0
				image="units/human-loyalists/spearman-attack-ranged.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=0
				end=100
				image="units/human-loyalists/spearman-attack-ranged2.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-250
				end=-150
				image="units/human-loyalists/spearman-attack-ranged2.png"
			[/frame]
			[frame]
				begin=-150
				end=0
				image="units/human-loyalists/spearman-attack-ranged.png"
				sound=spear.wav
			[/frame]
			[frame]
				begin=0
				end=100
				image="units/human-loyalists/spearman-attack-ranged2.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
