From c830f08081215a5a16cd46c1bd8d8910eab56cab Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sun, 24 Jun 2018 21:08:40 -0400 Subject: [PATCH] format fl1ght money like the rest of the money --- src/Terminal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Terminal.js b/src/Terminal.js index 5acccfae1..7fc47bfa3 100644 --- a/src/Terminal.js +++ b/src/Terminal.js @@ -20,6 +20,7 @@ import {scriptCalculateHackingTime, scriptCalculateGrowTime, scriptCalculateWeakenTime} from "./NetscriptEvaluator.js"; import {killWorkerScript, addWorkerScript} from "./NetscriptWorker.js"; +import numeral from "numeral/min/numeral.min"; import {Player} from "./Player.js"; import {hackWorldDaemon} from "./RedPill.js"; import {findRunningScript, RunningScript, @@ -1916,7 +1917,8 @@ let Terminal = { break; case Programs.Flight: post("Augmentations: " + Player.augmentations.length + " / 30"); - post("Money: $" + formatNumber(Player.money.toNumber(), 2) + " / $" + formatNumber(100000000000, 2)); + + post("Money: " + numeral(Player.money.toNumber()).format('($0.000a)') + " / " + numeral(1e11).format('($0.000a)')); post("One path below must be fulfilled..."); post("----------HACKING PATH----------"); post("Hacking skill: " + Player.hacking_skill + " / 2500");