From 2224d811ebe616a030af83579ac83bd3ba17d967 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:08:41 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index bb260d82..a4a9281b 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -130,14 +130,19 @@ public class EffectsParser { public static void GenerateModValues(Mod inMod, String[] data) { + int maxValue = 5; + + if(inMod.type.equals("Health")) + maxValue = 7; + inMod.values = new ArrayList<>(); for (int i = 1; i < data.length; i++) if (!data[i].isEmpty()) { - if (i == 5) + if (i >= maxValue) continue; - if (i == 4) + if (i == maxValue - 1) try { String entry = ""; for (int j = i; j < data.length; j ++){