}
}
-static void hit_trap_set_abnormal_status_p(concptr trap_message, bool resist, bool(*set_status)(player_type *, IDX), IDX turn_aux)
+static void hit_trap_set_abnormal_status_p(player_type *trapped_ptr, concptr trap_message, bool resist, bool(*set_status)(player_type *, IDX), IDX turn_aux)
{
msg_print(trap_message);
if (!resist)
{
- set_status(p_ptr, turn_aux);
+ set_status(trapped_ptr, turn_aux);
}
}
case TRAP_BLIND:
{
- hit_trap_set_abnormal_status_p(
+ hit_trap_set_abnormal_status_p(trapped_ptr,
_("黒いガスに包み込まれた!", "A black gas surrounds you!"),
trapped_ptr->resist_blind,
set_blind, trapped_ptr->blind + (TIME_EFFECT)randint0(50) + 25);
case TRAP_CONFUSE:
{
- hit_trap_set_abnormal_status_p(
+ hit_trap_set_abnormal_status_p(trapped_ptr,
_("きらめくガスに包み込まれた!", "A gas of scintillating colors surrounds you!"),
trapped_ptr->resist_conf,
set_confused, trapped_ptr->confused + (TIME_EFFECT)randint0(20) + 10);
case TRAP_POISON:
{
- hit_trap_set_abnormal_status_p(
+ hit_trap_set_abnormal_status_p(trapped_ptr,
_("刺激的な緑色のガスに包み込まれた!", "A pungent green gas surrounds you!"),
trapped_ptr->resist_pois || is_oppose_pois(trapped_ptr),
set_poisoned, trapped_ptr->poisoned + (TIME_EFFECT)randint0(20) + 10);