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

Method getBonusToHit

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

Gets the bonusToHit attribute of the Equipment object @param aPC The PC that has the Equipment @param bPrimary if true get info about the priomary head, else get info about the secondary head. @return The bonusToHit value

(final PlayerCharacter aPC, final boolean bPrimary)

Source from the content-addressed store, hash-verified

5217 * @return The bonusToHit value
5218 */
5219 public int getBonusToHit(final PlayerCharacter aPC, final boolean bPrimary)
5220 {
5221 return (int) bonusTo(aPC, "WEAPON", "TOHIT", bPrimary);
5222 }
5223
5224 // ---------------------------
5225 // Owned Equipment

Callers 2

getToHitMethod · 0.95
getMagicHitTokenMethod · 0.80

Calls 1

bonusToMethod · 0.95

Tested by

no test coverage detected