MCPcopy Index your code
hub / github.com/MrPrimate/ddb-proxy / filterModifiers

Function filterModifiers

filterModifiers.js:128–137  ·  view source on GitHub ↗

* Filters the modifiers with the utility functions above * @param {object} data character data * @returns {[object[]]} an array containing an array of filtered modifiers, grouped by class

(data, classInfo)

Source from the content-addressed store, hash-verified

126 * @returns {[object[]]} an array containing an array of filtered modifiers, grouped by class
127 */
128function filterModifiers(data, classInfo) {
129 // get the classFeatures for all classes
130 //const classInfo = getClassInfo(data);
131
132 data.classes.forEach((cls, index) => {
133 const features = getClassFeatures(cls, cls.level);
134 classInfo[index].modifiers = getClassModifiers(data, features, isStartingClass(data, cls.definition.name));
135 });
136 return classInfo;
137}
138
139/**
140 * =============================================================

Callers 2

index.jsFile · 0.85
mainFunction · 0.85

Calls 3

getClassFeaturesFunction · 0.85
getClassModifiersFunction · 0.85
isStartingClassFunction · 0.85

Tested by

no test coverage detected