mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 00:05:23 +07:00
Fixed #7607
This commit is contained in:
parent
301e570068
commit
710fd3484f
@ -39,9 +39,9 @@ public class AttributeCrafter extends GenericCrafter{
|
|||||||
|
|
||||||
addBar("efficiency", (AttributeCrafterBuild entity) ->
|
addBar("efficiency", (AttributeCrafterBuild entity) ->
|
||||||
new Bar(
|
new Bar(
|
||||||
() -> Core.bundle.format("bar.efficiency", (int)(entity.efficiencyScale() * 100 * displayEfficiencyScale)),
|
() -> Core.bundle.format("bar.efficiency", (int)(entity.efficiencyMultiplier() * 100 * displayEfficiencyScale)),
|
||||||
() -> Pal.lightOrange,
|
() -> Pal.lightOrange,
|
||||||
entity::efficiencyScale));
|
entity::efficiencyMultiplier));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -62,10 +62,10 @@ public class AttributeCrafter extends GenericCrafter{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getProgressIncrease(float base){
|
public float getProgressIncrease(float base){
|
||||||
return super.getProgressIncrease(base) * efficiencyScale();
|
return super.getProgressIncrease(base) * efficiencyMultiplier();
|
||||||
}
|
}
|
||||||
|
|
||||||
public float efficiencyScale(){
|
public float efficiencyMultiplier(){
|
||||||
return baseEfficiency + Math.min(maxBoost, boostScale * attrsum) + attribute.env();
|
return baseEfficiency + Math.min(maxBoost, boostScale * attrsum) + attribute.env();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user