mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-04 12:27:32 +01:00
purchaseTor returns true if player already has tor
Change `purchaseTor` to return `true` if the player already has purchased Tor. Previously it would return `false` Changing this to true puts the behavior inline with the already existing behavior of `purchaseProgram`, which returns true if you have already purchased the program. Additionally this lets us call `purcahseTor` with the same logic that we use to call `purchaseProgram`
This commit is contained in:
parent
1c801c5651
commit
c6a2664296
@ -499,7 +499,7 @@ export function NetscriptSingularity(
|
|||||||
|
|
||||||
if (player.hasTorRouter()) {
|
if (player.hasTorRouter()) {
|
||||||
workerScript.log("purchaseTor", () => "You already have a TOR router!");
|
workerScript.log("purchaseTor", () => "You already have a TOR router!");
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player.money < CONSTANTS.TorRouterCost) {
|
if (player.money < CONSTANTS.TorRouterCost) {
|
||||||
|
Loading…
Reference in New Issue
Block a user