mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
Merge pull request #294 from hydroflame/suppress-travel-confirm
added options to suppress travel confirmation
This commit is contained in:
@@ -11,6 +11,7 @@ import {Player} from "./Player.js";
|
||||
import {Server, AllServers, AddToAllServers} from "./Server.js";
|
||||
import {purchaseServer,
|
||||
purchaseRamForHomeComputer} from "./ServerPurchases.js";
|
||||
import {Settings} from "./Settings.js";
|
||||
import {SpecialServerNames, SpecialServerIps} from "./SpecialServerIps.js";
|
||||
|
||||
import {dialogBoxCreate} from "../utils/DialogBox.js";
|
||||
@@ -2146,6 +2147,10 @@ function setJobRequirementTooltip(loc, entryPosType, btn) {
|
||||
}
|
||||
|
||||
function travelBoxCreate(destCityName, cost) {
|
||||
if(Settings.SuppressTravelConfirmation) {
|
||||
travelToCity(destCityName, cost);
|
||||
return;
|
||||
}
|
||||
var yesBtn = yesNoBoxGetYesButton(), noBtn = yesNoBoxGetNoButton();
|
||||
yesBtn.innerHTML = "Yes";
|
||||
noBtn.innerHTML = "No";
|
||||
|
||||
Reference in New Issue
Block a user