Added school_ability and mastery_ability types for techniques

This commit is contained in:
Vlyan
2021-01-01 12:56:36 +01:00
parent 712b0e1d2a
commit b02407a67b
7 changed files with 79 additions and 18 deletions

View File

@@ -14,4 +14,19 @@ export class TechniqueSheetL5r5e extends ItemSheetL5r5e {
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
});
}
/** @override */
async getData() {
const sheetData = await super.getData();
// Add "school ability" and "mastery ability"
CONFIG.l5r5e.techniques_school.forEach((e) => {
sheetData.data.techniquesList.push({
id: e,
label: game.i18n.localize(`l5r5e.techniques.${e}`),
});
});
return sheetData;
}
}