]> granicus.if.org Git - nethack/commit
Fire/Frost Brand vs rusting
authornethack.rankin <nethack.rankin>
Tue, 19 Apr 2005 04:15:51 +0000 (04:15 +0000)
committernethack.rankin <nethack.rankin>
Tue, 19 Apr 2005 04:15:51 +0000 (04:15 +0000)
commitf4a3b20afe9e37b8093d45f4cef21bd111d3568e
treea83f9d374cf8587bf59187bb8310e4df926c4dfb
parenta85d3bf01c298d31c44f142e3d506fb5670a032e
Fire/Frost Brand vs rusting

     Implement the suggestion that Fire Brand avoids damage from rust traps
by boiling away the water.  Rather than making this be trap-specific, it
applies to all types of erosion which go through erode_obj().  That includes
hitting rust monsters but not dipping into potions or fountains, nor falling
into moats.  And it doesn't provide 100% protection, just a high chance of
avoiding rust damage.  Also, Frost Brand gets similar protection by freezing.

     The message handling needed some rewriting for the branch version.
That compiles ok but hasn't been tested.  It would have been simpler just to
move Yobjnam2() over even if nothing else was changed to use it yet....
doc/fixes34.4
include/extern.h
src/artifact.c
src/mhitm.c
src/mhitu.c
src/wield.c