mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Fixed #11371
This commit is contained in:
parent
e8fc33ca9e
commit
bb4534afde
1 changed files with 10 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public class ForceProjector extends Block{
|
|||
float liquidHeat = (1f + (liquid.heatCapacity - 0.4f) * 0.9f);
|
||||
float regenBoost = ((cooldownNormal * (cooldownLiquid * liquidHeat)) - cooldownNormal) * 60f;
|
||||
float cooldownBoost = (shieldHealth / (cooldownBrokenBase * (cooldownLiquid * liquidHeat)) - shieldHealth / cooldownBrokenBase) / 60f;
|
||||
|
||||
|
||||
b.table(bt -> {
|
||||
bt.right().defaults().padRight(3).left();
|
||||
bt.add("[lightgray]+" + Core.bundle.format("bar.regenerationrate", Strings.autoFixed(regenBoost, 2))).pad(5).row();
|
||||
|
|
@ -156,6 +156,15 @@ public class ForceProjector extends Block{
|
|||
public boolean broken = true;
|
||||
public float buildup, radscl, hit, warmup, phaseHeat;
|
||||
|
||||
@Override
|
||||
public void setProp(LAccess prop, double value){
|
||||
if(prop == LAccess.shield){
|
||||
buildup = Math.max(shieldHealth + phaseShieldBoost * phaseHeat - (float)value, 0f);
|
||||
}else{
|
||||
super.setProp(prop, value);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float range(){
|
||||
return realRadius();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue