1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-30 17:32:24 +01:00

Add a noequip keyword to the monster generation parser.

Not currently used. Wanted it for testing.
This commit is contained in:
chris 2023-02-12 17:39:26 -05:00
parent 7e6456d181
commit 6c7c51ef61

View file

@ -3596,6 +3596,7 @@ char *in_buff;
int which, tries, i;
int undeadtype = 0;
boolean mad_suicidal = FALSE;
boolean noequip = FALSE;
struct permonst *whichpm;
struct monst *mtmp = (struct monst *)0;
boolean madeany = FALSE;
@ -3690,6 +3691,9 @@ char *in_buff;
else if (!strncmpi(bufp, "suicidal ", l = 9)) {
mad_suicidal = TRUE;
}
else if (!strncmpi(bufp, "noequip ", l = 8)) {
noequip = TRUE;
}
else
break;
@ -3860,6 +3864,8 @@ createmon:
mm_flags |= MM_EDOG;
if (makesummoned)
mm_flags |= MM_ESUM;
if (noequip)
mm_flags |= NO_MINVENT;
mtmp = makemon_full(whichpm, x, y, mm_flags, undeadtype ? undeadtype : -1, -1);