summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/potion.cc
diff options
context:
space:
mode:
authorBrendan Hickey <brendan@bhickey.net>2013-12-26 19:25:26 -0800
committerBrendan Hickey <brendan@bhickey.net>2013-12-26 19:25:26 -0800
commitc1c92e6949294d220ff375ceeb32bf5059dcaa81 (patch)
tree4b1a890f06eb25d2588a64e3047d61ef78a2c3cc /crawl-ref/source/potion.cc
parenteaf92df6b4e7446e7ea390744c562f6b804987bf (diff)
downloadcrawl-ref-c1c92e6949294d220ff375ceeb32bf5059dcaa81.tar.gz
crawl-ref-c1c92e6949294d220ff375ceeb32bf5059dcaa81.zip
Potion of Restore Abilities cures Draining
Apart from killing stuff, there's no way to get rid of Draining. This is at odds with other status effects in the game (which isn't necessarily a bad thing). This also gives an additional use to restab, apart from "aw drat, an orange crystal statue."
Diffstat (limited to 'crawl-ref/source/potion.cc')
-rw-r--r--crawl-ref/source/potion.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/potion.cc b/crawl-ref/source/potion.cc
index 5d86e993b1..e8cb06034f 100644
--- a/crawl-ref/source/potion.cc
+++ b/crawl-ref/source/potion.cc
@@ -418,6 +418,12 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know
nothing_happens = false;
}
+ if (you.attribute[ATTR_XP_DRAIN])
+ {
+ you.attribute[ATTR_XP_DRAIN] = 0;
+ mprf(MSGCH_RECOVERY, "Your life force feels restored.");
+ }
+
// Give a message if no message otherwise.
if (!restore_stat(STAT_ALL, 0, false) && nothing_happens)
mpr("You feel refreshed.");