summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/potion.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-27 23:05:25 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-27 23:35:20 +0100
commit5d6eb580c3c0b527c756a8ed95ffbd7f11c6d019 (patch)
tree11006dd77aca6e992b74dfc88c2ba623c80c12d5 /crawl-ref/source/potion.h
parent6191413d03046740e03c1705ac16103c18c0301c (diff)
downloadcrawl-ref-5d6eb580c3c0b527c756a8ed95ffbd7f11c6d019.tar.gz
crawl-ref-5d6eb580c3c0b527c756a8ed95ffbd7f11c6d019.zip
Abort drinking known potions of a few types when they'd have no effect.
Only a few types of potions for the moment ({cure ,,beneficial }mutation, berserk, lignify) as I suspect this commit might be reverted. Mostly, I'd want to hear if this is a good idea.
Diffstat (limited to 'crawl-ref/source/potion.h')
-rw-r--r--crawl-ref/source/potion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/potion.h b/crawl-ref/source/potion.h
index 046ca8d488..2d5a8b9a3d 100644
--- a/crawl-ref/source/potion.h
+++ b/crawl-ref/source/potion.h
@@ -11,7 +11,7 @@
// drank_it should be true for real potion effects (as opposed
// to abilities which duplicate such effects.)
-void potion_effect(potion_type pot_eff, int pow,
+bool potion_effect(potion_type pot_eff, int pow,
item_def *potion = nullptr, bool was_known = true,
bool from_fountain = false);