forked from MagicBane/Server
Ternary restored
This commit is contained in:
@@ -435,19 +435,15 @@ public class WpakPowerManager {
|
||||
// These all have "SIVL" in the curve name suggesting
|
||||
// interpolation between min max. Not something currently done.
|
||||
|
||||
if (modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY)) {
|
||||
outData.first = modifierEntry.min * (1 + (modifierEntry.compoundCurveType.value * rank));
|
||||
} else {
|
||||
outData.first = modifierEntry.min + (modifierEntry.compoundCurveType.value * rank);
|
||||
}
|
||||
outData.first = modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY) ?
|
||||
modifierEntry.min * (1 + (modifierEntry.compoundCurveType.value * rank)) :
|
||||
modifierEntry.min + (modifierEntry.compoundCurveType.value * rank);
|
||||
|
||||
if (modifierEntry.max != 0)
|
||||
outData.second = modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY) ?
|
||||
modifierEntry.max * (1 + (modifierEntry.compoundCurveType.value * rank)) :
|
||||
modifierEntry.max + (modifierEntry.compoundCurveType.value * rank);
|
||||
|
||||
if (modifierEntry.max != 0) {
|
||||
if (modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY)) {
|
||||
outData.second = modifierEntry.max * (1 + (modifierEntry.compoundCurveType.value * rank));
|
||||
} else {
|
||||
outData.second = modifierEntry.max + (modifierEntry.compoundCurveType.value * rank);
|
||||
}
|
||||
}
|
||||
return outData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user