Release Healer Man 0.1.11
This commit is contained in:
1 parent
5f1a14d8de
commit
13970d03c8
18 files changed
+514
-19
No files matched your search
@@ -1027,7 +1027,13 @@ async function compile() {
|
||||
const waypoints = spawn.waypoints
|
||||
.filter((_, index) => index % stride === 0)
|
||||
.map(mapPosition);
|
||||
if (waypoints.length >= 2) {
|
||||
const origin = waypoints[0];
|
||||
const hasDistinctWaypoint = origin && waypoints.some((point) => Math.hypot(
|
||||
point[0] - origin[0],
|
||||
point[1] - origin[1],
|
||||
point[2] - origin[2],
|
||||
) > 1e-6);
|
||||
if (waypoints.length >= 2 && hasDistinctWaypoint) {
|
||||
roamingPacks.push({
|
||||
id: `patrol-${spawn.guid}`,
|
||||
name: `${entities[spawn.entityId].name} Patrol`,
|
||||
|
||||
Reference in new issue
Block a user