From 1725d4c17ba3d86905a374e8887453a3434ee7e3 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 2 Jul 2024 23:19:03 +0200 Subject: [PATCH 1/3] Fix: impossible de faire l'encaissement Echec lors des test de permission d'utilisateur --- changelog.md | 4 ++++ module/misc.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4bfac76b..0144639e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,8 @@ # 12.0 +## 12.0.4 - La plaie d'Astrobazzarh +- **Support V12** + - Fix: les boutons d'encaissement dans le tchat fonctionnent de nouveau + ## 12.0.3 - L'hémorragie d'Astrobazzarh - **Support V12** - On peut de nouveau ouvrir un acteur blessé après redémarrage du monde diff --git a/module/misc.js b/module/misc.js index 9ed3050e..bf080cf7 100644 --- a/module/misc.js +++ b/module/misc.js @@ -197,7 +197,7 @@ export class Misc { } static isOwnerPlayer(actor) { - return actor.testUserPermission(game.user, CONST.DOCUMENT_PERMISSION_LEVELS.OWNER) + return actor.testUserPermission(game.user, CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER) } static isOwnerPlayerOrUniqueConnectedGM(actor) { From 50a86e751d43ffb7c0d7c9b0737709f74759156f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 2 Jul 2024 23:19:48 +0200 Subject: [PATCH 2/3] Fix: warnings deprecated v12 --- changelog.md | 1 + module/rdd-audio.js | 2 +- module/rdd-dice.js | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 0144639e..b0233322 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## 12.0.4 - La plaie d'Astrobazzarh - **Support V12** - Fix: les boutons d'encaissement dans le tchat fonctionnent de nouveau + - Fix warnings sur "Die" et AudioHelper ## 12.0.3 - L'hémorragie d'Astrobazzarh - **Support V12** diff --git a/module/rdd-audio.js b/module/rdd-audio.js index be9e286c..8e0303b8 100644 --- a/module/rdd-audio.js +++ b/module/rdd-audio.js @@ -15,7 +15,7 @@ export class RdDAudio { if ( audioData ) { let audioPath = "systems/foundryvtt-reve-de-dragon/sounds/" + audioData.file; console.log(`foundryvtt-reve-de-dragon | Playing Sound: ${audioPath}`) - AudioHelper.play({ src: audioPath }, audioData.isGlobal); + foundry.audio.AudioHelper.play({ src: audioPath }, audioData.isGlobal); } } } diff --git a/module/rdd-dice.js b/module/rdd-dice.js index 2f9dc10f..86c628bf 100644 --- a/module/rdd-dice.js +++ b/module/rdd-dice.js @@ -17,7 +17,7 @@ const imagesHeures = [1, 2, 3, 4, 5, 6, 7, 9, 9, 10, 11, 12].map(it => iconHeure const imgSigneDragon = img(imagesHeures[4]); /** De pour les jets de rencontre */ -export class DeTMR extends Die { +export class DeTMR extends foundry.dice.terms.Die { /** @override */ static DENOMINATION = "t"; @@ -55,7 +55,7 @@ export class DeTMR extends Die { } /** DeDraconique pour le D8 sans limite avec 8=>0 */ -export class DeDraconique extends Die { +export class DeDraconique extends foundry.dice.terms.Die { static DENOMINATION = "r"; static diceSoNiceData(system) { @@ -93,7 +93,7 @@ export class DeDraconique extends Die { } /** De 12 avec les heures */ -export class DeHeure extends Die { +export class DeHeure extends foundry.dice.terms.Die { /** @override */ static DENOMINATION = "h"; From 92e9be8b02e15ce2901338ea8ecf54cda34cfed4 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 3 Jul 2024 02:35:23 +0200 Subject: [PATCH 3/3] Version 12.0.4 --- system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system.json b/system.json index 8e6dc820..3ed28719 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", - "version": "12.0.3", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-12.0.3.zip", + "version": "12.0.4", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-12.0.4.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v11/system.json", "changelog": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v11/changelog.md", "compatibility": {