This commit is contained in:
Anuken
2021-12-01 13:50:08 -05:00
parent e30d090a2e
commit 3f503a7f4d
4 changed files with 5 additions and 4 deletions

View File

@@ -179,6 +179,7 @@ public class CargoAI extends AIController{
}
}
//unused, might change later
void sortTargets(Seq<UnitCargoUnloadPointBuild> targets){
//find sort by "most desirable" first
targets.sort(Structs.comps(Structs.comparingInt(b -> b.items.total()), Structs.comparingFloat(b -> b.dst2(unit))));

View File

@@ -2112,7 +2112,7 @@ public class UnitTypes{
buildSpeed = 3f;
abilities.add(new EnergyFieldAbility(35f, 65f, 180f){{
abilities.add(new EnergyFieldAbility(40f, 65f, 180f){{
statusDuration = 60f * 6f;
maxTargets = 25;
}});
@@ -2129,7 +2129,7 @@ public class UnitTypes{
shootEffect = Fx.sparkShoot;
hitEffect = Fx.pointHit;
maxRange = 180f;
damage = 24f;
damage = 25f;
}};
}});
}

View File

@@ -28,7 +28,7 @@ public class EnergyFieldAbility extends Ability{
public float x, y;
public boolean targetGround = true, targetAir = true, hitBuildings = true, hitUnits = true;
public int maxTargets = 25;
public float healPercent = 2.5f;
public float healPercent = 3f;
public float layer = Layer.bullet - 0.001f, blinkScl = 20f, blinkSize = 0.1f;
public float effectRadius = 5f, sectorRad = 0.14f, rotateSpeed = 0.5f;

View File

@@ -143,7 +143,7 @@ public class StatValues{
if(state.isGame()){
var blocks = Vars.content.blocks()
.select(block -> (!checkFloors || block instanceof Floor) && indexer.isBlockPresent(block) && block.attributes.get(attr) != 0 && !((block instanceof Floor f && f.isDeep()) && !floating))
.<Floor>as().with(s -> s.sort(f -> f.attributes.get(attr)));
.with(s -> s.sort(f -> f.attributes.get(attr)));
if(blocks.any()){
int i = 0;