Browse Source

catch exceptin for missing tokens

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
d21bf0185b
  1. 5
      src/engine/objects/MobEquipment.java

5
src/engine/objects/MobEquipment.java

@ -276,7 +276,7 @@ public class MobEquipment extends AbstractGameObject { @@ -276,7 +276,7 @@ public class MobEquipment extends AbstractGameObject {
if (itemBase != null)
for (Integer token : itemBase.getBakedInStats().keySet()) {
try {
EffectsBase effect = PowersManager.getEffectByToken(token);
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
@ -289,6 +289,9 @@ public class MobEquipment extends AbstractGameObject { @@ -289,6 +289,9 @@ public class MobEquipment extends AbstractGameObject {
if (apa.getEffectsBase2() != null)
value += apa.getEffectsBase2().getValue();
}catch(Exception e){
}
}
this.magicValue = (int) value;

Loading…
Cancel
Save