From 03470c699d6adebcf35cc2b0f1ca139a58d0863a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 28 Feb 2024 19:43:51 -0600 Subject: [PATCH] vorg stats --- src/engine/objects/Item.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 968e1821..163d3b8b 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -1235,9 +1235,11 @@ public class Item extends AbstractWorldObject { if(this.getItemBase().isVorg()){ this.clearEffects(); for(String powerString : this.getItemBase().getVorgStats()){ - AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString); - apa.applyBakedInStatsForItem(this, 0); + //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()) { @@ -1249,6 +1251,7 @@ public class Item extends AbstractWorldObject { } AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); + } } }