diff options
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemMilk.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Items/ItemMilk.h b/src/Items/ItemMilk.h index e34efbc0f..fb346ec45 100644 --- a/src/Items/ItemMilk.h +++ b/src/Items/ItemMilk.h @@ -5,25 +5,22 @@ -class cItemMilkHandler: +class cItemMilkHandler final: public cItemHandler { using Super = cItemHandler; public: - cItemMilkHandler(): - Super(E_ITEM_MILK) - { - } + using Super::Super; - virtual bool IsDrinkable(short a_ItemDamage) override + virtual bool IsDrinkable(short a_ItemDamage) const override { UNUSED(a_ItemDamage); return true; } - virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override + virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) const override { UNUSED(a_Item); a_Player->ClearEntityEffects(); |