See description

Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings.
Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
This commit is contained in:
Snarling
2022-10-04 06:40:10 -04:00
parent 50f14b4f58
commit aa80cf6451
109 changed files with 400 additions and 1096 deletions
+10 -30
View File
@@ -12,19 +12,13 @@ import { SpecialServers } from "./SpecialServers";
* These values will be adjusted based on Bitnode multipliers when the Server objects are built out.
*/
interface IServerMetadata {
/**
* When populated, the base security level of the server.
*/
/** When populated, the base security level of the server. */
hackDifficulty?: number | IMinMaxRange;
/**
* The DNS name of the server.
*/
/** The DNS name of the server. */
hostname: string;
/**
* When populated, the files will be added to the server when created.
*/
/** When populated, the files will be added to the server when created. */
literature?: string[];
/**
@@ -33,9 +27,7 @@ interface IServerMetadata {
*/
maxRamExponent?: number | IMinMaxRange;
/**
* How much money the server starts out with.
*/
/** How much money the server starts out with. */
moneyAvailable: number | IMinMaxRange;
/**
@@ -45,35 +37,23 @@ interface IServerMetadata {
*/
networkLayer?: number | IMinMaxRange;
/**
* The number of ports that must be opened before the player can execute NUKE.
*/
/** The number of ports that must be opened before the player can execute NUKE. */
numOpenPortsRequired: number;
/**
* The organization that the server belongs to.
*/
/** The organization that the server belongs to. */
organizationName: string;
/**
* The minimum hacking level before the player can run NUKE.
*/
/** The minimum hacking level before the player can run NUKE. */
requiredHackingSkill: number | IMinMaxRange;
/**
* The growth factor for the server.
*/
/** The growth factor for the server. */
serverGrowth?: number | IMinMaxRange;
/**
* A "unique" server that has special implications when the player manually hacks it.
*/
/** A "unique" server that has special implications when the player manually hacks it. */
specialName?: string;
}
/**
* The metadata for building up the servers on the network.
*/
/** The metadata for building up the servers on the network. */
export const serverMetadata: IServerMetadata[] = [
{
hackDifficulty: 99,