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