Refactor baked in stats

This commit is contained in:
2024-03-11 11:29:41 -04:00
parent 6ee194924c
commit b0f8c758e5
3 changed files with 4 additions and 23 deletions
+3 -7
View File
@@ -229,17 +229,13 @@ public class MobEquipment extends AbstractGameObject {
if (itemBase != null)
for (Integer token : itemBase.getBakedInStats().keySet()) {
for (String effectID : this.template.item_user_power_action.keySet()) {
EffectsBase effect = PowersManager.getEffectByToken(token);
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effectID);
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
if (apa.getEffectsBase() != null)
if (apa.getEffectsBase().getValue() > 0) {
//System.out.println(apa.getEffectsBase().getValue());
if (apa.getEffectsBase().getValue() > 0)
value += apa.getEffectsBase().getValue();
}
if (apa.getEffectsBase2() != null)
value += apa.getEffectsBase2().getValue();