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

Method extractListFromCommon

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

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)

Source from the content-addressed store, hash-verified

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 {

Callers 2

getSpecialPropertiesMethod · 0.95

Calls 5

getSafeMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65
addMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected