Foundryv14 migration
All checks were successful
Release Creation / build (release) Successful in 46s

This commit is contained in:
2026-04-01 22:57:43 +02:00
parent 7dc2492c96
commit bb6a6248f2
25 changed files with 178 additions and 53 deletions

View File

@@ -170,6 +170,9 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
$(html).find(".healing-roll").each((i, btn) => {
btn.style.display = "inline"
})
$(html).find(".worn-weapon-check").each((i, btn) => {
btn.style.display = "inline"
})
if (game.user.isGM) {
$(html).find(".opposed-roll").each((i, btn) => {
btn.style.display = "inline"
@@ -185,6 +188,9 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
$(html).find(".healing-roll").click((event) => {
CthulhuEternalUtils.healingRoll(message)
})
$(html).find(".worn-weapon-check").click((event) => {
CthulhuEternalUtils.wornWeaponCheck(message)
})
$(html).find(".san-loose").click((event) => {
CthulhuEternalUtils.applySANLoss(message, event)
})