Skip to content

Commit

Permalink
confused scroll of light follow-up (trunk only)
Browse files Browse the repository at this point in the history
Provide an opportunity to name the scroll when known is not set
  • Loading branch information
nethack.allison committed Mar 4, 2006
1 parent 00cd943 commit 5deeeb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/read.c
Expand Up @@ -1092,12 +1092,14 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */
case SCR_LIGHT:
if (!confused || rn2(5)) {
if(!Blind) known = TRUE;
litroom(!confused && !sobj->cursed, sobj);
litroom(!confused && !scursed, sobj);
} else {
/* could be scroll of create monster, don't set known ...*/
(void) create_critters(1, !sobj->cursed ?
(void) create_critters(1, !scursed ?
&mons[PM_YELLOW_LIGHT] :
&mons[PM_BLACK_LIGHT], TRUE);
if(!objects[sobj->otyp].oc_uname)
docall(sobj);
}
break;
case SCR_TELEPORTATION:
Expand Down

0 comments on commit 5deeeb8

Please sign in to comment.