mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Is this better?
I don't know much about optimization, is this any better than before?
This commit is contained in:
parent
ee31adb1c9
commit
b83723701f
@ -417,7 +417,7 @@ public class BulletType extends Content implements Cloneable{
|
||||
|
||||
public void createSplashDamage(Bullet b, float x, float y){
|
||||
if(splashDamageRadius > 0 && !b.absorbed){
|
||||
Damage.damage(b.team, x, y, splashDamageRadius, splashDamage * b.damageMultiplier(), false, collidesAir, collidesGround, scaledSplashDamage, b);
|
||||
Damage.damage(b.team, x, y, splashDamageRadius, splashDamage * damageMultiplier(b), false, collidesAir, collidesGround, scaledSplashDamage, b);
|
||||
|
||||
if(status != StatusEffects.none){
|
||||
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);
|
||||
@ -719,7 +719,7 @@ public class BulletType extends Content implements Cloneable{
|
||||
bullet.drag = drag;
|
||||
bullet.hitSize = hitSize;
|
||||
bullet.mover = mover;
|
||||
bullet.damage = (damage < 0 ? this.damage : damage) * bullet.damageMultiplier();
|
||||
bullet.damage = (damage < 0 ? this.damage : damage) * damageMultiplier(bullet);
|
||||
//reset trail
|
||||
if(bullet.trail != null){
|
||||
bullet.trail.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user