From 83b1503ceea1a9916a2a52cdc40be5e19d91027c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 18:51:27 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 2776c857..883fc7b9 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -125,6 +125,7 @@ public class EffectsParser { } effect_data.put(effectData.id, effectData); } + Logger.info("Effects.cfg Parsing Completed"); } public static void GenerateModValues(Mod inMod, String[] data) { @@ -132,8 +133,12 @@ public class EffectsParser { inMod.values = new ArrayList<>(); for (int i = 1; i < data.length; i++) - if (!data[i].isEmpty()) - inMod.values.add(data[i]); - + if (!data[i].isEmpty()) { + if(i == 4 && !data[5].isEmpty()){ + inMod.values.add(data[i] + " " + data[5]); + }else { + inMod.values.add(data[i]); + } + } } } \ No newline at end of file