More Enum work
This commit is contained in:
@@ -16,7 +16,7 @@ public class PowerEntry {
|
|||||||
public String power_id;
|
public String power_id;
|
||||||
public String power;
|
public String power;
|
||||||
public ArrayList<PowerData> powers = new ArrayList<>();
|
public ArrayList<PowerData> powers = new ArrayList<>();
|
||||||
public String target_type;
|
public mbEnums.PowerTargetType target_type;
|
||||||
public int range;
|
public int range;
|
||||||
public String areaType;
|
public String areaType;
|
||||||
public int areaRange;
|
public int areaRange;
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ public class PowersParser {
|
|||||||
power.icon = Integer.parseInt(iterator.next());
|
power.icon = Integer.parseInt(iterator.next());
|
||||||
power.powerBase = iterator.next().replaceAll("\"", "");
|
power.powerBase = iterator.next().replaceAll("\"", "");
|
||||||
powerEntry.powers.add(power);
|
powerEntry.powers.add(power);
|
||||||
powerEntry.target_type = iterator.next();
|
powerEntry.target_type = mbEnums.PowerTargetType.valueOf(iterator.next());
|
||||||
} else
|
} else
|
||||||
powerEntry.target_type = nextValue;
|
powerEntry.target_type = mbEnums.PowerTargetType.valueOf(nextValue);
|
||||||
|
|
||||||
powerEntry.range = Integer.parseInt(iterator.next());
|
powerEntry.range = Integer.parseInt(iterator.next());
|
||||||
powerEntry.areaType = iterator.next();
|
powerEntry.areaType = iterator.next();
|
||||||
|
|||||||
Reference in New Issue
Block a user