Made modifier section's base customizable

This commit is contained in:
thepaperpilot 2022-04-26 23:06:19 -05:00
parent 64533b55dc
commit 8e6fc852d7

View file

@ -119,7 +119,8 @@ export function createModifierSection(
subtitle: string,
modifier: Required<Modifier>,
base: DecimalSource = 1,
unit = ""
unit = "",
baseText: CoercableComponent = "Base"
) {
return (
<div>
@ -133,7 +134,7 @@ export function createModifierSection(
{format(base)}
{unit}
</span>
<span class="modifier-description">Base</span>
<span class="modifier-description">{renderJSX(baseText)}</span>
</div>
{renderJSX(unref(modifier.description))}
<hr />