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

Method getSizeToken

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

Get the size ATTACK token @param pc @param aType @return size ATTACK token

(PlayerCharacter pc, AttackType aType)

Source from the content-addressed store, hash-verified

154 * @return size ATTACK token
155 */
156 public static int getSizeToken(PlayerCharacter pc, AttackType aType)
157 {
158 int tohitBonus = (int) pc.getSizeAdjustmentBonusTo("TOHIT", "TOHIT")
159 + (int) pc.getSizeAdjustmentBonusTo("TOHIT", "TYPE." + aType);
160 int sizeBonus = (int) pc.getSizeAdjustmentBonusTo("COMBAT", "TOHIT")
161 + (int) pc.getSizeAdjustmentBonusTo("COMBAT", "TOHIT." + aType);
162
163 return sizeBonus + tohitBonus;
164 }
165
166 /**
167 * get stat ATTACK token

Callers 1

getSubTokenMethod · 0.95

Calls 1

Tested by

no test coverage detected