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

Method apply

code/src/java/pcgen/core/kit/KitAbilities.java:226–239  ·  view source on GitHub ↗
(PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

224 }
225
226 @Override
227 public void apply(PlayerCharacter aPC)
228 {
229 for (CNAbilitySelection cnas : abilitiesToAdd)
230 {
231 aPC.addAbility(cnas, UserSelection.getInstance(), UserSelection.getInstance());
232
233 if (isFree())
234 {
235 AbilityCategory category = catRef.get();
236 aPC.adjustAbilities(category, BigDecimal.ONE);
237 }
238 }
239 }
240
241 /**
242 * Returns if the skill will be purchased for free.

Callers

nothing calls this directly

Calls 5

getInstanceMethod · 0.95
isFreeMethod · 0.95
adjustAbilitiesMethod · 0.80
addAbilityMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected