Basic unitsorts for hjson (#6280)

* Create some basic unitSorts

* Set as defaults

* add to ContentParser
This commit is contained in:
Matthew Peng
2021-10-31 18:30:35 -07:00
committed by GitHub
parent e1bf1a1b92
commit 223fb8d6f5
4 changed files with 22 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ public class Turret extends ReloadTurret{
public Effect chargeBeginEffect = Fx.none;
public Sound chargeSound = Sounds.none;
public Sortf unitSort = Unit::dst2;
public Sortf unitSort = UnitSorts.closest;
protected Vec2 tr = new Vec2();
protected Vec2 tr2 = new Vec2();
@@ -508,4 +508,4 @@ public class Turret extends ReloadTurret{
return 1;
}
}
}
}