diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-30 10:43:55 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-30 12:34:12 +0100 |
commit | 274695921c2f33420aedfb11e1f3bdf382279cbc (patch) | |
tree | 8244d072dd257790a4c10f1b2d3198e7719d5709 /rules.js | |
parent | 9ad78455a9b9547918686c3d4e1bf06a11712a37 (diff) | |
download | algeria-274695921c2f33420aedfb11e1f3bdf382279cbc.tar.gz |
Fix spelling of adjacent.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -87,7 +87,7 @@ var game = null var view = null const { - areas, zone_areas, locations, units, adjecents + areas, zone_areas, locations, units, adjacents } = require("./data.js") var first_friendly_unit, last_friendly_unit @@ -636,7 +636,7 @@ function can_cross_border(u) { return false let result = false let loc = unit_loc(u) - for_each_adjecent_map_area(loc, adj => { + for_each_adjacent_map_area(loc, adj => { if (is_border_crossing(loc, adj)) result = true }) @@ -875,9 +875,9 @@ function for_each_map_area_in_zone(z, fn) { fn(i) } -function for_each_adjecent_map_area(x, fn) { - if (x in adjecents) { - for (let i of adjecents[x]) +function for_each_adjacent_map_area(x, fn) { + if (x in adjacents) { + for (let i of adjacents[x]) fn(i) } } @@ -3355,7 +3355,7 @@ states.fln_move = { // A unit may also move to an area in a wilaya adjacent to its current one (that is, the two share a land border), // but the area moved to must be adjacent to at least one area in its current wilaya. // Morocco and Tunisia are treated as single-area wilaya for this purpose. - for_each_adjecent_map_area(to, adj => { + for_each_adjacent_map_area(to, adj => { if (is_border_crossing(to, adj)) { if (game.is_morocco_tunisia_independent) gen_action_loc(adj) |