mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
Move heart.break out of Extra.ts (#1133)
This commit is contained in:
parent
d801743842
commit
4f4c6fe7e5
@ -1763,6 +1763,7 @@ export const ns: InternalAPI<NSFull> = {
|
||||
ctx.workerScript.print(wrapUserNode(value));
|
||||
},
|
||||
flags: Flags,
|
||||
heart: { break: () => () => Player.karma },
|
||||
...NetscriptExtra(),
|
||||
};
|
||||
|
||||
|
@ -7,9 +7,6 @@ import { helpers } from "../Netscript/NetscriptHelpers";
|
||||
import { RamCostConstants } from "../Netscript/RamCostGenerator";
|
||||
|
||||
export interface INetscriptExtra {
|
||||
heart: {
|
||||
break(): number;
|
||||
};
|
||||
openDevMenu(): void;
|
||||
exploit(): void;
|
||||
bypass(doc: Document): void;
|
||||
@ -19,9 +16,6 @@ export interface INetscriptExtra {
|
||||
|
||||
export function NetscriptExtra(): InternalAPI<INetscriptExtra> {
|
||||
return {
|
||||
heart: {
|
||||
break: () => () => Player.karma,
|
||||
},
|
||||
openDevMenu: () => () => devMenu.emit(),
|
||||
exploit: () => () => Player.giveExploit(Exploit.UndocumentedFunctionCall),
|
||||
bypass: (ctx) => (doc) => {
|
||||
|
Loading…
Reference in New Issue
Block a user