Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 5 months ago
parent
commit
2f837ace1e
  1. 4
      src/engine/ConfigParsing/EffectsParser.java

4
src/engine/ConfigParsing/EffectsParser.java

@ -132,9 +132,6 @@ public class EffectsParser {
int maxValue = 5; int maxValue = 5;
if(inMod.type.equals("Health"))
maxValue = 7;
if(data.length < maxValue) if(data.length < maxValue)
maxValue = data.length; maxValue = data.length;
@ -151,6 +148,7 @@ public class EffectsParser {
for (int j = i; j < data.length; j ++){ for (int j = i; j < data.length; j ++){
entry += data[j] + " "; entry += data[j] + " ";
} }
entry = entry.trim();
inMod.values.add(entry.trim()); inMod.values.add(entry.trim());
} catch (Exception e) { } catch (Exception e) {
inMod.values.add(data[i]); inMod.values.add(data[i]);

Loading…
Cancel
Save