format fl1ght money like the rest of the money

This commit is contained in:
Olivier Gagnon 2018-06-24 21:08:40 -04:00
parent 343d474702
commit c830f08081

@ -20,6 +20,7 @@ import {scriptCalculateHackingTime,
scriptCalculateGrowTime, scriptCalculateGrowTime,
scriptCalculateWeakenTime} from "./NetscriptEvaluator.js"; scriptCalculateWeakenTime} from "./NetscriptEvaluator.js";
import {killWorkerScript, addWorkerScript} from "./NetscriptWorker.js"; import {killWorkerScript, addWorkerScript} from "./NetscriptWorker.js";
import numeral from "numeral/min/numeral.min";
import {Player} from "./Player.js"; import {Player} from "./Player.js";
import {hackWorldDaemon} from "./RedPill.js"; import {hackWorldDaemon} from "./RedPill.js";
import {findRunningScript, RunningScript, import {findRunningScript, RunningScript,
@ -1916,7 +1917,8 @@ let Terminal = {
break; break;
case Programs.Flight: case Programs.Flight:
post("Augmentations: " + Player.augmentations.length + " / 30"); 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("One path below must be fulfilled...");
post("----------HACKING PATH----------"); post("----------HACKING PATH----------");
post("Hacking skill: " + Player.hacking_skill + " / 2500"); post("Hacking skill: " + Player.hacking_skill + " / 2500");