|
|
@ -20,25 +20,23 @@ public class Behaviours { |
|
|
|
|
|
|
|
|
|
|
|
public static Object Flag(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object Flag(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
boolean modValue = true; |
|
|
|
return true; |
|
|
|
return modValue; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Object MapIntToInts(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object MapIntToInts(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
|
|
|
|
|
|
|
|
return powerAction.attackAnimations.clone(); |
|
|
|
return powerAction.attackAnimations.clone(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Object Standard(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object Standard(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
|
|
|
|
|
|
|
|
return WpakPowerManager.applyCurveToModifier(powerAction, modifierEntry, rank); |
|
|
|
return WpakPowerManager.applyCurveToValue(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Object FPSubTypeAttr(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object FPSubTypeAttr(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
return WpakPowerManager.applyCurveToModifier(powerAction, modifierEntry, rank); |
|
|
|
return WpakPowerManager.applyCurveToValue(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Object SubTypeSourceType(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object SubTypeSourceType(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
@ -60,7 +58,7 @@ public class Behaviours { |
|
|
|
public static Object FPSubTypeDmg(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
public static Object FPSubTypeDmg(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target, |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) { |
|
|
|
String key = modifierEntry.arg1; |
|
|
|
String key = modifierEntry.arg1; |
|
|
|
float value = WpakPowerManager.applyCurveToModifier(powerAction, modifierEntry, rank); |
|
|
|
float value = WpakPowerManager.applyCurveToValue(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank); |
|
|
|
return new Pair<>(key,value); |
|
|
|
return new Pair<>(key,value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|