added Orderborne feature

This commit is contained in:
CPTN Cosmo 2025-05-10 16:27:21 +00:00
parent 49944c3d16
commit 351b6911d1
2 changed files with 6 additions and 1 deletions

View file

@ -14,10 +14,11 @@ function roll(type) {
async function rollDualityDice() {
const modifier = parseInt(document.getElementById("modifier").value) || 0;
const advDisadv = document.getElementById("adv-disadv").value;
const replaceHopeWithD20 = document.getElementById("hope-d20-toggle").checked;
// Define the dice groups
const diceGroups = [
{ name: "Hope", roll: "1d12", color: "yellow" },
{ name: "Hope", roll: replaceHopeWithD20 ? "1d20" : "1d12", color: "yellow" },
{ name: "Fear", roll: "1d12", color: "purple" }
];