and 1792110 (undead food handling).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2075 c06c8d41-db1a-0410-9941-cceddc491573
KBTDCQ7GYBRPB346ZEOJ4OM2XHOHN6FJMVMTOJ42EDK5KJX7VLIAC
bool vampire_consume_corpse(int mons_type, int mass,
int chunk_type, bool rotten);
static bool vampire_consume_corpse(int mons_type, int mass,
int chunk_type, bool rotten);
static void heal_from_food(int hp_amt, int mp_amt, bool unrot,
bool restore_str);
if (chunk_effect == CE_ROTTEN)
mpr( "This rotting flesh tastes delicious!" );
else // CE_CONTAMINATED
mpr( "This flesh tastes delicious!" );
healed = true;
if (player_rotted() && !one_chance_in(4))
{
mpr("You feel more resilient.");
unrot_hp(1);
}
}
if (chunk_type == CE_ROTTEN)
mpr("This rotting flesh tastes delicious!");
else // CE_CONTAMINATED or CE_HCL
mpr("This flesh tastes delicious!");
if (player_rotted() && !rotten && one_chance_in(4))
// start_delay( DELAY_EAT, 3 );
start_delay( DELAY_EAT, 1 + mass/300 );
return true;
} // end vampire_consume_corpse()
static void heal_from_food(int hp_amt, int mp_amt, bool unrot,
bool restore_str)
{
if (hp_amt > 0)
inc_hp(hp_amt, false);
if (mp_amt > 0)
inc_mp(mp_amt, false);
if (unrot && player_rotted())