This commit is contained in:
Anuken
2026-02-13 10:01:37 -05:00
parent dec4913090
commit 0aa091b212
4 changed files with 7 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ public class EmpBulletType extends BasicBulletType{
public float unitDamageScl = 0.7f;
@Override
public void hit(Bullet b, float x, float y){
super.hit(b, x, y);
public void hit(Bullet b, float x, float y, boolean createFrags){
super.hit(b, x, y, createFrags);
if(!b.absorbed){
Vars.indexer.allBuildings(x, y, radius, other -> {

View File

@@ -91,7 +91,7 @@ public class LiquidBulletType extends BulletType{
}
@Override
public void hit(Bullet b, float hitx, float hity){
public void hit(Bullet b, float hitx, float hity, boolean createFrags){
hitEffect.at(hitx, hity, liquid.color);
Puddles.deposit(world.tileWorld(hitx, hity), liquid, puddleSize);

View File

@@ -1,12 +1,10 @@
package mindustry.entities.bullet;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.type.*;
import mindustry.world.blocks.distribution.MassDriver.*;
@@ -29,7 +27,7 @@ public class MassDriverBolt extends BasicBulletType{
@Override
public void update(Bullet b){
super.update(b);
//data MUST be an instance of DriverBulletData
if(!(b.data() instanceof DriverBulletData data)){
hit(b);
@@ -88,8 +86,8 @@ public class MassDriverBolt extends BasicBulletType{
}
@Override
public void hit(Bullet b, float hitx, float hity){
super.hit(b, hitx, hity);
public void hit(Bullet b, float hitx, float hity, boolean createFrags){
super.hit(b, hitx, hity, createFrags);
despawned(b);
if(b.data() instanceof DriverBulletData data){
float explosiveness = 0f;

View File

@@ -62,6 +62,7 @@ tasks.register('dist', Jar){
attributes 'Main-Class': project.mainClassName
//note: this doesn't do anything when launched from the bundled JVM
attributes 'Enable-Native-Access': 'ALL-UNNAMED'
attributes 'Multi-Release': 'true'
}
}