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)
| 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 |
no test coverage detected