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

Method getProfName

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

Retrieve the proficiency name for the provided item of equipment. That is the name of the weapon proficiency that is required to correctly use the item. @param eq The equipment item. @return The name of the proficiency, or empty string if no proficiency is defined.

(Equipment eq)

Source from the content-addressed store, hash-verified

725 * @return The name of the proficiency, or empty string if no proficiency is defined.
726 */
727 private static String getProfName(Equipment eq)
728 {
729 CDOMSingleRef<WeaponProf> ref = eq.get(ObjectKey.WEAPON_PROF);
730 String profName;
731 if (ref == null)
732 {
733 profName = "";
734 }
735 else
736 {
737 profName = ref.get().getKeyName();
738 }
739 return profName;
740 }
741
742 /**
743 * Get the range list token

Callers 14

getMultTokenMethod · 0.95
getMagicDamageTokenMethod · 0.95
getMagicHitTokenMethod · 0.95
getMiscTokenMethod · 0.95
getFeatDamageTokenMethod · 0.95
getFeatHitTokenMethod · 0.95
getTemplateHitTokenMethod · 0.95
getReachTokenMethod · 0.95
getCritTokenMethod · 0.95
getDamageMethod · 0.95
getGeneralBonusMethod · 0.95

Calls 2

getMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected