Browse Source

catch exceptin for missing tokens

lakebane-master
FatBoy-DOTC 7 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 {
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()); AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
@ -289,6 +289,9 @@ public class MobEquipment extends AbstractGameObject {
if (apa.getEffectsBase2() != null) if (apa.getEffectsBase2() != null)
value += apa.getEffectsBase2().getValue(); value += apa.getEffectsBase2().getValue();
}catch(Exception e){
}
} }
this.magicValue = (int) value; this.magicValue = (int) value;

Loading…
Cancel
Save