aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-07 15:24:24 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-07 15:24:24 +0800
commitfd3d053e34ccd6ba21a6a3075ac69118ecc41fc7 (patch)
tree64ef8986beb7ea81b9433aca90d9907beb4815aa /utils
parent2154f49bceed1ac8eeb1111ea402ddd2b243679d (diff)
downloadSoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.tar.gz
SoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.tar.bz2
SoopyV2-fd3d053e34ccd6ba21a6a3075ac69118ecc41fc7.zip
Fix diana event waypoints
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/utils.js b/utils/utils.js
index 8aa2ad0..6b28979 100644
--- a/utils/utils.js
+++ b/utils/utils.js
@@ -72,7 +72,7 @@ let utils = {
ret.push(ret.length)
}
- let allOrders = functions.permutation(ret)
+ let allOrders = utils.permutation(ret)
let lastOrder = []
let lastOrderLength = Infinity
@@ -84,7 +84,7 @@ let utils = {
})
let len = 0
positions.forEach((pos)=>{
- len += functions.calculateDistance(lastPoint,pos)
+ len += utils.calculateDistance(lastPoint,pos)
lastPoint = pos
})
@@ -116,4 +116,4 @@ let utils = {
}
}
-export default utils \ No newline at end of file
+module.exports = utils \ No newline at end of file