No need to process zero values

This commit is contained in:
2025-02-26 12:09:13 -05:00
parent 32c28e8f54
commit 6a9ca26d81
+4 -3
View File
@@ -440,9 +440,10 @@ public class WpakPowerManager {
modifierEntry.min * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) : modifierEntry.min * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) :
modifierEntry.min + (modifierEntry.compoundCurveType.getValue() * rank); modifierEntry.min + (modifierEntry.compoundCurveType.getValue() * rank);
outData.second = modifierEntry.compoundCurveType.name().contains("SIVL") ? if (modifierEntry.max != 0)
modifierEntry.max * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) : outData.second = modifierEntry.compoundCurveType.name().contains("SIVL") ?
modifierEntry.max + (modifierEntry.compoundCurveType.getValue() * rank); modifierEntry.max * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) :
modifierEntry.max + (modifierEntry.compoundCurveType.getValue() * rank);
return outData; return outData;
} }