#include "angband.h"
#include "chest.h"
+#include "floor.h"
#include "melee.h"
#include "object-hook.h"
+#include "projection.h"
/*!
* @brief フロア脱出時に出戻りが不可能だった場合に警告を加える処理
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
bool more = FALSE;
+ if (p_ptr->wild_mode) return;
+
if (p_ptr->special_defense & KATA_MUSOU)
{
set_action(ACTION_NONE);
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
bool more = FALSE;
+ if (p_ptr->wild_mode) return;
+
if (p_ptr->special_defense & KATA_MUSOU)
{
set_action(ACTION_NONE);
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
cave_type *c_ptr;
feature_type *f_ptr, *mimic_f_ptr;
int power;
- cptr name;
+ concptr name;
bool more = FALSE;
/* Verify legality */
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
feature_type *f_ptr = &f_info[c_ptr->feat];
/* Access trap name */
- cptr name = (f_name + f_ptr->name);
+ concptr name = (f_name + f_ptr->name);
/* Extract trap "power" */
int power = f_ptr->power;
{
POSITION y, x;
DIRECTION dir;
- s16b o_idx;
+ OBJECT_IDX o_idx;
bool more = FALSE;
+ if (p_ptr->wild_mode) return;
+
if (p_ptr->special_defense & KATA_MUSOU)
{
set_action(ACTION_NONE);
}
-
/* Option: Pick a direction */
if (easy_disarm)
{
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
/* Disarm chest */
else if (o_idx)
{
- /* Disarm the chest */
more = do_cmd_disarm_chest(y, x, o_idx);
}
/* Disarm trap */
else
{
- /* Disarm the trap */
more = do_cmd_disarm_aux(y, x, dir);
}
}
bool more = FALSE;
- cptr name = f_name + f_info[get_feat_mimic(c_ptr)].name;
+ concptr name = f_name + f_info[get_feat_mimic(c_ptr)].name;
p_ptr->energy_use = 100;
*/
void do_cmd_bash(void)
{
- int y, x, dir;
-
+ int y, x, dir;
cave_type *c_ptr;
-
bool more = FALSE;
+ if (p_ptr->wild_mode) return;
if (p_ptr->special_defense & KATA_MUSOU)
{
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
{
DIRECTION dir;
+ if (p_ptr->wild_mode) return;
+
if (p_ptr->special_defense & KATA_MUSOU)
{
set_action(ACTION_NONE);
}
/* Get a "repeated" direction */
- if (get_rep_dir(&dir,FALSE))
+ if (get_rep_dir(&dir, FALSE))
{
POSITION y, x;
INVENTORY_IDX item;
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
{
/* Set repeat count */
command_rep = command_arg - 1;
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
/* Cancel the arg */
/* Prompt for time if needed */
if (command_arg <= 0)
{
- cptr p = _("休憩 (0-9999, '*' で HP/MP全快, '&' で必要なだけ): ",
+ concptr p = _("休憩 (0-9999, '*' で HP/MP全快, '&' で必要なだけ): ",
"Rest (0-9999, '*' for HP/SP, '&' as needed): ");
/* Save the rest code */
resting = command_arg;
p_ptr->action = ACTION_REST;
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
+ update_creature(p_ptr);
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
- handle_stuff();
+ update_output();
Term_fresh();
}
monster_race *r_ptr = &r_info[m_ptr->r_idx];
BIT_FLAGS flgs[TR_FLAG_SIZE];
-
- /* Extract the flags */
object_flags(o_ptr, flgs);
/* Some "weapons" and "ammo" do extra damage */
if (m_ptr->ml)
{
- /* Hack -- Track this monster race */
if (!p_ptr->image) monster_race_track(m_ptr->ap_r_idx);
-
- /* Hack -- Track this monster */
health_track(c_mon_ptr->m_idx);
}
}
m_ptr->fx = nx;
m_ptr->fy = ny;
- /* Update the monster (new location) */
update_monster(c_mon_ptr->m_idx, TRUE);
lite_spot(ny, nx);
{
OBJECT_IDX item;
object_type *j_ptr, *ammo_ptr;
- cptr q, s;
+ concptr q, s;
+
+ if(p_ptr->wild_mode) return;
is_fired = FALSE; /* not fired yet */
int msec = delay_factor * delay_factor * delay_factor;
BIT_FLAGS flgs[TR_FLAG_SIZE];
- cptr q, s;
+ concptr q, s;
bool come_back = FALSE;
bool do_drop = TRUE;
+ if (p_ptr->wild_mode) return FALSE;
if (p_ptr->special_defense & KATA_MUSOU)
{
if (shuriken >= 0)
{
item = shuriken;
+ o_ptr = &inventory[item];
}
else if (boomerang)
{
return FALSE;
}
}
- else if (buki_motteruka(INVEN_LARM)) item = INVEN_LARM;
- else item = INVEN_RARM;
+ else if (buki_motteruka(INVEN_LARM))
+ {
+ item = INVEN_LARM;
+ o_ptr = &inventory[item];
+ }
+ else
+ {
+ item = INVEN_RARM;
+ o_ptr = &inventory[item];
+ }
}
else
{
/* Single object */
q_ptr->number = 1;
- /* Description */
object_desc(o_name, q_ptr, OD_OMIT_PREFIX);
if (p_ptr->mighty_throw) mult += 3;
/* The player can see the (on screen) missile */
if (panel_contains(ny[cur_dis], nx[cur_dis]) && player_can_see_bold(ny[cur_dis], nx[cur_dis]))
{
- char c = object_char(q_ptr);
- byte a = object_attr(q_ptr);
+ SYMBOL_CODE c = object_char(q_ptr);
+ TERM_COLOR a = object_attr(q_ptr);
/* Draw, Hilite, Fresh, Pause, Erase */
print_rel(c, a, ny[cur_dis], nx[cur_dis]);
if (m_ptr->ml)
{
- /* Hack -- Track this monster race */
if (!p_ptr->image) monster_race_track(m_ptr->ap_r_idx);
-
- /* Hack -- Track this monster */
health_track(c_ptr->m_idx);
}
}
/* Wear the new stuff */
object_copy(o_ptr, q_ptr);
- /* Increase the weight */
p_ptr->total_weight += q_ptr->weight;
/* Increment the equip counter by hand */