MCPcopy Create free account
hub / github.com/PCGen/pcgen / getRemainingCharges

Method getRemainingCharges

code/src/java/pcgen/core/Equipment.java:1776–1788  ·  view source on GitHub ↗

Get the remaining charges @return remaining charges

()

Source from the content-addressed store, hash-verified

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

Callers 5

toStringMethod · 0.95
getEquipmentHtmlInfoMethod · 0.45
getSelectedChargesMethod · 0.45
getWeaponTokenMethod · 0.45
getChargesTokenIntMethod · 0.45

Calls 3

getEqModifierListMethod · 0.95
getRemainingChargesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected