summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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