|
|
|
@ -96,6 +96,7 @@ public class Item extends AbstractWorldObject {
@@ -96,6 +96,7 @@ public class Item extends AbstractWorldObject {
|
|
|
|
|
this.customName = name; |
|
|
|
|
|
|
|
|
|
loadEnchantments(); |
|
|
|
|
if(this.getItemBase().isVorg() == false) |
|
|
|
|
bakeInStats(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1232,15 +1233,6 @@ public class Item extends AbstractWorldObject {
@@ -1232,15 +1233,6 @@ public class Item extends AbstractWorldObject {
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
if (this.getItemBase() != null) |
|
|
|
|
if(this.getItemBase().isVorg()){ |
|
|
|
|
this.getEnchants().clear(); |
|
|
|
|
for(String powerString : this.getItemBase().getVorgStats()){ |
|
|
|
|
//AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
|
|
|
|
|
//apa.applyBakedInStatsForItem(this, 0);
|
|
|
|
|
this.addPermanentEnchantment(powerString,0); |
|
|
|
|
} |
|
|
|
|
this.setName(this.getItemBase().getName()); |
|
|
|
|
}else { |
|
|
|
|
for (Integer token : this.getItemBase().getBakedInStats().keySet()) { |
|
|
|
|
|
|
|
|
|
effect = PowersManager.getEffectByToken(token); |
|
|
|
@ -1254,7 +1246,6 @@ public class Item extends AbstractWorldObject {
@@ -1254,7 +1246,6 @@ public class Item extends AbstractWorldObject {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public final void loadEnchantments() { |
|
|
|
|
//dont load mobloot enchantments, they arent in db.
|
|
|
|
|