From 397ab12c5ba31825ad7639e5e197b719f61d08ab Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sat, 7 Nov 2009 14:49:09 -0800 Subject: Vampiricism tweaks per FR#2892713 --- crawl-ref/source/item_use.cc | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 7868fc939f..8b612f89b6 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -167,6 +167,13 @@ bool can_wield(item_def *weapon, bool say_reason, return (false); } + if(you.hunger_state < HS_FULL && + SPWPN_VAMPIRICISM == get_weapon_brand(*weapon) && + you.species != SP_VAMPIRE){ + SAY(mpr("You're too hungry to wield that.")); + return(false); + } + if (!ignore_temporary_disability && is_shield_incompatible(*weapon)) { SAY(mpr("You can't wield that with a shield.")); @@ -604,10 +611,20 @@ void wield_effects(int item_wield_2, bool showMsgs) break; case SPWPN_VAMPIRICISM: - if (you.is_undead != US_UNDEAD) - mpr("You feel a strange hunger."); - else - mpr("You feel strangely empty."); + + + if(you.species == SP_VAMPIRE){ + mpr("You feel a bloodthirsty glee!"); + break; + } + + if (you.is_undead != US_UNDEAD) { + mpr("You feel a dreadful hunger."); + } else { + mpr("You feel an empty sense of dread."); + } + + make_hungry(4500, false, false); break; case SPWPN_RETURNING: -- cgit v1.2.3-54-g00ecf