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

@@ -1263,7 +1263,7 @@ toss_up(struct obj *obj, boolean hitsroof)
const char *action;
int otyp = obj->otyp;
boolean petrifier = ((otyp == EGG || otyp == CORPSE)
&& obj->corpsenm >= LOW_PM
&& ismnum(obj->corpsenm)
&& touch_petrifies(&mons[obj->corpsenm]));
/* note: obj->quan == 1 */
@@ -2479,7 +2479,7 @@ breakobj(
break;
case EGG:
/* breaking your own eggs is bad luck */
if (hero_caused && obj->spe && obj->corpsenm >= LOW_PM)
if (hero_caused && obj->spe && ismnum(obj->corpsenm))
change_luck((schar) -min(obj->quan, 5L));
break;
case BOULDER: