From 9f14f2b863e4733b9446f14806a7c328f5f8da81 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 27 Oct 2021 15:56:04 -0400 Subject: [PATCH] comment --- src/NetscriptFunctions/Extra.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Extra.ts b/src/NetscriptFunctions/Extra.ts index 08ea58f5d..ff2666a64 100644 --- a/src/NetscriptFunctions/Extra.ts +++ b/src/NetscriptFunctions/Extra.ts @@ -36,9 +36,9 @@ export function NetscriptExtra(player: IPlayer, workerScript: WorkerScript): INe real_document.completely_unused_field = undefined; }, alterReality: function (): void { + // eval so the code doesn't get optimized away. 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);