mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 04:17:05 +02:00
MISC: move server constants into their own constant (#1075)
This commit is contained in:
@@ -12,8 +12,6 @@ export const CONSTANTS: {
|
||||
OfflineHackingIncome: number;
|
||||
CorpFactionRepRequirement: number;
|
||||
BaseFocusBonus: number;
|
||||
BaseCostFor1GBOfRamHome: number;
|
||||
BaseCostFor1GBOfRamServer: number;
|
||||
TravelCost: number;
|
||||
BaseFavorToDonate: number;
|
||||
DonateMoneyToRepDivisor: number;
|
||||
@@ -23,13 +21,6 @@ export const CONSTANTS: {
|
||||
CompanyReputationToFavorMult: number;
|
||||
NeuroFluxGovernorLevelMult: number;
|
||||
NumNetscriptPorts: number;
|
||||
HomeComputerMaxRam: number;
|
||||
ServerBaseGrowthIncr: number;
|
||||
ServerMaxGrowthLog: number;
|
||||
ServerFortifyAmount: number;
|
||||
ServerWeakenAmount: number;
|
||||
PurchasedServerLimit: number;
|
||||
PurchasedServerMaxRam: number;
|
||||
MultipleAugMultiplier: number;
|
||||
TorRouterCost: number;
|
||||
HospitalCostPerHp: number;
|
||||
@@ -103,10 +94,6 @@ export const CONSTANTS: {
|
||||
// How much reputation is needed to join a megacorporation's faction
|
||||
CorpFactionRepRequirement: 400e3,
|
||||
|
||||
// Base RAM costs
|
||||
BaseCostFor1GBOfRamHome: 32000,
|
||||
BaseCostFor1GBOfRamServer: 55000, //1 GB of RAM
|
||||
|
||||
// Cost to travel to another city
|
||||
TravelCost: 200e3,
|
||||
|
||||
@@ -123,16 +110,6 @@ export const CONSTANTS: {
|
||||
|
||||
NumNetscriptPorts: Number.MAX_SAFE_INTEGER,
|
||||
|
||||
// Server-related constants
|
||||
HomeComputerMaxRam: 1073741824, // 2 ^ 30
|
||||
ServerBaseGrowthIncr: 0.03, // Unadjusted growth increment (growth rate is this * adjustment + 1)
|
||||
ServerMaxGrowthLog: 0.00349388925425578, // Maximum possible growth rate accounting for server security, precomputed as log1p(.0035)
|
||||
ServerFortifyAmount: 0.002, // Amount by which server's security increases when its hacked/grown
|
||||
ServerWeakenAmount: 0.05, // Amount by which server's security decreases when weakened
|
||||
|
||||
PurchasedServerLimit: 25,
|
||||
PurchasedServerMaxRam: 1048576, // 2^20
|
||||
|
||||
// Augmentation Constants
|
||||
MultipleAugMultiplier: 1.9,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user