HERO6 - First import

This commit is contained in:
2022-12-15 22:12:28 +01:00
parent ecef402160
commit 2f48669c85
5 changed files with 57 additions and 48 deletions

View File

@ -59,10 +59,8 @@ export class Hero6ItemSheet extends ItemSheet {
name: this.object.name,
editable: this.isEditable,
cssClass: this.isEditable ? "editable" : "locked",
weaponSkills: Hero6Utility.getWeaponSkills(),
shieldSkills: Hero6Utility.getShieldSkills(),
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
config: game.system.Hero6.config,
config: game.system.hero6.config,
system: objectData,
limited: this.object.limited,
options: this.options,
@ -70,6 +68,13 @@ export class Hero6ItemSheet extends ItemSheet {
isGM: game.user.isGM
}
// Specific skill processing
if( this.object.type == "skill") {
if (objectData.characteristic != "manual") {
//objectData.system.base = 9
}
}
this.options.editable = !(this.object.origin == "embeddedItem");
console.log("ITEM DATA", formData, this);
return formData;