summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-02 19:10:40 -0700
committerIra Rice <irarice@gmail.com>2009-03-02 19:10:40 -0700
commit1d7b4c4640635c809feca83e76b1aa62109c0707 (patch)
tree0d715bfc941e72a6df3779d53c6c2e53729366e3 /src/resources/itemdb.cpp
parent4adee3cfbafee155ab9223e94162c6055ef0a412 (diff)
downloadmana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.gz
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.bz2
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.xz
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.zip
Added particle attacks back on to the players. However, instead of being
constant, particle attacks are now weapon specific, so that different weapons can have different attacks. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 0031bbd0..2eff514c 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -110,6 +110,10 @@ void ItemDB::load()
{
if (xmlStrEqual(itemChild->name, BAD_CAST "sprite"))
{
+ std::string attackParticle = XML::getProperty(
+ itemChild, "particle-effect", "");
+ itemInfo->setParticleEffect(attackParticle);
+
loadSpriteRef(itemInfo, itemChild);
}
else if (xmlStrEqual(itemChild->name, BAD_CAST "sound"))