fix #H4078 - dull spellbook vs sleep resistance
Reading a dull spellbook could make a sleep resistant hero fall asleep.
This commit is contained in:
@@ -28,6 +28,7 @@ negative intrinsic protection shouldn't confer MC=1, "you are warded" (not
|
|||||||
possible from divine protection but is possible from eating rings)
|
possible from divine protection but is possible from eating rings)
|
||||||
make a slight adjustment to the quickmimic() sense wording
|
make a slight adjustment to the quickmimic() sense wording
|
||||||
fix typo in passage 1 of The Colour of Magic
|
fix typo in passage 1 of The Colour of Magic
|
||||||
|
falling asleep when reading dull spellbook ignored sleep resistance
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 spell.c $NHDT-Date: 1447653429 2015/11/16 05:57:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.72 $ */
|
/* NetHack 3.6 spell.c $NHDT-Date: 1450128440 2015/12/14 21:27:20 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.73 $ */
|
||||||
/* Copyright (c) M. Stephenson 1988 */
|
/* Copyright (c) M. Stephenson 1988 */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -430,7 +430,7 @@ register struct obj *spellbook;
|
|||||||
boolean too_hard = FALSE;
|
boolean too_hard = FALSE;
|
||||||
|
|
||||||
/* attempting to read dull book may make hero fall asleep */
|
/* attempting to read dull book may make hero fall asleep */
|
||||||
if (!confused && booktype != SPE_BLANK_PAPER
|
if (!confused && !Sleep_resistance
|
||||||
&& !strcmp(OBJ_DESCR(objects[booktype]), "dull")) {
|
&& !strcmp(OBJ_DESCR(objects[booktype]), "dull")) {
|
||||||
const char *eyes;
|
const char *eyes;
|
||||||
int dullbook = rnd(25) - ACURR(A_WIS);
|
int dullbook = rnd(25) - ACURR(A_WIS);
|
||||||
|
|||||||
Reference in New Issue
Block a user