OSDN Git Service

Merge remote-tracking branch 'remotes/origin/feature/Fix-Throw-Redraw' into develop
[hengband/hengband.git] / src / specific-object / blade-turner.c
1 #include "specific-object/blade-turner.h"
2 #include "core/hp-mp-processor.h"
3 #include "spell-kind/spells-launcher.h"
4 #include "spell/spell-types.h"
5 #include "status/bad-status-setter.h"
6 #include "status/buff-setter.h"
7 #include "status/element-resistance.h"
8 #include "target/target-getter.h"
9 #include "view/display-messages.h"
10
11 bool activate_bladeturner(player_type *user_ptr)
12 {
13     DIRECTION dir;
14     if (!get_aim_dir(user_ptr, &dir))
15         return FALSE;
16
17     msg_print(_("あなたはエレメントのブレスを吐いた。", "You breathe the elements."));
18     fire_breath(user_ptr, GF_MISSILE, dir, 300, 4);
19     msg_print(_("鎧が様々な色に輝いた...", "Your armor glows many colours..."));
20     (void)set_afraid(user_ptr, 0);
21     (void)set_hero(user_ptr, randint1(50) + 50, FALSE);
22     (void)hp_player(user_ptr, 10);
23     (void)set_blessed(user_ptr, randint1(50) + 50, FALSE);
24     (void)set_oppose_acid(user_ptr, randint1(50) + 50, FALSE);
25     (void)set_oppose_elec(user_ptr, randint1(50) + 50, FALSE);
26     (void)set_oppose_fire(user_ptr, randint1(50) + 50, FALSE);
27     (void)set_oppose_cold(user_ptr, randint1(50) + 50, FALSE);
28     (void)set_oppose_pois(user_ptr, randint1(50) + 50, FALSE);
29     return TRUE;
30 }