diff options
Diffstat (limited to 'src/Items/ItemChorusFruit.h')
-rw-r--r-- | src/Items/ItemChorusFruit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Items/ItemChorusFruit.h b/src/Items/ItemChorusFruit.h index 261088411..d60c2730f 100644 --- a/src/Items/ItemChorusFruit.h +++ b/src/Items/ItemChorusFruit.h @@ -8,19 +8,19 @@ -class cItemChorusFruitHandler: +class cItemChorusFruitHandler final: public cItemFoodHandler { using Super = cItemFoodHandler; public: - cItemChorusFruitHandler(): - Super(E_ITEM_CHORUS_FRUIT, FoodInfo(4, 2.4)) + constexpr cItemChorusFruitHandler(int a_ItemType) : + Super(a_ItemType, FoodInfo(4, 2.4)) { } - virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override + virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) const override { cItemHandler::EatItem(a_Player, a_Item); |