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

Method getRawCritRange

code/src/java/pcgen/core/Equipment.java:1706–1726  ·  view source on GitHub ↗

Gets the rawCritRange attribute of the Equipment object @param bPrimary True=Primary Head @return The rawCritRange value @deprecated due to CRITRANGE code control

(final boolean bPrimary)

Source from the content-addressed store, hash-verified

1704 * @deprecated due to CRITRANGE code control
1705 */
1706 @Deprecated
1707 public int getRawCritRange(final boolean bPrimary)
1708 {
1709 int range = getHeadInfo(bPrimary ? 1 : 2, IntegerKey.CRIT_RANGE);
1710 if (range == 0)
1711 {
1712 String cr = getWeaponInfo("CRITRANGE", bPrimary);
1713 if (!cr.isEmpty())
1714 {
1715 try
1716 {
1717 range = Integer.parseInt(cr);
1718 }
1719 catch (NumberFormatException ignore)
1720 {
1721 //ignore
1722 }
1723 }
1724 }
1725 return range;
1726 }
1727
1728 /**
1729 * Get the raw special properties

Callers 3

getExpandedWeaponsMethod · 0.95
getCritTokenMethod · 0.80

Calls 4

getHeadInfoMethod · 0.95
getWeaponInfoMethod · 0.95
parseIntMethod · 0.80
isEmptyMethod · 0.65

Tested by

no test coverage detected