X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcontent_inventory.h;h=91550bb9a42c0e46881337024bbf8b4d08be5351;hb=0931d4b7ff95dc9b51bee28851c3780b2648ffd0;hp=54aa2151a92a5592f20369fdca2b6b6d8a64f7de;hpb=cced6aaf8db60e4a28e290f4ca235661037193aa;p=dragonfireclient.git diff --git a/src/content_inventory.h b/src/content_inventory.h index 54aa2151a..91550bb9a 100644 --- a/src/content_inventory.h +++ b/src/content_inventory.h @@ -22,13 +22,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common_irrlicht.h" // For u8, s16 #include +#include "mapnode.h" // For content_t class InventoryItem; class ServerActiveObject; class ServerEnvironment; -bool item_material_is_cookable(u8 content); -InventoryItem* item_material_create_cook_result(u8 content); +bool item_material_is_cookable(content_t content); +InventoryItem* item_material_create_cook_result(content_t content); std::string item_craft_get_image_name(const std::string &subname); ServerActiveObject* item_craft_create_object(const std::string &subname, @@ -36,6 +37,8 @@ ServerActiveObject* item_craft_create_object(const std::string &subname, s16 item_craft_get_drop_count(const std::string &subname); bool item_craft_is_cookable(const std::string &subname); InventoryItem* item_craft_create_cook_result(const std::string &subname); +bool item_craft_is_eatable(const std::string &subname); +s16 item_craft_eat_hp_change(const std::string &subname); #endif