Browse Source

Strip quotes from names

feature-config-parsing2
MagicBot 4 months ago
parent
commit
0b4b270d2f
  1. 6
      src/engine/wpak/PowersParser.java

6
src/engine/wpak/PowersParser.java

@ -58,10 +58,12 @@ public class PowersParser {
powerHeader.add(matcher.group().trim()); powerHeader.add(matcher.group().trim());
powerEntry.power_id = powerHeader.get(0); powerEntry.power_id = powerHeader.get(0);
powerEntry.power_name = powerHeader.get(1); powerEntry.power_name = powerHeader.get(1).replaceAll("\"", "");
;
powerEntry.power_type = powerHeader.get(2); powerEntry.power_type = powerHeader.get(2);
powerEntry.skill_id = Integer.parseInt(powerHeader.get(3)); powerEntry.skill_id = Integer.parseInt(powerHeader.get(3));
powerEntry.skill_name = powerHeader.get(4); powerEntry.skill_name = powerHeader.get(4).replaceAll("\"", "");
;
powerEntry.target_type = powerHeader.get(5); powerEntry.target_type = powerHeader.get(5);
powerEntry.range = Integer.parseInt(powerHeader.get(6)); powerEntry.range = Integer.parseInt(powerHeader.get(6));
powerEntry.radiusType = powerHeader.get(7); powerEntry.radiusType = powerHeader.get(7);

Loading…
Cancel
Save