#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Headhunter
    name= _ "Headhunter"
    race=human
    image="units/human-chaos/headhunter.png"
    hitpoints=34
    movement_type=smallfoot
    movement=7
    experience=40
    level=1
    alignment=chaotic
    [resistance]
        blade=130
        pierce=120
        impact=120
    [/resistance]
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    advances_to=Chaos Marauder
    cost=18
    usage=scout
    description= _ "The Chaos Empire relies extensively on its charismatic Lorekeepers to attract and convert outsiders — chiefly barbarians — to its cause. Those who lack the ability or knowledge to join the ranks of the Chaos Magi are given the most basic equipment and assigned to raiding missions where their undisciplined brutality may be put to use to terrorize and confuse their victims, often at the cost of their own lives."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/headhunter.png" "units/human-chaos/headhunter.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=club
        description={I18N:ATTACK_CLUB}
        icon=attacks/club-small.png
        type=impact
        range=melee
        damage=5
        number=2
    [/attack]
    [attack]
        name=javelin
        description={I18N:ATTACK_JAVELIN}
        icon=attacks/javelin-orcish.png
        type=pierce
        range=ranged
        damage=5
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/headhunter.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/headhunter.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=club
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/headhunter.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/headhunter.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/headhunter.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Hell Guardian
    name= _ "Hell Guardian"
    race=human
    image="units/human-chaos/hell-guardian.png"
    hitpoints=63
    movement_type=armorerfoot
    movement=4
    experience=150
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=80
    usage=fighter
    description= _ "Only the very best guards in the Empire’s service are allowed access to equipment forged by blacksmiths from Inferno. These men are said to be able to withstand a rockslide if need be, protected by their stalwart devotion to the ruling lords of Inferno."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/hell-guardian.png" "units/human-chaos/hell-guardian.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        icon=attacks/sword-orcish.png
        type=blade
        range=melee
        damage=9
        number=4
    [/attack]
    [attack]
        name=shield
        description= _ "shield"
        icon=attacks/rectangular-shield.png
        type=impact
        range=melee
        defense_weight=2.1
        damage=20
        number=1
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=0
                image="units/human-chaos/hell-guardian.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=0
                image="units/human-chaos/hell-guardian.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-0
            end=100
            image="units/human-chaos/hell-guardian.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=shield
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=0
                image="units/human-chaos/hell-guardian.png"
                sound=mace.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=0
                image="units/human-chaos/hell-guardian.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=100
            image="units/human-chaos/hell-guardian.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Hell Overlord
    name= _ "Overlord"
    image="units/human-chaos/overlord.png"
    profile="portraits/dark-knight.png"
    race=human
    hitpoints=90
    movement_type=smallfoot
    movement=6
    experience=200
    level=4
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    usage=fighter
    undead_variation=mounted
    cost=70
    [resistance]
        fire=90
    [/resistance]
    description= _ "There are very few things able to make Chaos soldiers cower in fear, and even fewer humans who have earned the genuine respect of the demon lords of Inferno. While their subordinates torture and kill for pleasure, the Chaos Overlords hardly ever participate in battle, instead preferring to observe the action from a safe distance. On the exceedingly rare occasions where they do join the fray, they perform in an almost mechanical fashion, mowing down anything that gets in their way without even attempting to dodge enemy fire. It is because of their stoic disposition that many — enemies and allies alike — speculate that they have surrendered their very souls to Uria in exchange for their unnatural strength and resilience.

Suffice it to say, only someone who has somehow drawn the ire of the Chaos Empire would ever find themselves facing a Chaos Overlord on the battle field."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/overlord.png" "units/human-chaos/overlord.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        type=blade
        range=melee
        damage=12
        number=5
        icon=attacks/greatsword-orcish.png
    [/attack]
    [attack]
        name=battle axe
        description={I18N:ATTACK_BATTLE_AXE}
        type=blade
        range=melee
        damage=20
        number=2
        icon=attacks/battleaxe-undead.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=battle axe
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/overlord.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/overlord.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/overlord.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/overlord.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/overlord.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/overlord.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Invader
    name= _ "Chaos Invader"
    image="units/human-chaos/invader.png"
    [movement_anim]
        [frame]
            begin=0
            end=150
            image="units/human-chaos/invader-move.png"
        [/frame]
    [/movement_anim]
    race=human
    hitpoints=36
    movement_type=smallfoot
    movement=5
    experience=39
    [resistance]
        fire=90
    [/resistance]
    level=1
    alignment=chaotic
    advances_to=Dark Knight,Doom Guard
    cost=15
    description= _ "These dark soldiers fight for a cause they mostly ignore, many of them reveling instead in the glory of senseless bloodshed and destruction. But there are those amongst their ranks willing to pay heed to the sermons of the Chaos Magi and place their trust in fallen gods from a long forgotten era."
    usage=fighter
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/invader-defend.png" "units/human-chaos/invader.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        type=blade
        range=melee
        damage=8
        number=3
        icon=attacks/sword-orcish.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/invader-attack1.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/invader-attack1.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=100
            image="units/human-chaos/invader-attack2.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/human-chaos/invader-attack3.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Invoker
    name= _ "Chaos Invoker"
    race=human
    image="units/human-chaos/invoker.png"
    hitpoints=30
    movement_type=smallfoot
    [resistance]
        fire=80
        cold=80
    [/resistance]
    movement=5
    experience=48
    level=1
    alignment=chaotic
    advances_to=Chaos Magus
    cost=19
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    usage=archer
    description= _ "There is much speculation as to the origins of the religious groups that eventually joined to form the Chaos Empire. Amongst scholars, the most popular theory postulates the creation of two separate cults by the same prophet approximately four centuries ago: the cult of Yechnagoth, centered around the western seaboard, and the cult of Chaos, which existed primarily throughout the eastern wastes.

As time went on, the more prolific Chaos Magi’s sphere of influence expanded and absorbed Yechnagoth’s worshipers, reshaping their tenets and giving way to a unified religion worshiping Uria as the goddess who brought the Dark Lady back from the dead.

