Permalink
Browse files

Fixed the items.xml file

The file is now setting the correct attack for the given weapons.

I also updated the auto attack parameter to correspond the ones
needed in the code.
  • Loading branch information...
Yohann Ferreira
Yohann Ferreira committed Sep 28, 2011
1 parent 86f5a91 commit b1d04f61a96f757f5b561605ae06be67a4e0cc41
Showing with 17 additions and 14 deletions.
  1. +17 −14 example/clientdata/items.xml
@@ -108,21 +108,22 @@
</item>
<!-- Example of weapons -->
<item id="5" max-per-slot="1" name="Sword" attack-action="attack_stab"
<item id="5" max-per-slot="1" name="Sword" attack-action="attack"
description="A simple sword."
image="equipment/weapons/weapon-sword-sword.png"
value="70">
<equip>
<slot type="hand" required="2" />
</equip>
<effect trigger="equip">
<autoattack basespeed="166" range="2" base="50" skill="102" >
<bonus attribute="0" value="1.0" />
</autoattack>
<modifier attribute="acc1" value="1.0" />
<autoattack skill="102" warmupspeed="10" cooldownspeed="166"
basedamage="50" deltadamage="10" chancetohit="2" range="32"
element="neutral" damagetype="physical" />
</effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
</effect>
<sprite>weapons/weapon-sword.xml</sprite>
</item>
<item id="6" max-per-slot="1" name="Bow" attack-action="attack_bow"
@@ -133,30 +134,32 @@
<slot type="hand" required="2" />
</equip>
<effect trigger="equip">
<autoattack basespeed="166" range="5" base="50" skill="106" >
<bonus attribute="0" value="1.5" />
</autoattack>
<autoattack skill="106" warmupspeed="10" cooldownspeed="166"
basedamage="50" deltadamage="10" chancetohit="2" range="160"
element="neutral" damagetype="physical" />
<modifier attribute="acc1" value="1.5" />
</effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
</effect>
<sprite>weapons/weapon-bow.xml</sprite>
</item>
<item id="10" max-per-slot="3" name="Dagger" attack-action="attack_stab"
<item id="10" max-per-slot="3" name="Dagger" attack-action="attack"
description="A simple dagger."
image="equipment/weapons/weapon-dagger-dagger.png"
value="20">
<equip>
<slot type="hand" required="1" />
</equip>
<effect trigger="equip">
<autoattack basespeed="166" range="1" base="50" skill="100" >
<bonus attribute="0" value="1.5" />
</autoattack>
<autoattack skill="100" warmupspeed="10" cooldownspeed="166"
basedamage="50" deltadamage="10" chancetohit="2" range="32"
element="neutral" damagetype="physical" />
<modifier attribute="acc1" value="1.5" />
</effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
</effect>
<sprite>weapons/weapon-dagger.xml</sprite>
</item>

0 comments on commit b1d04f6

Please sign in to comment.