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

Method getTotalCheck

code/src/java/pcgen/core/PlayerCharacter.java:2787–2795  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers 2

calculateSaveBonusMethod · 0.95
passesMethod · 0.80

Calls 7

getControlTokenMethod · 0.95
getContextMethod · 0.95
getLocalMethod · 0.95
getBaseCheckMethod · 0.95
getTotalBonusToMethod · 0.95
intValueMethod · 0.80
getKeyNameMethod · 0.65

Tested by 1

passesMethod · 0.64