Added prompt for loading legacy research data

This commit is contained in:
Anuken
2020-11-26 10:22:01 -05:00
parent e1ddf115e0
commit 465219540c
8 changed files with 19 additions and 15 deletions

View File

@@ -54,6 +54,7 @@ public class LaserTurret extends PowerTurret{
super.updateTile();
if(bulletLife > 0 && bullet != null){
wasShooting = true;
tr.trns(rotation, size * tilesize / 2f, 0f);
bullet.rotation(rotation);
bullet.set(x + tr.x, y + tr.y);
@@ -65,6 +66,7 @@ public class LaserTurret extends PowerTurret{
bullet = null;
}
}else if(reload > 0){
wasShooting = true;
Liquid liquid = liquids.current();
float maxUsed = consumes.<ConsumeLiquidBase>get(ConsumeType.liquid).amount;
@@ -76,7 +78,6 @@ public class LaserTurret extends PowerTurret{
coolEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
}
}
}
@Override

View File

@@ -205,7 +205,7 @@ public abstract class Turret extends ReloadTurret{
}
public boolean isActive(){
return target != null || (logicControlled() && logicShooting) || (isControlled() && unit.isShooting());
return target != null || wasShooting;
}
public void targetPosition(Posc pos){