diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-12-01 23:30:47 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-12-03 14:55:32 +0100 |
commit | 72b2ab6406ca57627e2b91c0ffe054dafbe0cca5 (patch) | |
tree | 39a3aa00d0587b36fb1eabb7c59a1cce5d3d6778 /src/Items/ItemMushroomSoup.h | |
parent | Merge pull request #2699 from SafwatHalaby/breedDocs (diff) | |
download | cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar.gz cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar.bz2 cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar.lz cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar.xz cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.tar.zst cuberite-72b2ab6406ca57627e2b91c0ffe054dafbe0cca5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemMushroomSoup.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/Items/ItemMushroomSoup.h b/src/Items/ItemMushroomSoup.h deleted file mode 100644 index 1a761cbf1..000000000 --- a/src/Items/ItemMushroomSoup.h +++ /dev/null @@ -1,53 +0,0 @@ - -#pragma once - -#include "ItemHandler.h" - - - - - -class cItemMushroomSoupHandler : - public cItemHandler -{ - typedef cItemHandler super; - -public: - cItemMushroomSoupHandler(int a_ItemType) - : super(a_ItemType) - { - } - - - virtual bool IsFood(void) override - { - return true; - } - - - virtual FoodInfo GetFoodInfo(void) override - { - return FoodInfo(6, 7.2); - } - - - virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override - { - if (!super::EatItem(a_Player, a_Item)) - { - return false; - } - - // Return a bowl to the inventory - if (!a_Player->IsGameModeCreative()) - { - a_Player->GetInventory().AddItem(cItem(E_ITEM_BOWL)); - } - return true; - } - -}; - - - - |