parsing multi worded names

This commit is contained in:
2024-07-24 19:44:29 -05:00
parent 7d8117173f
commit 47cb824b3f
+16 -3
View File
@@ -88,10 +88,23 @@ public class EffectsParser {
//log all sources
for (String line : compiledLines) {
String rawValue;
if (line.contains("SOURCEBEGIN")) {
rawValue = compiledLines.get(index + 1).replace(" ", "");
switch (rawValue) {
case "Crush":
rawValue = "Crushing";
break;
case "Slash":
rawValue = "Slashing";
break;
case "Pierce":
rawValue = "Piercing";
break;
if (line.contains("SOURCEBEGIN"))
effectData.sources.add(mbEnums.EffectSourceType.valueOf(compiledLines.get(index + 1).replace(" ", "")));
}
effectData.sources.add(mbEnums.EffectSourceType.valueOf(rawValue));
}
index++;
}