* 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)
| 63 | * @returns {boolean} true of the class is a starting class, false otherwise |
| 64 | */ |
| 65 | function 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 |