mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 01:47:33 +01:00
Merge pull request #3253 from DavidGrinberg/purchase-tor-router-return
purchaseTor() should returns true if player already has Tor
This commit is contained in:
commit
ae427f11d5
@ -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) {
|
||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user