From 2431b077cd2d99c7bf1fde4d3c93f937acef0cce Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Fri, 13 Jul 2018 00:10:15 +0200 Subject: Add unbreaking for armor (#4220) Ref: minecraft.gamepedia.com/Enchanting#Unbreaking #915 --- src/Entities/Player.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Entities/Player.h') 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); -- cgit v1.2.3