attempt to parse 2 worded values
This commit is contained in:
@@ -130,14 +130,19 @@ public class EffectsParser {
|
|||||||
|
|
||||||
public static void GenerateModValues(Mod inMod, String[] data) {
|
public static void GenerateModValues(Mod inMod, String[] data) {
|
||||||
|
|
||||||
|
int maxValue = 5;
|
||||||
|
|
||||||
|
if(inMod.type.equals("Health"))
|
||||||
|
maxValue = 7;
|
||||||
|
|
||||||
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 == 5)
|
if (i >= maxValue)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (i == 4)
|
if (i == maxValue - 1)
|
||||||
try {
|
try {
|
||||||
String entry = "";
|
String entry = "";
|
||||||
for (int j = i; j < data.length; j ++){
|
for (int j = i; j < data.length; j ++){
|
||||||
|
|||||||
Reference in New Issue
Block a user