|
|
@ -1232,7 +1232,13 @@ 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); |
|
|
@ -1245,6 +1251,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); |
|
|
|
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public final void loadEnchantments() { |
|
|
|
public final void loadEnchantments() { |
|
|
|
//dont load mobloot enchantments, they arent in db.
|
|
|
|
//dont load mobloot enchantments, they arent in db.
|
|
|
|