New weapon management, including shotgun

This commit is contained in:
2025-07-14 21:33:32 +02:00
parent 61b8da8ccf
commit cdefecdeba
43 changed files with 651 additions and 133 deletions

View File

@@ -151,7 +151,8 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
CthulhuEternalUtils.nudgeRoll(message)
})
$(html).find(".damage-roll").click((event) => {
CthulhuEternalUtils.damageRoll(message)
let formula = $(event.currentTarget).data("roll-value")
CthulhuEternalUtils.damageRoll(message, formula)
})
$(html).find(".healing-roll").click((event) => {
CthulhuEternalUtils.healingRoll(message)