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

Method saveStatIncrease

code/src/java/pcgen/core/PlayerCharacter.java:5533–5543  ·  view source on GitHub ↗
(final PCStat stat, final int mod, final boolean isPreMod)

Source from the content-addressed store, hash-verified

5531 }
5532
5533 public void saveStatIncrease(final PCStat stat, final int mod, final boolean isPreMod)
5534 {
5535 final int idx = getLevelInfoSize() - 1;
5536
5537 if (idx >= 0)
5538 {
5539 levelInfoFacet.get(id, idx).addModifiedStat(stat, mod, isPreMod);
5540 }
5541
5542 setDirty(true);
5543 }
5544
5545 public int getStatIncrease(final PCStat stat, final boolean includePost)
5546 {

Callers 4

testLevelStatMethod · 0.95
setScoreBaseMethod · 0.80
askForStatIncreaseMethod · 0.80

Calls 4

getLevelInfoSizeMethod · 0.95
setDirtyMethod · 0.95
addModifiedStatMethod · 0.80
getMethod · 0.65

Tested by 1

testLevelStatMethod · 0.76