mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +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) {
|
function getFateMessage(roll, flavor) {
|
||||||
console.log("roll", roll);
|
console.log("roll", roll);
|
||||||
const label = flavor ?? 'Fate';
|
const label = flavor ?? 'Fate';
|
||||||
|
const fateType = roll?.type ?? 'Hope'
|
||||||
|
|
||||||
const dataLabel = game.i18n.localize('DAGGERHEART.GENERAL.fate');
|
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' : ''}"
|
<button type="button" class="fate-roll-button${roll?.inline ? ' inline' : ''}"
|
||||||
data-title="${label}"
|
data-title="${label}"
|
||||||
data-label="${dataLabel}"
|
data-label="${dataLabel}"
|
||||||
data-fateType="${roll?.hope ?? roll?.fear ?? 'Hope'}"
|
data-fateType="${fateType}"
|
||||||
${label}
|
>
|
||||||
|
${fateType} ${label} Roll
|
||||||
</button>
|
</button>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue