Browse Source

More PowerEntry work.

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

2
src/engine/wpak/PowersParser.java

@ -28,7 +28,7 @@ public class PowersParser { @@ -28,7 +28,7 @@ public class PowersParser {
private 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 STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*");
private static final Pattern CONDITION_REGEX = Pattern.compile("(CONDITIONBEGIN.*?CONDITIONEND)");
private static final Pattern CONDITION_REGEX = Pattern.compile("(?<=CONDITIONBEGIN)(.+?)(?=CONDITIONEND)", Pattern.DOTALL);
public static void parseWpakFile() throws IOException {

Loading…
Cancel
Save