#textdomain wesnoth-dw

[unit_type]
    id=Kraken
    name= _ "Kraken"
    race=monster
    image="units/monsters/kraken.png"
    hitpoints=85
    movement_type=deepsea
    movement=8
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    [advancefrom]
        unit=Cuttle Fish
        experience=80
    [/advancefrom]
    attacks=1
    {AMLA_DEFAULT}
    cost=62
    undead_variation=swimmer
    usage=fighter
    description= _ "Krakens are gigantic creatures of the seas. They can grab their opponents with strong tentacles, or spit a poisonous black ink from a distance. The best way to survive an encounter with these monsters is to remain ashore."+{SPECIAL_NOTES}+{SPECIAL_NOTES_POISON}+{SPECIAL_NOTES_SWARM}
    die_sound=water-blast.wav
    {DEFENSE_ANIM_DIRECTIONAL_RANGE "units/monsters/kraken-defend.png" "units/monsters/kraken.png" "units/monsters/kraken-n-defend.png" "units/monsters/kraken-n-tentacle-1.png" squishy-hit.wav melee}
    {DEFENSE_ANIM_DIRECTIONAL_RANGE "units/monsters/kraken-defend.png" "units/monsters/kraken.png" "units/monsters/kraken-defend.png" "units/monsters/kraken.png" squishy-hit.wav ranged}
    [attack]
        name=tentacle
        description=_"tentacle"
        type=impact
        range=melee
        [specials]
            {WEAPON_SPECIAL_SWARM}
        [/specials]
        damage=5
        number=10
    [/attack]
    [attack]
        name=ink
        description=_"ink"
        type=pierce
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=ink
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/ink.png"
            image_diagonal="projectiles/ink.png"
        [/missile_frame]
        start_time=-250
        [frame]
            image="units/monsters/kraken-tentacle-1.png:150"
        [/frame]
        {SOUND:HIT_AND_MISS squishy-strike.wav squishy-miss.wav -100}
        [frame]
            image="units/monsters/kraken.png:100"
        [/frame]
        {SOUND:POISON}
    [/attack_anim]

    # tentacles hit south----------------------------------------------
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=s,se,sw
        hits=yes
        start_time=-200
        [frame]
            image="units/monsters/kraken-tentacle-1.png:100"
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-2.png:150"
            sound=squishy-strike.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-1.png:150"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=s,se,sw
        hits=yes
        start_time=-200
        [frame]
            image="units/monsters/kraken-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-3.png:150"
            sound=squishy-strike.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-1.png:100"
        [/frame]
    [/attack_anim]

    # tentacles hit north----------------------------------------------
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=n,ne,nw
        hits=yes
        start_time=-200
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-2.png:150"
            sound=squishy-strike.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:100"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=n,ne,nw
        hits=yes
        start_time=-200
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-3.png:150"
            sound=squishy-strike.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:100"
        [/frame]
    [/attack_anim]

    # tentacles miss south ----------------------------------------------
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        hits=no
        direction=s,se,sw
        start_time=-200
        [frame]
            image="units/monsters/kraken-tentacle-1.png:100"
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-2.png:150"
            sound=squishy-miss.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-1.png:150"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        hits=no
        direction=s,se,sw
        start_time=-200
        [frame]
            image="units/monsters/kraken-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-3.png:150"
            sound=squishy-miss.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-tentacle-1.png:100"
        [/frame]
    [/attack_anim]

    # tentacles miss north----------------------------------------------
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=n,ne,nw
        hits=no
        start_time=-200
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-2.png:150"
            sound=squishy-miss.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:100"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tentacle
        [/filter_attack]
        direction=n,ne,nw
        hits=no
        start_time=-200
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:150"
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-3.png:150"
            sound=squishy-miss.wav
        [/frame]
        [frame]
            image="units/monsters/kraken-n-tentacle-1.png:100"
        [/frame]
    [/attack_anim]
[/unit_type]
