#textdomain wesnoth-did
[unit_type]
    id=Giant Rat
    name= _ "Giant Rat"
    race=monster
    image="units/giant-rat.png"
    ellipse="misc/ellipse-nozoc"
    hitpoints=15
    movement_type=smallfoot
    movement=4
    experience=14
    level=0
    alignment=chaotic
    advances_to=null
    {AMLA_TOUGH 2}
    cost=13
    usage=scout
    description= _ "Given an adequate supply of food, some rats can grow to truly impressive sizes. They can also grow quite aggressive."
    {DEFENSE_ANIM "units/giant-rat-defend-2.png" "units/giant-rat-defend-1.png" {SOUND_LIST:BAT_HIT} }
    die_sound=bat-flapping.wav
    [death]
        [frame]
            duration=100
            image="units/giant-rat-die-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-die-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-die-3.png"
        [/frame]
    [/death]
    [attack]
        name=bite
        description=_ "bite"
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        damage=2
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=bite
        [/filter_attack]
        start_time=-500
        [frame]
            duration=100
            image="units/giant-rat-attack-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-attack-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-attack-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-attack-4.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/giant-rat-attack-5.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/giant-rat-attack-5.png"
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/giant-rat-attack-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/giant-rat-attack-7.png"
        [/frame]
        [/attack_anim]
[/unit_type]
