Variable rename

This commit is contained in:
2025-02-22 15:25:36 -05:00
parent 5277fbbe56
commit 3e510a487c
6 changed files with 10 additions and 10 deletions
@@ -29,7 +29,7 @@ public class CharmPowerAction extends AbstractPowerAction {
public CharmPowerAction(PowerAction powerAction) {
super(powerAction);
this.levelCap = powerAction.ramp;
this.levelCapRamp = powerAction.compoundCurve.ordinal();
this.levelCapRamp = powerAction.compoundCurveType.ordinal();
}
@Override
@@ -30,7 +30,7 @@ public class FearPowerAction extends AbstractPowerAction {
public FearPowerAction(PowerAction powerAction) {
super(powerAction);
this.levelCap = powerAction.ramp;
this.levelCapRamp = powerAction.compoundCurve.ordinal();
this.levelCapRamp = powerAction.compoundCurveType.ordinal();
}
@Override
+1 -1
View File
@@ -274,7 +274,7 @@ public class PowerActionParser {
powerAction.ramp = Integer.parseInt(arguments.get(0));
if (arguments.size() > 1) // Not all level caps have a curve
powerAction.compoundCurve = mbEnums.CompoundCurveType.valueOf(arguments.get(1));
powerAction.compoundCurveType = mbEnums.CompoundCurveType.valueOf(arguments.get(1));
break;
case "CLEARAGGRO":
powerAction.clearAggro = Boolean.parseBoolean(lineValues.get(1).trim());
+1 -1
View File
@@ -24,7 +24,7 @@ public class PowerAction {
public int petRace;
public StatTransfer statTransfer;
public int ramp;
public mbEnums.CompoundCurveType compoundCurve;
public mbEnums.CompoundCurveType compoundCurveType;
public TrackEntry trackEntry;
// Additional variables after header go here.
+3 -3
View File
@@ -31,12 +31,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(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank);
return WpakPowerManager.applyCurveToValue(powerAction.compoundCurveType, modifierEntry.compoundCurveType.getValue(), rank);
}
public static Object FPSubTypeAttr(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry) {
return WpakPowerManager.applyCurveToValue(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank);
return WpakPowerManager.applyCurveToValue(powerAction.compoundCurveType, modifierEntry.compoundCurveType.getValue(), rank);
}
public static Object SubTypeSourceType(AbstractCharacter caster, Power power, Integer rank, AbstractWorldObject target,
@@ -58,7 +58,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(powerAction.compoundCurve, modifierEntry.compoundCurveType.getValue(), rank);
float value = WpakPowerManager.applyCurveToValue(powerAction.compoundCurveType, modifierEntry.compoundCurveType.getValue(), rank);
return new Pair<>(key,value);
}
+3 -3
View File
@@ -443,10 +443,10 @@ public class WpakPowerManager {
// Method scales by either integer or float values driven by the curve type
if (EnumSet.of(mbEnums.CompoundCurveType.DefaultFlat, mbEnums.CompoundCurveType.DefaultSlope,
mbEnums.CompoundCurveType.DefaultSlopeDown).contains(powerAction.compoundCurve))
scaledValue = powerAction.compoundCurve.getValue() + (modifierEntry.compoundCurveType.getValue() * rank);
mbEnums.CompoundCurveType.DefaultSlopeDown).contains(powerAction.compoundCurveType))
scaledValue = powerAction.compoundCurveType.getValue() + (modifierEntry.compoundCurveType.getValue() * rank);
else
scaledValue = powerAction.compoundCurve.getValue() * (1 + (modifierEntry.compoundCurveType.getValue() * rank));
scaledValue = powerAction.compoundCurveType.getValue() * (1 + (modifierEntry.compoundCurveType.getValue() * rank));
scaledValue = scaledValue * 0.01f;