From 74d994c18d34befbde226a78db4386a5cf9357c9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 27 May 2024 17:07:58 +0200 Subject: some combat logging --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 3d7e1bc..91e2638 100644 --- a/play.js +++ b/play.js @@ -592,11 +592,11 @@ function layout_general_count(g, s) { return n } -function layout_general_offset_elim(g, s) { +function layout_general_offset_elim(g) { let n = 0 let p = get_cylinder_power(g) for (let i of all_power_generals[p]) - if (i > g && view.pos[i] === s) + if (i > g && view.pos[i] === ELIMINATED) ++n return n } -- cgit v1.2.3