Browse Source

Comment cleanup

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

4
src/engine/wpak/EffectsParser.java

@ -60,12 +60,14 @@ public class EffectsParser { @@ -60,12 +60,14 @@ public class EffectsParser {
EffectEntry effectEntry = new EffectEntry();
// Remove all lines that contain a # and leading/trailing blank lines
// Parse fields that lie outside the other tags
effectEntry.isItemEffect = effectData.contains("IsItemEffect");
effectEntry.isSpireEffect = effectData.contains("IsSpireEffect");
effectEntry.ignoreNoMod = effectData.contains("IgnoreNoMod");
effectEntry.dontSave = effectData.contains("DontSave");
// Remove all lines that contain a # and leading/trailing blank lines
effectData = effectData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "");
effectData = effectData.trim();

Loading…
Cancel
Save