mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Added a constant for cities
This commit is contained in:
parent
ceb2305ed8
commit
f1ada52074
@ -36,4 +36,15 @@ CONSTANTS = {
|
|||||||
|
|
||||||
//TutorialScriptText:
|
//TutorialScriptText:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Location Definitions
|
||||||
|
Aevum: "Aevum",
|
||||||
|
ChongQing: "ChongQing",
|
||||||
|
Sector12: "Sector-12",
|
||||||
|
NewTokyo: "New Tokyo",
|
||||||
|
Ishima: "Ishima",
|
||||||
|
Volhaven: "Volhaven",
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -60,7 +60,7 @@ function PlayerObject() {
|
|||||||
this.homeComputer = "";
|
this.homeComputer = "";
|
||||||
|
|
||||||
//Cities: Aevum, ChongQing, Sector12, New Tokyo, Ishima, Volhaven
|
//Cities: Aevum, ChongQing, Sector12, New Tokyo, Ishima, Volhaven
|
||||||
this.city = "Aevum";
|
this.city = CONSTANTS.Aevum;
|
||||||
this.location = "";
|
this.location = "";
|
||||||
|
|
||||||
//Servers
|
//Servers
|
||||||
|
@ -244,22 +244,22 @@ var Engine = {
|
|||||||
Engine.volhavenLocationsList.style.display = "none";
|
Engine.volhavenLocationsList.style.display = "none";
|
||||||
|
|
||||||
switch(Player.city) {
|
switch(Player.city) {
|
||||||
case "Aevum":
|
case CONSTANTS.Aevum:
|
||||||
Engine.aevumLocationsList.style.display = "inline";
|
Engine.aevumLocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
case "ChongQing":
|
case CONSTANTS.ChongQing:
|
||||||
Engine.chongqingLocationsList.style.display = "inline";
|
Engine.chongqingLocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
case "Sector-12":
|
case CONSTANTS.Sector12:
|
||||||
Engine.sector12LocationsList.style.display = "inline";
|
Engine.sector12LocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
case "New Tokyo":
|
case CONSTANTS.NewTokyo:
|
||||||
Engine.newTokyoLocationsList.style.display = "inline";
|
Engine.newTokyoLocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
case "Ishima":
|
case CONSTANTS.Ishima:
|
||||||
Engine.ishimaLocationsList.style.display = "inline";
|
Engine.ishimaLocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
case "Volhaven":
|
case CONSTANTS.Volhaven:
|
||||||
Engine.volhavenLocationsList.style.display = "inline";
|
Engine.volhavenLocationsList.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user