Low-ranking initiates — colloquially known as “Invokers” by their enemies — lack the sophisticated knowledge that defines their order; they have much yet to learn before they can attain a formal title and be entrusted with the leadership of the demonic hordes. Nonetheless, they are a cornerstone of the Chaos military, always ready to provide their services and proselytize to captives and outsiders with elaborate displays of power."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/invoker-defend.png" "units/human-chaos/invoker.png" {SOUND_LIST:HUMAN_HIT} }
    [leading_anim]
        start_time=-100
        [frame]
            duration=200
            image="units/human-chaos/invoker.png"
        [/frame]
    [/leading_anim]
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/fist-human.png
        type=impact
        range=melee
        damage=2
        number=1
    [/attack]
    [attack]
        name=ethereal blast
        description= _ "ethereal blast"
        icon=attacks/missile-chaos.png
        type=arcane
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/human-chaos/invoker-magic-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-25
                image="units/human-chaos/invoker-melee.png"
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-25
                image="units/human-chaos/invoker-melee.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-25
            end=75
            image="units/human-chaos/invoker-magic-1.png"
        [/frame]
        [frame]
            begin=75
            end=150
            image="units/human-chaos/invoker.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=ethereal blast
        [/filter_attack]
        {MISSILE_FRAME_ETHEREAL_BLAST}
        [frame]
            begin=-450
            end=-420
            image="units/human-chaos/invoker.png"
        [/frame]
        [frame]
            begin=-420
            end=-395
            image="units/human-chaos/invoker-magic-1.png"
        [/frame]
        [frame]
            begin=-395
            end=-320
            image="units/human-chaos/invoker-magic-2.png"
        [/frame]
        [frame]
            begin=-320
            end=-300
            image="units/human-chaos/invoker-magic-3.png"
        [/frame]
        [frame]
            begin=-300
            end=-250
            image="units/human-chaos/invoker-magic-3.png"
            halo=halo/undead/dark-magic-1.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-250
            end=-200
            image="units/human-chaos/invoker-magic-3.png"
            halo=halo/undead/dark-magic-2.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-200
            end=-150
            image="units/human-chaos/invoker-magic-3.png"
            halo=halo/undead/dark-magic-3.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-150
            end=-100
            image="units/human-chaos/invoker-magic-3.png"
            halo=halo/undead/dark-magic-4.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-100
            end=-50
            image="units/human-chaos/invoker-magic-3.png"
            halo=halo/undead/dark-magic-5.png
            halo_x,halo_y=0,-12
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-50
                end=0
                image="units/human-chaos/invoker-magic-3.png"
                halo=halo/undead/dark-magic-6.png
                halo_x,halo_y=0,-12
                sound=magic-dark-miss.ogg
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-50
                end=0
                image="units/human-chaos/invoker-magic-3.png"
                halo=halo/undead/dark-magic-6.png
                halo_x,halo_y=0,-12
                sound=magic-dark.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=50
            image="units/human-chaos/invoker-magic-2.png"
        [/frame]
        [frame]
            begin=50
            end=90
            image="units/human-chaos/invoker-magic-1.png"
        [/frame]
        [frame]
            begin=90
            end=100
            image="units/human-chaos/invoker.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Lorekeeper
    name= _ "Chaos Lorekeeper"
    race=human
    image="units/human-chaos/lorekeeper.png"
    hitpoints=51
    movement_type=smallfoot
    [resistance]
        fire=80
        cold=80
        arcane=110
    [/resistance]
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=80
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    usage=archer
    description= _ "In a world where savage men fight each other over what little water and food they can find, knowledge remains one of the few tools left to bring a semblance of order to their pathetic lives. But humans can only do so much to change the flawed reality in which they dwell, and their chaotic, vicious nature surfaces at every turn. The cultists of Chaos believe that only Uria, Mother of all demons, Goddess of Life and Mistress of the Void, can reshape and improve this decaying world. They dedicate their very souls to doing her bidding and spreading her message to every corner of Irdya.

The dreaded Chaos Lorekeepers govern both the military and their subordinate Magi. They are indisputably regarded as sacred figures akin to demigods by Uria’s and Yechnagoth’s worshippers alike. Their dedication to their craft borders on irrational, and the wars they wage often serve much darker purposes. Those unlucky enough to survive are taken captive, fated to undergo unfathomable horrors in the name of the Lorekeepers’ unending search for knowledge. It is this, more than anything else, that keeps their subjects in line; they are well aware of the consequences should they disobey an order even slightly.

