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