Make Repair Points affected by overdrive (#4985)
This commit is contained in:
@@ -102,8 +102,8 @@ public class RepairPoint extends Block{
|
|||||||
if(target != null && (target.dead() || target.dst(tile) - target.hitSize/2f > repairRadius || target.health() >= target.maxHealth())){
|
if(target != null && (target.dead() || target.dst(tile) - target.hitSize/2f > repairRadius || target.health() >= target.maxHealth())){
|
||||||
target = null;
|
target = null;
|
||||||
}else if(target != null && consValid()){
|
}else if(target != null && consValid()){
|
||||||
target.heal(repairSpeed * Time.delta * strength * efficiency());
|
target.heal(repairSpeed * strength * edelta());
|
||||||
rotation = Mathf.slerpDelta(rotation, angleTo(target), 0.5f);
|
rotation = Mathf.slerpDelta(rotation, angleTo(target), 0.5f * efficiency() * timeScale);
|
||||||
targetIsBeingRepaired = true;
|
targetIsBeingRepaired = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user