Update README.md
This commit is contained in:
@ -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") {
|
||||
|
Reference in New Issue
Block a user