Browse Source

vorg baked in stats

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
be4cbd3f6f
  1. 5
      src/engine/objects/Item.java

5
src/engine/objects/Item.java

@ -681,8 +681,13 @@ public class Item extends AbstractWorldObject { @@ -681,8 +681,13 @@ public class Item extends AbstractWorldObject {
if (item.getItemBase().isVorg()) {
item.getEnchants().clear();
for (String powerString : item.getItemBase().getVorgStats()) {
try {
item.addPermanentEnchantment(powerString, 0);
}
catch(Exception e){
Logger.error("Couldn't find enchantment for: " + powerString);
}
}
item.setName(item.getItemBase().getName());
}
}

Loading…
Cancel
Save