mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-26 15:27:19 +07:00
warmup = 1 for bridges without power
This commit is contained in:
parent
f354b6bcca
commit
b7842bbb26
@ -178,7 +178,7 @@ public class ItemBridge extends Block{
|
||||
public int link = -1;
|
||||
public IntSeq incoming = new IntSeq(false, 4);
|
||||
public float warmup;
|
||||
public float time, timeSpeed;
|
||||
public float time = 10f, timeSpeed;
|
||||
public boolean wasMoved, moved;
|
||||
public float transportCounter;
|
||||
|
||||
@ -355,6 +355,8 @@ public class ItemBridge extends Block{
|
||||
Draw.color(Color.white, Color.black, Mathf.absin(Time.time, 6f, 0.07f));
|
||||
}
|
||||
|
||||
float warmup = hasPower ? this.warmup : 1f;
|
||||
|
||||
Draw.alpha((fadeIn ? Math.max(warmup, 0.25f) : 1f) * Renderer.bridgeOpacity);
|
||||
|
||||
Draw.rect(endRegion, x, y, i * 90 + 90);
|
||||
|
@ -8,4 +8,4 @@ kapt.include.compile.classpath=false
|
||||
kotlin.stdlib.default.dependency=false
|
||||
#needed for android compilation
|
||||
android.useAndroidX=true
|
||||
archash=41c08078107a6af4e180125dad3a174cab98656a
|
||||
archash=94dd6bbd29ea8e71daffaabb530bb7697017d66d
|
||||
|
Loading…
Reference in New Issue
Block a user