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
|
// These all have "SIVL" in the curve name suggesting
|
||||||
// interpolation between min max. Not something currently done.
|
// interpolation between min max. Not something currently done.
|
||||||
|
|
||||||
if (modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY)) {
|
outData.first = modifierEntry.compoundCurveType.type.equals(mbEnums.ModificationType.MULTIPLY) ?
|
||||||
outData.first = modifierEntry.min * (1 + (modifierEntry.compoundCurveType.value * rank));
|
modifierEntry.min * (1 + (modifierEntry.compoundCurveType.value * rank)) :
|
||||||
} else {
|
modifierEntry.min + (modifierEntry.compoundCurveType.value * rank);
|
||||||
outData.first = 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;
|
return outData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user