Nuke launch format string

This commit is contained in:
Anuken
2022-04-28 14:51:20 -04:00
parent 668b6aa563
commit 90a2f00041
11 changed files with 22 additions and 12 deletions

View File

@@ -305,13 +305,7 @@ public class BulletType extends Content implements Cloneable{
Effect.shake(hitShake, hitShake, b);
createFrags(b, x, y);
if(puddleLiquid != null && puddles > 0){
for(int i = 0; i < puddles; i++){
Tile tile = world.tileWorld(x + Mathf.range(puddleRange), y + Mathf.range(puddleRange));
Puddles.deposit(tile, puddleLiquid, puddleAmount);
}
}
createPuddles(b, x, y);
if(incendChance > 0 && Mathf.chance(incendChance)){
Damage.createIncend(x, y, incendSpread, incendAmount);
@@ -329,6 +323,15 @@ public class BulletType extends Content implements Cloneable{
}
}
public void createPuddles(Bullet b, float x, float y){
if(puddleLiquid != null && puddles > 0){
for(int i = 0; i < puddles; i++){
Tile tile = world.tileWorld(x + Mathf.range(puddleRange), y + Mathf.range(puddleRange));
Puddles.deposit(tile, puddleLiquid, puddleAmount);
}
}
}
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);