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