Skip to content

Commit

Permalink
modified scrollbars; edited dice logic
Browse files Browse the repository at this point in the history
  • Loading branch information
l1necrasher committed Jul 18, 2024
1 parent 50aa957 commit 3151792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--accent-color: #7d7d7d;
--theme-primary: #fed9ca;
--theme-secondary: #c5c5c5;
scrollbar-width: none;
}

body {
Expand Down
2 changes: 1 addition & 1 deletion src/components/StatSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down

0 comments on commit 3151792

Please sign in to comment.