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
+1
View File
@@ -108,6 +108,7 @@ export function NetscriptFormulas(): InternalAPI<IFormulas> {
jobs: {},
factions: [],
entropy: 0,
karma: 0,
}),
mockPerson: () => (): IPerson => ({
hp: { current: 0, max: 0 },