scale most consumers with timescale (#11516)
This commit is contained in:
@@ -207,7 +207,7 @@ public class ForceProjector extends Block{
|
|||||||
|
|
||||||
phaseHeat = Mathf.lerpDelta(phaseHeat, Mathf.num(phaseValid), 0.1f);
|
phaseHeat = Mathf.lerpDelta(phaseHeat, Mathf.num(phaseValid), 0.1f);
|
||||||
|
|
||||||
if(phaseValid && !broken && timer(timerUse, phaseUseTime) && efficiency > 0){
|
if(phaseValid && !broken && timer(timerUse, phaseUseTime / timeScale) && efficiency > 0){
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class MendProjector extends Block{
|
|||||||
|
|
||||||
phaseHeat = Mathf.lerpDelta(phaseHeat, optionalEfficiency, 0.1f);
|
phaseHeat = Mathf.lerpDelta(phaseHeat, optionalEfficiency, 0.1f);
|
||||||
|
|
||||||
if(optionalEfficiency > 0 && timer(timerUse, useTime) && canHeal){
|
if(optionalEfficiency > 0 && timer(timerUse, useTime / timeScale) && canHeal){
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ public class RegenProjector extends Block{
|
|||||||
anyTargets = targets.contains(b -> b.damaged());
|
anyTargets = targets.contains(b -> b.damaged());
|
||||||
|
|
||||||
if(efficiency > 0){
|
if(efficiency > 0){
|
||||||
if((optionalTimer += Time.delta * optionalEfficiency) >= optionalUseTime){
|
if((optionalTimer += edelta() * optionalEfficiency) >= optionalUseTime){
|
||||||
consume();
|
consume();
|
||||||
optionalTimer = 0f;
|
optionalTimer = 0f;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ public class WallCrafter extends Block{
|
|||||||
}
|
}
|
||||||
}, null) * Mathf.lerp(1f, liquidBoostIntensity, hasLiquidBooster ? optionalEfficiency : 0f) * (itemValid ? itemBoostIntensity : 1f);
|
}, null) * Mathf.lerp(1f, liquidBoostIntensity, hasLiquidBooster ? optionalEfficiency : 0f) * (itemValid ? itemBoostIntensity : 1f);
|
||||||
|
|
||||||
if(itemValid && eff * efficiency > 0 && timer(timerUse, boostItemUseTime)){
|
if(itemValid && eff * efficiency > 0 && timer(timerUse, boostItemUseTime / timeScale)){
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user