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)
| 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. |