warmup = 1 for bridges without power

This commit is contained in:
Anuken 2021-07-30 22:49:51 -04:00
parent f354b6bcca
commit b7842bbb26
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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