/* Now decided to destroy */
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
/* Artifact? */
if (!can_player_destroy_object(o_ptr))
if (idx >= 0 &&
(autopick_list[idx].action & (DO_AUTOPICK | DO_QUERY_AUTOPICK)))
{
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
if (!inven_carry_okay(o_ptr))
{
}
/* Cancel repeat unless we may continue */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
}
/* Cancel repeat unless we may continue */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
}
/* Cancel repetition unless we can continue */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
/*!
}
/* Cancel repeat unless told not to */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
}
/* Unless valid action taken, cancel bash */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
}
/* Cancel repetition unless we can continue */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
}
/* Cancel repeat unless we may continue */
- if (!more) disturb(FALSE, FALSE);
+ if (!more) disturb(p_ptr, FALSE, FALSE);
}
monster_race *r_ptr = &r_info[m_ptr->r_idx];
GAME_TEXT m_name[MAX_NLEN];
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
take_turn(p_ptr, 100);
if (!effect || check_hit(power, rlev, MON_STUNNED(m_ptr)))
{
/* Always disturbing */
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
/* Hack -- Apply "protection from evil" */
/* Visible monsters */
if (m_ptr->ml)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
#ifdef JP
if (abbreviate)
current_floor_ptr->monster_noise = TRUE;
}
- if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(TRUE, TRUE);
+ if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(p_ptr, TRUE, TRUE);
/* Scan through all four blows */
for (ap_cnt = 0; ap_cnt < 4; ap_cnt++)
case RBM_EXPLODE:
{
- if (see_either) disturb(TRUE, TRUE);
+ if (see_either) disturb(p_ptr, TRUE, TRUE);
act = _("爆発した。", "explodes.");
explode = TRUE;
touched = FALSE;
(void)set_monster_csleep(m_idx, 0);
- if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(TRUE, TRUE);
+ if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(p_ptr, TRUE, TRUE);
if (MON_INVULNER(m_ptr) && randint0(PENETRATE_INVULNERABILITY))
{
}
/* Stop everything */
- if (disturb_minor) disturb(FALSE, FALSE);
+ if (disturb_minor) disturb(p_ptr, FALSE, FALSE);
/* Get an object description */
object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
/* The light is now out */
else if (o_ptr->xtra4 == 0)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("明かりが消えてしまった!", "Your light has gone out!"));
/* Recalculate torch radius */
if ((o_ptr->xtra4 < 50) && (!(o_ptr->xtra4 % 5))
&& (current_world_ptr->game_turn % (TURNS_PER_TICK*2)))
{
- if (disturb_minor) disturb(FALSE, TRUE);
+ if (disturb_minor) disturb(p_ptr, FALSE, TRUE);
msg_print(_("明かりが微かになってきている。", "Your light is growing faint."));
}
}
/* The light is getting dim */
else if ((o_ptr->xtra4 < 100) && (!(o_ptr->xtra4 % 10)))
{
- if (disturb_minor) disturb(FALSE, TRUE);
+ if (disturb_minor) disturb(p_ptr, FALSE, TRUE);
msg_print(_("明かりが微かになってきている。", "Your light is growing faint."));
}
}
msg_format("Your %s is recharged.", o_name);
#endif
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
/* Done. */
return;
if (!p_ptr->paralyzed && (randint0(100) < 10))
{
msg_print(_("あまりにも空腹で気絶してしまった。", "You faint from the lack of food."));
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
/* Hack -- faint (bypass free action) */
(void)set_paralyzed(p_ptr, p_ptr->paralyzed + 1 + randint0(5));
if ((p_ptr->muta2 & MUT2_BERS_RAGE) && one_in_(3000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("ウガァァア!", "RAAAAGHH!"));
msg_print(_("激怒の発作に襲われた!", "You feel a fit of rage coming over you!"));
(void)set_shero(p_ptr, 10 + randint1(p_ptr->lev), FALSE);
{
if (!p_ptr->resist_fear)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("とても暗い... とても恐い!", "It's so dark... so scary!"));
set_afraid(p_ptr, p_ptr->afraid + 13 + randint1(26));
}
{
if (!p_ptr->resist_nexus && !(p_ptr->muta1 & MUT1_VTELEPORT) && !p_ptr->anti_tele)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("あなたの位置は突然ひじょうに不確定になった...", "Your position suddenly seems very uncertain..."));
msg_print(NULL);
teleport_player(40, TELEPORT_PASSIVE);
{
if (!p_ptr->resist_conf && !p_ptr->resist_chaos)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
p_ptr->redraw |= PR_EXTRA;
msg_print(_("いひきがもーろーとひてきたきがふる...ヒック!", "You feel a SSSCHtupor cOmINg over yOu... *HIC*!"));
}
{
if (!p_ptr->resist_chaos)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
p_ptr->redraw |= PR_EXTRA;
(void)set_image(p_ptr, p_ptr->image + randint0(50) + 20);
}
if ((p_ptr->muta2 & MUT2_FLATULENT) && (randint1(3000) == 13))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("ブゥーーッ!おっと。", "BRRAAAP! Oops."));
msg_print(NULL);
fire_ball(GF_POIS, 0, p_ptr->lev, 3);
!p_ptr->anti_magic && one_in_(9000))
{
int dire = 0;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("魔法のエネルギーが突然あなたの中に流れ込んできた!エネルギーを解放しなければならない!",
"Magical energy flows through you! You must release it!"));
if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, SUMMON_DEMON, mode))
{
msg_print(_("あなたはデーモンを引き寄せた!", "You have attracted a demon!"));
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
if ((p_ptr->muta2 & MUT2_SPEED_FLUX) && one_in_(6000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
if (one_in_(2))
{
msg_print(_("精力的でなくなった気がする。", "You feel less energetic."));
}
if ((p_ptr->muta2 & MUT2_BANISH_ALL) && one_in_(9000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("突然ほとんど孤独になった気がする。", "You suddenly feel almost lonely."));
banish_monsters(100);
if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, SUMMON_ANIMAL, mode))
{
msg_print(_("動物を引き寄せた!", "You have attracted an animal!"));
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
if ((p_ptr->muta2 & MUT2_RAW_CHAOS) && !p_ptr->anti_magic && one_in_(8000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("周りの空間が歪んでいる気がする!", "You feel the world warping around you!"));
msg_print(NULL);
}
if ((p_ptr->muta2 & MUT2_WRAITH) && !p_ptr->anti_magic && one_in_(3000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("非物質化した!", "You feel insubstantial!"));
msg_print(NULL);
if (!sustained)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("自分が衰弱していくのが分かる!", "You can feel yourself wasting away!"));
msg_print(NULL);
(void)dec_stat(p_ptr, which_stat, randint1(6) + 6, one_in_(3));
if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, current_floor_ptr->dun_level, SUMMON_DRAGON, mode))
{
msg_print(_("ドラゴンを引き寄せた!", "You have attracted a dragon!"));
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
if ((p_ptr->muta2 & MUT2_WEIRD_MIND) && !p_ptr->anti_magic && one_in_(3000))
}
if ((p_ptr->muta2 & MUT2_NAUSEA) && !p_ptr->slow_digest && one_in_(9000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("胃が痙攣し、食事を失った!", "Your stomach roils, and you lose your lunch!"));
msg_print(NULL);
set_food(p_ptr, PY_FOOD_WEAK);
if ((p_ptr->muta2 & MUT2_INVULN) && !p_ptr->anti_magic && one_in_(5000))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("無敵な気がする!", "You feel invincible!"));
msg_print(NULL);
(void)set_invuln(p_ptr, randint1(8) + 8, FALSE);
INVENTORY_IDX slot = 0;
object_type *o_ptr = NULL;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("足がもつれて転んだ!", "You trip over your own feet!"));
take_hit(p_ptr, DAMAGE_NOESCAPE, randint1(p_ptr->wt / 6), _("転倒", "tripping"), -1);
msg_format(_("%sがテレポートの能力を発動させようとしている。", "Your %s is activating teleportation."), o_name);
if (get_check_strict(_("テレポートしますか?", "Teleport? "), CHECK_OKAY_CANCEL))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
teleport_player(50, 0L);
}
else
{
msg_format(_("%sに{.}(ピリオド)と銘を刻むと発動を抑制できます。",
"You can inscribe {.} on your %s to disable random teleportation. "), o_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
}
/* Make a chainsword noise */
char noise[1024];
if (!get_rnd_line(_("chainswd_j.txt", "chainswd.txt"), 0, noise))
msg_print(noise);
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
}
/* TY Curse */
if ((p_ptr->cursed & TRC_TY_CURSE) && one_in_(TY_CURSE_CHANCE))
object_desc(o_name, choose_cursed_obj_name(TRC_CALL_ANIMAL), (OD_OMIT_PREFIX | OD_NAME_ONLY));
msg_format(_("%sが動物を引き寄せた!", "Your %s have attracted an animal!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
/* Call demon */
object_desc(o_name, choose_cursed_obj_name(TRC_CALL_DEMON), (OD_OMIT_PREFIX | OD_NAME_ONLY));
msg_format(_("%sが悪魔を引き寄せた!", "Your %s have attracted a demon!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
/* Call dragon */
object_desc(o_name, choose_cursed_obj_name(TRC_CALL_DRAGON), (OD_OMIT_PREFIX | OD_NAME_ONLY));
msg_format(_("%sがドラゴンを引き寄せた!", "Your %s have attracted an dragon!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
/* Call undead */
object_desc(o_name, choose_cursed_obj_name(TRC_CALL_UNDEAD), (OD_OMIT_PREFIX | OD_NAME_ONLY));
msg_format(_("%sが死霊を引き寄せた!", "Your %s have attracted an undead!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
if ((p_ptr->cursed & TRC_COWARDICE) && one_in_(1500))
{
if (!p_ptr->resist_fear)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
msg_print(_("とても暗い... とても恐い!", "It's so dark... so scary!"));
set_afraid(p_ptr, p_ptr->afraid + 13 + randint1(26));
}
/* Teleport player */
if ((p_ptr->cursed & TRC_TELEPORT) && one_in_(200) && !p_ptr->anti_tele)
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Teleport player */
teleport_player(40, TELEPORT_PASSIVE);
if (!p_ptr->word_recall)
{
/* Disturbing! */
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Determine the level */
if (current_floor_ptr->dun_level || p_ptr->inside_quest || p_ptr->enter_dungeon)
if (!p_ptr->alter_reality)
{
/* Disturbing! */
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Determine the level */
if (!quest_number(current_floor_ptr->dun_level) && current_floor_ptr->dun_level)
/* Every 15 minutes after 11:00 pm */
if ((hour == 23) && !(min % 15))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
switch (min / 15)
{
if (!hour && !min)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
msg_print(_("遠くで鐘が何回も鳴り、死んだような静けさの中へ消えていった。", "A distant bell tolls many times, fading into an deathly silence."));
if (p_ptr->wild_mode)
/* Access the slot to be dropped */
o_ptr = &p_ptr->inventory_list[INVEN_PACK];
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Warning */
msg_print(_("ザックからアイテムがあふれた!", "Your pack overflows!"));
{
msg_print(_("餌だけ食われてしまった!くっそ~!", "Damn! The fish stole your bait!"));
}
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
{
flush(); /* Flush input */
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Hack -- Show a Message */
msg_print(_("中断しました。", "Canceled."));
repair_objects = TRUE;
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
/* Get index of current quest (if any) */
quest_num = quest_number(current_floor_ptr->dun_level);
}
else
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
/* Clear messages */
prt("", 0, 0);
/* Hack -- current_world_ptr->game_turn off some things */
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
/* Mega-Hack -- Delay death */
if (p_ptr->chp < 0) p_ptr->is_dead = FALSE;
/* Update the level indicator */
p_ptr->redraw |= (PR_DEPTH);
- if (disturb_minor) disturb(FALSE, FALSE);
+ if (disturb_minor) disturb(p_ptr, FALSE, FALSE);
}
msg_format(_("%sは傷の痛さの余りあなたの束縛から逃れようとしている。",
"%^s seems to be in so much pain, and trying to escape from your restriction."), m_name);
riding_pinch++;
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
else
{
one_in_(CYBERNOISE) &&
!m_ptr->ml && (m_ptr->cdis <= MAX_SIGHT))
{
- if (disturb_minor) disturb(FALSE, FALSE);
+ if (disturb_minor) disturb(p_ptr, FALSE, FALSE);
msg_print(_("重厚な足音が聞こえた。", "You hear heavy steps."));
}
msg_print(_("ドアを叩き開ける音がした!", "You hear a door burst open!"));
/* Disturb (sometimes) */
- if (disturb_minor) disturb(FALSE, FALSE);
+ if (disturb_minor) disturb(p_ptr, FALSE, FALSE);
/* The door was bashed open */
did_bash_door = TRUE;
(disturb_high && ap_r_ptr->r_tkills && ap_r_ptr->level >= p_ptr->lev)))
{
if (is_hostile(m_ptr))
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
/* Take or Kill objects on the floor */
if (disturb_near && (projectable(m_ptr->fy, m_ptr->fx, p_ptr->y, p_ptr->x) && projectable(p_ptr->y, p_ptr->x, m_ptr->fy, m_ptr->fx)))
{
if (disturb_pets || is_hostile(m_ptr))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
}
}
if (do_disturb)
{
if (disturb_pets || is_hostile(m_ptr))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
}
}
if (do_disturb)
{
if (disturb_pets || is_hostile(m_ptr))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
}
}
if (do_disturb)
{
if (disturb_pets || is_hostile(m_ptr))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
}
}
if (!spell_is_inate(thrown_spell)
&& (in_no_magic_dungeon || (MON_STUNNED(m_ptr) && one_in_(2)) || (randint0(100) < failrate)))
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
msg_format(_("%^sは呪文を唱えようとしたが失敗した。", "%^s tries to cast a spell, but fails."), m_name);
return (TRUE);
/* Choose a spell to cast */
thrown_spell = spell[randint0(num)];
- if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(TRUE, TRUE);
+ if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(p_ptr, TRUE, TRUE);
/* Check for spell failure (inate attacks never fail) */
if (!spell_is_inate(thrown_spell) && (in_no_magic_dungeon || (MON_STUNNED(m_ptr) && one_in_(2))))
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (see_m) msg_format(_("%^sは呪文を唱えようとしたが失敗した。",
"%^s tries to cast a spell, but fails."), m_name);
monster_name(t_idx, t_name);
if (mon_to_player || (mon_to_mon && known && see_either))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (msg_flag_aux)
{
}
if (mon_to_player || (mon_to_mon && known && see_either))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (m_ptr->r_idx == MON_JAIAN && GF_TYPE == GF_SOUND)
{
if (TARGET_TYPE == MONSTER_TO_PLAYER)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
}
else if (TARGET_TYPE == MONSTER_TO_MONSTER && see_monster(m_idx))
{
if (TARGET_TYPE == MONSTER_TO_PLAYER)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (!seen)
msg_print(_("何かがあなたの精神に念を放っているようだ。", "You feel something focusing on your mind."));
else
if (TARGET_TYPE == MONSTER_TO_PLAYER)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (!seen)
msg_print(_("何かがあなたの精神に念を放っているようだ。", "You feel something focusing on your mind."));
else
if (TARGET_TYPE == MONSTER_TO_PLAYER)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (p_ptr->blind)
msg_format(msg1, m_name);
else
if (TARGET_TYPE == MONSTER_TO_PLAYER)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (p_ptr->blind)
msg_format(msg1, m_name);
else
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
monspell_message_base(m_idx, t_idx,
_("%^sが何かをつぶやいた。", "%^s mumbles."),
monster_name(m_idx, m_name);
if (TARGET_TYPE==MONSTER_TO_PLAYER)
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (teleport_barrier(m_idx))
{
monster_name(m_idx, m_name);
if (TARGET_TYPE==MONSTER_TO_PLAYER)
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (teleport_barrier(m_idx))
{
if(see_monster(m_idx))
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (m_ptr->r_idx == MON_DIO) who = 1;
else if (m_ptr->r_idx == MON_WONG) who = 3;
if (!set_monster_timewalk(randint1(2) + 2, who, TRUE)) return (FALSE);
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (one_in_(3) || !direct)
{
simple_monspell_message(m_idx, t_idx,
monster_type *m_ptr = ¤t_floor_ptr->m_list[m_idx];
monster_race *r_ptr = &r_info[m_ptr->r_idx];
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
switch (m_ptr->r_idx)
{
case MON_OHMU:
{
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (p_ptr->blind)
msg_format(_("%^sが何かをつぶやいて邪悪に微笑んだ。",
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
msg_format(_("%^sがあなたの記憶を消去しようとしている。",
"%^s tries to blank your mind."), m_name);
monster_name(t_idx, t_name);
monster_desc(m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT)
{
monspell_message(m_idx, t_idx,
else
{
if (mon_to_player || (mon_to_mon && known && see_either))
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (p_ptr->blind)
{
GAME_TEXT m_name[MAX_NLEN];
monster_name(m_idx, m_name);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (((m_ptr->r_idx == MON_MORGOTH) || (m_ptr->r_idx == MON_SAURON) || (m_ptr->r_idx == MON_ANGMAR)) &&
((r_info[MON_NAZGUL].cur_num + 2) < r_info[MON_NAZGUL].max_num) &&
if (damage_type != DAMAGE_USELIFE)
{
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if (auto_more)
{
creature_ptr->now_damaged = TRUE;
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, TRUE);
+ if (disturb_state) disturb(p_ptr, FALSE, TRUE);
creature_ptr->redraw |= (PR_BASIC | PR_STATUS);
creature_ptr->update |= (PU_BONUS | PU_HP);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
/* Fully update the visuals */
creature_ptr->update |= (PU_UN_VIEW | PU_UN_LITE | PU_VIEW | PU_LITE | PU_MONSTERS | PU_MON_LITE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->redraw |= (PR_STATE);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, TRUE);
+ if (disturb_state) disturb(p_ptr, FALSE, TRUE);
creature_ptr->redraw |= (PR_MAP | PR_HEALTH | PR_UHEALTH);
creature_ptr->update |= (PU_MONSTERS);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
creature_ptr->update |= (PU_MONSTERS);
handle_stuff();
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Update the monsters */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Update the monsters */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
#endif
}
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->redraw |= (PR_STATUS);
creature_ptr->update |= (PU_BONUS);
_("(なし)", "do nothing special.")))))));
}
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->redraw |= (PR_STATUS);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
if (!notice) return (FALSE);
creature_ptr->redraw |= (PR_STATUS);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
handle_stuff();
return (TRUE);
}
case 0:
msg_print(_("やっと朦朧状態から回復した。", "You are no longer stunned."));
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
break;
}
/* No change */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Redraw the "stun" */
case 0:
msg_format(_("やっと%s。", "You are no longer bleeding."), creature_ptr->prace == RACE_ANDROID ? "怪我が直った" : "出血が止まった");
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
break;
}
/* No change */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Redraw the "cut" */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
/* Redraw hunger */
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Nothing to notice */
if (!notice) return (FALSE);
- if (disturb_state) disturb(FALSE, FALSE);
+ if (disturb_state) disturb(p_ptr, FALSE, FALSE);
creature_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
/* Access the next object */
next_o_idx = o_ptr->next_o_idx;
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
/* Pick up gold */
if (o_ptr->tval == TV_GOLD)
{
disclose_grid(y, x);
msg_print(_("トラップを発見した。", "You have found a trap."));
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
/* Secret door */
{
msg_print(_("隠しドアを発見した。", "You have found a secret door."));
disclose_grid(y, x);
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
}
/* Scan all objects in the grid */
{
msg_print(_("箱に仕掛けられたトラップを発見した!", "You have discovered a trap on the chest!"));
object_known(o_ptr);
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
}
}
}
object_desc(o_name, o_ptr, 0);
next_o_idx = o_ptr->next_o_idx;
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
/* Pick up gold */
if (o_ptr->tval == TV_GOLD)
/* Handle "store doors" */
if (have_flag(f_ptr->flags, FF_STORE))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
free_turn(creature_ptr);
/* Hack -- Enter store */
/* Handle "building doors" -KMW- */
else if (have_flag(f_ptr->flags, FF_BLDG))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
free_turn(creature_ptr);
/* Hack -- Enter building */
/* Handle quest areas -KMW- */
else if (have_flag(f_ptr->flags, FF_QUEST_ENTER))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
free_turn(creature_ptr);
/* Hack -- Enter quest level */
/* Set off a trap */
else if (have_flag(f_ptr->flags, FF_HIT_TRAP) && !(mpe_mode & MPE_STAYING))
{
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
/* Hidden trap */
if (g_ptr->mimic || have_flag(f_ptr->flags, FF_SECRET))
msg_print(_("* 注意:この先はトラップの感知範囲外です! *", "*Leaving trap detect region!*"));
}
- if (disturb_trap_detect) disturb(FALSE, TRUE);
+ if (disturb_trap_detect) disturb(p_ptr, FALSE, TRUE);
}
}
msg_print(_("動けない!", "Can't move!"));
free_turn(creature_ptr);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
else if (MON_MONFEAR(riding_m_ptr))
{
monster_desc(steed_name, riding_m_ptr, 0);
msg_format(_("%sが恐怖していて制御できない。", "%^s is too scared to control."), steed_name);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
else if (creature_ptr->riding_ryoute)
{
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
else if (have_flag(f_ptr->flags, FF_CAN_FLY) && (riding_r_ptr->flags7 & RF7_CAN_FLY))
{
msg_format(_("%sの上に行けない。", "Can't swim."), f_name + f_info[get_feat_mimic(g_ptr)].name);
free_turn(creature_ptr);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
else if (!have_flag(f_ptr->flags, FF_WATER) && (riding_r_ptr->flags7 & RF7_AQUATIC))
{
msg_format(_("%sから上がれない。", "Can't land."), f_name + f_info[get_feat_mimic(¤t_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x])].name);
free_turn(creature_ptr);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
else if (have_flag(f_ptr->flags, FF_LAVA) && !(riding_r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK))
{
msg_format(_("%sの上に行けない。", "Too hot to go through."), f_name + f_info[get_feat_mimic(g_ptr)].name);
free_turn(creature_ptr);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
if (oktomove && MON_STUNNED(riding_m_ptr) && one_in_(2))
monster_desc(steed_name, riding_m_ptr, 0);
msg_format(_("%sが朦朧としていてうまく動けない!", "You cannot control stunned %s!"), steed_name);
oktomove = FALSE;
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
}
}
}
}
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
if (!boundary_floor(g_ptr, f_ptr, mimic_f_ptr)) sound(SOUND_HITWALL);
}
}
/* To avoid a loop with running */
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
oktomove = FALSE;
}
msg_print(_("その方向には走れません。", "You cannot run in that direction."));
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
return;
}
/* Update run */
if (run_test())
{
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
return;
}
{
p_ptr->run_py = 0;
p_ptr->run_px = 0;
- disturb(FALSE, FALSE);
+ disturb(p_ptr, FALSE, FALSE);
}
}
msg_print(_("道筋が見つかりません!", "No route is found!"));
travel.y = travel.x = 0;
}
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
return;
}
* The second arg is currently unused, but could induce output flush.
* All disturbance cancels repeated commands, resting, and running.
*/
-void disturb(bool stop_search, bool stop_travel)
+void disturb(player_type *creature_ptr, bool stop_search, bool stop_travel)
{
#ifndef TRAVEL
/* Unused */
command_rep = 0;
/* Redraw the state (later) */
- p_ptr->redraw |= (PR_STATE);
+ creature_ptr->redraw |= (PR_STATE);
}
/* Cancel Resting */
- if ((p_ptr->action == ACTION_REST) || (p_ptr->action == ACTION_FISH) || (stop_search && (p_ptr->action == ACTION_SEARCH)))
+ if ((creature_ptr->action == ACTION_REST) || (creature_ptr->action == ACTION_FISH) || (stop_search && (creature_ptr->action == ACTION_SEARCH)))
{
/* Cancel */
- set_action(p_ptr, ACTION_NONE);
+ set_action(creature_ptr, ACTION_NONE);
}
/* Cancel running */
- if (p_ptr->running)
+ if (creature_ptr->running)
{
/* Cancel */
- p_ptr->running = 0;
+ creature_ptr->running = 0;
/* Check for new panel if appropriate */
if (center_player && !center_running) verify_panel();
/* Calculate torch radius */
- p_ptr->update |= (PU_TORCH);
+ creature_ptr->update |= (PU_TORCH);
/* Update monster flow */
- p_ptr->update |= (PU_FLOW);
+ creature_ptr->update |= (PU_FLOW);
}
#ifdef TRAVEL
if (center_player && !center_running) verify_panel();
/* Calculate torch radius */
- p_ptr->update |= (PU_TORCH);
+ creature_ptr->update |= (PU_TORCH);
}
#endif
*/
#define TRAVEL
-extern void disturb(bool stop_search, bool flush_output);
+extern void disturb(player_type *creature_ptr, bool stop_search, bool flush_output);
extern void move_player(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool break_trap);
extern void run_step(DIRECTION dir);
/* Get the monster possessive ("his"/"her"/"its") */
monster_desc(m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
- if (p_ptr->riding && (g_ptr->m_idx == p_ptr->riding)) disturb(TRUE, TRUE);
+ if (p_ptr->riding && (g_ptr->m_idx == p_ptr->riding)) disturb(p_ptr, TRUE, TRUE);
if (r_ptr->flagsr & RFR_RES_ALL &&
typ != GF_OLD_CLONE && typ != GF_STAR_HEAL && typ != GF_OLD_HEAL
project(0, 0, t_y, t_x, dam, typ, (PROJECT_STOP|PROJECT_KILL|PROJECT_REFLECTABLE), monspell);
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
return TRUE;
}
}
- disturb(TRUE, TRUE);
+ disturb(p_ptr, TRUE, TRUE);
if ((p_ptr->special_defense & NINJA_KAWARIMI) && dam && who && (who != p_ptr->riding))
panel_col_min = pcol_min;
/* Hack -- optional disturb on "panel change" */
- if (disturb_panel && !center_player) disturb(FALSE, FALSE);
+ if (disturb_panel && !center_player) disturb(p_ptr, FALSE, FALSE);
panel_bounds_center();
int trap_feat_type = have_flag(f_ptr->flags, FF_TRAP) ? f_ptr->subtype : NOT_TRAP;
concptr name = _("トラップ", "a trap");
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
cave_alter_feat(y, x, FF_HIT_TRAP);
strcpy(o_name, _("体", "body")); /* Warning ability without item */
msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
}
}
else
strcpy(o_name, _("体", "body")); /* Warning ability without item */
msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
- disturb(FALSE, TRUE);
+ disturb(p_ptr, FALSE, TRUE);
return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
}