summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/potion.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-02-14 01:28:37 -0500
committerelliptic <hyperelliptical@gmail.com>2014-02-14 01:33:47 -0500
commit8340939a0e0c9acec3a5e5391b1891b2685b04cb (patch)
tree19441ae6a3ab59bc9d13538e3507d3feed46742d /crawl-ref/source/potion.cc
parent6481c046ce8e3e6884f359399273c6a98feb3b7b (diff)
downloadcrawl-ref-8340939a0e0c9acec3a5e5391b1891b2685b04cb.tar.gz
crawl-ref-8340939a0e0c9acec3a5e5391b1891b2685b04cb.zip
Revert "Potion of Restore Abilities cures Draining"
This reverts commit c1c92e6949294d220ff375ceeb32bf5059dcaa81. After some discussion, the consensus seems to be that this is unnecessary and just makes draining less interesting later on (which is mainly when draining happens). If early draining is actually a problem, we can add a cap on the amount you can be drained instead.
Diffstat (limited to 'crawl-ref/source/potion.cc')
-rw-r--r--crawl-ref/source/potion.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/potion.cc b/crawl-ref/source/potion.cc
index b6d213467c..c892093096 100644
--- a/crawl-ref/source/potion.cc
+++ b/crawl-ref/source/potion.cc
@@ -442,19 +442,6 @@ 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] = max(0, you.attribute[ATTR_XP_DRAIN] / 2 - 25);
- // Regaining skills may affect AC/EV.
- you.redraw_armour_class = true;
- you.redraw_evasion = true;
- if (!you.attribute[ATTR_XP_DRAIN])
- mprf(MSGCH_RECOVERY, "Your life force feels restored.");
- else
- mpr("Your life force feels less drained.");
- nothing_happens = false;
- }
-
// Give a message if no message otherwise.
if (!restore_stat(STAT_ALL, 0, false) && nothing_happens)
mpr("You feel refreshed.");