summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-other.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2014-03-01 07:13:52 -0330
committerSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 09:58:16 -0700
commit3025aea1631a7474f48a78182f5ea14409bbca54 (patch)
treedc6a8fa21ba2705e4e84341d26440dba2b5fdbe5 /crawl-ref/source/spl-other.cc
parentc5e17e5f3e484b0a9a8a57dc764b51f875d29aa3 (diff)
downloadcrawl-ref-3025aea1631a7474f48a78182f5ea14409bbca54.tar.gz
crawl-ref-3025aea1631a7474f48a78182f5ea14409bbca54.zip
Convert Cure Poison and OTR to the new system
Diffstat (limited to 'crawl-ref/source/spl-other.cc')
-rw-r--r--crawl-ref/source/spl-other.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-other.cc b/crawl-ref/source/spl-other.cc
index 8e055ccf27..51048a2c94 100644
--- a/crawl-ref/source/spl-other.cc
+++ b/crawl-ref/source/spl-other.cc
@@ -43,7 +43,12 @@ spret_type cast_cure_poison(int pow, bool fail)
}
fail_check();
- reduce_poison_player(2 + random2(pow) + random2(3));
+ reduce_player_poison((15 + roll_dice(3, pow / 2)) * 4);
+
+ // A message is already printed if we removed all of the poison
+ if (you.duration[DUR_POISONING])
+ mpr("The poison in your system diminishes.");
+
return SPRET_SUCCESS;
}