forked from MagicBane/Server
Rework of helper method
This commit is contained in:
@@ -32,12 +32,12 @@ public class Behaviours {
|
||||
public static Object Standard(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) {
|
||||
|
||||
return WpakPowerManager.applyCurveToValue(modifierEntry.compoundCurveType, modifierEntry.max, rank);
|
||||
return WpakPowerManager.getModifiedValue(modifierEntry, rank);
|
||||
}
|
||||
|
||||
public static Object FPSubTypeAttr(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) {
|
||||
return WpakPowerManager.applyCurveToValue(modifierEntry.compoundCurveType, modifierEntry.min, rank);
|
||||
return WpakPowerManager.getModifiedValue(modifierEntry, rank);
|
||||
}
|
||||
|
||||
public static Object SubTypeSourceType(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
|
||||
@@ -59,7 +59,7 @@ public class Behaviours {
|
||||
public static Object FPSubTypeDmg(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) {
|
||||
String key = modifierEntry.arg1;
|
||||
float value = WpakPowerManager.applyCurveToValue(modifierEntry.compoundCurveType, modifierEntry.max, rank);
|
||||
float value = WpakPowerManager.getModifiedValue(modifierEntry, rank);
|
||||
return new Pair<>(key,value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user