Browse Source

Filename updated

feature-config-parsing2
MagicBot 4 months ago
parent
commit
e7c2e827b9
  1. 2
      src/engine/wpak/PowersParser.java

2
src/engine/wpak/PowersParser.java

@ -19,7 +19,7 @@ import java.util.regex.Pattern;
public class PowersParser { public class PowersParser {
public static String powersPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg"; public static String powersPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Powers.cfg";
private static final Pattern POWER_REGEX = Pattern.compile("(?<=POWERBEGIN)(.+?)(?=POWEREND)", Pattern.DOTALL); private static final Pattern POWER_REGEX = Pattern.compile("(?<=POWERBEGIN)(.+?)(?=POWEREND)", Pattern.DOTALL);
private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*"); private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*");

Loading…
Cancel
Save