OSDN Git Service

Merge branch 'develop' into macos-develop
[hengbandforosx/hengbandosx.git] / src / specific-object / blade-turner.cpp
1 #include "specific-object/blade-turner.h"
2 #include "effect/attribute-types.h"
3 #include "hpmp/hp-mp-processor.h"
4 #include "spell-kind/spells-launcher.h"
5 #include "status/bad-status-setter.h"
6 #include "status/buff-setter.h"
7 #include "status/element-resistance.h"
8 #include "system/player-type-definition.h"
9 #include "target/target-getter.h"
10 #include "view/display-messages.h"
11
12 bool activate_bladeturner(PlayerType *player_ptr)
13 {
14     DIRECTION dir;
15     if (!get_aim_dir(player_ptr, &dir)) {
16         return false;
17     }
18
19     msg_print(_("あなたはエレメントのブレスを吐いた。", "You breathe the elements."));
20     fire_breath(player_ptr, AttributeType::MISSILE, dir, 300, 4);
21     msg_print(_("鎧が様々な色に輝いた...", "Your armor glows many colours..."));
22     (void)BadStatusSetter(player_ptr).set_fear(0);
23     (void)set_hero(player_ptr, randint1(50) + 50, false);
24     (void)hp_player(player_ptr, 10);
25     (void)set_blessed(player_ptr, randint1(50) + 50, false);
26     (void)set_oppose_acid(player_ptr, randint1(50) + 50, false);
27     (void)set_oppose_elec(player_ptr, randint1(50) + 50, false);
28     (void)set_oppose_fire(player_ptr, randint1(50) + 50, false);
29     (void)set_oppose_cold(player_ptr, randint1(50) + 50, false);
30     (void)set_oppose_pois(player_ptr, randint1(50) + 50, false);
31     return true;
32 }