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

Method getStatMod

code/src/java/pcgen/core/analysis/BonusCalc.java:50–53  ·  view source on GitHub ↗

Gets the bonuses to a given stat. @param po @param stat the Stat to get the bonus for @param aPC the Player Character that the bonus will apply to @return the bonus to the given stat.

(PObject po, PCStat stat, final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

48 * @return the bonus to the given stat.
49 */
50 public static int getStatMod(PObject po, PCStat stat, final PlayerCharacter aPC)
51 {
52 return (int) BonusCalc.charBonusTo(po, "STAT", stat.getKeyName(), aPC);
53 }
54
55 public static double bonusTo(PObject po, String aType, String aName, final Object obj,
56 final Collection<BonusObj> aBonusList, final PlayerCharacter aPC)

Callers 4

getModTokenMethod · 0.95
getStatAdjustmentsMethod · 0.95
modifierStringMethod · 0.95
subLevelMethod · 0.45

Calls 2

charBonusToMethod · 0.95
getKeyNameMethod · 0.65

Tested by

no test coverage detected