(final Prerequisite prereq, final PlayerCharacter character, CDOMObject source)
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public int passes(final Prerequisite prereq, final PlayerCharacter character, CDOMObject source) |
| 39 | { |
| 40 | int runningTotal = 0; |
| 41 | |
| 42 | final String checkName = prereq.getKey(); |
| 43 | final int operand = character.getVariableValue(prereq.getOperand(), "").intValue(); //$NON-NLS-1$ |
| 44 | PCCheck check = |
| 45 | Globals.getContext().getReferenceContext().silentlyGetConstructedCDOMObject(PCCheck.class, checkName); |
| 46 | if (check != null) |
| 47 | { |
| 48 | final int characterCheckBonus = character.getTotalCheck(check); |
| 49 | runningTotal = prereq.getOperator().compare(characterCheckBonus, operand) > 0 ? 1 : 0; |
| 50 | } |
| 51 | return countedTotal(prereq, runningTotal); |
| 52 | } |
| 53 | |
| 54 | } |
nothing calls this directly
no test coverage detected