|
|
|
@ -31,22 +31,8 @@ public class Behaviour {
@@ -31,22 +31,8 @@ public class Behaviour {
|
|
|
|
|
|
|
|
|
|
public static Object Standard(AbstractCharacter caster, AbstractWorldObject target, Power power, |
|
|
|
|
ActionEntry powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) { |
|
|
|
|
boolean useAdditiveCurve = true; |
|
|
|
|
float modifierCurveValue = modifierEntry.compoundCurveType.getValue(); |
|
|
|
|
float modValue; |
|
|
|
|
|
|
|
|
|
if (modifierCurveValue > 0 && modifierCurveValue < .1 && |
|
|
|
|
modifierEntry.min != 0 && modifierEntry.max != 0) |
|
|
|
|
useAdditiveCurve = false; |
|
|
|
|
|
|
|
|
|
if (useAdditiveCurve) |
|
|
|
|
modValue = powerAction.curve.getValue() + (modifierCurveValue * rank); |
|
|
|
|
else |
|
|
|
|
modValue = powerAction.curve.getValue() * (1 + (modifierCurveValue * rank)); |
|
|
|
|
|
|
|
|
|
modValue = modValue * 0.01f; |
|
|
|
|
|
|
|
|
|
return modValue; |
|
|
|
|
return WpakPowerManager.applyCurveToModifier(powerAction, modifierEntry, rank); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Object FPSubTypeAttr(AbstractCharacter caster, AbstractWorldObject target, Power power, |
|
|
|
|