[refactor] Moving BitNodeMultipliers to its own file to break cyclical

module references.
This commit is contained in:
Steven Evans
2018-07-31 14:00:03 -04:00
parent 974bc3c002
commit edcfe71eed
14 changed files with 192 additions and 52 deletions
+2 -40
View File
@@ -1,4 +1,5 @@
import {Player} from "./Player";
import {BitNodeMultipliers} from "./BitNodeMultipliers";
import {Player} from "./Player";
function BitNode(n, name, desc="", info="") {
this.number = n;
@@ -199,43 +200,6 @@ function initBitNodes() {
BitNodes["BitNode24"] = new BitNode(24, "", "COMING SOON");
}
let BitNodeMultipliers = {
HackingLevelMultiplier: 1,
ServerMaxMoney: 1,
ServerStartingMoney: 1,
ServerGrowthRate: 1,
ServerWeakenRate: 1,
ServerStartingSecurity: 1,
ManualHackMoney: 1,
ScriptHackMoney: 1,
CompanyWorkMoney: 1,
CrimeMoney: 1,
HacknetNodeMoney: 1,
CompanyWorkExpGain: 1,
ClassGymExpGain: 1,
FactionWorkExpGain: 1,
HackExpGain: 1,
CrimeExpGain: 1,
FactionWorkRepGain: 1,
FactionPassiveRepGain: 1,
RepToDonateToFaction: 1,
AugmentationRepCost: 1,
AugmentationMoneyCost: 1,
InfiltrationMoney: 1,
InfiltrationRep: 1,
CorporationValuation: 1,
BladeburnerRank: 1,
BladeburnerSkillCost: 1,
}
function initBitNodeMultipliers() {
if (Player.bitNodeN == null) {
Player.bitNodeN = 1;
@@ -403,7 +367,5 @@ function initBitNodeMultipliers() {
}
export {initBitNodes,
BitNode,
BitNodes,
BitNodeMultipliers,
initBitNodeMultipliers};