From 1e6104a3490fcf282cbb571a460dac352f72f49e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 20 May 2022 08:46:49 -0500 Subject: [PATCH] Fixed additive modifier description using + on negative modifiers --- src/game/modifiers.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx index b4ea335..f7bd5f9 100644 --- a/src/game/modifiers.tsx +++ b/src/game/modifiers.tsx @@ -64,7 +64,10 @@ export function createAdditiveModifier< ? undefined : jsx(() => (
- +{format(unref(processedAddend))} + + {Decimal.gte(unref(processedAddend), 0) ? "+" : ""} + {format(unref(processedAddend))} + {unref(processedDescription) ? ( {/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}