Misc bugfixes
This commit is contained in:
@@ -232,8 +232,8 @@ public class BulletType extends Content implements Cloneable{
|
||||
}
|
||||
|
||||
if(entity instanceof Unit unit){
|
||||
Tmp.v3.set(unit).sub(b.x, b.y).nor().scl(knockback * 80f);
|
||||
if(impact) Tmp.v3.setAngle(b.rotation());
|
||||
Tmp.v3.set(unit).sub(b).nor().scl(knockback * 80f);
|
||||
if(impact) Tmp.v3.setAngle(b.rotation() + (knockback < 0 ? 180f : 0f));
|
||||
unit.impulse(Tmp.v3);
|
||||
unit.apply(status, statusDuration);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,6 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
|
||||
/** Sets up all the necessary variables, but does not add this entity anywhere. */
|
||||
public Building create(Block block, Team team){
|
||||
this.tile = emptyTile;
|
||||
this.block = block;
|
||||
this.team = team;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package mindustry.entities.comp;
|
||||
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.util.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.async.PhysicsProcess.*;
|
||||
import mindustry.gen.*;
|
||||
|
||||
Reference in New Issue
Block a user