Targetp support for allied targets

This commit is contained in:
Anuken
2021-01-09 10:31:44 -05:00
parent b762a5028b
commit 21fd20ea5b
8 changed files with 18 additions and 5 deletions
@@ -334,6 +334,7 @@ public abstract class BulletType extends Content{
bullet.type = this;
bullet.owner = owner;
bullet.team = team;
bullet.time = 0f;
bullet.vel.trns(angle, speed * velocityScl);
if(backMove){
bullet.set(x - bullet.vel.x * Time.delta, y - bullet.vel.y * Time.delta);
@@ -33,6 +33,8 @@ public class ShrapnelBulletType extends BulletType{
@Override
public void init(Bullet b){
super.init(b);
Damage.collideLaser(b, length, hitLarge);
}