Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
0b4e0d65a9
  1. 6
      src/engine/ConfigParsing/EffectsParser.java

6
src/engine/ConfigParsing/EffectsParser.java

@ -130,8 +130,14 @@ public class EffectsParser { @@ -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;

Loading…
Cancel
Save