questify patch update
This commit is contained in:
parent
7eddd50923
commit
3584ca365e
1 changed files with 10 additions and 4 deletions
|
|
@ -1406,10 +1406,16 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
// Formats the Orbs balance on the Quests page with locale string formatting.
|
// Formats the Orbs balance on the Quests page with locale string formatting.
|
||||||
find: '("BalanceCounter")',
|
find: '("BalanceCounter")',
|
||||||
replacement: {
|
replacement: [
|
||||||
match: /(?<=`\$\{\i).toFixed\(0\)(?=\}`)/,
|
{
|
||||||
replace: ".toLocaleString(undefined,{maximumFractionDigits:0})"
|
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.
|
// Adds a maxDigits prop to the LowerBadge component which allows for not truncating, or for truncating at a specific threshold.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue