added DP on technique (wip)

This commit is contained in:
Vlyan
2022-02-10 14:30:27 +01:00
parent 1afd85d3e9
commit b35fb852af
31 changed files with 1030 additions and 706 deletions

View File

@@ -43,6 +43,21 @@ export class HelpersL5r5e {
return skills;
}
/**
* Return Categories and Skill names in it
* @return {Map}
*/
static getCategoriesSkillsList() {
return Array.from(CONFIG.l5r5e.skills).reduce((acc, [id, cat]) => {
if (acc.has(cat)) {
acc.set(cat, [...acc.get(cat), id]);
} else {
acc.set(cat, [id]);
}
return acc;
}, new Map());
}
/**
* Get Techniques for List / Select
* @param types core|school|title|custom