Get the remaining charges @return remaining charges
()
| 1774 | * @return remaining charges |
| 1775 | */ |
| 1776 | public int getRemainingCharges() |
| 1777 | { |
| 1778 | for (EquipmentModifier eqMod : getEqModifierList(true)) |
| 1779 | { |
| 1780 | Integer min = eqMod.get(IntegerKey.MIN_CHARGES); |
| 1781 | if (min != null && min > 0) |
| 1782 | { |
| 1783 | return EqModSpellInfo.getRemainingCharges(this, eqMod); |
| 1784 | } |
| 1785 | } |
| 1786 | |
| 1787 | return -1; |
| 1788 | } |
| 1789 | |
| 1790 | /** |
| 1791 | * Gets the simple name attribute of the Equipment object |
no test coverage detected