summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-07 14:49:09 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-07 14:49:09 -0800
commit397ab12c5ba31825ad7639e5e197b719f61d08ab (patch)
treeb66c01b752b7e667df10aa2f530efe4bf5094012 /crawl-ref/source/item_use.cc
parente155ef1258adcc681c2d7430726b100ceb1f477e (diff)
downloadcrawl-ref-397ab12c5ba31825ad7639e5e197b719f61d08ab.tar.gz
crawl-ref-397ab12c5ba31825ad7639e5e197b719f61d08ab.zip
Vampiricism tweaks per FR#2892713
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc25
1 files changed, 21 insertions, 4 deletions
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: