Added system to skill category import

Initial Exhaustion Calculations
Fix for Skill Categories with two stats
Added Racial Bonuses for Resistances
This commit is contained in:
Anthony Murphy
2022-10-25 22:03:59 +11:00
parent 8bc535cf35
commit 53c5b2ee6e
33 changed files with 1432 additions and 1065 deletions

View File

@ -1,35 +1,35 @@
// Our Item Sheet extends the default
export default class RMSSSpellSheet extends ItemSheet {
// Set the height and width
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
width: 530,
height: 440,
classes: ["rmss", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return `systems/rmss/templates/sheets/spells/rmss-spell-sheet.html`;
}
// Set the height and width
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
width: 530,
height: 440,
classes: ["rmss", "sheet", "item"]
});
}
// Make the data available to the sheet template
async getData() {
const baseData = await super.getData();
// If our sheet is called here it is.
get template() {
return "systems/rmss/templates/sheets/spells/rmss-spell-sheet.html";
}
var enrichedDescription = await TextEditor.enrichHTML(this.item.system.description, {async: true});
// Make the data available to the sheet template
async getData() {
const baseData = await super.getData();
let sheetData = {
owner: this.item.isOwner,
editable :this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
enrichedDescription: enrichedDescription
};
let enrichedDescription = await TextEditor.enrichHTML(this.item.system.description, {async: true});
return sheetData;
}
}
let sheetData = {
owner: this.item.isOwner,
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
enrichedDescription: enrichedDescription
};
return sheetData;
}
}