From 0b4e0d65a9be57d7b885ce75682e65d75d3daff4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:14:15 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 953c0f54..432cd287 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -130,8 +130,14 @@ public class EffectsParser { public static void GenerateModValues(Mod inMod, String[] data) { + + int maxValue = 5; + if(inMod.type != null && inMod.type.name().equals("Health")){ + maxValue = 7; + } + if(data.length < maxValue) maxValue = data.length;