Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
83b1503cee
  1. 11
      src/engine/ConfigParsing/EffectsParser.java

11
src/engine/ConfigParsing/EffectsParser.java

@ -125,6 +125,7 @@ public class EffectsParser { @@ -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 { @@ -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]);
}
}
}
}
Loading…
Cancel
Save