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

Method canResizeHaveEffect

code/src/java/pcgen/core/Globals.java:501–506  ·  view source on GitHub ↗

Return true if resizing the equipment will have any "noticable" effect checks for cost modification, armor bonus, weight, capacity @param typeList @return TRUE or FALSE

(List<String> typeList)

Source from the content-addressed store, hash-verified

499 * @return TRUE or FALSE
500 */
501 public static boolean canResizeHaveEffect(List<String> typeList)
502 {
503 final List<String> resizeTypeList = SettingsHandler.getGameAsProperty().get().getResizableTypeList().stream()
504 .map(Type::toString).map(String::toUpperCase).collect(Collectors.toList());
505 return typeList.stream().map(String::toUpperCase).anyMatch(resizeTypeList::contains);
506 }
507
508 /**
509 * Find out the state of a PRERULE check

Callers 3

isResizableMethod · 0.95
testApplyMethod · 0.95

Calls 4

getGameAsPropertyMethod · 0.95
streamMethod · 0.80
getResizableTypeListMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected