#define DESERT_FIGHTER NUM COST
[unit]
#textdomain wesnoth-utbs
	id=Desert Fighter{NUM}
	name= _ "Desert Fighter"
	race=elf
	image=newelves/desert-elvish-fighter.png
	image_long=newelves/desert-elvish-fighter-bow.png
	hitpoints=34
	movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
	[movement_costs]
		sand=1
		forest=2
		cave=2
		tundra=3
	[/movement_costs]
	[defense]
		sand=40
		forest=50
	[/defense]
	movement=5
	experience=40
	level=1
	alignment=lawful
	advanceto=Desert Captain,Desert Hero
	cost={COST}
	usage=fighter
	unit_description= _ "Desert Fighters make up the bulk of the Quenoth warriors. They are trained in both sword and bow, though like most of their kin, they prefer swordplay to archery. These Elves are deft of foot, and fight best in the open sands."
	die_sound={SOUND_LIST:ELF_HIT}
	{DEFENSE_ANIM_FILTERED "newelves/desert-elvish-fighter-defend.png" newelves/desert-elvish-fighter.png {SOUND_LIST:ELF_HIT} range=melee}
	{DEFENSE_ANIM_FILTERED "newelves/desert-elvish-fighter-bow-defend.png" newelves/desert-elvish-fighter.png {SOUND_LIST:ELF_HIT} range=ranged}
# melee attack increased from 5-4 to 6-4
# ranged attack decreased from 3-3 to 2-3
	[attack]
		name=sword
		description= _"sword"
		type=blade
		range=melee
		damage=6
		number=4
		icon=attacks/sword-elven.png
		[animation]
		hits=no
			[frame]
				begin=-101
				end=100
				image=newelves/desert-elvish-fighter-attack.png
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
		hits=yes
			[frame]
				begin=-101
				end=100
				image=newelves/desert-elvish-fighter-attack.png
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		description= _"bow"
		type=pierce
		range=ranged
		damage=2
		number=3
		icon=attacks/bow-elven.png
		[animation]
			hits=no
			[missile_frame]
				begin=-100
				end=0
				image=projectiles/missile-n.png
				image_diagonal=projectiles/missile-ne.png
			[/missile_frame]
			[frame]
				begin=-600
				end=-450
				image=newelves/desert-elvish-fighter-bow.png
			[/frame]
			[frame]
				begin=-450
				end=-300
				image=newelves/desert-elvish-fighter-bow-attack1.png
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-300
				end=-200
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=-200
				end=-100
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=-100
				end=0
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=0
				end=100
				image=newelves/desert-elvish-fighter-bow.png
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-100
				end=0
				image=projectiles/missile-n.png
				image_diagonal=projectiles/missile-ne.png
			[/missile_frame]
			[frame]
				begin=-600
				end=-450
				image=newelves/desert-elvish-fighter-bow.png
			[/frame]
			[frame]
				begin=-450
				end=-300
				image=newelves/desert-elvish-fighter-bow-attack1.png
				sound=bow.ogg
			[/frame]
			[frame]
				begin=-300
				end=-200
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=-200
				end=-100
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=-100
				end=0
				image=newelves/desert-elvish-fighter-bow-attack2.png
			[/frame]
			[frame]
				begin=0
				end=100
				image=newelves/desert-elvish-fighter-bow.png
			[/frame]
		[/animation]
	[/attack]
[/unit]
#enddef

{DESERT_FIGHTER "" 15}
{DESERT_FIGHTER 2 16}
{DESERT_FIGHTER 3 17}
{DESERT_FIGHTER 4 18}
{DESERT_FIGHTER 5 19}
{DESERT_FIGHTER 6 20}
{DESERT_FIGHTER 7 21}
{DESERT_FIGHTER 8 22}
{DESERT_FIGHTER 9 23}
{DESERT_FIGHTER 10 24}
{DESERT_FIGHTER 11 25}
