summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemCookedFish.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Items/ItemCookedFish.h')
-rw-r--r--src/Items/ItemCookedFish.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Items/ItemCookedFish.h b/src/Items/ItemCookedFish.h
index 32933e058..06ceb3fc8 100644
--- a/src/Items/ItemCookedFish.h
+++ b/src/Items/ItemCookedFish.h
@@ -7,22 +7,19 @@
-class cItemCookedFishHandler final:
- public cItemFoodHandler
+class cItemCookedFishHandler final : public cItemFoodHandler
{
using Super = cItemFoodHandler;
-public:
-
- constexpr cItemCookedFishHandler(int a_ItemType):
+ public:
+ constexpr cItemCookedFishHandler(int a_ItemType) :
Super(a_ItemType, FoodInfo(0, 0))
{
}
virtual FoodInfo GetFoodInfo(const cItem * a_Item) const override
{
- static const FoodInfo CookedFishInfos[] =
- {
+ static const FoodInfo CookedFishInfos[] = {
FoodInfo(5, 6.0), // Cooked fish
FoodInfo(6, 9.6), // Cooked salmon
};
@@ -34,5 +31,4 @@ public:
}
return CookedFishInfos[a_Item->m_ItemDamage];
}
-
};