refine #K4060 fix - affect of riding on stealth

Hide some of the details about new Stealth.

Streamline mon_break_armor().  Move replicated bypass handling into
m_lose_armor().  Also, eliminate a 'goto'.
This commit is contained in:
PatR
2023-12-11 13:55:35 -08:00
parent 28bd51fecb
commit 8e99df14ae
4 changed files with 48 additions and 53 deletions

View File

@@ -136,15 +136,21 @@ float_vs_flight(void)
/* riding blocks stealth unless hero+steed fly, so a change in flying
might cause a change in stealth */
if (u.usteed) {
if (!Flying && !Levitation)
BStealth |= FROMOUTSIDE;
else
BStealth &= ~FROMOUTSIDE;
}
steed_vs_stealth();
gc.context.botl = TRUE;
}
/* riding blocks stealth unless hero+steed fly */
void
steed_vs_stealth(void)
{
if (u.usteed && !Flying && !Levitation)
BStealth |= FROMOUTSIDE;
else
BStealth &= ~FROMOUTSIDE;
}
/* for changing into form that's immune to strangulation */
static void
check_strangling(boolean on)