more fixes via monsym()

This commit is contained in:
nhmall
2023-12-07 09:55:37 -05:00
parent e639c4bdaa
commit 12ca2be5b4
2 changed files with 3 additions and 3 deletions

View File

@@ -4760,7 +4760,7 @@ select_newcham_form(struct monst* mon)
} while (--tryct > 0 && !validspecmon(mon, mndx)
/* try harder to select uppercase monster on rogue level */
&& (tryct > 40 && Is_rogue_level(&u.uz)
&& !isupper((uchar) mons[mndx].mlet)));
&& !isupper(monsym(&mons[mndx]))));
}
return mndx;
}
@@ -4865,7 +4865,7 @@ newcham(
/* for the first several tries we require upper-case on
the rogue level (after that, we take whatever we get) */
if (tryct > 15 && Is_rogue_level(&u.uz)
&& mdat && !isupper((uchar) mdat->mlet))
&& mdat && !isupper(monsym(mdat)))
mdat = 0;
if (mdat)
break;

View File

@@ -522,7 +522,7 @@ pick_nasty(
* but we don't try very hard.
*/
if (Is_rogue_level(&u.uz)
&& !('A' <= mons[res].mlet && mons[res].mlet <= 'Z'))
&& !('A' <= monsym(&mons[res]) && monsym(&mons[res]) <= 'Z'))
res = ROLL_FROM(nasties);
/* if genocided or too difficult or out of place, try a substitute