Fixed DSN rolling; removed console messages; chat message clean up

This commit is contained in:
Chris Ryan 2025-12-04 21:18:09 +10:00
parent bfc84bdb2d
commit 2e6a17d787
9 changed files with 11 additions and 21 deletions

View file

@ -9,16 +9,15 @@ export default function DhFateRollEnricher(match, _options) {
function getFateMessage(roll, flavor) {
const label = flavor ?? 'Fate';
console.log("ROLL", roll);
const dataLabel = game.i18n.localize('DAGGERHEART.GENERAL.fate');
const fateElement = document.createElement('span');
fateElement.innerHTML = `
<button type="button" class="fate-roll-button${roll?.inline ? ' inline' : ''}"
<button type="button" class="fate-roll-button${roll?.inline ? ' inline' : ''}"
data-title="${label}"
data-label="${dataLabel}"
data-hope="${roll?.hope ?? 'd12'}"
data-hope="${roll?.hope ?? 'd12'}"
${label}
</button>
`;