]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/content_inventory.cpp
set some more text to gettext and updated po files
[dragonfireclient.git] / src / content_inventory.cpp
index 24840d6aff7a706bd43a59eafbb70a59d20acf63..de8f8e397c06d2705efb7885439e2467e8dfcb4d 100644 (file)
@@ -122,3 +122,18 @@ InventoryItem* item_craft_create_cook_result(const std::string &subname)
        return NULL;
 }
 
+bool item_craft_is_eatable(const std::string &subname)
+{
+       if(subname == "cooked_rat")
+               return true;
+       return false;
+}
+
+s16 item_craft_eat_hp_change(const std::string &subname)
+{
+       if(subname == "cooked_rat")
+               return 6; // 3 hearts
+       return 0;
+}
+
+