Get all the modifiers that apply to the entire item into a separate list @param commonList The list to extract from @param extractList The list to extract.
(final List<EquipmentModifier> commonList, final List<EquipmentModifier> extractList)
| 4217 | * The list to extract. |
| 4218 | */ |
| 4219 | private static void extractListFromCommon(final List<EquipmentModifier> commonList, |
| 4220 | final List<EquipmentModifier> extractList) |
| 4221 | { |
| 4222 | for (int i = extractList.size() - 1; i >= 0; --i) |
| 4223 | { |
| 4224 | final EquipmentModifier eqMod = extractList.get(i); |
| 4225 | |
| 4226 | if (!eqMod.getSafe(ObjectKey.ASSIGN_TO_ALL)) |
| 4227 | { |
| 4228 | continue; |
| 4229 | } |
| 4230 | |
| 4231 | commonList.add(0, eqMod); |
| 4232 | extractList.remove(i); |
| 4233 | } |
| 4234 | } |
| 4235 | |
| 4236 | private BigDecimal evaluateCost(final PJEP myParser, final String costExpr) |
| 4237 | { |
no test coverage detected