vorg stats

This commit is contained in:
2024-02-28 19:43:51 -06:00
parent f777f480ad
commit 03470c699d
+5 -2
View File
@@ -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));
}
}
}