Add rolling for skills

This commit is contained in:
Oliver-Akins 2023-12-31 15:09:41 -07:00
parent f974f260b3
commit e7bb6f8de9
2 changed files with 40 additions and 2 deletions

View file

@ -1,8 +1,24 @@
<div class="skill">
<button
{{disabled false}}
class="skill__label skill__button"
class="skill__label skill__button roll"
aria-label="{{localize "dotdungeon.aria.actor.pc.skill.button.roll" skill=name}}"
data-roll-formula="1{{dd-objectValue system (concat "stats." stat)}} {{dd-objectValue system.skills (concat stat "." name)}}"
data-roll-label="dotdungeon.rolls.skills.{{name}}"
{{disabled
(or
(eq
(dd-objectValue system (concat "stats." stat))
""
)
(eq
(dd-objectValue
system
(concat "skills." stat "." name)
)
"locked"
)
)
}}
>
{{localize (concat "dotdungeon.actor.pc.skill." name)}}
{{#with (dd-objectValue system (concat "stats." stat)) as | die |}}