From d2a66795b220f0f6aa81648f2777b4296ed030ee Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 23 Apr 2022 21:23:34 -0500 Subject: [PATCH] Make modifiers sections accept DecimalSources for the base --- src/game/modifiers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx index 6e2acfe..ef66911 100644 --- a/src/game/modifiers.tsx +++ b/src/game/modifiers.tsx @@ -118,7 +118,7 @@ export function createModifierSection( title: string, subtitle: string, modifier: Required, - base = 1, + base: DecimalSource = 1, unit = "" ) { return ( @@ -130,7 +130,7 @@ export function createModifierSection(
- {base} + {format(base)} {unit} Base