Update pour v11/v12 et correction d'un bug sur les defenses

This commit is contained in:
2024-04-26 18:35:39 +02:00
parent 234bd44742
commit ec06f0fdcb
47 changed files with 205 additions and 186 deletions

View File

@@ -9,7 +9,7 @@ export class MaleficesItemSheet extends ItemSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["fvtt-malefices", "sheet", "item"],
template: "systems/fvtt-malefices/templates/item-sheet.hbs",
dragDrop: [{ dragSelector: null, dropSelector: null }],
@@ -43,8 +43,8 @@ export class MaleficesItemSheet extends ItemSheet {
name: this.object.name,
editable: this.isEditable,
cssClass: this.isEditable ? "editable" : "locked",
system: duplicate(this.object.system),
config: duplicate(game.system.malefices.config),
system: foundry.utils.duplicate(this.object.system),
config: foundry.utils.duplicate(game.system.malefices.config),
limited: this.object.limited,
options: this.options,
owner: this.document.isOwner,
@@ -76,7 +76,7 @@ export class MaleficesItemSheet extends ItemSheet {
/* -------------------------------------------- */
postItem() {
let chatData = duplicate(this.item)
let chatData = foundry.utils.duplicate(this.item)
if (this.actor) {
chatData.actor = { id: this.actor.id };
}