forked from profectus/Profectus
Made modifier section's base customizable
This commit is contained in:
parent
64533b55dc
commit
8e6fc852d7
1 changed files with 3 additions and 2 deletions
|
@ -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 />
|
||||||
|
|
Loading…
Reference in a new issue