added Orderborne feature
This commit is contained in:
parent
49944c3d16
commit
351b6911d1
2 changed files with 6 additions and 1 deletions
|
|
@ -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" }
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@
|
|||
<option value="disadvantage">Disadvantage</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="content-row">
|
||||
<label class="field-title" for="hope-d20-toggle">Replace Hope D12 with D20</label>
|
||||
<input id="hope-d20-toggle" type="checkbox"></input>
|
||||
</div>
|
||||
<div class="content-row">
|
||||
<span class="spacer"></span>
|
||||
<button id="roll-duality" onclick="rollDualityDice()">Roll Duality Dice</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue