Basic unitsorts for hjson (#6280)
* Create some basic unitSorts * Set as defaults * add to ContentParser
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user