questify patch update

This commit is contained in:
thororen1234 2026-02-05 14:04:44 -05:00
parent 7eddd50923
commit 3584ca365e
No known key found for this signature in database

View file

@ -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.