summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Entity.h3
-rw-r--r--src/Entities/Player.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 9abf75968..7ac12c95b 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -351,6 +351,9 @@ public:
/** Returns the currently equipped boots; empty item if none */
virtual cItem GetEquippedBoots(void) const { return cItem(); }
+ /** Returns the currently offhand equipped item; empty item if none */
+ virtual cItem GetOffHandEquipedItem(void) const { return cItem(); }
+
/** Applies damage to the armor after the armor blocked the given amount */
virtual void ApplyArmorDamage(int DamageBlocked);
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 32a4b0348..f04f90a2b 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -71,6 +71,9 @@ public:
/** Returns the currently equipped boots; empty item if none */
virtual cItem GetEquippedBoots(void) const override { return m_Inventory.GetEquippedBoots(); }
+ /** Returns the currently offhand equipped item; empty item if none */
+ virtual cItem GetOffHandEquipedItem(void) const override { return m_Inventory.GetShieldSlot(); }
+
virtual void ApplyArmorDamage(int DamageBlocked) override;
// tolua_begin