From 9aca2c32efa3f335159609e735b0753ad5dca2eb Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 26 Jul 2026 22:56:32 +0200 Subject: [PATCH] Fix assign dans constructeur Pas possible de faire Object.assign(this.position car position == null --- module/time/rdd-calendrier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/time/rdd-calendrier.js b/module/time/rdd-calendrier.js index d7839d3f..4b0f1007 100644 --- a/module/time/rdd-calendrier.js +++ b/module/time/rdd-calendrier.js @@ -57,7 +57,7 @@ export class RdDCalendrier extends HandlebarsApplicationMixin(foundry.applicatio this.horlogeAnalogique = true; const savedPos = game.settings.get(SYSTEM_RDD, "calendrier-pos"); if (savedPos?.top != undefined) { - Object.assign(this.position, { top: savedPos.top, left: savedPos.left, width: 400, height: 400 }); + this.position = { top: savedPos.top, left: savedPos.left, width: 400, height: 400 } this.horlogeAnalogique = savedPos.horlogeAnalogique; } this.timestamp = RdDTimestamp.getWorldTime(); @@ -239,7 +239,7 @@ export class RdDCalendrier extends HandlebarsApplicationMixin(foundry.applicatio /* -------------------------------------------- */ async ajouterNombreAstral(indexDate) { - const nombreAstral = await RdDDice.rollHeure( { showDice: HIDE_DICE, rollMode: "self" }); + const nombreAstral = await RdDDice.rollHeure({ showDice: HIDE_DICE, rollMode: "self" }); return { nombreAstral: nombreAstral, lectures: [],