Browse Source

PowerActionEntry parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
d6272d7310
  1. 4
      src/engine/wpak/PowerActionParser.java

4
src/engine/wpak/PowerActionParser.java

@ -61,7 +61,7 @@ public class PowerActionParser {
powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim(); powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim();
String[] lineData = powerActionData.trim().split("\n"); String[] lineData = powerActionData.split("\n");
// Parse effect entry header // Parse effect entry header
@ -86,6 +86,8 @@ public class PowerActionParser {
effectDescription.level = Integer.parseInt(headerIterator.next()); effectDescription.level = Integer.parseInt(headerIterator.next());
} }
// Process key value pairs after header
return powerActionEntry; return powerActionEntry;
} }
} }

Loading…
Cancel
Save