|
|
@ -276,20 +276,23 @@ public class MobEquipment extends AbstractGameObject { |
|
|
|
if (itemBase != null) |
|
|
|
if (itemBase != null) |
|
|
|
|
|
|
|
|
|
|
|
for (Integer token : itemBase.getBakedInStats().keySet()) { |
|
|
|
for (Integer token : itemBase.getBakedInStats().keySet()) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
EffectsBase effect = PowersManager.getEffectByToken(token); |
|
|
|
|
|
|
|
|
|
|
|
EffectsBase effect = PowersManager.getEffectByToken(token); |
|
|
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); |
|
|
|
|
|
|
|
if (apa.getEffectsBase() != null) |
|
|
|
|
|
|
|
if (apa.getEffectsBase().getValue() > 0) { |
|
|
|
|
|
|
|
//System.out.println(apa.getEffectsBase().getValue());
|
|
|
|
|
|
|
|
value += apa.getEffectsBase().getValue(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); |
|
|
|
|
|
|
|
if (apa.getEffectsBase() != null) |
|
|
|
|
|
|
|
if (apa.getEffectsBase().getValue() > 0) { |
|
|
|
|
|
|
|
//System.out.println(apa.getEffectsBase().getValue());
|
|
|
|
|
|
|
|
value += apa.getEffectsBase().getValue(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (apa.getEffectsBase2() != null) |
|
|
|
|
|
|
|
value += apa.getEffectsBase2().getValue(); |
|
|
|
|
|
|
|
|
|
|
|
if (apa.getEffectsBase2() != null) |
|
|
|
}catch(Exception e){ |
|
|
|
value += apa.getEffectsBase2().getValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.magicValue = (int) value; |
|
|
|
this.magicValue = (int) value; |
|
|
|
} |
|
|
|
} |
|
|
|