From 0f59cf2ddff01b1f3e124dce7705867972124f89 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 1 Mar 2024 16:08:29 +0100 Subject: stricteq --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 6b78bfa..55f31d0 100644 --- a/rules.js +++ b/rules.js @@ -1287,14 +1287,14 @@ function is_sea(loc) { } function is_favour_friendly(loc) { - if (game.active == YORK) + if (game.active === YORK) return has_favoury_marker(loc) else return has_favourl_marker(loc) } function is_favour_enemy(loc, side) { - if (side == LANCASTER) + if (side === LANCASTER) return has_favoury_marker(loc) else return has_favourl_marker(loc) @@ -7686,7 +7686,7 @@ function check_naval_blockade(action, locale) { } if (action === "campaign parley" && data.locales[locale].adjacent.includes(get_lord_locale(game.command))) { - return false + return false } for (let port of ports) { -- cgit v1.2.3