From 41de3102c768a2a7e5a9ac710445b9aedb28f939 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Sun, 10 Oct 2021 23:00:11 -0400 Subject: [PATCH] Change effect replacer text to x% instead of +x% This will make replacement work for hacknet cost (which is -x% so currently is not seen for replacement) and will keep the + or - for effectiveness (e.g. +12.3% hacking skill instead of just 12.3% hacking skill) --- src/CotMG/ui/FragmentInspector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CotMG/ui/FragmentInspector.tsx b/src/CotMG/ui/FragmentInspector.tsx index 98d2f1d0b..74a2e85ea 100644 --- a/src/CotMG/ui/FragmentInspector.tsx +++ b/src/CotMG/ui/FragmentInspector.tsx @@ -55,7 +55,7 @@ export function FragmentInspector(props: IProps): React.ReactElement { charge = "N/A"; effect = `${f.power}x adjacent fragment power`; } else { - effect = Effect(f.type).replace("+x%", numeralWrapper.formatPercentage(props.gift.effect(props.fragment) - 1)); + effect = Effect(f.type).replace("x%", numeralWrapper.formatPercentage(props.gift.effect(props.fragment) - 1)); } return (