Converted OBJ_POTION_HOLY to use PICKUPPABLE_ITEM.

This commit is contained in:
Lari Nieminen 2009-02-19 11:09:36 +00:00
parent 5b8c819f8b
commit e60b0d156f

View file

@ -283,42 +283,27 @@
#enddef
#define OBJ_POTION_HOLY X Y ID
[item]
x={X}
y={Y}
image=items/holy-water.png
[/item]
[event]
name=moveto
first_time_only=no
[filter]
x={X}
y={Y}
[/filter]
{PICKUPPABLE_ITEM {ID} {X} {Y} side=1 items/holy-water.png
# FIXME: when not in string freeze, this string should be changed and the object description message
# re-enabled by removing silent=yes
_"This water will make melee weapons have the 'arcane' damage type until the end of the current scenario."
_"I am not suited to the use of this item! Let another take it." (
[object]
id={ID}
name= _ "Holy Water"
image=items/holy-water.png
duration=level
description= _ "This water will make melee weapons have the 'arcane' damage type until the end of the current scenario."
cannot_use_message= _ "I am not suited to the use of this item! Let another take it."
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
silent=yes
[effect]
apply_to=attack
range=melee
set_type=arcane
[/effect]
[/object]
[/event]
[sound]
name={SOUND_LIST:HOLY}
[/sound]
)}
#enddef
#define OBJ_POTION_STRONG X Y ID