diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-05 13:55:08 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-05 13:55:08 +0000 |
commit | 5278d194ce1470f55ea9bdd2827d3e1d3de500b7 (patch) | |
tree | 28fde2b1cf53da52605fc2c0ffc5b95bb1e24930 /crawl-ref | |
parent | bf62209d7da1e4b2c912095b6b5438fea1db4fe3 (diff) | |
download | crawl-ref-5278d194ce1470f55ea9bdd2827d3e1d3de500b7.tar.gz crawl-ref-5278d194ce1470f55ea9bdd2827d3e1d3de500b7.zip |
Properly amuse Xom when vampires lose corpses while draining them.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4875 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/delay.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 4f9b882015..0f67ec2f99 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -48,6 +48,7 @@ extern std::vector<SelItem> items_for_multidrop; +static void xom_check_corpse_waste(); static void armour_wear_effects(const int item_inv_slot); static void handle_run_delays(const delay_queue_item &delay); static void handle_macro_delay(); @@ -411,7 +412,7 @@ void stop_delay( bool stop_stair_travel ) case DELAY_FEED_VAMPIRE: { mpr("You stop draining the corpse."); - + xom_check_corpse_waste(); item_def &corpse = (delay.parm1 ? you.inv[delay.parm2] : mitm[delay.parm2]); @@ -791,6 +792,7 @@ void handle_delay( void ) if (food_is_rotten(corpse)) { mpr("This corpse has started to rot.", MSGCH_ROTTEN_MEAT); + xom_check_corpse_waste(); stop_delay(); break; } |