summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 78ecf13d3..4d69b5c36 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -135,6 +135,8 @@ class ItemInfo final
void setWaterAttackAction(const std::string &attackAction);
+ void setRideAttackAction(const std::string &attackAction);
+
// Handlers for seting and getting the string
// used for particles when attacking
void setMissileParticleFile(const std::string &s)
@@ -170,6 +172,9 @@ class ItemInfo final
const std::string &getWaterAttackAction() const
{ return mWaterAttackAction; }
+ const std::string &getRideAttackAction() const
+ { return mRideAttackAction; }
+
int getAttackRange() const A_WARN_UNUSED
{ return mAttackRange; }
@@ -299,6 +304,7 @@ class ItemInfo final
std::string mAttackAction;
std::string mSkyAttackAction;
std::string mWaterAttackAction;
+ std::string mRideAttackAction;
int mAttackRange; /**< Attack range, will be zero if non weapon. */
// Particle to be shown when weapon attacks