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

Method adjustAbilities

code/src/java/pcgen/core/PlayerCharacter.java:7464–7484  ·  view source on GitHub ↗
(final Category<Ability> aCategory, final BigDecimal arg)

Source from the content-addressed store, hash-verified

7462 // --------------------------------------------------
7463
7464 public void adjustAbilities(final Category<Ability> aCategory, final BigDecimal arg)
7465 {
7466 if (arg.compareTo(BigDecimal.ZERO) == 0)
7467 {
7468 return;
7469 }
7470 if (theUserPoolBonuses == null)
7471 {
7472 theUserPoolBonuses = new HashMap<>();
7473 }
7474 BigDecimal userMods = theUserPoolBonuses.get(aCategory);
7475 if (userMods != null)
7476 {
7477 userMods = userMods.add(arg);
7478 } else
7479 {
7480 userMods = arg;
7481 }
7482 theUserPoolBonuses.put(aCategory, userMods);
7483 setDirty(true);
7484 }
7485
7486 public final void setUserPoolBonus(final AbilityCategory aCategory, final BigDecimal anAmount)
7487 {

Callers 10

incrementClassLevelMethod · 0.95
applyChoiceMethod · 0.80
removeChoiceMethod · 0.80
applyChoiceMethod · 0.80
applyChoiceMethod · 0.80
setScoreBaseMethod · 0.80
setRemainingSelectionMethod · 0.80
testApplyMethod · 0.80
applyMethod · 0.80
adjustPoolMethod · 0.80

Calls 5

setDirtyMethod · 0.95
getMethod · 0.65
addMethod · 0.65
putMethod · 0.65
compareToMethod · 0.45

Tested by

no test coverage detected