#textdomain wesnoth-units
[unit_type]
    #macro to define most of the non-graphical part of Walking Corpse
#define UNIT_BODY_SOULLESS_STATS MOVETYPE_ID MOVES_NUMBER HP_AMOUNT
    id=Soulless
    name= _ "Soulless"
    race=undead
    ellipse="misc/ellipse"
    {TRAIT_FEARLESS_MUSTHAVE}
    hitpoints={HP_AMOUNT}
    movement_type={MOVETYPE_ID}
    movement={MOVES_NUMBER}
    experience=150
    level=1
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=13
    usage=fighter
    description= _ "The technique of animating a dead body is unfortunately well-known in the dark arts; practitioners often use it to raise servants and soldiers from unwilling corpses. These shamblers are often numerous, but fragile; a touch of combat can waken them, though, making them far more formidable."+{SPECIAL_NOTES}+{SPECIAL_NOTES_PLAGUE}
    [resistance]
        arcane=140
    [/resistance]
    [attack]
        name=touch
        description=_"touch"
        icon=attacks/touch-zombie.png
        type=impact
        range=melee
        damage=7
        number=3
        [specials]
            {WEAPON_SPECIAL_PLAGUE}
        [/specials]
    [/attack]
#enddef
    #macro to define most of the graphical part of Walking Corpse
#define UNIT_BODY_SOULLESS_GRAPHICS_NO_DEATH_ANIM BASE_NAME
    image="units/undead/{BASE_NAME}.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    die_sound={SOUND_LIST:ZOMBIE_HIT}
    {DEFENSE_ANIM "units/undead/{BASE_NAME}-defend.png" "units/undead/{BASE_NAME}.png" {SOUND_LIST:ZOMBIE_HIT} }
    [death]
        start_time=0
        [frame]
            duration=150
            image="units/undead/soulless-die-4.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-5.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-6.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-7.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-8.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-9.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-10.png"
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=s
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack-s.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=n
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack-n.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=se,sw,ne,nw
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
#enddef
#define UNIT_BODY_SOULLESS_GRAPHICS BASE_NAME
    image="units/undead/{BASE_NAME}.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    die_sound={SOUND_LIST:ZOMBIE_HIT}
    {DEFENSE_ANIM "units/undead/{BASE_NAME}-defend.png" "units/undead/{BASE_NAME}.png" {SOUND_LIST:ZOMBIE_HIT} }
    [death]
        start_time=0
        [frame]
            duration=150
            image="units/undead/{BASE_NAME}-die-1.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/{BASE_NAME}-die-2.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/{BASE_NAME}-die-3.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/{BASE_NAME}-die-4.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-5.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-6.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-7.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-8.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-9.png"
        [/frame]
        [frame]
            duration=150
            image="units/undead/soulless-die-10.png"
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=s
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack-s.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=n
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack-n.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        direction=se,sw,ne,nw
        [frame]
            begin=-200
            end=200
            image="units/undead/{BASE_NAME}-attack.png"
            sound=zombie-attack.wav
        [/frame]
    [/attack_anim]
