Skip to content

Commit 9777829

Browse files
authored
Merge branch 'v13-compatibility-work' into master
2 parents 2e54794 + 495116b commit 9777829

File tree

11 files changed

+267
-425
lines changed

11 files changed

+267
-425
lines changed

Diff for: model/templates/dice/broll.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="vaesen chat-card">
22

33
<div class="card-content borderimg">
4-
<div class="dice-roll">
4+
<div class="dice-roll flexcol">
55

66
{{#if flavor}}
77
<div class="dice-flavor">{{flavor}}</div>

Diff for: script/hooks.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import { VaesenTokenHUD } from "./util/token.js";
2121
Hooks.on("renderChatMessage", (app, html, data) => {
2222
Chat.hideChatActionButtons(app, html, data);
2323
});
24-
Hooks.on("renderChatLog", (app, html, data) => {
25-
html.on("click", ".dice-button.push", _onPush);
26-
});
24+
25+
26+
// Hooks.on("renderChatLog", (app, html, data) => {
27+
// html.on("click", ".dice-button.push", _onPush);
28+
// });
2729

2830
Hooks.once("init", () => {
2931
console.log("Vaesen | Initializing Vaesen System");
@@ -109,6 +111,7 @@ Hooks.once("ready", async function () {
109111
Hooks.on("chatMessage", (_, messageText, chatData) =>
110112
totalRoll(messageText, chatData)
111113
);
114+
activateListeners($(document));
112115
migrate();
113116
registerGearSelectTooltip();
114117

@@ -236,6 +239,11 @@ Hooks.once("diceSoNiceReady", (dice3d) => {
236239
);
237240
});
238241

242+
243+
async function activateListeners(html) {
244+
html.on("click", ".dice-button.push", _onPush);
245+
}
246+
239247
async function _onPush(event) {
240248
event.preventDefault();
241249

0 commit comments

Comments
 (0)