Browse Source

Variable renamed for clarity

feature-config-parsing2
MagicBot 3 months ago
parent
commit
7125e9b360
  1. 8
      src/engine/wpak/PowersParser.java

8
src/engine/wpak/PowersParser.java

@ -151,7 +151,7 @@ public class PowersParser {
String key = lineValues.get(0).trim(); String key = lineValues.get(0).trim();
ActionEntry actionEntry; ActionEntry actionEntry;
List<String> arguments; List<String> arguments;
Matcher matcher1; Matcher argumentMatcher;
switch (key) { switch (key) {
case "ACTION": case "ACTION":
@ -196,11 +196,11 @@ public class PowersParser {
powerEntry.curves.put(arguments.get(0), mbEnums.CompoundCurveType.valueOf(arguments.get(1))); powerEntry.curves.put(arguments.get(0), mbEnums.CompoundCurveType.valueOf(arguments.get(1)));
break; break;
case "EQPREREQ": case "EQPREREQ":
matcher1 = STRSPLIT_REGEX.matcher(lineValues.get(1).trim()); argumentMatcher = STRSPLIT_REGEX.matcher(lineValues.get(1).trim());
arguments = new ArrayList<>(); arguments = new ArrayList<>();
while (matcher1.find()) while (argumentMatcher.find())
arguments.add(matcher1.group().trim()); arguments.add(argumentMatcher.group().trim());
argumentIterator = arguments.iterator(); argumentIterator = arguments.iterator();

Loading…
Cancel
Save