From 8e6fc852d7ec6e8c8b66fb5a510130b94f8db0bb Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 26 Apr 2022 23:06:19 -0500 Subject: [PATCH] Made modifier section's base customizable --- src/game/modifiers.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx index ef66911..ffbef3c 100644 --- a/src/game/modifiers.tsx +++ b/src/game/modifiers.tsx @@ -119,7 +119,8 @@ export function createModifierSection( subtitle: string, modifier: Required, base: DecimalSource = 1, - unit = "" + unit = "", + baseText: CoercableComponent = "Base" ) { return (
@@ -133,7 +134,7 @@ export function createModifierSection( {format(base)} {unit} - Base + {renderJSX(baseText)}
{renderJSX(unref(modifier.description))}