From d62ae0e18bc570033ada07454b1642f696fe17b1 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 30 Jul 2011 18:51:15 +0300 Subject: Rats are now eatable. Also made their selection box move smoothly. --- src/content_inventory.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/content_inventory.cpp') diff --git a/src/content_inventory.cpp b/src/content_inventory.cpp index 24840d6af..de8f8e397 100644 --- a/src/content_inventory.cpp +++ b/src/content_inventory.cpp @@ -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; +} + + -- cgit v1.2.3