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

Method addEquipment

code/src/java/pcgen/core/PlayerCharacter.java:2243–2248  ·  view source on GitHub ↗

Add an item of equipment to the character. @param eq The equipment to be added.

(final Equipment eq)

Source from the content-addressed store, hash-verified

2241 * @param eq The equipment to be added.
2242 */
2243 public void addEquipment(final Equipment eq)
2244 {
2245 equipmentFacet.add(id, eq, this);
2246 userEquipmentFacet.add(id, eq, this);
2247 //setDirty(true);
2248 }
2249
2250 /**
2251 * Cache the output index of an automatic equipment item.

Callers 15

testTypeMethod · 0.95
testWieldMethod · 0.95
testTypeMethod · 0.95
testTypeMethod · 0.95
testWieldMethod · 0.95
testNotEquippedMethod · 0.95
testTypeMethod · 0.95
testWieldMethod · 0.95

Calls 1

addMethod · 0.65

Tested by 15

testTypeMethod · 0.76
testWieldMethod · 0.76
testTypeMethod · 0.76
testTypeMethod · 0.76
testWieldMethod · 0.76
testNotEquippedMethod · 0.76
testTypeMethod · 0.76
testWieldMethod · 0.76