1 #include "object-activation/activation-teleport.h"
2 #include "cmd-io/cmd-save.h"
3 #include "core/asking-player.h"
4 #include "game-option/special-options.h"
5 #include "spell-kind/spells-grid.h"
6 #include "spell-kind/spells-launcher.h"
7 #include "spell-kind/spells-teleport.h"
8 #include "spell-kind/spells-world.h"
9 #include "effect/attribute-types.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))
20 (void)fire_beam(player_ptr, AttributeType::AWAY_ALL, dir, player_ptr->lev);
24 bool activate_escape(PlayerType *player_ptr)
26 switch (randint1(13)) {
32 teleport_player(player_ptr, 10, TELEPORT_SPONTANEOUS);
39 teleport_player(player_ptr, 222, TELEPORT_SPONTANEOUS);
43 (void)stair_creation(player_ptr);
46 if (!get_check(_("この階を去りますか?", "Leave this level? ")))
50 do_cmd_save_game(player_ptr, true);
52 player_ptr->leaving = true;
57 bool activate_teleport_level(PlayerType *player_ptr)
59 if (!get_check(_("本当に他の階にテレポートしますか?", "Are you sure? (Teleport Level)")))
62 teleport_level(player_ptr, 0);
66 bool activate_dimension_door(PlayerType *player_ptr)
68 msg_print(_("次元の扉が開いた。目的地を選んで下さい。", "You open a dimensional gate. Choose a destination."));
69 return dimension_door(player_ptr);
72 bool activate_teleport(PlayerType *player_ptr)
74 msg_print(_("周りの空間が歪んでいる...", "It twists space around you..."));
75 teleport_player(player_ptr, 100, TELEPORT_SPONTANEOUS);
79 bool activate_phase_door(PlayerType *player_ptr)
81 teleport_player(player_ptr, 10, TELEPORT_SPONTANEOUS);