#textdomain wesnoth-units
[unit]
    id=Sergeant
    name= _ "Sergeant"
    race=human
    image="units/human-loyalists/sergeant.png"
    ellipse="misc/ellipse"
    [leading_anim]
        [frame]
            begin=-150
            end=150
            image="units/human-loyalists/sergeant-leading.png"
        [/frame]
    [/leading_anim]
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=36
    movement_type=smallfoot
    movement=6
    experience=32
    level=1
    alignment=lawful
    advanceto=Lieutenant
    cost=20
    usage=fighter
    unit_description= _ "The Sergeant is a low-ranking officer in the ranks of an army. Though academically trained, he will need some experience in the field before his leadership is sound and acknowledged."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM_RANGE "units/human-loyalists/sergeant-defend.png" "units/human-loyalists/sergeant.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-loyalists/sergeant-crossbow-defend.png" "units/human-loyalists/sergeant-crossbow.png" {SOUND_LIST:HUMAN_HIT} ranged}
    [abilities]
        {ABILITY_LEADERSHIP_LEVEL_1}
    [/abilities]
    [attack]
        name=sword
        description=_"sword"
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=5
        number=3
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-human.png
        type=pierce
        range=ranged
        damage=4
        number=3
    [/attack]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        [frame]
            begin=0
            end=100
            image="units/human-loyalists/sergeant-idle-1.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/human-loyalists/sergeant-idle-2.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/human-loyalists/sergeant-idle-3.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/human-loyalists/sergeant-idle-4.png"
        [/frame]
        [frame]
            begin=400
            end=600
            image="units/human-loyalists/sergeant-idle-5.png"
        [/frame]
        [frame]
            begin=600
            end=700
            image="units/human-loyalists/sergeant-idle-6.png"
        [/frame]
        [frame]
            begin=700
            end=800
            image="units/human-loyalists/sergeant-idle-7.png"
        [/frame]
        [frame]
            begin=800
            end=900
            image="units/human-loyalists/sergeant-idle-8.png"
        [/frame]
        [frame]
            begin=900
            end=1200
            image="units/human-loyalists/sergeant-idle-9.png"
        [/frame]
        [frame]
            begin=1200
            end=1300
            image="units/human-loyalists/sergeant-idle-10.png"
        [/frame]
        [frame]
            begin=1300
            end=1400
            image="units/human-loyalists/sergeant-idle-11.png"
        [/frame]
        [frame]
            begin=1400
            end=1500
            image="units/human-loyalists/sergeant-idle-2.png"
        [/frame]
        [frame]
            begin=1500
            end=1600
            image="units/human-loyalists/sergeant-idle-1.png"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [attack_filter]
            name=crossbow
        [/attack_filter]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [frame]
            begin=-400
            end=-300
            image="units/human-loyalists/sergeant-crossbow.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-300
                end=-150
                image="units/human-loyalists/sergeant-crossbow-attack1.png"
                sound=crossbow.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-300
                end=-150
                image="units/human-loyalists/sergeant-crossbow-attack1.png"
                sound=crossbow-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=-150
            end=0
            image="units/human-loyalists/sergeant-crossbow-attack2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=sword
        [/attack_filter]
        [frame]
            begin=-200
            end=-175
            image="units/human-loyalists/sergeant.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/human-loyalists/sergeant-attack-sword-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=50
                image="units/human-loyalists/sergeant-attack-sword-2.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=50
                image="units/human-loyalists/sergeant-attack-sword-2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=150
            image="units/human-loyalists/sergeant-attack-sword-3.png"
        [/frame]
        [frame]
            begin=150
            end=175
            image="units/human-loyalists/sergeant.png"
        [/frame]
    [/attack_anim]
[/unit]
