Returns the total check value for the check specified for the character. This total includes all check bonuses the character has. @param check The check to get. @return A check value.
(PCCheck check)
| 2785 | * @return A check value. |
| 2786 | */ |
| 2787 | public int getTotalCheck(PCCheck check) |
| 2788 | { |
| 2789 | String checkVar = ControlUtilities.getControlToken(Globals.getContext(), CControl.TOTALSAVE); |
| 2790 | if (checkVar != null) |
| 2791 | { |
| 2792 | return ((Number) this.getLocal(check, checkVar)).intValue(); |
| 2793 | } |
| 2794 | return getBaseCheck(check) + (int) getTotalBonusTo("SAVE", check.getKeyName()); |
| 2795 | } |
| 2796 | |
| 2797 | /** |
| 2798 | * return bonus total for a specific bonusType e.g: |