forked from MagicBane/Server
starting of new power manager
This commit is contained in:
@@ -25,7 +25,6 @@ import java.util.regex.Pattern;
|
||||
public class EffectsParser {
|
||||
|
||||
public static String effectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg";
|
||||
public static HashMap<String, Effect> effect_data = new HashMap<>();
|
||||
private static final Pattern EFFECT_REGEX = Pattern.compile("(?<=EFFECTBEGIN)(.+?)(?=EFFECTEND)", Pattern.DOTALL);
|
||||
private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL);
|
||||
private static final Pattern MODS_REGEX = Pattern.compile("(?<=MODSBEGIN)(.+?)(?=MODSEND)", Pattern.DOTALL);
|
||||
@@ -52,7 +51,7 @@ public class EffectsParser {
|
||||
|
||||
while (matcher.find()) {
|
||||
Effect effect = parseEffectEntry(matcher.group());
|
||||
effect_data.put(effect.effect_id, effect);
|
||||
WpakPowerManager.effect_data.put(effect.effect_id, effect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user