Browse Source

vorg stats

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
03470c699d
  1. 7
      src/engine/objects/Item.java

7
src/engine/objects/Item.java

@ -1235,9 +1235,11 @@ public class Item extends AbstractWorldObject {
if(this.getItemBase().isVorg()){ if(this.getItemBase().isVorg()){
this.clearEffects(); this.clearEffects();
for(String powerString : this.getItemBase().getVorgStats()){ for(String powerString : this.getItemBase().getVorgStats()){
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString); //AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
apa.applyBakedInStatsForItem(this, 0); //apa.applyBakedInStatsForItem(this, 0);
this.addPermanentEnchantment(powerString,0);
} }
this.setName(this.getItemBase().getName());
}else { }else {
for (Integer token : this.getItemBase().getBakedInStats().keySet()) { for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
@ -1249,6 +1251,7 @@ public class Item extends AbstractWorldObject {
} }
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
} }
} }
} }

Loading…
Cancel
Save