OSDN Git Service

Merge remote-tracking branch 'remotes/hengbandosx/english-mind-edits' into feature...
[hengband/hengband.git] / src / effect / effect-player-oldies.c
1 #include "effect/effect-player-oldies.h"
2 #include "core/hp-mp-processor.h"
3 #include "game-option/birth-options.h"
4 #include "monster-race/race-indice-types.h"
5 #include "player/eldritch-horror.h"
6 #include "status/bad-status-setter.h"
7 #include "status/buff-setter.h"
8 #include "view/display-messages.h"
9
10 void effect_player_old_heal(player_type *target_ptr, effect_player_type *ep_ptr)
11 {
12     if (target_ptr->blind)
13         msg_print(_("何らかの攻撃によって気分がよくなった。", "You are hit by something invigorating!"));
14
15     (void)hp_player(target_ptr, ep_ptr->dam);
16     ep_ptr->dam = 0;
17 }
18
19 void effect_player_old_speed(player_type *target_ptr, effect_player_type *ep_ptr)
20 {
21     if (target_ptr->blind)
22         msg_print(_("何かで攻撃された!", "You are hit by something!"));
23
24     (void)set_fast(target_ptr, target_ptr->fast + randint1(5), FALSE);
25     ep_ptr->dam = 0;
26 }
27
28 void effect_player_old_slow(player_type *target_ptr)
29 {
30     if (target_ptr->blind)
31         msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
32
33     (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
34 }
35
36 void effect_player_old_sleep(player_type *target_ptr, effect_player_type *ep_ptr)
37 {
38     if (target_ptr->free_act)
39         return;
40
41     if (target_ptr->blind)
42         msg_print(_("眠ってしまった!", "You fall asleep!"));
43
44     if (ironman_nightmare) {
45         msg_print(_("恐ろしい光景が頭に浮かんできた。", "A horrible vision enters your mind."));
46
47         /* Have some nightmares */
48         sanity_blast(target_ptr, NULL, FALSE);
49     }
50
51     set_paralyzed(target_ptr, target_ptr->paralyzed + ep_ptr->dam);
52     ep_ptr->dam = 0;
53 }