]> granicus.if.org Git - nethack/commit
fix #H2059 - writing spellbooks while blind
authornethack.rankin <nethack.rankin>
Mon, 14 Dec 2009 23:46:30 +0000 (23:46 +0000)
committernethack.rankin <nethack.rankin>
Mon, 14 Dec 2009 23:46:30 +0000 (23:46 +0000)
commit403dd4ef951627eaf677083c697d646068ee41a1
treeea7e2b3924c68c133cd627c5a7c9bec2d3eda342
parent00093a1c8aab428a1f18258ded9bca807389a125
fix #H2059 - writing spellbooks while blind

     From a bug report, you could write a
spellbook with a magic marker while blind and were told the description
(often a color) of the resulting book.  This prevents books from being
written while blind, just as they can't be read in that situation, and
it adds an extra test when attempting to write scrolls while blind.
(When you succeed in writing a scroll while blind, you're just told that
the result is ``x - a scroll'' as it's moved to its new inventory slot.)

     This also removes a couple of overly hyper exclamations when writing
fails.  Someday somebody ought to go through the whole program and decide
which messages actually warrant exclamation points, but I doubt that
that'll ever happen.
doc/fixes34.4
src/write.c