Enum equals faster than string contains

This commit is contained in:
2025-02-26 12:22:42 -05:00
parent 0d8f1f7252
commit 106e7be1ac
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -436,12 +436,12 @@ public class WpakPowerManager {
// These all have "SIVL" in the curve name suggesting
// interpolation between min max. Not something currently done.
outData.first = modifierEntry.compoundCurveType.name().contains("SIVL") ?
outData.first = modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY) ?
modifierEntry.min * (1 + (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.type.equals(mbEnums.ModificationType.MULTIPLY) ?
modifierEntry.max * (1 + (modifierEntry.compoundCurveType.getValue() * rank)) :
modifierEntry.max + (modifierEntry.compoundCurveType.getValue() * rank);
return outData;