Browse Source

attempt to parse 2 worded values

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

9
src/engine/ConfigParsing/EffectsParser.java

@ -125,6 +125,7 @@ public class EffectsParser {
} }
effect_data.put(effectData.id, effectData); effect_data.put(effectData.id, effectData);
} }
Logger.info("Effects.cfg Parsing Completed");
} }
public static void GenerateModValues(Mod inMod, String[] data) { public static void GenerateModValues(Mod inMod, String[] data) {
@ -132,8 +133,12 @@ public class EffectsParser {
inMod.values = new ArrayList<>(); inMod.values = new ArrayList<>();
for (int i = 1; i < data.length; i++) for (int i = 1; i < data.length; i++)
if (!data[i].isEmpty()) if (!data[i].isEmpty()) {
if(i == 4 && !data[5].isEmpty()){
inMod.values.add(data[i] + " " + data[5]);
}else {
inMod.values.add(data[i]); inMod.values.add(data[i]);
}
}
} }
} }
Loading…
Cancel
Save