|
|
|
@ -10,6 +10,7 @@ package engine.ConfigParsing;
@@ -10,6 +10,7 @@ package engine.ConfigParsing;
|
|
|
|
|
|
|
|
|
|
import engine.ConfigParsing.EffectEntry.EffectEntry; |
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.nio.file.Files; |
|
|
|
@ -53,7 +54,14 @@ public class EffectsParser {
@@ -53,7 +54,14 @@ public class EffectsParser {
|
|
|
|
|
|
|
|
|
|
// Parse effect entry description
|
|
|
|
|
|
|
|
|
|
String firstLine = effectData.substring(0, effectData.indexOf('\n')); |
|
|
|
|
String firstLine; |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
firstLine = effectData.substring(0, effectData.indexOf('\n')); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Logger.error(e); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ArrayList<String> effectDescription = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
Matcher matcher = STRSPLIT_REGEX.matcher(firstLine); |
|
|
|
|