@Override public int getMotesExpended() { int total = 0; for (IEquipmentItem item : equipmentItems) { for (IEquipmentStats stats : item.getStats()) if (stats instanceof IArtifactStats && item.getAttunementState() == ((IArtifactStats) stats).getAttuneType()) total += ((IArtifactStats) stats).getAttuneCost(); } return total; }