Implement POC of rolling check from character sheet

This commit is contained in:
Johannes Loher 2021-04-13 23:43:22 +02:00
parent fcfba63488
commit 9e72c6560f
9 changed files with 54 additions and 10 deletions

View file

@ -0,0 +1,11 @@
{{!--
!-- Render a check.
!--
!-- @param check-key: The key of the combat value
!-- @param check-target-number: The check target number
!-- @param check-label: The label for the check
--}}
<div class="ds4-check rollable-check" data-check="{{check-key}}">
{{check-label}}: {{check-target-number}}
</div>

View file

@ -0,0 +1,6 @@
<div class="ds4-checks">
{{#each config.i18n.checks as |check-label check-key|}}
{{> systems/ds4/templates/sheets/actor/components/check.hbs check-key=check-key check-target-number=(lookup
../data.checks check-key) check-label=check-label}}
{{/each}}
</div>

View file

@ -2,8 +2,8 @@
!-- Render a combat value.
!--
!-- @param combat-value-key: The key of the combat value
!-- @param combat-value-data: The data for the attribute
!-- @param combat-value-label: The label for the attribute
!-- @param combat-value-data: The data for the combat value
!-- @param combat-value-label: The label for the combat value
--}}
<div class="ds4-combat-value">

View file

@ -1,4 +1,5 @@
<div class="tab values" data-group="primary" data-tab="values">
{{> systems/ds4/templates/sheets/actor/components/core-values.hbs}}
{{> systems/ds4/templates/sheets/actor/components/combat-values.hbs}}
{{> systems/ds4/templates/sheets/actor/components/checks.hbs}}
</div>