API: Add karma to ns.getPlayer() & document ns.heart.break() (#1131)

This commit is contained in:
LJ
2024-03-04 07:35:54 -07:00
committed by GitHub
parent 65082f677e
commit a5f5c81912
3 changed files with 12 additions and 0 deletions

View File

@@ -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