fix #H2247 - lava inconsistencies (trunk only)

From a bug report, if you move into lava, die,
and are life-saved or leave bones, your potions will remain intact,
whereas if you have fire resistance and survive, they'll be subjected to
destroy_item() and usually be destroyed (not always, because stacks of
more than 1 don't always destroy the whole stack).  Also, wooden ring
will be destroyed even if it happens to be ring of fire resistance.
This addresses both of those bugs.

     He also thought that all vulnerable armor should be destroyed rather
than just boots in the case where you have fire resistance and survive,
but I didn't change that.  It is a little odd, but presumeably only your
feet are in lava at first (although later sinking further into lava
doesn't actually burn up any other stuff).
This commit is contained in:
nethack.rankin
2011-04-21 22:06:06 +00:00
parent 95f5e029d8
commit 9cad308536
2 changed files with 37 additions and 32 deletions

View File

@@ -357,6 +357,11 @@ effectiveness of magic cancellation by worn armor has been reduced
Protection improves the effectiveness of magic cancellation
if an angry shopkeeper chased the hero to a different level and then got paid
off, he'd dismiss kops on that other level but not on his shop level
dying in lava and being life-saved or leaving bones would destroy ring of
fire resistance if it happened to be made of wood, and also burn up
scrolls of fire and spellbook of fireball
surviving in lava boils away carried potions, but dying in lava and being
life-saved or leaving bones would keep them intact
Platform- and/or Interface-Specific Fixes