Cleanup et preparation Foundry v12

This commit is contained in:
2024-05-01 09:33:34 +02:00
parent 8f0bf91464
commit 85e0249822
173 changed files with 659 additions and 341 deletions

View File

@@ -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);