Smoother mobile player movement / Cleanup
This commit is contained in:
@@ -995,12 +995,12 @@ public class Blocks implements ContentList{
|
||||
consumes.power(1.75f);
|
||||
}};
|
||||
|
||||
payloadConveyor = new PayloadConveyor("mass-conveyor"){{
|
||||
requirements(Category.distribution, with(Items.copper, 1));
|
||||
payloadConveyor = new PayloadConveyor("payload-conveyor"){{
|
||||
requirements(Category.distribution, with(Items.graphite, 10, Items.copper, 20));
|
||||
}};
|
||||
|
||||
payloadRouter = new PayloadRouter("payload-router"){{
|
||||
requirements(Category.distribution, with(Items.copper, 1));
|
||||
requirements(Category.distribution, with(Items.graphite, 15, Items.copper, 20));
|
||||
}};
|
||||
|
||||
//endregion
|
||||
|
||||
@@ -155,12 +155,6 @@ public class Control implements ApplicationListener, Loadable{
|
||||
}
|
||||
});
|
||||
|
||||
Events.on(ZoneRequireCompleteEvent.class, e -> {
|
||||
if(e.objective.display() != null){
|
||||
ui.hudfrag.showToast(Core.bundle.format("zone.requirement.complete", e.zoneForMet.localizedName, e.objective.display()));
|
||||
}
|
||||
});
|
||||
|
||||
//delete save on campaign game over
|
||||
Events.on(GameOverEvent.class, e -> {
|
||||
if(state.isCampaign() && !net.client() && !headless){
|
||||
|
||||
@@ -106,27 +106,6 @@ public class EventType{
|
||||
}
|
||||
}
|
||||
|
||||
/** Called when a zone's requirements are met. */
|
||||
public static class ZoneRequireCompleteEvent{
|
||||
public final SectorPreset zoneMet, zoneForMet;
|
||||
public final Objectives.Objective objective;
|
||||
|
||||
public ZoneRequireCompleteEvent(SectorPreset zoneMet, SectorPreset zoneForMet, Objectives.Objective objective){
|
||||
this.zoneMet = zoneMet;
|
||||
this.zoneForMet = zoneForMet;
|
||||
this.objective = objective;
|
||||
}
|
||||
}
|
||||
|
||||
/** Called when a zone's requirements are met. */
|
||||
public static class ZoneConfigureCompleteEvent{
|
||||
public final SectorPreset zone;
|
||||
|
||||
public ZoneConfigureCompleteEvent(SectorPreset zone){
|
||||
this.zone = zone;
|
||||
}
|
||||
}
|
||||
|
||||
/** Called when a sector is conquered, e.g. a boss or base is defeated. */
|
||||
public static class SectorCaptureEvent{
|
||||
public final Sector sector;
|
||||
|
||||
@@ -863,6 +863,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
|
||||
if(player.within(targetPos, attractDst)){
|
||||
movement.setZero();
|
||||
unit.vel.approachDelta(Vec2.ZERO, type.speed * type.accel / 2f);
|
||||
}
|
||||
|
||||
float expansion = 3f;
|
||||
|
||||
@@ -34,7 +34,8 @@ public abstract class SaveFileReader{
|
||||
"titan-factory", "legacy-unit-factory",
|
||||
"fortress-factory", "legacy-unit-factory",
|
||||
|
||||
"command-center", "legacy-command-center"
|
||||
"command-center", "legacy-command-center",
|
||||
"mass-conveyor", "payload-conveyor"
|
||||
);
|
||||
|
||||
protected int lastRegionLength;
|
||||
|
||||
@@ -372,7 +372,7 @@ public class LStatements{
|
||||
public static class RadarStatement extends LStatement{
|
||||
public RadarTarget target1 = RadarTarget.enemy, target2 = RadarTarget.any, target3 = RadarTarget.any;
|
||||
public RadarSort sort = RadarSort.distance;
|
||||
public String radar = "turret1", sortOrder = "0", output = "result";
|
||||
public String radar = "turret1", sortOrder = "1", output = "result";
|
||||
|
||||
@Override
|
||||
public void build(Table table){
|
||||
|
||||
@@ -132,6 +132,7 @@ public class BeControl{
|
||||
() -> Core.app.post(() -> {
|
||||
Log.info("&lcSaving...");
|
||||
SaveIO.save(saveDirectory.child("autosavebe." + saveExtension));
|
||||
Log.info("&lcAutosaved.");
|
||||
|
||||
netServer.kickAll(KickReason.serverRestarting);
|
||||
Threads.sleep(32);
|
||||
|
||||
Reference in New Issue
Block a user