From 351b6911d1e518319215ac7ac8ab86d8e34a78f2 Mon Sep 17 00:00:00 2001 From: CPTN_Cosmo Date: Sat, 10 May 2025 16:27:21 +0000 Subject: [PATCH] added Orderborne feature --- assets/roll.js | 3 ++- roll.html | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/roll.js b/assets/roll.js index 973c42a..f676e95 100644 --- a/assets/roll.js +++ b/assets/roll.js @@ -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" } ]; diff --git a/roll.html b/roll.html index 5c8f72e..3d7ffa7 100644 --- a/roll.html +++ b/roll.html @@ -26,6 +26,10 @@ +
+ + +