#textdomain wesnoth-dm
#define MEMOIRS_ITEM_WELL X Y
    [item]
        x={X}
        y={Y}
        image=scenery/well.png
    [/item]

    [event]
        name=moveto
        [filter]
            x={X}
            y={Y}
        [/filter]
        [message]
            speaker=unit
            message=_"Ahh... I can slake my thirst at this well. Glug, glug, glug..."	# wmllint: no spellcheck
        [/message]
    [/event]
#enddef

#define MEMOIRS_ITEM_STAFF X Y
    [item]
        x={X}
        y={Y}
        image=items/staff-magic.png
    [/item]

    [event]
        name=moveto
        [filter]
            id=Delfador
            x={X}
            y={Y}
        [/filter]
        [remove_item]
            x={X}
            y={Y}
        [/remove_item]
        [object]
            id=staff_lightning
            name=_ "Staff of Lightning"
            image=items/staff-magic.png
            duration=forever
            description=_"A wizard’s staff of power. This allows the bearer to summon powerful lightning bolts which strike their enemies, even at close range."
            cannot_use_message=_"Only a powerful mage can wield this."

            [effect]
                apply_to=attack
                range=melee
                set_description=_"staff of power"
                increase_damage=4
                [set_specials]
                    mode=append
                    {WEAPON_SPECIAL_MAGICAL}
                [/set_specials]
            [/effect]

            [effect]
                apply_to=remove_attacks
                name=missile
            [/effect]

            [effect]
                apply_to=remove_attacks
                name=fireball
            [/effect]

            [effect]
                apply_to=new_attack
                name=lightning
                #textdomain wesnoth-units
                description=_"lightning"
                #textdomain wesnoth-dm
                icon=attacks/lightning.png
                type=fire
                range=ranged
                [specials]
                    {WEAPON_SPECIAL_MAGICAL}
                [/specials]
                damage=16
                number=4
            [/effect]

            {LIGHTNING_ANIMATION "lightning" 1}
            {LIGHTNING_ANIMATION "lightning" 2}
            {LIGHTNING_ANIMATION "lightning" 3}
        [/object]
        [set_variable]
            name=delf_has_staff
            value=yes
        [/set_variable]
        [show_objectives]
        [/show_objectives]
    [/event]
#enddef
