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

Method getToken

code/src/java/plugin/exporttokens/SkillTypeToken.java:51–64  ·  view source on GitHub ↗
(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

49 }
50
51 @Override
52 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
53 {
54 SkillDetails details = buildSkillDetails(tokenSource);
55
56 if (details.getPropertyCount() < 2)
57 {
58 return "";
59 }
60
61 Skill aSkill = getSkill(tokenSource, pc, details, eh);
62
63 return getSkillProperty(aSkill, details.getProperty(1), pc);
64 }
65
66 /**
67 * Select the target skill based on the supplied critieria. Searches

Callers 1

testSkillTypeTokenMethod · 0.95

Calls 5

getPropertyCountMethod · 0.95
getSkillMethod · 0.95
getPropertyMethod · 0.95
buildSkillDetailsMethod · 0.80
getSkillPropertyMethod · 0.45

Tested by 1

testSkillTypeTokenMethod · 0.76