poly'd hero was able to zap wands, apply tools, and #rub objects without
having any hands
spellcasting monster got an extra move after casting
+allow defining #wizgenesis quantity in the prompt
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
}
struct _create_particular_data {
+ int quan;
int which;
int fem;
char monclass;
char *bufp = str;
char *tmpp;
+ d->quan = 1 + ((g.multi > 0) ? g.multi : 0);
d->monclass = MAXMCLASSES;
d->which = g.urole.malenum; /* an arbitrary index into mons[] */
d->fem = -1; /* gender not specified */
d->maketame = d->makepeaceful = d->makehostile = FALSE;
d->sleeping = d->saddled = d->invisible = d->hidden = FALSE;
+ /* quantity */
+ if (digit(*bufp) && strcmp(bufp, "0")) {
+ d->quan = atoi(bufp);
+ while (digit(*bufp))
+ bufp++;
+ while (*bufp == ' ')
+ bufp++;
+ }
if ((tmpp = strstri(bufp, "saddled ")) != 0) {
d->saddled = TRUE;
(void) memset(tmpp, ' ', sizeof "saddled " - 1);
}
whichpm = &mons[d->which];
}
- for (i = 0; i <= g.multi; i++) {
+ for (i = 0; i < d->quan; i++) {
if (d->monclass != MAXMCLASSES)
whichpm = mkclass(d->monclass, 0);
else if (d->randmonst)