summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 08:39:20 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 08:39:20 +0000
commit3423bbab5a0f024eeafffe6b8260c8c088647db1 (patch)
tree7ac6d73449b874aba363c80d57a097833bcf7613 /crawl-ref/source/food.h
parent166e51b5cc6e35ec1bea7dd24e9e6ae549ac3dde (diff)
downloadcrawl-ref-3423bbab5a0f024eeafffe6b8260c8c088647db1.tar.gz
crawl-ref-3423bbab5a0f024eeafffe6b8260c8c088647db1.zip
First attempt at making vampire feeding interruptible. It doesn't work
yet (I had "You stop feeding" followed by "You continue feeding" including full effects), but it's probably better to commit now anyway. Known potions of blood or porridge cannot be quaffed when engorged (alive). Also clean up blood potions check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4871 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.h')
-rw-r--r--crawl-ref/source/food.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/food.h b/crawl-ref/source/food.h
index e925531f28..7887258d44 100644
--- a/crawl-ref/source/food.h
+++ b/crawl-ref/source/food.h
@@ -83,7 +83,7 @@ void set_hunger(int new_hunger_level, bool suppress_msg);
* *********************************************************************** */
void weapon_switch( int targ );
-bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
+bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg,
bool reqid = false, bool check_hunger = true);
void eat_floor_item(int item_link);
@@ -96,6 +96,9 @@ bool prompt_eat_from_inventory(int slot = -1);
void chunk_nutrition_message(int nutrition);
+void vampire_nutrition_per_turn(const item_def &corpse,
+ int feeding = 0);
+
int you_max_hunger();
int you_min_hunger();