diff options
author | DracoOmega <draco_omega@live.com> | 2014-03-01 06:47:54 -0330 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 09:58:16 -0700 |
commit | c5e17e5f3e484b0a9a8a57dc764b51f875d29aa3 (patch) | |
tree | 4e38da7221c44811339463bc0440a84f89940325 /crawl-ref/source/throw.cc | |
parent | dcfe0c6302d95122f8f4bedf693bb976f961676b (diff) | |
download | crawl-ref-c5e17e5f3e484b0a9a8a57dc764b51f875d29aa3.tar.gz crawl-ref-c5e17e5f3e484b0a9a8a57dc764b51f875d29aa3.zip |
Convert various other sources of player poison to the new system
This covers potions of (strong) poison, miscast effects, clouds,
needle traps, missiles, and curare.
Several of the less important ones have fairly arbitrary values that
seemed roughly reasonable. A bit more care was used with some things
whose poison damage could already be genuinely dangerous (such as
early poison needles), but definitely needs testing in a real game.
Diffstat (limited to 'crawl-ref/source/throw.cc')
-rw-r--r-- | crawl-ref/source/throw.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc index 80f4c5dd73..5e2d089c0a 100644 --- a/crawl-ref/source/throw.cc +++ b/crawl-ref/source/throw.cc @@ -601,7 +601,8 @@ static bool _poison_hit_victim(bolt& beam, actor* victim, int dmg) if (dmg > 0 || beam.ench_power == AUTOMATIC_HIT && x_chance_in_y(90 - 3 * victim->armour_class(), 100)) { - levels = 1 + random2(3); + levels = 1 + roll_dice(2, 5) + + random2(div_rand_round(beam.damage.num * beam.damage.size, 4)); } if (levels <= 0) |