1 #include "effect/effect-player-oldies.h"
2 #include "effect/effect-player-util.h"
3 #include "game-option/birth-options.h"
4 #include "hpmp/hp-mp-processor.h"
5 #include "monster-race/race-indice-types.h"
6 #include "player/eldritch-horror.h"
7 #include "status/bad-status-setter.h"
8 #include "status/buff-setter.h"
9 #include "system/player-type-definition.h"
10 #include "view/display-messages.h"
12 void effect_player_old_heal(player_type *target_ptr, effect_player_type *ep_ptr)
14 if (target_ptr->blind)
15 msg_print(_("何らかの攻撃によって気分がよくなった。", "You are hit by something invigorating!"));
17 (void)hp_player(target_ptr, ep_ptr->dam);
21 void effect_player_old_speed(player_type *target_ptr, effect_player_type *ep_ptr)
23 if (target_ptr->blind)
24 msg_print(_("何かで攻撃された!", "You are hit by something!"));
26 (void)set_fast(target_ptr, target_ptr->fast + randint1(5), false);
30 void effect_player_old_slow(player_type *target_ptr)
32 if (target_ptr->blind)
33 msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
35 (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
38 void effect_player_old_sleep(player_type *target_ptr, effect_player_type *ep_ptr)
40 if (target_ptr->free_act)
43 if (target_ptr->blind)
44 msg_print(_("眠ってしまった!", "You fall asleep!"));
46 if (ironman_nightmare) {
47 msg_print(_("恐ろしい光景が頭に浮かんできた。", "A horrible vision enters your mind."));
49 /* Have some nightmares */
50 sanity_blast(target_ptr, nullptr, false);
53 set_paralyzed(target_ptr, target_ptr->paralyzed + ep_ptr->dam);