From 315179231b328a0eaca1714582b195bd395616b0 Mon Sep 17 00:00:00 2001 From: l1necrasher Date: Thu, 18 Jul 2024 19:59:09 +0200 Subject: [PATCH] modified scrollbars; edited dice logic --- src/assets/main.css | 1 + src/components/StatSet.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/main.css b/src/assets/main.css index 96ccdca..c7b02a9 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -8,6 +8,7 @@ --accent-color: #7d7d7d; --theme-primary: #fed9ca; --theme-secondary: #c5c5c5; + scrollbar-width: none; } body { diff --git a/src/components/StatSet.vue b/src/components/StatSet.vue index 13fd50a..e5eed24 100644 --- a/src/components/StatSet.vue +++ b/src/components/StatSet.vue @@ -35,7 +35,7 @@ const characterStore = useCharacterStore() async function rollStat(stat: number = 0, label: string = props.label) { const results = Array.from({ length: model.value.length + stat }, rollDie) let total = 0 - results.forEach((die) => total += die) + results.forEach((die) => (total < die) ? total = die) await OBR.notification.show(`${characterStore.playerName} rolled a ${total} for ${label}`) }