Disable the big ol cheat whoops

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-26 00:17:15 -06:00
parent d5cd52d100
commit 12066072ec

View File

@ -466,6 +466,9 @@ class Player extends PrimaryView {
this.renderer.canvas.addEventListener('auxclick', ev => {
if (ev.button !== 1)
return;
// TODO make a real debug flag? allow enabling this but consider it aid level 3?
if (! location.host.match(/localhost/))
return;
let [x, y] = this.renderer.cell_coords_from_event(ev);
this.level.move_to(this.level.player, this.level.cells[y][x], 1);