diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 26fbd760d..3972d0bb2 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -499,7 +499,7 @@ export function NetscriptSingularity( if (player.hasTorRouter()) { workerScript.log("purchaseTor", () => "You already have a TOR router!"); - return false; + return true; } if (player.money < CONSTANTS.TorRouterCost) { diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index a062ddd29..1782e8c8c 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -1597,7 +1597,7 @@ export interface Singularity { * purchasing a TOR router using this function is the same as if you were to * manually purchase one. * - * @returns True if actions is successful, false otherwise. + * @returns True if actions is successful or you already own TOR router, false otherwise. */ purchaseTor(): boolean;