Browse Source

More power parsing work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
06364a2b9e
  1. 7
      src/engine/wpak/PowersParser.java

7
src/engine/wpak/PowersParser.java

@ -57,6 +57,13 @@ public class PowersParser {
while (matcher.find()) while (matcher.find())
powerHeader.add(matcher.group().trim()); powerHeader.add(matcher.group().trim());
powerEntry.power_id = powerHeader.get(0);
powerEntry.power_name = powerHeader.get(1);
powerEntry.power_type = powerHeader.get(2);
powerEntry.skill_id = Integer.parseInt(powerHeader.get(3));
powerEntry.skill_name = powerHeader.get(4);
powerEntry.target_type = powerHeader.get(5);
for (int x = 2; x < powerEntries.length; x++) { for (int x = 2; x < powerEntries.length; x++) {
// Parse key/pair values // Parse key/pair values
} }

Loading…
Cancel
Save