Fixed homing PR
This commit is contained in:
@@ -86,7 +86,7 @@ public class Bullets implements ContentList{
|
||||
collidesTiles = false;
|
||||
splashDamageRadius = 25f;
|
||||
splashDamage = 33f;
|
||||
homingPower = 2f;
|
||||
homingPower = 0.08f;
|
||||
homingRange = 50f;
|
||||
}};
|
||||
|
||||
@@ -230,7 +230,7 @@ public class Bullets implements ContentList{
|
||||
bulletHeight = 8f;
|
||||
bulletShrink = 0f;
|
||||
drag = -0.01f;
|
||||
homingPower = 7f;
|
||||
homingPower = 0.08f;
|
||||
splashDamageRadius = 10f;
|
||||
splashDamage = 10f;
|
||||
lifetime = 160f;
|
||||
@@ -337,7 +337,7 @@ public class Bullets implements ContentList{
|
||||
standardHoming = new BasicBulletType(3f, 9, "bullet"){{
|
||||
bulletWidth = 7f;
|
||||
bulletHeight = 9f;
|
||||
homingPower = 5f;
|
||||
homingPower = 0.08f;
|
||||
reloadMultiplier = 1.4f;
|
||||
ammoMultiplier = 5;
|
||||
lifetime = 60f;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user