But as unlikely as it might sound, the Lorekeepers are not alone in ruling over the wicked legions of Uria..."
    die_sound={SOUND_LIST:HUMAN_OLD_DIE}
    {DEFENSE_ANIM "units/human-chaos/lorekeeper.png" "units/human-chaos/lorekeeper.png" {SOUND_LIST:HUMAN_OLD_HIT} }
    [leading_anim]
        start_time=-100
        [frame]
            duration=200
            image="units/human-chaos/lorekeeper.png"
        [/frame]
    [/leading_anim]
    [attack]
        name=staff
        description={I18N:ATTACK_STAFF}
        type=impact
        range=melee
        damage=7
        number=2
        icon=attacks/staff-necromantic.png
    [/attack]
    [attack]
        name=infernal chill
        description= _ "infernal chill"
        type=cold
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=13
        number=2
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=ethereal blast
        description= _ "ethereal blast"
        type=arcane
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=9
        number=4
        icon=attacks/missile-chaos.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]

        start_time=-200
        [frame]
            image="units/human-chaos/lorekeeper.png:400"
        [/frame]

        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=ethereal blast
        [/filter_attack]
        [missile_frame]
            begin=-200
            end=50
            image="projectiles/chaosmissile-n.png"
            image_diagonal="projectiles/chaosmissile-ne.png"
            halo=halo/chaos-halo1.png:25,halo/chaos-halo2.png:25,halo/chaos-halo3.png:25,halo/chaos-halo4.png:25,halo/chaos-halo5.png:25,halo/chaos-halo6.png:25,halo/chaos-halo7.png:25,halo/chaos-halo8.png:25,halo/chaos-halo9.png:50
            halo_x,halo_y=10,-2
        [/missile_frame]
        [frame]
            begin=-300
            end=-200
            image="units/human-chaos/lorekeeper.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=100
                image="units/human-chaos/lorekeeper.png"
                sound=magic-missile-1.ogg,magic-missile-2.ogg,magic-missile-3.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=100
                image="units/human-chaos/lorekeeper.png"
                sound=magic-missile-1-miss.ogg,magic-missile-2-miss.ogg,magic-missile-3-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=infernal chill
        [/filter_attack]
        {MISSILE_FRAME_INFERNAL_CHILL}
        [frame]
            begin=-300
            end=-250
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-1.png
        [/frame]
        [frame]
            begin=-250
            end=-190
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-2.png
            sound=magicmissile.wav
        [/frame]
        [frame]
            begin=-190
            end=-120
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-3.png
        [/frame]
        [frame]
            begin=-120
            end=-40
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-4.png
        [/frame]
        [frame]
            begin=-40
            end=50
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-5.png
        [/frame]
        [frame]
            begin=50
            end=150
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-6.png
        [/frame]
        [frame]
            begin=150
            end=250
            image="units/human-chaos/lorekeeper.png"
            halo=halo/saurian-magic-halo-7.png
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Magus
    name= _ "Chaos Magus"
    race=human
    image="units/human-chaos/magus.png"
    hitpoints=42
    movement_type=smallfoot
    [resistance]
        fire=80
        cold=80
        arcane=90
    [/resistance]
    movement=5
    experience=90
    level=2
    alignment=chaotic
    advances_to=Chaos Lorekeeper
    cost=40
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    usage=archer
    description= _ "When not busy sermonising their devout followers, the Chaos Magi put their craft to use supporting the Empire’s troops with fearsome infernal magic. The power they wield comes at a cost, however, as their bodies gradually succumb to a force not meant for humans to control, rendering them more vulnerable to certain forms of magic. Thus, researching new methods to elude death becomes paramount if they are to achieve — or surpass — the greatness of their elders."
    die_sound={SOUND_LIST:HUMAN_OLD_DIE}
    {DEFENSE_ANIM "units/human-chaos/magus.png" "units/human-chaos/magus.png" {SOUND_LIST:HUMAN_OLD_HIT} }
    [leading_anim]
        start_time=-100
        [frame]
            duration=200
            image="units/human-chaos/magus.png"
        [/frame]
    [/leading_anim]
    [attack]
        name=staff
        description={I18N:ATTACK_STAFF}
        type=impact
        range=melee
        damage=6
        number=1
        icon=attacks/staff-necromantic.png
    [/attack]
    [attack]
        name=ethereal blast
        description= _ "ethereal blast"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=7
        number=4
        icon=attacks/missile-chaos.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]

        start_time=-200
        [frame]
            image="units/human-chaos/magus.png:400"
        [/frame]

        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=ethereal blast
        [/filter_attack]
        {MISSILE_FRAME_ETHEREAL_BLAST}
        [frame]
            begin=-300
            end=-200
            image="units/human-chaos/magus.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=100
                image="units/human-chaos/magus.png"
                sound=magic-missile-1.ogg,magic-missile-2.ogg,magic-missile-3.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=100
                image="units/human-chaos/magus.png"
                sound=magic-missile-1-miss.ogg,magic-missile-2-miss.ogg,magic-missile-3-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Longbowman
    name= _ "Chaos Longbowman"
    race=human
    image="units/human-chaos/longbowman.png"
    hitpoints=51
    movement_type=smallfoot
    movement=5
    experience=68
    level=2
    alignment=chaotic
    advances_to=Chaos Heavy Longbowman
    cost=26
    usage=archer
    [defense]
        sand=60
    [/defense]
    description= _ "Even though the Chaos Empire’s soldiers are more adept at fighting hand-to-hand, they also understand the importance of being able to keep their adversaries at bay and take them down before they can retaliate. Chaos Longbowmen carry more powerful weapons than the average archer; the subtle improvements made to their bows and arrowheads enable their projectiles to fly farther and penetrate even thick armor. Making matters worse are the lethal fluids of dubious origin into which the arrows are dipped prior to shooting."
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=bow
        description={I18N:ATTACK_BOW}
        type=pierce
        range=ranged
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]

    {DEFENSE_ANIM_RANGE "units/human-chaos/longbowman.png" "units/human-chaos/longbowman.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-chaos/longbowman.png" "units/human-chaos/longbowman.png" {SOUND_LIST:HUMAN_HIT} ranged}

    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        start_time=-445
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [frame]
            duration=65
            #image="units/human-loyalists/bowman-bow.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=75
            #image="units/human-loyalists/bowman-bow-attack-1.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=75
            #image="units/human-loyalists/bowman-bow-attack-2.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-bow-attack-3.png"
                image="units/human-chaos/longbowman.png"
                sound=bow-miss.ogg
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-bow-attack-3.png"
                image="units/human-chaos/longbowman.png"
                sound=bow.ogg
            [/frame]
        [/else]
        [frame]
            duration=130
            #image="units/human-loyalists/bowman-bow-attack-4.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=65
            #image="units/human-loyalists/bowman-bow-attack-1.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-275
        [frame]
            duration=50
            #image="units/human-loyalists/bowman-melee-defend-1.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-1.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-melee-attack-2.png"
                image="units/human-chaos/longbowman.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-melee-attack-2.png"
                image="units/human-chaos/longbowman.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-3.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-4.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
        [frame]
            duration=50
            #image="units/human-loyalists/bowman-melee-defend-1.png"
            image="units/human-chaos/longbowman.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Heavy Longbowman
    name= _ "Chaos Heavy Longbowman"
    race=human
    image="units/human-chaos/longbowman-heavy.png"
    hitpoints=67
    movement_type=smallfoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=46
    usage=archer
    [defense]
        sand=60
    [/defense]
    description= _ "Reloading and aiming is a time-consuming process and a window of opportunity for assailants to strike down the defenseless archer. The most valued bowmen in the Chaos Empire’s service earn their prestige by attaining an elf-like proficiency with the longbow, shooting more than a dozen arrows a minute without tiring or missing their mark — or so the rumors go, anyway."
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=bow
        description={I18N:ATTACK_BOW}
        type=pierce
        range=ranged
        damage=9
        number=4
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]

    {DEFENSE_ANIM_RANGE "units/human-chaos/longbowman-heavy.png" "units/human-chaos/longbowman-heavy.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-chaos/longbowman-heavy.png" "units/human-chaos/longbowman-heavy.png" {SOUND_LIST:HUMAN_HIT} ranged}

    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        start_time=-445
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [frame]
            duration=65
            #image="units/human-loyalists/bowman-bow.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=75
            #image="units/human-loyalists/bowman-bow-attack-1.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=75
            #image="units/human-loyalists/bowman-bow-attack-2.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-bow-attack-3.png"
                image="units/human-chaos/longbowman-heavy.png"
                sound=bow-miss.ogg
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-bow-attack-3.png"
                image="units/human-chaos/longbowman-heavy.png"
                sound=bow.ogg
            [/frame]
        [/else]
        [frame]
            duration=130
            #image="units/human-loyalists/bowman-bow-attack-4.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=65
            #image="units/human-loyalists/bowman-bow-attack-1.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-275
        [frame]
            duration=50
            #image="units/human-loyalists/bowman-melee-defend-1.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-1.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-melee-attack-2.png"
                image="units/human-chaos/longbowman-heavy.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                #image="units/human-loyalists/bowman-melee-attack-2.png"
                image="units/human-chaos/longbowman-heavy.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-3.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-loyalists/bowman-melee-attack-4.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
        [frame]
            duration=50
            #image="units/human-loyalists/bowman-melee-defend-1.png"
            image="units/human-chaos/longbowman-heavy.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Marauder
    name= _ "Marauder"
    race=human
    image="units/human-chaos/marauder.png"
    hitpoints=38
    movement_type=smallfoot
    movement=7
    experience=70
    level=2
    alignment=chaotic
    [resistance]
        blade=130
        pierce=120
        impact=120
    [/resistance]
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    advances_to=Chaos Soulhunter
    cost=40
    usage=scout
    description= _ "Even barbarian brutes can hone their skills given enough time. Those in the Chaos Empire’s service who manage to survive long enough to do so are given plenty of opportunities to broaden their horizons and brandish better arms against their adversaries."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/marauder.png" "units/human-chaos/marauder.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=club
        description={I18N:ATTACK_CLUB}
        type=impact
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=axe
        description={I18N:ATTACK_AXE}
        type=blade
        icon=attacks/axe-undead.png
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=javelin
        description={I18N:ATTACK_JAVELIN}
        type=pierce
        icon=attacks/javelin-orcish.png
        range=ranged
        damage=7
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/marauder.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/marauder.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=axe
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/marauder.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/marauder.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/marauder.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=club
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/marauder.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/marauder.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/marauder.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Raider
    name= _ "Chaos Raider"
    race=human
    image="units/human-chaos/raider.png"
    hitpoints=38
    movement_type=mounted
    movement=8
    experience=40
    level=1
    alignment=chaotic
    advances_to=Chaos Cavalier
    undead_variation=mounted
    cost=17
    usage=scout
    description= _ "For most desert dwellers, horses and other equines have become an increasingly scarce commodity, to the point that they are used in battle only as a last resort in the direst of situations. This is not the case for the Chaos Empire, however, which somehow maintains a steady supply of horses for their numerous raiding parties. Those unaccustomed to the animals usually flee before them, their impressions not improved by the creatures’ fierce disposition and tendency to trample anything underfoot."
    die_sound=horse-die.ogg
    #     [movement_anim]
    #         [frame]
    #             begin=0
    #             end=150
    #             image="units/human-loyalists/cavalryman-moving.png"
    #         [/frame]
    #     [/movement_anim]
    {DEFENSE_ANIM "units/human-chaos/raider.png" "units/human-chaos/raider.png" {SOUND_LIST:HORSE_HIT} }
    [defense]
        sand=60
    [/defense]
    [resistance]
        blade=70
        impact=60
        cold=80
    [/resistance]
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        icon="attacks/sword-orcish.png"
        type=blade
        range=melee
        damage=6
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-225
        [frame]
            duration=25
            image="units/human-chaos/raider.png"
        [/frame]
        [frame]
            duration=50
            image="units/human-chaos/raider.png"
            sound=horse-canter.wav
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=300
                image="units/human-chaos/raider.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=300
                image="units/human-chaos/raider.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=75
            image="units/human-chaos/raider.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Razerman
    name= _ "Chaos Razerman"
    image="units/human-chaos/razerman.png"
    profile="portraits/dark-knight.png"
    [movement_anim]
        [frame]
            begin=0
            end=150
            image="units/human-chaos/razerman-attack1.png"
        [/frame]
    [/movement_anim]
    race=human
    hitpoints=75
    movement_type=smallfoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    usage=fighter
    [resistance]
        fire=90
    [/resistance]
    cost=42
    description= _ "To become legion commanders in the Chaos army, soldiers must shed what little remains of their humanity and thoroughly embrace the bloodshed, becoming relentless killing machines. But these demon-like creatures rarely content themselves with simply murdering every living thing in their way. Instead, they take great delight in inflicting as much pain as possible on their hapless victims, with methods such as flaying and mutilation comprising only a small part of their repertoire. Their sadism is rivaled only by that of the Chaos Lorekeepers, and the Mother of Inferno herself."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/razerman-defend.png" "units/human-chaos/razerman.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        type=blade
        range=melee
        damage=12
        number=4
        icon=attacks/greatsword-orcish.png
    [/attack]
    [attack]
        name=axe
        description={I18N:ATTACK_AXE}
        type=blade
        range=melee
        damage=18
        number=2
        icon=attacks/axe-undead.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=axe
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/razerman-axe1.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/razerman-axe1.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/razerman-axe2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/razerman-attack1.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/razerman-attack1.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=100
            image="units/human-chaos/razerman-attack2.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/human-chaos/razerman-attack3.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Chaos Soulhunter
    name= _ "Soulhunter"
    race=human
    image="units/human-chaos/soulhunter.png"
    hitpoints=46
    movement_type=smallfoot
    movement=7
    experience=150
    level=3
    alignment=chaotic
    [resistance]
        blade=130
        pierce=120
        impact=120
    [/resistance]
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    advances_to=null
    {AMLA_DEFAULT}
    cost=100
    usage=scout
    description= _ "Most human civilizations throughout history have held the dead in great respect regardless of their origin and allegiance. Once society crumbled after the Fall, however, it became relatively increasingly common for humans to desecrate the bodies of their deceased for purposes ranging from the practical to the obscene.

