|
|
@ -134,10 +134,10 @@ public class PowerActionParser { |
|
|
|
statTransfer = new StatTransfer(); |
|
|
|
statTransfer = new StatTransfer(); |
|
|
|
statTransfer.fromStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStatValue = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.ramp = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.fromCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.rampCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStatValue = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.efficiency = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.toCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.efficiencyCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
powerAction.statTransfer = statTransfer; |
|
|
|
powerAction.statTransfer = statTransfer; |
|
|
@ -146,10 +146,10 @@ public class PowerActionParser { |
|
|
|
statTransfer = new StatTransfer(); |
|
|
|
statTransfer = new StatTransfer(); |
|
|
|
statTransfer.fromStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStat = mbEnums.CostType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStatValue = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.ramp = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.fromCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.rampCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.toStatValue = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.efficiency = Float.parseFloat(headerIterator.next()); |
|
|
|
statTransfer.toCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.efficiencyCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); |
|
|
|
statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
statTransfer.transfer_action = headerIterator.next(); |
|
|
|
statTransfer.transfer_action = headerIterator.next(); |
|
|
@ -170,7 +170,7 @@ public class PowerActionParser { |
|
|
|
powerAction.effects.add(effect); |
|
|
|
powerAction.effects.add(effect); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "Resurrect": |
|
|
|
case "Resurrect": |
|
|
|
powerAction.levelCap = Integer.parseInt(headerIterator.next()); |
|
|
|
powerAction.ramp = Integer.parseInt(headerIterator.next()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "SetItemFlag": |
|
|
|
case "SetItemFlag": |
|
|
|
powerAction.itemFlag = mbEnums.ItemFlags.valueOf(headerIterator.next()); |
|
|
|
powerAction.itemFlag = mbEnums.ItemFlags.valueOf(headerIterator.next()); |
|
|
@ -270,10 +270,10 @@ public class PowerActionParser { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "LEVELCAP": |
|
|
|
case "LEVELCAP": |
|
|
|
arguments = Arrays.asList(lineValues.get(1).trim().split("\\s+")); |
|
|
|
arguments = Arrays.asList(lineValues.get(1).trim().split("\\s+")); |
|
|
|
powerAction.levelCap = Integer.parseInt(arguments.get(0)); |
|
|
|
powerAction.ramp = Integer.parseInt(arguments.get(0)); |
|
|
|
|
|
|
|
|
|
|
|
if (arguments.size() > 1) // Not all level caps have a curve
|
|
|
|
if (arguments.size() > 1) // Not all level caps have a curve
|
|
|
|
powerAction.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments.get(1)); |
|
|
|
powerAction.rampCurve = mbEnums.CompoundCurveType.valueOf(arguments.get(1)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "CLEARAGGRO": |
|
|
|
case "CLEARAGGRO": |
|
|
|
powerAction.clearAggro = Boolean.parseBoolean(lineValues.get(1).trim()); |
|
|
|
powerAction.clearAggro = Boolean.parseBoolean(lineValues.get(1).trim()); |
|
|
|