#enddef
    {UNIT_BODY_SOULLESS_STATS smallfoot 4 28}
    {UNIT_BODY_SOULLESS_GRAPHICS soulless}
    [movement_costs]
        deep_water=4
    [/movement_costs]
    [defense]
        deep_water=90
    [/defense]
    [variation]
        variation_name=drake
        {UNIT_BODY_SOULLESS_STATS drakefoot 4 36}
        {UNIT_BODY_SOULLESS_GRAPHICS_NO_DEATH_ANIM soulless-drake}
        [movement_costs]
            deep_water=4
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=dwarf
        {UNIT_BODY_SOULLESS_STATS dwarvishfoot 3 33}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-dwarf}
        [movement_costs]
            deep_water=3
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=goblin
        {UNIT_BODY_SOULLESS_STATS smallfoot 4 23}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-goblin}
        [movement_costs]
            deep_water=4
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=mounted
        {UNIT_BODY_SOULLESS_STATS mounted 5 33}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-mounted}
        [movement_costs]
            deep_water=4
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=gryphon
        {UNIT_BODY_SOULLESS_STATS fly 5 33}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-drake}
        [defense]
            mountains=40
        [/defense]
    [/variation]
    [variation]
        variation_name=saurian
        {UNIT_BODY_SOULLESS_STATS lizard 4 25}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-saurian}
        [movement_costs]
            deep_water=4
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=swimmer
        {UNIT_BODY_SOULLESS_STATS swimmer 4 28}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-swimmer}
        [movement_costs]
            forest=4
            hills=4
        [/movement_costs]
    [/variation]
    [variation]
        variation_name=troll
        {UNIT_BODY_SOULLESS_STATS largefoot 4 33}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-troll}
        [movement_costs]
            deep_water=4
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=wose
        {UNIT_BODY_SOULLESS_STATS treefolk 3 40}
        {UNIT_BODY_SOULLESS_GRAPHICS soulless-wose}
        [movement_costs]
            deep_water=3
        [/movement_costs]
        [defense]
            deep_water=90
        [/defense]
    [/variation]
    [variation]
        variation_name=bat
        inherit=no
        {UNIT_BODY_SOULLESS_STATS fly 5 24}
        [movement_costs]
            cave=1
            fungus=1
        [/movement_costs]
        [defense]
            cave=50
            fungus=50
        [/defense]
        [resistance]
            cold=70
        [/resistance]
        {MAGENTA_IS_THE_TEAM_COLOR}
        image="units/undead/soulless-bat-se-3.png"
        die_sound="bat-flapping.wav"
        [defend]
            direction=s,sw,se
            [if]
                hits=miss
                offset=0.0~-0.15,-0.15~0.0
            [/if]
            start_time=-126
            [frame]
                duration=1
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/soulless-bat-se-4.png"
            [/frame]
            [if]
                hits=hit
                [frame]
                    duration=150
                    image="units/undead/soulless-bat-se-4.png"
                    sound={SOUND_LIST:ZOMBIE_WEAK_HIT}
                [/frame]
            [/if]
            [else]
                hits=miss,kill
                [frame]
                    duration=150
                    image="units/undead/soulless-bat-se-4.png"
                [/frame]
            [/else]
            [frame]
                duration=1
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
        [/defend]
        [defend]
            direction=n,nw,ne
            [if]
                hits=miss
                offset=0.0~-0.15,-0.15~0.0
            [/if]
            start_time=-126
            [frame]
                duration=1
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/soulless-bat-ne-4.png"
            [/frame]
            [if]
                hits=hit
                [frame]
                    duration=150
                    image="units/undead/soulless-bat-ne-4.png"
                    sound={SOUND_LIST:ZOMBIE_WEAK_HIT}
                [/frame]
            [/if]
            [else]
                hits=miss,kill
                [frame]
                    duration=150
                    image="units/undead/soulless-bat-ne-4.png"
                [/frame]
            [/else]
            [frame]
                duration=1
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
        [/defend]
        [standing_anim]
            direction=s,se,sw
            start_time=0
            [frame]
                duration=50
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-se-2.png"
            [/frame]
            [frame]
                duration=80
                image="units/undead/soulless-bat-se-1.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-se-2.png"
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-se-4.png"
            [/frame]
            [frame]
                duration=80
                image="units/undead/soulless-bat-se-5.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-se-4.png"
            [/frame]
        [/standing_anim]
        [standing_anim]
            direction=n,ne,nw
            start_time=0
            [frame]
                duration=50
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-ne-2.png"
            [/frame]
            [frame]
                duration=80
                image="units/undead/soulless-bat-ne-1.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-ne-2.png"
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-ne-4.png"
            [/frame]
            [frame]
                duration=80
                image="units/undead/soulless-bat-ne-5.png"
            [/frame]
            [frame]
                duration=60
                image="units/undead/soulless-bat-ne-4.png"
            [/frame]
        [/standing_anim]

        [attack_anim]
            [filter_attack]
                name=touch
            [/filter_attack]
            direction=s,se,sw
            offset=0.0~0.9:200,0.9~0.0:160
            start_time=-200
            [frame]
                duration=30
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-se-2.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-se-1.png"
                sound=bat-flapping.wav
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-se-2.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=70
                image="units/undead/soulless-bat-se-4.png"
                sound=zombie-attack.wav
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-se-2.png"
            [/frame]
            [frame]
                duration=40
                image="units/undead/soulless-bat-se-3.png"
            [/frame]
        [/attack_anim]

        [attack_anim]
            [filter_attack]
                name=touch
            [/filter_attack]
            direction=n,ne,nw
            offset=0.0~0.9:200,0.9~0.0:160
            start_time=-200
            [frame]
                duration=30
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-ne-2.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-ne-1.png"
                sound=bat-flapping.wav
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-ne-2.png"
            [/frame]
            [frame]
                duration=30
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=70
                image="units/undead/soulless-bat-ne-4.png"
                sound=zombie-attack.wav
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
            [frame]
                duration=50
                image="units/undead/soulless-bat-ne-2.png"
            [/frame]
            [frame]
                duration=40
                image="units/undead/soulless-bat-ne-3.png"
            [/frame]
        [/attack_anim]
        [death]
            start_time=0
            [frame]
                duration=150
                image="units/undead/soulless-bat-die-1.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-bat-die-2.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-bat-die-3.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-bat-die-4.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-5.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-6.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-7.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-8.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-9.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/soulless-die-10.png"
            [/frame]
        [/death]
    [/variation]
[/unit_type]
