Brief shockwave experiment

This commit is contained in:
Anuken
2022-03-07 10:37:53 -05:00
parent 46489f9893
commit 5603672983
5 changed files with 186 additions and 27 deletions

View File

@@ -331,13 +331,13 @@ public class Turret extends ReloadTurret{
//turret always reloads regardless of whether it's targeting something
updateReload();
if(timer(timerTarget, targetInterval)){
findTarget();
}
if(hasAmmo()){
if(Float.isNaN(reloadCounter)) reloadCounter = 0;
if(timer(timerTarget, targetInterval)){
findTarget();
}
if(validateTarget()){
boolean canShoot = true;
@@ -402,7 +402,7 @@ public class Turret extends ReloadTurret{
}
protected void turnToTarget(float targetRot){
rotation = Angles.moveToward(rotation, targetRot, rotateSpeed * delta() * baseReloadSpeed());
rotation = Angles.moveToward(rotation, targetRot, rotateSpeed * delta() * potentialEfficiency);
}
public boolean shouldTurn(){

View File

@@ -107,7 +107,7 @@ public class CoreBlock extends StorageBlock{
public void init(){
//assign to update clipSize internally
lightRadius = 30f + 20f * size;
fogRadius = Math.max(fogRadius, (int)(lightRadius / 8f * 3f) + 5);
fogRadius = Math.max(fogRadius, (int)(lightRadius / 8f * 3f) + 13);
emitLight = true;
super.init();