Working on Compatibility for FVTT v10

modified some actor-id to uuid :
dragndrop-actor-id -> dragndrop-actor-uuid
open-sheet-actor-id -> open-sheet-from-uuid
This commit is contained in:
Vlyan
2022-07-22 11:03:08 +02:00
parent dbbde5eeb3
commit 894cdba28b
10 changed files with 33 additions and 31 deletions

View File

@@ -48,7 +48,6 @@ export class ItemL5r5e extends Item {
// Merge (DocumentData cannot be set)
const result = foundry.utils.mergeObject(this, foundry.utils.expandObject(data));
console.log(result); // TODO TMP
if (result.name) {
this.name = result.name;
@@ -56,8 +55,8 @@ export class ItemL5r5e extends Item {
if (result.img) {
this.img = result.img;
}
if (result.data) {
this.data = result.data; // todo tmp check this!
if (result.system) {
this.system = result.system;
}
// Update