From bdd353f8cf7c13d49cca4f93b961e6be0cb53048 Mon Sep 17 00:00:00 2001 From: yukirij Date: Thu, 3 Oct 2024 13:17:21 -0700 Subject: [PATCH] Revert knight alt move extent requirement. --- www/js/game.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/js/game.js b/www/js/game.js index 95a2668..16cd51c 100644 --- a/www/js/game.js +++ b/www/js/game.js @@ -588,14 +588,17 @@ GAME.Game = class { let moves = piece.moves(); + let extent = true; + switch(moves.alt) { - /* Drop Once */ case 1: /* Drop Cone */ case 2: + extent = false; + /* Drop Once */ case 1: { // Check all tiles if not blocking. if(block_directions == 0) { for(let i = 0; i < GAME_DATA.board.tiles.length; ++i) { - if(this.placable_tile(piece, i, {check:false, extent:false})) { + if(this.placable_tile(piece, i, {check:false, extent:extent})) { tiles.push(new GAME.MovementTile(i, true, false, 0, 0)); } } @@ -620,7 +623,7 @@ GAME.Game = class { if(target_id !== null) { break; } - if(this.placable_tile(piece, tile_id, {check:false, extent:false})) { + if(this.placable_tile(piece, tile_id, {check:false, extent:extent})) { tiles.push(new GAME.MovementTile(tile_id, true, false, 0, 0)); } } else { break; }