Get dice rolls working in the new sheet for stats + skills

This commit is contained in:
Oliver-Akins 2024-04-04 23:08:30 -06:00
parent 24d31aad30
commit 81a3e822a8

View file

@ -12,6 +12,9 @@
<button <button
type="button" type="button"
class="e-2dp roll-stat" class="e-2dp roll-stat"
{{disabled (not stat.value)}}
data-roll-formula="1{{stat.value}}"
data-roll-label="Stat Roll : {{stat.name}}"
> >
Roll Roll
</button> </button>
@ -41,6 +44,8 @@
type="button" type="button"
class="e-2dp skill__roll" class="e-2dp skill__roll"
{{disabled skill.rollDisabled}} {{disabled skill.rollDisabled}}
data-roll-formula="{{skill.formula}}"
data-roll-label="Skill Roll : {{skill.name}}"
> >
{{#if skill.rollDisabled}} {{#if skill.rollDisabled}}
{{dd-i18n "dotdungeon.sheet.actor.v2.skill-roll-locked"}} {{dd-i18n "dotdungeon.sheet.actor.v2.skill-roll-locked"}}