AI bugfixes / Balance

This commit is contained in:
Anuken
2020-07-29 21:09:58 -04:00
parent 1e7aaac3d4
commit 9bf3074aee
7 changed files with 42 additions and 49 deletions
@@ -18,6 +18,10 @@ public class BombBulletType extends BasicBulletType{
hitSound = Sounds.explosion;
}
public BombBulletType(float damage, float radius){
this(damage, radius, "shell");
}
public BombBulletType(){
this(1f, 1f, "shell");
}
@@ -13,6 +13,9 @@ import mindustry.game.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.type.*;
import mindustry.world.*;
import static mindustry.Vars.*;
public abstract class BulletType extends Content{
public float lifetime = 40f;
@@ -98,6 +101,11 @@ public abstract class BulletType extends Content{
public float weaveMag = -1f;
public float hitShake = 0f;
public int puddles;
public float puddleRange;
public float puddleAmount = 5f;
public Liquid puddleLiquid = Liquids.water;
public float lightRadius = 16f;
public float lightOpacity = 0.3f;
public Color lightColor = Pal.powerLight;
@@ -144,6 +152,13 @@ public abstract class BulletType extends Content{
}
}
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);
}
}
if(Mathf.chance(incendChance)){
Damage.createIncend(x, y, incendSpread, incendAmount);
}