1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-07 21:25:26 +01:00

BUGFIX: Unique monsters should not appear multiple times in quest

This commit is contained in:
Chris-plus-alphanumericgibberish 2016-09-07 11:23:02 -04:00
parent d260cf258b
commit 39e6d44b67

View file

@ -364,7 +364,7 @@ aligntyp atyp;
for (tryct = 0; tryct < 20; tryct++) {
pm = rn1(PM_DEMOGORGON + 1 - PM_ORCUS, PM_ORCUS);
if (!(mvitals[pm].mvflags & G_GONE && !In_quest(&u.uz)) &&
if (!(mvitals[pm].mvflags & G_GONE) &&
(atyp == A_NONE || sgn(mons[pm].maligntyp) == sgn(atyp)))
return(pm);
}
@ -380,7 +380,7 @@ aligntyp atyp;
for (tryct = 0; tryct < 20; tryct++) {
do pm = rn1(PM_YEENOGHU + 1 - PM_JUIBLEX, PM_JUIBLEX);
while(pm == PM_SHAKTARI);
if (!(mvitals[pm].mvflags & G_GONE && !In_quest(&u.uz)) &&
if (!(mvitals[pm].mvflags & G_GONE) &&
(atyp == A_NONE || sgn(mons[pm].maligntyp) == sgn(atyp)))
return(pm);
}