From 8b2e78ab1e99f12b4dcb15231becf95a6144529c Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Sun, 28 Mar 2021 15:42:26 -0700 Subject: [PATCH] `maxRange` overriding on laser bulllets (#4873) --- .../mindustry/entities/bullet/ContinuousLaserBulletType.java | 2 +- core/src/mindustry/entities/bullet/LaserBulletType.java | 2 +- core/src/mindustry/entities/bullet/SapBulletType.java | 2 +- core/src/mindustry/entities/bullet/ShrapnelBulletType.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/entities/bullet/ContinuousLaserBulletType.java b/core/src/mindustry/entities/bullet/ContinuousLaserBulletType.java index 9f1b375091..de1d1ba101 100644 --- a/core/src/mindustry/entities/bullet/ContinuousLaserBulletType.java +++ b/core/src/mindustry/entities/bullet/ContinuousLaserBulletType.java @@ -60,7 +60,7 @@ public class ContinuousLaserBulletType extends BulletType{ @Override public float range(){ - return length; + return Math.max(length, maxRange); } @Override diff --git a/core/src/mindustry/entities/bullet/LaserBulletType.java b/core/src/mindustry/entities/bullet/LaserBulletType.java index 1a9a92a139..41033f63aa 100644 --- a/core/src/mindustry/entities/bullet/LaserBulletType.java +++ b/core/src/mindustry/entities/bullet/LaserBulletType.java @@ -56,7 +56,7 @@ public class LaserBulletType extends BulletType{ @Override public float range(){ - return length; + return Math.max(length, maxRange); } @Override diff --git a/core/src/mindustry/entities/bullet/SapBulletType.java b/core/src/mindustry/entities/bullet/SapBulletType.java index b86476a9d7..9200ed4bcc 100644 --- a/core/src/mindustry/entities/bullet/SapBulletType.java +++ b/core/src/mindustry/entities/bullet/SapBulletType.java @@ -50,7 +50,7 @@ public class SapBulletType extends BulletType{ @Override public float range(){ - return length; + return Math.max(length, maxRange); } @Override diff --git a/core/src/mindustry/entities/bullet/ShrapnelBulletType.java b/core/src/mindustry/entities/bullet/ShrapnelBulletType.java index 3d89e4d272..387c7164ff 100644 --- a/core/src/mindustry/entities/bullet/ShrapnelBulletType.java +++ b/core/src/mindustry/entities/bullet/ShrapnelBulletType.java @@ -47,7 +47,7 @@ public class ShrapnelBulletType extends BulletType{ @Override public float range(){ - return length; + return Math.max(length, maxRange); } @Override