1 #include "object-activation/activation-teleport.h"
2 #include "cmd-io/cmd-save.h"
3 #include "core/asking-player.h"
4 #include "effect/attribute-types.h"
5 #include "game-option/special-options.h"
6 #include "spell-kind/spells-grid.h"
7 #include "spell-kind/spells-launcher.h"
8 #include "spell-kind/spells-teleport.h"
9 #include "spell-kind/spells-world.h"
10 #include "system/player-type-definition.h"
11 #include "target/target-getter.h"
12 #include "view/display-messages.h"
14 bool activate_teleport_away(PlayerType *player_ptr)
17 if (!get_aim_dir(player_ptr, &dir)) {
21 (void)fire_beam(player_ptr, AttributeType::AWAY_ALL, dir, player_ptr->lev);
25 bool activate_escape(PlayerType *player_ptr)
27 switch (randint1(13)) {
33 teleport_player(player_ptr, 10, TELEPORT_SPONTANEOUS);
40 teleport_player(player_ptr, 222, TELEPORT_SPONTANEOUS);
44 (void)stair_creation(player_ptr);
47 if (!input_check(_("この階を去りますか?", "Leave this level? "))) {
52 do_cmd_save_game(player_ptr, true);
55 player_ptr->leaving = true;
60 bool activate_teleport_level(PlayerType *player_ptr)
62 if (!input_check(_("本当に他の階にテレポートしますか?", "Are you sure? (Teleport Level)"))) {
66 teleport_level(player_ptr, 0);
70 bool activate_dimension_door(PlayerType *player_ptr)
72 msg_print(_("次元の扉が開いた。目的地を選んで下さい。", "You open a dimensional gate. Choose a destination."));
73 return dimension_door(player_ptr);
76 bool activate_teleport(PlayerType *player_ptr)
78 msg_print(_("周りの空間が歪んでいる...", "It twists space around you..."));
79 teleport_player(player_ptr, 100, TELEPORT_SPONTANEOUS);
83 bool activate_phase_door(PlayerType *player_ptr)
85 teleport_player(player_ptr, 10, TELEPORT_SPONTANEOUS);