summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-02 14:56:50 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-02 14:56:50 +0200
commite74ae98636437dc94c63d8ebdcc7e454c754b087 (patch)
tree4f42597fc8b4e3cb217b47b803e95dd62a069e88 /rules.js
parent8e869419680dbceaac4d524c8674c0b6b2afbc5e (diff)
downloadalgeria-e74ae98636437dc94c63d8ebdcc7e454c754b087.tar.gz
fix lints
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files 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