splashDamagePierce

This commit is contained in:
Anuken
2023-04-20 01:03:18 -04:00
parent 6a3638c3c2
commit 7a01be6dba
2 changed files with 4 additions and 2 deletions

View File

@@ -224,6 +224,8 @@ public class BulletType extends Content implements Cloneable{
/** Use a negative value to disable splash damage. */
public float splashDamageRadius = -1f;
/** If true, splash damage pierces through tiles. */
public boolean splashDamagePierce = false;
/** Amount of fires attempted around bullet. */
public int incendAmount = 0;
@@ -457,7 +459,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 * b.damageMultiplier(), splashDamagePierce, collidesAir, collidesGround, scaledSplashDamage, b);
if(status != StatusEffects.none){
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);