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

Method getSubToken

code/src/java/pcgen/core/analysis/AttackInfo.java:85–108  ·  view source on GitHub ↗
(PlayerCharacter pc, AttackType attackType, String modifier)

Source from the content-addressed store, hash-verified

83 }
84
85 public static String getSubToken(PlayerCharacter pc, AttackType attackType, String modifier)
86 {
87 switch (modifier)
88 {
89 case "BASE":
90 return Delta.toString(getBaseToken(pc));
91 case "EPIC":
92 return Delta.toString(getEpicToken(pc));
93 case "MISC":
94 return Delta.toString(getMiscToken(pc, attackType));
95 case "SIZE":
96 return Delta.toString(getSizeToken(pc, attackType));
97 case "STAT":
98 return Delta.toString(getStatToken(pc.getDisplay(), attackType));
99 case "TOTAL":
100 // TOTAL is handled in getParsedToken()
101 //int total = getTotalToken(pc, "MELEE");
102 //return pc.getAttackString(Constants.ATTACKSTRING_MELEE, total);
103 break;
104 default:
105 return pc.getAttackString(attackType);
106 }
107 return "";
108 }
109
110 /**
111 * Get the base ATTACK token

Callers 1

getAttackInfoMethod · 0.95

Calls 8

toStringMethod · 0.95
getBaseTokenMethod · 0.95
getEpicTokenMethod · 0.95
getMiscTokenMethod · 0.95
getSizeTokenMethod · 0.95
getStatTokenMethod · 0.95
getAttackStringMethod · 0.80
getDisplayMethod · 0.45

Tested by

no test coverage detected