#textdomain wesnoth-units
[unit_type]
    id=Orcish Slurbow
    name= _ "Orcish Slurbow"
    # wmllint: general spelling slurbow slurbows
    race=orc
    image="units/orcs/slurbow.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=56
    movement_type=orcishfoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    undead_variation=archer
    cost=43
    usage=archer
    # wmllint: local spellings arbalest cranequin
    description= _ "The basic design of a crossbow gives rise to the arbalest or 'slurbow'; a much more intricate device, complete with a hand-turned cranequin to re-cock the weapon, and often with a multi-ply arc, of laminate wood or bone, driving the projectile. Such a device is much easier to work with, and much more powerful than simpler crossbows; it is also completely beyond orcish manufacture.

Orcs prize any such weapons they can manage to plunder, and they invariably end up in the hands of their strongest and most cunning archers."
    die_sound={SOUND_LIST:ORC_DIE}
    {DEFENSE_ANIM_RANGE "units/orcs/slurbow-melee-defend-2.png" "units/orcs/slurbow-melee-defend-1.png" {SOUND_LIST:ORC_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/orcs/slurbow-ranged-defend.png" "units/orcs/slurbow-ranged.png" {SOUND_LIST:ORC_HIT} ranged}
    [attack]
        name=short sword
        description=_"short sword"
        icon=attacks/sword-orcish.png
        type=blade
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-orcish.png
        type=pierce
        range=ranged
        damage=12
        number=3
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-orcish.png
        type=fire
        range=ranged
        damage=15
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=crossbow
            type=fire
        [/filter_attack]
        [if]
            hits=yes

            [missile_frame]
                begin=-150
                end=0
                image="projectiles/missile-fire-n.png"
                image_diagonal="projectiles/missile-fire-ne.png"
                offset=0~0.8
            [/missile_frame]

            {FIRE_BURST_SMALL}

            [frame]
                begin=-350
                end=-300
                image="units/orcs/slurbow-ranged.png"
            [/frame]
            [frame]
                begin=-300
                end=-200
                image="units/orcs/slurbow-ranged-1.png"
                sound=crossbow-fire.ogg
            [/frame]
            [frame]
                begin=-200
                end=50
                image="units/orcs/slurbow-ranged-2.png"
            [/frame]
        [/if]
        [else]
            hits=no

            [missile_frame]
                begin=-150
                end=0
                image="projectiles/missile-fire-n.png"
                image_diagonal="projectiles/missile-fire-ne.png"
            [/missile_frame]

            [frame]
                begin=-350
                end=-300
                image="units/orcs/slurbow-ranged.png"
            [/frame]
            [frame]
                begin=-300
                end=-200
                image="units/orcs/slurbow-ranged-1.png"
                sound=crossbow-fire-miss.ogg
            [/frame]
            [frame]
                begin=-200
                end=50
                image="units/orcs/slurbow-ranged-2.png"
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=crossbow
            type=pierce
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/bullet.png"
            image_diagonal="projectiles/bullet.png"
        [/missile_frame]
        [frame]
            begin=-350
            end=-300
            image="units/orcs/slurbow-ranged-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-300
                end=-200
                image="units/orcs/slurbow-ranged-1.png"
                sound=crossbow.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-300
                end=-200
                image="units/orcs/slurbow-ranged-1.png"
                sound=crossbow-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=-200
            end=50
            image="units/orcs/slurbow-ranged-2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=short sword
        [/filter_attack]
        [frame]
            begin=-250
            end=-175
            image="units/orcs/slurbow-melee.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/orcs/slurbow-melee-attack-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=-25
                image="units/orcs/slurbow-melee-attack-2.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=-25
                image="units/orcs/slurbow-melee-attack-2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-25
            end=50
            image="units/orcs/slurbow-melee-attack-3.png"
        [/frame]
        [frame]
            begin=50
            end=125
            image="units/orcs/slurbow-melee-attack-4.png"
        [/frame]
        [frame]
            begin=125
            end=200
            image="units/orcs/slurbow-melee-defend-2.png"
        [/frame]
    [/attack_anim]
[/unit_type]
