From 602678aa5a768c9c7c8311763a25e110f42c632f Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 5 Sep 2025 09:26:00 -0400 Subject: [PATCH] follow-up: function name --- include/extern.h | 4 ++-- src/uhitm.c | 4 ++-- src/zap.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/extern.h b/include/extern.h index 739880db5..5f50b67ea 100644 --- a/include/extern.h +++ b/include/extern.h @@ -3409,8 +3409,8 @@ extern int passive(struct monst *, struct obj *, boolean, boolean, uchar, extern void passive_obj(struct monst *, struct obj *, struct attack *) NONNULLARG1; extern void that_is_a_mimic(struct monst *, unsigned) NONNULLARG1; extern void stumble_onto_mimic(struct monst *) NONNULLARG1; -extern boolean mimic_disguised_as_non_mon(struct monst *) NONNULLARG1; -extern boolean mimic_disguised_as_mon(struct monst *) NONNULLARG1; +extern boolean disguised_as_non_mon(struct monst *) NONNULLARG1; +extern boolean disguised_as_mon(struct monst *) NONNULLARG1; extern int flash_hits_mon(struct monst *, struct obj *) NONNULLARG12; extern void light_hits_gremlin(struct monst *, int) NONNULLARG1; diff --git a/src/uhitm.c b/src/uhitm.c index 090275cb3..cca56b435 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -6260,7 +6260,7 @@ stumble_onto_mimic(struct monst *mtmp) } boolean -mimic_disguised_as_non_mon(struct monst *mtmp) +disguised_as_non_mon(struct monst *mtmp) { return (!sensemon(mtmp) && M_AP_TYPE(mtmp) @@ -6268,7 +6268,7 @@ mimic_disguised_as_non_mon(struct monst *mtmp) } boolean -mimic_disguised_as_mon(struct monst *mtmp) +disguised_as_mon(struct monst *mtmp) { return (M_AP_TYPE(mtmp) && M_AP_TYPE(mtmp) == M_AP_MONSTER); diff --git a/src/zap.c b/src/zap.c index c43598386..930b4c150 100644 --- a/src/zap.c +++ b/src/zap.c @@ -192,7 +192,7 @@ bhitm(struct monst *mtmp, struct obj *otmp) reveal_invis = TRUE; learn_it = cansee(gb.bhitpos.x, gb.bhitpos.y); if (resists_magm(mtmp)) { /* match effect on player */ - if (disguised_mimic && !mimic_disguised_as_mon(mtmp)) + if (disguised_mimic && !disguised_as_mon(mtmp)) seemimic(mtmp); shieldeff(mtmp->mx, mtmp->my); pline("Boing!"); @@ -4887,7 +4887,7 @@ dobuzz( range -= 2; } else { if (saymiss - || (canseemon(mon) && !mimic_disguised_as_non_mon(mon))) + || (canseemon(mon) && !disguised_as_non_mon(mon))) miss(flash_str(fltyp, FALSE), mon); } } else if (u_at(sx, sy) && range >= 0) {