Added stances for payloads

This commit is contained in:
Anuken
2023-09-22 18:22:19 -04:00
parent f633fb0af5
commit b6c28bc27d
6 changed files with 49 additions and 12 deletions

View File

@@ -333,7 +333,7 @@ public class Units{
cdist = 0f;
nearby(team, x, y, range, e -> {
if(!predicate.get(e)) return;
if(!e.isValid() || !predicate.get(e)) return;
float dist = e.dst2(x, y);
if(result == null || dist < cdist){
@@ -351,7 +351,7 @@ public class Units{
cdist = 0f;
nearby(team, x, y, range, e -> {
if(!predicate.get(e)) return;
if(!e.isValid() || !predicate.get(e)) return;
float dist = sort.cost(e, x, y);
if(result == null || dist < cdist){
@@ -370,7 +370,7 @@ public class Units{
cdist = 0f;
nearby(team, x - range, y - range, range*2f, range*2f, e -> {
if(!predicate.get(e)) return;
if(!e.isValid() || !predicate.get(e)) return;
float dist = e.dst2(x, y);
if(result == null || dist < cdist){