forked from MagicBane/Server
Iterate through all effects for action
This commit is contained in:
@@ -56,7 +56,7 @@ public class EffectsParser {
|
||||
while (matcher.find()) {
|
||||
try {
|
||||
Effect effect = parseEffectEntry(matcher.group());
|
||||
WpakPowerManager.effect_data.put(effect.effect_id, effect);
|
||||
WpakPowerManager._effectsLookup.put(effect.effect_id, effect);
|
||||
}catch(Exception e){
|
||||
Logger.error("EFFECT PARSE FAILED: " + e);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class PowerActionParser {
|
||||
while (matcher.find()) {
|
||||
|
||||
PowerAction powerAction = parsePowerActionEntry(matcher.group().trim());
|
||||
WpakPowerManager.power_actions.put(Hasher.SBStringHash(powerAction.action_id),powerAction);
|
||||
WpakPowerManager._powerActionLookup.put(Hasher.SBStringHash(powerAction.action_id), powerAction);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class PowersParser {
|
||||
while (matcher.find()) {
|
||||
|
||||
Power power = parsePowerEntry(matcher.group().trim());
|
||||
WpakPowerManager.powers.put(Hasher.SBStringHash(power.power_id),power);
|
||||
WpakPowerManager._powersLookup.put(Hasher.SBStringHash(power.power_id), power);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user