Browse Source

No need to process zero values

feature-config-usage
MagicBot 2 days ago
parent
commit
6a9ca26d81
  1. 1
      src/engine/wpakpowers/WpakPowerManager.java

1
src/engine/wpakpowers/WpakPowerManager.java

@ -440,6 +440,7 @@ 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);
if (modifierEntry.max != 0)
outData.second = modifierEntry.compoundCurveType.name().contains("SIVL") ? outData.second = modifierEntry.compoundCurveType.name().contains("SIVL") ?
modifierEntry.max * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) : modifierEntry.max * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) :
modifierEntry.max + (modifierEntry.compoundCurveType.getValue() * rank); modifierEntry.max + (modifierEntry.compoundCurveType.getValue() * rank);

Loading…
Cancel
Save