diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-13 10:29:51 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-13 10:29:51 +0100 |
commit | fe301c88d6360023cb321e9e49780d34eb325744 (patch) | |
tree | b27c958facc1d77d7c170cdb55b2edb79955d918 | |
parent | fa2ca30cfff275e56e6c5e0b5d06ba553ec25f5d (diff) | |
download | plantagenet-fe301c88d6360023cb321e9e49780d34eb325744.tar.gz |
fix scotland exile box
bug when supplying from to find ports while not being present in exile
-rw-r--r-- | data.js | 2 | ||||
-rw-r--r-- | rules.js | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,7 @@ exile_boxes:[52,53,54,55], exile_1:55, exile_2:52, exile_3:54, +exile_4:53, sea_1:60, sea_2:58, sea_3:59, @@ -14,6 +15,7 @@ all_ports:[0,1,5,6,14,15,17,19,20,21,22,24,26,35,37,51,56,57], way_exile_1:[0,1,35,37,55,56,57,60], way_exile_2:[14,15,17,19,20,21,22,24,51,52,58], way_exile_3:[5,6,26,54,59], +way_exile_4:[0,1,35,37,52,56,57,60], way_sea_1:[0,1,14,15,17,19,20,21,22,24,35,37,51,56,57,58,60], way_sea_2:[0,1,5,6,14,15,17,19,20,21,22,24,26,35,37,51,56,57,58,58,59,60], way_sea_3:[5,6,14,15,17,19,20,21,22,24,26,51,58,59], @@ -596,6 +596,7 @@ function find_ports(here) { if (here === data.exile_1) return data.port_1 if (here === data.exile_2) return data.port_2 if (here === data.exile_3) return data.port_3 + if (here === data.exile_4) return data.port_1 if (set_has(data.port_1, here)) return data.port_1 if (set_has(data.port_2, here)) return data.port_2 if (set_has(data.port_3, here)) return data.port_3 |