Repair speed improvements
This commit is contained in:
@@ -68,7 +68,7 @@ public class Planets{
|
||||
r.attributes.set(Attribute.heat, 0.8f);
|
||||
r.showSpawns = true;
|
||||
r.fog = true;
|
||||
r.staticFog = true; //TODO false
|
||||
r.staticFog = false; //TODO decide
|
||||
};
|
||||
|
||||
unlockedOnLand.add(Blocks.coreBastion);
|
||||
|
||||
@@ -3412,10 +3412,10 @@ public class UnitTypes{
|
||||
rotate = false;
|
||||
shootY = 0f;
|
||||
beamWidth = 0.7f;
|
||||
repairSpeed = 0.25f;
|
||||
repairSpeed = 2.2f;
|
||||
fractionRepairSpeed = 0.04f;
|
||||
aimDst = 0f;
|
||||
shootCone = 15f;
|
||||
fractionRepair = true;
|
||||
mirror = false;
|
||||
|
||||
targetUnits = false;
|
||||
@@ -3473,12 +3473,13 @@ public class UnitTypes{
|
||||
rotate = false;
|
||||
shootY = 0f;
|
||||
beamWidth = 0.7f;
|
||||
repairSpeed = 0.3f;
|
||||
aimDst = 0f;
|
||||
shootCone = 15f;
|
||||
fractionRepair = true;
|
||||
mirror = false;
|
||||
|
||||
repairSpeed = 2.5f;
|
||||
fractionRepairSpeed = 0.04f;
|
||||
|
||||
targetUnits = false;
|
||||
targetBuildings = true;
|
||||
autoTarget = false;
|
||||
@@ -3547,12 +3548,13 @@ public class UnitTypes{
|
||||
rotate = false;
|
||||
shootY = 0f;
|
||||
beamWidth = 0.7f;
|
||||
repairSpeed = 0.2f;
|
||||
aimDst = 0f;
|
||||
shootCone = 40f;
|
||||
fractionRepair = true;
|
||||
mirror = true;
|
||||
|
||||
repairSpeed = 1.3f;
|
||||
fractionRepairSpeed = 0.02f;
|
||||
|
||||
targetUnits = false;
|
||||
targetBuildings = true;
|
||||
autoTarget = false;
|
||||
|
||||
@@ -26,10 +26,9 @@ import static mindustry.Vars.*;
|
||||
* */
|
||||
public class RepairBeamWeapon extends Weapon{
|
||||
public boolean targetBuildings = false, targetUnits = true;
|
||||
//TODO leads to wrong stats
|
||||
public boolean fractionRepair = false;
|
||||
|
||||
public float repairSpeed = 0.3f;
|
||||
public float fractionRepairSpeed = 0f;
|
||||
public float beamWidth = 1f;
|
||||
public float pulseRadius = 6f;
|
||||
public float pulseStroke = 2f;
|
||||
@@ -150,7 +149,7 @@ public class RepairBeamWeapon extends Weapon{
|
||||
}
|
||||
|
||||
if(canShoot && mount.target instanceof Healthc u){
|
||||
u.heal(repairSpeed * heal.strength * Time.delta * (fractionRepair ? u.maxHealth() / 100f : 1f));
|
||||
u.heal(repairSpeed * heal.strength * Time.delta + fractionRepairSpeed * heal.strength * Time.delta * u.maxHealth() / 100f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,9 +173,7 @@ public class RepairBeamWeapon extends Weapon{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
if(fractionRepair){
|
||||
bullet.healPercent = repairSpeed;
|
||||
}
|
||||
bullet.healPercent = fractionRepairSpeed;
|
||||
}
|
||||
|
||||
public static class HealBeamMount extends WeaponMount{
|
||||
|
||||
Reference in New Issue
Block a user