[unit]
	id=Lieutenant
	name= _ "Lieutenant"
	race=human
	image="units/human-loyalists/lieutenant.png"
	[leading_anim]
		[frame]
			begin=-150
			end=150
			image="units/human-loyalists/lieutenant-leading.png"
		[/frame]
	[/leading_anim]
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=48
	movement_type=smallfoot
	movement=6
	experience=80
	level=2
	alignment=lawful
	advanceto=General
	cost=35
	usage=fighter
	unit_description= _ "Trained at swords and crossbows, Lieutenants lead small groups of human soldiers, coordinating their attacks.

Special Notes:"+{SPECIAL_NOTES_LEADERSHIP}
	die_sound={SOUND_LIST:HUMAN_DIE}
	{DEFENSE_ANIM_RANGE "units/human-loyalists/lieutenant-defend.png" "units/human-loyalists/lieutenant.png" {SOUND_LIST:HUMAN_HIT} melee}
	{DEFENSE_ANIM_RANGE "units/human-loyalists/lieutenant-crossbow.png" "units/human-loyalists/lieutenant-crossbow.png" {SOUND_LIST:HUMAN_HIT} ranged}
	[abilities]
		{ABILITY_LEADERSHIP_LEVEL_2}
	[/abilities]
	[attack]
		name=sword
		icon=attacks/sword-human.png
		type=blade
		range=melee
		damage=9
		number=3
		[animation]
			[frame]
				begin=-225
				end=-175
				image="units/human-loyalists/lieutenant.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/human-loyalists/lieutenant-attack-sword-1.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-100
					end=50
					image="units/human-loyalists/lieutenant-attack-sword-2.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-100
					end=50
					image="units/human-loyalists/lieutenant-attack-sword-2.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=50
				end=150
				image="units/human-loyalists/lieutenant-attack-sword-3.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=crossbow
		icon=attacks/crossbow-human.png
		type=pierce
		range=ranged
		damage=5
		number=3
		[animation]
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[if]
				hits=yes
				[frame]
					begin=-350
					end=50
					image="units/human-loyalists/lieutenant-crossbow.png"
					sound=crossbow.ogg
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-350
					end=50
					image="units/human-loyalists/lieutenant-crossbow.png"
					sound=crossbow-miss.ogg
				[/frame]
			[/else]
		[/animation]
	[/attack]
	[idle_anim]
		{STANDARD_IDLE_FILTER}
		[frame]
			begin=0
			end=100
			image="units/human-loyalists/lieutenant-idle-1.png"
		[/frame]
		[frame]
			begin=100
			end=200
			image="units/human-loyalists/lieutenant-idle-2.png"
		[/frame]
		[frame]
			begin=200
			end=500
			image="units/human-loyalists/lieutenant-idle-3.png"
		[/frame]
		[frame]
			begin=500
			end=550
			image="units/human-loyalists/lieutenant-idle-4.png"
		[/frame]
		[frame]
			begin=550
			end=600
			image="units/human-loyalists/lieutenant-idle-5.png"
		[/frame]
		[frame]
			begin=600
			end=650
			image="units/human-loyalists/lieutenant-idle-6.png"
		[/frame]
		[frame]
			begin=650
			end=700
			image="units/human-loyalists/lieutenant-idle-7.png"
		[/frame]
		[frame]
			begin=700
			end=1200
			image="units/human-loyalists/lieutenant-idle-8.png"
		[/frame]
		[frame]
			begin=1200
			end=1300
			image="units/human-loyalists/lieutenant-idle-7.png"
		[/frame]
		[frame]
			begin=1300
			end=1400
			image="units/human-loyalists/lieutenant-idle-6.png"
		[/frame]
		[frame]
			begin=1400
			end=1500
			image="units/human-loyalists/lieutenant-idle-5.png"
		[/frame]
		[frame]
			begin=1500
			end=1600
			image="units/human-loyalists/lieutenant-idle-9.png"
		[/frame]
		[frame]
			begin=1600
			end=1700
			image="units/human-loyalists/lieutenant-idle-2.png"
		[/frame]
	[/idle_anim]
	
	[death]
		[frame]
			begin=0
			end=75
			image="units/human-loyalists/lieutenant-die-1.png"
		[/frame]
		[frame]
			begin=75
			end=150
			image="units/human-loyalists/lieutenant-die-2.png"
		[/frame]
		[frame]
			begin=150
			end=225
			image="units/human-loyalists/lieutenant-die-3.png"
		[/frame]
		[frame]
			begin=225
			end=300
			image="units/human-loyalists/lieutenant-die-4.png"
		[/frame]
		[frame]
			begin=300
			end=375
			image="units/human-loyalists/lieutenant-die-5.png"
		[/frame]
		[frame]
			begin=375
			end=450
			image="units/human-loyalists/lieutenant-die-6.png"
		[/frame]
		[frame]
			begin=450
			end=525
			image="units/human-loyalists/lieutenant-die-7.png"
		[/frame]
		[frame]
			begin=525
			end=600
			image="units/human-loyalists/lieutenant-die-8.png"
		[/frame]
		[frame]
			begin=600
			end=675
			image="units/human-loyalists/lieutenant-die-9.png"
		[/frame]
	[/death]
[/unit]
