mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
NETSCRIPT: Moved formatting functions to their own interface (#1635)
This commit is contained in:
@@ -38,6 +38,6 @@ If the program does not exist, an error is thrown.
|
||||
```js
|
||||
const programName = "BruteSSH.exe";
|
||||
const cost = ns.singularity.getDarkwebProgramCost(programName);
|
||||
if (cost > 0) ns.tprint(`${programName} costs $${ns.formatNumber(cost)}`);
|
||||
if (cost > 0) ns.tprint(`${programName} costs $${ns.format.number(cost)}`);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user