Merge pull request 'removes d2 from quickroll and overlay' (#40) from remove-d2 into main
All checks were successful
CI / deploy (push) Successful in 5m48s

Reviewed-on: #40
This commit is contained in:
arindy 2025-02-22 14:50:48 +01:00
commit 67cffae431
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@
<button style="border: transparent; border-radius: 100%; font-size: large; font-weight: bold; height: 50px; width: 50px"
onclick="addDice()">+
</button>
<button style="font-size: large; font-weight: bold;" onclick="rollEasy('d2')">D2</button>
<!--<button style="font-size: large; font-weight: bold;" onclick="rollEasy('d2')">D2</button><-->
<button style="font-size: large; font-weight: bold;" onclick="rollEasy('d4')">D4</button>
<button style="font-size: large; font-weight: bold;" onclick="rollEasy('d6')">D6</button>
<button style="font-size: large; font-weight: bold;" onclick="rollEasy('d8')">D8</button>

View File

@ -40,7 +40,7 @@
foreground: data.numberColor
}
}).then(() => {
diceBox.roll(data.roll.join('&'));
diceBox.roll(data.roll.filter(it => it.split('@')[0].split('d')[1] !== "2").join('&'));
})
})
</script>