summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-07 14:53:03 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-07 14:53:03 -0800
commit87fab62dd12ec126564ee9cda60aa59e7d5ea351 (patch)
tree61c68cc1ff0c917cff544ddf14f6e270c47e73c9 /crawl-ref/source/item_use.cc
parent397ab12c5ba31825ad7639e5e197b719f61d08ab (diff)
downloadcrawl-ref-87fab62dd12ec126564ee9cda60aa59e7d5ea351.tar.gz
crawl-ref-87fab62dd12ec126564ee9cda60aa59e7d5ea351.zip
Add major cosmetic fixes
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc20
1 files changed, 12 insertions, 8 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 8b612f89b6..f4340a3680 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -167,9 +167,10 @@ 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){
+ if (you.hunger_state < HS_FULL
+ && get_weapon_brand(*weapon) == SPWPN_VAMPIRICISM
+ && you.species != SP_VAMPIRE)
+ {
SAY(mpr("You're too hungry to wield that."));
return(false);
}
@@ -611,19 +612,22 @@ void wield_effects(int item_wield_2, bool showMsgs)
break;
case SPWPN_VAMPIRICISM:
-
-
- if(you.species == SP_VAMPIRE){
+ if(you.species == SP_VAMPIRE)
+ {
mpr("You feel a bloodthirsty glee!");
break;
}
- if (you.is_undead != US_UNDEAD) {
+ if (you.is_undead != US_UNDEAD)
+ {
mpr("You feel a dreadful hunger.");
- } else {
+ }
+ else
+ {
mpr("You feel an empty sense of dread.");
}
+ // takes player from Full to Hungry
make_hungry(4500, false, false);
break;