Sparkle shield effect and accessibility

When sparkle is turned off, there are some places where
a monster resisting the effect did not give any message.

This fixes some of those.
This commit is contained in:
Pasi Kallinen
2024-12-14 14:34:19 +02:00
parent b2b9b685c5
commit fd23463941
5 changed files with 18 additions and 8 deletions

View File

@@ -5838,4 +5838,15 @@ see_nearby_monsters(void)
}
}
/* monster resists something.
make a shield effect at monster's location and give a message */
void
shieldeff_mon(struct monst *mtmp)
{
shieldeff(mtmp->mx, mtmp->my);
/* does not depend on seeing the monster; the shield effect is visible */
if (cansee(mtmp->mx, mtmp->my))
pline_xy(mtmp->mx, mtmp->my, "%s resists!", Monnam(mtmp));
}
/*mon.c*/