MISC: Remove duplicate usages of special server's hostname (#1781)

This commit is contained in:
catloversg 2024-11-20 02:47:34 +07:00 committed by GitHub
parent 5faa418c74
commit 04611a30b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 26 deletions

@ -1,18 +1,5 @@
/* Holds IP of Special Servers */ /* Holds IP of Special Servers */
export const SpecialServers: { export const SpecialServers = {
[key: string]: string | undefined;
Home: string;
FulcrumSecretTechnologies: string;
CyberSecServer: string;
NiteSecServer: string;
TheBlackHandServer: string;
BitRunnersServer: string;
TheDarkArmyServer: string;
DaedalusServer: string;
WorldDaemon: string;
DarkWeb: string;
} = {
Home: "home", Home: "home",
FulcrumSecretTechnologies: "fulcrumassets", FulcrumSecretTechnologies: "fulcrumassets",
CyberSecServer: "CSEC", CyberSecServer: "CSEC",
@ -23,4 +10,4 @@ export const SpecialServers: {
DaedalusServer: "The-Cave", DaedalusServer: "The-Cave",
WorldDaemon: "w0r1d_d43m0n", WorldDaemon: "w0r1d_d43m0n",
DarkWeb: "darkweb", DarkWeb: "darkweb",
}; } as const;

@ -286,7 +286,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 99, hackDifficulty: 99,
hostname: "fulcrumassets", hostname: SpecialServers.FulcrumSecretTechnologies,
moneyAvailable: 1e6, moneyAvailable: 1e6,
networkLayer: 15, networkLayer: 15,
numOpenPortsRequired: 5, numOpenPortsRequired: 5,
@ -1428,7 +1428,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "run4theh111z", hostname: SpecialServers.BitRunnersServer,
literature: [LiteratureName.SimulatedReality, LiteratureName.TheNewGod], literature: [LiteratureName.SimulatedReality, LiteratureName.TheNewGod],
maxRamExponent: { maxRamExponent: {
max: 9, max: 9,
@ -1447,7 +1447,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "I.I.I.I", hostname: SpecialServers.TheBlackHandServer,
literature: [LiteratureName.DemocracyIsDead], literature: [LiteratureName.DemocracyIsDead],
maxRamExponent: { maxRamExponent: {
max: 8, max: 8,
@ -1456,7 +1456,7 @@ export const serverMetadata: IServerMetadata[] = [
moneyAvailable: 0, moneyAvailable: 0,
networkLayer: 5, networkLayer: 5,
numOpenPortsRequired: 3, numOpenPortsRequired: 3,
organizationName: "I.I.I.I", organizationName: SpecialServers.TheBlackHandServer,
requiredHackingSkill: { requiredHackingSkill: {
max: 365, max: 365,
min: 340, min: 340,
@ -1466,7 +1466,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "avmnite-02h", hostname: SpecialServers.NiteSecServer,
literature: [LiteratureName.DemocracyIsDead], literature: [LiteratureName.DemocracyIsDead],
maxRamExponent: { maxRamExponent: {
max: 7, max: 7,
@ -1485,12 +1485,12 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: ".", hostname: SpecialServers.TheDarkArmyServer,
maxRamExponent: 4, maxRamExponent: 4,
moneyAvailable: 0, moneyAvailable: 0,
networkLayer: 13, networkLayer: 13,
numOpenPortsRequired: 4, numOpenPortsRequired: 4,
organizationName: ".", organizationName: SpecialServers.TheDarkArmyServer,
requiredHackingSkill: { requiredHackingSkill: {
max: 550, max: 550,
min: 505, min: 505,
@ -1500,7 +1500,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "CSEC", hostname: SpecialServers.CyberSecServer,
literature: [LiteratureName.DemocracyIsDead], literature: [LiteratureName.DemocracyIsDead],
maxRamExponent: 3, maxRamExponent: 3,
moneyAvailable: 0, moneyAvailable: 0,
@ -1516,7 +1516,7 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "The-Cave", hostname: SpecialServers.DaedalusServer,
literature: [LiteratureName.AlphaOmega], literature: [LiteratureName.AlphaOmega],
moneyAvailable: 0, moneyAvailable: 0,
networkLayer: 15, networkLayer: 15,
@ -1528,10 +1528,10 @@ export const serverMetadata: IServerMetadata[] = [
}, },
{ {
hackDifficulty: 0, hackDifficulty: 0,
hostname: "w0r1d_d43m0n", hostname: SpecialServers.WorldDaemon,
moneyAvailable: 0, moneyAvailable: 0,
numOpenPortsRequired: 5, numOpenPortsRequired: 5,
organizationName: "w0r1d_d43m0n", organizationName: SpecialServers.WorldDaemon,
requiredHackingSkill: 3000, requiredHackingSkill: 3000,
serverGrowth: 0, serverGrowth: 0,
specialName: SpecialServers.WorldDaemon, specialName: SpecialServers.WorldDaemon,