MULTS: Make BitNodeMultipliers.ServerMaxMoney more sensible (#280)

This commit is contained in:
David Walker 2023-01-05 17:31:54 -08:00 committed by GitHub
parent 7b5080a42b
commit aa32e235fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 13 deletions

@ -527,7 +527,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
HackingLevelMultiplier: 0.8, HackingLevelMultiplier: 0.8,
ServerGrowthRate: 0.8, ServerGrowthRate: 0.8,
ServerMaxMoney: 0.2, ServerMaxMoney: 0.08,
ServerStartingMoney: 0.4, ServerStartingMoney: 0.4,
PurchasedServerSoftcap: 1.3, PurchasedServerSoftcap: 1.3,
@ -550,7 +550,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
HackingLevelMultiplier: 0.8, HackingLevelMultiplier: 0.8,
ServerGrowthRate: 0.2, ServerGrowthRate: 0.2,
ServerMaxMoney: 0.2, ServerMaxMoney: 0.04,
ServerStartingMoney: 0.2, ServerStartingMoney: 0.2,
HomeComputerRamCost: 1.5, HomeComputerRamCost: 1.5,
@ -579,7 +579,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
} }
case 4: { case 4: {
return Object.assign(mults, { return Object.assign(mults, {
ServerMaxMoney: 0.15, ServerMaxMoney: 0.1125,
ServerStartingMoney: 0.75, ServerStartingMoney: 0.75,
PurchasedServerSoftcap: 1.2, PurchasedServerSoftcap: 1.2,
@ -607,7 +607,6 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
} }
case 5: { case 5: {
return Object.assign(mults, { return Object.assign(mults, {
ServerMaxMoney: 2,
ServerStartingSecurity: 2, ServerStartingSecurity: 2,
ServerStartingMoney: 0.5, ServerStartingMoney: 0.5,
@ -638,7 +637,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
return Object.assign(mults, { return Object.assign(mults, {
HackingLevelMultiplier: 0.35, HackingLevelMultiplier: 0.35,
ServerMaxMoney: 0.4, ServerMaxMoney: 0.2,
ServerStartingMoney: 0.5, ServerStartingMoney: 0.5,
ServerStartingSecurity: 1.5, ServerStartingSecurity: 1.5,
@ -671,7 +670,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
return Object.assign(mults, { return Object.assign(mults, {
HackingLevelMultiplier: 0.35, HackingLevelMultiplier: 0.35,
ServerMaxMoney: 0.4, ServerMaxMoney: 0.2,
ServerStartingMoney: 0.5, ServerStartingMoney: 0.5,
ServerStartingSecurity: 1.5, ServerStartingSecurity: 1.5,
@ -744,7 +743,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
AgilityLevelMultiplier: 0.45, AgilityLevelMultiplier: 0.45,
CharismaLevelMultiplier: 0.45, CharismaLevelMultiplier: 0.45,
ServerMaxMoney: 0.1, ServerMaxMoney: 0.01,
ServerStartingMoney: 0.1, ServerStartingMoney: 0.1,
ServerStartingSecurity: 2.5, ServerStartingSecurity: 2.5,
@ -822,7 +821,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
HackingLevelMultiplier: 0.6, HackingLevelMultiplier: 0.6,
ServerGrowthRate: 0.2, ServerGrowthRate: 0.2,
ServerMaxMoney: 0.1, ServerMaxMoney: 0.01,
ServerStartingMoney: 0.1, ServerStartingMoney: 0.1,
ServerWeakenRate: 2, ServerWeakenRate: 2,
@ -866,7 +865,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
CharismaLevelMultiplier: dec, CharismaLevelMultiplier: dec,
ServerGrowthRate: dec, ServerGrowthRate: dec,
ServerMaxMoney: dec, ServerMaxMoney: dec * dec,
ServerStartingMoney: dec, ServerStartingMoney: dec,
ServerWeakenRate: dec, ServerWeakenRate: dec,
@ -931,7 +930,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie
PurchasedServerSoftcap: 1.6, PurchasedServerSoftcap: 1.6,
ServerMaxMoney: 0.45, ServerMaxMoney: 0.3375,
ServerStartingMoney: 0.75, ServerStartingMoney: 0.75,
ServerStartingSecurity: 3, ServerStartingSecurity: 3,

@ -70,9 +70,9 @@ export class Server extends BaseServer {
/* Hacking information (only valid for "foreign" aka non-purchased servers) */ /* Hacking information (only valid for "foreign" aka non-purchased servers) */
this.requiredHackingSkill = params.requiredHackingSkill != null ? params.requiredHackingSkill : 1; this.requiredHackingSkill = params.requiredHackingSkill != null ? params.requiredHackingSkill : 1;
this.moneyAvailable = const baseMoney = params.moneyAvailable ?? 0;
params.moneyAvailable != null ? params.moneyAvailable * BitNodeMultipliers.ServerStartingMoney : 0; this.moneyAvailable = baseMoney * BitNodeMultipliers.ServerStartingMoney;
this.moneyMax = 25 * this.moneyAvailable * BitNodeMultipliers.ServerMaxMoney; this.moneyMax = 25 * baseMoney * BitNodeMultipliers.ServerMaxMoney;
//Hack Difficulty is synonymous with server security. Base Difficulty = Starting difficulty //Hack Difficulty is synonymous with server security. Base Difficulty = Starting difficulty
const realDifficulty = const realDifficulty =