diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-02 14:56:50 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-02 14:56:50 +0200 |
commit | e74ae98636437dc94c63d8ebdcc7e454c754b087 (patch) | |
tree | 4f42597fc8b4e3cb217b47b803e95dd62a069e88 /rules.js | |
parent | 8e869419680dbceaac4d524c8674c0b6b2afbc5e (diff) | |
download | algeria-e74ae98636437dc94c63d8ebdcc7e454c754b087.tar.gz |
fix lints
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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 |