From db016476740fffc30bf5b392956c53e064875834 Mon Sep 17 00:00:00 2001 From: fohristiwhirl Date: Thu, 4 Oct 2018 17:25:39 +0100 Subject: [PATCH] smaller dashes --- fluorine_renderer.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/fluorine_renderer.html b/fluorine_renderer.html index 48e2e7b..32fae1d 100644 --- a/fluorine_renderer.html +++ b/fluorine_renderer.html @@ -430,9 +430,9 @@ renderer.box_string = (x, y, highlighted) => { let val = renderer.production_maps[renderer.turn][x][y]; if (highlighted) { - return `[${x}, ${y}] — ${val}`; + return `[${x}, ${y}] – ${val}`; } else { - return `${x}, ${y} — ${val}`; + return `${x}, ${y} – ${val}`; } }; @@ -451,16 +451,16 @@ if (highlight_box) { return `${renderer.box_string(ship_info.x, ship_info.y, true)}` - + ` — Ship ${sid}${mark}` - + ` — ${ship_info.energy}` - + ` — next is ${renderer.ship_move(sid)}`; + + ` – Ship ${sid}${mark}` + + ` – ${ship_info.energy}` + + ` – next is ${renderer.ship_move(sid)}`; } else { return `${renderer.box_string(ship_info.x, ship_info.y, false)}` - + ` — [Ship ${sid}${mark}]` - + ` — ${ship_info.energy}` - + ` — next is ${renderer.ship_move(sid)}`; + + ` – [Ship ${sid}${mark}]` + + ` – ${ship_info.energy}` + + ` – next is ${renderer.ship_move(sid)}`; } }; @@ -478,7 +478,7 @@ let collision = renderer.collision_at(x, y); if (collision) { - return `${renderer.box_string(x, y, true)} — ${renderer.collision_string(collision, renderer.turn)}`; + return `${renderer.box_string(x, y, true)} – ${renderer.collision_string(collision, renderer.turn)}`; } else { let ship_info = renderer.ship_at(x, y); if (ship_info) { @@ -497,7 +497,7 @@ if (collision) { let x = collision.location.x; let y = collision.location.y; - return `${renderer.box_string(x, y)} — ${renderer.collision_string(collision, renderer.turn)}`; + return `${renderer.box_string(x, y)} – ${renderer.collision_string(collision, renderer.turn)}`; } return renderer.box_with_ship_string(sid, false); @@ -942,7 +942,7 @@ renderer.ship_move = (sid) => { - let lookups = {"n": "up", "s": "down", "e": "right", "w": "left", "o": "—"}; + let lookups = {"n": "up", "s": "down", "e": "right", "w": "left", "o": "–"}; for (let pid = 0; pid < renderer.players(); pid++) { @@ -962,7 +962,7 @@ } } - return "—"; // No move present means no move. + return "–"; // No move present means no move. }; renderer.ship_count = (pid) => { @@ -1076,7 +1076,7 @@ lines.push(`


`); lines.push(`

${path.basename(renderer.filename)}

`); - lines.push(`

${renderer.width} x ${renderer.height} — ${renderer.turn} / ${renderer.game_length() - 1}

`); + lines.push(`

${renderer.width} x ${renderer.height} – ${renderer.turn} / ${renderer.game_length() - 1}

`); for (let pid = 0; pid < renderer.players(); pid++) { @@ -1088,7 +1088,7 @@ let colour = colours[pid]; lines.push(`

${renderer.game.players[pid].name}

`); lines.push(`