From 1d7b4c4640635c809feca83e76b1aa62109c0707 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Mon, 2 Mar 2009 19:10:40 -0700 Subject: 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 --- src/resources/itemdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/itemdb.cpp') 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")) -- cgit v1.2.3-70-g09d2