From 69658dea8662d4caa31f7b88ebf5fffefb421009 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 14 Dec 2024 14:08:05 +0000 Subject: Tweak get icons --- rules.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e3bc05e..a4f1e85 100644 --- a/rules.js +++ b/rules.js @@ -2808,7 +2808,9 @@ function check_control(space) { } function get_icons(starting_control, end_control) { - if (game.state !== 'place_starting_infl') { + if (game.state === 'place_starting_infl') + return '' + else { if (starting_control !== end_control) { console.log('in long bit') if (starting_control === DEM && end_control === COM) @@ -2846,8 +2848,9 @@ function get_icons(starting_control, end_control) { else return '' } - } else - return '' + else + return '' + } } function do_tst_attempt() { -- cgit v1.2.3