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

Method getHeft

code/src/java/pcgen/io/exporttoken/WeaponToken.java:628–644  ·  view source on GitHub ↗

Get the Heft token @param pc @param eq @return heft token

(PlayerCharacter pc, Equipment eq)

Source from the content-addressed store, hash-verified

626 * @return heft token
627 */
628 private static String getHeft(PlayerCharacter pc, Equipment eq)
629 {
630 String retString;
631 if (pc.sizeInt() > eq.sizeInt())
632 {
633 retString = "LIGHT";
634 }
635 else if (pc.sizeInt() == eq.sizeInt())
636 {
637 retString = "MEDIUM";
638 }
639 else
640 {
641 retString = "HEAVY";
642 }
643 return retString;
644 }
645
646 /**
647 * Get the is type token

Callers 1

getWeaponTokenMethod · 0.95

Calls 1

sizeIntMethod · 0.45

Tested by

no test coverage detected