#textdomain wesnoth-Naia

[unit_type]
    id=Water Tidal
    name= _ "female^Water Tidal"
    gender=female
    race=monster
    {TRAIT_ELEMENTAL}
    image="units/monsters/water-tidal.png"
    {DEFENSE_ANIM "units/monsters/water-tidal.png" "units/monsters/water-tidal.png" mermaid-hit.ogg }
    hitpoints=10
    movement_type=waterdependency
    movement=7
    experience=26
    level=0
    alignment=neutral
    advances_to=Water Spirit
    cost=10
    usage=mixed fighter
    description= _ "It is said that the world is mostly composed of water. It would be natural, then, to conjecture that water may have its own will and that its power can be summoned by expert magi for nefarious purposes."
    die_sound=mermaid-die.ogg
    [attack]
        name=water punch
        description=_"water punch"
        icon=attacks/waterspray.png
        type=impact
        range=melee
        damage=5
        number=3
    [/attack]
    [attack]
        name=water spray
        description={I18N:ATTACK_WATER_SPRAY}
        icon=attacks/waterspray.png
        type=impact
        range=ranged
        damage=4
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=water punch
        [/filter_attack]
        [frame]
            begin=-100
            end=100
            image="units/monsters/water-tidal-attack.png"
            sound=water-blast.wav
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=water spray
        [/filter_attack]
        start_time=-150
        missile_start_time=-165
        [missile_frame]
            duration=165
            image="projectiles/water-spray.png"
            image_diagonal="projectiles/water-spray.png"
        [/missile_frame]
        [frame]
            duration=90
            image="units/monsters/water-tidal-ranged-1.png"
        [/frame]
        [frame]
            duration=10
            image="units/monsters/water-tidal-ranged-1.png"
            sound=water-blast.wav
        [/frame]
        [frame]
            duration=150
            image="units/monsters/water-tidal-ranged-2.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Assault Drone
    name= _ "Assault Drone"
    race=shaxthal
    image="units/shaxthal/drone-assault.png"
    hitpoints=47
    movement_type=biomechanical_drone
    movement=7
    level=2
    alignment=neutral
    {SHAXTHAL_ATS_ADVANCEMENT ("Shaxthal War Drone") 100 100}
    cost=28
    usage=mixed fighter
    description= _ "The Shaxthal Assault Drones are among the most effective members of the Chaos Empire’s offensive arsenal. While their more sedentary counterparts — the Sentry Drones — guard the Empire’s strongholds, the Assault Drones’ formidable brute strength and superior mobility make them excellent siege machines. As such, they are found in large numbers amongst the Chaos legions. Many a particularly stubborn foe has succumbed to these creatures’ assault; neither earth nor stone proves an obstacle as they carry out their missions with brutal efficiency."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-assault.png" "units/shaxthal/drone-assault.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=8
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=9
        number=3
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=11
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone-assault.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone-assault.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone-assault.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone-assault.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone-assault.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone-assault.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone-assault.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone-assault.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/drone-assault.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        start_time=-300
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            duration=100
            image="units/shaxthal/drone-assault.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            duration=300
            image="units/shaxthal/drone-assault.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Drone
    name= _ "Drone"
    race=shaxthal
    {SHAXTHAL_ONRECRUIT_CHECK_SURFACE_FLAG "Shaxthal Drone"}
    image="units/shaxthal/drone.png"
    hitpoints=32
    movement_type=biomechanical_drone
    movement=5
    experience=60
    level=1
    alignment=neutral
    advances_to=Shaxthal Sentry Drone,Shaxthal Assault Drone
    cost=11
    usage=mixed fighter
    # Weaker than their cousins to most physical damage types
    [resistance]
        blade=110
        pierce=120
        impact=100
        cold=100
    [/resistance]
    description= _ "Unnatural. Bloodcurdling. Abominations. Of the many words used to describe the mechanical creatures known as the Shaxthals, these are the most often heard. Amongst their many legions, the lowly Drone is by far the most common, yet even it can tear down an enemy in an instant. A menacing hiss echoing through the gloom is enough to herald approaching death, either by the powerful blasts of energy they unleash from their maws or the Chaos legions never far behind.

But among the few accounts that remain of the Shaxthals’ conquests, the most terrifying detail floating creatures of metal, the light glinting off a demonic, unwavering grin as they dispense death from above."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone.png" "units/shaxthal/drone.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=7
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=6
        number=2
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=7
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/drone.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        start_time=-300
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            duration=100
            image="units/shaxthal/drone.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            duration=300
            image="units/shaxthal/drone.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
    [variation]
        variation_id=surface
        inherit=yes
        hide_help=yes
        image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
        {DEFENSE_ANIM "units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" "units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" {SOUND_LIST:BIOMECHANICAL_HIT} }
        [attack_anim]
            [filter_attack]
                name=claws
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=fangs
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=energy shock
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]


#textdomain wesnoth-Naia

#ifdef CAMPAIGN_AFTER_THE_STORM

[unit_type]
    id=Shaxthal Enforcer Drone
    name= _ "Enforcer Drone"
    race=shaxthal
    {SHAXTHAL_ONRECRUIT_CHECK_SURFACE_FLAG "Shaxthal Enforcer Drone"}
    image="units/shaxthal/drone-enforcer.png"
    hitpoints=65
    movement_type=biomechanical_drone
    movement=8
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=49
    usage=mixed fighter
    # Weaker than their cousins to most physical damage types
    [resistance]
        blade=100
        pierce=100
        impact=100
        fire=120
        cold=100
    [/resistance]
    description= _ "Bulkier and seemingly smarter versions of the Sentry drones are said to dwell in the deepest reaches of the Shaxthal hives protecting their offspring and territory."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-enforcer.png" "units/shaxthal/drone-enforcer.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=11
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=10
        number=3
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=10
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-300
            end=-150
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-enforcer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-enforcer.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-300
            end=-200
            #image="units/shaxthal/drone-enforcer-move-attack-1.png"
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
        [frame]
            begin=-200
            end=-150
            #image="units/shaxthal/drone-enforcer-attack-2.png"
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-50
                #image="units/shaxthal/drone-enforcer-attack-2.png"
                image="units/shaxthal/drone-enforcer.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-50
                #image="units/shaxthal/drone-enforcer-attack-2.png"
                image="units/shaxthal/drone-enforcer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            #image="units/shaxthal/drone-enforcer-move-attack-1.png"
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/shaxthal/drone-enforcer.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/drone-enforcer.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            begin=-200
            end=100
            image="units/shaxthal/drone-enforcer.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
    [variation]
        variation_id=surface
        inherit=yes
        hide_help=yes
        image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
        {DEFENSE_ANIM "units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" "units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" {SOUND_LIST:BIOMECHANICAL_HIT} }
        [attack_anim]
            [filter_attack]
                name=claws
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=fangs
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=energy shock
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-enforcer.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]

#endif


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Protector Drone
    name= _ "Protector Drone"
    race=shaxthal
    image="units/shaxthal/drone-protector.png"
    hitpoints=45
    movement_type=biomechanical_smallfoot
    movement=6
    experience=100
    level=2
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=36
    usage=mixed fighter
    description= _ "Some drones develop their flexibility and deftness more than others. The Protectors have chosen the path of endurance and attack strength, becoming heavier and slower, yet lethal weapons of mass destruction. Their unusual attack accuracy makes them especially dangerous."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-protector.png" "units/shaxthal/drone-protector.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
        {ABILITY_STEADFAST}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=7
        number=2
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=8
        number=4
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-300
            end=-150
            image="units/shaxthal/drone-protector.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-protector.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-protector.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/shaxthal/drone-protector.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-300
            end=-50
            image="units/shaxthal/drone-protector.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-50
                end=100
                image="units/shaxthal/drone-protector.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-50
                end=100
                image="units/shaxthal/drone-protector.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/drone-protector.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            begin=-200
            end=100
            image="units/shaxthal/drone-protector.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Runner Drone
    name= _ "Runner Drone"
    race=shaxthal
    image="units/shaxthal/drone-runner.png"
    hitpoints=31
    movement_type=biomechanical_smallfoot
    movement=6
    experience=40
    level=1
    alignment=neutral
    advances_to=Shaxthal Protector Drone,Shaxthal Rayblade
    cost=15
    usage=mixed fighter
    description= _ "These bipedal Shaxthal creatures are better adapted for speed, agility and accuracy at ground level. On their own they don’t pose a great threat, but swarms of these can be highly dangerous."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-runner.png" "units/shaxthal/drone-runner.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=6
        number=2
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=5
        number=4
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=7
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-300
            end=-150
            image="units/shaxthal/drone-runner.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-runner.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-runner.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/shaxthal/drone-runner.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-300
            end=-50
            image="units/shaxthal/drone-runner.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-50
                end=100
                image="units/shaxthal/drone-runner.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-50
                end=100
                image="units/shaxthal/drone-runner.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/drone-runner.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            begin=-200
            end=100
            image="units/shaxthal/drone-runner.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Sentry Drone
    name= _ "Sentry Drone"
    race=shaxthal
    {SHAXTHAL_ONRECRUIT_CHECK_SURFACE_FLAG "Shaxthal Sentry Drone"}
    image="units/shaxthal/drone-sentry.png"
    hitpoints=51
    movement_type=biomechanical_drone
    movement=8
    experience=92
    level=2
    alignment=neutral
    {SHAXTHAL_ATS_ADVANCEMENT ("Shaxthal Enforcer Drone") 92 100}
    cost=26
    usage=mixed fighter
    # Weaker than their cousins to most physical damage types
    [resistance]
        blade=100
        pierce=100
        impact=100
        cold=100
    [/resistance]
    description= _ "From the dark, echoing labyrinths of the Shaxthal hives to the shadowy fortresses of the Chaos Empire await guardians who can neither be swayed by words or gold: the Sentry Drones. Silent and deadly, these sentinels were engineered to quickly and efficiently eliminate any trespassers into the Empire’s domain. Any unlucky enough to attract their attention have but one recourse: flight — that is, if they can outpace them. Should the fleeing intruder fall victim to the drones’ scalding blasts of energy, their vicious teeth and claws will make short work of what remains."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-sentry.png" "units/shaxthal/drone-sentry.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=9
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=9
        number=3
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=8
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-300
            end=-150
            image="units/shaxthal/drone-sentry.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-sentry.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/shaxthal/drone-sentry.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/shaxthal/drone-sentry.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-300
            end=-200
            #image="units/shaxthal/drone-sentry-move-attack-1.png"
            image="units/shaxthal/drone-sentry.png"
        [/frame]
        [frame]
            begin=-200
            end=-150
            #image="units/shaxthal/drone-sentry-attack-2.png"
            image="units/shaxthal/drone-sentry.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-50
                #image="units/shaxthal/drone-sentry-attack-2.png"
                image="units/shaxthal/drone-sentry.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-50
                #image="units/shaxthal/drone-sentry-attack-2.png"
                image="units/shaxthal/drone-sentry.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            #image="units/shaxthal/drone-sentry-move-attack-1.png"
            image="units/shaxthal/drone-sentry.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/shaxthal/drone-sentry.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/drone-sentry.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            begin=-200
            end=100
            image="units/shaxthal/drone-sentry.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
    [variation]
        variation_id=surface
        inherit=yes
        hide_help=yes
        image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
        {DEFENSE_ANIM "units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" "units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)" {SOUND_LIST:BIOMECHANICAL_HIT} }
        [attack_anim]
            [filter_attack]
                name=claws
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=fangs
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=energy shock
            [/filter_attack]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
            [frame]
                image="units/shaxthal/drone-sentry.png~PAL(shaxthal_drone_base>shaxthal_drone_surface)"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]


#textdomain wesnoth-Naia

#ifdef CAMPAIGN_AFTER_THE_STORM

[unit_type]
    id=Shaxthal War Drone
    name= _ "War Drone"
    race=shaxthal
    image="units/shaxthal/drone-war.png"
    hitpoints=62
    movement_type=biomechanical_drone
    movement=7
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=50
    usage=mixed fighter
    description= _ "Recent developments appear to have led to the creation of more advanced types of Shaxthal drones designed for swiftly obliterating front lines and base defenses using aerial strikes. With the frightening accuracy of the Protectors and the formidable strength of Assault drones combined, these notably rare War drones can quickly bring reinforced stone walls down and crush anyone foolish enough to confront them without the use of magic support."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/drone-war.png" "units/shaxthal/drone-war.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [resistance]
        blade=80
        cold=80
    [/resistance]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        type=pierce
        range=melee
        damage=10
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=warblades
        description= _ "war-blades"
        icon=attacks/razor-feathers.png
        type=blade
        range=melee
        damage=9
        number=4
    [/attack]
    [attack]
        name=energy burst
        description= _ "energy burst"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=11
        number=5
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=warblades
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone-war.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone-war.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone-war.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone-war.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        start_time=-300
        [frame]
            duration=150
            image="units/shaxthal/drone-war.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/drone-war.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/drone-war.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/shaxthal/drone-war.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/drone-war.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy burst
        [/filter_attack]
        start_time=-300
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            duration=100
            image="units/shaxthal/drone-war.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            duration=300
            image="units/shaxthal/drone-war.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
[/unit_type]

#endif


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Razorbird
    name= _ "Razorbird"
    race=shaxthal
    image="units/shaxthal/razorbird.png"
    hitpoints=28
    movement_type=biomechanical_drone
    movement=8
    experience=35
    level=1
    alignment=neutral
    advances_to=Shaxthal Thunderbird
    cost=19
    usage=scout
    description= _ "Since Shaxthal drones began to be regularly spotted in the battle-field, other new biomechanical lifeforms have appeared, seemingly as the result of the Shaxthalkind’s mere presence on Irdya. Amongst those, metallic birds with sharp knives for feathers are frequently seen near the surface entrances of the creatures’ hives. Being clad in metal makes them slower than normal birds, and also more dangerous."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    # Weaker than their cousins to most physical damage types
    [resistance]
        pierce=90
        impact=100
        fire=120
        cold=100
    [/resistance]
    {FLYING_DEFENSE_ANIM "units/shaxthal/razorbird.png" "units/shaxthal/razorbird.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [attack]
        name=beak
        description=_"beak"
        type=pierce
        range=melee
        damage=8
        number=1
        icon=attacks/beak-shaxthal.png
    [/attack]
    [attack]
        name=blade shower
        description=_"blade shower"
        type=blade
        range=ranged
        damage=5
        number=3
        icon=attacks/razor-feathers.png
    [/attack]
    # Thanks Espreon for the original code and idea
    # for a new beak animation.
    [attack_anim]
        [filter_attack]
            name=beak
        [/filter_attack]
        start_time=-500
        [frame]
            duration=50 # end @ -450
            image="units/shaxthal/razorbird.png"
            offset=0.0~-0.2
        [/frame]
        [frame]
            duration=200 # end @ -250
            image="units/shaxthal/razorbird-attack.png"
            offset=-0.2~-1.0
        [/frame]
        [frame]
            duration=150 # -100
            image="units/shaxthal/razorbird-attack.png"
            offset=-1.0~0.0
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/razorbird-attack.png"
                sound=spear.ogg
                offset=0.0~1.25
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/razorbird-attack.png"
                sound={SOUND_LIST:MISS}
                offset=0.0~1.25
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/shaxthal/razorbird-attack.png"
            offset=1.25~0.75
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/razorbird.png"
            offset=0.75~0.0
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=blade shower
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/shaxthal/razorbird.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=50
                image="units/shaxthal/razorbird-attack.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=50
                image="units/shaxthal/razorbird-attack.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=150
            image="units/shaxthal/razorbird-attack.png"
        [/frame]
        [frame]
            begin=150
            end=200
            image="units/shaxthal/razorbird.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Thunderbird
    name= _ "Thunderbird"
    race=shaxthal
    image="units/shaxthal/thunderbird.png"
    hitpoints=41
    movement_type=biomechanical_drone
    movement=8
    experience=100
    level=2
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=38
    usage=scout
    description= _ "More advanced bird-like Shaxthal creatures can produce deadly lightning with their sharp feather-blades to attack enemies at a distance, as well as dive and charge into their heads using their powerful metallic beaks."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    # Weaker than their cousins to most physical damage types
    [resistance]
        pierce=80
        impact=100
        fire=120
        cold=100
    [/resistance]
    {FLYING_DEFENSE_ANIM "units/shaxthal/thunderbird.png" "units/shaxthal/thunderbird.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [attack]
        name=beak
        description=_"beak"
        type=pierce
        range=melee
        damage=10
        number=1
        icon=attacks/beak-shaxthal.png
        [specials]
            {WEAPON_SPECIAL_CHARGE}
        [/specials]
    [/attack]
    [attack]
        name=blade shower
        description=_"blade shower"
        type=blade
        range=ranged
        damage=8
        number=3
        icon=attacks/razor-feathers.png
    [/attack]
    [attack]
        name=thunderbolt
        description=_"thunderbolt"
        type=fire
        range=ranged
        damage=10
        number=2
        icon=attacks/lightning.png
    [/attack]
    # Thanks Espreon for the original code and idea
    # for a new beak animation.
    [attack_anim]
        [filter_attack]
            name=beak
        [/filter_attack]
        start_time=-500
        [frame]
            duration=50 # end @ -450
            image="units/shaxthal/thunderbird.png"
            offset=0.0~-0.2
        [/frame]
        [frame]
            duration=200 # end @ -250
            image="units/shaxthal/thunderbird-attack.png"
            offset=-0.2~-1.0
        [/frame]
        [frame]
            duration=150 # -100
            image="units/shaxthal/thunderbird-attack.png"
            offset=-1.0~0.0
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/shaxthal/thunderbird-attack.png"
                sound=spear.ogg
                offset=0.0~1.25
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/shaxthal/thunderbird-attack.png"
                sound={SOUND_LIST:MISS}
                offset=0.0~1.25
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/shaxthal/thunderbird-attack.png"
            offset=1.25~0.75
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/thunderbird.png"
            offset=0.75~0.0
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=blade shower
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/shaxthal/thunderbird.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=50
                image="units/shaxthal/thunderbird-attack.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=50
                image="units/shaxthal/thunderbird-attack.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=150
            image="units/shaxthal/thunderbird-attack.png"
        [/frame]
        [frame]
            begin=150
            end=200
            image="units/shaxthal/thunderbird.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=thunderbolt
        [/filter_attack]
        [missile_frame]
            begin=-100
            end=0
            image="projectiles/lightning-n.png"
            image_diagonal="projectiles/lightning-ne.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=-50
                image="units/shaxthal/thunderbird.png"
                sound=lightning.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=-50
                image="units/shaxthal/thunderbird.png"
                sound=lightning-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/shaxthal/thunderbird-attack.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Worm
    name= _ "Worm"
    race=shaxthal
    image="units/shaxthal/worm+a.png"
    hitpoints=23
    # A mixture of the Drone and Naga movetypes
    movement_type=biomechanical_drone
    [movement_costs]
        flat=2
        forest=4
        hills=5
        mountains={UNREACHABLE}
        village=1
        castle=2
        cave=2
        frozen=3
        unwalkable={UNREACHABLE}
        fungus=2
    [/movement_costs]
    [defense]
        shallow_water=40
        swamp_water=40
        reef=40
        flat=90
        sand=80
        forest=90
        hills=90
        mountains=90
        village=50
        castle=50
        frozen=80
        unwalkable=80
        impassable=50
        fungus=60
    [/defense]
    [resistance]
        blade=90
        pierce=90
        impact=90
        fire=110
        cold=110
    [/resistance]
    movement=7
    experience=25
    level=0
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=9
    usage=fighter
    description= _ "Despite being creatures of artificial origins, Shaxthal lifeforms have been reported to vary wildly in shape, size and behavior. Since very little is known about their life cycles, it’s not clear whether certain forms — such as these biomechanical worms — are in reality just different growth stages of the same creature.

The Shaxthal worms dwell inside the great dark hives and they are almost never seen elsewhere. Some evidence gathered and analyzed by scholars would indicate these creatures are extremely vulnerable in the open."
    die_sound=hiss-die.wav
    {DEFENSE_ANIM "units/shaxthal/worm+a.png" "units/shaxthal/worm+a.png" hiss-hit.wav }
    [abilities]
        {ABILITY_BORE}
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-animal.png
        type=pierce
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=tail
        description={I18N:ATTACK_TAIL}
        icon=attacks/tail-shaxthal.png
        type=impact
        range=melee
        damage=13
        number=1
    [/attack]

    [attack_anim]
        [filter_attack]
            name=tail
        [/filter_attack]
        start_time=-300
        [frame]
            duration=50
            image="units/shaxthal/worm+a.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=450
                image="units/shaxthal/worm+a.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=450
                image="units/shaxthal/worm+a.png"
                sound=tail.ogg
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        start_time=-100
        [if]
            hits=yes
            [frame]
                duration=200
                image="units/shaxthal/worm+a.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/shaxthal/worm+a.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
    [/attack_anim]

#define SHAXTHAL_WORM_VARIATION _VARIATION_SUFFIX
    [variation]
        variation_id={_VARIATION_SUFFIX}
        inherit=yes
        hide_help=yes
        image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"

        {DEFENSE_ANIM ("units/shaxthal/worm+{_VARIATION_SUFFIX}.png") ("units/shaxthal/worm+{_VARIATION_SUFFIX}.png") hiss-hit.wav}

        [attack_anim]
            [filter_attack]
                name=tail
            [/filter_attack]
            [frame]
                image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"
                [/frame]
            [/else]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=fangs
            [/filter_attack]
            [if]
                [frame]
                    image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/worm+{_VARIATION_SUFFIX}.png"
                [/frame]
            [/else]
        [/attack_anim]
    [/variation]
#enddef

    {SHAXTHAL_WORM_VARIATION a}
    {SHAXTHAL_WORM_VARIATION b}
    {SHAXTHAL_WORM_VARIATION c}

#undef SHAXTHAL_WORM_VARIATION
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Naia

[unit_type]
    id=Shaxthal Rayblade
    name= _ "Rayblade"
    race=shaxthal
    image="units/shaxthal/rayblade.png"
    hitpoints=39
    movement_type=biomechanical_elusivefoot
    movement=5
    level=2
    alignment=neutral
    {SHAXTHAL_ATS_ADVANCEMENT ("Shaxthal Stormblade") 110 100}
    cost=32
    usage=fighter
    description= _ "The majority of Shaxthal drones are at best mediocre in close combat, their bodies lacking the precision required for countering blows effectively. As one would expect, the Chaos Lorekeepers realized this and devised a solution: the Shaxthal Rayblades. Not only have they forgone claws and energy blasts in exchange for their namesake arm blades, but they also possess the fearsome ability to spin their torsos rapidly and slice through enemy lines like butter."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/rayblade.png" "units/shaxthal/rayblade.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=rayblade
        description= _ "weapon^rayblade"
        type=blade
        range=melee
        damage=6
        number=6
    [/attack]
    [attack_anim]
        [filter_attack]
            name=rayblade
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image="units/shaxthal/rayblade.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=200
                image="units/shaxthal/rayblade.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/shaxthal/rayblade.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/shaxthal/rayblade.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

#ifdef CAMPAIGN_AFTER_THE_STORM

[unit_type]
    id=Shaxthal Stormblade
    name= _ "Stormblade"
    race=shaxthal
    image="units/shaxthal/stormblade.png"
    hitpoints=54
    movement_type=biomechanical_elusivefoot
    movement=5
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=58
    usage=mixed fighter
    [resistance]
        fire=90
    [/resistance]
    description= _ "Because of their comparatively expensive design, Stormblade drones are a rarer sight on the battlefield than other Shaxthal creatures. Their deadly long arm-blades combined with the recovered ability to retaliate against ranged attacks makes them extremely dangerous opponents."
    die_sound={SOUND_LIST:BIOMECHANICAL_DIE}
    {DEFENSE_ANIM "units/shaxthal/stormblade.png" "units/shaxthal/stormblade.png" {SOUND_LIST:BIOMECHANICAL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=rayblade
        description= _ "weapon^rayblade"
        type=blade
        range=melee
        damage=7
        number=6
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    [attack]
        name=energy shock
        description= _ "energy shock"
        icon=attacks/energy-shock.png
        type=impact
        range=ranged
        damage=8
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=rayblade
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image="units/shaxthal/stormblade.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=200
                image="units/shaxthal/stormblade.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/shaxthal/stormblade.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/shaxthal/stormblade.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy shock
        [/filter_attack]
        {MISSILE_FRAME_ENERGY_SHOCK}
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/stormblade.png"
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            begin=-200
            end=100
            image="units/shaxthal/stormblade.png"
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
[/unit_type]

#endif


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Cardinal
    name= _ "Chaos Cardinal"
    race=undead
    image="units/undead-necromancers/chaos-cardinal.png"
    profile="portraits/mal-hekuba.png"
    hitpoints=89
    movement_type=undeadfoot
    movement=6
    experience=200
    level=4
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=120
    usage=mixed fighter
    description= _ "Two centuries before the birth of the Chaos Empire, its forefathers and their revered Dark Lady found themselves challenged by a barbaric people hailing from the Great Southern Desert: the Quenoth Elves. In spite of the superior weaponry and magic skill at the Iron Council’s disposal, the invaders’ cunning tactics and unrelenting ferocity proved decisive in turning the tide of battle in their favor. And although the Iron Council ultimately repelled their assault, the elves did not abandon the Council’s sanctuary without first taking the life of the most revered priest of Yechnagoth, the de facto leader of the Iron Triad in the absence of their true master.

Over three centuries later, Mal Hekuba continues to roam Irdya carrying out the orders of the living goddess who promises a new era of restoration and unity, in the hope that some day, the Dark Lady will too rise once more and purge all non-believers from this tainted earth."
    die_sound=lich-die.ogg
    {DEFENSE_ANIM "units/undead-necromancers/chaos-cardinal.png" "units/undead-necromancers/chaos-cardinal.png" {SOUND_LIST:LICH_HIT} }
    [movement_costs]
        shallow_water=3
    [/movement_costs]
    [abilities]
        {ABILITY_ZEAL}
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=necrotic shard
        description=_"necrotic shard"
        icon=attacks/staff-hekuba.png
        type=arcane
        range=melee
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_NECROSIS}
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=chill tempest
        description={I18N:CHILL_TEMPEST}
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=13
        number=5
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=breath of nyx
        description=_"breath of nyx"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=9
        number=5
        icon=attacks/dark-missile.png
    [/attack]

    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=2310
            image="units/undead-necromancers/chaos-cardinal.png"
            halo=halo/undead/idle-flash-[1~21].png
            halo_x=6~0,0
            halo_y=-6~0,0
        [/frame]
    [/idle_anim]

    [recruiting_anim]
        [filter_second]
            race=undead
        [/filter_second]
        start_time=-300
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:150"
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png"
            halo=halo/undead/black-magic-[1~5].png:[75*4,50]
        [/frame]
        sound_start_time=-75
        [sound_frame]
            sound=magic-dark-big.ogg
        [/sound_frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:100"
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:1"
        [/frame]
    [/recruiting_anim]
    [attack_anim]
        [filter_attack]
            name=chill tempest
        [/filter_attack]

        offset=0

        {MISSILE_FRAME_CHILL_TEMPEST 0 -15}

        start_time=-355
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:150"
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png"
            halo=halo/undead/black-magic-[1~5].png:[75*4,50]
        [/frame]
        {SOUND:HIT_AND_MISS magic-dark-big.ogg magic-dark-big-miss.ogg -150}
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:100"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=breath of nyx
        [/filter_attack]

        {MISSILE_FRAME_SHADOW_WAVE}

        start_time=-675
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:150"
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png"
            halo=halo/undead/black-magic-[1~5].png:[75*4,50]
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:200"
        [/frame]
        {SOUND:HIT_AND_MISS magic-dark-big.ogg magic-dark-big-miss.ogg -50}
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:100"
        [/frame]
        [frame]
            image="units/undead-necromancers/chaos-cardinal.png:50"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=necrotic shard
        [/filter_attack]
        start_time=-250
        [frame]
            duration=125
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=25
                sound=magic-dark.ogg
            [/frame]
            [frame]
                duration=200
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=25
            [/frame]
            [frame]
                duration=200
                sound=spear-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=75
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Errant Soul
    name= _ "Errant Soul"
    [base_unit]
        id=Ghost
    [/base_unit]
    hitpoints=12
    movement=6
    experience=25
    level=0
    advances_to=null
    {AMLA_DEFAULT}
    cost=9
    description= _ "These lost souls have wandered the barren wastelands of Irdya ever since the Fall, trapped in ethereal bodies that only vaguely resemble their former living appearances."
    [movement_costs]
        village={UNREACHABLE}
    [/movement_costs]
    [attack]
        name=touch
        description={I18N:ATTACK_TOUCH}
        damage,number=3,3
    [/attack]
    [attack]
        name=wail
        description={I18N:ATTACK_WAIL}
        damage,number=2,2
    [/attack]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Verlissh Matrix Core
    name= _ "Matrix Core"
    race=verlissh
    ignore_race_traits=yes
    image="units/alien-verlissh/matrix-core.png"
    # the unit box in sidebar and help screen is really limited to 72x72...
    image_icon="units/alien-verlissh/matrix-core.png~SCALE(72,72)"
    hitpoints=64
    movement_type=none
    movement=1
    experience=150
    {AMLA_DEFAULT}
    level=3
    alignment=chaotic
    advances_to=null
    cost=80
    usage=archer
    undead_variation=null
    [abilities]
        {ABILITY_ENERGIZE_1030}
        {ABILITY_REGENERATES}
    [/abilities]
    {VERLISSH_MACHINE_NAMES}
    description= _ "These unfathomable, purportedly living constructs are usually found underground near Shaxthal hives. Fully immobile by nature, they have very limited means of self-defense. Given their disproportionate size, they may be a hindrance when found in narrow underground passages."
    die_sound={SOUND_LIST:MATRIX_DIE}
    [attack]
        name=energy ray
        description= _ "energy ray"
        icon=attacks/dark-missile.png
        type=cold
        range=ranged
        damage=15
        number=3
    [/attack]
    [attack]
        name=hot goo
        description= _ "hot goo"
        icon=attacks/slime-thrown.png
        type=fire
        range=ranged
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=11
        number=2
    [/attack]

    {VERLISSH_MACHINE_STANDING_ANIMATION "units/alien-verlissh/matrix-core.png"}
    {VERLISSH_MACHINE_DEFENSE_ANIMATION "units/alien-verlissh/matrix-core.png"}

    [attack_anim]
        [filter_attack]
            name=energy ray
        [/filter_attack]
        {VERLISSH_MACHINE_ENERGY_ANIMATION "units/alien-verlissh/matrix-core.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=hot goo
        [/filter_attack]
        {VERLISSH_MACHINE_GOO_ANIMATION "units/alien-verlissh/matrix-core.png"}
    [/attack_anim]

    [death]
        start_time=0
        die_sound_start_time=0
        auto_hflip=no
        auto_vflip=no

        [die_sound_frame]
            duration=600
            sound=explosion.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=800
            sound=lich-hit-1.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=400
            sound=explosion.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=800
            sound=lich-hit-2.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=900
            sound=explosion.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=600
            sound=lich-die.ogg
        [/die_sound_frame]
        [die_sound_frame]
            duration=800
            sound=explosion.ogg
        [/die_sound_frame]

        {BOSS_BURST_FRAME 1    0  -9  17}
        {BOSS_BURST_FRAME 2  600  18   0}
        {BOSS_BURST_FRAME 3 1200  -9 -18}
        {BOSS_BURST_FRAME 4 1800   9  17}
        {BOSS_BURST_FRAME 5 2400   8 -18}
        {BOSS_BURST_FRAME 6 3000 -18   0}

        {BOSS_EXPLOSION_FRAME 1 1800  -9  17}
        {BOSS_EXPLOSION_FRAME 2 2300  18   0}
        {BOSS_EXPLOSION_FRAME 3 2800  -9 -18}
        {BOSS_EXPLOSION_FRAME 4 3300   9  17}
        {BOSS_EXPLOSION_FRAME 5 3800   8 -18}
        {BOSS_EXPLOSION_FRAME 6 4300 -18   0}

        [frame]
            duration=2500
            image="units/alien-verlissh/matrix-core.png"
            blend_color=255,255,255
            blend_ratio=0.0~1.0
        [/frame]
        [frame]
            duration=2600
            image="units/alien-verlissh/matrix-core.png"
            blend_color=255,255,255
            blend_ratio=1.0
            alpha=1.0~0.0
        [/frame]
        [frame]
            duration=1
            image="misc/blank-hex.png"
        [/frame]
    [/death]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Naia

[unit_type]
    id=Verlissh Matrix Flow System
    name= _ "Matrix Structural"
    race=verlissh
    ignore_race_traits=yes
    image="units/alien-verlissh/matrix-flowsystem.png"
    bar_offset_x,bar_offset_y=0,0
    # the unit box in sidebar and help screen is really limited to 72x72...
    image_icon="units/alien-verlissh/matrix-flowsystem.png~SCALE(72,72)"
    hitpoints=35
    movement_type=none
    movement=1
    experience=25
    {AMLA_DEFAULT}
    level=0
    alignment=chaotic
    advances_to=null
    cost=20
    usage=archer
    undead_variation=null
    [abilities]
        {ABILITY_ENERGIZE_515}
        {ABILITY_REGENERATES}
    [/abilities]
    {VERLISSH_MACHINE_NAMES}
    description= _ "These unfathomable, purportedly living constructs are usually found underground near Shaxthal hives. Fully immobile by nature, they have very limited means of self-defense. Given their disproportionate size, they may be a hindrance when found in narrow underground passages."
    die_sound={SOUND_LIST:MATRIX_DIE}
    [attack]
        name=energy ray
        description= _ "energy ray"
        icon=attacks/dark-missile.png
        type=cold
        range=ranged
        damage=6
        number=1
    [/attack]
    [attack]
        name=goo
        description= _ "goo"
        icon=attacks/slime-thrown.png
        type=pierce
        range=ranged
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=5
        number=2
    [/attack]

    {VERLISSH_MACHINE_STANDING_ANIMATION "units/alien-verlissh/matrix-flowsystem.png"}
    {VERLISSH_MACHINE_DEATH_ANIMATION "units/alien-verlissh/matrix-flowsystem.png"}
    {VERLISSH_MACHINE_DEFENSE_ANIMATION "units/alien-verlissh/matrix-flowsystem.png"}

    [attack_anim]
        [filter_attack]
            name=energy ray
        [/filter_attack]
        {VERLISSH_MACHINE_ENERGY_ANIMATION "units/alien-verlissh/matrix-flowsystem.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=goo
        [/filter_attack]
        {VERLISSH_MACHINE_GOO_ANIMATION "units/alien-verlissh/matrix-flowsystem.png"}
    [/attack_anim]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Naia

[unit_type]
    id=Psy Crawler
    name= _ "Psy Crawler"
    race=verlissh
    image="units/alien-psy/crawler.png"
    hitpoints=33
    movement_type=largefoot
    movement=4
    experience=50
    level=1
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=15
    usage=archer
    undead_variation=null
    description= _ "These tentacled creatures are often found underground within Shaxthal hives, wandering aimlessly and preying upon smaller lifeforms when not magically commanded by the dreaded Lorekeepers. Being rather slow and weak, it is very unusual for them to be seen on the surface, and even more unusual for them to be sent away from their habitat."
    die_sound={SOUND_LIST:PSY_DIE}
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=energy ray
        description= _"energy ray"
        icon=attacks/dark-missile.png
        type=cold
        range=ranged
        damage=7
        number=3
    [/attack]
    {DEFENSE_ANIM "units/alien-psy/crawler-defend.png" units/alien-psy/crawler.png {SOUND_LIST:PSY_HIT} }
    [death]
        start_time=0
        [frame]
            duration=200
            image="units/alien-psy/crawler-melee2.png"
        [/frame]
        [frame]
            duration=200
            image="units/alien-psy/crawler-die-1.png"
        [/frame]
        [frame]
            duration=200
            image="units/alien-psy/crawler-die-2.png"
        [/frame]
        [frame]
            duration=200
            image="units/alien-psy/crawler-die-3.png"
        [/frame]
        [frame]
            duration=200
            image="units/alien-psy/crawler-die-4.png"
        [/frame]
        [frame]
            duration=200
            image="units/alien-psy/crawler-die-5.png"
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        start_time=-200
        [frame]
            duration=150
            image=units/alien-psy/crawler-melee1.png
        [/frame]
        [if]
            hits=yes
            [frame]
                sound=bite-small.ogg
                duration=200
                image=units/alien-psy/crawler-melee2.png
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                sound={SOUND_LIST:MISS}
                duration=200
                image=units/alien-psy/crawler-melee2.png
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=energy ray
        [/filter_attack]
        start_time=-300
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/darkmissile-n.png"
            image_diagonal="projectiles/darkmissile-ne.png"
        [/missile_frame]
        [frame]
            duration=100
            image=units/alien-psy/crawler-ranged1.png
        [/frame]
        [if]
            hits=no
            [frame]
                sound=magic-dark-miss.ogg
                duration=250
                image=units/alien-psy/crawler-ranged2.png
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                sound=magic-dark.ogg
                duration=250
                image=units/alien-psy/crawler-ranged2.png
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Psy Mindraider
    name= _ "Psy Mindraider"
    race=verlissh
    image="units/alien-psy/mindraider.png"
    hitpoints=59
    movement_type=largefoot
    movement=5
    experience=150
    {AMLA_DEFAULT}
    level=3
    alignment=chaotic
    advances_to=null
    cost=64
    usage=mixed fighter
    undead_variation=null
    description= _ "Assumed to be related to the wandering crawlers at the Lorekeepers’ service, these fearsome creatures are said to have the ability to pierce into the very minds of any living opponents, replenishing their vital energy and accelerating their growth in the process. Needless to say, this makes them especially dangerous to approach."
    die_sound={SOUND_LIST:PSY_DIE}
    [abilities]
        {ABILITY_FEEDING}
    [/abilities]
    [attack]
        name=tentacle
        description={I18N:ATTACK_TENTACLE}
        type=impact
        range=melee
        [specials]
            {WEAPON_SPECIAL_SWARM}
        [/specials]
        damage=3
        number=10
    [/attack]
    [attack]
        name=mind probe
        description= _ "mind probe"
        icon=attacks/curse.png
        type=arcane
        range=ranged
        damage=8
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/alien-psy/mindraider.png" "units/alien-psy/mindraider.png" {SOUND_LIST:PSY_HIT} }
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image=units/alien-psy/mindraider.png
        [/frame]
        [if]
            hits=yes
            [frame]
                sound=squishy-strike.wav
                duration=200
                image=units/alien-psy/mindraider.png
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                sound=squishy-miss.wav
                duration=200
                image=units/alien-psy/mindraider.png
            [/frame]
        [/else]
        [frame]
            duration=50
            image=units/alien-psy/mindraider.png
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mind probe
        [/filter_attack]
        start_time=-300
        missile_start_time=0
        [missile_frame]
            duration=300
            halo="halo/elven/ice-halo1.png:50,halo/elven/ice-halo2.png:50,halo/elven/ice-halo3.png:50,halo/elven/ice-halo4.png:50,halo/elven/ice-halo5.png:50,halo/elven/ice-halo6.png:50"
            offset=1.0~0.0:300
        [/missile_frame]
        [frame]
            duration=100
            image=units/alien-psy/mindraider.png
        [/frame]
        [if]
            hits=no
            [frame]
                sound=magic-dark-miss.ogg
                duration=250
                image=units/alien-psy/mindraider.png
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                sound=magic-dark.ogg
                duration=250
                image=units/alien-psy/mindraider.png
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Hound
    name= _ "Hound of Chaos"
    race=wolf
    image="units/wolves/hound.png"
    hitpoints=22
    movement_type=houndfoot
    movement=7
    experience=40
    level=1
    alignment=chaotic
    advances_to=Demonic Hound
    cost=18
    usage=fighter
    undead_variation=wolf
    description= _ "Exceedingly few communities have continued to breed domesticated dogs after the Fall, not only because of the harsher climate and scarce resources with which to feed captive animals, but also on account of an overabundance of larger and more dangerous predators. The Chaos Empire, on the other hand, not content with using slaves and barbarian mercenaries in warfare, has turned dog breeding into more than a mere pastime. To their quadrupedal companions anything unfamiliar constitutes prey, and these vicious canines never yield in a fight until either their target or themselves has been reduced to bloody bits."
    die_sound={SOUND_LIST:WOLF_DIE}
    {DEFENSE_ANIM "units/wolves/hound-defend.png" "units/wolves/hound.png" {SOUND_LIST:WOLF_HIT} }
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        damage=5
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        offset=0.0~-0.1:100,-0.1~0.0:50,0.0~0.3:50,0.3~0.5:100,0.5~0.6:50,0.6~0.4:100,0.4~0.2:50,0.2~0.0:100
        [frame]
            begin=-350
            end=-100
            image="units/wolves/hound-attack1.png"
            sound={SOUND_LIST:WOLF_GROWL}
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/wolves/hound-attack2.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/wolves/hound-attack2.png"
                sound=bite.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=250
            image="units/wolves/hound-attack1.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Demonic Hound
    name= _ "Demonic Hound"
    race=wolf
    image="units/wolves/rabid-hound.png"
    [movement_anim]
        [frame]
            begin=0
            end=150
            image="units/wolves/rabid-hound-attack2.png"
        [/frame]
    [/movement_anim]
    hitpoints=35
    movement_type=houndfoot
    movement=7
    experience=70
    level=2
    alignment=chaotic
    advances_to=Hellhound
    cost=40
    usage=fighter
    undead_variation=wolf
    description= _ "It is relatively rare for a Chaos Hound to survive even a year in service on account of their relatively frail build, which makes them prime targets for arrows and sling bullets; and their temperament, which more often than not leads to in-fighting. Those that do, however, quickly earn the Chaos Magi’s attentions — which tend to entail subjecting the beasts to all manner of reprehensible experiments, turning them into sturdier and deadlier killing machines.

It is rumored some Chaos Overlords delight in keeping these hellish hounds as pets. If so, this an even greater deterrent to anyone who would dare enter an Overlord’s stronghold uninvited."
    die_sound={SOUND_LIST:WOLF_DIE}
    {DEFENSE_ANIM "units/wolves/rabid-hound-defend.png" "units/wolves/rabid-hound.png" {SOUND_LIST:WOLF_HIT} }
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        damage=6
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        offset=0.0~-0.1:100,-0.1~0.0:50,0.0~0.3:50,0.3~0.5:100,0.5~0.6:50,0.6~0.4:100,0.4~0.2:50,0.2~0.0:100
        [frame]
            begin=-350
            end=-100
            image="units/wolves/rabid-hound-attack1.png"
            sound={SOUND_LIST:WOLF_GROWL}
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/wolves/rabid-hound-attack2.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/wolves/rabid-hound-attack2.png"
                sound=bite.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=250
            image="units/wolves/rabid-hound-attack1.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Hellhound
    name= _ "Hellhound"
    race=wolf
    image="units/wolves/hellhound.png"
    [movement_anim]
        [frame]
            begin=0
            end=150
            image="units/wolves/hellhound.png"
        [/frame]
    [/movement_anim]
    hitpoints=47
    movement_type=houndfoot
    movement=7
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=74
    usage=fighter
    undead_variation=wolf
    description= _ "It should come as no surprise to anyone that the followers of Uria have perfected techniques for extracting and transplanting souls. Very little information about it has reached any outsider, but the little extant evidence indicates that it is a common disciplinary action against those who have failed in their missions or otherwise displeased their superiors. They are then given a last chance to clear their names and prove their worth, usually with new bodies seldom fit for the task.

It is suspected that most of the Chaos Hounds who manage to survive their masters’ research have had their souls replaced with those of these fallen demons, either because their original souls break down from the horrors, or simply because it is much easier to strip a tortured soul from its vessel. The denizens of Inferno have found that there could hardly be anything more humiliating than being forced to carry on their lives confined to the bodies of beasts that even their Irdyan allies despise: walking on all fours, sleeping next to their own excrement, and eventually succumbing to their low instincts. Having long since realized that regaining their honor is a lost cause, these miserable creatures determine that there are only two remaining options: either to embrace death at the hands of their enemies, or turn against their masters and pray that they do not decide to prolong the torment."
    die_sound={SOUND_LIST:WOLF_DIE}
    {DEFENSE_ANIM "units/wolves/hellhound.png" "units/wolves/hellhound.png" {SOUND_LIST:WOLF_HIT} }
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        damage=8
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        offset=0.0~-0.1:100,-0.1~0.0:50,0.0~0.3:50,0.3~0.5:100,0.5~0.6:50,0.6~0.4:100,0.4~0.2:50,0.2~0.0:100
        [frame]
            begin=-350
            end=-100
            image="units/wolves/hellhound.png"
            sound={SOUND_LIST:WOLF_GROWL}
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/wolves/hellhound.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/wolves/hellhound.png"
                sound=bite.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=250
            image="units/wolves/hellhound.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs
# by Asa Swain

[textdomain]
    name="wesnoth-utbs"
[/textdomain]

# wmlscope: set export=no
[campaign]
    id=Under_the_Burning_Suns
    name= _ "Under the Burning Suns"
    icon="data/campaigns/Under_the_Burning_Suns/images/units/quenoth/kaleh.png~RC(magenta>red)"
    image="data/campaigns/Under_the_Burning_Suns/images/campaign_image.png"
    abbrev= _ "UtBS"
    rank=205
    year="300 AF"
    define=CAMPAIGN_UNDER_THE_BURNING_SUNS
    first_scenario=01_The_Morning_After

    description= _ "In the distant future a small band of elves struggles to survive amidst the ruins of fallen empires. Lead your people out of the desert on an epic journey to find a new home.

" + _"(Expert level, 10 scenarios.)"

    # Old difficulty levels are not selectable anymore, but for now loading saves using them should still work.

    {CAMPAIGN_DIFFICULTY EASY   "data/campaigns/Under_the_Burning_Suns/images/units/quenoth/fighter.png~RC(magenta>red)" ( _ "Fighter") ( _ "Challenging")}
    {CAMPAIGN_DIFFICULTY NORMAL "data/campaigns/Under_the_Burning_Suns/images/units/quenoth/warrior.png~RC(magenta>red)" ( _ "Warrior") ( _ "Difficult")} {DEFAULT_DIFFICULTY}
    {CAMPAIGN_DIFFICULTY HARD   "data/campaigns/Under_the_Burning_Suns/images/units/quenoth/champion.png~RC(magenta>red)" ( _ "Champion") ( _ "Nightmare")}

    # UTBS credits
    [about]
        title= _ "Campaign Design"
        [entry]
            name= "Asa Swain"
        [/entry]
        [entry]
            name= "Piotr Cychowski (Mist/cycholka)"
        [/entry]
    [/about]
    [about]
        title= _ "Campaign Maintenance"
        [entry]
            name= "Iris Morelle (Irydacea/shadowm)"
        [/entry]
        [entry]
            name= "Jan Rietema (Rhuvaen)"
        [/entry]
        [entry]
            name = "Lari Nieminen (zookeeper)"
        [/entry]
        [entry]
            name= "Piotr Cychowski (Mist/cycholka)"
        [/entry]
        [entry]
            name= "Simon Forsyth (Alarantalara)"
        [/entry]
        [entry]
            name= "Steven Panek (Espreon)"
        [/entry]
    [/about]
    [about]
        title= _ "Artwork and Graphics Design"
        [entry]
            name= "Dan Gerhards (beetlenaut)"
            comment= "new Flesh Golem sprites"
        [/entry]
        [entry]
            name = "Kwandulin"
            comment = "New Kaleh and Nym sprites"
        [/entry]
        [entry]
            name= "doofus-01"
            comment = "Monster Crab sprite"
        [/entry]
        [entry]
            name= "Hogne Haskjold (Frame)"
        [/entry]
        [entry]
            name= "Iris Morelle (Irydacea/shadowm)"
        [/entry]
        [entry]
            name= "J.W. Bjerk (Eleazar)"
        [/entry]
        [entry]
            name= "James Woo (Pickslide)"
        [/entry]
        [entry]
            name= "Javier Hoyos (Vendanna)"
        [/entry]
        [entry]
            name = "Marcus Rosén (sleepwalker)"
            comment = "Dark Assassin sprite and animations"
        [/entry]
        [entry]
            name= "Mark Goodenough (Ranger M)"
        [/entry]
        [entry]
            name= "Mikolaj Machowski (Emdot)"
        [/entry]
        [entry]
            name= "Murray Cook (Zhukov)"
        [/entry]
        [entry]
            name= "Peter Geinitz (Shadow)"
        [/entry]
        [entry]
            name= "Richard Kettering (Jetrel)"
        [/entry]
        [entry]
            name= "Sangel"
        [/entry]
        [entry]
            name= "Samuel Wilson (megane)"
        [/entry]
        [entry]
            name= "Scott Klempner"
        [/entry]
        [entry]
            name = "Vincent Langner (Vyncyn)"
            comment = "Spider Lich and Human Commander sprites"
        [/entry]
        [entry]
            name= "Zerovirus"
            comment = "Naga Hunter sprite"
        [/entry]
    [/about]
    [about]
        title= _ "Miscellaneous"
        [entry]
            name= "Fabian Müller (Fabi/Fendrin)"
        [/entry]
        [entry]
            name= "Mark Polo"
        [/entry]
        [entry]
            name="Matthias Schoeck (mattsc)"
            comment="Messenger AI"
        [/entry]
        [entry]
            name= "Isaac"
        [/entry]
        [entry]
            name= "Ringcaat (Thorin N. Tatge)"
        [/entry]
        [entry]
            name=_"And special thanks to everyone else who I forgot to mention."
        [/entry]
    [/about]
[/campaign]

#ifdef CAMPAIGN_UNDER_THE_BURNING_SUNS

[binary_path]
    path=data/campaigns/Under_the_Burning_Suns
[/binary_path]

# Define macro that expands into include paths for this campaign
#define UTBS_INCLUDE TARGET_VALUE
    {campaigns/Under_the_Burning_Suns/{TARGET_VALUE}}
#enddef

# Define macro that expands into map_data keys that include this campaign's path
#define UTBS_MAP TARGET_VALUE
    map_file=campaigns/Under_the_Burning_Suns/maps/{TARGET_VALUE}
#enddef

#Append utils folder
{UTBS_INCLUDE utils}

# Add global events
# wmllint: validate-off
[+campaign]
    {WEAPON_SPECIAL_DAZE_EVENTS}
    {ABILITY_DISENGAGE_EVENTS}
    {ABILITY_SUPPORT_EVENTS}
    # On recruit, this switches the higher-recruit-cost units to the normal
    # types, so that the different cost variations don't need to be taken into
    # account for example in unit filters.
#define DISCARD_RECRUIT_COST_HELPER_UNITS TYPE
    [event]
        name=recruit
        first_time_only=no

        [filter]
            race=quenoth,elf
        [/filter]

        [filter_condition]
            [variable]
                name=unit.type
                contains={TYPE}
            [/variable]

            [variable]
                name=unit.type
                not_equals={TYPE}
            [/variable]
        [/filter_condition]

        {VARIABLE unit.type {TYPE}}

        [unstore_unit]
            variable=unit
            find_vacant=no
        [/unstore_unit]
    [/event]
#enddef

    {DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Fighter"}
    {DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Scout"}
    {DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Mystic"}
    {DISCARD_RECRUIT_COST_HELPER_UNITS "Tauroch Rider"}
[/campaign]
# wmllint: validate-on

#Append Units, including the movetypes and race definition
[units]
    {UTBS_INCLUDE units/units.cfg}
    {UTBS_INCLUDE units/quenoth}
    {UTBS_INCLUDE units/humans}
    {UTBS_INCLUDE units/monsters}
    {UTBS_INCLUDE units/nagas}
    {UTBS_INCLUDE units/other}
    {UTBS_INCLUDE units/undead}
[/units]

{UTBS_INCLUDE scenarios}

[lua]
    code="wesnoth.require 'campaigns/Under_the_Burning_Suns/lua/theme.lua'"
[/lua]

#endif

#ifdef EDITOR
[binary_path]
    path=data/campaigns/Under_the_Burning_Suns
[/binary_path]

[editor_group]
    id=utbs
    name= _ "Under the Burning Suns"
    icon="group_mainline"
[/editor_group]

{campaigns/Under_the_Burning_Suns/utils/terrain.cfg}
{campaigns/Under_the_Burning_Suns/utils/terrain_graphics.cfg}
#endif

# wmllint: directory spellings Kaleh Nym Zhul Garak Quenoth Eloh Uria Tanuil
# wmllint: directory spellings Melusand Esanoo Zurg Grimnir Tanstafaal
# wmllint: directory spellings Yechnagoth Zocthanol Zhangor Sela Naia Keratur
# wmllint: directory spellings Jarl Rogrimir