mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Fixed typos in error messages
This commit is contained in:
parent
f7f22ac7ef
commit
a40d0bb6e0
@ -61,7 +61,7 @@ export function createTravelPopup(destination: CityName, travelFn: TravelFunctio
|
|||||||
const yesBtn = yesNoBoxGetYesButton();
|
const yesBtn = yesNoBoxGetYesButton();
|
||||||
const noBtn = yesNoBoxGetNoButton();
|
const noBtn = yesNoBoxGetNoButton();
|
||||||
if (yesBtn == null || noBtn == null) {
|
if (yesBtn == null || noBtn == null) {
|
||||||
console.warn(`Could nto find YesNo pop-up box buttons`);
|
console.warn(`Could not find YesNo pop-up box buttons`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ export function createTravelPopup(destination: CityName, travelFn: TravelFunctio
|
|||||||
export function createPurchaseServerPopup(ram: number, p: IPlayer): void {
|
export function createPurchaseServerPopup(ram: number, p: IPlayer): void {
|
||||||
const cost = getPurchaseServerCost(ram);
|
const cost = getPurchaseServerCost(ram);
|
||||||
if (cost === Infinity) {
|
if (cost === Infinity) {
|
||||||
dialogBoxCreate("Something went wrong when trying to purchase this server. Please contact developer");
|
dialogBoxCreate("Something went wrong when trying to purchase this server. Please contact developer.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ export function createStartCorporationPopup(p: IPlayer): void {
|
|||||||
innerText: "Self-Fund",
|
innerText: "Self-Fund",
|
||||||
clickListener: () => {
|
clickListener: () => {
|
||||||
if (!p.canAfford(150e9)) {
|
if (!p.canAfford(150e9)) {
|
||||||
dialogBoxCreate("You don't have enough money to create a corporation! You need $150b");
|
dialogBoxCreate("You don't have enough money to create a corporation! You need $150b.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ export function createStartCorporationPopup(p: IPlayer): void {
|
|||||||
worldHeader.click(); worldHeader.click();
|
worldHeader.click(); worldHeader.click();
|
||||||
}
|
}
|
||||||
dialogBoxCreate("Congratulations! You just self-funded your own corporation. You can visit " +
|
dialogBoxCreate("Congratulations! You just self-funded your own corporation. You can visit " +
|
||||||
"and manage your company in the City");
|
"and manage your company in the City.");
|
||||||
removeElementById(popupId);
|
removeElementById(popupId);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -179,7 +179,7 @@ export function createStartCorporationPopup(p: IPlayer): void {
|
|||||||
}
|
}
|
||||||
dialogBoxCreate(
|
dialogBoxCreate(
|
||||||
"Congratulations! You just started your own corporation with government seed money. " +
|
"Congratulations! You just started your own corporation with government seed money. " +
|
||||||
"You can visit and manage your company in the City",
|
"You can visit and manage your company in the City.",
|
||||||
);
|
);
|
||||||
removeElementById(popupId);
|
removeElementById(popupId);
|
||||||
return false;
|
return false;
|
||||||
@ -293,11 +293,11 @@ export function createUpgradeHomeRamPopup(p: IPlayer): void {
|
|||||||
*/
|
*/
|
||||||
export function purchaseTorRouter(p: IPlayer): void {
|
export function purchaseTorRouter(p: IPlayer): void {
|
||||||
if (p.hasTorRouter()) {
|
if (p.hasTorRouter()) {
|
||||||
dialogBoxCreate(`You already have a TOR Router`);
|
dialogBoxCreate(`You already have a TOR Router!`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!p.canAfford(CONSTANTS.TorRouterCost)) {
|
if (!p.canAfford(CONSTANTS.TorRouterCost)) {
|
||||||
dialogBoxCreate("You cannot afford to purchase the Tor router");
|
dialogBoxCreate("You cannot afford to purchase the TOR router!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
p.loseMoney(CONSTANTS.TorRouterCost);
|
p.loseMoney(CONSTANTS.TorRouterCost);
|
||||||
@ -312,8 +312,8 @@ export function purchaseTorRouter(p: IPlayer): void {
|
|||||||
p.getHomeComputer().serversOnNetwork.push(darkweb.ip);
|
p.getHomeComputer().serversOnNetwork.push(darkweb.ip);
|
||||||
darkweb.serversOnNetwork.push(p.getHomeComputer().ip);
|
darkweb.serversOnNetwork.push(p.getHomeComputer().ip);
|
||||||
dialogBoxCreate(
|
dialogBoxCreate(
|
||||||
"You have purchased a Tor router!<br>" +
|
"You have purchased a TOR router!<br>" +
|
||||||
"You now have access to the dark web from your home computer<br>" +
|
"You now have access to the dark web from your home computer.<br>" +
|
||||||
"Use the scan/scan-analyze commands to search for the dark web connection.",
|
"Use the scan/scan-analyze commands to search for the dark web connection.",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user