Make Repair Points affected by overdrive (#4985)

This commit is contained in:
MEEP of Faith
2021-03-24 16:09:20 -07:00
committed by GitHub
parent 0929593efc
commit 4ec81b0669

View File

@@ -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())){
target = null;
}else if(target != null && consValid()){
target.heal(repairSpeed * Time.delta * strength * efficiency());
rotation = Mathf.slerpDelta(rotation, angleTo(target), 0.5f);
target.heal(repairSpeed * strength * edelta());
rotation = Mathf.slerpDelta(rotation, angleTo(target), 0.5f * efficiency() * timeScale);
targetIsBeingRepaired = true;
}