This commit is contained in:
Anuken 2022-09-22 09:32:08 -04:00
parent 301e570068
commit 710fd3484f

View File

@ -39,9 +39,9 @@ public class AttributeCrafter extends GenericCrafter{
addBar("efficiency", (AttributeCrafterBuild entity) ->
new Bar(
() -> Core.bundle.format("bar.efficiency", (int)(entity.efficiencyScale() * 100 * displayEfficiencyScale)),
() -> Core.bundle.format("bar.efficiency", (int)(entity.efficiencyMultiplier() * 100 * displayEfficiencyScale)),
() -> Pal.lightOrange,
entity::efficiencyScale));
entity::efficiencyMultiplier));
}
@Override
@ -62,10 +62,10 @@ public class AttributeCrafter extends GenericCrafter{
@Override
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();
}