From 3584ca365e131481c462579c631275ec70fb2135 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 5 Feb 2026 14:04:44 -0500 Subject: [PATCH] questify patch update --- src/equicordplugins/questify/index.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index db582cfaf..6ab808632 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1406,10 +1406,16 @@ export default definePlugin({ { // Formats the Orbs balance on the Quests page with locale string formatting. find: '("BalanceCounter")', - replacement: { - match: /(?<=`\$\{\i).toFixed\(0\)(?=\}`)/, - replace: ".toLocaleString(undefined,{maximumFractionDigits:0})" - } + replacement: [ + { + match: /(`\${(\i).toFixed\(0\)}`.length)/, + replace: "$1+($2>=1e6?0.8:$2>=1e3?0.4:0)" + }, + { + match: /(?<=children:\i.to\(\i=>`\${\i)(.toFixed\(0\))/, + replace: ".toLocaleString(undefined,{maximumFractionDigits:0})" + } + ] }, { // Adds a maxDigits prop to the LowerBadge component which allows for not truncating, or for truncating at a specific threshold.