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

Method setNumberEquipped

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

Sets the numberEquipped attribute of the Equipment object. @param num The new numberEquipped value

(final int num)

Source from the content-addressed store, hash-verified

1424 * The new numberEquipped value
1425 */
1426 public void setNumberEquipped(final int num)
1427 {
1428 numberEquipped = num;
1429
1430 if (num > 0)
1431 {
1432 equipped = true;
1433 }
1434 }
1435
1436 /**
1437 * Gets the numberEquipped attribute of the Equipment object.

Callers 3

addWeaponToLocationMethod · 0.95
updateTotalWeightMethod · 0.80
setCalcEquipmentListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected