}
/* Get a "repeated" direction */
- if (get_rep_dir(&dir, TRUE))
+ if (get_rep_dir(creature_ptr, &dir, TRUE))
{
FEAT_IDX feat;
grid_type *g_ptr;
}
/* Get a "repeated" direction */
- if (get_rep_dir(&dir, FALSE))
+ if (get_rep_dir(creature_ptr, &dir, FALSE))
{
grid_type *g_ptr;
FEAT_IDX feat;
}
/* Get a direction to tunnel, or Abort */
- if (get_rep_dir(&dir,FALSE))
+ if (get_rep_dir(creature_ptr, &dir,FALSE))
{
/* Get location */
y = creature_ptr->y + ddy[dir];
}
/* Get a direction (or abort) */
- if (get_rep_dir(&dir,TRUE))
+ if (get_rep_dir(creature_ptr, &dir,TRUE))
{
grid_type *g_ptr;
FEAT_IDX feat;
}
/* Get a "repeated" direction */
- if (get_rep_dir(&dir,FALSE))
+ if (get_rep_dir(creature_ptr, &dir,FALSE))
{
FEAT_IDX feat;
}
/* Get a direction */
- if (get_rep_dir(&dir,TRUE))
+ if (get_rep_dir(creature_ptr, &dir,TRUE))
{
FEAT_IDX feat;
feature_type *f_ptr;
}
/* Get a "repeated" direction */
- if (!get_rep_dir(&dir, FALSE)) return;
+ if (!get_rep_dir(creature_ptr, &dir, FALSE)) return;
POSITION y = creature_ptr->y + ddy[dir];
POSITION x = creature_ptr->x + ddx[dir];
/* Get a "repeated" direction */
bool more = FALSE;
DIRECTION dir;
- if (get_rep_dir(&dir, FALSE))
+ if (get_rep_dir(creature_ptr, &dir, FALSE))
{
take_turn(creature_ptr, 100);
}
/* Get a "repeated" direction */
- if (get_rep_dir(&dir,FALSE))
+ if (get_rep_dir(creature_ptr, &dir,FALSE))
{
/* Hack -- Set the run counter */
creature_ptr->running = (command_arg ? command_arg : 1000);
/* First step */
- run_step(dir);
+ run_step(creature_ptr, dir);
}
}
project_length = tdis + 1;
/* Get a direction (or cancel) */
- if (!get_aim_dir(&dir)) return FALSE;
+ if (!get_aim_dir(creature_ptr, &dir)) return FALSE;
/* Predict the "target" location */
tx = creature_ptr->x + 99 * ddx[dir];
ty = creature_ptr->y + 99 * ddy[dir];
/* Check for "target request" */
- if ((dir == 5) && target_okay())
+ if ((dir == 5) && target_okay(creature_ptr))
{
tx = target_col;
ty = target_row;
if (m_ptr->ml)
{
- if (!creature_ptr->image) monster_race_track(m_ptr->ap_r_idx);
- health_track(g_ptr->m_idx);
+ if (!creature_ptr->image) monster_race_track(creature_ptr, m_ptr->ap_r_idx);
+ health_track(creature_ptr, g_ptr->m_idx);
}
}
if (tdam < 0) tdam = 0;
/* Modify the damage */
- tdam = mon_damage_mod(m_ptr, tdam, FALSE);
+ tdam = mon_damage_mod(creature_ptr, m_ptr, tdam, FALSE);
msg_format_wizard(CHEAT_MONSTER, _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"),
tdam, m_ptr->hp - tdam, m_ptr->maxhp, m_ptr->max_maxhp);
/* Hit the monster, check for death */
- if (mon_take_hit(g_ptr->m_idx, tdam, &fear, extract_note_dies(real_r_idx(m_ptr))))
+ if (mon_take_hit(creature_ptr, g_ptr->m_idx, tdam, &fear, extract_note_dies(real_r_idx(m_ptr))))
{
/* Dead monster */
}
{
if (item >= 0)
{
- msg_format(_("%sを受け損ねた!", "%s backs, but you can't catch!"), o2_name);
+ msg_format(_("%sを受け損ねた!", "%s comes backs, but you can't catch!"), o2_name);
}
else
{
}
else
{
- msg_format(_("%sが返ってこなかった!", "%s doesn't back!"), o2_name);
+ msg_format(_("%sが返ってこなかった!", "%s doesn't come back!"), o2_name);
}
}