Can we add eqMod to this equipment? @param eqMod The Equipment Modifier we would like to add @param bPrimary whether adding to the primary or secondary head @return True if eqMod is addable
(PlayerCharacter pc, PrereqObject eqMod, boolean bPrimary)
| 2596 | * @return True if eqMod is addable |
| 2597 | */ |
| 2598 | public boolean canAddModifier(PlayerCharacter pc, PrereqObject eqMod, boolean bPrimary) |
| 2599 | { |
| 2600 | |
| 2601 | // Make sure we are qualified |
| 2602 | bonusPrimary = bPrimary; |
| 2603 | |
| 2604 | return getSafe(ObjectKey.MOD_CONTROL).getModifiersAllowed() && PrereqHandler.passesAll(eqMod, this, pc); |
| 2605 | } |
| 2606 | |
| 2607 | /** |
| 2608 | * Returns 0 on object error, 1 on can fit, 2 on too heavy, 3 on properties |
no test coverage detected