forked from public/fvtt-yggdrasill
Cleanup et preparation Foundry v12
This commit is contained in:
@@ -8,7 +8,7 @@ export class YggdrasillItemSheet extends ItemSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
classes: ["fvtt-yggdrasill", "sheet", "item"],
|
||||
template: "systems/fvtt-yggdrasill/templates/item-sheet.html",
|
||||
width: 550,
|
||||
@@ -43,7 +43,7 @@ export class YggdrasillItemSheet extends ItemSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async getData() {
|
||||
const objectData = duplicate(this.object);
|
||||
const objectData = foundry.utils.duplicate(this.object);
|
||||
|
||||
let formData = {
|
||||
title: this.title,
|
||||
@@ -55,12 +55,13 @@ export class YggdrasillItemSheet extends ItemSheet {
|
||||
cssClass: this.isEditable ? "editable" : "locked",
|
||||
data: foundry.utils.deepClone(this.object.system),
|
||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||
optionsNiveaux4: YggdrasillUtility.buildListOptions(1, 5),
|
||||
optionsNiveaux4: Array.fromRange(5, 1),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
isGM: game.user.isGM
|
||||
isGM: game.user.isGM,
|
||||
config: game.system.config
|
||||
}
|
||||
return formData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user