diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-28 22:31:55 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-28 22:31:55 -0600 |
commit | 05377e05db167e0930e5aed317b269b717cc08ef (patch) | |
tree | 3fabc80be4d11697d526666e0aa60ec2f63df4cd /crawl-ref/source/throw.cc | |
parent | f0d8313a57775a19a39dd8052f3b4b27fc2aa612 (diff) | |
download | crawl-ref-05377e05db167e0930e5aed317b269b717cc08ef.tar.gz crawl-ref-05377e05db167e0930e5aed317b269b717cc08ef.zip |
Make ranged attacks play a bit nicer with fsim.
Report accuracy correctly; don't let some effects like blood splatter
and distortion trigger (as with old melee attacks).
Diffstat (limited to 'crawl-ref/source/throw.cc')
-rw-r--r-- | crawl-ref/source/throw.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc index bc95bcd805..a3c2623513 100644 --- a/crawl-ref/source/throw.cc +++ b/crawl-ref/source/throw.cc @@ -894,6 +894,8 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, if (wepClass == OBJ_MISSILES || wepClass == OBJ_WEAPONS) item.flags |= ISFLAG_THROWN; + pbolt.hit = acc_bonus; + bool hit = false; if (teleport) { @@ -978,7 +980,8 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, if (!teleport && you_worship(GOD_DITHMENOS) && thrown.base_type == OBJ_MISSILES - && thrown.sub_type != MI_NEEDLE) + && thrown.sub_type != MI_NEEDLE + && acc_bonus != DEBUG_COOKIE) { dithmenos_shadow_throw(thr.target); } |