|
|
|
@ -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(); |
|
|
|
|