Brief shockwave experiment
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user