summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-ench.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-02 18:28:21 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:30 -0600
commit8a18b5e7a19abc48ac39a798305d86fc2216c793 (patch)
tree9c2e217753fe8034261cfdff22aaf92b748f48e8 /crawl-ref/source/mon-ench.cc
parent2d5a51b656ef62b7614a33ad5b480d9ccd562341 (diff)
downloadcrawl-ref-8a18b5e7a19abc48ac39a798305d86fc2216c793.tar.gz
crawl-ref-8a18b5e7a19abc48ac39a798305d86fc2216c793.zip
Re-bribing a perma-bribed monsters costs at least 1 gold (MarvinPA).
Diffstat (limited to 'crawl-ref/source/mon-ench.cc')
-rw-r--r--crawl-ref/source/mon-ench.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-ench.cc b/crawl-ref/source/mon-ench.cc
index 44ccf16834..ac974fb7ce 100644
--- a/crawl-ref/source/mon-ench.cc
+++ b/crawl-ref/source/mon-ench.cc
@@ -636,7 +636,8 @@ void monster::remove_enchantment_effect(const mon_enchant &me, bool quiet)
else
{
string monname = name(DESC_THE);
- const int cost = fuzz_value(exper_value(this), 15, 15) / 10;
+ const int cost =
+ max(1, fuzz_value(exper_value(this), 15, 15) / 10);
mprf("%s demands further payment of %d gold.", monname.c_str(),
cost);
if (you.gold >= cost)