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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index e3dfe29d7..a38f32e66 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -172,6 +172,10 @@ class ItemInfo final
void setAttackAction(const std::string &attackAction);
+ void setSkyAttackAction(const std::string &attackAction);
+
+ void setWaterAttackAction(const std::string &attackAction);
+
// Handlers for seting and getting the string
// used for particles when attacking
void setMissileParticleFile(const std::string &s)
@@ -201,6 +205,12 @@ class ItemInfo final
const std::string &getAttackAction() const
{ return mAttackAction; }
+ const std::string &getSkyAttackAction() const
+ { return mSkyAttackAction; }
+
+ const std::string &getWaterAttackAction() const
+ { return mWaterAttackAction; }
+
int getAttackRange() const A_WARN_UNUSED
{ return mAttackRange; }
@@ -325,6 +335,8 @@ class ItemInfo final
* Attack action sub-types (bow, sword, ...) are defined in items.xml.
*/
std::string mAttackAction;
+ std::string mSkyAttackAction;
+ std::string mWaterAttackAction;
int mAttackRange; /**< Attack range, will be zero if non weapon. */
// Particle to be shown when weapon attacks