/* Cancel the arg */
command_arg = 0;
}
-
- /* Take a turn */
p_ptr->energy_use = 100;
/* Search */
static bool do_cmd_open_chest(POSITION y, POSITION x, OBJECT_IDX o_idx)
{
int i, j;
-
bool flag = TRUE;
-
bool more = FALSE;
-
object_type *o_ptr = &o_list[o_idx];
-
- /* Take a turn */
p_ptr->energy_use = 100;
/* Attempt to unlock it */
/* Get requested grid */
cave_type *c_ptr = &cave[y][x];
-
feature_type *f_ptr = &f_info[c_ptr->feat];
-
bool more = FALSE;
-
- /* Take a turn */
p_ptr->energy_use = 100;
/* Seeing true feature code (ignore mimic) */
/* Monster in the way */
else if (c_ptr->m_idx && p_ptr->riding != c_ptr->m_idx)
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
FEAT_IDX old_feat = c_ptr->feat;
bool more = FALSE;
- /* Take a turn */
p_ptr->energy_use = 100;
/* Seeing true feature code (ignore mimic) */
/* Monster in the way */
else if (c_ptr->m_idx)
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
/* Verify legality */
if (!do_cmd_tunnel_test(y, x)) return (FALSE);
- /* Take a turn */
p_ptr->energy_use = 100;
/* Get grid */
/* A monster is in the way */
else if (c_ptr->m_idx)
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
static bool do_cmd_disarm_chest(POSITION y, POSITION x, OBJECT_IDX o_idx)
{
int i, j;
-
bool more = FALSE;
-
object_type *o_ptr = &o_list[o_idx];
-
- /* Take a turn */
p_ptr->energy_use = 100;
/* Get the "disarm" factor */
/* Extract trap "power" */
int power = f_ptr->power;
-
bool more = FALSE;
/* Get the "disarm" factor */
int i = p_ptr->skill_dis;
-
int j;
- /* Take a turn */
p_ptr->energy_use = 100;
/* Penalize some conditions */
cptr name = f_name + f_info[get_feat_mimic(c_ptr)].name;
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
/* Monster in the way */
else if (c_ptr->m_idx)
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
feat = get_feat_mimic(c_ptr);
f_ptr = &f_info[feat];
- /* Take a turn */
p_ptr->energy_use = 100;
/* Attack monsters */
/* Is a monster in the way? */
else if (c_ptr->m_idx)
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Message */
/* Go for it */
else
{
- /* Take a turn */
p_ptr->energy_use = 100;
/* Successful jamming */
/* Get a "repeated" direction */
if (get_rep_dir(&dir, FALSE))
{
- /* Take a turn */
p_ptr->energy_use = 100;
if ((dir != 5) && (p_ptr->special_defense & KATA_MUSOU))
command_arg = 0;
}
- /* Take a turn */
p_ptr->energy_use = 100;
if (pickup) mpe_mode |= MPE_DO_PICKUP;
p_ptr->redraw |= (PR_EQUIPPY);
}
- /* Take a turn */
p_ptr->energy_use = 100;
/* Rogue and Ninja gets bonus */