summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.h
diff options
context:
space:
mode:
authorCedor <cedordark@yahoo.fr>2013-12-11 11:34:46 +0100
committerPekka Lampila <pekka.lampila@iki.fi>2013-12-12 12:39:53 +0200
commita7e5483f3188759eee4aa7772345e226b162e9ac (patch)
treec39dd80d57aabf43d2dbd8243b470b08a1f50453 /crawl-ref/source/food.h
parent6cbad44a34a6fd91ec970dbea20fa143871c5d86 (diff)
downloadcrawl-ref-a7e5483f3188759eee4aa7772345e226b162e9ac.tar.gz
crawl-ref-a7e5483f3188759eee4aa7772345e226b162e9ac.zip
Clean up item eating code
Remove eat_item() from l_food.cc (code inserted in unique caller food_eat()), and use it in food.cc in place of the 2 duplicated functions eat_floor_item() and eat_inventory_item()
Diffstat (limited to 'crawl-ref/source/food.h')
-rw-r--r--crawl-ref/source/food.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/food.h b/crawl-ref/source/food.h
index d0674180e2..fde6053cb8 100644
--- a/crawl-ref/source/food.h
+++ b/crawl-ref/source/food.h
@@ -50,14 +50,13 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
bool check_hunger = true, bool rotten = false);
bool chunk_is_poisonous(int chunktype);
-void eat_floor_item(int item_link);
+bool eat_item(item_def &food);
int eat_from_floor(bool skip_chunks = true);
bool eat_from_inventory();
int prompt_eat_chunks(bool only_auto = false);
bool food_change(bool initial = false);
-void eat_inventory_item(int which_inventory_slot);
bool prompt_eat_inventory_item(int slot = -1);