replace x >= LOW_PM with ismnum(x) shorthand macro

This commit is contained in:
nhmall
2024-01-11 14:01:10 -05:00
parent 58031920dc
commit 25a8c258e6
31 changed files with 119 additions and 107 deletions

View File

@@ -1977,7 +1977,7 @@ create_monster(monster *m, struct mkroom *croom)
if (m->appear_as.str
&& ((mtmp->data->mlet == S_MIMIC)
/* shapechanger (chameleons, et al, and vampires) */
|| (mtmp->cham >= LOW_PM && m->appear == M_AP_MONSTER))
|| (ismnum(mtmp->cham) && m->appear == M_AP_MONSTER))
&& !Protection_from_shape_changers) {
int i;