blind pronunciation of scroll formula not a literacy violation
bug bz25, no web id, devteam email received on 1/3/2006 6:15 AM: > Reading a scroll while blind shouldn't violate illiterate conduct
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 read.c $NHDT-Date: 1450261365 2015/12/16 10:22:45 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.128 $ */
|
||||
/* NetHack 3.6 read.c $NHDT-Date: 1450483329 2015/12/19 00:02:09 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.129 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -171,6 +171,7 @@ doread()
|
||||
{
|
||||
register struct obj *scroll;
|
||||
boolean confused, nodisappear;
|
||||
boolean pronounced_not_read = FALSE;
|
||||
|
||||
known = FALSE;
|
||||
if (check_capacity((char *) 0))
|
||||
@@ -299,6 +300,8 @@ doread()
|
||||
what = "mystic runes";
|
||||
else if (!scroll->dknown)
|
||||
what = "formula on the scroll";
|
||||
else if (scroll->dknown)
|
||||
pronounced_not_read = TRUE;
|
||||
if (what) {
|
||||
pline("Being blind, you cannot read the %s.", what);
|
||||
return 0;
|
||||
@@ -329,7 +332,7 @@ doread()
|
||||
/* Novel conduct is handled in read_tribute so exclude it too*/
|
||||
if (scroll->otyp != SPE_BOOK_OF_THE_DEAD
|
||||
&& scroll->otyp != SPE_BLANK_PAPER && scroll->otyp != SCR_BLANK_PAPER
|
||||
&& scroll->otyp != SPE_NOVEL)
|
||||
&& scroll->otyp != SPE_NOVEL && !pronounced_not_read)
|
||||
u.uconduct.literate++;
|
||||
|
||||
if (scroll->oclass == SPBOOK_CLASS) {
|
||||
|
||||
Reference in New Issue
Block a user