summaryrefslogtreecommitdiff
path: root/example/clientdata/items.xml
diff options
context:
space:
mode:
Diffstat (limited to 'example/clientdata/items.xml')
-rw-r--r--example/clientdata/items.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/example/clientdata/items.xml b/example/clientdata/items.xml
index 8ab3fd10..ff0b1c5e 100644
--- a/example/clientdata/items.xml
+++ b/example/clientdata/items.xml
@@ -64,11 +64,14 @@
description="A sugar-free candy."
type="usable"
hp="5"
- script="candy.lua"
weight="1"
max-per-slot="30"
- value="15"
- />
+ value="15">
+ <effect trigger="activation">
+ <script src="candy.lua" function="use" />
+ <consumes />
+ </effect>
+ </item>
<item id="2" max-per-slot="1" name="Regenerative trinket"
description="A trinket with refreshing powers."
image="usable/usable-regenerative-trinket.png"