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

Method getTotalToken

code/src/java/pcgen/core/analysis/AttackInfo.java:76–83  ·  view source on GitHub ↗

Get total ATTACK token @param pc @param at @return total ATTACK token

(PlayerCharacter pc, AttackType at)

Source from the content-addressed store, hash-verified

74 * @return total ATTACK token
75 */
76 public static int getTotalToken(PlayerCharacter pc, AttackType at)
77 {
78 final int tohitBonus =
79 (int) pc.getTotalBonusTo("TOHIT", "TOHIT") + (int) pc.getTotalBonusTo("TOHIT", "TYPE." + at);
80 final int totalBonus =
81 (int) pc.getTotalBonusTo("COMBAT", "TOHIT") + (int) pc.getTotalBonusTo("COMBAT", "TOHIT." + at);
82 return tohitBonus + totalBonus;
83 }
84
85 public static String getSubToken(PlayerCharacter pc, AttackType attackType, String modifier)
86 {

Callers 1

getAttackInfoMethod · 0.95

Calls 1

getTotalBonusToMethod · 0.45

Tested by

no test coverage detected