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

Method getToken

code/src/java/pcgen/io/exporttoken/SkillToken.java:94–102  ·  view source on GitHub ↗
(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

92 }
93
94 @Override
95 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
96 {
97 SkillDetails details = buildSkillDetails(tokenSource);
98
99 Skill aSkill = getSkill(pc, details, eh);
100
101 return getSkillProperty(aSkill, details.getProperty(0), pc);
102 }
103
104 /**
105 * Select the target skill based on the supplied criteria. Uses the

Callers 1

testSkillTokenMethod · 0.95

Calls 4

buildSkillDetailsMethod · 0.95
getSkillMethod · 0.95
getSkillPropertyMethod · 0.95
getPropertyMethod · 0.95

Tested by 1

testSkillTokenMethod · 0.76