Add getMoneySources

This commit is contained in:
Olivier Gagnon
2022-10-13 00:10:59 -04:00
parent d0fe28f8fb
commit ae5fc168bf
3 changed files with 95 additions and 1 deletions

View File

@@ -61,6 +61,35 @@ interface Player {
entropy: number;
}
/** @public */
interface MoneySource {
bladeburner: number;
casino: number;
class: number;
codingcontract: number;
corporation: number;
crime: number;
gang: number;
hacking: number;
hacknet: number;
hacknet_expenses: number;
hospitalization: number;
infiltration: number;
sleeves: number;
stock: number;
total: number;
work: number;
servers: number;
other: number;
augmentations: number;
}
/** @public */
interface MoneySources {
sinceInstall: MoneySource;
sinceStart: MoneySource;
}
/** @public */
export interface Multipliers {
/** Multiplier to hacking skill */
@@ -6692,6 +6721,17 @@ export interface NS {
*/
getPlayer(): Player;
/**
* Get information about the sources of income for this run.
* @remarks
* RAM cost: 1.0 GB
*
* Returns an object with information on the income sources for this run
*
* @returns Money sources
*/
getMoneySources(): MoneySources;
/**
* Add callback function when the script dies
* @remarks