confused scroll of light follow-up (trunk only)

Provide an opportunity to name the scroll when known is not set
This commit is contained in:
nethack.allison
2006-03-04 13:25:59 +00:00
parent 00cd943aae
commit 5deeeb89cb

View File

@@ -1092,12 +1092,14 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */
case SCR_LIGHT: case SCR_LIGHT:
if (!confused || rn2(5)) { if (!confused || rn2(5)) {
if(!Blind) known = TRUE; if(!Blind) known = TRUE;
litroom(!confused && !sobj->cursed, sobj); litroom(!confused && !scursed, sobj);
} else { } else {
/* could be scroll of create monster, don't set known ...*/ /* 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_YELLOW_LIGHT] :
&mons[PM_BLACK_LIGHT], TRUE); &mons[PM_BLACK_LIGHT], TRUE);
if(!objects[sobj->otyp].oc_uname)
docall(sobj);
} }
break; break;
case SCR_TELEPORTATION: case SCR_TELEPORTATION: