mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
API: Add karma to ns.getPlayer() & document ns.heart.break() (#1131)
This commit is contained in:
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -48,6 +48,7 @@ interface Player extends Person {
|
||||
factions: string[];
|
||||
totalPlaytime: number;
|
||||
location: string;
|
||||
karma: number;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
@@ -5513,6 +5514,15 @@ export interface NS {
|
||||
*/
|
||||
growthAnalyzeSecurity(threads: number, hostname?: string, cores?: number): number;
|
||||
|
||||
readonly heart: {
|
||||
/**
|
||||
* Get your current karma.
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*/
|
||||
break(): number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Suspends the script for n milliseconds.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user