summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/it_use2.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index bb3d733aae..84cdc0b4ed 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -38,13 +38,14 @@ REVISION("$Rev$");
// From an actual potion, pow == 40 -- bwr
bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known)
{
+
bool effect = true; // current behaviour is all potions id on quaffing
pow = std::min(pow, 150);
- const int factor = (you.species == SP_VAMPIRE
- && you.hunger_state < HS_SATIATED
- && drank_it ? 2 : 1);
+ int factor = (you.species == SP_VAMPIRE
+ && you.hunger_state < HS_SATIATED
+ && drank_it ? 2 : 1);
// Knowingly drinking bad potions is much less amusing.
int xom_factor = factor;