#textdomain wesnoth-ei
[unit_type]
    id=Veteran Lieutenant
    name= _ "Veteran Lieutenant"
    race=human
    image="units/human-loyalists/general.png"
    profile="portraits/gweddry.webp"
    [leading_anim]
        start_time=-250
        [frame]
            image="units/human-loyalists/general-leading[1,2,3,2,1].png:[75,75,200,75,75]"
        [/frame]

        halo_start_time=-100
        [halo_frame]
            halo="halo/misc/leadership-flare-[1~13].png:20"
            halo_x,halo_y=-8,-30
        [/halo_frame]
    [/leading_anim]
    hitpoints=50
    movement_type=smallfoot
    movement=6
    level=3
    alignment=lawful
    experience=180
    advances_to=Veteran Commander
    cost=54
    usage=fighter
    description=_"Once inexperienced, Gweddry is now a veteran of many battles. His cunning and tactical skill enable him to direct even the freshest of recruits to strike strategically and emerge victorious. His skill with the longsword and crossbow is not to be underestimated either, nor is the speed with which he can move despite his heavy armor."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM_RANGE "units/human-loyalists/general-defend-2.png" "units/human-loyalists/general-defend-1.png" {SOUND_LIST:HUMAN_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/human-loyalists/general-crossbow-defend.png" "units/human-loyalists/general-crossbow.png" {SOUND_LIST:HUMAN_HIT} ranged }
    [resistance]
        blade=90
        pierce=90
        impact=90
    [/resistance]
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description=_"longsword"
        icon=attacks/greatsword-human.png
        type=blade
        range=melee
        damage=9
        number=4
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        #textdomain wesnoth-ei
        icon=attacks/crossbow-human.png
        type=fire
        range=ranged
        damage=10
        number=2
    [/attack]
    #     [idle_anim]
    #         {STANDARD_IDLE_FILTER}
    #         start_time=0
    #         [frame]
    #             image="units/human-loyalists/general-idle-[1~4,6,4,5~1].png:[100,300,500,100,400*2,300,500,100*3]"
    #         [/frame]
    #     [/idle_anim]
    [standing_anim]
        start_time=0
        [frame]
            image="units/human-loyalists/general.png:600"
        [/frame]
        [frame]
            image="units/human-loyalists/general-breeze[1~4,1].png:[400*3,200,600]"
        [/frame]
    [/standing_anim]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-fire-n.png"
            image_diagonal="projectiles/missile-fire-ne.png"
        [/missile_frame]
        start_time=-400
        [frame]
            image="units/human-loyalists/general-crossbow.png:100"
        [/frame]
        {SOUND:HIT_AND_MISS crossbow-fire.ogg crossbow-fire-miss.ogg -300}
        [frame]
            image="units/human-loyalists/general-crossbow-attack[1~2].png:150"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-525
        offset=0.0~-0.05:325,-0.05~0.6:200,0.6~0.0:250
        [frame]
            image="units/human-loyalists/general-melee[1~6].png:[130,110,110,75,100,125]"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/human-loyalists/general.png:125"
        [/frame]
    [/attack_anim]

    [recruiting_anim]
        start_time=-250
        [frame]
            image="units/human-loyalists/general-leading[1,2,3,2,1].png:[100,100,300,100,100]"
        [/frame]

        halo_start_time=-100
        [halo_frame]
            halo="halo/misc/leadership-flare-[1~13].png:20"
            halo_x,halo_y=-8,-30
        [/halo_frame]
    [/recruiting_anim]
[/unit_type]
