MCPcopy Create free account
hub / github.com/MrPrimate/ddb-proxy / isStartingClass

Function isStartingClass

filterModifiers.js:65–67  ·  view source on GitHub ↗

* Checks if a given class is the starting class of this character * @param {object} data character data * @param {string} className name of the class to check * @returns {boolean} true of the class is a starting class, false otherwise

(data, className)

Source from the content-addressed store, hash-verified

63 * @returns {boolean} true of the class is a starting class, false otherwise
64 */
65function isStartingClass(data, className) {
66 return data.classes.find(cls => cls.definition.name === className && cls.isStartingClass);
67}
68
69/**
70 * Gets all class modifiers for a given character

Callers 1

filterModifiersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected