summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemMushroomSoup.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-03 15:12:07 +0100
committerMattes D <github@xoft.cz>2015-12-03 15:12:07 +0100
commitef7c6ea7e7742223a705fe65c5ccff058b936e38 (patch)
tree731f128a18b2912cabb39f602c9db083a4ad8b33 /src/Items/ItemMushroomSoup.h
parentMerge pull request #2711 from cuberite/FixFreeBSDBuild (diff)
parentMerge mushroom soup into generic food handler (diff)
downloadcuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar.gz
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar.bz2
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar.lz
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar.xz
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.tar.zst
cuberite-ef7c6ea7e7742223a705fe65c5ccff058b936e38.zip
Diffstat (limited to 'src/Items/ItemMushroomSoup.h')
-rw-r--r--src/Items/ItemMushroomSoup.h53
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;
- }
-
-};
-
-
-
-