Debuting the conversion of skills to items list : Db and item Sheet
This commit is contained in:
30
system/scripts/items/skill-sheet.js
Normal file
30
system/scripts/items/skill-sheet.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import { ItemSheetL5r5e } from "./item-sheet.js";
|
||||
|
||||
/**
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class SkillSheetL5r5e extends ItemSheetL5r5e {
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
classes: ["l5r5e", "sheet", "skill"],
|
||||
template: CONFIG.l5r5e.paths.templates + "items/skill/skill-sheet.html",
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Object|Promise}
|
||||
*/
|
||||
async getData(options = {}) {
|
||||
const sheetData = await super.getData(options);
|
||||
|
||||
sheetData.data.SkillCategoriesList = CONFIG.l5r5e.skillCategories;
|
||||
|
||||
console.log(sheetData.data.system);
|
||||
|
||||
return sheetData;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user