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

Method applyAbility

code/src/java/pcgen/core/PlayerCharacter.java:7763–7772  ·  view source on GitHub ↗
(CNAbilitySelection cas, Object source)

Source from the content-addressed store, hash-verified

7761
7762 //WARNING: This is public only for testing, do NOT use without understanding what you are shortcutting!!
7763 public void applyAbility(CNAbilitySelection cas, Object source)
7764 {
7765 if (cas.hasPrerequisites())
7766 {
7767 conditionalFacet.add(id, cas, source);
7768 } else
7769 {
7770 directAbilityFacet.add(id, cas, source);
7771 }
7772 }
7773
7774 private void addTemplatesIfMissing(Collection<PCTemplate> templateList)
7775 {

Callers 2

testWithChooseMethod · 0.95
processAbilityListMethod · 0.95

Calls 2

hasPrerequisitesMethod · 0.65
addMethod · 0.65

Tested by 1

testWithChooseMethod · 0.76