#textdomain wesnoth-utbs

[unit_type]
    id=Desert Fighter
    name= _ "Desert Fighter"
    race=elf
    image=units/elves-desert/fighter.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=34
    movement_type=desert_elf
    movement=5
    experience=40
    level=1
    alignment=lawful
    advances_to=Desert Captain,Desert Hero
    cost=15
    usage=fighter
    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}
    [attack]
        name=sword
        description= _"sword"
        type=blade
        range=melee
        damage=6
        number=4
        icon=attacks/sword-elven.png
    [/attack]
    [attack]
        name=bow
        description= _"bow"
        type=pierce
        range=ranged
        damage=2
        number=3
        icon=attacks/bow-elven.png
    [/attack]
    {DEFENSE_ANIM_RANGE "units/elves-desert/fighter-defend.png" "units/elves-desert/fighter.png" {SOUND_LIST:ELF_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/elves-desert/fighter-bow-defend.png" "units/elves-desert/fighter-bow.png" {SOUND_LIST:ELF_HIT} ranged }
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            image="units/elves-desert/fighter-idle-[1~6,5~10,9,11,12].png:[100*2,125,150,175,200*2,400,175,200,250,400,150*3]"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        start_time=-445
        [frame]
            image="units/elves-desert/fighter-bow.png:65"
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -380}
        [frame]
            image="units/elves-desert/fighter-bow-attack[1~4].png:[75*2,100,130]"
        [/frame]
        [frame]
            image="units/elves-desert/fighter-bow.png:65"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-175
        [frame]
            image="units/elves-desert/fighter.png:75"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/elves-desert/fighter-melee-[1~2].png:[200,50]"
        [/frame]
        [frame]
            image="units/elves-desert/fighter.png:25"
        [/frame]
    [/attack_anim]
[/unit_type]

#define DESERT_FIGHTER_VARIANT SUFFIX_NUMBER COST
    [unit_type]
        id=Desert Fighter{SUFFIX_NUMBER}
        [base_unit]
            id=Desert Fighter
        [/base_unit]
        hide_help=true
        do_not_list=true
        cost={COST}
    [/unit_type]
#enddef

{DESERT_FIGHTER_VARIANT  1 16}
{DESERT_FIGHTER_VARIANT  2 17}
{DESERT_FIGHTER_VARIANT  3 18}
{DESERT_FIGHTER_VARIANT  4 19}
{DESERT_FIGHTER_VARIANT  5 20}
{DESERT_FIGHTER_VARIANT  6 21}
{DESERT_FIGHTER_VARIANT  7 22}
{DESERT_FIGHTER_VARIANT  8 23}
{DESERT_FIGHTER_VARIANT  9 24}
{DESERT_FIGHTER_VARIANT 10 25}

#undef DESERT_FIGHTER_VARIANT
