added openDevMeny

This commit is contained in:
Olivier Gagnon
2022-04-13 13:47:48 -04:00
parent 47846a22d3
commit 3336a6ff61
3 changed files with 5 additions and 2 deletions
+5
View File
@@ -3,11 +3,13 @@ import { IPlayer } from "../PersonObjects/IPlayer";
import { Exploit } from "../Exploits/Exploit";
import * as bcrypt from "bcryptjs";
import { INetscriptHelper } from "./INetscriptHelper";
import { Apr1Events as devMenu } from "../ui/Apr1";
export interface INetscriptExtra {
heart: {
break(): number;
};
openDevMenu(): void;
exploit(): void;
bypass(doc: Document): void;
alterReality(): void;
@@ -22,6 +24,9 @@ export function NetscriptExtra(player: IPlayer, workerScript: WorkerScript, help
return player.karma;
},
},
openDevMenu: function (): void {
devMenu.emit();
},
exploit: function (): void {
player.giveExploit(Exploit.UndocumentedFunctionCall);
},