fix and equipped props
This commit is contained in:
@@ -22,6 +22,14 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
return this.object.update(formData);
|
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.
|
* Subscribe to events from the sheet.
|
||||||
* @param html HTML content of the sheet.
|
* @param html HTML content of the sheet.
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ export class NpcSheetL5r5e extends BaseSheetL5r5e {
|
|||||||
getData() {
|
getData() {
|
||||||
const sheetData = super.getData();
|
const sheetData = super.getData();
|
||||||
|
|
||||||
this._prepareItems(sheetData);
|
|
||||||
|
|
||||||
sheetData.data.types = NpcSheetL5r5e.types;
|
sheetData.data.types = NpcSheetL5r5e.types;
|
||||||
|
|
||||||
return sheetData;
|
return sheetData;
|
||||||
|
|||||||
@@ -141,7 +141,8 @@
|
|||||||
"quantity": 1,
|
"quantity": 1,
|
||||||
"rarity": 0,
|
"rarity": 0,
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
"zeni": 0
|
"zeni": 0,
|
||||||
|
"equipped": false
|
||||||
},
|
},
|
||||||
"armor": {
|
"armor": {
|
||||||
"quantity": 1,
|
"quantity": 1,
|
||||||
@@ -153,7 +154,8 @@
|
|||||||
},
|
},
|
||||||
"properties": "",
|
"properties": "",
|
||||||
"rarity": 0,
|
"rarity": 0,
|
||||||
"zeni": 0
|
"zeni": 0,
|
||||||
|
"equipped": false
|
||||||
},
|
},
|
||||||
"weapon": {
|
"weapon": {
|
||||||
"category": "",
|
"category": "",
|
||||||
@@ -168,7 +170,8 @@
|
|||||||
"rarity": 0,
|
"rarity": 0,
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
"zeni": 0,
|
"zeni": 0,
|
||||||
"description": ""
|
"description": "",
|
||||||
|
"equipped": false
|
||||||
},
|
},
|
||||||
"technique": {
|
"technique": {
|
||||||
"technique_type": "",
|
"technique_type": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user