mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Fixed DSN rolling; removed console messages; chat message clean up
This commit is contained in:
parent
bfc84bdb2d
commit
2e6a17d787
9 changed files with 11 additions and 21 deletions
|
|
@ -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>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue