+ if (mode == mode_portal && explorer.position in game.portals) {
+ let portal = game.portals[explorer.position]
+ this.inputEl.value = portal;
+ this.recalc_input_lines();
+ } else if (mode == mode_teleport) {
+ tui.log_msg("Type Y or y to affirm teleportation, any other key to abort.");
+ tui.log_msg("target: " + tui.teleport_target);
+ }