(PlayerCharacter pc, Equipment e, boolean primary)
| 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 | } |
no test coverage detected