#textdomain wesnoth-units
[unit_type]
    id=Lieutenant
    name= _ "Lieutenant"
    race=human
    image="units/human-loyalists/lieutenant.png"
    profile="portraits/humans/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=40
    movement_type=smallfoot
    movement=6
    experience=80
    level=2
    alignment=lawful
    advances_to=General
    cost=35
    usage=fighter
    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-defend.png" "units/human-loyalists/lieutenant-crossbow.png" {SOUND_LIST:HUMAN_HIT} ranged}
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/lieutenant.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/lieutenant.png"
    [/portrait]
    [abilities]
        {ABILITY_LEADERSHIP_LEVEL_2}
    [/abilities]
    [attack]
        name=sword
        description=_"sword"
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-human.png
        type=pierce
        range=ranged
        damage=5
        number=3
    [/attack]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-2.png"
        [/frame]
        [frame]
            duration=300
            image="units/human-loyalists/lieutenant-idle-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/human-loyalists/lieutenant-idle-4.png"
        [/frame]
        [frame]
            duration=50
            image="units/human-loyalists/lieutenant-idle-5.png"
        [/frame]
        [frame]
            duration=50
            image="units/human-loyalists/lieutenant-idle-6.png"
        [/frame]
        [frame]
            duration=50
            image="units/human-loyalists/lieutenant-idle-7.png"
        [/frame]
        [frame]
            duration=500
            image="units/human-loyalists/lieutenant-idle-8.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-9.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/lieutenant-idle-1.png"
        [/frame]
    [/idle_anim]

    [death]
        start_time=0
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-1.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-2.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-3.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-4.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-5.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-6.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-7.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-8.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-loyalists/lieutenant-die-9.png"
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        [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/lieutenant-crossbow.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-300
                end=-150
                image="units/human-loyalists/lieutenant-crossbow-attack1.png"
                sound=crossbow.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-300
                end=-150
                image="units/human-loyalists/lieutenant-crossbow-attack1.png"
                sound=crossbow-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=-150
            end=0
            image="units/human-loyalists/lieutenant-crossbow-attack2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [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]
    [/attack_anim]
[/unit_type]
