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

Method bonusTo

code/src/java/pcgen/core/Equipment.java:2489–2492  ·  view source on GitHub ↗

Description of the Method @param aPC The PC that has this Equipment @param aType a TYPE of BONUS (such as "COMBAT" or "AC") @param aName the NAME of the BONUS (such as "ATTACKS" or "ARMOR") @param bPrimary should we ask the parent object also? @return ret

(final PlayerCharacter aPC, final String aType, final String aName, final boolean bPrimary)

Source from the content-addressed store, hash-verified

2487 * @return returns a double which is the sum of all bonuses
2488 */
2489 public double bonusTo(final PlayerCharacter aPC, final String aType, final String aName, final boolean bPrimary)
2490 {
2491 return bonusTo(aPC, aType, aName, this, bPrimary);
2492 }
2493
2494 /**
2495 * Add bonuses

Callers 15

getWeightAsDoubleMethod · 0.95
preFormulaAcCheckMethod · 0.95
getACModMethod · 0.95
getDamageMethod · 0.95
getBonusToDamageMethod · 0.95
getBonusToHitMethod · 0.95
getAttacksTokenMethod · 0.45
getAttacksTokenMethod · 0.45
getAttacksTokenMethod · 0.45
writeArmorPropertyMethod · 0.45
getSlotsMethod · 0.45

Calls 15

getBonusMapMethod · 0.95
putBonusMapMethod · 0.95
equipBonusToMethod · 0.95
getTempBonusListMethod · 0.95
bonusToMethod · 0.95
checkRuleMethod · 0.95
getContextMethod · 0.95
getEqModifierListMethod · 0.95
forEachMethod · 0.80
streamMethod · 0.80
getReferenceContextMethod · 0.65

Tested by

no test coverage detected