+ } else if (mode_name == 'name_thing') {
+ let player_position = game.things[game.player_id].position;
+ let thing_id = null;
+ for (let t_id in game.things) {
+ if (t_id == game.player_id) {
+ continue;
+ }
+ let t = game.things[t_id];
+ if (player_position[0] == t.position[0] && player_position[1] == t.position[1]) {
+ thing_id = t_id;
+ break;
+ }
+ }
+ if (!thing_id) {
+ terminal.blink_screen();
+ this.log_msg('? not standing over thing');
+ return;
+ } else {
+ this.selected_thing_id = thing_id;
+ }