Fixed homing PR

This commit is contained in:
Anuken
2020-05-21 21:17:34 -04:00
parent 807d7c2084
commit c980e72f52
3 changed files with 8 additions and 11 deletions
@@ -75,8 +75,6 @@ public abstract class BulletType extends Content{
public int incendAmount = 0;
public float incendSpread = 8f;
public float incendChance = 1f;
//Number from 0 - 1 for how quickly it should turn
public float homingPower = 0f;
public float homingRange = 50f;
@@ -1,11 +1,10 @@
package mindustry.entities.bullet;
import arc.graphics.Color;
import arc.math.Mathf;
import arc.util.Time;
import mindustry.content.Fx;
import arc.graphics.*;
import arc.math.*;
import mindustry.content.*;
import mindustry.gen.*;
import mindustry.graphics.Pal;
import mindustry.graphics.*;
public class MissileBulletType extends BasicBulletType{
protected Color trailColor = Pal.missileYellowBack;
@@ -14,7 +13,7 @@ public class MissileBulletType extends BasicBulletType{
super(speed, damage, bulletSprite);
backColor = Pal.missileYellowBack;
frontColor = Pal.missileYellow;
homingPower = 7f;
homingPower = 0.08f;
hitSound = Sounds.explosion;
}