mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
Change high% display to mult form
Also includes some documentation updates from a previous PR (sleeve.setToIdle)
This commit is contained in:
@@ -1691,11 +1691,11 @@ export const ns: InternalAPI<NSFull> = {
|
||||
},
|
||||
formatPercent:
|
||||
(ctx) =>
|
||||
(_n, _fractionalDigits = 2, _suffixStart = 1e7) => {
|
||||
(_n, _fractionalDigits = 2, _multStart = 1e6) => {
|
||||
const n = helpers.number(ctx, "n", _n);
|
||||
const fractionalDigits = helpers.number(ctx, "fractionalDigits", _fractionalDigits);
|
||||
const suffixStart = helpers.number(ctx, "suffixStart", _suffixStart);
|
||||
return formatPercent(n, fractionalDigits, suffixStart);
|
||||
const multStart = helpers.number(ctx, "multStart", _multStart);
|
||||
return formatPercent(n, fractionalDigits, multStart);
|
||||
},
|
||||
// Todo: Remove function in 2.3. Until then it just directly wraps numeral.
|
||||
nFormat: (ctx) => (_n, _format) => {
|
||||
|
||||
Reference in New Issue
Block a user