]> granicus.if.org Git - nethack/commit
recursive destroy_item()
authorPatR <rankin@nethack.org>
Sat, 8 Dec 2018 00:51:18 +0000 (16:51 -0800)
committerPatR <rankin@nethack.org>
Sat, 8 Dec 2018 00:51:18 +0000 (16:51 -0800)
commit22555438004cc173da19a32eafdb61c28335dd12
treeaa658cdae77e84f7f7072c5d430e0903895ef9b2
parente8a5ff6dffd2b98bdc29bab208f6630389c1ece6
recursive destroy_item()

Make the sequence:
  be zapped by lightning,
  have worn ring of levitation be destroyed,
  fall onto fire trap
work better.  The fire trap handling will mark everything in inventory
as already processed; anything vulnerable to lightning past the destroyed
ring would not be checked.  So delay destroying such a ring until after
all of inventory has been subjected to lightning.
src/zap.c