First round of changes
This commit is contained in:
@@ -11,4 +11,16 @@ export class ArmorSheetL5r5e extends ItemSheetL5r5e {
|
||||
template: CONFIG.l5r5e.paths.templates + "items/armor/armor-sheet.html",
|
||||
});
|
||||
}
|
||||
|
||||
/** @override */
|
||||
async getData(options = {}) {
|
||||
const sheetData = await super.getData(options);
|
||||
|
||||
const catObj = game.l5r5e.HelpersL5r5e.getLocalizedRawObject("chiaroscuro.armor.categories") ?? {};
|
||||
sheetData.data.armorCategories = Object.entries(catObj)
|
||||
.filter(([k]) => k !== "label")
|
||||
.map(([id, label]) => ({ id, label }));
|
||||
|
||||
return sheetData;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user