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

Method multAsString

code/src/java/pcgen/io/exporttoken/EqToken.java:354–366  ·  view source on GitHub ↗

Converts the critical multiplier into a dispalyable string, i.e. blank for zero, - for negative and puts an x before positive numbers e.g. x3 @param mult The critical multiplier @return The string to display

(final int mult)

Source from the content-addressed store, hash-verified

352 * @return The string to display
353 */
354 public static String multAsString(final int mult)
355 {
356 if (mult == 0)
357 {
358 return "";
359 }
360 else if (mult < 0)
361 {
362 return "-";
363 }
364
365 return "x" + Integer.toString(mult);
366 }
367
368 /**
369 * Get the AC Check Token

Callers 4

getEquipmentHtmlInfoMethod · 0.95
evaluateMethod · 0.95
getAltCritMultTokenMethod · 0.95
getCritMultTokenMethod · 0.95

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected