@@ -1,6 +1,7 @@
|
|||||||
package mindustry.entities.comp;
|
package mindustry.entities.comp;
|
||||||
|
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
|
import arc.util.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
|
|
||||||
@@ -24,7 +25,7 @@ abstract class BoundedComp implements Velc, Posc, Healthc, Flyingc{
|
|||||||
if(x > world.unitWidth()) dx -= (x - world.unitWidth())/warpDst;
|
if(x > world.unitWidth()) dx -= (x - world.unitWidth())/warpDst;
|
||||||
if(y > world.unitHeight()) dy -= (y - world.unitHeight())/warpDst;
|
if(y > world.unitHeight()) dy -= (y - world.unitHeight())/warpDst;
|
||||||
|
|
||||||
velAddNet(dx, dy);
|
velAddNet(dx * Time.delta, dy * Time.delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
//clamp position if not flying
|
//clamp position if not flying
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package mindustry.world.blocks.production;
|
package mindustry.world.blocks.production;
|
||||||
|
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
|
import arc.math.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.graphics.*;
|
import mindustry.graphics.*;
|
||||||
@@ -67,6 +68,8 @@ public class Fracker extends SolidPump{
|
|||||||
super.updateTile();
|
super.updateTile();
|
||||||
accumulator += delta() * efficiency();
|
accumulator += delta() * efficiency();
|
||||||
}else{
|
}else{
|
||||||
|
warmup = Mathf.lerpDelta(warmup, 0f, 0.02f);
|
||||||
|
lastPump = 0f;
|
||||||
dumpLiquid(result);
|
dumpLiquid(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user