add pierceCap

This commit is contained in:
Leonwang4234
2020-10-08 19:14:05 -07:00
parent e2b58528d0
commit 0eb0f34908
2 changed files with 10 additions and 0 deletions

View File

@@ -144,6 +144,10 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
return false;
});
}
if(collided.size >= type.pierceCap) {
remove();
}
}
@Override