]> granicus.if.org Git - nethack/commit
wielded candles vs rust (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 17 Jun 2006 04:43:44 +0000 (04:43 +0000)
committernethack.rankin <nethack.rankin>
Sat, 17 Jun 2006 04:43:44 +0000 (04:43 +0000)
commite79a41ccb61159beb6f163da97f753165213d350
tree8141ead7fd20634a7e9112f2bc0fcdba0aa0ce8e
parentd8528f7e2f3929d7e05213718c8fc5b18f72fefa
wielded candles vs rust (trunk only)

     From a bug report: [ slashem-Bugs-1206099 ] Torches are not extinguished with rust traps).
A rust trap that hits the torso candles causes all lit objects being carried
to be extinguished, but one which hit the weapon arm didn't have same affect
on a wielded light.  This fix causes wielded candles or lamps (not Sunsword)
to go out if affected by any rust, such as hitting a rust monster with one,
rather than use his patch that just handled the trap case.  It also excludes
wielded lights from the existing torso splash since having them be hit by
both instances is too obviously buggy.

     I think brass lanterns ought to be exempt from being extinguished by
water (at least splashing which is less drastic than total submersion) since
there are references to them operating by batteries rather than fire, but I
didn't want to track all the places which would be affected.
doc/fixes35.0
src/trap.c
src/wield.c