]> granicus.if.org Git - nethack/commit
scrolls written while blind; scrolls of mail
authorPatR <rankin@nethack.org>
Wed, 16 Dec 2015 10:23:32 +0000 (02:23 -0800)
committerPatR <rankin@nethack.org>
Wed, 16 Dec 2015 10:23:32 +0000 (02:23 -0800)
commitaf6887796f79e83d642e9a4b18bb2a6a3264d4e3
treee3e6a3a94abda42ae9707efe94d8bc8b480a6709
parent8f96d4b9efd7d536a84590d674f08eb5747a1bd1
scrolls written while blind; scrolls of mail

Make a fix suggested during beta testing:  you can read scrolls while
blind if you know the label, and you can write a scroll with a magic
marker while blind, but the result was flagged as description unknown
so you couldn't read the newly written scroll until regaining sight
or obtaining object identification.  So change writing a previously
discovered scroll while blind to set dknown since a successful write
always yields the type of scroll requested.  Getting lucky while
attempting to write an undiscovered scroll--which has to be done by
scroll's type name (for instance "food detection") rather than by its
label ("YUM YUM")--still leaves the description flagged as unknown
since hero hasn't seen the what sort of label the new scroll has.

Along the way I got side-tracked by the possibilty of writing a scroll
of mail.  It's allowed and yielded the same result as finding such a
scroll in bones, or wishing for one:  when read, it was junk mail from
Larn.  Make one written via marker give different feedback since it
comes from creation of a stamped scroll without any stamps available.

Also, suppress an "argument not used" warning for readmail().
doc/fixes36.1
src/bones.c
src/mail.c
src/objnam.c
src/read.c
src/write.c