mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Add getMoneySources
This commit is contained in:
40
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
40
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user