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

Method getPenaltyToken

code/src/java/plugin/exporttokens/ExpToken.java:94–99  ·  view source on GitHub ↗

Get Penalty Sub Token @param display @return Penalty Sub Token

(CharacterDisplay display)

Source from the content-addressed store, hash-verified

92 * @return Penalty Sub Token
93 */
94 public static String getPenaltyToken(CharacterDisplay display)
95 {
96
97 return String.valueOf(100 - (int) (display.multiclassXPMultiplier() * 100.0))
98 + '%';
99 }
100}

Callers 1

getTokenMethod · 0.95

Calls 2

valueOfMethod · 0.45

Tested by

no test coverage detected