diff options
author | DracoOmega <draco_omega@live.com> | 2014-03-06 09:20:43 -0330 |
---|---|---|
committer | DracoOmega <draco_omega@live.com> | 2014-03-06 13:07:46 -0330 |
commit | be4eec3368fb3106d10b4f2810654bdedf166422 (patch) | |
tree | ff8c4a892502b64eff04c08ea4a71603b755adb0 /crawl-ref/source/throw.cc | |
parent | 3aa8c9cabbcd501a3d7460d4cd266e52f5216a63 (diff) | |
download | crawl-ref-be4eec3368fb3106d10b4f2810654bdedf166422.tar.gz crawl-ref-be4eec3368fb3106d10b4f2810654bdedf166422.zip |
Apply Weakness damage reduction also to ranged weapons, improve a message
Diffstat (limited to 'crawl-ref/source/throw.cc')
-rw-r--r-- | crawl-ref/source/throw.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc index 684f598698..80f4c5dd73 100644 --- a/crawl-ref/source/throw.cc +++ b/crawl-ref/source/throw.cc @@ -1933,6 +1933,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, if (you.inaccuracy()) pbolt.hit -= 5; + if (you.duration[DUR_WEAK]) + pbolt.damage.size = (div_rand_round(pbolt.damage.size * 3, 4)); + scale_dice(pbolt.damage); dprf("H:%d+%d;a%dl%d. D:%d+%d;a%dl%d -> %d,%dd%d", |