|
|
@ -9,6 +9,7 @@ |
|
|
|
package engine.ConfigParsing; |
|
|
|
package engine.ConfigParsing; |
|
|
|
|
|
|
|
|
|
|
|
import engine.ConfigParsing.EffectEntry.EffectEntry; |
|
|
|
import engine.ConfigParsing.EffectEntry.EffectEntry; |
|
|
|
|
|
|
|
import engine.ConfigParsing.EffectEntry.EffectModifier; |
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
@ -92,7 +93,26 @@ public class EffectsParser { |
|
|
|
|
|
|
|
|
|
|
|
// Parse modifier entries
|
|
|
|
// Parse modifier entries
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
matcher = MODS_REGEX.matcher(effectData); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Iterate effect entries from .wpak config data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (matcher.find()) { |
|
|
|
|
|
|
|
EffectModifier effectModifier = parseModEntry(matcher.group()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (effectEntry != null) |
|
|
|
|
|
|
|
effectEntry.mods.add(effectModifier); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return effectEntry; |
|
|
|
return effectEntry; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static EffectModifier parseModEntry(String modData) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EffectModifier effectModifier = new EffectModifier(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return effectModifier; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|