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

Method activateBonuses

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

Sets all the BonusObj's to "active". Note this version overrides the PObject implementation as it will check the bonuses against the equipment, rather than the PC. @param aPC The character being checked.

(final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

4639 * The character being checked.
4640 */
4641 @Override
4642 public void activateBonuses(final PlayerCharacter aPC)
4643 {
4644 for (final BonusObj bonus : getRawBonusList(aPC))
4645 {
4646 aPC.setApplied(bonus, PrereqHandler.passesAll(bonus, this, aPC));
4647 }
4648 }
4649
4650 public boolean isCalculatingCost()
4651 {

Callers 1

setIsEquippedMethod · 0.95

Calls 3

passesAllMethod · 0.95
setAppliedMethod · 0.80
getRawBonusListMethod · 0.45

Tested by

no test coverage detected