1 #include "effect/effect-player-oldies.h"
2 #include "effect/effect-player.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 "timed-effect/player-acceleration.h"
11 #include "view/display-messages.h"
13 void effect_player_old_heal(PlayerType *player_ptr, EffectPlayerType *ep_ptr)
15 if (player_ptr->blind) {
16 msg_print(_("何らかの攻撃によって気分がよくなった。", "You are hit by something invigorating!"));
19 (void)hp_player(player_ptr, ep_ptr->dam);
23 void effect_player_old_speed(PlayerType *player_ptr, EffectPlayerType *ep_ptr)
25 if (player_ptr->blind) {
26 msg_print(_("何かで攻撃された!", "You are hit by something!"));
29 (void)mod_acceleration(player_ptr, randint1(5), false);
33 void effect_player_old_slow(PlayerType *player_ptr)
35 if (player_ptr->blind) {
36 msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
39 (void)BadStatusSetter(player_ptr).mod_slowness(randint0(4) + 4, false);
42 void effect_player_old_sleep(PlayerType *player_ptr, EffectPlayerType *ep_ptr)
44 if (player_ptr->free_act) {
48 if (player_ptr->blind) {
49 msg_print(_("眠ってしまった!", "You fall asleep!"));
52 if (ironman_nightmare) {
53 msg_print(_("恐ろしい光景が頭に浮かんできた。", "A horrible vision enters your mind."));
55 /* Have some nightmares */
56 sanity_blast(player_ptr, nullptr, false);
59 (void)BadStatusSetter(player_ptr).mod_paralysis(static_cast<TIME_EFFECT>(ep_ptr->dam));