Cleanup et preparation Foundry v12
This commit is contained in:
@@ -11,7 +11,7 @@ export class YggdrasillActorSheet extends ActorSheet {
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
|
||||
return mergeObject(super.defaultOptions, {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
classes: ["yggdrasill", "sheet", "actor"],
|
||||
template: "systems/fvtt-yggdrasill/templates/actor-sheet.html",
|
||||
width: 680,
|
||||
@@ -24,7 +24,7 @@ export class YggdrasillActorSheet extends ActorSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async getData() {
|
||||
const objectData = duplicate(this.object)
|
||||
const objectData = foundry.utils.duplicate(this.object)
|
||||
|
||||
let formData = {
|
||||
title: this.title,
|
||||
@@ -71,7 +71,8 @@ export class YggdrasillActorSheet extends ActorSheet {
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
editScore: this.options.editScore,
|
||||
isGM: game.user.isGM
|
||||
isGM: game.user.isGM,
|
||||
config: game.system.config
|
||||
}
|
||||
// Dynamic update some fields
|
||||
this.updateDM(formData.data);
|
||||
|
||||
Reference in New Issue
Block a user