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

Method addToEqModifierList

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

Add an EquipmentModifier object to the list @param eqMod The equipment modifier to add to list @param bPrimary if True then deal with the primary head

(final EquipmentModifier eqMod, final boolean bPrimary)

Source from the content-addressed store, hash-verified

967 * if True then deal with the primary head
968 */
969 public void addToEqModifierList(final EquipmentModifier eqMod, final boolean bPrimary)
970 {
971 if (bPrimary)
972 {
973 usePrimaryCache = false;
974 }
975 else
976 {
977 useSecondaryCache = false;
978 }
979 eqMod.setVariableParent(this);
980 getEquipmentHead(bPrimary ? 1 : 2).addToListFor(ListKey.EQMOD, eqMod);
981 setDirty(true);
982 }
983
984 /**
985 * Get display information for all "interesting" properties.

Callers 3

getSourceObjectMethod · 0.95
addEqModifierMethod · 0.95
finishEquipmentMethod · 0.80

Calls 4

getEquipmentHeadMethod · 0.95
setDirtyMethod · 0.95
setVariableParentMethod · 0.80
addToListForMethod · 0.65

Tested by 1

getSourceObjectMethod · 0.76