This commit is contained in:
Anuken
2020-08-27 13:45:07 -04:00
parent fba7f7592b
commit 92aba83450
6 changed files with 17 additions and 10 deletions
@@ -17,7 +17,7 @@ import mindustry.world.blocks.production.*;
import static mindustry.Vars.*;
public class PayloadConveyor extends Block{
public float moveTime = 70f;
public float moveTime = 60f;
public @Load("@-top") TextureRegion topRegion;
public @Load("@-edge") TextureRegion edgeRegion;
public Interp interp = Interp.pow5;
@@ -98,7 +98,7 @@ public class PayloadConveyor extends Block{
public void updateTile(){
if(!enabled) return;
progress = Time.time() % moveTime;
progress = time() % moveTime;
updatePayload();
@@ -187,6 +187,10 @@ public class PayloadConveyor extends Block{
}
}
public float time(){
return Time.time();
}
@Override
public boolean acceptPayload(Building source, Payload payload){
//accepting payloads from units isn't supported
@@ -276,7 +280,7 @@ public class PayloadConveyor extends Block{
}
public int curStep(){
return (int)((Time.time()) / moveTime);
return (int)((time()) / moveTime);
}
public float fract(){
+1 -1
View File
@@ -10,7 +10,7 @@ public enum BlockFlag{
turret,
/** Repair point. */
repair,
/** Rally point. TODO remove*/
/** Rally point. */
rally,
/** Any block that boosts unit capacity. */
unitModifier;