confused scroll of light

Implement the following suggestion by <email deleted>
- Reading a scroll of light while confused should
create a hostile yellow light (black light if cursed).

It only creates the light monster effect 1 out of 5 times.
This commit is contained in:
nethack.allison
2006-02-19 23:28:38 +00:00
parent 645d1b9921
commit f65d0710b6
5 changed files with 16 additions and 7 deletions

View File

@@ -1160,16 +1160,17 @@ int mndx;
/* used for wand/scroll/spell of create monster */
/* returns TRUE iff you know monsters have been created */
boolean
create_critters(cnt, mptr)
create_critters(cnt, mptr, neverask)
int cnt;
struct permonst *mptr; /* usually null; used for confused reading */
boolean neverask;
{
coord c;
int x, y;
struct monst *mon;
boolean known = FALSE;
#ifdef WIZARD
boolean ask = wizard;
boolean ask = (wizard && !neverask);
#endif
while (cnt--) {