|
|
@ -88,10 +88,23 @@ public class EffectsParser { |
|
|
|
//log all sources
|
|
|
|
//log all sources
|
|
|
|
|
|
|
|
|
|
|
|
for (String line : compiledLines) { |
|
|
|
for (String line : compiledLines) { |
|
|
|
|
|
|
|
String rawValue; |
|
|
|
if (line.contains("SOURCEBEGIN")) |
|
|
|
if (line.contains("SOURCEBEGIN")) { |
|
|
|
effectData.sources.add(mbEnums.EffectSourceType.valueOf(compiledLines.get(index + 1).replace(" ", ""))); |
|
|
|
rawValue = compiledLines.get(index + 1).replace(" ", ""); |
|
|
|
|
|
|
|
switch (rawValue) { |
|
|
|
|
|
|
|
case "Crush": |
|
|
|
|
|
|
|
rawValue = "Crushing"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "Slash": |
|
|
|
|
|
|
|
rawValue = "Slashing"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "Pierce": |
|
|
|
|
|
|
|
rawValue = "Piercing"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
effectData.sources.add(mbEnums.EffectSourceType.valueOf(rawValue)); |
|
|
|
|
|
|
|
} |
|
|
|
index++; |
|
|
|
index++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|