/* Window stuff */
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
- if (p_ptr->pclass == CLASS_NINJA)
+ if (p_ptr->special_defense & NINJA_S_STEALTH)
{
if (cave[py][px].info & CAVE_GLOW) set_superstealth(FALSE);
- else if (p_ptr->cur_lite <= 0) set_superstealth(TRUE);
}
}
}
#endif
}
- if (p_ptr->pclass == CLASS_NINJA)
- {
- if (cave[py][px].info & CAVE_GLOW) set_superstealth(FALSE);
- else if (p_ptr->cur_lite <= 0) set_superstealth(TRUE);
- }
+ if (p_ptr->special_defense & NINJA_S_STEALTH) set_superstealth(FALSE);
/*** Process this dungeon level ***/
/* Mega-Hack -- Update the monster in the affected grid */
/* This allows "spear of light" (etc) to work "correctly" */
if (c_ptr->m_idx) update_mon(c_ptr->m_idx, FALSE);
-
- if ((p_ptr->pclass == CLASS_NINJA) && (p_ptr->cur_lite <= 0))
- {
- if (player_bold(y, x)) set_superstealth(TRUE);
- }
}
/* All done */
/* Become blind */
(void)set_blind(p_ptr->blind + 10 + randint1(10));
}
-
- if ((p_ptr->pclass == CLASS_NINJA) && (p_ptr->cur_lite <= 0))
- {
- if (!(cave[py][px].info & CAVE_GLOW)) set_superstealth(TRUE);
- }
}
forget_flow();
}
- if ((p_ptr->pclass == CLASS_NINJA) && (p_ptr->cur_lite <= 0))
- {
- if (!(cave[py][px].info & CAVE_GLOW)) set_superstealth(TRUE);
- }
-
/* Examine the quaked region */
for (dy = -r; dy <= r; dy++)
{
/* Now, darken them all at once */
cave_temp_room_unlite();
-
- if ((p_ptr->pclass == CLASS_NINJA) && (p_ptr->cur_lite <= 0))
- {
- if (!(cave[py][px].info & CAVE_GLOW)) set_superstealth(TRUE);
- }
}