'drop_thing': 'drop thing',
'door': 'open/close',
'consume': 'consume',
- 'install': 'install',
+ 'install': '(un-)install',
'toggle_map_mode': 'toggle map view',
'toggle_tile_draw': 'toggle protection character drawing',
'hex_move_upleft': 'up-left',
let term_x = Math.max(0, -this.offset[1]);
let map_y = Math.max(0, this.offset[0]);
let map_x = Math.max(0, this.offset[1]);
- for (; term_y < terminal.rows && map_y < game.map_size[0]; term_y++, map_y++) {
+ for (; term_y < terminal.rows && map_y < this.map_lines.length; term_y++, map_y++) {
let to_draw = this.map_lines[map_y].slice(map_x, this.window_width + this.offset[1]);
terminal.write(term_y, term_x, to_draw);
}