Make modifiers sections accept DecimalSources for the base

This commit is contained in:
thepaperpilot 2022-04-23 21:23:34 -05:00
parent 8ea777f797
commit d2a66795b2

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>