]> granicus.if.org Git - nethack/commit
wand/spell/breath zaps hitting secret doors (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 28 May 2009 14:09:30 +0000 (14:09 +0000)
committernethack.rankin <nethack.rankin>
Thu, 28 May 2009 14:09:30 +0000 (14:09 +0000)
commit8f3c74d8045733b6d6839098a5c164476d47cd84
tree875001d1c7cc0d39f03af1d71b515a237217ac36
parent2dfe3f45c1dcf7575f97c6e90a7ec762c1e53113
wand/spell/breath zaps hitting secret doors (trunk only)

     From a bug report, black dragon breath
destroys closed doors didn't acknowledge hitting secret doors.  bhit()
reveals secret doors, but zap_over_floor() (called by buzz() for ray-type
wands and spells, and for breath attacks) didn't check for hitting those.

     When testing the fix, I noticed that feedback for an explosion caused
by breaking a wand was worded oddly for zaps like magic missile which don't
damage doors.  "The door absorbs your bolt" didn't make much sense; what
bolt?  That was first changed to "absords your blast", which still sounded
weird, then to "absorbs the blast", which seemed better but was inaccurate.
Next was "absorbs some of the blast" since the explosion continues to hit
adjacent spots, but since it still has full strength that wasn't accurate
either.  It's finally become "The door remains intact."  Unlike with zaps,
there is no additional range being lost, so no reference to absorption.
doc/fixes35.0
src/apply.c
src/explode.c
src/zap.c