diff --git a/changelog.md b/changelog.md index 4bfac76b..b0233322 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,9 @@ # 12.0 +## 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** - 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) { 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"; 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": {