Merge pull request #1587 from danielyxie/dev

fix Alter Reality
This commit is contained in:
hydroflame 2021-10-27 15:55:25 -04:00 committed by GitHub
commit 02bdb41768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -36,8 +36,9 @@ export function NetscriptExtra(player: IPlayer, workerScript: WorkerScript): INe
real_document.completely_unused_field = undefined;
},
alterReality: function (): void {
const x = false;
console.warn("I am sure that this variable is false");
const x = eval("false");
console.warn("I am sure that this variable is false.");
// add Math.random so webpack doesn't optimise the if away
if (x !== false) {
console.warn("Reality has been altered!");
player.giveExploit(Exploit.RealityAlteration);