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

Method remove

code/src/java/pcgen/cdom/facet/AddLevelFacet.java:147–150  ·  view source on GitHub ↗

Removes levels as defined by the given Formula of the given PCClass from the given PlayerCharacter. @param levels A Formula indicating the number of levels of the given PCClass to be removed from the given PlayerCharacter. @param cl The PCClass for which the levels

(Formula levels, PCClass cl, PlayerCharacter pc)

Source from the content-addressed store, hash-verified

145 * if the given PlayerCharacter is null
146 */
147 public void remove(Formula levels, PCClass cl, PlayerCharacter pc)
148 {
149 apply(pc, cl, -levels.resolve(pc, "").intValue());
150 }
151
152 /**
153 * Applies a change in the given number of levels of the given PCClass to

Callers 1

dataRemovedMethod · 0.95

Calls 3

applyMethod · 0.95
intValueMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected