From be4cbd3f6f7f6c4850cf6fc47eb21e0d82934094 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Apr 2024 06:19:28 -0500 Subject: [PATCH] vorg baked in stats --- src/engine/objects/Item.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 22e8c0cc..5d15f035 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -681,7 +681,12 @@ public class Item extends AbstractWorldObject { if (item.getItemBase().isVorg()) { item.getEnchants().clear(); for (String powerString : item.getItemBase().getVorgStats()) { - item.addPermanentEnchantment(powerString, 0); + try { + item.addPermanentEnchantment(powerString, 0); + } + catch(Exception e){ + Logger.error("Couldn't find enchantment for: " + powerString); + } } item.setName(item.getItemBase().getName()); }