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

@@ -5,6 +5,7 @@ import arc.math.*;
import arc.struct.*;
import mindustry.*;
import mindustry.ctype.*;
import mindustry.entities.*;
import mindustry.entities.bullet.*;
import mindustry.gen.*;
import mindustry.graphics.*;
@@ -1839,7 +1840,7 @@ public class Blocks implements ContentList{
size = 4;
shootCone = 2f;
shootSound = Sounds.railgun;
unitSort = (u, x, y) -> -u.maxHealth + Mathf.dst2(u.x, u.y, x, y) / 6400f;
unitSort = UnitSorts.strongest;
coolantMultiplier = 0.4f;
@@ -2287,4 +2288,4 @@ public class Blocks implements ContentList{
//endregion
}
}
}