From 5aa15f32fbe7edc86149031137670ca695d55c1a Mon Sep 17 00:00:00 2001 From: Vlyan Date: Wed, 16 Dec 2020 19:23:04 +0100 Subject: [PATCH] fix and equipped props --- system/scripts/sheets/base-sheet.js | 8 ++++++++ system/scripts/sheets/npc-sheet.js | 2 -- system/template.json | 9 ++++++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/system/scripts/sheets/base-sheet.js b/system/scripts/sheets/base-sheet.js index 9fd80f7..0f6df4d 100644 --- a/system/scripts/sheets/base-sheet.js +++ b/system/scripts/sheets/base-sheet.js @@ -22,6 +22,14 @@ export class BaseSheetL5r5e extends ActorSheet { return this.object.update(formData); } + /** + * Handle dropped data on the Actor sheet + */ + // _onDrop(event) { + // console.log('*** event', event); + // return false; + // } + /** * Subscribe to events from the sheet. * @param html HTML content of the sheet. diff --git a/system/scripts/sheets/npc-sheet.js b/system/scripts/sheets/npc-sheet.js index c4aa808..e80317a 100644 --- a/system/scripts/sheets/npc-sheet.js +++ b/system/scripts/sheets/npc-sheet.js @@ -20,8 +20,6 @@ export class NpcSheetL5r5e extends BaseSheetL5r5e { getData() { const sheetData = super.getData(); - this._prepareItems(sheetData); - sheetData.data.types = NpcSheetL5r5e.types; return sheetData; diff --git a/system/template.json b/system/template.json index 5b7e8a1..d32af32 100644 --- a/system/template.json +++ b/system/template.json @@ -141,7 +141,8 @@ "quantity": 1, "rarity": 0, "weight": 0, - "zeni": 0 + "zeni": 0, + "equipped": false }, "armor": { "quantity": 1, @@ -153,7 +154,8 @@ }, "properties": "", "rarity": 0, - "zeni": 0 + "zeni": 0, + "equipped": false }, "weapon": { "category": "", @@ -168,7 +170,8 @@ "rarity": 0, "weight": 0, "zeni": 0, - "description": "" + "description": "", + "equipped": false }, "technique": { "technique_type": "",