fixe des dés 3d

This commit is contained in:
rwanoux
2024-04-28 23:50:39 +02:00
parent 58d1be4194
commit 9cee590267
2 changed files with 15 additions and 16 deletions
+5 -6
View File
@@ -30,7 +30,9 @@ export const registerHooks = function () {
});
game.users.forEach(user => initUserDice(dice3d, user));
game.users.forEach(user => {
initUserDice(dice3d, user)
});
});
@@ -44,9 +46,9 @@ export const registerHooks = function () {
})
Hooks.on('updateUser', async () => {
Hooks.on('updateUser', async (user, updateData, options, id) => {
if (game.dice3d) {
initUserDice(game.dice3d)
initUserDice(game.dice3d, user)
}
})
@@ -64,9 +66,6 @@ export const registerHooks = function () {
$("#pause.paused figcaption").text("Communauté endormie...");
});
// Hooks.on('renderChatLog', (log, html, data) => VermineFight.chatListeners(html));
// Hooks.on('renderChatMessage', (message, html, data) => VermineFight.chatMessageHandler(message, html, data));
/**
* Create a macro when dropping an entity on the hotbar
* Item - open roll dialog for item