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

Method getOldBonusedCritRange

code/src/java/pcgen/io/exporttoken/EqToken.java:1345–1356  ·  view source on GitHub ↗
(PlayerCharacter pc, Equipment e, boolean primary)

Source from the content-addressed store, hash-verified

1343 }
1344
1345 public static int getOldBonusedCritRange(PlayerCharacter pc, Equipment e, boolean primary)
1346 {
1347 if (!primary && !e.isDouble())
1348 {
1349 return 0;
1350 }
1351 int raw = e.getRawCritRange(primary);
1352 int add = (int) e.bonusTo(pc, "EQMWEAPON", "CRITRANGEADD", primary);
1353 int dbl = 1 + (int) e.bonusTo(pc, "EQMWEAPON", "CRITRANGEDOUBLE", primary);
1354 return raw * dbl + add;
1355
1356 }
1357
1358}

Callers 5

getEquipmentHtmlInfoMethod · 0.95
setDefaultCritMethod · 0.95
getCritTokenMethod · 0.95
getAltCritRangeTokenMethod · 0.95
getCritRangeTokenMethod · 0.95

Calls 3

isDoubleMethod · 0.80
getRawCritRangeMethod · 0.80
bonusToMethod · 0.45

Tested by

no test coverage detected