diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-02 19:10:40 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-02 19:10:40 -0700 |
commit | 1d7b4c4640635c809feca83e76b1aa62109c0707 (patch) | |
tree | 0d715bfc941e72a6df3779d53c6c2e53729366e3 /src/resources/itemdb.cpp | |
parent | 4adee3cfbafee155ab9223e94162c6055ef0a412 (diff) | |
download | mana-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.cpp | 4 |
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")) |