vorg stats

This commit is contained in:
2024-02-28 19:35:39 -06:00
parent ce542ce319
commit f777f480ad
3 changed files with 37 additions and 10 deletions
+17 -10
View File
@@ -1232,17 +1232,24 @@ public class Item extends AbstractWorldObject {
return;
if (this.getItemBase() != null)
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
effect = PowersManager.getEffectByToken(token);
if (effect == null) {
Logger.error("missing effect of token " + token);
continue;
if(this.getItemBase().isVorg()){
this.clearEffects();
for(String powerString : this.getItemBase().getVorgStats()){
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
apa.applyBakedInStatsForItem(this, 0);
}
}else {
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
effect = PowersManager.getEffectByToken(token);
if (effect == null) {
Logger.error("missing effect of token " + token);
continue;
}
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
}
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
}
}