Higher-ranking Chaos brutes flaunt their strength and experience by daubing the blood of their fallen enemies on their visages and torsos, and wearing their bones as necklaces, face masks, and other ornamental gear. Dubbed “Soulhunters” by their equally amoral peers, they relish the thrill of battle and are more than willing to put their lives on the line in the hope that, some day, Uria will reward them with unending life and godlike strength to rule over all on Irdya."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-chaos/soulhunter.png" "units/human-chaos/soulhunter.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=club
        description={I18N:ATTACK_CLUB}
        type=impact
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=battle-axe
        description={I18N:ATTACK_BATTLE_AXE}
        icon=attacks/battleaxe-undead.png
        type=blade
        range=melee
        damage=12
        number=2
    [/attack]
    [attack]
        name=javelin
        description={I18N:ATTACK_JAVELIN}
        type=pierce
        range=ranged
        damage=9
        number=3
        icon=attacks/javelin-orcish.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/soulhunter.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=200
                image="units/human-chaos/soulhunter.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=battle-axe
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/soulhunter.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/soulhunter.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/soulhunter.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=club
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/soulhunter.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-chaos/soulhunter.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-chaos/soulhunter.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Armageddon Imp
    name= _ "Armageddon Imp"
    race=imps
    image="units/imps/imp-armageddon.png"
    hitpoints=79
    movement_type=demonfoot
    movement=5
    experience=200
    level=4
    {AMLA_DEFAULT}
    alignment=chaotic
    advances_to=null
    cost=110
    usage=fighter
    description= _ "Although most would find the notion preposterous, the truth is that imps larger than the biggest of trolls do exist. These behemoths rarely make an appearance on the battle field, but when they do, they announce themselves with roars able to shake mountains, and stomps that fracture and sink down the ground beneath. One has to wonder exactly how the Chaos Overlords — comically puny by comparison — manage to rein in these titans and have them do their bidding without using any kind of mind-control magic."
    die_sound={SOUND_LIST:IMP_DIE}
    [resistance]
        blade=80
        impact=80
        fire=70
    [/resistance]
    {DEFENSE_ANIM "units/imps/imp-armageddon.png" "units/imps/imp-armageddon.png" {SOUND_LIST:IMP_HIT} }
    [attack]
        name=blade of doom
        description=_"blade of doom"
        icon=attacks/baneblade.png
        type=blade
        range=melee
        damage=11
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=slime
        description=_"slime spit"
        icon=attacks/slime-thrown.png
        type=pierce
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=blade of doom
        [/filter_attack]
        start_time=-225
        [frame]
            duration=125
            image="units/imps/imp-armageddon.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/imps/imp-armageddon.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/imps/imp-armageddon.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/imps/imp-armageddon.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=slime
        [/filter_attack]
        start_time=-180
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/slime-glob.png"
            image_diagonal="projectiles/slime-glob.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                duration=80
                image="units/imps/imp-armageddon.png"
                sound=ink.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=80
                image="units/imps/imp-armageddon.png"
                sound=ink-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/imps/imp-armageddon.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Blood Imp
    name= _ "Blood Imp"
    race=imps
    image="units/imps/imp-blood.png"
    hitpoints=44
    movement_type=demonfoot
    movement=5
    experience=70
    level=2
    alignment=chaotic
    advances_to=Gutwrencher Imp
    cost=30
    usage=fighter
    description= _ "Most imps do not enjoy a particularly long lifespan, in no small part due to their demon overlords being all too prone to regarding them as disposable canon fodder. It is no small feat for an imp to survive past childhood, and those who do become a much more credible threat to Irdyan creatures."
    die_sound={SOUND_LIST:IMP_DIE}
    [resistance]
        fire=90
    [/resistance]
    {DEFENSE_ANIM "units/imps/imp-blood.png" "units/imps/imp-blood.png" {SOUND_LIST:IMP_HIT} }
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-undead.png
        type=blade
        range=melee
        damage=6
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-125
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/imps/imp-blood.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/imps/imp-blood.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/imps/imp-blood.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Gutwrencher Imp
    name= _ "Gutwrencher Imp"
    race=imps
    image="units/imps/imp-gutwrencher.png"
    hitpoints=58
    movement_type=demonfoot
    movement=5
    experience=220
    level=3
    alignment=chaotic
    advances_to=Armageddon Imp
    cost=57
    usage=fighter
    description= _ "Adult imps come in many forms and sizes, betraying the fact that they are neither related to the better-known demon warriors, nor belonging to a single species of their own. They are much stronger and sharper of mind than it is generally expected of their kind, to the point that it is not unheard of for them to lead some of their demon cousins in battle.

