added DP on technique (wip)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user