mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Partial improvement on the fate template buttons - chat display is correct, but the roll dialog is wrong
This commit is contained in:
parent
01c1d8fa15
commit
9cc87c861a
1 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ export default function DhFateRollEnricher(match, _options) {
|
|||
function getFateMessage(roll, flavor) {
|
||||
console.log("roll", roll);
|
||||
const label = flavor ?? 'Fate';
|
||||
const fateType = roll?.type ?? 'Hope'
|
||||
|
||||
const dataLabel = game.i18n.localize('DAGGERHEART.GENERAL.fate');
|
||||
|
||||
|
|
@ -20,8 +21,9 @@ function getFateMessage(roll, flavor) {
|
|||
<button type="button" class="fate-roll-button${roll?.inline ? ' inline' : ''}"
|
||||
data-title="${label}"
|
||||
data-label="${dataLabel}"
|
||||
data-fateType="${roll?.hope ?? roll?.fear ?? 'Hope'}"
|
||||
${label}
|
||||
data-fateType="${fateType}"
|
||||
>
|
||||
${fateType} ${label} Roll
|
||||
</button>
|
||||
`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue