|
|
@ -1232,17 +1232,24 @@ public class Item extends AbstractWorldObject { |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (this.getItemBase() != null) |
|
|
|
if (this.getItemBase() != null) |
|
|
|
|
|
|
|
if(this.getItemBase().isVorg()){ |
|
|
|
|
|
|
|
this.clearEffects(); |
|
|
|
|
|
|
|
for(String powerString : this.getItemBase().getVorgStats()){ |
|
|
|
|
|
|
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString); |
|
|
|
|
|
|
|
apa.applyBakedInStatsForItem(this, 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
for (Integer token : this.getItemBase().getBakedInStats().keySet()) { |
|
|
|
|
|
|
|
|
|
|
|
for (Integer token : this.getItemBase().getBakedInStats().keySet()) { |
|
|
|
effect = PowersManager.getEffectByToken(token); |
|
|
|
|
|
|
|
|
|
|
|
effect = PowersManager.getEffectByToken(token); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (effect == null) { |
|
|
|
if (effect == null) { |
|
|
|
Logger.error("missing effect of token " + token); |
|
|
|
Logger.error("missing effect of token " + token); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); |
|
|
|
|
|
|
|
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); |
|
|
|
} |
|
|
|
} |
|
|
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); |
|
|
|
|
|
|
|
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|