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

Method getRaceBonusTo

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

return bonus from a Race @param aType @param aName @return race bonus to

(String aType, String aName)

Source from the content-addressed store, hash-verified

3296 * @return race bonus to
3297 */
3298 public double getRaceBonusTo(String aType, String aName)
3299 {
3300 if (getRace() == null)
3301 {
3302 return 0;
3303 }
3304
3305 final List<BonusObj> tempList =
3306 BonusUtilities.getBonusFromList(getRace().getBonusList(this), aType.toUpperCase(), aName.toUpperCase());
3307
3308 return calcBonusFromList(tempList, getRace());
3309 }
3310
3311 public int getSR()
3312 {

Callers 2

getScoreRaceBonusMethod · 0.80
getScoreOtherBonusMethod · 0.80

Calls 4

getRaceMethod · 0.95
getBonusFromListMethod · 0.95
calcBonusFromListMethod · 0.95
getBonusListMethod · 0.45

Tested by

no test coverage detected