Fix #61
This commit is contained in:
@ -62,14 +62,19 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
optionsDiceList: PegasusUtility.getOptionsDiceList(),
|
||||
optionsStatusList: PegasusUtility.getOptionsStatusList(),
|
||||
data: itemData.system,
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
mr: (this.object.type == 'specialisation'),
|
||||
isGM: game.user.isGM
|
||||
}
|
||||
if (this.object.type == "power") {
|
||||
formData.effects = await TextEditor.enrichHTML(this.object.system.effects, {async: true})
|
||||
formData.purchasedeffects = await TextEditor.enrichHTML(this.object.system.purchasedeffects, {async: true})
|
||||
}
|
||||
|
||||
this.options.editable = true //!(this.object.isEmbedded)
|
||||
this.options.editable = true
|
||||
console.log("ITEM DATA", formData, this);
|
||||
return formData;
|
||||
}
|
||||
@ -425,7 +430,6 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
|
||||
let data = event.dataTransfer.getData('text/plain')
|
||||
let dataItem = JSON.parse( data)
|
||||
console.log("DROP", event, dataItem )
|
||||
let item = fromUuidSync(dataItem.uuid)
|
||||
if (item.pack) {
|
||||
item = await PegasusUtility.searchItem(item)
|
||||
@ -434,7 +438,6 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
ui.notifications.warn("Unable to find relevant item - Aborting drag&drop " + data.uuid)
|
||||
return
|
||||
}
|
||||
console.log("DROP REULT", this.object.type, item.type)
|
||||
|
||||
if (this.object.type == 'virtue' ) {
|
||||
if (item.type == 'effect') {
|
||||
|
Reference in New Issue
Block a user