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)
| 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) |
no test coverage detected