UI: Show server's money in exponential form if it's too small (#2343)

This commit is contained in:
catloversg
2025-10-11 00:37:35 +07:00
committed by GitHub
parent 2a2b38f4ad
commit 5c0f24f5d0

View File

@@ -396,7 +396,9 @@ export class Terminal {
this.print("Time to hack: " + (!isHacknet ? convertTimeMsToTimeElapsedString(hackingTime, true) : "N/A"));
}
this.print(
`Total money available on server: ${currServ instanceof Server ? formatMoney(currServ.moneyAvailable) : "N/A"}`,
`Total money available on server: ${
currServ instanceof Server ? formatMoney(currServ.moneyAvailable, true) : "N/A"
}`,
);
if (currServ instanceof Server) {
const numPort = currServ.numOpenPortsRequired;