Make modifiers sections accept DecimalSources for the base

This commit is contained in:
thepaperpilot 2022-04-23 21:23:34 -05:00
parent 6e53678991
commit 8add09841e

View file

@ -118,7 +118,7 @@ export function createModifierSection(
title: string,
subtitle: string,
modifier: Required<Modifier>,
base = 1,
base: DecimalSource = 1,
unit = ""
) {
return (
@ -130,7 +130,7 @@ export function createModifierSection(
<br />
<div class="modifier-container">
<span class="modifier-amount">
{base}
{format(base)}
{unit}
</span>
<span class="modifier-description">Base</span>