Tau idle regen / Fixed non-synced alts / Fixed units not retreating
This commit is contained in:
@@ -480,6 +480,8 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
||||
control.database().unlockContent(mech);
|
||||
}
|
||||
|
||||
mech.updateAlt(this);
|
||||
|
||||
if(mobile){
|
||||
updateFlying();
|
||||
}else{
|
||||
@@ -499,8 +501,6 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
||||
protected void updateMech(){
|
||||
Tile tile = world.tileWorld(x, y);
|
||||
|
||||
mech.updateAlt(this);
|
||||
|
||||
if(boostHeat > liftoffBoost + 0.1f){
|
||||
achievedFlight = true;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public abstract class GroundUnit extends BaseUnit{
|
||||
}
|
||||
|
||||
public void update(){
|
||||
if(health >= health && !isCommanded()){
|
||||
if(health >= maxHealth() && !isCommanded()){
|
||||
state.set(attack);
|
||||
}
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ public class Drone extends FlyingUnit implements BuilderTrait{
|
||||
}
|
||||
|
||||
public void update(){
|
||||
if(health >= health){
|
||||
if(health >= maxHealth()){
|
||||
state.set(attack);
|
||||
}else if(!targetHasFlag(BlockFlag.repair)){
|
||||
if(timer.get(timerTarget, 20)){
|
||||
|
||||
Reference in New Issue
Block a user