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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user