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 "spell/spell-types.h"
10 #include "target/target-getter.h"
11 #include "view/display-messages.h"
13 bool activate_teleport_away(player_type *user_ptr)
16 if (!get_aim_dir(user_ptr, &dir))
19 (void)fire_beam(user_ptr, GF_AWAY_ALL, dir, user_ptr->lev);
23 bool activate_escape(player_type *user_ptr)
25 switch (randint1(13)) {
31 teleport_player(user_ptr, 10, TELEPORT_SPONTANEOUS);
38 teleport_player(user_ptr, 222, TELEPORT_SPONTANEOUS);
42 (void)stair_creation(user_ptr);
45 if (!get_check(_("この階を去りますか?", "Leave this level? ")))
49 do_cmd_save_game(user_ptr, TRUE);
51 user_ptr->leaving = TRUE;
56 bool activate_teleport_level(player_type *user_ptr)
58 if (!get_check(_("本当に他の階にテレポートしますか?", "Are you sure? (Teleport Level)")))
61 teleport_level(user_ptr, 0);
65 bool activate_dimension_door(player_type *user_ptr)
67 msg_print(_("次元の扉が開いた。目的地を選んで下さい。", "You open a dimensional gate. Choose a destination."));
68 return dimension_door(user_ptr);
71 bool activate_teleport(player_type *user_ptr)
73 msg_print(_("周りの空間が歪んでいる...", "It twists space around you..."));
74 teleport_player(user_ptr, 100, TELEPORT_SPONTANEOUS);
78 bool activate_phase_door(player_type *user_ptr)
80 teleport_player(user_ptr, 10, TELEPORT_SPONTANEOUS);