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

Method getCritMultiplier

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

Gets the critMultiplier attribute of the Equipment object @return The critMultiplier value @deprecated due to CRITMULT code control

()

Source from the content-addressed store, hash-verified

4819 * @deprecated due to CRITMULT code control
4820 */
4821 @Deprecated
4822 public int getCritMultiplier()
4823 {
4824 int mult = getHeadInfo(1, IntegerKey.CRIT_MULT);
4825 if (mult == 0)
4826 {
4827 final String cm = getWeaponInfo("CRITMULT", true);
4828
4829 if (!cm.isEmpty())
4830 {
4831 mult = Integer.parseInt(cm);
4832 }
4833 }
4834 return mult;
4835 }
4836
4837 /**
4838 * Gets the altCritMultiplier attribute of the Equipment object

Callers 6

setDefaultCritMethod · 0.95
getEquipmentHtmlInfoMethod · 0.80
resolveMethod · 0.80
evaluateMethod · 0.80
getMultTokenMethod · 0.80
getCritMultTokenMethod · 0.80

Calls 4

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

Tested by

no test coverage detected