‘Gutwrenchers’ are renowned for their great appetite, and their razor-sharp claws which allow them to swiftly tear their prey to bits. For any hapless creature targeted by one of these monsters there is little hope — even if they somehow manage to extricate themselves from the imp’s crushing grip, odds are their flesh is already melting away thanks to the imp’s corrosive saliva."
    die_sound={SOUND_LIST:IMP_DIE}
    [resistance]
        blade=90
        fire=80
    [/resistance]
    {DEFENSE_ANIM "units/imps/imp-gutwrencher.png" "units/imps/imp-gutwrencher.png" {SOUND_LIST:IMP_HIT} }
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-undead.png
        type=blade
        range=melee
        damage=9
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=slime
        description=_"slime spit"
        icon=attacks/slime-thrown.png
        type=pierce
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-125
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/imps/imp-gutwrencher.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/imps/imp-gutwrencher.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/imps/imp-gutwrencher.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=slime
        [/filter_attack]
        start_time=-180
        {MISSILE_FRAME_SLIME}
        [if]
            hits=yes
            [frame]
                duration=80
                image="units/imps/imp-gutwrencher.png"
                sound=ink.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=80
                image="units/imps/imp-gutwrencher.png"
                sound=ink-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/imps/imp-gutwrencher.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Imp
    name= _ "Imp"
    race=imps
    image="units/imps/imp.png"
    hitpoints=31
    movement_type=impfoot
    movement=5
    experience=50
    level=1
    alignment=chaotic
    advances_to=Blood Imp
    cost=18
    usage=fighter
    description= _ "Frequently — and incorrectly — considered a lesser class of creatures separate from the fearsome demons, Imps are often underestimated due to their smaller builds and evident lack of of mental prowess. Furthering this misconception, Demon leaders often dispatch them in large numbers as cheap cannon-fodder."
    die_sound={SOUND_LIST:IMP_DIE}
    {DEFENSE_ANIM "units/imps/imp.png" "units/imps/imp.png" {SOUND_LIST:IMP_HIT} }
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-undead.png
        type=blade
        range=melee
        damage=5
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-125
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/imps/imp.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/imps/imp.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/imps/imp.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Minor Imp
    name= _ "Minor Imp"
    race=imps
    image="units/imps/imp-minor.png"
    hitpoints=19
    movement_type=impfoot
    movement=5
    experience=35
    level=0
    alignment=chaotic
    advances_to=Imp
    cost=6
    usage=fighter
    description= _ "Imp whelps are extremely small and frail, and pose no threat whatsoever to any properly-trained soldier. However, coming across a swarm of these creatures spells trouble regardless, as they almost never stray too far away from their progenitors."
    die_sound={SOUND_LIST:IMP_DIE}
    [resistance]
        impact=120
    [/resistance]
    {DEFENSE_ANIM "units/imps/imp-minor.png" "units/imps/imp-minor.png" {SOUND_LIST:IMP_HIT} }
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-undead.png
        type=blade
        range=melee
        damage=4
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-125
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/imps/imp-minor.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/imps/imp-minor.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/imps/imp-minor.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Automaton
    name= _ "Automaton"
    race=mechanical
    image="units/mechanical/automaton.png"
    hitpoints=38
    movement_type=armoredfoot
    movement=5
    experience=50
    level=1
    alignment=neutral
    advances_to=Iron Golem
    cost=18
    usage=fighter
    [resistance]
        arcane=50
        cold=70
        fire=80
    [/resistance]
    [movement_costs]
        mountains=4
        hills=3
        sand=1
        frozen=4
        deep_water=4
        shallow_water=3
        reef=2
        swamp_water=3
    [/movement_costs]
    description= _ "These small metallic beings seem not to require food or water to fight, very much like the undead. Heavily armored and wielding a steel mace and rectangular shield, these ‘automatons’ are said to have been originally created by the dwarves before a clan was captured by the forces of Chaos. Their primary drawback is their apparent unease when navigating rough terrains such as hills and mountains."
    die_sound={SOUND_LIST:BOT_SMALL_DIE}
    {DEFENSE_ANIM "units/mechanical/automaton.png" "units/mechanical/automaton.png" {SOUND_LIST:BOT_SMALL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=morning star
        description={I18N:ATTACK_MORNING_STAR}
        icon="attacks/mace-spiked.png"
        type=impact
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=rectangular-shield
        description= _ "rectangular shield"
        icon=attacks/rectangular-shield.png
        type=impact
        range=melee
        damage=6
        number=2
        [specials]
            {WEAPON_SPECIAL_DEFEND_ONLY}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=morning star
        [/filter_attack]
        start_time=-260
        [if]
            hits=yes
            [frame]
                duration=85
                image="units/mechanical/automaton.png"
                sound=flail.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=85
                image="units/mechanical/automaton.png"
                sound=flail-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=175
            image="units/mechanical/automaton.png"
        [/frame]
        [frame]
            duration=200
            image="units/mechanical/automaton.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=rectangular-shield
        [/filter_attack]
        start_time=-50
        [if]
            hits=no
            [frame]
                duration=100
                sound={SOUND_LIST:MISS}
                image="units/mechanical/automaton.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                sound=mace.wav
                image="units/mechanical/automaton.png"
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Door
    name= _ "Door"
    race=mechanical
    image="misc/blank-hex.png"
    image_icon="terrain/dark-gate-se.png"
    ellipse=none
    hitpoints=8
    movement_type=none
    movement=1
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    hide_help=true
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    description= _ "The door will open only to those who are allied with its owners, unless struck down by their enemies first."
    {DEFENSE_ANIM "misc/blank-hex.png" "misc/blank-hex.png" gate.ogg}
    die_sound=gate-fall.ogg
    [death]
        start_time=0
        [frame]
            duration,image=0,"misc/blank-hex.png"
        [/frame]
    [/death]

    #
    # Core Gate terrains
    #
    [event]
        id=naia_door_handler_1
        name=last breath
        first_time_only=no
        [filter]
            type=Door
            [filter_location]
                terrain="*^P*/,*^P*\,*^P*|"
            [/filter_location]
        [/filter]

        [lua]
            [args]
                x,y=$x1,$y1
            [/args]

            code=<<
                local loc = ...
                local newtile = wesnoth.get_terrain(loc.x, loc.y) .. "o"
                wesnoth.set_terrain(loc.x, loc.y, newtile, "overlay")
            >>
        [/lua]

        [redraw]
            side=1
        [/redraw]
    [/event]

    #
    # Legacy IftU/AtS Gate terrain
    #
    [event]
        id=naia_door_handler_2
        name=last breath
        first_time_only=no
        [filter]
            type=Door
            [filter_location]
                terrain="*^Z/,*^Z\"
            [/filter_location]
        [/filter]

        [remove_terrain_overlays]
            x,y=$x1,$y1
        [/remove_terrain_overlays]

        [redraw]
            side=1
        [/redraw]
    [/event]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Goliath
    name= _ "Mechanical Goliath"
    race=mechanical
    image="units/mechanical/goliath.png"
    hitpoints=61
    movement_type=armoredfoot
    movement=5
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=67
    usage=fighter
    [resistance]
        arcane=50
        cold=70
        fire=60
    [/resistance]
    [movement_costs]
        mountains=3
        hills=2
        sand=1
        frozen=2
        deep_water=3
        shallow_water=2
        reef=2
        swamp_water=2
    [/movement_costs]
    description= _ "Giant metallic beasts under the command of the forces of Chaos, the Mechanical Goliaths can crush in a matter of seconds any man, skeleton, or even troll. They seem immune to poison, drain, and other hazards that would normally pose a great danger for a living being. Because of this, it’s been suggested that they are magically animated constructions of rock and steel.

To make things even worse, it is said that they can destroy entire armies from a distance with a sudden flash of red light, in an attack that is both powerful and accurate."
    die_sound=bot-huge-explosion.ogg
    {DEFENSE_ANIM "units/mechanical/goliath.png" "units/mechanical/goliath.png" {SOUND_LIST:DRAKE_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/fist-troll.png
        type=impact
        range=melee
        damage=14
        number=2
    [/attack]
    [attack]
        name=flash cannon
        description= _ "flash cannon"
        type=impact
        range=ranged
        damage=19
        number=1
        icon=attacks/flash-cannon.png
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]

    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image="units/mechanical/goliath.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=250
                image="units/mechanical/goliath-melee.png"
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=250
                image="units/mechanical/goliath-melee.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/mechanical/goliath.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=flash cannon
        [/filter_attack]
        start_time=-900

        {MISSILE_FRAME_TORPEDO}

        [frame]
            duration=300
            image="units/mechanical/goliath.png"
            sound=gun-energy-huge-fire-prelude.ogg
        [/frame]
        [frame]
            duration=200
            image="units/mechanical/goliath.png"
            sound=gun-activate-1.ogg,gun-activate-2.ogg
        [/frame]
        [frame]
            duration=250
            image="units/mechanical/goliath-melee.png"
        [/frame]

        torpedo_blast_start_time=-1
        torpedo_blast_offset=1.0
        torpedo_blast_auto_vflip=no
        [torpedo_blast_frame]
            duration=1
        [/torpedo_blast_frame]
        [if]
            hits=yes
            [frame]
                duration=150
                offset=0.0~-0.2:50,-0.2~0.0:100
                image="units/mechanical/goliath.png"
                sound=gun-energy-huge-fire.ogg
            [/frame]
            [torpedo_blast_frame]
                duration=540
                halo="projectiles/fireball-impact-7.png:60,projectiles/fireball-impact-8.png:60,projectiles/fireball-impact-9.png:60,projectiles/fireball-impact-10.png:60,projectiles/fireball-impact-11.png:60,projectiles/fireball-impact-12.png:60,projectiles/fireball-impact-13.png:60,projectiles/fireball-impact-14.png:60,projectiles/fireball-impact-15.png:60,projectiles/fireball-impact-16.png:60"
            [/torpedo_blast_frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=150
                offset=0.0
                image="units/mechanical/goliath.png"
            [/frame]
            [torpedo_blast_frame]
                duration=540
                halo="misc/blank-hex.png"
            [/torpedo_blast_frame]
        [/else]
        [torpedo_blast_frame]
            duration=1
        [/torpedo_blast_frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-Naia

[unit_type]
    id=Iron Golem
    name= _ "Iron Golem"
    race=mechanical
    image="units/mechanical/golem-iron.png"
    hitpoints=48
    movement_type=armoredfoot
    movement=5
    experience=70
    level=2
    alignment=neutral
    advances_to=Goliath
    cost=30
    usage=fighter
    [resistance]
        arcane=50
        cold=70
        fire=70
    [/resistance]
    [movement_costs]
        mountains=3
        hills=2
        sand=1
        frozen=2
        deep_water=3
        shallow_water=2
        reef=2
        swamp_water=2
    [/movement_costs]
    description= _ "Some automatons mysteriously grow in size overnight, gaining greater strength and taller bodies in a process that is unknown to anyone but the less commonly seen Lorekeepers of Chaos. They drop their shield and mace in favor of harder and stronger armor, and fists that can crush the rock with minimal effort — compensating for the lack of close range weapons.

Less commonly, they may fire a powerful weapon that is said to resemble the great firesticks of the dwarven lords in both shape and destructive effect. "
    die_sound=bot-huge-explosion.ogg
    {DEFENSE_ANIM "units/mechanical/golem-iron.png" "units/mechanical/golem-iron.png" {SOUND_LIST:DRAKE_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/fist-troll.png
        type=impact
        range=melee
        damage=11
        number=2
    [/attack]
    [attack]
        name=flash cannon
        description= _ "flash cannon"
        type=impact
        range=ranged
        damage=13
        number=1
        icon=attacks/flash-cannon.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image="units/mechanical/golem-iron.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=250
                image="units/mechanical/golem-iron.png"
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=250
                image="units/mechanical/golem-iron.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/mechanical/golem-iron.png"
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=flash cannon
        [/filter_attack]
        start_time=-900

        {MISSILE_FRAME_TORPEDO}

        [frame]
            duration=300
            image="units/mechanical/golem-iron.png"
            sound=gun-energy-huge-fire-prelude.ogg
        [/frame]
        [frame]
            duration=200
            image="units/mechanical/golem-iron.png"
            sound=gun-activate-1.ogg,gun-activate-2.ogg
        [/frame]
        [frame]
            duration=250
            image="units/mechanical/golem-iron.png"
        [/frame]

        torpedo_blast_start_time=-1
        torpedo_blast_offset=1.0
        torpedo_blast_auto_vflip=no
        [torpedo_blast_frame]
            duration=1
        [/torpedo_blast_frame]
        [if]
            hits=yes
            [frame]
                duration=150
                offset=0.0~-0.2:50,-0.2~0.0:100
                image="units/mechanical/golem-iron.png"
                sound=gun-energy-huge-fire.ogg
            [/frame]
            [torpedo_blast_frame]
                duration=540
                halo="projectiles/fireball-impact-7.png:60,projectiles/fireball-impact-8.png:60,projectiles/fireball-impact-9.png:60,projectiles/fireball-impact-10.png:60,projectiles/fireball-impact-11.png:60,projectiles/fireball-impact-12.png:60,projectiles/fireball-impact-13.png:60,projectiles/fireball-impact-14.png:60,projectiles/fireball-impact-15.png:60,projectiles/fireball-impact-16.png:60"
            [/torpedo_blast_frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=150
                offset=0.0
                image="units/mechanical/golem-iron.png"
            [/frame]
            [torpedo_blast_frame]
                duration=540
                halo="misc/blank-hex.png"
            [/torpedo_blast_frame]
        [/else]
        [torpedo_blast_frame]
            duration=1
        [/torpedo_blast_frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-Naia

[unit_type]
    id=Worker Droid
    name= _ "Worker Droid"
    race=mechanical
    image="units/mechanical/worker.png"
    hitpoints=20
    movement_type=armoredfoot
    movement=5
    # As if these weaklings would EVER get this much XP amount in a natural manner
    experience=25
    level=0
    alignment=neutral
    advances_to=Automaton
    cost=5
    usage=fighter
    [resistance]
        arcane=50
        cold=70
    [/resistance]
    [movement_costs]
        mountains=4
        hills=3
        sand=1
        frozen=4
        deep_water=4
        shallow_water=4
        reef=3
        swamp_water=4
    [/movement_costs]
    # FIXME: I'm too lazy right now to make up something better for a description.
    description= _ "These tiny metal gnomes are known as the ‘worker droids’ by the Chaos overlords. It is not known what nature drives their acts; in fact, nobody knows, aside from their creators, if they are living beings, undead, or animated rocks."
    die_sound={SOUND_LIST:BOT_SMALL_DIE}
    {DEFENSE_ANIM "units/mechanical/worker.png" "units/mechanical/worker.png" {SOUND_LIST:BOT_SMALL_HIT} }
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=oil
        description=_"oil"
        icon=attacks/slime-thrown.png
        type=impact
        range=ranged
        damage=3
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=oil
        [/filter_attack]
        start_time=-180
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/slime-glob.png"
            image_diagonal="projectiles/slime-glob.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                duration=280
                image="units/mechanical/worker.png"
                sound=squishy-strike.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=280
                image="units/mechanical/worker.png"
                sound=squishy-miss.wav
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Abomination
    name= _ "Abomination"
    race=monster
    image="units/monsters/abomination.png"
    hitpoints=35
    movement_type=gruefoot
    movement=4
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=34
    usage=fighter
    undead_variation=troll
    description= _ "The origin of these hideous creatures is uncertain. Some speculate that they might be humans, orcs, dwarves or trolls that were somehow changed into their current aspect. Others claim that they are failed attempts at breeding a new race of demon soldiers by the Chaos forces.

However they came into existence, they appear to be highly sensitive to light and avoid leaving the safety of their dark caverns."
    die_sound={SOUND_LIST:TROLL_DIE}
    {DEFENSE_ANIM "units/monsters/abomination.png" "units/monsters/abomination.png" {SOUND_LIST:TROLL_HIT} }
    [attack]
        name=crush
        description={I18N:ATTACK_CRUSH}
        type=impact
        range=melee
        damage=11
        number=2
        icon=attacks/fist-troll.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=crush
        [/filter_attack]
        start_time=-150
        [if]
            hits=yes
            [frame]
                duration=150
                image="units/monsters/abomination.png"
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=150
                image="units/monsters/abomination.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=200
            image="units/monsters/abomination.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Fire Wisp
    name= _ "Fire Wisp"
    race=monster
    {TRAIT_ELEMENTAL}
    image="units/monsters/firewisp.png"
    {DEFENSE_ANIM "units/monsters/firewisp-defend.png" "units/monsters/firewisp.png" {SOUND_LIST:DRAKE_HIT} }
    hitpoints=11
    movement_type=fireafinity
    movement=6
    experience=40
    level=0
    alignment=neutral
    advances_to=Fire Guardian
    cost=12
    usage=mixed fighter
    description= _ "Fire Wisps are minor spirits of flame. They like to frolic in pools of lava, and take great delight in burning anything they can reach. They should not be a great challenge to unexperienced fighters, except when found in swarms."
    die_sound=drake-die.ogg
    [attack]
        name=fire bash
        description= _ "fire bash"
        type=fire
        icon=attacks/fireball.png
        range=melee
        damage=4
        number=3
    [/attack]
    [attack]
        name=fire breath
        description={I18N:ATTACK_FIRE_BREATH}
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=4
        number=2
    [/attack]
    [death]
        start_time=0
        [frame]
            duration=50
            image=units/monsters/firewisp.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/firewisp-death1.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/firewisp-death2.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/firewisp-death3.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/firewisp-death4.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/firewisp-death5.png
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=fire bash
        [/filter_attack]
        start_time=-200
        [frame]
            duration=100
            image=units/monsters/firewisp-ranged1.png
        [/frame]
        [frame]
            duration=150
            image=units/monsters/firewisp-attack.png
            sound=fire.wav
        [/frame]
        [frame]
            duration=50
            image=units/monsters/firewisp-ranged1.png
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fire breath
        [/filter_attack]
        start_time=-500
        {MISSILE_FRAME_FIRE_BREATH 11,-34 11,15 24,-22 26,10}
        [frame]
            duration=100
            image=units/monsters/firewisp-ranged1.png
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=50
                image=units/monsters/firewisp-ranged2.png
                sound=flame-big.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=50
                image=units/monsters/firewisp-ranged2.png
                sound=flame-big-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=200
            image=units/monsters/firewisp-ranged1.png
        [/frame]
        [frame]
            duration=150
            image=units/monsters/firewisp.png
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Fungoid
    name= _ "Fungoid"
    race=monster
    image="units/monsters/fungoid.png"
    hitpoints=24
    movement_type=treefolk
    movement=4
    [movement_costs]
        fungus=1
        cave=2
    [/movement_costs]
    [defense]
        fungus=60
        cave=60
    [/defense]
    experience=25
    {AMLA_DEFAULT}
    level=0
    alignment=chaotic
    advances_to=null
    # experience=80
    # advances_to=Giant Mushroom
    cost=4
    usage=fighter
    undead_variation=null
    # wmllint: local spelling fungoids
    description= _ "Fungoids are mushroom-like creatures that can multiply very quickly. Their soft bodies and delicious taste once seasoned make them a prime target for inexperienced adventurers."
    die_sound=squishy-hit.wav,wose-hit.ogg
    {DEFENSE_ANIM "units/monsters/fungoid.png" "units/monsters/fungoid.png" "squishy-hit.wav,wose-hit.ogg" }
    [attack]
        name=crush
        description={I18N:ATTACK_CRUSH}
        icon=attacks/crush-wose.png
        type=impact
        range=melee
        damage=4
        number=2
    [/attack]
    [attack]
        name=tentacle
        description={I18N:ATTACK_TENTACLE}
        type=pierce
        range=melee
        damage=4
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=crush
        [/filter_attack]
        start_time=-500
        [if]
            hits=yes
            [frame]
                duration=400
                image="units/monsters/fungoid.png"
                sound=wose-attack.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=400
                image="units/monsters/fungoid.png"
                sound=wose-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/monsters/fungoid.png"
        [/frame]
        [frame]
            duration=75
            image="units/monsters/fungoid.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        start_time=-225
        [frame]
            duration=75
            image="units/monsters/fungoid.png"
        [/frame]
        [frame]
            duration=75
            image="units/monsters/fungoid.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/monsters/fungoid.png"
                sound=squishy-hit.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/monsters/fungoid.png"
                sound=squishy-miss.wav
            [/frame]
        [/else]
        [frame]
            duration=75
            image="units/monsters/fungoid.png"
        [/frame]
        [frame]
            duration=50
            image="units/monsters/fungoid.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Lesser Giant Spider
    name= _ "Lesser Giant Spider"
    race=monster
    image="units/monsters/giant-spider-lesser.png"
    hitpoints=39
    movement_type=mountainfoot
    movement=6
    experience=130
    level=2
    alignment=chaotic
    advances_to=Giant Spider
    cost=38
    usage=fighter
    undead_variation=null
    description= _ "Smaller and weaker Giant Spiders are very common underground. They usually prey on single insects roaming around, but sometimes it is possible to find dwarven or human corpses trapped in their webs, which suggests they have little problem in eating big individuals fool enough to fall in their traps."
    die_sound=hiss-die.wav
    {DEFENSE_ANIM "units/monsters/giant-spider-lesser.png" "units/monsters/giant-spider-lesser.png" {SOUND_LIST:BAT_HIT} }
    [attack]
        name=fangs
        description={I18N:ATTACK_FANGS}
        icon=attacks/fangs-spider.png
        type=blade
        range=melee
        damage=12
        number=2
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack]
        name=web
        description={I18N:ATTACK_WEB}
        type=impact
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-225
            end=-175
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=-50
                image="units/monsters/giant-spider-lesser.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=-50
                image="units/monsters/giant-spider-lesser.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
        [frame]
            begin=100
            end=175
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=web
        [/filter_attack]
        [missile_frame]
            begin=-200
            end=0
            image="projectiles/web.png"
            image_diagonal="projectiles/web.png"
        [/missile_frame]
        [frame]
            begin=-200
            end=-150
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=-75
                image="units/monsters/giant-spider-lesser.png"
                sound=net.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=-75
                image="units/monsters/giant-spider-lesser.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=-75
            end=100
            image="units/monsters/giant-spider-lesser.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Leech
    name= _ "Leech"
    race=monster
    image="units/monsters/leech.png"
    hitpoints=42
    movement_type=smallfoot
    [movement_costs]
        deep_water={UNREACHABLE}
        shallow_water={UNREACHABLE}
        reef={UNREACHABLE}
        swamp_water={UNREACHABLE}
        flat={UNREACHABLE}
        sand={UNREACHABLE}
        forest={UNREACHABLE}
        hills={UNREACHABLE}
        mountains={UNREACHABLE}
        village={UNREACHABLE}
        castle={UNREACHABLE}
        cave={UNREACHABLE}
        frozen={UNREACHABLE}
        unwalkable={UNREACHABLE}
        impassable={UNREACHABLE}
        fungus={UNREACHABLE}
    [/movement_costs]
    [resistance]
        blade=120
        pierce=90
        impact=90
        fire=120
        cold=100
        arcane=110
    [/resistance]
    movement=1
    experience=50
    level=1
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=70
    usage=mixed fighter
    undead_variation=null
    description= _ "Leeches are universally known for their common diet, the warm blood of various bigger creatures. However, this is exactly why they are often used for medicinal purposes.

Although not directly related, the same name is applied to groups of strange worms attached to the ground, found under caves, who are not a great danger as they cannot move around to search for prey. Instead, they await unwary victims who get close enough for them to be able to trap them in their deadly tentacles and then swallow their blood, which increases their strength and heals their wounds.

It is fortunate that they have not developed legs; otherwise, they would be an almost unstoppable menace to explorers and dwellers of the caves they inhabit."
    die_sound=squishy-hit.wav
    {DEFENSE_ANIM "units/monsters/leech.png" "units/monsters/leech.png" squishy-hit.wav }
    [abilities]
        {ABILITY_REGENERATES}
        {ABILITY_FEEDING}
    [/abilities]
    [attack]
        name=drainer
        icon=attacks/fangs.png
        description= _ "drainer"
        type=pierce
        range=melee
        damage=9
        number=2
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=drainer
        [/filter_attack]
        start_time=-100
        [if]
            hits=yes
            [frame]
                duration=200
                image="units/monsters/leech.png"
                sound=squishy-strike.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/monsters/leech.png"
                sound=squishy-miss.wav
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Animated Rock
    name= _ "Animated Rock"
    race=monster
    {TRAIT_ELEMENTAL}
    image="units/monsters/animated-rock.png"
    hitpoints=26
    movement_type=rockafinity
    movement=5
    experience=40
    level=0
    alignment=neutral
    advances_to=Rock Golem
    cost=8
    usage=fighter
    description= _ "Animated Rocks are rather slow creatures made out of solid, living rock. They have a weak attack, but are incredibly hard to destroy. It is rumored that these magical constructs can only be summoned by powerful magi."
    die_sound=drake-die.ogg
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/fist-troll.png
        type=impact
        range=melee
        damage=5
        number=3
    [/attack]
    {DEFENSE_ANIM "units/monsters/animated-rock-defend.png" "units/monsters/animated-rock.png" {SOUND_LIST:DRAKE_HIT} }
    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image=units/monsters/animated-rock.png
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=250
                image=units/monsters/animated-rock-attack.png
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=250
                image=units/monsters/animated-rock-attack.png
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image=units/monsters/animated-rock.png
        [/frame]
    [/attack_anim]
    [death]
        start_time=0
        [frame]
            duration=50
            image=units/monsters/animated-rock.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/animated-rock-die1.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/animated-rock-die2.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/animated-rock-die3.png
        [/frame]
    [/death]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Rock Golem
    name= _ "Rock Golem"
    race=monster
    {TRAIT_ELEMENTAL}
    image="units/monsters/rock-golem.png"
    hitpoints=44
    movement_type=rockafinity
    movement=4
    experience=50
    level=1
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=19
    usage=fighter
    description= _ "Rock Golems are giant, slow, and heavy creatures made out of solid, living rock. Their fists can crush any skeleton in matter of seconds."
    die_sound=drake-die.ogg
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/fist-troll.png
        type=impact
        range=melee
        damage=8
        number=3
    [/attack]
    {DEFENSE_ANIM "units/monsters/rock-golem-defend.png" "units/monsters/rock-golem.png" {SOUND_LIST:DRAKE_HIT} }
    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image=units/monsters/rock-golem.png
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=150
                image=units/monsters/rock-golem-attack.png
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=150
                image=units/monsters/rock-golem-attack.png
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image=units/monsters/rock-golem.png
        [/frame]
    [/attack_anim]
    [death]
        start_time=0
        [frame]
            duration=50
            image=units/monsters/rock-golem.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/rock-golem-die-1.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/rock-golem-die-2.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/rock-golem-die-3.png
        [/frame]
    [/death]
[/unit_type]


#textdomain wesnoth-Naia

[unit_type]
    id=Water Spirit
    name= _ "female^Water Spirit"
    gender=female
    race=monster
    {TRAIT_ELEMENTAL}
    image="units/monsters/water.png"
    {DEFENSE_ANIM "units/monsters/water.png" "units/monsters/water.png" mermaid-hit.ogg }
    hitpoints=24
    movement_type=waterdependency
    movement=7
    experience=50
    level=1
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=23
    usage=mixed fighter
    description= _ "Tidal waves of water have been known to acquire their own consciousness and mind and break free of their summoners’ influence. The result is a more corporeal water being, embodying the might and whim of the water and its denizens."
    die_sound=mermaid-die.ogg
    [attack]
        name=water punch
        description=_"water punch"
        icon=attacks/waterspray.png
        type=impact
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=water spray
        description={I18N:ATTACK_WATER_SPRAY}
        icon=attacks/waterspray.png
        type=impact
        range=ranged
        damage=7
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=water punch
        [/filter_attack]
        start_time=-100
        [frame]
            duration=200
            image="units/monsters/water.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
            iimage="units/monsters/water.png"
        [/frame]
        [frame]
            duration=160
            image="units/monsters/water.png"
            sound=water-blast.wav
        [/frame]
    [/attack_anim]
[/unit_type]