summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-07-19 16:54:18 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-07-19 17:12:53 -0400
commit9981db6781f89733bc22668949228eb20d796a54 (patch)
tree6bf659b0ca3b5626e77865a191656b334ef25080 /crawl-ref/source/item_use.cc
parent9cfb7c0eb8a36a9812c81c6773c4fd81c2c89eb0 (diff)
downloadcrawl-ref-9981db6781f89733bc22668949228eb20d796a54.tar.gz
crawl-ref-9981db6781f89733bc22668949228eb20d796a54.zip
New Gozag wrath effect: potion failure
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index d49ed9df15..59404f6dfc 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2049,6 +2049,16 @@ void drink(int slot)
&& you.experience_level > 1);
potion_type pot_type = (potion_type)potion.sub_type;
+ if (!you_worship(GOD_GOZAG)
+ && you.penance[GOD_GOZAG] && one_chance_in(5))
+ {
+ simple_god_message(" petitions for your drink to fail.", GOD_GOZAG);
+
+ you.turn_is_over = true;
+
+ return;
+ }
+
if (!potion_effect(static_cast<potion_type>(potion.sub_type),
40, &potion, alreadyknown))
{