diff options
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 88cdcd85..796382cd 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -180,6 +180,11 @@ class ItemInfo void setWeaponType(int); + // Handlers for seting and getting the string used for particles when attacking + void setMissileParticle(std::string s) { mMissileParticle = s; } + + std::string getMissileParticle() const { return mMissileParticle; } + SpriteAction getAttackType() const { return mAttackType; } @@ -208,6 +213,9 @@ class ItemInfo SpriteAction mAttackType; /**< Attack type, in case of weapon. */ int mAttackRange; /**< Attack range, will be zero if non weapon. */ + // Particle to be shown when weapon attacks + std::string mMissileParticle; + /** Maps gender to sprite filenames. */ std::map<int, std::string> mAnimationFiles; |