mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
Initial commit for Location Code refactor
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* All possible Cities in the game. Names only, not actual "City" object
|
||||
* Implemented as an enum for typing purposes
|
||||
*/
|
||||
export enum CityName {
|
||||
Aevum = "Aevum",
|
||||
Chongqing = "Chongqing",
|
||||
Ishima = "Ishima",
|
||||
NewTokyo = "New Tokyo",
|
||||
Sector12 = "Sector-12",
|
||||
Volhaven = "Volhaven",
|
||||
};
|
||||
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* Names of all locations
|
||||
*/
|
||||
export enum LocationName {
|
||||
// Cities
|
||||
Aevum = "Aevum",
|
||||
Chongqing = "Chongqing",
|
||||
Ishima = "Ishima",
|
||||
NewTokyo = "New Tokyo",
|
||||
Sector12 = "Sector-12",
|
||||
Volhaven = "Volhaven",
|
||||
|
||||
// Aevum Locations
|
||||
AevumAeroCorp = "AeroCorp",
|
||||
AevumBachmanAndAssociates = "Bachman & Associates",
|
||||
AevumClarkeIncorporated = "Clarke Incorporated",
|
||||
AevumCrushFitnessGym = "Crush Fitness Gym",
|
||||
AevumECorp = "ECorp",
|
||||
AevumFulcrumTechnologies = "Fulcrum Technologies",
|
||||
AevumGalacticCybersystems = "Galactic Cybersystems",
|
||||
AevumNetLinkTechnologies = "NetLink Technologies",
|
||||
AevumPolice = "Aevum Police Headquarters",
|
||||
AevumRhoConstruction = "Rho Construction",
|
||||
AevumSlums = "Aevum Slums", // TODO Delete this and other Slums locations
|
||||
AevumSnapFitnessGym = "Snap Fitness Gym",
|
||||
AevumSummitUniversity = "Summit University",
|
||||
AevumTravelAgency = "Aevum Travel Agency", // TODO Delete this and other travel agency locations
|
||||
AevumWatchdogSecurity = "Watchdog Security",
|
||||
|
||||
// Chongqing locations
|
||||
ChongqingKuaiGongInternational = "KuaiGong International",
|
||||
ChongqingSlums = "Chongqing Slums",
|
||||
ChongqingSolarisSpaceSystems = "Solaris Space Systems",
|
||||
ChongqingTravelAgency = "Chongqing Travel Agency",
|
||||
|
||||
// Sector 12
|
||||
Sector12AlphaEnterprises = "Alpha Enterprises",
|
||||
Sector12BladeIndustries = "Blade Industries",
|
||||
Sector12CIA = "Central Intelligence Agency",
|
||||
Sector12CarmichaelSecurity = "Carmichael Security",
|
||||
Sector12CityHall = "Sector-12 City Hall",
|
||||
Sector12DeltaOne = "DeltaOne",
|
||||
Sector12FoodNStuff = "FoodNStuff",
|
||||
Sector12FourSigma = "Four Sigma",
|
||||
Sector12IcarusMicrosystems = "Icarus Microsystems",
|
||||
Sector12IronGym = "Iron Gym",
|
||||
Sector12JoesGuns = "Joe's Guns",
|
||||
Sector12MegaCorp = "MegaCorp",
|
||||
Sector12NSA = "National Security Agency",
|
||||
Sector12PowerhouseGym = "Powerhouse Gym",
|
||||
Sector12RothmanUniversity = "Rothman University",
|
||||
Sector12Slums = "Sector-12 Slums",
|
||||
Sector12TravelAgency = "Sector-12 Travel Agency",
|
||||
Sector12UniversalEnergy = "Universal Energy",
|
||||
|
||||
// New Tokyo
|
||||
NewTokyoDefComm = "DefComm",
|
||||
NewTokyoGlobalPharmaceuticals = "Global Pharmaceuticals",
|
||||
NewTokyoNoodleBar = "Noodle Bar",
|
||||
NewTokyoSlums = "New Tokyo Slums",
|
||||
NewTokyoTravelAgency = "New Tokyo Travel Agency",
|
||||
NewTokyoVitaLife = "VitaLife",
|
||||
|
||||
// Ishima
|
||||
IshimaNovaMedical = "Nova Medical",
|
||||
IshimaOmegaSoftware = "Omega Software",
|
||||
IshimaSlums = "Ishima Slums",
|
||||
IshimaStormTechnologies = "Storm Technologies",
|
||||
IshimaTravelAgency = "Ishima Travel Agency",
|
||||
|
||||
// Volhaven
|
||||
VolhavenCompuTek = "CompuTek",
|
||||
VolhavenHeliosLabs = "Helios Labs",
|
||||
VolhavenLexoCorp = "LexoCorp",
|
||||
VolhavenMilleniumFitnessGym = "Millenium Fitness Gym",
|
||||
VolhavenNWO = "NWO",
|
||||
VolhavenOmniTekIncorporated = "OmniTek Incorporated",
|
||||
VolhavenOmniaCybersystems = "Omnia Cybersystems",
|
||||
VolhavenSlums = "Volhaven Slums",
|
||||
VolhavenSysCoreSecurities = "SysCore Securities",
|
||||
VolhavenTravelAgency = "Volhaven Travel Agency",
|
||||
VolhavenZBInstituteOfTechnology = "ZB Institute of Technology",
|
||||
|
||||
// Generic locations
|
||||
Hospital = "Hospital",
|
||||
Slums = "The Slums",
|
||||
TravelAgency = "Travel Agency",
|
||||
WorldStockExchange = "World Stock Exchange",
|
||||
|
||||
// Default name for Location objects
|
||||
Void = "The Void",
|
||||
};
|
||||
@@ -0,0 +1,316 @@
|
||||
/**
|
||||
* Metadata for constructing Location objects for all Locations
|
||||
* in the game
|
||||
*/
|
||||
import { CityName } from "./CityNames";
|
||||
import { LocationName } from "./LocationNames";
|
||||
import { IConstructorParams } from "../Location";
|
||||
|
||||
export const LocationsMetadata: IConstructorParams[] = [
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumAeroCorp,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumBachmanAndAssociates,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumClarkeIncorporated,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumCrushFitnessGym,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumECorp,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumFulcrumTechnologies,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumGalacticCybersystems,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumNetLinkTechnologies
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumPolice,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumRhoConstruction,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumSnapFitnessGym,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumSummitUniversity,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Aevum,
|
||||
name: LocationName.AevumWatchdogSecurity,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Chongqing,
|
||||
name: LocationName.ChongqingKuaiGongInternational,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Chongqing,
|
||||
name: LocationName.ChongqingSolarisSpaceSystems,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Ishima,
|
||||
name: LocationName.IshimaNovaMedical,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Ishima,
|
||||
name: LocationName.IshimaOmegaSoftware,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Ishima,
|
||||
name: LocationName.IshimaStormTechnologies,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.NewTokyo,
|
||||
name: LocationName.NewTokyoDefComm,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.NewTokyo,
|
||||
name: LocationName.NewTokyoGlobalPharmaceuticals,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.NewTokyo,
|
||||
name: LocationName.NewTokyoNoodleBar,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.NewTokyo,
|
||||
name: LocationName.NewTokyoVitaLife,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12AlphaEnterprises,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12BladeIndustries,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12CIA,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12CarmichaelSecurity,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12CityHall,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12DeltaOne,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12FoodNStuff,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12FourSigma,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12IcarusMicrosystems,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12IronGym,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12JoesGuns,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12MegaCorp,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12NSA,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12PowerhouseGym,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12RothmanUniversity,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Sector12,
|
||||
name: LocationName.Sector12UniversalEnergy,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenCompuTek,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenHeliosLabs,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenLexoCorp,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenMilleniumFitnessGym,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenNWO,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenOmniTekIncorporated,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenOmniaCybersystems,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenSysCoreSecurities,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: CityName.Volhaven,
|
||||
name: LocationName.VolhavenZBInstituteOfTechnology,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: null,
|
||||
name: LocationName.Hospital,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: null,
|
||||
name: LocationName.Slums,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: null,
|
||||
name: LocationName.TravelAgency,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
{
|
||||
city: null,
|
||||
name: LocationName.WorldStockExchange,
|
||||
types:
|
||||
techVendorMaxRam:
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user