prevent from breaking other things

This commit is contained in:
Leonwang4234
2020-10-08 19:27:01 -07:00
parent af5fd4551c
commit e73a813d69
2 changed files with 3 additions and 3 deletions
@@ -25,7 +25,7 @@ public abstract class BulletType extends Content{
public float drawSize = 40f;
public float drag = 0f;
public boolean pierce, pierceBuilding;
public int pierceCap = 1;
public int pierceCap = -1;
public Effect hitEffect, despawnEffect;
/** Effect created when shooting. */
@@ -236,7 +236,7 @@ public abstract class BulletType extends Content{
}
public void init(Bullet b){
if(pierceCap > 1) {
if(pierceCap >= 1) {
pierce = true;
pierceBuilding = true;
}