Update README.md

This commit is contained in:
2025-05-03 08:26:22 +02:00
parent bd8b098b35
commit b7f13500a6
36 changed files with 124 additions and 73 deletions

View File

@ -95,7 +95,7 @@ Hooks.once("init", function () {
})
/**
* Perform one-time configuration of system configuration objects.
* Perform one-time configuration of system configuration objects.f
*/
function preLocalizeConfig() {
const localizeConfigObject = (obj, keys) => {
@ -131,7 +131,12 @@ Hooks.once("ready", function () {
}
})
Hooks.on("renderChatMessage", (message, html, data) => {
// Test if version below 13
let hookName = "renderChatMessage"
if (foundry.utils.isNewerVersion(game.version, "12.0", )) {
hookName = "renderChatMessageHTML"
}
Hooks.on(hookName, (message, html, data) => {
const typeMessage = data.message.flags.lethalFantasy?.typeMessage
// Message de demande de jet de dés
if (typeMessage === "askRoll") {