From e74ae98636437dc94c63d8ebdcc7e454c754b087 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:56:50 +0200 Subject: fix lints --- rules.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rules.js b/rules.js index 84b8cb7..1afb533 100644 --- a/rules.js +++ b/rules.js @@ -204,7 +204,7 @@ function clear_area_terrorized(l) { // remote function is_area_remote(l) { - return (game.areas[l] & AREA_REMOTE_MASK) === AREA_REMOTE_MASK + return areas[l].type === REMOTE || (game.areas[l] & AREA_REMOTE_MASK) === AREA_REMOTE_MASK } function set_area_remote(l) { @@ -289,10 +289,6 @@ function area_zone(l) { return areas[l].zone } -function is_area_remote(l) { - return areas[l].type === REMOTE -} - function is_area_algerian(l) { return areas[l].type !== COUNTRY } @@ -1578,9 +1574,9 @@ function set_toggle(set, item) { function is_subset_with_multiplicity(set, subset) { return subset.every(val => set.includes(val) - && subset.filter(el => el === val).length - <= - set.filter(el => el === val).length) + && subset.filter(el => el === val).length + <= + set.filter(el => el === val).length) } // Fast deep copy for objects without cycles -- cgit v1.2.3