summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index f04f90a2b..8fa463c5a 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -425,6 +425,10 @@ public:
is damaged by when used for a_Action */
void UseEquippedItem(cItemHandler::eDurabilityLostAction a_Action);
+ /** Damage the item in a_SlotNumber by a_Damage, possibly less if the
+ equipped item is enchanted. */
+ void UseItem(int a_SlotNumber, short a_Damage = 1);
+
void SendHealth(void);
void SendExperience(void);