vorg baked in stats

This commit is contained in:
2024-04-21 06:19:28 -05:00
parent 7eb6deb1e9
commit be4cbd3f6f
+5
View File
@@ -681,8 +681,13 @@ public class Item extends AbstractWorldObject {
if (item.getItemBase().isVorg()) { if (item.getItemBase().isVorg()) {
item.getEnchants().clear(); item.getEnchants().clear();
for (String powerString : item.getItemBase().getVorgStats()) { for (String powerString : item.getItemBase().getVorgStats()) {
try {
item.addPermanentEnchantment(powerString, 0); item.addPermanentEnchantment(powerString, 0);
} }
catch(Exception e){
Logger.error("Couldn't find enchantment for: " + powerString);
}
}
item.setName(item.getItemBase().getName()); item.setName(item.getItemBase().getName());
} }
} }