From a61b8d193b7ebb29fe03d4be4833fbfc1308cd1c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 21 Aug 2024 11:45:11 -0400 Subject: [PATCH] Comment cleanup --- src/engine/wpak/EffectsParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index 4d633ab6..ee4490bf 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -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();