]> granicus.if.org Git - nethack/commit
B13004 spellbook destruction
authorcohrs <cohrs>
Wed, 16 Oct 2002 05:46:20 +0000 (05:46 +0000)
committercohrs <cohrs>
Wed, 16 Oct 2002 05:46:20 +0000 (05:46 +0000)
commitbb732e194aff9c48587b09f6b99797a79c9d1c5b
tree4786e3d3a9b478dac18e7fda82c5792f4b222d25
parent2fa61ea7eef7d767125f6e352d05ffb57f8964e8
B13004 spellbook destruction
When reading a cursed or too-hard book that's covered in contact poison
(presumably in the too-hard case, reading it made the poison), and you die,
the book would not be in the bones.  remove in_use mark while assessing
damage.

On the other hand, not From a bug report, the message in the "6" case says
the book explodes, but had a 1/3 chance of not disappearing in the normal
case, and 100% chance of remaining if cursed while reading - when the
player survives.  Return a flag to allow the book to be destroyed in this
case.  No work needed for the death case; in_use is set.
src/spell.c