mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +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));
|
ctx.workerScript.print(wrapUserNode(value));
|
||||||
},
|
},
|
||||||
flags: Flags,
|
flags: Flags,
|
||||||
|
heart: { break: () => () => Player.karma },
|
||||||
...NetscriptExtra(),
|
...NetscriptExtra(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,9 +7,6 @@ import { helpers } from "../Netscript/NetscriptHelpers";
|
|||||||
import { RamCostConstants } from "../Netscript/RamCostGenerator";
|
import { RamCostConstants } from "../Netscript/RamCostGenerator";
|
||||||
|
|
||||||
export interface INetscriptExtra {
|
export interface INetscriptExtra {
|
||||||
heart: {
|
|
||||||
break(): number;
|
|
||||||
};
|
|
||||||
openDevMenu(): void;
|
openDevMenu(): void;
|
||||||
exploit(): void;
|
exploit(): void;
|
||||||
bypass(doc: Document): void;
|
bypass(doc: Document): void;
|
||||||
@ -19,9 +16,6 @@ export interface INetscriptExtra {
|
|||||||
|
|
||||||
export function NetscriptExtra(): InternalAPI<INetscriptExtra> {
|
export function NetscriptExtra(): InternalAPI<INetscriptExtra> {
|
||||||
return {
|
return {
|
||||||
heart: {
|
|
||||||
break: () => () => Player.karma,
|
|
||||||
},
|
|
||||||
openDevMenu: () => () => devMenu.emit(),
|
openDevMenu: () => () => devMenu.emit(),
|
||||||
exploit: () => () => Player.giveExploit(Exploit.UndocumentedFunctionCall),
|
exploit: () => () => Player.giveExploit(Exploit.UndocumentedFunctionCall),
|
||||||
bypass: (ctx) => (doc) => {
|
bypass: (ctx) => (doc) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user