danielyxie / bitburner

Bitburner Game
https://danielyxie.github.io/bitburner/
2.81k stars 768 forks source link

API: Added ns.getMoneySources() to get the money since install/start #4227

Closed xxxsinx closed 2 years ago

xxxsinx commented 2 years ago

Test code:

/* @param {NS} ns / export async function main(ns) { const money= ns.getMoneySources(); ns.tprint(money); }

xxxsinx commented 2 years ago

Changed the comment for the function to remove the word "node", unnecessary spoiler, even though the returned structure is a spoiler in itself :D

hydroflame commented 2 years ago

Adde manually because merge conflitcs