Set the remaining charges @param remainingCharges The number of charges remaining
(final int remainingCharges)
| 1754 | * @param remainingCharges The number of charges remaining |
| 1755 | */ |
| 1756 | public void setRemainingCharges(final int remainingCharges) |
| 1757 | { |
| 1758 | |
| 1759 | for (EquipmentModifier eqMod : getEqModifierList(true)) |
| 1760 | { |
| 1761 | |
| 1762 | Integer min = eqMod.get(IntegerKey.MIN_CHARGES); |
| 1763 | |
| 1764 | if (min != null && min > 0) |
| 1765 | { |
| 1766 | EqModSpellInfo.setRemainingCharges(this, eqMod, remainingCharges); |
| 1767 | } |
| 1768 | } |
| 1769 | } |
| 1770 | |
| 1771 | /** |
| 1772 | * Get the remaining charges |
no test coverage detected