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

Method setRemainingCharges

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

Set the remaining charges @param remainingCharges The number of charges remaining

(final int remainingCharges)

Source from the content-addressed store, hash-verified

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

Callers 1

modifyChargesMethod · 0.45

Calls 3

getEqModifierListMethod · 0.95
setRemainingChargesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected