Map submission fixes / Fixed moving units not hitting conveyors
This commit is contained in:
@@ -772,6 +772,13 @@ public class BulletType extends Content implements Cloneable{
|
||||
}
|
||||
|
||||
public @Nullable Bullet create(@Nullable Entityc owner, @Nullable Entityc shooter, Team team, float x, float y, float angle, float damage, float velocityScl, float lifetimeScl, Object data, @Nullable Mover mover, float aimX, float aimY){
|
||||
return create(owner, shooter, team, x, y, angle, damage, velocityScl, lifetimeScl, data, mover, aimX, aimY, null);
|
||||
}
|
||||
|
||||
public @Nullable Bullet create(
|
||||
@Nullable Entityc owner, @Nullable Entityc shooter, Team team, float x, float y, float angle, float damage, float velocityScl,
|
||||
float lifetimeScl, Object data, @Nullable Mover mover, float aimX, float aimY, @Nullable Teamc target
|
||||
){
|
||||
if(!Mathf.chance(createChance)) return null;
|
||||
if(ignoreSpawnAngle) angle = 0;
|
||||
if(spawnUnit != null){
|
||||
@@ -812,7 +819,7 @@ public class BulletType extends Content implements Cloneable{
|
||||
bullet.originX = x;
|
||||
bullet.originY = y;
|
||||
if(!(aimX == -1f && aimY == -1f)){
|
||||
bullet.aimTile = world.tileWorld(aimX, aimY);
|
||||
bullet.aimTile = target instanceof Building b ? b.tile : world.tileWorld(aimX, aimY);
|
||||
}
|
||||
bullet.aimX = aimX;
|
||||
bullet.aimY = aimY;
|
||||
|
||||
Reference in New Issue
Block a user